PageSourceSearch

https://preview-8386-ng-zorro-antd.surge.sh/1799.e3a80dfcd6a7cefe.js

js preview-8386-ng-zorro-antd.surge.sh collected 2026-10-03 14:57:26 UTC 219,328 bytes, 1 lines download raw bytes

vendor: 4,981 bytes, line 1
1"use strict";(self.webpackChunkng_zorro_antd_doc=self.webpackChunkng_zorro_antd_doc||[]).push([[1799],{1799:(su,Dn,E)=>{E.r(Dn),E.d(Dn,{NzDemoGraphModule:()=>h0});var x=E(4190),sn=E(6242),xt=E(379),n=E(9212),At=E(5393),Sn=E(8101),Y=E(3185),It=E(8332),jt=E(227),cn=E(1687),qe=E(8337),Mn=E(5619),Ne=E(3019),Pt=E(8645),Bn=E(2438),hn=E(7328),Ce=E(9315),ke=E(7398),On=E(8180),G=E(2181),De=E(9773),T=E(4716),B=E(6814);const z=Math.PI,bt=2*z,pt=1e-6,Se=bt-pt;function dn(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Gn(){return new dn}dn.prototype=Gn.prototype={constructor:dn,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,o){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+o)},bezierCurveTo:function(t,e,r,o,i,a){this._+="C"+ +t+","+ +e+","+ +r+","+ +o+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,r,o,i){var a=this._x1,u=this._y1,s=(r=+r)-(t=+t),c=(o=+o)-(e=+e),h=a-t,d=u-e,l=h*h+d*d;if((i=+i)<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(l>pt)if(Math.abs(d*s-c*h)>pt&&i){var f=r-a,g=o-u,_=s*s+c*c,m=f*f+g*g,y=Math.sqrt(_),Z=Math.sqrt(l),w=i*Math.tan((z-Math.acos((_+l-m)/(2*y*Z)))/2),N=w/Z,q=w/y;Math.abs(N-1)>pt&&(this._+="L"+(t+N*h)+","+(e+N*d)),this._+="A"+i+","+i+",0,0,"+ +(d*f>h*g)+","+(this._x1=t+q*s)+","+(this._y1=e+q*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,o,i,a){t=+t,e=+e,a=!!a;var u=(r=+r)*Math.cos(o),s=r*Math.sin(o),c=t+u,h=e+s,d=1^a,l=a?o-i:i-o;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+c+","+h:(Math.abs(this._x1-c)>pt||Math.abs(this._y1-h)>pt)&&(this._+="L"+c+","+h),r&&(l<0&&(l=l%bt+bt),l>Se?this._+="A"+r+","+r+",0,1,"+d+","+(t-u)+","+(e-s)+"A"+r+","+r+",0,1,"+d+","+(this._x1=c)+","+(this._y1=h):l>pt&&(this._+="A"+r+","+r+",0,"+ +(l>=z)+","+d+","+(this._x1=t+r*Math.cos(i))+","+(this._y1=e+r*Math.sin(i))))},rect:function(t,e,r,o){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +o+"h"+-r+"Z"},toString:function(){return this._}};const cu=Gn;function Lt(t){return function(){return t}}function Rr(t){this._context=t}function Me(t){return new Rr(t)}function du(t){return t[0]}function lu(t){return t[1]}function Ir(t,e){var r=Lt(!0),o=null,i=Me,a=null;function u(s){var c,d,f,h=(s=function hu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(s)).length,l=!1;for(null==o&&(a=i(f=cu())),c=0;c<=h;++c)!(c<h&&r(d=s[c],c,s))===l&&((l=!l)?a.lineStart():a.lineEnd()),l&&a.point(+t(d,c,s),+e(d,c,s));if(f)return a=null,f+""||null}return t="function"==typeof t?t:void 0===t?du:Lt(t),e="function"==typeof e?e:void 0===e?lu:Lt(e),u.x=function(s){return arguments.length?(t="function"==typeof s?s:Lt(+s),u):t},u.y=function(s){return arguments.length?(e="function"==typeof s?s:Lt(+s),u):e},u.defined=function(s){return arguments.length?(r="function"==typeof s?s:Lt(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,null!=o&&(a=i(o)),u):i},u.context=function(s){return arguments.length?(null==s?o=a=null:a=i(o=s),u):o},u}function jr(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Pr(t){this._context=t}function fu(t){return new Pr(t)}Rr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Pr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:jr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:jr(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var pu={value:()=>{}};function Lr(){for(var o,t=0,e=arguments.length,r={};t<e;++t){if(!(o=arguments[t]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Fn(r)}function Fn(t){this._=t}function mu(t,e){for(var i,r=0,o=t.length;r<o;++r)if((i=t[r]).name===e)return i.value}function $r(t,e,r){for(var o=0,i=t.length;o<i;
vendor: 6,787 bytes, line 1
1++o)if(t[o].name===e){t[o]=pu,t=t.slice(0,o).concat(t.slice(o+1));break}return null!=r&&t.push({name:e,value:r}),t}Fn.prototype=Lr.prototype={constructor:Fn,on:function(t,e){var i,r=this._,o=function gu(t,e){return t.trim().split(/^|\s+/).map(function(r){var o="",i=r.indexOf(".");if(i>=0&&(o=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}(t+"",r),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<u;)if(i=(t=o[a]).type)r[i]=$r(r[i],t.name,e);else if(null==e)for(i in r)r[i]=$r(r[i],t.name,null);return this}for(;++a<u;)if((i=(t=o[a]).type)&&(i=mu(r[i],t.name)))return i},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Fn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var i,a,r=new Array(i),o=0;o<i;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,i=(a=this._[t]).length;o<i;++o)a[o].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],i=0,a=o.length;i<a;++i)o[i].value.apply(e,r)}};const Vr=Lr;function _u(){}function Be(t){return null==t?_u:function(){return this.querySelector(t)}}function Hr(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Zu(){return[]}function Yr(t){return null==t?Zu:function(){return this.querySelectorAll(t)}}function Wr(t){return function(){return this.matches(t)}}function Xr(t){return function(e){return e.matches(t)}}var bu=Array.prototype.find;function Tu(){return this.firstElementChild}var zu=Array.prototype.filter;function xu(){return this.children}function Qr(t){return new Array(t.length)}function Rn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Du(t,e,r,o,i,a){for(var s,u=0,c=e.length,h=a.length;u<h;++u)(s=e[u])?(s.__data__=a[u],o[u]=s):r[u]=new Rn(t,a[u]);for(;u<c;++u)(s=e[u])&&(i[u]=s)}function Su(t,e,r,o,i,a,u){var s,c,g,h=new Map,d=e.length,l=a.length,f=new Array(d);for(s=0;s<d;++s)(c=e[s])&&(f[s]=g=u.call(c,c.__data__,s,e)+"",h.has(g)?i[s]=c:h.set(g,c));for(s=0;s<l;++s)g=u.call(t,a[s],s,a)+"",(c=h.get(g))?(o[s]=c,c.__data__=a[s],h.delete(g)):r[s]=new Rn(t,a[s]);for(s=0;s<d;++s)(c=e[s])&&h.get(f[s])===c&&(i[s]=c)}function Mu(t){return t.__data__}function ju(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Rn.prototype={constructor:Rn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Oe="http://www.w3.org/1999/xhtml";const Jr={svg:"http://www.w3.org/2000/svg",xhtml:Oe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function In(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),Jr.hasOwnProperty(e)?{space:Jr[e],local:t}:t}function Wu(t){return function(){this.removeAttribute(t)}}function Xu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Qu(t,e){return function(){this.setAttribute(t,e)}}function Ju(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ku(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function ts(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Kr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function es(t){return function(){this.style.removeProperty(t)}}function rs(t,e,r){return function(){this.style.setProperty(t,e,r)}}function os(t,e,r){return function(){var o=e.apply(this,arguments);null==o?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function $t(t,e){return t.style.getPropertyValue(e)||Kr(t).getComputedStyle(t,null).getPropertyValue(e)}function as(t){return function(){delete this[t]}}function us(t,e){return function(){this[t]=e}}function ss(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function to(t){return t.trim().split(/^|\s+/)}function Ge(t){return t.classList||new no(t)}function no(t){this._node=t,this._names=to(t.getAttribute("class")||"")}function eo(t,e){for(var r=Ge(t),o=-1,i=e.length;++o<i;)r.add(e[o])}function ro(t,e){for(var r=Ge(t),o=-1,i=e.length;++o<i;)r.remove(e[o])}function hs(t){return function(){eo(this,t)}}function ds(t){return function(){ro(this,t)}}function ls(t,e){return function(){(e.apply(this,arguments)?eo:ro)(this,t)}}function ps(){this.textContent=""}function gs(t){return function(){this.textContent=t}}function ms(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function vs(){this.innerHTML=""}function Zs(t){return function(){this.innerHTML=t}}function ys(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function bs(){this.nextSibling&&this.parentNode.appendChild(this)}function Ts(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zs(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Oe&&e.documentElement.namespaceURI===Oe?e.createElement(t):e.createElementNS(r,t)}}function xs(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function oo(t){var e=In(t);return(e.local?xs:zs)(e)}function qs(){return null}function Cs(){var t=this.parentNode;t&&t.removeChild(this)}function Ds(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ss(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Fs(t){return function(){var e=this.__on;if(e){for(var a,r=0,o=-1,i=e.length;r<i;++r)a=e[r],t.type&&a.type!==t.type||a.name!==t.name?e[++o]=a:this.removeEventListener(a.type,a.listener,a.options);++o?e.length=o:delete this.__on}}}function Rs(t,e,r){return function(){var i,o=this.__on,a=function Os(t){return function(e){t.call(this,e,this.__data__)}}(e);if(o)for(var u=0,s=o.length;u<s;++u)if((i=o[u]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),void(i.value=e);this.addEventListener(t.type,a,r),i={type:t.type,name:t.name,value:e,listener:a,options:r},o?o.push(i):this.__on=[i]}}function io(t,e,r){var o=Kr(t),i=o.CustomEvent;"function"==typeof i?i=new i(e,r):(i=o.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dis
1patchEvent(i)}function js(t,e){return function(){return io(this,t,e)}}function Ps(t,e){return function(){return io(this,t,e.apply(this,arguments))}}no.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ao=[null];function W(t,e){this._groups=t,this._parents=e}function uo(){return new W([[document.documentElement]],ao)}W.prototype=uo.prototype={constructor:W,select:function vu(t){"function"!=typeof t&&(t=Be(t));for(var e=this._groups,r=e.length,o=new Array(r),i=0;i<r;++i)for(var c,h,a=e[i],u=a.length,s=o[i]=new Array(u),d=0;d<u;++d)(c=a[d])&&(h=t.call(c,c.__data__,d,a))&&("__data__"in c&&(h.__data__=c.__data__),s[d]=h);return new W(o,this._parents)},selectAll:function Au(t){t="function"==typeof t?function yu(t){return function(){var e=t.apply(this,arguments);return null==e?[]:Hr(e)}}(t):Yr(t);for(var e=this._groups,r=e.length,o=[],i=[],a=0;a<r;++a)for(var c,u=e[a],s=u.length,h=0;h<s;++h)(c=u[h])&&(o.push(t.call(c,c.__data__,h,u)),i.push(c));return new W(o,i)},selectChild:function Uu(t){return this.select(null==t?Tu:function wu(t){return function(){return bu.call(this.children,t)}}("function"==typeof t?t:Xr(t)))},selectChildren:function qu(t){return this.selectAll(null==t?xu:function Eu(t){return function(){return zu.call(this.children,t)}}("function"==typeof t?t:Xr(t)))},filter:function Nu(t){"function"!=typeof t&&(t=Wr(t));for(var e=this._groups,r=e.length,o=new Array(r),i=0;i<r;++i)for(var c,a=e[i],u=a.length,s=o[i]=[],h=0;h<u;++h)(c=a[h])&&t.call(c,c.__data__,h,a)&&s.push(c);return new W(o,this._parents)},data:function Bu(t,e){if(!arguments.length)return Array.from(this,Mu);var r=e?Su:Du,o=this._parents,i=this._groups;"function"!=typeof t&&(t=function ku(t){return function(){return t}}(t));for(var a=i.length,u=new Array(a),s=new Array(a),c=new Array(a),h=0;h<a;++h){var d=o[h],l=i[h],f=l.length,g=Hr(t.call(d,d&&d.__data__,h,o)),_=g.length,m=s[h]=new Array(_),y=u[h]=new Array(_);r(d,l,m,y,c[h]=new Array(f),g,e);for(var q,F,w=0,N=0;w<_;++w)if(q=m[w]){for(w>=N&&(N=w+1);!(F=y[N])&&++N<_;);q._next=F||null}}return(u=new W(u,o))._enter=s,u._exit=c,u},enter:function Cu(){return new W(this._enter||this._groups.map(Qr),this._parents)},exit:function Ou(){return new W(this._exit||this._groups.map(Qr),this._parents)},join:function Gu(t,e,r){var o=this.enter(),i=this,a=this.exit();return o="function"==typeof t?t(o):o.append(t+""),null!=e&&(i=e(i)),null==r?a.remove():r(a),o&&i?o.merge(i).order():i},merge:function Fu(t){if(!(t instanceof W))throw new Error("invalid merge");for(var e=this._groups,r=t._groups,o=e.length,a=Math.min(o,r.length),u=new Array(o),s=0;s<a;++s)for(var f,c=e[s],h=r[s],d=c.length,l=u[s]=new Array(d),g=0;g<d;++g)(f=c[g]||h[g])&&(l[g]=f);for(;s<o;++s)u[s]=e[s];return new W(u,this._parents)},selection:function Vs(){return this},order:function Ru(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var u,o=t[e],i=o.length-1,a=o[i];--i>=0;)(u=o[i])&&(a&&4^u.compareDocumentPosition(a)&&a.parentNode.insertBefore(u,a),a=u);return this},sort:function Iu(t){function e(l,f){return l&&f?t(l.__data__,f.__data__):!l-!f}t||(t=ju);for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a){for(var h,u=r[a],s=u.length,c=i[a]=new Array(s),d=0;d<s;++d)(h=u[d])&&(c[d]=h);c.sort(e)}return new W(i,this._parents).order()},call:function Pu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function Lu(){return Array.from(this)},node:function $u(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],i=0,a=o.length;i<a;++i){var u=o[i];if(u)return u}return null},size:function Vu(){let t=0;for(const e of this)++t;return t},empty:function Hu(){return!this.node()},each:function Yu(t){for(var e=this._groups,r=0,o=e.length;r<o;++r)for(var s,i=e[r],a=0,u=i.length;a<u;++a)(s=i[a])&&t.call(s,s.__data__,a,i);return this},attr:function ns(t,e){var r=In(t);
1if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((null==e?r.local?Xu:Wu:"function"==typeof e?r.local?ts:Ku:r.local?Ju:Qu)(r,e))},style:function is(t,e,r){return arguments.length>1?this.each((null==e?es:"function"==typeof e?os:rs)(t,e,r??"")):$t(this.node(),t)},property:function cs(t,e){return arguments.length>1?this.each((null==e?as:"function"==typeof e?ss:us)(t,e)):this.node()[t]},classed:function fs(t,e){var r=to(t+"");if(arguments.length<2){for(var o=Ge(this.node()),i=-1,a=r.length;++i<a;)if(!o.contains(r[i]))return!1;return!0}return this.each(("function"==typeof e?ls:e?hs:ds)(r,e))},text:function _s(t){return arguments.length?this.each(null==t?ps:("function"==typeof t?ms:gs)(t)):this.node().textContent},html:function As(t){return arguments.length?this.each(null==t?vs:("function"==typeof t?ys:Zs)(t)):this.node().innerHTML},raise:function ws(){return this.each(bs)},lower:function Us(){return this.each(Ts)},append:function Es(t){var e="function"==typeof t?t:oo(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function Ns(t,e){var r="function"==typeof t?t:oo(t),o=null==e?qs:"function"==typeof e?e:Be(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function ks(){return this.each(Cs)},clone:function Ms(t){return this.select(t?Ss:Ds)},datum:function Bs(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function Is(t,e,r){var i,u,o=function Gs(t){return t.trim().split(/^|\s+/).map(function(e){var r="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Rs:Fs,i=0;i<a;++i)this.each(s(o[i],e,r));return this}var s=this.node().__on;if(s)for(var d,c=0,h=s.length;c<h;++c)for(i=0,d=s[c];i<a;++i)if((u=o[i]).type===d.type&&u.name===d.name)return d.value},dispatch:function Ls(t,e){return this.each(("function"==typeof e?Ps:js)(t,e))},[Symbol.iterator]:function*$s(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var u,o=t[e],i=0,a=o.length;i<a;++i)(u=o[i])&&(yield u)}};const ln=uo;function Et(t){return"string"==typeof t?new W([[document.querySelector(t)]],[document.documentElement]):new W([[t]],ao)}function Fe(t){t.preventDefault(),t.stopImmediatePropagation()}function so(t){return((t=Math.exp(t))+1/t)/2}const Js=function t(e,r,o){function i(a,u){var y,Z,s=a[0],c=a[1],h=a[2],f=u[2],g=u[0]-s,_=u[1]-c,m=g*g+_*_;if(m<1e-12)Z=Math.log(f/h)/e,y=function($){return[s+$*g,c+$*_,h*Math.exp(e*$*Z)]};else{var w=Math.sqrt(m),N=(f*f-h*h+o*m)/(2*h*r*w),q=(f*f-h*h-o*m)/(2*f*r*w),F=Math.log(Math.sqrt(N*N+1)-N),O=Math.log(Math.sqrt(q*q+1)-q);Z=(O-F)/e,y=function($){var ut=$*Z,et=so(F),Ee=h/(r*w)*(et*function Qs(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*ut+F)-function Xs(t){return((t=Math.exp(t))-1/t)/2}(F));return[s+Ee*g,c+Ee*_,h*et/so(e*ut+F)]}}return y.duration=1e3*Z*e/Math.SQRT2,y}return i.rho=function(a){var u=Math.max(.001,+a),s=u*u;return t(u,s,s*s)},i}(Math.SQRT2,2,4);function qt(t,e){if(t=function Ks(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,[(o=o.matrixTransform(e.getScreenCTM().inverse())).x,o.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var jn,gn,Vt=0,fn=0,pn=0,co=1e3,Pn=0,Nt=0,Ln=0,mn="object"==typeof performance&&performance.now?performance:Date,ho="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Re(){return Nt||(ho(tc),Nt=mn.now()+Ln)}function tc(){Nt=0}function $n(){this._call=this._time=this._next=null}function lo(t,e,r){var o=new $n;return o.restart(t,e,r),o}function fo(){Nt=(Pn=mn.now())+Ln,Vt=fn=0;try{!function nc(){Re(),++Vt;for(var e,t=jn;t;)(e=Nt-t._time)>=0&&t._call.call(null,e),t=t._next;--Vt}()}finally{Vt=0,function rc(){for(var t,r,e=jn,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:jn=r);gn=t,Ie(o)}(),Nt=0}}function ec(){var t=mn.now(),e=t-Pn;e>co&&(Ln-=e,Pn=t)}function Ie(t){Vt||(fn&&(fn=clearTimeout(fn)),t-Nt>24?(t<1/0&&(fn=setTimeout(fo,t-mn.now()-Ln)),pn&&(pn=clearInterval(pn))):(pn||(Pn=mn.now(),pn=setInterval(ec,co)),Vt=1,ho(fo)))}function po(t,e,r){var o=new $n;return o.restart(i=>{o.stop(),t(i+e)},e=null==e?0:+e,r),o}$n.prototype=lo.prototype={constructor:$n,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?Re():+r)+(null==e?0:+e),!this._next&&gn!==this&&(gn?gn._next=this:jn=this,gn=this),this._call=t,this._time=r,Ie()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ie())}};var oc=Vr("start","end","cancel","interrupt"),ic=[],go=0,je=2,Vn=3,Pe=5,Hn=6;function Yn(t,e,r,o,i,a){var u=t.__transition;if(u){if(r in u)return}else t.__transition={};!function ac(t,e,r){var i,o=t.__transition;function u(h){var d,l,f,g;if(1!==r.state)return c();for(d in o)if((g=o[d]).name===r.name){if(g.state===Vn)return po(u);
vendor: 8,061 bytes, line 1
14===g.state?(g.state=Hn,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete o[d]):+d<e&&(g.state=Hn,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete o[d])}if(po(function(){r.state===Vn&&(r.state=4,r.timer.restart(s,r.delay,r.time),s(h))}),r.state=je,r.on.call("start",t,t.__data__,r.index,r.group),r.state===je){for(r.state=Vn,i=new Array(f=r.tween.length),d=0,l=-1;d<f;++d)(g=r.tween[d].value.call(t,t.__data__,r.index,r.group))&&(i[++l]=g);i.length=l+1}}function s(h){for(var d=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(c),r.state=Pe,1),l=-1,f=i.length;++l<f;)i[l].call(t,d);r.state===Pe&&(r.on.call("end",t,t.__data__,r.index,r.group),c())}function c(){for(var h in r.state=Hn,r.timer.stop(),delete o[e],o)return;delete t.__transition}o[e]=r,r.timer=lo(function a(h){r.state=1,r.timer.restart(u,r.delay,r.time),r.delay<=h&&u(h-r.delay)},0,r.time)}(t,r,{name:e,index:o,group:i,on:oc,tween:ic,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:go})}function Le(t,e){var r=rt(t,e);if(r.state>go)throw new Error("too late; already scheduled");return r}function ht(t,e){var r=rt(t,e);if(r.state>Vn)throw new Error("too late; already running");return r}function rt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Wn(t,e){var o,i,u,r=t.__transition,a=!0;if(r){for(u in e=null==e?null:e+"",r)(o=r[u]).name===e?(i=o.state>je&&o.state<Pe,o.state=Hn,o.timer.stop(),o.on.call(i?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[u]):a=!1;a&&delete t.__transition}}function wt(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Xn,vo=180/Math.PI,$e={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Zo(t,e,r,o,i,a){var u,s,c;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(c=t*r+e*o)&&(r-=t*c,o-=e*c),(s=Math.sqrt(r*r+o*o))&&(r/=s,o/=s,c/=s),t*o<e*r&&(t=-t,e=-e,c=-c,u=-u),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*vo,skewX:Math.atan(c)*vo,scaleX:u,scaleY:s}}function yo(t,e,r,o){function i(h){return h.length?h.pop()+" ":""}return function(h,d){var l=[],f=[];return h=t(h),d=t(d),function a(h,d,l,f,g,_){if(h!==l||d!==f){var m=g.push("translate(",null,e,null,r);_.push({i:m-4,x:wt(h,l)},{i:m-2,x:wt(d,f)})}else(l||f)&&g.push("translate("+l+e+f+r)}(h.translateX,h.translateY,d.translateX,d.translateY,l,f),function u(h,d,l,f){h!==d?(h-d>180?d+=360:d-h>180&&(h+=360),f.push({i:l.push(i(l)+"rotate(",null,o)-2,x:wt(h,d)})):d&&l.push(i(l)+"rotate("+d+o)}(h.rotate,d.rotate,l,f),function s(h,d,l,f){h!==d?f.push({i:l.push(i(l)+"skewX(",null,o)-2,x:wt(h,d)}):d&&l.push(i(l)+"skewX("+d+o)}(h.skewX,d.skewX,l,f),function c(h,d,l,f,g,_){if(h!==l||d!==f){var m=g.push(i(g)+"scale(",null,",",null,")");_.push({i:m-4,x:wt(h,l)},{i:m-2,x:wt(d,f)})}else(1!==l||1!==f)&&g.push(i(g)+"scale("+l+","+f+")")}(h.scaleX,h.scaleY,d.scaleX,d.scaleY,l,f),h=d=null,function(g){for(var y,_=-1,m=f.length;++_<m;)l[(y=f[_]).i]=y.x(g);return l.join("")}}}var hc=yo(function sc(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?$e:Zo(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),dc=yo(function cc(t){return null!=t&&(Xn||(Xn=document.createElementNS("http://www.w3.org/2000/svg","g")),Xn.setAttribute("transform",t),t=Xn.transform.baseVal.consolidate())?Zo((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):$e},", ",")",")");function lc(t,e){var r,o;return function(){var i=ht(this,t),a=i.tween;if(a!==r)for(var u=0,s=(o=r=a).length;u<s;++u)if(o[u].name===e){(o=o.slice()).splice(u,1);break}i.tween=o}}function fc(t,e,r){var o,i;if("function"!=typeof r)throw new Error;return function(){var a=ht(this,t),u=a.tween;if(u!==o){i=(o=u).slice();for(var s={name:e,value:r},c=0,h=i.length;c<h;++c)if(i[c].name===e){i[c]=s;break}c===h&&i.push(s)}a.tween=i}}function Ve(t,e,r){var o=t._id;return t.each(function(){var i=ht(this,o);(i.value||(i.value={}))[e]=r.apply(this,arguments)}),function(i){return rt(i,o).value[e]}}function He(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Ao(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function _n(){}var Qn=1/.7,Ht="\\s*([+-]?\\d+)\\s*",Zn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",dt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gc=/^#([0-9a-f]{3,8})$/,mc=new RegExp("^rgb\\("+[Ht,Ht,Ht]+"\\)$"),_c=new RegExp("^rgb\\("+[dt,dt,dt]+"\\)$"),vc=new RegExp("^rgba\\("+[Ht,Ht,Ht,Zn]+"\\)$"),Zc=new RegExp("^rgba\\("+[dt,dt,dt,Zn]+"\\)$"),yc=new RegExp("^hsl\\("+[Zn,dt,dt]+"\\)$"),Ac=new RegExp("^hsla\\("+[Zn,dt,dt,Zn]+"\\)$"),bo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function wo(){return this.rgb().formatHex()}function To(){return this.rgb().formatRgb()}function yn(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=gc.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Uo(e):3===r?new J(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Jn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Jn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=mc.exec(t))?new J(e[1],e[2],e[3],1):(e=_c.exec(t))?new J(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=vc.exec(t))?Jn(e[1],e[2],e[3],e[4]):(e=Zc.exec(t))?Jn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=yc.exec(t))?Eo(e[1],e[2]/100,e[3]/100,1):(e=Ac.exec(t))?Eo(e[1],e[2]/100,e[3]/100,e[4]):bo.hasOwnProperty(t)?Uo(bo[t]):"transparent"===t?new J(NaN,NaN,NaN,0):null}
1function Uo(t){return new J(t>>16&255,t>>8&255,255&t,1)}function Jn(t,e,r,o){return o<=0&&(t=e=r=NaN),new J(t,e,r,o)}function Kn(t,e,r,o){return 1===arguments.length?function wc(t){return t instanceof _n||(t=yn(t)),t?new J((t=t.rgb()).r,t.g,t.b,t.opacity):new J}(t):new J(t,e,r,o??1)}function J(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}function zo(){return"#"+Ye(this.r)+Ye(this.g)+Ye(this.b)}function xo(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Ye(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Eo(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new lt(t,e,r,o)}function qo(t){if(t instanceof lt)return new lt(t.h,t.s,t.l,t.opacity);if(t instanceof _n||(t=yn(t)),!t)return new lt;if(t instanceof lt)return t;var e=(t=t.rgb()).r/255,r=t.g/255,o=t.b/255,i=Math.min(e,r,o),a=Math.max(e,r,o),u=NaN,s=a-i,c=(a+i)/2;return s?(u=e===a?(r-o)/s+6*(r<o):r===a?(o-e)/s+2:(e-r)/s+4,s/=c<.5?a+i:2-a-i,u*=60):s=c>0&&c<1?0:u,new lt(u,s,c,t.opacity)}function lt(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}function We(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function No(t,e,r,o,i){var a=t*t,u=a*t;return((1-3*t+3*a-u)*e+(4-6*a+3*u)*r+(1+3*t+3*a-3*u)*o+u*i)/6}He(_n,yn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:wo,formatHex:wo,formatHsl:function bc(){return qo(this).formatHsl()},formatRgb:To,toString:To}),He(J,Kn,Ao(_n,{brighter:function(t){return t=null==t?Qn:Math.pow(Qn,t),new J(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new J(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zo,formatHex:zo,formatRgb:xo,toString:xo})),He(lt,function Tc(t,e,r,o){return 1===arguments.length?qo(t):new lt(t,e,r,o??1)},Ao(_n,{brighter:function(t){return t=null==t?Qn:Math.pow(Qn,t),new lt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new lt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,i=2*r-o;return new J(We(t>=240?t-240:t+120,i,o),We(t,i,o),We(t<120?t+240:t-120,i,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Co=t=>()=>t;function Do(t,e){var r=e-t;return r?function ko(t,e){return function(r){return t+r*e}}(t,r):Co(isNaN(t)?e:t)}const So=function t(e){var r=function Ec(t){return 1==(t=+t)?Do:function(e,r){return r-e?function xc(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(o){return Math.pow(t+o*e,r)}}(e,r,t):Co(isNaN(e)?r:e)}}(e);function o(i,a){var u=r((i=Kn(i)).r,(a=Kn(a)).r),s=r(i.g,a.g),c=r(i.b,a.b),h=Do(i.opacity,a.opacity);return function(d){return i.r=u(d),i.g=s(d),i.b=c(d),i.opacity=h(d),i+""}}return o.gamma=t,o}(1);function Mo(t){return function(e){var u,s,r=e.length,o=new Array(r),i=new Array(r),a=new Array(r);for(u=0;u<r;++u)s=Kn(e[u]),o[u]=s.r||0,i[u]=s.g||0,a[u]=s.b||0;return o=t(o),i=t(i),a=t(a),s.opacity=1,function(c){return s.r=o(c),s.g=i(c),s.b=a(c),s+""}}}Mo(function Uc(t){var e=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[o],a=t[o+1];return No((r-o/e)*e,o>0?t[o-1]:2*i-a,i,a,o<e-1?t[o+2]:2*a-i)}}),Mo(function zc(t){var e=t.length;return function(r){var o=Math.floor(((r%=1)<0?++r:r)*e);return No((r-o/e)*e,t[(o+e-1)%e],t[o%e],t[(o+1)%e],t[(o+2)%e])}});var Xe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qe=new RegExp(Xe.source,"g");function Cc(t,e){var o,i,a,r=Xe.lastIndex=Qe.lastIndex=0,u=-1,s=[],c=[];for(t+="",e+="";(o=Xe.exec(t))&&(i=Qe.exec(e));)(a=i.index)>r&&(a=e.slice(r,a),s[u]?s[u]+=a:s[++u]=a),(o=o[0])===(i=i[0])?s[u]?s[u]+=i:s[++u]=i:(s[++u]=null,c.push({i:u,x:wt(o,i)})),r=Qe.lastIndex;return r<e.length&&(a=e.slice(r),s[u]?s[u]+=a:s[++u]=a),s.length<2?c[0]?function Nc(t){return function(e){return t(e)+""}}(c[0].x):function qc(t){return function(){return t}}(e):(e=c.length,function(h){for(var l,d=0;d<e;++d)s[(l=c[d]).i]=l.x(h);return s.join("")})}function Bo(t,e){var r;return("number"==typeof e?wt:e instanceof yn?So:(r=yn(e))?(e=r,So):Cc)(t,e)}function kc(t){return function(){this.removeAttribute(t)}}function Dc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sc(t,e,r){var o,a,i=r+"";return function(){var u=this.getAttribute(t);return u===i?null:u===o?a:a=e(o=u,r)}}function Mc(t,e,r){var o,a,i=r+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===i?null:u===o?a:a=e(o=u,r)}}function Bc(t,e,r){var o,i,a;return function(){var u,c,s=r(this);return null==s?void this.removeAttribute(t):(u=this.getAttribute(t))===(c=s+"")?null:u===o&&c===i?a:(i=c,a=e(o=u,s))}}function Oc(t,e,r){var o,i,a;return function(){var u,c,s=r(this);return null==s?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local))===(c=s+"")?null:u===o&&c===i?a:(i=c,a=e(o=u,s))}}function Ic(t,e){var r,o;function i(){var a=e.apply(this,arguments);return a!==o&&(r=(o=a)&&function Rc(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}(t,a)),r}return i._value=e,i}function jc(t,e){var r,o;function i(){var a=e.apply(this,arguments);return a!==o&&(r=(o=a)&&function Fc(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}(t,a)),r}return i._value=e,i}function Lc(t,e){return function(){Le(this,t).delay=+e.apply(this,arguments)}}function $c(t,e){return e=+e,function(){Le(this,t).delay=e}}function Hc(t,e){return function(){ht(this,t).duration=+e.apply(this,arguments)}}function Yc(t,e){return e=+e,function(){ht(this,t).duration=e}}var ch=ln.prototype.constructor;function Oo(t){return function(){this.style.removeProperty(t)}}var xh=0;function gt(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function Go(t){return ln().transition(t)}function Fo(){return++xh}var Ct=ln.prototype;gt.prototype=Go.prototype={constructor:gt,select:function uh(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=Be(t));for(var o=this._groups,i=o.length,a=new Array(i),u=0;u<i;++u)for(var d,l,s=o[u],c=s.length,h=a[u]=new Array(c),f=0;f<c;
1++f)(d=s[f])&&(l=t.call(d,d.__data__,f,s))&&("__data__"in d&&(l.__data__=d.__data__),h[f]=l,Yn(h[f],e,r,f,h,rt(d,r)));return new gt(a,this._parents,e,r)},selectAll:function sh(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=Yr(t));for(var o=this._groups,i=o.length,a=[],u=[],s=0;s<i;++s)for(var d,c=o[s],h=c.length,l=0;l<h;++l)if(d=c[l]){for(var g,f=t.call(d,d.__data__,l,c),_=rt(d,r),m=0,y=f.length;m<y;++m)(g=f[m])&&Yn(g,e,r,m,f,_);a.push(f),u.push(d)}return new gt(a,u,e,r)},filter:function th(t){"function"!=typeof t&&(t=Wr(t));for(var e=this._groups,r=e.length,o=new Array(r),i=0;i<r;++i)for(var c,a=e[i],u=a.length,s=o[i]=[],h=0;h<u;++h)(c=a[h])&&t.call(c,c.__data__,h,a)&&s.push(c);return new gt(o,this._parents,this._name,this._id)},merge:function nh(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,o=e.length,a=Math.min(o,r.length),u=new Array(o),s=0;s<a;++s)for(var f,c=e[s],h=r[s],d=c.length,l=u[s]=new Array(d),g=0;g<d;++g)(f=c[g]||h[g])&&(l[g]=f);for(;s<o;++s)u[s]=e[s];return new gt(u,this._parents,this._name,this._id)},selection:function hh(){return new ch(this._groups,this._parents)},transition:function Uh(){for(var t=this._name,e=this._id,r=Fo(),o=this._groups,i=o.length,a=0;a<i;++a)for(var c,u=o[a],s=u.length,h=0;h<s;++h)if(c=u[h]){var d=rt(c,e);Yn(c,t,r,h,u,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new gt(o,this._parents,t,r)},call:Ct.call,nodes:Ct.nodes,node:Ct.node,size:Ct.size,empty:Ct.empty,each:Ct.each,on:function oh(t,e){var r=this._id;return arguments.length<2?rt(this.node(),r).on.on(t):this.each(function rh(t,e,r){var o,i,a=function eh(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||"start"===e})}(e)?Le:ht;return function(){var u=a(this,t),s=u.on;s!==o&&(i=(o=s).copy()).on(e,r),u.on=i}}(r,t,e))},attr:function Gc(t,e){var r=In(t),o="transform"===r?dc:Bo;return this.attrTween(t,"function"==typeof e?(r.local?Oc:Bc)(r,o,Ve(this,"attr."+t,e)):null==e?(r.local?Dc:kc)(r):(r.local?Mc:Sc)(r,o,e))},attrTween:function Pc(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var o=In(t);return this.tween(r,(o.local?Ic:jc)(o,e))},style:function gh(t,e,r){var o="transform"==(t+="")?hc:Bo;return null==e?this.styleTween(t,function dh(t,e){var r,o,i;return function(){var a=$t(this,t),u=(this.style.removeProperty(t),$t(this,t));return a===u?null:a===r&&u===o?i:i=e(r=a,o=u)}}(t,o)).on("end.style."+t,Oo(t)):"function"==typeof e?this.styleTween(t,function fh(t,e,r){var o,i,a;return function(){var u=$t(this,t),s=r(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=$t(this,t)),u===c?null:u===o&&c===i?a:(i=c,a=e(o=u,s))}}(t,o,Ve(this,"style."+t,e))).each(function ph(t,e){var r,o,i,s,a="style."+e,u="end."+a;return function(){var c=ht(this,t),h=c.on,d=null==c.value[a]?s||(s=Oo(e)):void 0;(h!==r||i!==d)&&(o=(r=h).copy()).on(u,i=d),c.on=o}}(this._id,t)):this.styleTween(t,function lh(t,e,r){var o,a,i=r+"";return function(){var u=$t(this,t);return u===i?null:u===o?a:a=e(o=u,r)}}(t,o,e),r).on("end.style."+t,null)},styleTween:function vh(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(null==e)return this.tween(o,null);if("function"!=typeof e)throw new Error;return this.tween(o,function _h(t,e,r){var o,i;function a(){var u=e.apply(this,arguments);return u!==i&&(o=(i=u)&&function mh(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}(t,u,r)),o}return a._value=e,a}(t,e,r??""))},text:function Ah(t){return this.tween("text","function"==typeof t?function yh(t){return function(){var e=t(this);this.textContent=e??""}}(Ve(this,"text",t)):function Zh(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function Th(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function wh(t){var e,r;function o(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&function bh(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return o._value=t,o}(t))},remove:function ah(){return this.on("end.remove",function ih(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function pc(t,e){var r=this._id;if(t+="",arguments.length<2){for(var u,o=rt(this.node(),r).tween,i=0,a=o.length;i<a;++i)if((u=o[i]).name===t)return u.value;return null}return this.each((null==e?lc:fc)(r,t,e))},delay:function Vc(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Lc:$c)(e,t)):rt(this.node(),e).delay},duration:function Wc(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Hc:Yc)(e,t)):rt(this.node(),e).duration},ease:function Qc(t){var e=this._id;return arguments.length?this.each(function Xc(t,e){if("function"!=typeof e)throw new Error;return function(){ht(this,t).ease=e}}(e,t)):rt(this.node(),e).ease},easeVarying:function Kc(t){if("function"!=typeof t)throw new Error;
1return this.each(function Jc(t,e){return function(){var r=e.apply(this,arguments);if("function"!=typeof r)throw new Error;ht(this,t).ease=r}}(this._id,t))},end:function zh(){var t,e,r=this,o=r._id,i=r.size();return new Promise(function(a,u){var s={value:u},c={value:function(){0==--i&&a()}};r.each(function(){var h=ht(this,o),d=h.on;d!==t&&((e=(t=d).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),h.on=e}),0===i&&a()})},[Symbol.iterator]:Ct[Symbol.iterator]};var qh={time:null,delay:0,duration:250,ease:function Eh(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Nh(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}ln.prototype.interrupt=function uc(t){return this.each(function(){Wn(this,t)})},ln.prototype.transition=function Ch(t){var e,r;t instanceof gt?(e=t._id,t=t._name):(e=Fo(),(r=qh).time=Re(),t=null==t?null:t+"");for(var o=this._groups,i=o.length,a=0;a<i;++a)for(var c,u=o[a],s=u.length,h=0;h<s;++h)(c=u[h])&&Yn(c,t,e,h,u,r||Nh(c,e));return new gt(o,this._parents,t,e)};const te=t=>()=>t;function Dh(t,{sourceEvent:e,target:r,transform:o,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function mt(t,e,r){this.k=t,this.x=e,this.y=r}mt.prototype={constructor:mt,scale:function(t){return 1===t?this:new mt(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new mt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var An=new mt(1,0,0);function Ro(t){for(;!t.__zoom;)if(!(t=t.parentNode))return An;return t.__zoom}function Je(t){t.stopImmediatePropagation()}function bn(t){t.preventDefault(),t.stopImmediatePropagation()}function Sh(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Mh(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Io(){return this.__zoom||An}function Bh(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Oh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Gh(t,e,r){var o=t.invertX(e[0][0])-r[0][0],i=t.invertX(e[1][0])-r[1][0],a=t.invertY(e[0][1])-r[0][1],u=t.invertY(e[1][1])-r[1][1];return t.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}Ro.prototype=mt.prototype;var Lo,X,Yt,wn,t,Rh=E(2905),jo=E(7582),K=E(6825),Po=E(6700);(t=Lo||(Lo={}))[t.META=0]="META",t[t.OP=1]="OP",t[t.SERIES=2]="SERIES",function(t){t[t.META=0]="META",t[t.NODE=1]="NODE",t[t.BRIDGE=2]="BRIDGE"}(X||(X={})),function(t){t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(Yt||(Yt={})),function(t){t[t.META=0]="META",t[t.CORE=1]="CORE",t[t.BRIDGE=2]="BRIDGE"}(wn||(wn={}));var ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ke(t,e){return t(e={exports:{}},e.exports),e.exports}var Wt=function(t,e){return t===e||t!=t&&e!=e},ee=function(t,e){for(var r=t.length;r--;)if(Wt(t[r][0],e))return r;return-1},jh=Array.prototype.splice;function Xt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}Xt.prototype.clear=function(){this.__data__=[],this.size=0},Xt.prototype.delete=function(t){var e=this.__data__,r=ee(e,t);return!(r<0||(r==e.length-1?e.pop():jh.call(e,r,1),--this.size,0))},Xt.prototype.get=function(t){var e=this.__data__,r=ee(e,t);return r<0?void 0:e[r][1]},Xt.prototype.has=function(t){return ee(this.__data__,t)>-1}
1,Xt.prototype.set=function(t,e){var r=this.__data__,o=ee(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};var Yo,re=Xt,$o="object"==typeof ne&&ne&&ne.Object===Object&&ne,Qh="object"==typeof self&&self&&self.Object===Object&&self,ot=$o||Qh||Function("return this")(),tt=ot.Symbol,Vo=Object.prototype,Jh=Vo.hasOwnProperty,Kh=Vo.toString,Tn=tt?tt.toStringTag:void 0,nd=Object.prototype.toString,Ho=tt?tt.toStringTag:void 0,Tt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ho&&Ho in Object(t)?function(t){var e=Jh.call(t,Tn),r=t[Tn];try{t[Tn]=void 0;var o=!0}catch{}var i=Kh.call(t);return o&&(e?t[Tn]=r:delete t[Tn]),i}(t):function(t){return nd.call(t)}(t)},Q=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Un=function(t){if(!Q(t))return!1;var e=Tt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},tr=ot["__core-js_shared__"],Wo=(Yo=/[^.]+$/.exec(tr&&tr.keys&&tr.keys.IE_PROTO||""))?"Symbol(src)_1."+Yo:"",od=Function.prototype.toString,kt=function(t){if(null!=t){try{return od.call(t)}catch{}try{return t+""}catch{}}return""},id=/^\[object .+?Constructor\]$/,hd=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=function(t,e){var r=function(t,e){return t?.[e]}(t,e);return function(t){return!(!Q(t)||function(t){return!!Wo&&Wo in t}(t))&&(Un(t)?hd:id).test(kt(t))}(r)?r:void 0},zn=Dt(ot,"Map"),xn=Dt(Object,"create"),gd=Object.prototype.hasOwnProperty,_d=Object.prototype.hasOwnProperty;function Qt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}Qt.prototype.clear=function(){this.__data__=xn?xn(null):{},this.size=0},Qt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Qt.prototype.get=function(t){var e=this.__data__;if(xn){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return gd.call(e,t)?e[t]:void 0},Qt.prototype.has=function(t){var e=this.__data__;return xn?void 0!==e[t]:_d.call(e,t)},Qt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=xn&&void 0===e?"__lodash_hash_undefined__":e,this};var Xo=Qt,oe=function(t,e){var r=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?r["string"==typeof e?"string":"hash"]:r.map};function Jt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}Jt.prototype.clear=function(){this.size=0,this.__data__={hash:new Xo,map:new(zn||re),string:new Xo}},Jt.prototype.delete=function(t){var e=oe(this,t).delete(t);return this.size-=e?1:0,e},Jt.prototype.get=function(t){return oe(this,t).get(t)},Jt.prototype.has=function(t){return oe(this,t).has(t)},Jt.prototype.set=function(t,e){var r=oe(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};var ie=Jt;function Kt(t){var e=this.__data__=new re(t);this.size=e.size}Kt.prototype.clear=function(){this.__data__=new re,this.size=0},Kt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Kt.prototype.get=function(t){return this.__data__.get(t)},Kt.prototype.has=function(t){return this.__data__.has(t)},Kt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof re){var o=r.__data__;if(!zn||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new ie(o)}return r.set(t,e),this.size=r.size,this};var tn=Kt,nr=function(t,e){for(var r=-1,o=null==t?0:t.length;++r<o&&!1!==e(t[r],r,t););return t},ae=function(){try{var t=Dt(Object,"defineProperty");return t({},"",{}),t}catch{}}(),ue=function(t,e,r){"__proto__"==e&&ae?ae(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},xd=Object.prototype.hasOwnProperty,se=function(t,e,r){var o=t[e];xd.call(t,e)&&Wt(o,r)&&(void 0!==r||e in t)||ue(t,e,r)},En=function(t,e,r,o){var i=!r;r||(r={});for(var a=-1,u=e.length;++a<u;){var s=e[a],c=o?o(r[s],t[s],s,r,t):void 0;void 0===c&&(c=t[s]),i?ue(r,s,c):se(r,s,c)}return r},it=function(t){return null!=t&&"object"==typeof t},Qo=function(t){return it(t)&&"[object Arguments]"==Tt(t)},Jo=Object.prototype,qd=Jo.hasOwnProperty,Nd=Jo.propertyIsEnumerable,nn=Qo(function(){return arguments}())?Qo:function(t){return it(t)&&qd.call(t,"callee")&&!Nd.call(t,"callee")},P=Array.isArray,Cd=function(){return!1},St=Ke(function(t,e){var r=e&&!e.nodeType&&e,o=r&&t&&!t.nodeType&&t,i=o&&o.exports===r?ot.Buffer:void 0;t.exports=(i?i.isBuffer:void 0)||Cd}),kd=/^(?:0|[1-9]\d*)$/,ce=function(t,e){var r=typeof t;return!!(e=e??9007199254740991)&&("number"==r||"symbol"!=r&&kd.test(t))&&t>-1&&t%1==0&&t<e},er=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},j={};
1j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Arguments]"]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object Boolean]"]=j["[object DataView]"]=j["[object Date]"]=j["[object Error]"]=j["[object Function]"]=j["[object Map]"]=j["[object Number]"]=j["[object Object]"]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object WeakMap]"]=!1;var he=function(t){return function(e){return t(e)}},en=Ke(function(t,e){var r=e&&!e.nodeType&&e,o=r&&t&&!t.nodeType&&t,i=o&&o.exports===r&&$o.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch{}}();t.exports=a}),Ko=en&&en.isTypedArray,qn=Ko?he(Ko):function(t){return it(t)&&er(t.length)&&!!j[Tt(t)]},Sd=Object.prototype.hasOwnProperty,ti=function(t,e){var r=P(t),o=!r&&nn(t),i=!r&&!o&&St(t),a=!r&&!o&&!i&&qn(t),u=r||o||i||a,s=u?function(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}(t.length,String):[],c=s.length;for(var h in t)!e&&!Sd.call(t,h)||u&&("length"==h||i&&("offset"==h||"parent"==h)||a&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||ce(h,c))||s.push(h);return s},Md=Object.prototype,de=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Md)},ni=function(t,e){return function(r){return t(e(r))}},Bd=ni(Object.keys,Object),Od=Object.prototype.hasOwnProperty,rr=function(t){if(!de(t))return Bd(t);var e=[];for(var r in Object(t))Od.call(t,r)&&"constructor"!=r&&e.push(r);return e},_t=function(t){return null!=t&&er(t.length)&&!Un(t)},Ut=function(t){return _t(t)?ti(t):rr(t)},Rd=Object.prototype.hasOwnProperty,Mt=function(t){return _t(t)?ti(t,!0):function(t){if(!Q(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=de(t),r=[];for(var o in t)("constructor"!=o||!e&&Rd.call(t,o))&&r.push(o);return r}(t)},ei=Ke(function(t,e){var r=e&&!e.nodeType&&e,o=r&&t&&!t.nodeType&&t,i=o&&o.exports===r?ot.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(u,s){if(s)return u.slice();var c=u.length,h=a?a(c):new u.constructor(c);return u.copy(h),h}}),ri=function(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e},oi=function(t,e){for(var r=-1,o=null==t?0:t.length,i=0,a=[];++r<o;){var u=t[r];e(u,r,t)&&(a[i++]=u)}return a},ii=function(){return[]},Pd=Object.prototype.propertyIsEnumerable,ai=Object.getOwnPropertySymbols,or=ai?function(t){return null==t?[]:(t=Object(t),oi(ai(t),function(e){return Pd.call(t,e)}))}:ii,ir=function(t,e){for(var r=-1,o=e.length,i=t.length;++r<o;)t[i+r]=e[r];return t},le=ni(Object.getPrototypeOf,Object),ui=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)ir(e,or(t)),t=le(t);return e}:ii,si=function(t,e,r){var o=e(t);return P(t)?o:ir(o,r(t))},ar=function(t){return si(t,Ut,or)},Vd=function(t){return si(t,Mt,ui)},ur=Dt(ot,"DataView"),sr=Dt(ot,"Promise"),rn=Dt(ot,"Set"),cr=Dt(ot,"WeakMap"),Hd=kt(ur),Yd=kt(zn),Wd=kt(sr),Xd=kt(rn),Qd=kt(cr),Bt=Tt;(ur&&"[object DataView]"!=Bt(new ur(new ArrayBuffer(1)))||zn&&"[object Map]"!=Bt(new zn)||sr&&"[object Promise]"!=Bt(sr.resolve())||rn&&"[object Set]"!=Bt(new rn)||cr&&"[object WeakMap]"!=Bt(new cr))&&(Bt=function(t){var e=Tt(t),r="[object Object]"==e?t.constructor:void 0,o=r?kt(r):"";if(o)switch(o){case Hd:return"[object DataView]";case Yd:return"[object Map]";case Wd:return"[object Promise]";case Xd:return"[object Set]";case Qd:return"[object WeakMap]"}return e});var Ot=Bt,Jd=Object.prototype.hasOwnProperty,fe=ot.Uint8Array,hr=function(t){var e=new t.constructor(t.byteLength);return new fe(e).set(new fe(t)),e},nl=/\w*$/,ci=tt?tt.prototype:void 0,hi=ci?ci.valueOf:void 0,di=function(t,e){var r=e?hr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)},li=Object.create,fi=function(){function t(){}return function(e){if(!Q(e))return{};if(li)return li(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),pi=function(t){return"function"!=typeof t.constructor||de(t)?{}:fi(le(t))},gi=en&&en.isMap,al=gi?he(gi):function(t){return it(t)&&"[object Map]"==Ot(t)},mi=en&&en.isSet,sl=mi?he(mi):function(t){return it(t)&&"[object Set]"==Ot(t)},R={};R["[object Arguments]"]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object DataView]"]=R["[object Boolean]"]=R["[object Date]"]=R["[object Float32Array]"]=R["[object Float64Array
1]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Map]"]=R["[object Number]"]=R["[object Object]"]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object Symbol]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Error]"]=R["[object Function]"]=R["[object WeakMap]"]=!1;var _i=function t(e,r,o,i,a,u){var s,c=1&r,h=2&r,d=4&r;if(o&&(s=a?o(e,i,a,u):o(e)),void 0!==s)return s;if(!Q(e))return e;var l=P(e);if(l){if(s=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Jd.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(e),!c)return ri(e,s)}else{var f=Ot(e),g="[object Function]"==f||"[object GeneratorFunction]"==f;if(St(e))return ei(e,c);if("[object Object]"==f||"[object Arguments]"==f||g&&!a){if(s=h||g?{}:pi(e),!c)return h?function(t,e){return En(t,ui(t),e)}(e,function(t,e){return t&&En(e,Mt(e),t)}(s,e)):function(t,e){return En(t,or(t),e)}(e,function(t,e){return t&&En(e,Ut(e),t)}(s,e))}else{if(!R[f])return a?e:{};s=function(t,e,r){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return hr(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var r=e?hr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return di(t,r);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,nl.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return function(t){return hi?Object(hi.call(t)):{}}(t)}}(e,f,c)}}u||(u=new tn);var _=u.get(e);if(_)return _;u.set(e,s),sl(e)?e.forEach(function(y){s.add(t(y,r,o,y,e,u))}):al(e)&&e.forEach(function(y,Z){s.set(Z,t(y,r,o,Z,e,u))});var m=l?void 0:(d?h?Vd:ar:h?Mt:Ut)(e);return nr(m||e,function(y,Z){m&&(y=e[Z=y]),se(s,Z,t(y,r,o,Z,e,u))}),s},dr=function(t){return function(){return t}},lr=function(e,r,o){for(var i=-1,a=Object(e),u=o(e),s=u.length;s--;){var c=u[++i];if(!1===r(a[c],c,a))break}return e},fr=function(t,e){return t&&lr(t,e,Ut)},pe=function(t,e){return function(r,o){if(null==r)return r;if(!_t(r))return t(r,o);for(var i=r.length,a=-1,u=Object(r);++a<i&&!1!==o(u[a],a,u););return r}}(fr),Gt=function(t){return t},vi=function(t){return"function"==typeof t?t:Gt},Zi=function(t,e){return(P(t)?nr:pe)(t,vi(e))},yi=Zi,hl=function(t,e){var r=[];return pe(t,function(o,i,a){e(o,i,a)&&r.push(o)}),r};function ge(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new ie;++e<r;)this.add(t[e])}ge.prototype.add=ge.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ge.prototype.has=function(t){return this.__data__.has(t)};var Ai=ge,fl=function(t,e){for(var r=-1,o=null==t?0:t.length;++r<o;)if(e(t[r],r,t))return!0;return!1},bi=function(t,e){return t.has(e)},wi=function(t,e,r,o,i,a){var u=1&r,s=t.length,c=e.length;if(s!=c&&!(u&&c>s))return!1;var h=a.get(t),d=a.get(e);if(h&&d)return h==e&&d==t;var l=-1,f=!0,g=2&r?new Ai:void 0;for(a.set(t,e),a.set(e,t);++l<s;){var _=t[l],m=e[l];if(o)var y=u?o(m,_,l,e,t,a):o(_,m,l,t,e,a);if(void 0!==y){if(y)continue;f=!1;break}if(g){if(!fl(e,function(Z,w){if(!bi(g,w)&&(_===Z||i(_,Z,r,o,a)))return g.push(w)})){f=!1;break}}else if(_!==m&&!i(_,m,r,o,a)){f=!1;break}}return a.delete(t),a.delete(e),f},pl=function(t){var e=-1,r=Array(t.size);return t.forEach(function(o,i){r[++e]=[i,o]}),r},pr=function(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r},Ti=tt?tt.prototype:void 0,gr=Ti?Ti.valueOf:void 0,ml=Object.prototype.hasOwnProperty,Ui=Object.prototype.hasOwnProperty,zi=function t(e,r,o,i,a){return e===r||(null==e||null==r||!it(e)&&!it(r)?e!=e&&r!=r:function(t,e,r,o,i,a){var u=P(t),s=P(e),c=u?"[object Array]":Ot(t),h=s?"[object Array]":Ot(e),d="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),l="[object Object]"==(h="[object Arguments]"==h?"[object Object]":h),f=c==h;if(f&&St(t)){if(!St(e))return!1;u=!0,d=!1}if(f&&!d)return a||(a=new tn),u||qn(t)?wi(t,e,r,o,i,a):function(t,e,r,o,i,a,u){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!a(new fe(t),new fe(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Wt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=pl;case"[object Set]":if(s||(s=pr),t.size!=e.size&&!(1&o))return!1;var h=u.get(t);if(h)return h==e;o|=2,u.set(t,e);var d=wi(s(t),s(e),o,i,a,u);return u.delete(t),d;case"[object Symbol]":if(gr)return gr.call(t)==gr.call(e)}return!1}(t,e,c,r,o,i,a);if(!(1&r)){var g=d&&Ui.call(t,"__wrapped__"),_=l&&Ui.call(e,"__wrapped__");
1if(g||_){var m=g?t.value():t,y=_?e.value():e;return a||(a=new tn),i(m,y,r,o,a)}}return!!f&&(a||(a=new tn),function(t,e,r,o,i,a){var u=1&r,s=ar(t),c=s.length;if(c!=ar(e).length&&!u)return!1;for(var h=c;h--;){var d=s[h];if(!(u?d in e:ml.call(e,d)))return!1}var l=a.get(t),f=a.get(e);if(l&&f)return l==e&&f==t;var g=!0;a.set(t,e),a.set(e,t);for(var _=u;++h<c;){var m=t[d=s[h]],y=e[d];if(o)var Z=u?o(y,m,d,e,t,a):o(m,y,d,t,e,a);if(!(void 0===Z?m===y||i(m,y,r,o,a):Z)){g=!1;break}_||(_="constructor"==d)}if(g&&!_){var w=t.constructor,N=e.constructor;w==N||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof N&&N instanceof N||(g=!1)}return a.delete(t),a.delete(e),g}(t,e,r,o,i,a))}(e,r,o,i,t,a))},xi=function(t){return t==t&&!Q(t)},Ei=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},Ft=function(t){return"symbol"==typeof t||it(t)&&"[object Symbol]"==Tt(t)},bl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wl=/^\w*$/,mr=function(t,e){if(P(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ft(t))||wl.test(t)||!bl.test(t)||null!=e&&t in Object(e)};function _r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var o=arguments,i=e?e.apply(this,o):o[0],a=r.cache;if(a.has(i))return a.get(i);var u=t.apply(this,o);return r.cache=a.set(i,u)||a,u};return r.cache=new(_r.Cache||ie),r}_r.Cache=ie;var Ze,e,r,Ul=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zl=/\\(\\)?/g,xl=(e=_r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ul,function(r,o,i,a){e.push(i?a.replace(zl,"$1"):o||r)}),e},function(o){return 500===r.size&&r.clear(),o}),r=e.cache,e),on=function(t,e){for(var r=-1,o=null==t?0:t.length,i=Array(o);++r<o;)i[r]=e(t[r],r,t);return i},qi=tt?tt.prototype:void 0,Ni=qi?qi.toString:void 0,El=function t(e){if("string"==typeof e)return e;if(P(e))return on(e,t)+"";if(Ft(e))return Ni?Ni.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},Ci=function(t){return null==t?"":El(t)},me=function(t,e){return P(t)?t:mr(t,e)?[t]:xl(Ci(t))},Nn=function(t){if("string"==typeof t||Ft(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},_e=function(t,e){for(var r=0,o=(e=me(e,t)).length;null!=t&&r<o;)t=t[Nn(e[r++])];return r&&r==o?t:void 0},Nl=function(t,e){return null!=t&&e in Object(t)},ki=function(t,e,r){for(var o=-1,i=(e=me(e,t)).length,a=!1;++o<i;){var u=Nn(e[o]);if(!(a=null!=t&&r(t,u)))break;t=t[u]}return a||++o!=i?a:!!(i=null==t?0:t.length)&&er(i)&&ce(u,i)&&(P(t)||nn(t))},Di=function(t,e){return null!=t&&ki(t,e,Nl)},Si=function(t){return function(e){return e?.[t]}},vt=function(t){return"function"==typeof t?t:null==t?Gt:"object"==typeof t?P(t)?function(t,e){return mr(t)&&xi(e)?Ei(Nn(t),e):function(r){var o=function(t,e,r){var o=null==t?void 0:_e(t,e);return void 0===o?void 0:o}(r,t);return void 0===o&&o===e?Di(r,t):zi(e,o,3)}}(t[0],t[1]):function(t){var e=function(t){for(var e=Ut(t),r=e.length;r--;){var o=e[r],i=t[o];e[r]=[o,i,xi(i)]}return e}(t);return 1==e.length&&e[0][2]?Ei(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,o){var i=r.length,a=i;if(null==t)return!a;for(t=Object(t);i--;){var s=r[i];if(s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<a;){var c=(s=r[i])[0],h=t[c],d=s[1];if(s[2]){if(void 0===h&&!(c in t))return!1}else{var f,l=new tn;if(!(void 0===f?zi(d,h,3,o,l):f))return!1}}return!0}(r,0,e)}}(t):function(t){return mr(t)?Si(Nn(t)):function(t){return function(e){return _e(e,t)}}(t)}(t)},Mi=function(t,e){return(P(t)?oi:hl)(t,vt(e))},Sl=Object.prototype.hasOwnProperty,Ml=function(t,e){return null!=t&&Sl.call(t,e)},Bi=function(t,e){return null!=t&&ki(t,e,Ml)},Bl=Object.prototype.hasOwnProperty,Oi=function(t){return void 0===t},Gi=function(t,e){var r=-1,o=_t(t)?Array(t.length):[];return pe(t,function(i,a,u){o[++r]=e(i,a,u)}),o},Fi=function(t,e){return(P(t)?on:Gi)(t,vt(e))},Gl=function(t,e,r,o){var i=-1,a=null==t?0:t.length;for(o&&a&&(r=t[++i]);++i<a;)r=e(r,t[i],i,t);return r}
1,Fl=function(t,e,r,o,i){return i(t,function(a,u,s){r=o?(o=!1,a):e(r,a,u,s)}),r},Ri=function(t,e,r){var o=P(t)?Gl:Fl,i=arguments.length<3;return o(t,vt(e),r,i,pe)},Il=Si("length"),jl=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),vr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Zr="\\ud83c[\\udffb-\\udfff]",Ii="[^\\ud800-\\udfff]",ji="(?:\\ud83c[\\udde6-\\uddff]){2}",Pi="[\\ud800-\\udbff][\\udc00-\\udfff]",Li="(?:"+vr+"|"+Zr+")?",$l="[\\ufe0e\\ufe0f]?"+Li+"(?:\\u200d(?:"+[Ii,ji,Pi].join("|")+")[\\ufe0e\\ufe0f]?"+Li+")*",Vl="(?:"+[Ii+vr+"?",vr,ji,Pi,"[\\ud800-\\udfff]"].join("|")+")",$i=RegExp(Zr+"(?="+Zr+")|"+Vl+$l,"g"),Vi=tt?tt.isConcatSpreadable:void 0,Ql=function(t){return P(t)||nn(t)||!!(Vi&&t&&t[Vi])},yr=function t(e,r,o,i,a){var u=-1,s=e.length;for(o||(o=Ql),a||(a=[]);++u<s;){var c=e[u];r>0&&o(c)?r>1?t(c,r-1,o,i,a):ir(a,c):i||(a[a.length]=c)}return a},Hi=Math.max,Yi=function(t,e,r){return e=Hi(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,a=Hi(o.length-e,0),u=Array(a);++i<a;)u[i]=o[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=o[i];return s[e]=r(u),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,s)}},Kl=ae?function(t,e){return ae(t,"toString",{configurable:!0,enumerable:!1,value:dr(e),writable:!0})}:Gt,tf=Date.now,Wi=function(t){var e=0,r=0;return function(){var o=tf(),i=16-(o-r);if(r=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Kl),ve=function(t,e){return Wi(Yi(t,e,Gt),t+"")},Xi=function(t,e,r,o){for(var i=t.length,a=r+(o?1:-1);o?a--:++a<i;)if(e(t[a],a,t))return a;return-1},nf=function(t){return t!=t},of=function(t,e){return!(null==t||!t.length)&&function(t,e,r){return e==e?function(t,e,r){for(var o=-1,i=t.length;++o<i;)if(t[o]===e)return o;return-1}(t,e):Xi(t,nf,0)}(t,e)>-1},sf=rn&&1/pr(new rn([,-0]))[1]==1/0?function(t){return new rn(t)}:function(){},Qi=function(t){return it(t)&&_t(t)},hf=ve(function(t){return function(t,e,r){var o=-1,i=of,a=t.length,u=!0,s=[],c=s;if(a>=200){var h=sf(t);if(h)return pr(h);u=!1,i=bi,c=new Ai}else c=s;t:for(;++o<a;){var d=t[o],l=d;if(d=0!==d?d:0,u&&l==l){for(var f=c.length;f--;)if(c[f]===l)continue t;s.push(d)}else i(c,l,r)||(c!==s&&c.push(l),s.push(d))}return s}(yr(t,1,Qi,!0))}),Ji=function(t){return null==t?[]:function(t,e){return on(e,function(r){return t[r]})}(t,Ut(t))};try{Ze={clone:function(t){return _i(t,4)},constant:dr,each:yi,filter:Mi,has:Bi,isArray:P,isEmpty:function(t){if(null==t)return!0;if(_t(t)&&(P(t)||"string"==typeof t||"function"==typeof t.splice||St(t)||qn(t)||nn(t)))return!t.length;var e=Ot(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(de(t))return!rr(t).length;for(var r in t)if(Bl.call(t,r))return!1;return!0},isFunction:Un,isUndefined:Oi,keys:Ut,map:Fi,reduce:Ri,size:function(t){if(null==t)return 0;if(_t(t))return function(t){return"string"==typeof t||!P(t)&&it(t)&&"[object String]"==Tt(t)}(t)?function(t){return function(t){return jl.test(t)}(t)?function(t){for(var e=$i.lastIndex=0;$i.test(t);)++e;return e}(t):Il(t)}(t):t.length;var e=Ot(t);return"[object Map]"==e||"[object Set]"==e?t.size:rr(t).length},transform:function(t,e,r){var o=P(t),i=o||St(t)||qn(t);if(e=vt(e),null==r){var a=t&&t.constructor;r=i?o?new a:[]:Q(t)&&Un(a)?fi(le(t)):{}}return(i?nr:fr)(t,function(u,s,c){return e(r,u,s,c)}),r},union:hf,values:Ji}}catch{}Ze||(Ze=window._);var b=Ze,Ar=D;function D(t){this._isDirected=!b.has(t,"directed")||t.directed,this._isMultigraph=!!b.has(t,"multigraph")&&t.multigraph,this._isCompound=!!b.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=b.constant(void 0),this._defaultEdgeLabelFn=b.constant(void 0),this._nodes={}
vendor: 1,479 bytes, line 1
1,this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function Ki(t,e){t[e]?t[e]++:t[e]=1}function ta(t,e){--t[e]||delete t[e]}function Cn(t,e,r,o){var i=""+e,a=""+r;if(!t&&i>a){var u=i;i=a,a=u}return i+"\x01"+a+"\x01"+(b.isUndefined(o)?"\0":o)}function br(t,e){return Cn(t,e.v,e.w,e.name)}D.prototype._nodeCount=0,D.prototype._edgeCount=0,D.prototype.isDirected=function(){return this._isDirected},D.prototype.isMultigraph=function(){return this._isMultigraph},D.prototype.isCompound=function(){return this._isCompound},D.prototype.setGraph=function(t){return this._label=t,this},D.prototype.graph=function(){return this._label},D.prototype.setDefaultNodeLabel=function(t){return b.isFunction(t)||(t=b.constant(t)),this._defaultNodeLabelFn=t,this},D.prototype.nodeCount=function(){return this._nodeCount},D.prototype.nodes=function(){return b.keys(this._nodes)},D.prototype.sources=function(){var t=this;return b.filter(this.nodes(),function(e){return b.isEmpty(t._in[e])})},D.prototype.sinks=function(){var t=this;return b.filter(this.nodes(),function(e){return b.isEmpty(t._out[e])})},D.prototype.setNodes=function(t,e){var r=arguments,o=this;return b.each(t,function(i){r.length>1?o.setNode(i,e):o.setNode(i)}),this},D.prototype.setNode=function(t,e){return b.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>
11?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},D.prototype.node=function(t){return this._nodes[t]},D.prototype.hasNode=function(t){return b.has(this._nodes,t)},D.prototype.removeNode=function(t){var e=this;if(b.has(this._nodes,t)){var r=function(o){e.removeEdge(e._edgeObjs[o])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],b.each(this.children(t),function(o){e.setParent(o)}),delete this._children[t]),b.each(b.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],b.each(b.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},D.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(b.isUndefined(e))e="\0";else{for(var r=e+="";!b.isUndefined(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},D.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},D.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},D.prototype.children=function(t){if(b.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return b.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},D.prototype.predecessors=function(t){var e=this._preds[t];if(e)return b.keys(e)},D.prototype.successors=function(t){var e=this._sucs[t];if(e)return b.keys(e)},D.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return b.union(e,this.successors(t))},D.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},D.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;b.each(this._nodes,function(a,u){t(u)&&e.setNode(u,a)}),b.each(this._edgeObjs,function(a){e.hasNode(a.v)&&e.hasNode(a.w)&&e.setEdge(a,r.edge(a))});var o={};function i(a){var u=r.parent(a);return void 0===u||e.hasNode(u)?(o[a]=u,u):u in o?o[u]:i(u)}return this._isCompound&&b.each(e.nodes(),function(a){e.setParent(a,i(a))}),e},D.prototype.setDefaultEdgeLabel=function(t){return b.isFunction(t)||(t=b.constant(t)),this._defaultEdgeLabelFn=t,this},D.prototype.edgeCount=function(){return this._edgeCount},D.prototype.edges=function(){return b.values(this._edgeObjs)},D.prototype.setPath=function(t,e){var r=this,o=arguments;return b.reduce(t,function(i,a){return o.length>1?r.setEdge(i,a,e):r.setEdge(i,a),a}),this},D.prototype.setEdge=function(){var t,e,r,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,r=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(t=a,e=arguments[1],r=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),t=""+t,e=""+e,b.isUndefined(r)||(r=""+r);var u=Cn(this._isDirected,t,e,r);if(b.has(this._edgeLabels,u))return i&&(this._edgeLabels[u]=o),this;if(!b.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=i?o:this._defaultEdgeLabelFn(t,e,r);var s=function lf(t,e,r,o){var i=""+e,a=""+r;if(!t&&i>a){var u=i;i=a,a=u}var s={v:i,w:a};return o&&(s.name=o),s}(this._isDirected,t,e,r);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[u]=s,Ki(this._preds[e],t),Ki(this._sucs[t],e),this._in[e][u]=s,this._out[t][u]=s,this._edgeCount++,this},D.prototype.edge=function(t,e,r){var o=1===arguments.length?br(this._isDirected,arguments[0]):Cn(this._isDirected,t,e,r);return this._edgeLabels[o]},D.prototype.hasEdge=function(t,e,r){var o=1===arguments.length?br(this._isDirected,arguments[0]):Cn(this._isDirected,t,e,r);return b.has(this._edgeLabels,o)},D.prototype.removeEdge=function(t,e,r){var o=1===arguments.length?br(this._isDirected,arguments[0]):Cn(this._isDirected,t,e,r),i=this._edgeObjs[o];return i&&(t=i.v,e=i.w,delete this._edgeLabels[o],delete this._edgeObjs[o],ta(this._preds[e],t),ta(this._sucs[t],e),delete this._in[e][o],delete this._out[t][o],this._edgeCount--),this},D.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var o=b.values(r);return e?b.filter(o,function(i){return i.v===e}):o}},D.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var o=b.values(r);return e?b.filter(o,function(i){return i.w===e}):o}},D.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))};var na={Graph:Ar,version:"2.1.8"},ff={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:pf(t),edges:gf(t)};return b.isUndefined(t.graph())||(e.value=b.clone(t.graph())),e},read:function(t){var e=new Ar(t.options).setGraph(t.value);return b.each(t.nodes,function(r){e.setNode(r.v,r.value),r.parent&&e.setParent(r.v,r.parent)}),b.each(t.edges,function(r){e.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),e}};
1function pf(t){return b.map(t.nodes(),function(e){var r=t.node(e),o=t.parent(e),i={v:e};return b.isUndefined(r)||(i.value=r),b.isUndefined(o)||(i.parent=o),i})}function gf(t){return b.map(t.edges(),function(e){var r=t.edge(e),o={v:e.v,w:e.w};return b.isUndefined(e.name)||(o.name=e.name),b.isUndefined(r)||(o.value=r),o})}var ea=nt;function nt(){this._arr=[],this._keyIndices={}}nt.prototype.size=function(){return this._arr.length},nt.prototype.keys=function(){return this._arr.map(function(t){return t.key})},nt.prototype.has=function(t){return b.has(this._keyIndices,t)},nt.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},nt.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},nt.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!b.has(r,t)){var o=this._arr,i=o.length;return r[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},nt.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},nt.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},nt.prototype._heapify=function(t){var e=this._arr,r=2*t,o=r+1,i=t;r<e.length&&(i=e[r].priority<e[i].priority?r:i,o<e.length&&(i=e[o].priority<e[i].priority?o:i),i!==t&&(this._swap(t,i),this._heapify(i)))},nt.prototype._decrease=function(t){for(var e,r=this._arr,o=r[t].priority;0!==t&&!(r[e=t>>1].priority<o);)this._swap(t,e),t=e},nt.prototype._swap=function(t,e){var r=this._arr,o=this._keyIndices,i=r[t],a=r[e];r[t]=a,r[e]=i,o[a.key]=t,o[i.key]=e};var ra=function(t,e,r,o){return function(i,a,u,s){var c,h,d={},l=new ea,f=function(g){var _=g.v!==c?g.v:g.w,m=d[_],y=u(g),Z=h.distance+y;if(y<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+y);Z<m.distance&&(m.distance=Z,m.predecessor=c,l.decrease(_,Z))};for(i.nodes().forEach(function(g){var _=g===a?0:Number.POSITIVE_INFINITY;d[g]={distance:_},l.add(g,_)});l.size()>0&&(c=l.removeMin(),(h=d[c]).distance!==Number.POSITIVE_INFINITY);)s(c).forEach(f);return d}(t,String(e),r||_f,o||function(i){return t.outEdges(i)})},_f=b.constant(1),oa=function(t){var e=0,r=[],o={},i=[];function a(u){var s=o[u]={onStack:!0,lowlink:e,index:e++};if(r.push(u),t.successors(u).forEach(function(d){b.has(o,d)?o[d].onStack&&(s.lowlink=Math.min(s.lowlink,o[d].index)):(a(d),s.lowlink=Math.min(s.lowlink,o[d].lowlink))}),s.lowlink===s.index){var c,h=[];do{c=r.pop(),o[c].onStack=!1,h.push(c)}while(u!==c);i.push(h)}}return t.nodes().forEach(function(u){b.has(o,u)||a(u)}),i},Af=b.constant(1),wr=ia;function ia(t){var e={},r={},o=[];if(b.each(t.sinks(),function i(a){if(b.has(r,a))throw new ye;b.has(e,a)||(r[a]=!0,e[a]=!0,b.each(t.predecessors(a),i),delete r[a],o.push(a))}),b.size(e)!==t.nodeCount())throw new ye;return o}function ye(){}ia.CycleException=ye,ye.prototype=new Error;var aa=function(t,e,r){b.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return b.each(e,function(u){if(!t.hasNode(u))throw new Error("Graph does not have node: "+u);ua(t,u,"post"===r,a,o,i)}),i};function ua(t,e,r,o,i,a){b.has(o,e)||(o[e]=!0,r||a.push(e),b.each(i(e),function(u){ua(t,u,r,o,i,a)}),r&&a.push(e))}var Ae,bf={Graph:na.Graph,json:ff,alg:{components:function(t){var e,r={},o=[];function i(a){b.has(r,a)||(r[a]=!0,e.push(a),b.each(t.successors(a),i),b.each(t.predecessors(a),i))}return b.each(t.nodes(),function(a){e=[],i(a),e.length&&o.push(e)}),o},dijkstra:ra,dijkstraAll:function(t,e,r){return b.transform(t.nodes(),function(o,i){o[i]=ra(t,i,e,r)},{})},findCycles:function(t){return b.filter(oa(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})},floydWarshall:function(t,e,r){return i=e||Af,a=r||function(o){return t.outEdges(o)},u={},(s=t.nodes()).forEach(function(c){u[c]={},u[c][c]={distance:0}
1,s.forEach(function(h){c!==h&&(u[c][h]={distance:Number.POSITIVE_INFINITY})}),a(c).forEach(function(h){var d=h.v===c?h.w:h.v,l=i(h);u[c][d]={distance:l,predecessor:c}})}),s.forEach(function(c){var h=u[c];s.forEach(function(d){var l=u[d];s.forEach(function(f){var _=h[f],m=l[f],y=l[c].distance+_.distance;y<m.distance&&(m.distance=y,m.predecessor=_.predecessor)})})}),u;var i,a,u,s},isAcyclic:function(t){try{wr(t)}catch(e){if(e instanceof wr.CycleException)return!1;throw e}return!0},postorder:function(t,e){return aa(t,e,"post")},preorder:function(t,e){return aa(t,e,"pre")},prim:function(t,e){var r,o=new Ar,i={},a=new ea;function u(c){var h=c.v===r?c.w:c.v,d=a.priority(h);if(void 0!==d){var l=e(c);l<d&&(i[h]=r,a.decrease(h,l))}}if(0===t.nodeCount())return o;b.each(t.nodes(),function(c){a.add(c,Number.POSITIVE_INFINITY),o.setNode(c)}),a.decrease(t.nodes()[0],0);for(var s=!1;a.size()>0;){if(r=a.removeMin(),b.has(i,r))o.setEdge(r,i[r]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(r).forEach(u)}return o},tarjan:oa,topsort:wr},version:na.version};try{Ae=bf}catch{}Ae||(Ae=window.graphlib);var we,at=Ae,kn=function(t,e,r){if(!Q(r))return!1;var o=typeof e;return!!("number"==o?_t(r)&&ce(e,r.length):"string"==o&&e in r)&&Wt(r[e],t)},sa=Object.prototype,Tf=sa.hasOwnProperty,Uf=ve(function(t,e){t=Object(t);var r=-1,o=e.length,i=o>2?e[2]:void 0;for(i&&kn(e[0],e[1],i)&&(o=1);++r<o;)for(var a=e[r],u=Mt(a),s=-1,c=u.length;++s<c;){var h=u[s],d=t[h];(void 0===d||Wt(d,sa[h])&&!Tf.call(t,h))&&(t[h]=a[h])}return t}),xf=/^\s+|\s+$/g,Ef=/^[-+]0x[0-9a-f]+$/i,qf=/^0b[01]+$/i,Nf=/^0o[0-7]+$/i,Cf=parseInt,be=function(t){return t?(t=function(t){if("number"==typeof t)return t;if(Ft(t))return NaN;if(Q(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Q(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(xf,"");var r=qf.test(t);return r||Nf.test(t)?Cf(t.slice(2),r?2:8):Ef.test(t)?NaN:+t}(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Sf=Math.max,Mf=function(e,r,o){var i=Object(e);if(!_t(e)){var a=vt(r);e=Ut(e),r=function(s){return a(i[s],s,i)}}var u=function(t,e,r){var o=null==t?0:t.length;if(!o)return-1;var i=null==r?0:function(t){var e=be(t),r=e%1;return e==e?r?e-r:e:0}(r);return i<0&&(i=Sf(o+i,0)),Xi(t,vt(e),i)}(e,r,o);return u>-1?i[a?e[u]:u]:void 0},ca=function(t){return null!=t&&t.length?yr(t,1):[]},Tr=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],u=e(a);if(null!=u&&(void 0===s?u==u&&!Ft(u):r(u,s)))var s=u,c=a}return c},Ff=function(t,e){return t>e},Ur=function(t,e,r){(void 0!==r&&!Wt(t[e],r)||void 0===r&&!(e in t))&&ue(t,e,r)},ha=Function.prototype.toString,Pf=Object.prototype.hasOwnProperty,Lf=ha.call(Object),zr=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},Yf=function t(e,r,o,i,a){e!==r&&lr(r,function(u,s){if(a||(a=new tn),Q(u))!function(t,e,r,o,i,a,u){var s=zr(t,r),c=zr(e,r),h=u.get(c);if(h)Ur(t,r,h);else{var d=a?a(s,c,r+"",t,e,u):void 0,l=void 0===d;if(l){var f=P(c),g=!f&&St(c),_=!f&&!g&&qn(c);d=c,f||g||_?P(s)?d=s:Qi(s)?d=ri(s):g?(l=!1,d=ei(c,!0)):_?(l=!1,d=di(c,!0)):d=[]:function(t){if(!it(t)||"[object Object]"!=Tt(t))return!1;var e=le(t);if(null===e)return!0;var r=Pf.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&ha.call(r)==Lf}(c)||nn(c)?(d=s,nn(s)?d=function(t){return En(t,Mt(t))}(s):Q(s)&&!Un(s)||(d=pi(c))):l=!1}l&&(u.set(c,d),i(d,c,o,a,u),u.delete(c)),Ur(t,r,d)}}(e,r,s,o,t,i,a);else{var c=i?i(zr(e,s),u,s+"",e,r,a):void 0;void 0===c&&(c=u),Ur(e,s,c)}},Mt)},Wf=function(t){return ve(function(e,r){var o=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&kn(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++o<i;){var s=r[o];s&&t(e,s,o)}return e})}(function(t,e,r){Yf(t,e,r)}),da=function(t,e){return t<e},Kf=function(t,e,r,o){if(!Q(t))return t;for(var i=-1,a=(e=me(e,t)).length,u=a-1,s=t;null!=s&&++i<a;){var c=Nn(e[i]),h=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=u){var d=s[c];void 0===(h=o?o(d,c,s):void 0)&&(h=Q(d)?d:ce(e[i+1])?[]:{})}se(s,c,h),s=s[c]}return t},ep=function(t){return Wi(Yi(t,void 0,ca),t+"")}(function(t,e){return null==t?{}:function(t,e){return function(t,e,r){for(var o=-1,i=e.length,a={};++o<i;){var u=e[o],s=_e(t,u);r(0,u)&&Kf(a,me(u,t),s)}return a}(t,e,function(r,o){return Di(t,o)})}(t,e)}),rp=Math.ceil,op=Math.max,sp=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=Ft(t),u=void 0!==e,s=null===e,c=e==e,h=Ft(e);
1if(!s&&!h&&!a&&t>e||a&&u&&c&&!s&&!h||o&&u&&c||!r&&c||!i)return 1;if(!o&&!a&&!h&&t<e||h&&r&&i&&!o&&!a||s&&r&&i||!u&&i||!c)return-1}return 0},dp=ve(function(t,e){if(null==t)return[];var r=e.length;return r>1&&kn(t,e[0],e[1])?e=[]:r>2&&kn(e[0],e[1],e[2])&&(e=[e[0]]),function(t,e,r){e=e.length?on(e,function(a){return P(a)?function(u){return _e(u,1===a.length?a[0]:a)}:a}):[Gt];var o=-1;return e=on(e,he(vt)),function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(Gi(t,function(a,u,s){return{criteria:on(e,function(c){return c(a)}),index:++o,value:a}}),function(a,u){return function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,s=r.length;++o<u;){var c=sp(i[o],a[o]);if(c)return o>=s?c:c*("desc"==r[o]?-1:1)}return t.index-e.index}(a,u,r)})}(t,yr(e,1),[])}),lp=0;try{we={cloneDeep:function(t){return _i(t,5)},constant:dr,defaults:Uf,each:yi,filter:Mi,find:Mf,flatten:ca,forEach:Zi,forIn:function(t,e){return null==t?t:lr(t,vi(e),Mt)},has:Bi,isUndefined:Oi,last:function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},map:Fi,mapValues:function(t,e){var r={};return e=vt(e),fr(t,function(o,i,a){ue(r,i,e(o,i,a))}),r},max:function(t){return t&&t.length?Tr(t,Gt,Ff):void 0},merge:Wf,min:function(t){return t&&t.length?Tr(t,Gt,da):void 0},minBy:function(t,e){return t&&t.length?Tr(t,vt(e),da):void 0},now:function(){return ot.Date.now()},pick:ep,range:function(e,r,o){return o&&"number"!=typeof o&&kn(e,r,o)&&(r=o=void 0),e=be(e),void 0===r?(r=e,e=0):r=be(r),function(t,e,r,o){for(var i=-1,a=op(rp((e-t)/(r||1)),0),u=Array(a);a--;)u[++i]=t,t+=r;return u}(e,r,o=void 0===o?e<r?1:-1:be(o))},reduce:Ri,sortBy:dp,uniqueId:function(t){var e=++lp;return Ci(t)+e},values:Ji,zipObject:function(t,e){return function(t,e,r){for(var o=-1,i=t.length,a=e.length,u={};++o<i;)r(u,t[o],o<a?e[o]:void 0);return u}(t||[],e||[],se)}}}catch{}we||(we=window._);var p=we,mp=Te;function Te(){var t={};t._next=t._prev=t,this._sentinel=t}function la(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function _p(t,e){if("_next"!==t&&"_prev"!==t)return e}Te.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return la(e),e},Te.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&la(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},Te.prototype.toString=function(){for(var t=[],e=this._sentinel,r=e._prev;r!==e;)t.push(JSON.stringify(r,_p)),r=r._prev;return"["+t.join(", ")+"]"};var vp=at.Graph,yp=p.constant(1);function xr(t,e,r,o,i){var a=i?[]:void 0;return p.forEach(t.inEdges(o.v),function(u){var s=t.edge(u),c=t.node(u.v);i&&a.push({v:u.v,w:u.w}),c.out-=s,Er(e,r,c)}),p.forEach(t.outEdges(o.v),function(u){var s=t.edge(u),h=t.node(u.w);h.in-=s,Er(e,r,h)}),t.removeNode(o.v),a}function Er(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}var pa=at.Graph,V={addDummyNode:ga,simplify:function(t){var e=(new pa).setGraph(t.graph());return p.forEach(t.nodes(),function(r){e.setNode(r,t.node(r))}),p.forEach(t.edges(),function(r){var o=e.edge(r.v,r.w)||{weight:0,minlen:1},i=t.edge(r);e.setEdge(r.v,r.w,{weight:o.weight+i.weight,minlen:Math.max(o.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new pa({multigraph:t.isMultigraph()}).setGraph(t.graph());return p.forEach(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),p.forEach(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e},successorWeights:function(t){var e=p.map(t.nodes(),function(r){var o={};return p.forEach(t.outEdges(r),function(i){o[i.w]=(o[i.w]||0)+t.edge(i).weight}),o});return p.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=p.map(t.nodes(),function(r){var o={};return p.forEach(t.inEdges(r),function(i){o[i.v]=(o[i.v]||0)+t.edge(i).weight}),o});return p.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,o,i=t.x,a=t.y,u=e.x-i,s=e.y-a,c=t.width/2,h=t.height/2;if(!u&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*c>Math.abs(u)*h?(s<0&&(h=-h),r=h*u/s,o=h):(u<0&&(c=-c),r=c,o=c*s/u),{x:i+r,y:a+o}},buildLayerMatrix:function(t){var e=p.map(p.range(ma(t)+1),function(){return[]});return p.forEach(t.nodes(),function(r){var o=t.node(r),i=o.rank;p.isUndefined(i)||(e[i][o.order]=r)}),e},normalizeRanks:function(t){var e=p.min(p.map(t.nodes(),function(r){return t.node(r).rank}));p.forEach(t.nodes(),function(r){var o=t.node(r);p.has(o,"rank")&&(o.rank-=e)})},removeEmptyRanks:function(t){var e=p.min(p.map(t.nodes(),function(a){return t.node(a).rank})),r=[];p.forEach(t.nodes(),function(a){var u=t.node(a).rank-e;r[u]||(r[u]=[]),r[u].push(a)});var o=0,i=t.graph().nodeRankFactor;p.forEach(r,function(a,u){p.isUndefined(a)&&u%i!=0?--o:o&&p.forEach(a,function(s){t.node(s).rank+=o})})}
1,addBorderNode:function(t,e,r,o){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=o),ga(t,"border",i,e)},maxRank:ma,partition:function(t,e){var r={lhs:[],rhs:[]};return p.forEach(t,function(o){e(o)?r.lhs.push(o):r.rhs.push(o)}),r},time:function(t,e){var r=p.now();try{return e()}finally{console.log(t+" time: "+(p.now()-r)+"ms")}},notime:function(t,e){return e()}};function ga(t,e,r,o){var i;do{i=p.uniqueId(o)}while(t.hasNode(i));return r.dummy=e,t.setNode(i,r),i}function ma(t){return p.max(p.map(t.nodes(),function(e){var r=t.node(e).rank;if(!p.isUndefined(r))return r}))}var va=function(t){var e={};p.forEach(t.sources(),function r(o){var i=t.node(o);if(p.has(e,o))return i.rank;e[o]=!0;var a=p.min(p.map(t.outEdges(o),function(u){return r(u.w)-t.edge(u).minlen}));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),i.rank=a})},Za=function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen},Ap=at.Graph,Ue=Za,ya=function(t){var e,r,o=new Ap({directed:!1}),i=t.nodes()[0],a=t.nodeCount();for(o.setNode(i,{});bp(o,t)<a;)e=wp(o,t),r=o.hasNode(e.v)?Ue(t,e):-Ue(t,e),Tp(o,t,r);return o};function bp(t,e){return p.forEach(t.nodes(),function r(o){p.forEach(e.nodeEdges(o),function(i){var a=i.v,u=o===a?i.w:a;t.hasNode(u)||Ue(e,i)||(t.setNode(u,{}),t.setEdge(o,u,{}),r(u))})}),t.nodeCount()}function wp(t,e){return p.minBy(e.edges(),function(r){if(t.hasNode(r.v)!==t.hasNode(r.w))return Ue(e,r)})}function Tp(t,e,r){p.forEach(t.nodes(),function(o){e.node(o).rank+=r})}var Up=Za,zp=va,xp=at.alg.preorder,Ep=at.alg.postorder,qp=V.simplify,Np=Rt;function Rt(t){t=qp(t),zp(t);var e,r=ya(t);for(Nr(r),qr(r,t);e=wa(r);)Ua(r,t,e,Ta(r,t,e))}function qr(t,e){var r=Ep(t,t.nodes());r=r.slice(0,r.length-1),p.forEach(r,function(o){var i,a,u,s;a=e,s=(i=t).node(u=o).parent,i.edge(u,s).cutvalue=Aa(i,a,u)})}function Aa(t,e,r){var o=t.node(r).parent,i=!0,a=e.edge(r,o),u=0;return a||(i=!1,a=e.edge(o,r)),u=a.weight,p.forEach(e.nodeEdges(r),function(s){var d=s.v===r,l=d?s.w:s.v;if(l!==o){var f=d===i,g=e.edge(s).weight;if(u+=f?g:-g,t.hasEdge(r,l)){var _=t.edge(r,l).cutvalue;u+=f?-_:_}}}),u}function Nr(t,e){arguments.length<2&&(e=t.nodes()[0]),ba(t,{},1,e)}function ba(t,e,r,o,i){var a=r,u=t.node(o);return e[o]=!0,p.forEach(t.neighbors(o),function(s){p.has(e,s)||(r=ba(t,e,r,s,o))}),u.low=a,u.lim=r++,i?u.parent=i:delete u.parent,r}function wa(t){return p.find(t.edges(),function(e){return t.edge(e).cutvalue<0})}function Ta(t,e,r){var o=r.v,i=r.w;e.hasEdge(o,i)||(o=r.w,i=r.v);var a=t.node(o),u=t.node(i),s=a,c=!1;a.lim>u.lim&&(s=u,c=!0);var h=p.filter(e.edges(),function(d){return c===za(0,t.node(d.v),s)&&c!==za(0,t.node(d.w),s)});return p.minBy(h,function(d){return Up(e,d)})}function Ua(t,e,r,o){var u,s,c,h;t.removeEdge(r.v,r.w),t.setEdge(o.v,o.w,{}),Nr(t),qr(t,e),s=e,c=p.find((u=t).nodes(),function(d){return!s.node(d).parent}),h=(h=xp(u,c)).slice(1),p.forEach(h,function(d){var l=u.node(d).parent,f=s.edge(d,l),g=!1;f||(f=s.edge(l,d),g=!0),s.node(d).rank=s.node(l).rank+(g?f.minlen:-f.minlen)})}function za(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}Rt.initLowLimValues=Nr,Rt.initCutValues=qr,Rt.calcCutValue=Aa,Rt.leaveEdge=wa,Rt.enterEdge=Ta,Rt.exchangeEdges=Ua;var xa=va,kp=xa;var qa_run=function(t){var e=V.addDummyNode(t,"root",{},"_root"),r=function(u){var s={};function c(h,d){var l=u.children(h);l&&l.length&&p.forEach(l,function(f){c(f,d+1)}),s[h]=d}return p.forEach(u.children(),function(h){c(h,1)}),s}(t),o=p.max(p.values(r))-1,i=2*o+1;t.graph().nestingRoot=e,p.forEach(t.edges(),function(u){t.edge(u).minlen*=i});var u,a=p.reduce((u=t).edges(),function(s,c){return s+u.edge(c).weight},0)+1;p.forEach(t.children(),function(u){Na(t,e,i,a,o,r,u)}),t.graph().nodeRankFactor=i};function Na(t,e,r,o,i,a,u){var s=t.children(u);if(s.length){var c=V.addBorderNode(t,"_bt"),h=V.addBorderNode(t,"_bb"),d=t.node(u);t.setParent(c,u),d.borderTop=c,t.setParent(h,u),d.borderBottom=h,p.forEach(s,function(l){Na(t,e,r,o,i,a,l);var f=t.node(l),g=f.borderTop?f.borderTop:l,_=f.borderBottom?f.borderBottom:l,m=f.borderTop?o:2*o,y=g!==_?1:i-a[u]+1;
1t.setEdge(c,g,{weight:m,minlen:y,nestingEdge:!0}),t.setEdge(_,h,{weight:m,minlen:y,nestingEdge:!0})}),t.parent(u)||t.setEdge(e,c,{weight:0,minlen:i+a[u]})}else u!==e&&t.setEdge(e,u,{weight:0,minlen:r})}function Ca(t,e,r,o,i,a){var s=i[e][a-1],c=V.addDummyNode(t,"border",{width:0,height:0,rank:a,borderType:e},r);i[e][a]=c,t.setParent(c,o),s&&t.setEdge(s,c,{weight:1})}function Da(t){p.forEach(t.nodes(),function(e){Sa(t.node(e))}),p.forEach(t.edges(),function(e){Sa(t.edge(e))})}function Sa(t){var e=t.width;t.width=t.height,t.height=e}function Cr(t){t.y=-t.y}function kr(t){var e=t.x;t.x=t.y,t.y=e}var Bp=function(t,e){for(var r=0,o=1;o<e.length;++o)r+=Op(t,e[o-1],e[o]);return r};function Op(t,e,r){for(var o=p.zipObject(r,p.map(r,function(h,d){return d})),i=p.flatten(p.map(e,function(h){return p.sortBy(p.map(t.outEdges(h),function(d){return{pos:o[d.w],weight:t.edge(d).weight}}),"pos")}),!0),a=1;a<r.length;)a<<=1;var u=2*a-1;a-=1;var s=p.map(new Array(u),function(){return 0}),c=0;return p.forEach(i.forEach(function(h){var d=h.pos+a;s[d]+=h.weight;for(var l=0;d>0;)d%2&&(l+=s[d+1]),s[d=d-1>>1]+=h.weight;c+=h.weight*l})),c}function Ma(t,e,r){for(var o;e.length&&(o=p.last(e)).i<=r;)e.pop(),t.push(o.vs),r++;return r}var Ip=function t(e,r,o,i){var a=e.children(r),u=e.node(r),s=u?u.borderLeft:void 0,c=u?u.borderRight:void 0,h={};s&&(a=p.filter(a,function(m){return m!==s&&m!==c}));var d=function(t,e){return p.map(e,function(r){var o=t.inEdges(r);if(o.length){var i=p.reduce(o,function(a,u){var s=t.edge(u),c=t.node(u.v);return{sum:a.sum+s.weight*c.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}return{v:r}})}(e,a);p.forEach(d,function(m){if(e.children(m.v).length){var y=t(e,m.v,o,i);h[m.v]=y,p.has(y,"barycenter")&&(w=y,p.isUndefined((Z=m).barycenter)?(Z.barycenter=w.barycenter,Z.weight=w.weight):(Z.barycenter=(Z.barycenter*Z.weight+w.barycenter*w.weight)/(Z.weight+w.weight),Z.weight+=w.weight))}var Z,w});var y,l=function(t,e){var r={};return p.forEach(t,function(o,i){var a=r[o.v]={indegree:0,in:[],out:[],vs:[o.v],i};p.isUndefined(o.barycenter)||(a.barycenter=o.barycenter,a.weight=o.weight)}),p.forEach(e.edges(),function(o){var i=r[o.v],a=r[o.w];p.isUndefined(i)||p.isUndefined(a)||(a.indegree++,i.out.push(r[o.w]))}),function(o){var i=[];function a(c){return function(h){var d,l,f,g;h.merged||(p.isUndefined(h.barycenter)||p.isUndefined(c.barycenter)||h.barycenter>=c.barycenter)&&(f=0,g=0,(d=c).weight&&(f+=d.barycenter*d.weight,g+=d.weight),(l=h).weight&&(f+=l.barycenter*l.weight,g+=l.weight),d.vs=l.vs.concat(d.vs),d.barycenter=f/g,d.weight=g,d.i=Math.min(l.i,d.i),l.merged=!0)}}function u(c){return function(h){h.in.push(c),0==--h.indegree&&o.push(h)}}for(;o.length;){var s=o.pop();i.push(s),p.forEach(s.in.reverse(),a(s)),p.forEach(s.out,u(s))}return p.map(p.filter(i,function(c){return!c.merged}),function(c){return p.pick(c,["vs","i","barycenter","weight"])})}(p.filter(r,function(o){return!o.indegree}))}(d,o);y=h,p.forEach(l,function(Z){Z.vs=p.flatten(Z.vs.map(function(w){return y[w]?y[w].vs:w}),!0)});var f=function(t,e){var r=V.partition(t,function(l){return p.has(l,"barycenter")}),o=r.lhs,i=p.sortBy(r.rhs,function(l){return-l.i}),a=[],u=0,s=0,c=0;o.sort((h=!!e,function(l,f){return l.barycenter<f.barycenter?-1:l.barycenter>f.barycenter?1:h?f.i-l.i:l.i-f.i})),c=Ma(a,i,c),p.forEach(o,function(l){c+=l.vs.length,a.push(l.vs),u+=l.barycenter*l.weight,s+=l.weight,c=Ma(a,i,c)});var h,d={vs:p.flatten(a,!0)};return s&&(d.barycenter=u/s,d.weight=s),d}(l,i);if(s&&(f.vs=p.flatten([s,f.vs,c],!0),e.predecessors(s).length)){var g=e.node(e.predecessors(s)[0]),_=e.node(e.predecessors(c)[0]);p.has(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+g.order+_.order)/(f.weight+2),f.weight+=2}return f},jp=at.Graph,$p=at.Graph;function Ba(t,e,r){return p.map(e,function(o){return function(t,e,r){var o=function(a){for(var u;a.hasNode(u=p.uniqueId("_root")););return u}(t),i=new jp({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(a){return t.node(a)});return p.forEach(t.nodes(),function(a){var u=t.node(a),s=t.parent(a);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(i.setNode(a),i.setParent(a,s||o),p.forEach(t[r](a),function(c){var h=c.v===a?c.w:c.v,d=i.edge(h,a),l=p.isUndefined(d)?0:d.weight;i.setEdge(h,a,{weight:t.edge(c).weight+l})}),p.has(u,"minRank")&&i.setNode(a,{borderLeft:u.borderLeft[e],borderRight:u.borderRight[e]}))}),i}(t,o,r)})}function Hp(t,e){var r=new $p;p.forEach(t,function(o){var i=o.graph().root,a=Ip(o,i,r,e);p.forEach(a.vs,function(u,s){o.node(u).order=s}),function(t,e,r){var o,i={};p.forEach(r,function(a){for(var u,s,c=t.parent(a);c;){if((u=t.parent(c))?(s=i[u],i[u]=c):(s=o,o=c),s&&s!==c)return void e.setEdge(s,c);c=u}})}(o,r,a.vs)})}function Oa(t,e){p.forEach(e,function(r){p.forEach(r,function(o,i){t.node(o).order=i}
1)})}var Yp=at.Graph;function Ga(t,e,r){if(e>r){var o=e;e=r,r=o}var i=t[e];i||(t[e]=i={}),i[r]=!0}function Jp(t,e,r){if(e>r){var o=e;e=r,r=o}return p.has(t[e],r)}var ag=V.normalizeRanks,ug=V.removeEmptyRanks,zt=V,sg=at.Graph,hg=["nodesep","edgesep","ranksep","marginx","marginy"],dg={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},lg=["acyclicer","ranker","rankdir","align"],fg=["width","height"],pg={width:0,height:0},gg=["minlen","weight","width","height","labeloffset"],mg={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},_g=["labelpos"];function Dr(t,e){return p.mapValues(p.pick(t,e),Number)}function Sr(t){var e={};return p.forEach(t,function(r,o){e[o.toLowerCase()]=r}),e}var vg=at.Graph,Fa={graphlib:at,layout:function(t,e){var r=e&&e.debugTiming?zt.time:zt.notime;r("layout",function(){var o=r("  buildLayoutGraph",function(){return i=t,a=new sg({multigraph:!0,compound:!0}),u=Sr(i.graph()),a.setGraph(p.merge({},dg,Dr(u,hg),p.pick(u,lg))),p.forEach(i.nodes(),function(s){var c=Sr(i.node(s));a.setNode(s,p.defaults(Dr(c,fg),pg)),a.setParent(s,i.parent(s))}),p.forEach(i.edges(),function(s){var c=Sr(i.edge(s));a.setEdge(s,p.merge({},mg,Dr(c,gg),p.pick(c,_g)))}),a;var i,a,u});r("  runLayout",function(){var i,a;i=o,(a=r)("    makeSpaceForEdgeLabels",function(){var u,s;(s=(u=i).graph()).ranksep/=2,p.forEach(u.edges(),function(c){var h=u.edge(c);h.minlen*=2,"c"!==h.labelpos.toLowerCase()&&("TB"===s.rankdir||"BT"===s.rankdir?h.width+=h.labeloffset:h.height+=h.labeloffset)})}),a("    removeSelfEdges",function(){var u;p.forEach((u=i).edges(),function(s){if(s.v===s.w){var c=u.node(s.v);c.selfEdges||(c.selfEdges=[]),c.selfEdges.push({e:s,label:u.edge(s)}),u.removeEdge(s)}})}),a("    acyclic",function(){!function(t){var e="greedy"===t.graph().acyclicer?function(t,e){if(t.nodeCount()<=1)return[];var r=function(i,a){var u=new vp,s=0,c=0;p.forEach(i.nodes(),function(l){u.setNode(l,{v:l,in:0,out:0})}),p.forEach(i.edges(),function(l){var f=u.edge(l.v,l.w)||0,g=a(l);u.setEdge(l.v,l.w,f+g),c=Math.max(c,u.node(l.v).out+=g),s=Math.max(s,u.node(l.w).in+=g)});var h=p.range(c+s+3).map(function(){return new mp}),d=s+1;return p.forEach(u.nodes(),function(l){Er(h,d,u.node(l))}),{graph:u,buckets:h,zeroIdx:d}}(t,e||yp),o=function(i,a,u){for(var s,c=[],h=a[a.length-1],d=a[0];i.nodeCount();){for(;s=d.dequeue();)xr(i,a,u,s);for(;s=h.dequeue();)xr(i,a,u,s);if(i.nodeCount())for(var l=a.length-2;l>0;--l)if(s=a[l].dequeue()){c=c.concat(xr(i,a,u,s,!0));break}}return c}(r.graph,r.buckets,r.zeroIdx);return p.flatten(p.map(o,function(i){return t.outEdges(i.v,i.w)}),!0)}(t,function(r){return function(o){return r.edge(o).weight}}(t)):function(r){var o=[],i={},a={};return p.forEach(r.nodes(),function u(s){p.has(a,s)||(a[s]=!0,i[s]=!0,p.forEach(r.outEdges(s),function(c){p.has(i,c.w)?o.push(c):u(c.w)}),delete i[s])}),o}(t);p.forEach(e,function(r){var o=t.edge(r);t.removeEdge(r),o.forwardName=r.name,o.reversed=!0,t.setEdge(r.w,r.v,o,p.uniqueId("rev"))})}(i)}),a("    nestingGraph.run",function(){qa_run(i)}),a("    rank",function(){!function(t){switch(t.graph().ranker){case"network-simplex":default:!function Ea(t){Np(t)}(t);break;case"tight-tree":!function(e){xa(e),ya(e)}(t);break;case"longest-path":kp(t)}}(zt.asNonCompoundGraph(i))}),a("    injectEdgeLabelProxies",function(){var u;p.forEach((u=i).edges(),function(s){var c=u.edge(s);if(c.width&&c.height){var h=u.node(s.v),d={rank:(u.node(s.w).rank-h.rank)/2+h.rank,e:s};zt.addDummyNode(u,"edge-proxy",d,"_ep")}})}),a("    removeEmptyRanks",function(){ug(i)}),a("    nestingGraph.cleanup",function(){!function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,p.forEach(t.edges(),function(r){t.edge(r).nestingEdge&&t.removeEdge(r)})}(i)}),a("    normalizeRanks",function(){ag(i)}),a("    assignRankMinMax",function(){var u,s;s=0,p.forEach((u=i).nodes(),function(c){var h=u.node(c);h.borderTop&&(h.minRank=u.node(h.borderTop).rank,h.maxRank=u.node(h.borderBottom).rank,s=p.max(s,h.maxRank))}),u.graph().maxRank=s}),a("    removeEdgeLabelProxies",function(){var u;p.forEach((u=i).nodes(),function(s){var c=u.node(s);"edge-proxy"===c.dummy&&(u.edge(c.e).labelRank=c.rank,u.removeNode(s))})}),a("    normalize.run",function(){!function(t){t.graph().dummyChains=[],p.forEach(t.edges(),function(e){!function(r,o){var i,a,u,s=o.v,c=r.node(s).rank,h=o.w,d=r.node(h).rank,l=o.name,f=r.edge(o),g=f.labelRank;if(d!==c+1){for(r.removeEdge(o),u=0,++c;c<d;++u,++c)f.points=[],i=V.addDummyNode(r,"edge",a={width:0,height:0,edgeLabel:f,edgeObj:o,rank:c},"_d"),c===g&&(a.width=f.width,a.height=f.height,a.dummy="edge-label",a.labelpos=f.labelpos),r.setEdge(s,i,{weight:f.weight},l),0===u&&r.graph().dummyChains.push(i),s=i;r.setEdge(s,h,{weight:f.weight},l)}}(t,e)})}(i)}),a("    parentDummyChains",function(){!function(t){var e=function(r){var o={},i=0;return p.forEach(r.children(),function a(u){var s=i;p.forEach(r.children(u),a),o[u]={low:s,lim:i++}}),o}(t);p.forEach(t.graph().dummyChains,function(r){for(var o=t.node(r),i=o.edgeObj,a=function(l,f,g,_){var m,y,Z=[],w=[],N=Math.min(f[g].low,f[_].low),q=Math.max(f[g].lim,f[_].lim);m=g;do{m=l.parent(m),Z.push(m)}while(m&&(f[m].low>N||q>f[m].lim));for(y=m,m=_;(m=l.parent(m))!==y;)w.push(m);return{path:Z.concat(w.reverse()),lca:y}}(t,e,i.v,i.w),u=a.path,s=a.lca,c=0,h=u[c],d=!0;r!==i.w;){if(o=t.node(r),d){for(;(h=u[c])!==s&&t.node(h).maxRank<o.rank;)c++;h===s&&(d=!1)}if(!d){for(;c<u.length-1&&t.node(h=u[c+1]).minRank<=o.rank;)c++;h=u[c]}
1t.setParent(r,h),r=t.successors(r)[0]}})}(i)}),a("    addBorderSegments",function(){!function(t){p.forEach(t.children(),function e(r){var o=t.children(r),i=t.node(r);if(o.length&&p.forEach(o,e),p.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,u=i.maxRank+1;a<u;++a)Ca(t,"borderLeft","_bl",r,i,a),Ca(t,"borderRight","_br",r,i,a)}})}(i)}),a("    order",function(){!function(t){var e=V.maxRank(t),r=Ba(t,p.range(1,e+1),"inEdges"),o=Ba(t,p.range(e-1,-1,-1),"outEdges"),i=function(t){var e={},r=p.filter(t.nodes(),function(s){return!t.children(s).length}),o=p.max(p.map(r,function(s){return t.node(s).rank})),i=p.map(p.range(o+1),function(){return[]}),u=p.sortBy(r,function(s){return t.node(s).rank});return p.forEach(u,function a(s){if(!p.has(e,s)){e[s]=!0;var c=t.node(s);i[c.rank].push(s),p.forEach(t.successors(s),a)}}),i}(t);Oa(t,i);for(var a,u=Number.POSITIVE_INFINITY,s=0,c=0;c<4;++s,++c){Hp(s%2?r:o,s%4>=2),i=V.buildLayerMatrix(t);var h=Bp(t,i);h<u&&(c=0,a=p.cloneDeep(i),u=h)}Oa(t,a)}(i)}),a("    insertSelfEdges",function(){var u,s;s=zt.buildLayerMatrix(u=i),p.forEach(s,function(c){var h=0;p.forEach(c,function(d,l){var f=u.node(d);f.order=l+h,p.forEach(f.selfEdges,function(g){zt.addDummyNode(u,"selfedge",{width:g.label.width,height:g.label.height,rank:f.rank,order:l+ ++h,e:g.e,label:g.label},"_se")}),delete f.selfEdges})})}),a("    adjustCoordinateSystem",function(){!function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||Da(t)}(i)}),a("    position",function(){!function(t){(function(e){var r=V.buildLayerMatrix(e),o=e.graph().ranksep,i=0;p.forEach(r,function(a){var u=p.max(p.map(a,function(s){return e.node(s).height}));p.forEach(a,function(s){e.node(s).y=i+u/2}),i+=u+o})})(t=V.asNonCompoundGraph(t)),p.forEach(function(t){var e,r=V.buildLayerMatrix(t),o=p.merge(function Xp(t,e){var r={};return p.reduce(e,function(o,i){var a=0,u=0,s=o.length,c=p.last(i);return p.forEach(i,function(h,d){var l=function(g,_){if(g.node(_).dummy)return p.find(g.predecessors(_),function(m){return g.node(m).dummy})}(t,h),f=l?t.node(l).order:s;(l||h===c)&&(p.forEach(i.slice(u,d+1),function(g){p.forEach(t.predecessors(g),function(_){var m=t.node(_),y=m.order;!(y<a||f<y)||m.dummy&&t.node(g).dummy||Ga(r,_,g)})}),u=d+1,a=f)}),i}),r}(t,r),function Qp(t,e){var r={};function o(i,a,u,s,c){var h;p.forEach(p.range(a,u),function(d){t.node(h=i[d]).dummy&&p.forEach(t.predecessors(h),function(l){var f=t.node(l);f.dummy&&(f.order<s||f.order>c)&&Ga(r,l,h)})})}return p.reduce(e,function(i,a){var u,s=-1,c=0;return p.forEach(a,function(h,d){if("border"===t.node(h).dummy){var l=t.predecessors(h);l.length&&(u=t.node(l[0]).order,o(a,c,d,s,u),c=d,s=u)}o(a,c,a.length,u,i.length)}),a}),r}(t,r)),i={};p.forEach(["u","d"],function(u){e="u"===u?r:p.values(r).reverse(),p.forEach(["l","r"],function(s){"r"===s&&(e=p.map(e,function(l){return p.values(l).reverse()}));var c=("u"===u?t.predecessors:t.successors).bind(t),h=function Kp(t,e,r,o){var i={},a={},u={};return p.forEach(e,function(s){p.forEach(s,function(c,h){i[c]=c,a[c]=c,u[c]=h})}),p.forEach(e,function(s){var c=-1;p.forEach(s,function(h){var d=o(h);if(d.length)for(var l=((d=p.sortBy(d,function(m){return u[m]})).length-1)/2,f=Math.floor(l),g=Math.ceil(l);f<=g;++f){var _=d[f];a[h]===h&&c<u[_]&&!Jp(r,h,_)&&(a[_]=h,a[h]=i[h]=i[_],c=u[_])}})}),{root:i,align:a}}(0,e,o,c),d=function tg(t,e,r,o,i){var a={},u=function(h,d,l,f){var y,Z,w,g=new Yp,_=h.graph(),m=(y=_.nodesep,Z=_.edgesep,w=f,function(N,q,F){var O,$=N.node(q),ut=N.node(F),et=0;if(et+=$.width/2,p.has($,"labelpos"))switch($.labelpos.toLowerCase()){case"l":O=-$.width/2;break;case"r":O=$.width/2}if(O&&(et+=w?O:-O),O=0,et+=($.dummy?Z:y)/2,et+=(ut.dummy?Z:y)/2,et+=ut.width/2,p.has(ut,"labelpos"))switch(ut.labelpos.toLowerCase()){case"l":O=ut.width/2;break;case"r":O=-ut.width/2}return O&&(et+=w?O:-O),O=0,et});return p.forEach(d,function(y){var Z;p.forEach(y,function(w){var N=l[w];if(g.setNode(N),Z){var q=l[Z],F=g.edge(q,N);g.setEdge(q,N,Math.max(m(h,w,Z),F||0))}Z=w})}),g}(t,e,r,i),s=i?"borderLeft":"borderRight";function c(h,d){for(var l=u.nodes(),f=l.pop(),g={};f;)g[f]?h(f):(g[f]=!0,l.push(f),l=l.concat(d(f))),f=l.pop()}return c(function(h){a[h]=u.inEdges(h).reduce(function(d,l){return Math.max(d,a[l.v]+u.edge(l))},0)},u.predecessors.bind(u)),c(function(h){var d=u.outEdges(h).reduce(function(f,g){return Math.min(f,a[g.w]-u.edge(g))},Number.POSITIVE_INFINITY),l=t.node(h);d!==Number.POSITIVE_INFINITY&&l.borderType!==s&&(a[h]=Math.max(a[h],d))},u.successors.bind(u)),p.forEach(o,function(h){a[h]=a[r[h]]}),a}(t,e,h.root,h.align,"r"===s);"r"===s&&(d=p.mapValues(d,function(l){return-l})),i[u+s]=d})});var a=function ng(t,e){return p.minBy(p.values(e),function(r){var o=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return p.forIn(r,function(a,u){var s=t.node(u).width/2;o=Math.max(a+s,o),i=Math.min(a-s,i)}),o-i})}(t,i);return function eg(t,e){var r=p.values(e),o=p.min(r),i=p.max(r);p.forEach(["u","d"],function(a){p.forEach(["l","r"],function(u){var s,c=a+u,h=t[c];if(h!==e){var d=p.values(h);(s="l"===u?o-p.min(d):i-p.max(d))&&(t[c]=p.mapValues(h,function(l){return l+s}))}})})}(i,a),function rg(t,e){return p.mapValues(t.ul,function(r,o){if(e)return t[e.toLowerCase()][o];var i=p.sortBy(p.map(t,o));return(i[1]+i[2])/2})}(i,t.graph().align)}(t),function(e,r){t.node(r).x=e})}(i)}),a("    positionSelfEdges",function(){var u;p.forEach((u=i).nodes(),function(s){var c=u.node(s);if("selfedge"===c.dummy){var h=u.node(c.e.v),d=h.x+h.width/2,l=h.y,f=c.x-d,g=h.height/2;u.setEdge(c.e,c.label),u.removeNode(s),c.label.points=[{x:d+2*f/3,y:l-g},{x:d+5*f/6,y:l-g},{x:d+f,y:l},{x:d+5*f/6,y:l+g},{x:d+2*f/3,y:l+g}],c.label.x=c.x,c.label.y=c.y}})}),a("    removeBorderNodes",function(){var u;p.forEach((u=i).nodes(),function(s){if(u.children(s).length){var c=u.node(s),h=u.node(c.borderTop),d=u.node(c.borderBottom),l=u.node(p.last(c.borderLeft)),f=u.node(p.last(c.borderRight));c.width=Math.abs(f.x-l.x),c.height=Math.abs(d.y-h.y),c.x=l.x+c.width/2,c.y=h.y+c.height/2}}),p.forEach(u.nodes(),function(s){"border"===u.node(s).dummy&&u.removeNode(s)})}),a("    normalize.undo",function(){!function(t){p.forEach(t.graph().dummyChains,function(e){var r,o=t.node(e),i=o.edgeLabel;
1for(t.setEdge(o.edgeObj,i);o.dummy;)r=t.successors(e)[0],t.removeNode(e),i.points.push({x:o.x,y:o.y}),"edge-label"===o.dummy&&(i.x=o.x,i.y=o.y,i.width=o.width,i.height=o.height),o=t.node(e=r)})}(i)}),a("    fixupEdgeLabelCoords",function(){var u;p.forEach((u=i).edges(),function(s){var c=u.edge(s);if(p.has(c,"x"))switch("l"!==c.labelpos&&"r"!==c.labelpos||(c.width-=c.labeloffset),c.labelpos){case"l":c.x-=c.width/2+c.labeloffset;break;case"r":c.x+=c.width/2+c.labeloffset}})}),a("    undoCoordinateSystem",function(){!function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(r){p.forEach(r.nodes(),function(o){Cr(r.node(o))}),p.forEach(r.edges(),function(o){var i=r.edge(o);p.forEach(i.points,Cr),p.has(i,"y")&&Cr(i)})}(t),"lr"!==e&&"rl"!==e||(function(r){p.forEach(r.nodes(),function(o){kr(r.node(o))}),p.forEach(r.edges(),function(o){var i=r.edge(o);p.forEach(i.points,kr),p.has(i,"x")&&kr(i)})}(t),Da(t))}(i)}),a("    translateGraph",function(){!function(u){var s=Number.POSITIVE_INFINITY,c=0,h=Number.POSITIVE_INFINITY,d=0,l=u.graph(),f=l.marginx||0,g=l.marginy||0;function _(m){var y=m.x,Z=m.y,w=m.width,N=m.height;s=Math.min(s,y-w/2),c=Math.max(c,y+w/2),h=Math.min(h,Z-N/2),d=Math.max(d,Z+N/2)}p.forEach(u.nodes(),function(m){_(u.node(m))}),p.forEach(u.edges(),function(m){var y=u.edge(m);p.has(y,"x")&&_(y)}),s-=f,h-=g,p.forEach(u.nodes(),function(m){var y=u.node(m);y.x-=s,y.y-=h}),p.forEach(u.edges(),function(m){var y=u.edge(m);p.forEach(y.points,function(Z){Z.x-=s,Z.y-=h}),p.has(y,"x")&&(y.x-=s),p.has(y,"y")&&(y.y-=h)}),l.width=c-s+f,l.height=d-h+g}(i)}),a("    assignNodeIntersects",function(){var u;p.forEach((u=i).edges(),function(s){var c,h,d=u.edge(s),l=u.node(s.v),f=u.node(s.w);d.points?(c=d.points[0],h=d.points[d.points.length-1]):(d.points=[],c=f,h=l),d.points.unshift(zt.intersectRect(l,c)),d.points.push(zt.intersectRect(f,h))})}),a("    reversePoints",function(){var u;p.forEach((u=i).edges(),function(s){var c=u.edge(s);c.reversed&&c.points.reverse()})}),a("    acyclic.undo",function(){!function(t){p.forEach(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var o=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,o)}})}(i)})}),r("  updateInputGraph",function(){var i,a;a=o,p.forEach((i=t).nodes(),function(u){var s=i.node(u),c=a.node(u);s&&(s.x=c.x,s.y=c.y,a.children(u).length&&(s.width=c.width,s.height=c.height))}),p.forEach(i.edges(),function(u){var s=i.edge(u),c=a.edge(u);s.points=c.points,p.has(c,"x")&&(s.x=c.x,s.y=c.y)}),i.graph().width=a.graph().width,i.graph().height=a.graph().height})})},debug:{debugOrdering:function(t){var e=V.buildLayerMatrix(t),r=new vg({compound:!0,multigraph:!0}).setGraph({});return p.forEach(t.nodes(),function(o){r.setNode(o,{label:o}),r.setParent(o,"layer"+t.node(o).rank)}),p.forEach(t.edges(),function(o){r.setEdge(o.v,o.w,{},o.name)}),p.forEach(e,function(o,i){r.setNode("layer"+i,{rank:"same"}),p.reduce(o,function(u,s){return r.setEdge(u,s,{style:"invis"}),s})}),r}},util:{time:V.time,notime:V.notime},version:"0.8.5"},Zg=Fa.graphlib,yg=Fa.layout;class Ag{constructor(e){this.cardinality=1,this.include=Yt.UNSPECIFIED,this.isGroupNode=!1,this.parentNode=null,this.type=X.NODE,this.name=e.name,this.attr=e.attr||{},this.inputs=e.inputs,this.path=e.path||[],this.width=e.width,this.height=e.height}}class bg{constructor(){this.nodes={},this.edges=[]}}class Tg{constructor(e,r={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=Yt.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=X.META,this.name=e,this.metaGraph=Mr(e,wn.META,r)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(e=>this.metaGraph.node(e))}getRootNode(){let e=this.name.split("/");return this.metaGraph.node(this.name+"/("+e[e.length-1]+")")}leaves(){let e,r=[],o=[this];for(;o.length;){let i=o.shift();i.isGroupNode?(e=i.metaGraph,e.nodes().forEach(a=>o.push(e.node(a)))):r.push(i.name)}return r}}class Ug{constructor(e,r){this.v=e,this.w=r,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(e,r){this.baseEdgeList.push(e)}}function Ra(t,e={}){return new Tg(t,e)}function Ia(t,e){return new Ug(t,e)}function Mr(t,e,r){const o=r||{},i=new Zg.Graph(o);return i.setGraph({name:t,rankdir:o.rankdir||"BT",type:e}),i}function ja(t){return`\u25ec${t}\u25ec`}const Pa=ja("ROOT"),zg=ja("BRIDGE_GRAPH"),an={graph:{meta:{nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};class xg{constructor(e={}){this.graphOptions=e,this.index={},this.graphOptions.compound=!0,this.root=Ra(Pa,this.graphOptions),this.index[Pa
1]=this.root}getNodeMap(){return this.index}node(e){return this.index[e]}setNode(e,r){this.index[e]=r}getBridgeGraph(e){const r=this.index[e];if(!r)throw Error("Could not find node in hierarchy: "+e);if(!("metaGraph"in r))return null;const o=r;if(o.bridgeGraph)return o.bridgeGraph;const i=Mr(zg,wn.BRIDGE,this.graphOptions);if(o.bridgeGraph=i,!r.parentNode||!("metaGraph"in r.parentNode))return i;const a=r.parentNode;return[a.metaGraph,this.getBridgeGraph(a.name)].forEach(u=>{u.edges().filter(s=>s.v===e||s.w===e).forEach(s=>{const c=s.w===e;u.edge(s).baseEdgeList.forEach(h=>{const[d,l]=c?[h.w,s.v]:[h.v,s.w],f=this.getChildName(e,d),g={v:c?l:f,w:c?f:l};let _=i.edge(g);_||(_=Ia(g.v,g.w),_.inbound=c,i.setEdge(g.v,g.w,_)),_.addBaseEdge(h,this)})})}),i}getChildName(e,r){let o=this.index[r];for(;o;){if(o.parentNode&&o.parentNode.name===e)return o.name;o=o.parentNode}throw Error("Could not find immediate child for descendant: "+r)}getPredecessors(e){const r=this.index[e];if(!r)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(r,!0)}getSuccessors(e){const r=this.index[e];if(!r)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(r,!1)}getOneWayEdges(e,r){const o=[];if(!e.parentNode||!e.parentNode.isGroupNode)return o;const i=e.parentNode,a=i.metaGraph,u=this.getBridgeGraph(i.name);return La(a,e,r,o),La(u,e,r,o),o}}function La(t,e,r,o){(r?t.inEdges(e.name):t.outEdges(e.name)).forEach(i=>{const a=t.edge(i);o.push(a)})}class qg{constructor(e){this.hierarchy=e,this.index={},this.hasSubHierarchy={},this.root=new Va(this.hierarchy.root,this.hierarchy.graphOptions),this.index[e.root.name]=this.root,this.buildSubHierarchy(e.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(e){if(e in this.hasSubHierarchy)return;this.hasSubHierarchy[e]=!0;const r=this.index[e];if(r.node.type!==X.META)return;const o=r,i=o.node.metaGraph,a=o.coreGraph;i.nodes().forEach(d=>{const l=this.getOrCreateRenderNodeByName(d);a.setNode(d,l)}
1),i.edges().forEach(d=>{const l=i.edge(d),f=new $a(l);a.setEdge(d.v,d.w,f)});const u=o.node.parentNode;if(!u)return;const s=this.getRenderNodeByName(u.name),c=(d,...l)=>l.concat([d?"IN":"OUT"]).join("~~"),h=this.hierarchy.getBridgeGraph(e);h.edges().forEach(d=>{i.node(d.w)}),h.edges().forEach(d=>{const l=h.edge(d),f=!!i.node(d.w),[g,_]=f?[d.w,d.v]:[d.v,d.w],m=F=>s.coreGraph.edge(f?{v:F,w:e}:{v:e,w:F});let y=m(_);y||(y=m(c(f,_,u.name)));const Z=c(f,e),w=c(f,_,e);let N=a.node(w);if(!N){let F=a.node(Z);F||(F=new ze({name:Z,type:X.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:Yt.UNSPECIFIED,inbound:f,attr:{}}),this.index[Z]=F,a.setNode(Z,F)),N=new ze({name:w,type:X.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:Yt.UNSPECIFIED,inbound:f,attr:{}}),this.index[w]=N,a.setNode(w,N),a.setParent(w,Z),F.node.cardinality++}const q=new $a(l);q.adjoiningMetaEdge=y,f?a.setEdge(w,g,q):a.setEdge(g,w,q)}),[!0,!1].forEach(d=>{const l=c(d,e);a.node(l)&&a.nodes().forEach(f=>{a.node(f).node.type!==X.BRIDGE&&(d?a.predecessors(f):a.successors(f))})})}getOrCreateRenderNodeByName(e){if(!e)return null;if(e in this.index)return this.index[e];const r=this.getNodeByName(e);return r?(this.index[e]=r.isGroupNode?new Va(r,this.hierarchy.graphOptions):new ze(r),this.index[e]):null}getRenderNodeByName(e){return this.index[e]}getNodeByName(e){return this.hierarchy.node(e)}}class ze{constructor(e){this.node=e,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=e.width||0,this.height=e.height||0,this.displayName=e.name,this.attr=e.attr}}class $a{constructor(e){this.metaEdge=e,this.adjoiningMetaEdge=null,this.weight=1,this.points=[],this.startMarkerId=null,this.endMarkerId=null}}class Va extends ze{constructor(e,r){super(e);const o=e.metaGraph.graph();r.compound=!0,this.coreGraph=Mr(o.name,wn.CORE,r)}}function Ha(t,e=an){t.node.isGroupNode&&function(r,o){r.coreGraph.nodes().map(i=>r.coreGraph.node(i)).forEach(i=>{const{height:a,width:u}=i;switch(i.node.type){case X.NODE:Object.assign(i,o.nodeSize.node),i.height=a||o.nodeSize.node.height,i.width=u||o.nodeSize.node.width;break;case X.BRIDGE:Object.assign(i,o.nodeSize.bridge);break;case X.META:i.expanded?Ha(i,o):(Object.assign(i,o.nodeSize.meta),i.height=o.nodeSize.meta.height,i.width=o.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+i.node.type)}var s;i.expanded||((s=i).coreBox.width=s.width,s.coreBox.height=s.height,s.width=Math.max(s.coreBox.width,3*`${s.displayName}`.length))})}(t,e),t.node.type===X.META&&function(r,o){const i=o.subScene.meta;Object.assign(r,i),Object.assign(r.coreBox,function(s,c){Object.assign(s.graph(),{nodesep:c.nodeSep,ranksep:c.rankSep,edgesep:c.edgeSep,align:c.align});const h=[];if(s.nodes().forEach(_=>{s.node(_).node.type!==X.BRIDGE&&h.push(_)}),!h.length)return{width:0,height:0};yg(s);let d=1/0,l=1/0,f=-1/0,g=-1/0;return h.forEach(_=>{const m=s.node(_),y=.5*m.width,Z=m.x-y,w=m.x+y;d=Z<d?Z:d,f=w>f?w:f;const N=.5*m.height,q=m.y-N,F=m.y+N;l=q<l?q:l,g=F>g?F:g}
1),s.edges().forEach(_=>{const m=s.edge(_),y=s.node(m.metaEdge.v),Z=s.node(m.metaEdge.w);if(3===m.points.length&&function(q){let F=Ya(q[0],q[1]);for(let O=1;O<q.length-1;O++){const $=Ya(q[O],q[O+1]);if(Math.abs($-F)>1)return!1;F=$}return!0}(m.points)){if(null!=y){const q=y.expanded?y.x:Br(y);m.points[0].x=q}if(null!=Z){const q=Z.expanded?Z.x:Br(Z);m.points[2].x=q}m.points=[m.points[0],m.points[1]]}null!=Z&&(m.points[m.points.length-1]=Wa(m.points[m.points.length-2],Z)),null!=y&&(m.points[0]=Wa(m.points[1],y)),m.points.forEach(q=>{d=q.x<d?q.x:d,f=q.x>f?q.x:f,l=q.y<l?q.y:l,g=q.y>g?q.y:g})}),s.nodes().forEach(_=>{const m=s.node(_);m.x-=d,m.y-=l}),s.edges().forEach(_=>{s.edge(_).points.forEach(m=>{m.x-=d,m.y-=l})}),{width:f-d,height:g-l}}(r.coreGraph,o.graph.meta));let a=0;r.coreGraph.nodeCount()>0&&a++;const u=a<=1?0:a;r.coreBox.width+=u+u,r.coreBox.height=i.labelHeight+r.coreBox.height,r.width=r.coreBox.width+i.paddingLeft+i.paddingRight,r.height=r.paddingTop+r.coreBox.height+r.paddingBottom}(t,e)}function Ya(t,e){return 180*Math.atan((e.y-t.y)/(e.x-t.x))/Math.PI}function Br(t){return t.expanded?t.x:t.x-t.width/2+0+t.coreBox.width/2}function Wa(t,e){const r=e.expanded?e.x:Br(e),o=e.y,i=t.x-r,a=t.y-o;let u,s,c=e.expanded?e.width:e.coreBox.width,h=e.expanded?e.height:e.coreBox.height;return Math.abs(a)*c/2>Math.abs(i)*h/2?(a<0&&(h=-h),u=0===a?0:h/2*i/a,s=h/2):(i<0&&(c=-c),u=c/2,s=0===i?0:c/2*a/i),{x:r+u,y:o+s}}function Ng(t,e,r){const o=t.nodes.filter((s,c,h)=>h.findIndex(d=>d.id===s.id)!==c).map(s=>s.id);if(o.length)throw new Error(`Duplicated ids found: ${o.join(", ")}`);const i=function(s){const c={nodes:[]},h=Object.keys(s.compound||{}),d=new Map,l=(g,_=[])=>{const m=0===_.length;if(d.has(g))return d.get(g);for(let y=0;y<h.length;y++){let Z=h[y];if(s.compound&&-1!==s.compound[Z].indexOf(g))return _.unshift(Z),l(Z,_)}return m&&d.set(g,_),_};return s.nodes.forEach(g=>{const _=g.id,m=[...l(_),_];let y=(g=>s.edges.filter(_=>_.w===g).map(_=>({name:_.v})))(_);c.nodes.push({name:_,path:m,inputs:y,width:g.width,height:g.height,attr:Object.assign({},g)})}),c}(t),a=function(s,c){const h=(l,f)=>{for(let g of f.values())if(g.includes(l))return!0;return!1},d=(l,f=[])=>{if(0===Object.keys(l).length)return[...new Set(f)];const g=new Map(Object.keys(l).map(m=>[m,l[m]])),_={};for(let[m,y]of g)h(m,g)?_[m]=y:f=f.concat(m,y);return d(_,f)};return d(s).filter(l=>c.includes(l))}(t.compound||{},e?.expanded||[]),{renderInfo:u}=function(s,c="LR"){const h=function Eg(t,e){const r=new xg({rankdir:e.rankDirection});return o=r,i=t,Object.keys(i.nodes).forEach(a=>{const u=i.nodes[a],s=u.path;let c=o.root;c.depth=Math.max(s.length,c.depth);for(let h=0;h<s.length&&(c.depth=Math.max(c.depth,s.length-h),c.cardinality+=u.cardinality,h!==s.length-1);h++){const d=s[h];let l=o.node(d);l||(l=Ra(d,o.graphOptions),l.path=u.path.slice(0,h+1),l.parentNode=c,o.setNode(d,l),c.metaGraph.setNode(d,l)),c=l}o.setNode(u.name,u),u.parentNode=c,c.metaGraph.setNode(u.name,u)}),function(o,i){const a=o.getNodeMap();let u=[],s=[];const c=(h,d)=>{let l=0;for(;h;)d[l++]=h.name,h=h.parentNode;return l-1};
1i.edges.forEach(h=>{u=[],s=[];let d=c(i.nodes[h.v],u),l=c(i.nodes[h.w],s);for(;u[d]===s[l];)if(d--,l--,d<0||l<0)throw Error("No difference found between ancestor paths.");const f=a[u[d+1]],g=u[d],_=s[l];let m=f.metaGraph.edge(g,_);m||(m=Ia(g,_),f.metaGraph.setEdge(g,_,m)),m.addBaseEdge(h,o)})}(r,t),r;var o,i}(function wg(t){const e=new bg;return t.nodes.map(r=>new Ag(r)).forEach(r=>{e.nodes[r.name]=r,r.inputs.forEach(o=>{var a,u;(u=o).name!==(a=r).name&&e.edges.push(Object.assign(Object.assign({},u.attr),{v:u.name,w:a.name}))})}),e}(s),{rankDirection:c});return{hierarchy:h,renderInfo:new qg(h)}}(i,e&&e.rankDirection?e.rankDirection:"LR");return s=u,a.forEach(h=>{const d=s.getRenderInfoNodes().find(g=>g.displayName===h);let l=d&&d.node&&d.node.name||"";const f=s.getRenderNodeByName(l);if(!f)throw new Error(`No nodes found: ${l}`);f.expanded=!0,s.buildSubHierarchy(l)}),Ha(u.root,function(s={}){var c,h,d,l;const f=(null===(c=s?.graph)||void 0===c?void 0:c.meta)||{},g=(null===(h=s?.subScene)||void 0===h?void 0:h.meta)||{},_=(null===(d=s?.nodeSize)||void 0===d?void 0:d.meta)||{},m=(null===(l=s?.nodeSize)||void 0===l?void 0:l.node)||{},y=an.nodeSize.bridge;return{graph:{meta:Object.assign(an.graph.meta,f)},subScene:{meta:Object.assign(an.subScene.meta,g)},nodeSize:{meta:Object.assign(an.nodeSize.meta,_),node:Object.assign(an.nodeSize.node,m),bridge:y}}}(r)),Xa(u.root);var s}function Xa(t){const e=t.coreGraph.nodes().map(o=>t.coreGraph.node(o));return Object.assign(Object.assign({},Qa(t)),{expanded:t.expanded,nodes:t.expanded?(r=e,r.map(o=>o.node.type===X.META?Xa(o):Qa(o))):[],edges:t.expanded?Cg(t):[]});var r}function Qa(t){return{id:t.node.name,name:t.node.name,type:t.node.type,attr:t.attr,parentNodeName:t.node.parentNode?t.node.parentNode.name:null,coreBox:Object.assign({},t.coreBox),x:t.x,y:t.y,width:t.width,height:t.height,radius:t.radius,labelHeight:t.labelHeight,labelOffset:t.labelOffset,outboxWidth:t.outboxWidth,paddingLeft:t.paddingLeft,paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom}}function Cg(t){return t.coreGraph.edges().map(e=>({renderInfoEdge:t.coreGraph.edge(e),edge:e})).filter(({renderInfoEdge:e})=>e.metaEdge).map(({edge:e,renderInfoEdge:r})=>{const o=function(i,a){const u=a.points.map(s=>Object.assign({},s));if(a.adjoiningMetaEdge){const s=a.adjoiningMetaEdge.points,c=a.metaEdge.inbound,h=c?s[s.length-1]:s[0],d=u[c?0:u.length-1],_=h.y-(i.y-i.height/2),y=-(i.paddingTop+i.labelHeight);d.x=h.x-(i.x-i.width/2)-i.paddingLeft,d.y=_+y}return u}(t,r);return{adjoiningEdge:r.adjoiningMetaEdge?{w:r.adjoiningMetaEdge.metaEdge.w,v:r.adjoiningMetaEdge.metaEdge.v}:null,inbound:r.metaEdge.inbound,w:e.w,v:e.v,points:o,weight:r.weight,baseEdgeList:r.metaEdge.baseEdgeList}})}var kg=E(8381);const Dg=["nz-graph-edge",""],Ja=t=>({$implicit:t});function Sg(t,e){if(1&t&&n.GkF(0,0),2&t){const r=n.oxw();n.Q6J("ngTemplateOutlet",r.customTemplate)("ngTemplateOutletContext",n.VKq(2,Ja,r.edge))}}function Mg(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"text",3)(1,"textPath",4),n._uU(2),n.qZA()()),2&t){const r=n.oxw(2);n.xp6(),n.uIk("href","#"+r.id),n.xp6(),n.Oqu(r.edge.label)}}function Bg(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n._UZ(1,"path",1),n.YNc(2,Mg,3,2,":svg:text",2),n.qZA()),2&t){const r=n.oxw();n.xp6(),n.uIk("marker-end","url(#edge-end-arrow)"),n.xp6(),n.um2(2,r.edge.label?2:-1)}}const Og=["nz-graph-node",""];function Gg(t,e){if(1&t&&(n.O4$(),n.GkF(0,0)),2&t){const r=n.oxw();n.Q6J("ngTemplateOutlet",r.customTemplate)("ngTemplateOutletContext",n.VKq(2,Ja,r.node))}}function Fg(t,e){if(1&t&&(n.O4$(),n._UZ(0,"rect",1),n.TgZ(1,"text",2),n._uU(2),n.qZA()),2&t){const r=n.oxw();n.uIk("width",r.node.width)("height",r.node.height),n.xp6(2),n.Oqu(r.node.id||r.node.name)}}function Rg(t,e){return this.edgeTrackByFun}const Ig=(t,e)=>e.name;function jg(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",7)),2&t){const r=e.$implicit,o=n.oxw(2);n.Q6J("edge",r)("edgeType",null==o.nzGraphLayoutConfig||null==o.nzGraphLayoutConfig.defaultEdge?null:o.nzGraphLayoutConfig.defaultEdge.type)("customTemplate",o.customGraphEdgeTemplate)}}function Pg(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",9)),2&t){const r=n.oxw().$implicit,o=n.oxw(2);n.Q6J("node",r)("customTemplate",o.nodeTemplate)}}function Lg(t,e){if(1&t&&(n.O4$(),n._UZ(0,"g",9)),2&t){const r=n.oxw().$implicit,o=n.oxw(2);n.Q6J("node",r)("customTemplate",o.groupNodeTemplate)}}const $g=t=>({renderNode:t,type:"sub"});function Vg(t,e){if(1&t&&(n.O4$(),n.GkF(0,2)),2&t){const r=n.oxw().$implicit;n.oxw(2);const o=n.MAs(6);n.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",n.VKq(2,$g,r))}}function Hg(t,e){if(1&t&&(n.O4$(),n.YNc(0,Pg,1,2,":svg:g",8)(1,Lg,1,2,":svg:g",8)(2,Vg,1,4,":svg:ng-container",2)),2&t){const r=e.$implicit;n.um2(0,1===r.type?0:-1),n.xp6(),n.um2(1,0===r.type?1:-1),n.xp6(),n.um2(2,r.expanded?2:-1)}}function Yg(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g")(1,"g",4)(2,"g",5),n.SjG(3,jg,1,3,":svg:g",10,Rg,!0),n.qZA(),n.TgZ(5,"g",6),n.SjG(6,Hg,3,3,null,null,Ig),n.qZA()()()),2&t){const r=e.renderNode,o=e.type,i=n.oxw();n.uIk("transform","sub"===o?i.subGraphTransform(r):null),n.xp6(),n.uIk("transform",i.coreTransform(r)),n.xp6(2),n.wJu(i.$asNzGraphEdges(r.edges)),n.xp6(3),n.wJu(i.typedNodes(r.nodes))}}const Wg=t=>({renderNode:t,type:"root"}),Xg=["*"];var Ka=function(t){return t.LINE="line",t.CURVE="curve",t}(Ka||{});const un={graph:{meta:{nodeSep:50,rankSep:50,edgeSep:5}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:50,maxLabelWidth:0,height:50},node:{width:50,height:50,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};class Jg{toggle(e){this.expansionModel.toggle(e)}expand(e){const o=this.findParents(this.dataSource.compound||{},e,[e]);this.expansionModel.select(...o)}collapse(e){const o=this.findChildren(this.dataSource.compound||{},e,[e]);this.expansionModel.deselect(...o)}isExpanded(e){return this.expansionModel.isSelected(e)}collapseAll(){this.expansionModel.clear()}
1expandAll(){this.expansionModel.select(...Object.keys(this._data.value.compound||{}))}setData(e){this.expansionModel?.clear(),this.dataSource=e,this._data.next(e)}constructor(e){this._data=new Mn.X({}),this.expansionModel=new qe.Ov(!0),e&&(this.expansionModel?.clear(),this.dataSource=e,this._data.next(e))}connect(){return(0,Ne.T)(this._data,this.expansionModel.changed).pipe((0,ke.U)(()=>this._data.value))}disconnect(){}findParents(e,r,o=[]){const i=Object.keys(e).filter(a=>a!==r).find(a=>e[a].includes(r));return i?this.findParents(e,i,[i,...o]):o}findChildren(e,r,o=[]){const i=Object.keys(e),a=(e[r]||[]).filter(u=>i.includes(u));return a&&a.length>0?a.reduce((u,s)=>Array.from(new Set([...u,...this.findChildren(e,s,[...o,s])])),o):o}}let Kg=(()=>{class t{get id(){return this.edge?.id||`${this.edge.v}--${this.edge.w}`}constructor(r,o,i){this.elementRef=r,this.ngZone=o,this.cdr=i,this.line=Ir().x(a=>a.x).y(a=>a.y).curve(Me),this.el=this.elementRef.nativeElement}ngOnInit(){this.initElementStyle()}ngOnChanges(r){const{edge:o,customTemplate:i,edgeType:a}=r;if(o&&this.ngZone.onStable.pipe((0,On.q)(1)).subscribe(()=>{i&&this.initElementStyle(),this.setLine(),this.cdr.markForCheck()}),a){const u=this.edgeType===Ka.LINE?Me:fu;this.line=Ir().x(s=>s.x).y(s=>s.y).curve(u)}}initElementStyle(){this.path=this.el.querySelector("path"),this.setElementData()}setLine(){this.setPath(this.line(this.edge.points))}setPath(r){this.path.setAttribute("d",r)}setElementData(){this.path&&(this.path.setAttribute("id",this.id),this.path.setAttribute("data-edge",this.id),this.path.setAttribute("data-v",`${this.edge.v}`),this.path.setAttribute("data-w",`${this.edge.w}`))}static#t=this.\u0275fac=function(o){return new(o||t)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO))};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["","nz-graph-edge",""]],inputs:{edge:"edge",edgeType:"edgeType",customTemplate:"customTemplate"},standalone:!0,features:[n.TTD,n.jDz],attrs:Dg,decls:2,vars:1,consts:[[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"nz-graph-edge-line"],["class","nz-graph-edge-text","text-anchor","middle","dy","10"],["text-anchor","middle","dy","10",1,"nz-graph-edge-text"],["startOffset","50%"]],template:function(o,i){1&o&&n.YNc(0,Sg,1,4,"ng-container",0)(1,Bg,3,2),2&o&&n.um2(0,i.customTemplate?0:1)},dependencies:[B.tP],encapsulation:2,changeDetection:0})}return t})(),t0=(()=>{class t{static#t=this.\u0275fac=function(o){return new(o||t)};static#n=this.\u0275dir=n.lG2({type:t,selectors:[["","nzGraphEdge",""]],exportAs:["nzGraphEdge"],standalone:!0})}return t})(),tu=(()=>{class t{static#t=this.\u0275fac=function(o){return new(o||t)};static#n=this.\u0275dir=n.lG2({type:t,selectors:[["","nzGraphGroupNode",""]],exportAs:["nzGraphGroupNode"],standalone:!0})}return t})();class nu{}let Or=(()=>{class t{constructor(r,o,i,a,u){this.ngZone=r,this.el=o,this.builder=i,this.renderer2=a,this.graphComponent=u,this.animationInfo=null,this.initialState=!0,this.destroy$=new Pt.x,this.animationPlayer=null}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Bn.R)(this.el.nativeElement,"click").pipe((0,G.h)(r=>(r.preventDefault(),this.graphComponent.nzNodeClick.observers.length>0)),(0,De.R)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>this.graphComponent.nzNodeClick.emit(this.node))})})}ngOnDestroy(){this.destroy$.next()}makeAnimation(){const r=this.getAnimationInfo();let o;this.animationPlayer&&this.animationPlayer.destroy();const i={...this.animationInfo};this.initialState?(o=this.builder.build([(0,K.oB)({transform:`translate(${r.x}px, ${r.y}px)`}),(0,K.IO)("g",[(0,K.oB)({width:`${r.width}px`,height:`${r.height}px`})])]),this.initialState=!1):o=this.builder.build([(0,K.oB)({transform:`translate(${i.x}px, ${i.y}px)`}),(0,K.IO)("g",[(0,K.oB)({width:`${i.width}px`,height:`${i.height}px`})]),(0,K.ru)([(0,K.IO)("g",[(0,K.jt)("150ms ease-out",(0,K.oB)({width:`${r.width}px`,height:`${r.height}px`}))]),(0,K.jt)("150ms ease-out",(0,K.oB)({transform:`translate(${r.x}px, ${r.y}px)`}))])]),this.animationInfo=r,this.animationPlayer=o.create(this.el.nativeElement),this.animationPlayer.play();const a=new Pt.x;return this.animationPlayer.onDone(()=>{this.renderer2.setAttribute(this.el.nativeElement,"transform",`translate(${r.x}, ${r.y})`),a.next(),a.complete()}),a.asObservable()}makeNoAnimation(){const r=this.getAnimationInfo();this.renderer2.setAttribute(this.el.nativeElement,"transform",`translate(${r.x}, ${r.y})`)}getAnimationInfo(){const{x:r,y:o}=this.nodeTransform();return{width:this.node.width,height:this.node.height,x:r,y:o}}nodeTransform(){return{x:this.computeCXPositionOfNodeShape()-this.node.width/2,y:this.node.y-this.node.height/2}}computeCXPositionOfNodeShape(){return this.node.expanded?this.node.x:this.node.x-this.node.width/2+this.node.coreBox.width/2}static#t=this.\u0275fac=function(o){return new(o||t)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(K._j),n.Y36(n.Qsj),n.Y36(nu))};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["","nz-graph-node",""]],hostVars:7,hostBindings:function(o,i){2&o&&(n.Ikx("id",i.node.id||i.node.name),n.ekj("nz-graph-node-expanded",i.node.expanded)("nz-graph-group-node",0===i.node.type)("nz-graph-base-node",1===i.node.type))},inputs:{node:"node",noAnimation:"noAnimation",customTemplate:"customTemplate"},standalone:!0,features:[n.jDz],attrs:Og,decls:3,vars:1,consts:[[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"nz-graph-node-rect"],["x","10","y","20"]],template:function(o,i){1&o&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Gg,1,4,":svg:ng-container",0)(2,Fg,3,3),n.qZA()),2&o&&(n.xp6(),n.um2(1,i.customTemplate?1:2))},dependencies:[B.tP],encapsulation:2,changeDetection:0})}return(0,jo.gn)([(0,Po.yF)()],t.prototype,"noAnimation",void 0),t})(),eu=(()=>{class t{static#t=this.\u0275fac=function(o){return new(o||t)};static#n=this.\u0275dir=n.lG2({type:t,selectors:[["","nzGraphNode",""]],exportAs:["nzGraphNode"],standalone:!0})}return t})();const ru=(t,e,r)=>{const o=t.getBoundingClientRect(),i=e.getBBox();if(!i.width)return null;const a=(o.width-48)/o.width,u=r||Math.min(o.width/i.width,o.height/i.height,1)*a;return{x:(o.width-i.width*u)/2,y:(o.height-i.height*u)/2,k:u}};let Gr=(()=>{class t{constructor(r,o){this.element=r,this.cdr=o,this.nzMinZoom=.1,this.nzMaxZoom=10,this.nzTransformEvent=ne
1w n.vpe,this.nzZoomChange=new n.vpe,this.destroy$=new Pt.x}ngAfterViewInit(){this.bind()}ngOnDestroy(){this.unbind(),this.destroy$.next(),this.destroy$.complete()}bind(){this.svgElement=this.element.nativeElement.querySelector("svg"),this.gZoomElement=this.element.nativeElement.querySelector("svg > g");const{width:r,height:o}=this.element.nativeElement.getBoundingClientRect();this.svgSelection=Go().selection().select(()=>this.svgElement),this.zoomBehavior=function Fh(){var d,l,f,t=Sh,e=Mh,r=Gh,o=Bh,i=Oh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Js,h=Vr("start","zoom","end"),g=500,_=150,m=0,y=10;function Z(v){v.property("__zoom",Io).on("wheel.zoom",ut).on("mousedown.zoom",et).on("dblclick.zoom",Ee).filter(i).on("touchstart.zoom",d0).on("touchmove.zoom",l0).on("touchend.zoom touchcancel.zoom",f0).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(v,U){return(U=Math.max(a[0],Math.min(a[1],U)))===v.k?v:new mt(U,v.x,v.y)}function N(v,U,A){var C=U[0]-A[0]*v.k,k=U[1]-A[1]*v.k;return C===v.x&&k===v.y?v:new mt(v.k,C,k)}function q(v){return[(+v[0][0]+ +v[1][0])/2,(+v[0][1]+ +v[1][1])/2]}function F(v,U,A,C){v.on("start.zoom",function(){O(this,arguments).event(C).start()}).on("interrupt.zoom end.zoom",function(){O(this,arguments).event(C).end()}).tween("zoom",function(){var k=this,S=arguments,M=O(k,S).event(C),I=e.apply(k,S),L=null==A?q(I):"function"==typeof A?A.apply(k,S):A,ft=Math.max(I[1][0]-I[0][0],I[1][1]-I[0][1]),H=k.__zoom,st="function"==typeof U?U.apply(k,S):U,Zt=c(H.invert(L).concat(ft/H.k),st.invert(L).concat(ft/st.k));return function(ct){if(1===ct)ct=st;else{var yt=Zt(ct),Fr=ft/yt[2];ct=new mt(Fr,L[0]-yt[0]*Fr,L[1]-yt[1]*Fr)}M.zoom(null,ct)}})}function O(v,U,A){return!A&&v.__zooming||new $(v,U)}function $(v,U){this.that=v,this.args=U,this.active=0,this.sourceEvent=null,this.extent=e.apply(v,U),this.taps=0}function ut(v,...U){if(t.apply(this,arguments)){var A=O(this,U).event(v),C=this.__zoom,k=Math.max(a[0],Math.min(a[1],C.k*Math.pow(2,o.apply(this,arguments)))),S=qt(v);if(A.wheel)(A.mouse[0][0]!==S[0]||A.mouse[0][1]!==S[1])&&(A.mouse[1]=C.invert(A.mouse[0]=S)),clearTimeout(A.wheel);else{if(C.k===k)return;A.mouse=[S,C.invert(S)],Wn(this),A.start()}bn(v),A.wheel=setTimeout(function M(){A.wheel=null,A.end()},_),A.zoom("mouse",r(N(w(C,k),A.mouse[0],A.mouse[1]),A.extent,u))}}function et(v,...U){if(!f&&t.apply(this,arguments)){var A=O(this,U,!0).event(v),C=Et(v.view).on("mousemove.zoom",function L(H){if(bn(H),!A.moved){var st=H.clientX-M,Zt=H.clientY-I;A.moved=st*st+Zt*Zt>m}A.event(H).zoom("mouse",r(N(A.that.__zoom,A.mouse[0]=qt(H,S),A.mouse[1]),A.extent,u))},!0).on("mouseup.zoom",function ft(H){C.on("mousemove.zoom mouseup.zoom",null),function Ys(t,e){var r=t.document.documentElement,o=Et(t).on("dragstart.drag",null);e&&(o.on("click.drag",Fe,!0),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}(H.view,A.moved),bn(H),A.event(H).end()},!0),k=qt(v,S),S=v.currentTarget,M=v.clientX,I=v.clientY;(function Hs(t){var e=t.document.documentElement,r=Et(t).on("dragstart.drag",Fe,!0);"onselectstart"in e?r.on("selectstart.drag",Fe,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")})(v.view),Je(v),A.mouse=[k,this.__zoom.invert(k)],Wn(this),A.start()}}function Ee(v,...U){if(t.apply(this,arguments)){var A=this.__zoom,C=qt(v.changedTouches?v.changedTouches[0]:v,this),k=A.invert(C),M=r(N(w(A,A.k*(v.shiftKey?.5:2)),C,k),e.apply(this,U),u);bn(v),s>0?Et(this).transition().duration(s).call(F,M,C,v):Et(this).call(Z.transform,M,C,v)}}function d0(v,...U){if(t.apply(this,arguments)){var S,M,I,L,A=v.touches,C=A.length,k=O(this,U,v.changedTouches.length===C).event(v);for(Je(v),M=0;M<C;++M)L=[L=qt(I=A[M],this),this.__zoom.invert(L),I.identifier],k.touch0?!k.touch1&&k.touch0[2]!==L[2]&&(k.touch1=L,k.taps=0):(k.touch0=L,S=!0,k.taps=1+!!d);d&&(d=clearTimeout(d)),S&&(k.taps<2&&(l=L[0],d=setTimeout(function(){d=null},g)),Wn(this),k.start())}}function l0(v,...U){if(this.__zooming){var S,M,I,L,A=O(this,U).event(v),C=v.changedTouches,k=C.length;for(bn(v),S=0;S<k;++S)I=qt(M=C[S],this),A.touch0&&A.touch0[2]===M.identifier?A.touch0[0]=I:A.touch1&&A.touch1[2]===M.identifier&&(A.touch1[0]=I);if(M=A.that.__zoom,A.touch1){var ft=A.touch0[0],H=A.touch0[1],st=A.touch1[0],Zt=A.touch1[1],ct=(ct=st[0]-ft[0])*ct+(ct=st[1]-ft[1])*ct,yt=(yt=Zt[0]-H[0])*yt+(yt=Zt[1]-H[1])*yt;M=w(M,Math.sqrt(ct/yt)),I=[(ft[0]+st[0])/2,(ft[1]+st[1])/2],L=[(H[0]+Zt[0])/2,(H[1]+Zt[1])/2]}else{if(!A.touch0)return;I=A.touch0[0],L=A.touch0[1]}A.zoom("touch",r(N(M,I,L),A.extent,u))}}function f0(v,...U){if(this.__zooming){var S,M,A=O(this,U).event(v),C=v.changedTouches,k=C.length;for(Je(v),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),S=0;S<k;++S)M=C[S],A.touch0&&A.touch0[2]===M.identifier?delete A.touch0:A.touch1&&A.touch1[2]===M.identifier&&delete A.touch1;if(A.touch1&&!A.touch0&&(A.touch0=A.touch1,delete A.touch1),A.touch0)A.touch0[1]=this.__zoom.invert(A.touch0[0]);else if(A.end(),2===A.taps&&(M=qt(M,this),Math.hypot(l[0]-M[0],l[1]-M[1])<y)){var I=Et(this).on("dblclick.zoom");I&&I.apply(this,arguments)}}}return Z.transform=function(v,U,A,C){var k=v.selection?v.selection():v;k.property("__zoom",Io),v!==k?F(v,U,A,C):k.interrupt().each(function(){O(this,arguments).event(C).start().zoom(null,"function"==typeof U?U.apply(this,arguments):U).end()})},Z.scaleBy=function(v,U,A,C){Z.scaleTo(v,function(){return this.__zoom.k*("function"==typeof U?U.apply(this,arguments):U)},A,C)},Z.scaleTo=function(v,U,A,C){Z.transform(v,function(){var k=e.apply(this,arguments),S=this.__zoom,M=null==A?q(k):"function"==typeof A?A.apply(this,arguments):A,I=S.invert(M),L="function"==typeof U?U.apply(this,arguments):U;return r(N(w(S,L),M,I),k,u)},A,C)},Z.translateBy=function(v,U,A,C){Z.transform(v,function(){return r(this.__zoom.translate("function"==typeof U?U.apply(this,arguments):U,"function"==typeof A?A.apply(this,arguments):A),e.apply(this,arguments),u)},null,C)},Z.translateTo=function(v,U,A,C,k){Z.transform(v,function(){var S=e.apply(this,arguments),M=this.__zoom,I=null==C?q(S):"function"==typeof C?C.apply(this,arguments):C;return r(An.translate(I[0],I[1]).scale(M.k).translate("function"==typeof U?-U.apply(this,arguments):-U,"function"==typeof A?-A.apply(this,arguments):-A),S,u)},C,k)},$.prototype={event:function(v){return v&&(this.sourceEvent=v),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit
1("start")),this},zoom:function(v,U){return this.mouse&&"mouse"!==v&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&"touch"!==v&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&"touch"!==v&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(v){var U=Et(this.that).datum();h.call(v,this.that,new Dh(v,{sourceEvent:this.sourceEvent,target:Z,type:v,transform:this.that.__zoom,dispatch:h}),U)}},Z.wheelDelta=function(v){return arguments.length?(o="function"==typeof v?v:te(+v),Z):o},Z.filter=function(v){return arguments.length?(t="function"==typeof v?v:te(!!v),Z):t},Z.touchable=function(v){return arguments.length?(i="function"==typeof v?v:te(!!v),Z):i},Z.extent=function(v){return arguments.length?(e="function"==typeof v?v:te([[+v[0][0],+v[0][1]],[+v[1][0],+v[1][1]]]),Z):e},Z.scaleExtent=function(v){return arguments.length?(a[0]=+v[0],a[1]=+v[1],Z):[a[0],a[1]]},Z.translateExtent=function(v){return arguments.length?(u[0][0]=+v[0][0],u[1][0]=+v[1][0],u[0][1]=+v[0][1],u[1][1]=+v[1][1],Z):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},Z.constrain=function(v){return arguments.length?(r=v,Z):r},Z.duration=function(v){return arguments.length?(s=+v,Z):s},Z.interpolate=function(v){return arguments.length?(c=v,Z):c},Z.on=function(){var v=h.on.apply(h,arguments);return v===h?Z:v},Z.clickDistance=function(v){return arguments.length?(m=(v=+v)*v,Z):Math.sqrt(m)},Z.tapDistance=function(v){return arguments.length?(y=+v,Z):y},Z}().extent([[0,0],[r,o]]).scaleExtent([this.nzMinZoom,this.nzMaxZoom]).on("zoom",i=>{this.zoomed(i)}),this.svgSelection.call(this.zoomBehavior,An.translate(0,0).scale(this.nzZoom||1)),this.reScale(0,this.nzZoom)}unbind(){this.svgSelection?.interrupt().selectAll("*").interrupt(),this.zoomBehavior&&this.zoomBehavior.on("end",null).on("zoom",null)}fitCenter(r=0){this.reScale(r)}focus(r,o=0){if(!this.svgElement.getElementById(`${r}`))return;const i=this.svgElement.getElementById(`${r}`),a=this.svgElement.getBoundingClientRect(),u=this.getRelativePositionInfo(i),s=Ro(this.svgElement),d=a.left+a.width/2-(u.topLeft.x+u.bottomRight.x)/2,l=a.top+a.height/2-(u.topLeft.y+u.bottomRight.y)/2;this.svgSelection.transition().duration(o).call(this.zoomBehavior.translateBy,d/s.k,l/s.k)}zoomed({transform:r}){const{x:o,y:i,k:a}=r;this.gZoomElement.setAttribute("transform",`translate(${o}, ${i})scale(${a})`),this.nzZoom=a,this.nzZoomChange.emit(this.nzZoom),this.nzTransformEvent.emit(r),this.cdr.markForCheck()}reScale(r,o){const i=ru(this.svgElement,this.gZoomElement,o);if(!i)return;const{x:a,y:u,k:s}=i,c=An.translate(a,u).scale(Math.max(s,this.nzMinZoom));this.svgSelection.transition().duration(r).call(this.zoomBehavior.transform,c).on("end.fitted",()=>{this.zoomBehavior.on("end.fitted",null)})}getRelativePositionInfo(r){const o=r.getBBox(),i=r.getScreenCTM();let a=this.svgElement.createSVGPoint(),u=this.svgElement.createSVGPoint();return a.x=o.x,a.y=o.y,u.x=o.x+o.width,u.y=o.y+o.height,a=a.matrixTransform(i),u=u.matrixTransform(i),{topLeft:a,bottomRight:u}}static#t=this.\u0275fac=function(o){return new(o||t)(n.Y36(n.SBq),n.Y36(n.sBO))};static#n=this.\u0275dir=n.lG2({type:t,selectors:[["","nz-graph-zoom",""]],inputs:{nzZoom:"nzZoom",nzMinZoom:"nzMinZoom",nzMaxZoom:"nzMaxZoom"},outputs:{nzTransformEvent:"nzTransformEvent",nzZoomChange:"nzZoomChange"},exportAs:["nzGraphZoom"],standalone:!0})}return t})(),ou=(()=>{class t{constructor(r,o,i,a){this.cdr=r,this.elementRef=o,this.noAnimation=i,this.nzGraphZoom=a,this.nzRankDirection="LR",this.nzAutoSize=!1,this.nzGraphInitialized=new n.vpe,this.nzGraphRendered=new n.vpe,this.nzNodeClick=new n.vpe,this.requestId=-1,this.transformStyle="",this.graphRenderedSubject$=new hn.t(1),this.renderInfo={labelHeight:0},this.mapOfNodeAttr={},this.mapOfEdgeAttr={},this.zoom=1,this.typedNodes=t=>t,this.layoutSetting=un,this.destroy$=new Pt.x,this.edgeTrackByFun=(u,s)=>`${s.v}-${s.w}`,this.subGraphTransform=u=>`translate(${u.x-u.coreBox.width/2}, ${u.y-u.height/2+u.paddingTop})`,this.$asNzGraphEdges=u=>u,this.coreTransform=u=>`translate(0, ${u.parentNodeName?u.labelHeight:0})`}ngOnInit(){this.graphRenderedSubject$.pipe((0,On.q)(1),(0,De.R)(this.destroy$)).subscribe(()=>{this.nzGraphZoom||this.fitCenter(),this.nzGraphInitialized.emit(this)})}ngOnChanges(r){const{nzAutoFit:o,nzRankDirection:i,nzGraphData:a,nzGraphLayoutConfig:u}=r;u&&(this.layoutSetting=this.mergeConfig(u.currentValue)),a&&this.dataSource!==this.nzGraphData&&this._switchDataSource(this.nzGraphData),(
1o&&!o.firstChange||i&&!i.firstChange)&&this.dataSource.dataSource&&this.drawGraph(this.dataSource.dataSource,{rankDirection:this.nzRankDirection,expanded:this.dataSource.expansionModel.selected||[]}).then(()=>{this.cdr.markForCheck()}),this.cdr.markForCheck()}ngAfterContentChecked(){this.dataSource&&!this._dataSubscription&&this.observeRenderChanges()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.dataSource&&"function"==typeof this.dataSource.disconnect&&this.dataSource.disconnect(),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),(0,Rh.h)(this.requestId)}fitCenter(){const{x:r,y:o,k:i}=ru(this.elementRef.nativeElement.querySelector("svg"),this.elementRef.nativeElement.querySelector("svg > g"));i&&(this.zoom=i,this.transformStyle=`translate(${r}, ${o})scale(${i})`),this.cdr.markForCheck()}drawGraph(r,o,i=!1){return new Promise(a=>{this.requestId=requestAnimationFrame(()=>{const u=this.buildGraphInfo(r,o);this.renderInfo=u,this.cdr.markForCheck(),this.requestId=requestAnimationFrame(()=>{this.drawNodes(!this.noAnimation?.nzNoAnimation).then(()=>{this.cdr.markForCheck(),i?this.resizeNodeSize().then(()=>{this.drawGraph(this.dataSource.dataSource,o,!1).then(()=>a())}):(this.graphRenderedSubject$.next(),this.nzGraphRendered.emit(this),a())})})}),this.cdr.markForCheck()})}drawNodes(r=!0){return new Promise(o=>{r?this.makeNodesAnimation().subscribe(()=>{o()}):(this.listOfNodeComponent.map(i=>{i.makeNoAnimation()}),o())})}resizeNodeSize(){return new Promise(r=>{const o=this.dataSource.dataSource;let i=this.nzGraphZoom?.nzZoom||this.zoom||1;this.listOfNodeElement.forEach(a=>{const u=a.nativeElement;if(u){let s,c;const h=u.querySelector("foreignObject > :first-child")?.getBoundingClientRect();if(h)s=h.width,c=h.height;else{const l=u.getBBox();s=l.width,c=l.height,i=1}const d=o.nodes.find(l=>`${l.id}`===a.nativeElement.id);d&&s&&c&&(d.height=c/i,d.width=s/i)}}),r()})}_switchDataSource(r){this.dataSource&&"function"==typeof this.dataSource.disconnect&&this.nzGraphData.disconnect(),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this.dataSource=r,this.observeRenderChanges()}observeRenderChanges(){let r,o={rankDirection:this.nzRankDirection};if(function e0(t){return t&&"function"==typeof t.connect}(this.dataSource)&&(r=this.dataSource.connect()),!r)throw Error("A valid data source must be provided.");this._dataSubscription=r.pipe((0,De.R)(this.destroy$)).subscribe(i=>{o={rankDirection:this.nzRankDirection,expanded:this.nzGraphData.expansionModel.selected},this.drawGraph(i,o,this.nzAutoSize).then(()=>{this.cdr.detectChanges()})})}buildGraphInfo(r,o){this.parseInfo(r);const i=Ng(r,o,this.layoutSetting),a=u=>{u.forEach(s=>{const{x:c,y:h}=s;s.xOffset=c,s.yOffset=h,1===s.type&&this.mapOfNodeAttr.hasOwnProperty(s.name)?Object.assign(s,this.mapOfNodeAttr[s.name]):0===s.type&&(s.edges.forEac
1h(d=>{this.mapOfEdgeAttr.hasOwnProperty(`${d.v}-${d.w}`)&&Object.assign(d,this.mapOfEdgeAttr[`${d.v}-${d.w}`])}),a(s.nodes))})};return a(i.nodes),i.edges.forEach(u=>{this.mapOfEdgeAttr.hasOwnProperty(`${u.v}-${u.w}`)&&Object.assign(u,this.mapOfEdgeAttr[`${u.v}-${u.w}`])}),i}makeNodesAnimation(){return(0,Ce.D)(this.listOfNodeComponent.map(r=>r.makeAnimation())).pipe((0,T.x)(()=>{this.cdr.detectChanges()}))}parseInfo(r){r.nodes.forEach(o=>{this.mapOfNodeAttr[o.id]=o}),r.edges.forEach(o=>{this.mapOfEdgeAttr[`${o.v}-${o.w}`]=o})}mergeConfig(r){const o=r?.layout||{},i=r?.subScene||{},a=r?.defaultNode||{};return{graph:{meta:{...un.graph.meta,...o}},subScene:{meta:{...un.subScene.meta,...i}},nodeSize:{meta:{...un.nodeSize.meta,...r?.defaultCompoundNode||{}},node:{...un.nodeSize.node,...a},bridge:un.nodeSize.bridge}}}static#t=this.\u0275fac=function(o){return new(o||t)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(kg.P,9),n.Y36(Gr,8))};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-graph"]],contentQueries:function(o,i,a){if(1&o&&(n.Suo(a,eu,7,n.Rgc),n.Suo(a,tu,7,n.Rgc),n.Suo(a,t0,7,n.Rgc)),2&o){let u;n.iGM(u=n.CRH())&&(i.nodeTemplate=u.first),n.iGM(u=n.CRH())&&(i.groupNodeTemplate=u.first),n.iGM(u=n.CRH())&&(i.customGraphEdgeTemplate=u.first)}},viewQuery:function(o,i){if(1&o&&(n.Gf(Or,5,n.SBq),n.Gf(Or,5)),2&o){let a;n.iGM(a=n.CRH())&&(i.listOfNodeElement=a),n.iGM(a=n.CRH())&&(i.listOfNodeComponent=a)}},hostVars:4,hostBindings:function(o,i){2&o&&n.ekj("nz-graph",!0)("nz-graph-auto-size",i.nzAutoSize)},inputs:{nzGraphData:"nzGraphData",nzRankDirection:"nzRankDirection",nzGraphLayoutConfig:"nzGraphLayoutConfig",nzAutoSize:"nzAutoSize"},outputs:{nzGraphInitialized:"nzGraphInitialized",nzGraphRendered:"nzGraphRendered",nzNodeClick:"nzNodeClick"},exportAs:["nzGraph"],standalone:!0,features:[n._Bn([{provide:nu,useExisting:t}]),n.TTD,n.jDz],ngContentSelectors:Xg,decls:7,vars:5,consts:[["width","100%","height","100%"],["nz-graph-defs",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["groupTemplate",""],[1,"core"],[1,"nz-graph-edges"],[1,"nz-graph-nodes"],["nz-graph-edge","",1,"nz-graph-edge",3,"edge","edgeType","customTemplate"],["class","nz-graph-node","nz-graph-node","",3,"node","customTemplate"],["nz-graph-node","",1,"nz-graph-node",3,"node","customTemplate"],["class","nz-graph-edge","nz-graph-edge","",3,"edge","edgeType","customTemplate"]],template:function(o,i){if(1&o&&(n.F$t(),n.Hsn(0),n.O4$(),n.TgZ(1,"svg",0),n._UZ(2,"defs",1),n.TgZ(3,"g"),n.GkF(4,2),n.qZA()(),n.YNc(5,Yg,8,2,"ng-template",null,3,n.W1O)),2&o){const a=n.MAs(6);n.xp6(3),n.uIk("transform",i.transformStyle),n.xp6(),n.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",n.VKq(3,Wg,i.renderInfo))}},dependencies:[B.tP,Kg,Or],encapsulation:2,changeDetection:0})}return(0,jo.gn)([(0,Po.yF)()],t.prototype,"nzAutoSize",void 0),t})(),r0=(()=>{class t{static#t=this.\u0275fac=function(o){return new(o||t)};static#n=this.\u0275mod=n.oAB({type:t});static#e=this.\u0275inj=n.cJS({})}return t})();var iu=E(6223),au=E(4119),o0=E(2987),xe=E(7225);function a0(t,e){if(1&t){const r=n.EpF();n.ynx(0),n.O4$(),n.TgZ(1,"foreignObject",10),n.kcU(),n.TgZ(2,"div",11),n.NdJ("click",function(){const a=n.CHM(r).$implicit,u=n.oxw();return n.KtG(u.focusNode(a.id||a.name))}),n.TgZ(3,"div",12),n._uU(4),n.qZA()()(),n.BQk()}if(2&t){const r=e.$implicit;n.xp6(),n.uIk("width",r.width)("height",r.height),n.xp6(3),n.hij(" ",r.name," ")}}function u0(t,e){if(1&t){const r=n.EpF();n.ynx(0),n.O4$(),n.TgZ(1,"foreignObject",10),n.kcU(),n.TgZ(2,"div",13),n.NdJ("click",function(){const a=n.CHM(r).$implicit,u=n.oxw();return n.KtG(u.focusNode(a.id||a.name))}),n.TgZ(3,"div",12),n._uU(4),n.qZA()()(),n.BQk()}if(2&t){const r=e.$implicit;n.xp6(),n.uIk("width",r.width)("height",r.height),n.xp6(3),n.hij(" ",r.name," ")}}let uu=(()=>{class t{constructor(){this.zoom=.5,this.testDef={nodes:[{id:"0",label:"0"},{id:"1",label:"1"},{id:"2",label:"2"},{id:"3",label:"3"},{id:"4",label:"4"},{id:"5",label:"5"},{id:"6",label:"6"},{id:"7",label:"7"},{id:"8",label:"8"},{id:"9",label:"9"},{id:"10",label:"10"},{id:"11",label:"11"},{id:"12",label:"12"},{id:"13",label:"13"},{id:"14",label:"14"},{id:"15",label:"15"}],edges:[{v:"0",w:"1"},{v:"0",w:"2"},{v:"0",w:"3"},{v:"0",w:"4"},{v:"0",w:"5"},{v:"0",w:"7"},{v:"0",w:"8"},{v:"0",w:"9"},{v:"0",w:"10"},{v:"0",w:"11"},{v:"0",w:"13"},{v:"0",w:"14"},{v:"0",w:"15"},{v:"2",w:"3"},{v:"4",w:"5"},{v:"4",w:"6"},{v:"5",w:"6"},{v:"7",w:"13"},{v:"8",w:"14"},{v:"9",w:"10"},{v:"10",w:"14"},{v:"10",w:"12"},{v:"11",w:"14"},{v:"12",w:"13"}],compound:{G0:["4","5","15"]}},this.rankDirection="TB",this.graphData=new Jg(this.testDef)}expand(r){this.graphData.expand(r)}collapse(r){this.graphData.collapse(r)}
1expandAll(){this.graphData.expandAll()}collapseAll(){this.graphData.collapseAll()}fit(){this.zoomController?.fitCenter()}focusNode(r){this.zoomController?.focus(r)}graphInitialized(r){this.zoomController?.fitCenter()}static#t=this.\u0275fac=function(o){return new(o||t)};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-graph-customized"]],viewQuery:function(o,i){if(1&o&&(n.Gf(ou,7),n.Gf(Gr,7)),2&o){let a;n.iGM(a=n.CRH())&&(i.nzGraphComponent=a.first),n.iGM(a=n.CRH())&&(i.zoomController=a.first)}},decls:18,vars:4,consts:[["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click"],[3,"ngModel","ngModelChange"],["nz-radio-button","","nzValue","LR"],["nz-radio-button","","nzValue","RL"],["nz-radio-button","","nzValue","TB"],["nz-radio-button","","nzValue","BT"],["nz-graph-zoom","",3,"nzGraphData","nzAutoSize","nzRankDirection","nzGraphInitialized"],[4,"nzGraphNode"],[4,"nzGraphGroupNode"],["x","0","y","0"],[1,"graph-node","leaf-node",3,"click"],[1,"title"],[1,"graph-node","group-node",3,"click"]],template:function(o,i){1&o&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return i.expandAll(
1)}),n._uU(1,"ExpandAll"),n.qZA(),n.TgZ(2,"button",0),n.NdJ("click",function(){return i.collapseAll()}),n._uU(3,"CollapseAll"),n.qZA(),n.TgZ(4,"button",1),n.NdJ("click",function(){return i.fit()}),n._uU(5,"Fit"),n.qZA(),n.TgZ(6,"nz-radio-group",2),n.NdJ("ngModelChange",function(u){return i.rankDirection=u}),n.TgZ(7,"label",3),n._uU(8,"LR"),n.qZA(),n.TgZ(9,"label",4),n._uU(10,"RL"),n.qZA(),n.TgZ(11,"label",5),n._uU(12,"TB"),n.qZA(),n.TgZ(13,"label",6),n._uU(14,"BT"),n.qZA()(),n.TgZ(15,"nz-graph",7),n.NdJ("nzGraphInitialized",function(u){return i.graphInitialized(u)}),n.YNc(16,a0,5,3,"ng-container",8)(17,u0,5,3,"ng-container",9),n.qZA()),2&o&&(n.xp6(6),n.Q6J("ngModel",i.rankDirection),n.xp6(9),n.Q6J("nzGraphData",i.graphData)("nzAutoSize",!0)("nzRankDirection",i.rankDirection))},dependencies:[iu.JJ,iu.On,ou,eu,tu,Gr,au.ix,cn.w,o0.dQ,xe.Of,xe.Bq,xe.Dg],styles:["nz-radio-group[_ngcontent-%COMP%]{float:right}button[_ngcontent-%COMP%]{margin-right:12px}nz-graph[_ngcontent-%COMP%]{height:400px}.graph-node[_ngcontent-%COMP%]{border:1px solid #8cc8ff;cursor:pointer;font-size:12px;height:100%;line-height:1.2;border-radius:0;text-align:center;word-break:break-all;display:block}.group-node[_ngcontent-%COMP%]{border-width:4px}.leaf-node[_ngcontent-%COMP%]{color:#1a90ff;background:rgba(26,144,255,.15);min-height:30px;height:-moz-fit-content;height:fit-content}.title[_ngcontent-%COMP%]{padding:4px;word-break:keep-all}"]})}return t})(),s0=(()=>{class t{constructor(){this.expanded=!1}goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(r=>{r.nzExpanded=this.expanded,r.expandCode(this.expanded),r.check()})}static#t=this.\u0275fac=function(o){return new(o||t)};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-graph"]],viewQuery:function(o,i){if(1&o&&n.Gf(xt.G,5),2&o){let a;n.iGM(a=n.CRH())&&(i.codeBoxes=a)}},decls:1019,vars:8,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["nzHref","#components-graph-demo-customized","nzTitle","\u81ea\u5b9a\u4e49"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/graph/doc/index.zh-CN.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nz-icon","","nzType","edit"],[2,"border-color","#faad14"],["id","\u4f55\u65f6\u4f7f\u7528"],["onclick","window.location.hash = '\u4f55\u65f6\u4f7f\u7528'",1,"anchor"],["id","\u5f15\u5165\u6a21\u5757"],["onclick","window.location.hash = '\u5f15\u5165\u6a21\u5757'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["id","\u5f15\u5165\u6837\u5f0f"],["onclick","window.location.hash = '\u5f15\u5165\u6837\u5f0f'",1,"anchor"],[1,"language-less"],[1,"token","variable"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","\u5c55\u5f00\u5168\u90e8\u4ee3\u7801",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzTitle","\u81ea\u5b9a\u4e49","nzSelector","nz-demo-graph-customized","nzGenerateCommand","ng g ng-zorro-antd:graph-customized <name>","nzComponentName","NzDemoGraphCustomizedComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],[1,"language-sh"],[1,"token","operator"],["id","nz-graph:standalone"],[1,"api-type-label","component"],[1,"api-type-label","standalone"],["onclick","window.location.hash = 'nz-graph:standalone'",1,"anchor"],["id","\u7ec4\u4ef6\u65b9\u6cd5"],["onclick","window.location.hash = '\u7ec4\u4ef6\u65b9\u6cd5'",1,"anchor"],["id","[nz-graph-zoom]:standalone"],[1,"api-type-label","directive"],["onclick","window.location.hash = '[nz-graph-zoom]:standalone'",1,"anchor"],["id","nzgraphdata"],["onclick","window.location.hash = 'nzgraphdata'",1,"anchor"],["id","nzgraphlayoutconfig"],["onclick","window.location.hash = 'nzgraphlayoutconfig'",1,"anchor"],["id","nzgraphd
1atadef"],["onclick","window.location.hash = 'nzgraphdatadef'",1,"anchor"],["id","nzgraphnode"],["onclick","window.location.hash = 'nzgraphnode'",1,"anchor"],["id","nzgraphedge"],["onclick","window.location.hash = 'nzgraphedge'",1,"anchor"],["id","nzgraphgroupnode"],["onclick","window.location.hash = 'nzgraphgroupnode'",1,"anchor"],["id","[nzgraphnode]"],["onclick","window.location.hash = '[nzgraphnode]'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],[1,"token","attr-value"],["id","[nzgraphgroupnode]"],["onclick","window.location.hash = '[nzgraphgroupnode]'",1,"anchor"],["id","[nzgraphedge]"],["onclick","window.location.hash = '[nzgraphedge]'",1,"anchor"],[1,"token","namespace"],["id","\u6837\u5f0f"],["onclick","window.location.hash = '\u6837\u5f0f'",1,"anchor"],["id","\u8bf4\u660e"],["onclick","window.location.hash = '\u8bf4\u660e'",1,"anchor"],["href","https://www.npmjs.com/package/dagre-compound","target","_blank","rel","noopener"],["href","https://github.com/angular/components/blob/master/src/cdk/collections/selection-model.ts","target","_blank","rel","noopener"]],template:function(o,i){1&o&&(n.TgZ(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),n.NdJ("nzClick",function(u){return i.goLink(u)}),n._UZ(3,"nz-link",2)(4,"nz-link",3),n.qZA()(),n.TgZ(5,"section",4)(6,"h1"),n._uU(7,"Graph"),n.TgZ(8,"span",5),n._uU(9,"\u6d41\u7a0b\u56fe"),n.qZA(),n._UZ(10,"span",6),n.TgZ(11,"a",7),n._UZ(12,"span",8),n.qZA()(),n.TgZ(13,"section",4),n.IAx(),n.TgZ(14,"blockquote",9)(15,"p"),n._uU(16,"NG-ZORRO \u5b9e\u9a8c\u6027\u529f\u80fd\u662f\u6307\u5df2\u53d1\u5e03\u4f46\u4e0d\u7a33\u5b9a\u6216\u8005\u8fd8\u672a\u51c6\u5907\u597d\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u7684\u529f\u80fd\u3002"),n.qZA(),n.TgZ(17,"p"),n._uU(18,"\u5f00\u53d1\u8005\u6216\u7528\u6237\u53ef\u4ee5\u9009\u62e9\u5728\u6b63\u5f0f\u53d1\u5e03\u524d\u4f7f\u7528\u8fd9\u4e9b\u529f\u80fd\uff0c\u4f46\u662f\u6bcf\u6b21\u53d1\u5e03\u7248\u672c\u65f6\u90fd\u53ef\u80fd\u5b58\u5728 "),n.TgZ(19,"strong"),n._uU(20,"breaking changes"),n.qZA(),n._uU(21,"\u3002"),n.qZA()(),n.TgZ(22,"h2",10)(23,"span"),n._uU(24,"\u4f55\u65f6\u4f7f\u7528"),n.qZA(),n.TgZ(25,"a",11),n._uU(26,"#"),n.qZA()(),n.TgZ(27,"p"),n._uU(28,"\u9700\u8981\u5728\u7f51\u9875\u4e0a\u6e32\u67d3 GRAPH \u56fe\u65f6\u4f7f\u7528\u3002"),n.qZA(),n.TgZ(29,"h3",12)(30,"span"),n._uU(31,"\u5f15\u5165\u6a21\u5757"),n.qZA(),n.TgZ(32,"a",13),n._uU(33,"#"),n.qZA()(),n.TgZ(34,"blockquote")(35,"p"),n._uU(36,"\u76ee\u524d\u7ec4\u4ef6\u4f9d\u8d56 d3-drag d3-zoom d3-selection d3-transition d3-shape \u7528\u4e8e\u7ed8\u5236\u76f8\u5173\u5c5e\u6027\uff08\u53ef\u80fd\u4f1a\u5728\u4e4b\u540e\u7684\u7248\u672c\u4e2d\u9010\u6b65\u66ff\u6362\uff09"),n.qZA()(),n.TgZ(37,"pre",14)(38,"code")(39,"span",15),n._uU(40,"import"),n.qZA(),n._uU(41," "),n.TgZ(42,"span",16),n._uU(43,"{"),n.qZA(),n._uU(44," NzGraphModule "),n.TgZ(45,"span",16),n._uU(46,"}"),n.qZA(),n._uU(47," "),n.TgZ(48,"span",15),n._uU(49,"from"),n.qZA(),n._uU(50," "),n.TgZ(51,"span",17),n._uU(52,"'ng-zorro-antd/graph'"),n.qZA(),n.TgZ(53,"span",16),n._uU(54,";"),n.qZA()()(),n.TgZ(55,"h3",18)(56,"span"),n._uU(57,"\u5f15\u5165\u6837\u5f0f"),n.qZA(),n.TgZ(58,"a",19),n._uU(59,"#"),n.qZA()(),n.TgZ(60,"pre",20)(61,"code")(62,"span",21),n._uU(63,"@import"),n.qZA(),n._uU(64," "),n.TgZ(65,"span",17),n._uU(66,"'node_modules/ng-zorro-antd/graph/style/entry.less'"),n.qZA(),n.TgZ(67,"span",16),n._uU(68,";"),n.qZA()()(),n.fQ9(),n.qZA(),n.TgZ(69,"h2")(70,"span"),n._uU(71,"\u4ee3\u7801\u6f14\u793a"),n.qZA(),n.TgZ(72,"span",22),n.NdJ("click",function(){return i.expandAllCode()}),n.qZA()()(),n.TgZ(73,"div",23)(74,"div",24)(75,"nz-code-box",25),n._UZ(76,"nz-demo-graph-customized",26),n.TgZ(77,"div",27),n.IAx(),n.TgZ(78,"p"),n._uU(79,"\u81ea\u5b9a\u4e49 node \u6837\u5f0f\u3002"),n.qZA(),n.fQ9(),n.qZA()()()(),n.TgZ(80,"section",28),n.IAx(),n.TgZ(81,"h2",29)(82,"span"),n._uU(83,"API"),n.qZA(),n.TgZ(84,"a",30),n._uU(85,"#"),n.qZA()(),n.TgZ(86,"p"),n._uU(87,"\u5b89\u88c5\u4f9d\u8d56\uff1a"),n.qZA(),n.TgZ(88,"pre",31)(89,"code"),n._uU(90,"npm install dagre"),n.TgZ(91,"span",32),n._uU(92,"-"),n.qZA(),n._uU(93,"compound dagre d3"),n.TgZ(94,"span",32),n._uU(95,"-"),n.qZA(),n._uU(96,"transition d3"),n.TgZ(97,"span",32),n._uU(98,"-"),n.qZA(),n._uU(99,"zoom d3"),n.TgZ(100,"span",32),n._uU(101,"-"),n.qZA(),n._uU(102,"selection d3"),n.TgZ(103,"span",32),n._uU(104,"-"),n.qZA(),n._uU(105,"shape d3"),n.TgZ(106,"span",32),n._uU(107,"-"),n.qZA(),n._uU(108,"drag "),n.TgZ(109,"span",21),n._uU(110,"@types"),n.qZA(),n.TgZ(111,"span",32),n._uU(112,"/"),n.qZA(),n._uU(113,"d3"),n.qZA()(),n.TgZ(114,"h3",33)(115,"span"),n._uU(116,"nz-graph"),n.qZA(),n.TgZ(117,"label",34),n._uU(118,"component"),n.qZA(),n.TgZ(119,"label",35),n._uU(120,"standalone"),n.qZA(),n.TgZ(121,"a",36),n._uU(122,"#"),n.qZA()(),n.TgZ(123,"table")(124,"thead")(125,"tr")(126,"th"),n._uU(127,"\u53c2\u6570"),n.qZA(),n.TgZ(128,"th"),n._uU(129,"\u8bf4\u660e"),n.qZA(),n.TgZ(130,"th"),n._uU(131,"\u7c7b\u578b"),n.qZA(),n.TgZ(132,"th"),n._uU(133,"\u9ed8\u8ba4\u503c"),n.qZA()()(),n.TgZ(134,"tbody")(135,"tr")(136,"td")(137,"code"),n._uU(138,"[nzGraphData]"),n.qZA()(),n.TgZ(139,"td"),n._uU(140,"\u6570\u636e\u6e90"),n.qZA(),n.TgZ(141,"td")(142,"code"),n._uU(143,"NzGraphData(data: NzGraphDataDef?)"),n.qZA()(),n.TgZ(144,"td"),n._uU(145,"``"),n.qZA()(),n.TgZ(146,"tr")(147,"td")(148,"code"),n._uU(149,"[nzRankDirection]"),n.qZA()(),n.TgZ(150,"td"),n._uU(151,"\u56fe\u65b9\u5411"),n.qZA(),n.TgZ(152,"td")(153,"code"),n._uU(154,"TB"),n.qZA(),n._uU(155," | "),n.TgZ(156,"code"),n._uU(157,"BT"),n.qZA(),n._uU(158," | "),n.TgZ(159,"code"),n._uU(160,"LR"),n.qZA(),n._uU(161," | "),n.TgZ(162,"code"),n._uU(163,"RL"),n.qZA()(),n.TgZ(164,"td")(165,"code"),n._uU(166,"LR"),n.qZA()()(),n.TgZ(167,"tr")(168,"td")(169,"code"),n._uU(170,"[nzAutoSize]"),n.qZA()(),n.TgZ(171,"td"),n._uU(172,"\u662f\u5426\u6839\u636e\u8282\u70b9\u5185\u5bb9\u81ea\u9002\u5e94\u9ad8\u5ea6(\u9ed8\u8ba4\u7b49\u9ad8)"),n.qZA(),n.TgZ(173,"td")(174,"code"),n._uU(175,"boolean"),n.qZA()(),n.TgZ(176,"td")(177,"code"),n._uU(178,"false"),n.qZA()()(),n.TgZ(179,"tr")(180,"td")(181,"code"),n._uU(182,"[nzGraphLayoutConfig]"),n.qZA()(),n.TgZ(183,"td"),n._uU(184,"\u5168\u5c40\u914d\u7f6e"),n.qZA(),n.TgZ(185,"td")(186,"code"),n._uU(187,"NzGraphLayoutConfig"),n.qZA()(),n.TgZ(188,"td"),n._uU(189,"``"),n.qZA()()()(),n.TgZ(190,"h4",37)(191,"span"),n._uU(192,"\u7ec4\u4ef6\u65b9\u6cd5"),n.qZA(),n.TgZ(193,"a",38),n._uU(194,"#"),n.qZA()(),n.TgZ(195,"table")(196,"thead")(197,"tr")(198,"th"),n._uU(199,"\u540d\u79f0"),n.qZA(),n.TgZ(200,"th"),n._uU(201,"\u63cf\u8ff0"),n.qZA()()(),n.TgZ(202,"tbody")(203,"tr")(204,"td")(205,"code"),n._uU(206,"fitCenter()"),n.qZA()(),n.TgZ(207,"td"),n._uU(208,"\u5c45\u4e2d\u56fe\u5e76\u81ea\u9002\u5e94\u7f29\u653e\uff08\u5982\u4f7f\u7528\u7f29\u653e\u529f\u80fd\u8bf7\u4f7f\u7528 "),n.TgZ(209,"code"),n._uU(210,"nz-graph-zoom"),n.qZA(),n._uU(211,"\uff09"),n.qZA()()()(),n.TgZ(212,"h3",39)(213,"span"),n._uU(214,"[nz-graph-zoom]"),n.qZA(),n.TgZ(215,"label",40),n._uU(216,"directive"),n.qZA(),n.TgZ(217,"label",35),n._uU(218,"standalone"),n.qZA(),n.TgZ(219,"a",41),n._uU(220,"#"),n.qZA()(),n.TgZ(221,"table")(222,"thead")(223,"tr")(224,"th"),n._uU(225,"\u53c2\u6570"),n.qZA(),n.TgZ(226,"th"),n._uU(227,"\u8bf4\u660e"),n.qZA(),n.TgZ(228,"th"),n._uU(229,"\u7c7b\u578b"),n.qZA(),n.TgZ(230,"th"),n._uU(231,"\u9ed8\u8ba4\u503c"),n.qZA()()(),n.TgZ(232,"tbody")(233,"tr")(234,"td")(235,"code"),n._uU(236,"[(nzZoom)]"),n.qZA()(),n.TgZ(237,"td"),n._uU(238,"\u7f29\u653e\u6bd4\u4f8b"),n.qZA(),n.TgZ(239,"td")(240,"code"),n._uU(241,"number"),n.qZA()(),n.TgZ(242,"td")(243,"code"),n._uU(244,"1"),n.qZA()()(),n.TgZ(245,"tr")(246,"td")(247,"code"),n._uU(248,"[nzMinZoom]"),n.qZA()(),n.TgZ(249,"td"),n._uU(250,"\u6700\u5c0f\u7f29\u653e"),n.qZA(),n.TgZ(251,"td")(252,"code"),n._uU(253,"number"),n.qZA()(),n.TgZ(254,"td")(255,"code"),n._uU(256,"0.1"),n.qZA()()(),n.TgZ(257,"tr")(258,"td")(259,"code"),n._uU(260,"[nzMaxZoom]"),n.qZA()(),n.TgZ(261,"td"),n._uU(262,"\u6700\u5927\u7f29\u653e"),n.qZA(),n.TgZ(263,"td")(264,"code"),n._uU(265,"number"),n.qZA()(),n.TgZ(266,"td")(267,"code"),n._uU(268,"10"),n.qZA()()(),n.TgZ(269,"tr")(270,"td")(271,"code"),n._uU(272,"(nzTransformEvent)"),n.qZA()(),n.TgZ(273,"td"),n._uU(274,"\u7f29\u653e\u4e8b\u4ef6"),n.qZA(),n.TgZ(275,"td")(276,"code"),n._uU(277,"() => NzZoomTransform"),n.qZA()(),n.TgZ(278,"td"),n._uU(279,"``"),n.qZA()(),n.TgZ(280,"tr")(281,"td")(282,"code"),n._uU(283,"(fitCenter)"),n.qZA()(),n.TgZ(284,"td"),n._uU(285,"\u5c45\u4e2d\u56fe\u5e76\u81ea\u9002\u5e94\u7f29\u653e"),n.qZA(),n.TgZ(286,"td")(287,"code"),n._uU(288,"() => void"),n.qZA()(),n.TgZ(289,"td")(290,"code"),n._uU(291,"void"),n.qZA()()(),n.TgZ(292,"tr")(293,"td")(294,"code"),n._uU(295,"(focus)"),n.qZA()(),n.TgZ(296,"td"),n._uU(297,"\u5c45\u4e2d\u5355\u4e2a\u8282\u70b9"),n.qZA(),n.TgZ(298,"td")(299,"code"),n._uU(300,"(e: SVGGElement, duration: number) => void"),n.qZA()(),n.TgZ(301,"td")(302,"code"),n._uU(303,"void"),n.qZA()()()()(),n.TgZ(304,"h4",42)(305,"span"),n._uU(306,"NzGraphData"),n.qZA(),n.TgZ(307,"a",43),n._uU(308,"#"),n.qZA()(),n.TgZ(309,"table")(310,"thead")(311,"tr")(312,"th"),n._uU(313,"\u5c5e\u6027/\u65b9\u6cd5"),n.qZA(),n.TgZ(314,"th"),n._uU(315,"\u8bf4\u660e"),n.qZA(),n.TgZ(316,"th"),n._uU(317,"\u7c7b\u578b"),n.qZA()()(),n.TgZ(318,"tbody")(319,"tr")(320,"td")(321,"code"),n._uU(322,"setData"),n.qZA()(),n.TgZ(323,"td"),n._uU(324,"\u8bbe\u7f6e\u6570\u636e\u6e90"),n.qZA(),n.TgZ(325,"td")(326,"code"),n._uU(327,"(d
1ata: NzGraphDataDef) => void"),n.qZA()()(),n.TgZ(328,"tr")(329,"td")(330,"code"),n._uU(331,"toggle"),n.qZA()(),n.TgZ(332,"td"),n._uU(333,"\u6536\u8d77/\u5c55\u5f00 group \u8282\u70b9"),n.qZA(),n.TgZ(334,"td")(335,"code"),n._uU(336,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(337,"tr")(338,"td")(339,"code"),n._uU(340,"expand"),n.qZA()(),n.TgZ(341,"td"),n._uU(342,"\u5c55\u5f00 group \u8282\u70b9"),n.qZA(),n.TgZ(343,"td")(344,"code"),n._uU(345,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(346,"tr")(347,"td")(348,"code"),n._uU(349,"expandAll"),n.qZA()(),n.TgZ(350,"td"),n._uU(351,"\u5c55\u5f00\u5168\u90e8 group \u8282\u70b9"),n.qZA(),n.TgZ(352,"td")(353,"code"),n._uU(354,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(355,"tr")(356,"td")(357,"code"),n._uU(358,"collapse"),n.qZA()(),n.TgZ(359,"td"),n._uU(360,"\u6536\u8d77\u5168\u90e8 group \u8282\u70b9"),n.qZA(),n.TgZ(361,"td")(362,"code"),n._uU(363,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(364,"tr")(365,"td")(366,"code"),n._uU(367,"isExpand"),n.qZA()(),n.TgZ(368,"td"),n._uU(369,"\u83b7\u53d6 group \u8282\u70b9\u5c55\u5f00\u72b6\u6001"),n.qZA(),n.TgZ(370,"td")(371,"code"),n._uU(372,"(nodeName: string) => boolean"),n.qZA()()(),n.TgZ(373,"tr")(374,"td")(375,"code"),n._uU(376,"expansionModel"),n.qZA()(),n.TgZ(377,"td"),n._uU(378,"\u5c55\u5f00\u8282\u70b9\u5b58\u50a8\u5bf9\u8c61"),n.qZA(),n.TgZ(379,"td")(380,"code"),n._uU(381,"SelectionModel<string>"),n.qZA()()()()(),n.TgZ(382,"h3",44)(383,"span"),n._uU(384,"NzGraphLayoutConfig"),n.qZA(),n.TgZ(385,"a",45),n._uU(386,"#"),n.qZA()(),n.TgZ(387,"table")(388,"thead")(389,"tr")(390,"th"),n._uU(391,"\u5c5e\u6027"),n.qZA(),n.TgZ(392,"th"),n._uU(393,"\u8bf4\u660e"),n.qZA(),n.TgZ(394,"th"),n._uU(395,"\u7c7b\u578b"),n.qZA()()(),n.TgZ(396,"tbody")(397,"tr")(398,"td")(399,"code"),n._uU(400,"layout"),n.qZA()(),n.TgZ(401,"td"),n._uU(402,"\u5e03\u5c40\u53c2\u6570"),n.qZA(),n.TgZ(403,"td")(404,"code"),n._uU(405,"{ nodeSep: number; rankSep: number; edgeSep: number; }"),n.qZA()()(),n.TgZ(406,"tr")(407,"td")(408,"code"),n._uU(409,"subScene"),n.qZA()(),n.TgZ(410,"td"),n._uU(411,"group \u8282\u70b9"),n.qZA(),n.TgZ(412,"td")(413,"code"),n._uU(414,"{ paddingTop: number; paddingBottom: number; paddingLeft: number; paddingRight: number; labelHeight: number; }"),n.qZA()()(),n.TgZ(415,"tr")(416,"td")(417,"code"),n._uU(418,"defaultCompoundNode"),n.qZA()(),n.TgZ(419,"td"),n._uU(420,"group \u8282\u70b9 size"),n.qZA(),n.TgZ(421,"td")(422,"code"),n._uU(423,"{ width: number; height: number; maxLabelWidth: number; }"),n.qZA()()(),n.TgZ(424,"tr")(425,"td")(426,"code"),n._uU(427,"defaultNode"),n.qZA()(),n.TgZ(428,"td"),n._uU(429,"\u9ed8\u8ba4\u8282\u70b9 size"),n.qZA(),n.TgZ(430,"td")(431,"code"),n._uU(432,"{ width: number; height: number; labelOffset: number; maxLabelWidth: number; }"),n.qZA()()()()(),n.TgZ(433,"h4",46)(434,"span"),n._uU(435,"NzGraphDataDef"),n.qZA(),n.TgZ(436,"a",47),n._uU(437,"#"),n.qZA()(),n.TgZ(438,"table")(439,"thead")(440,"tr")(441,"th"),n._uU(442,"\u5c5e\u6027"),n.qZA(),n.TgZ(443,"th"),n._uU(444,"\u8bf4\u660e"),n.qZA(),n.TgZ(445,"th"),n._uU(446,"\u7c7b\u578b"),n.qZA(),n.TgZ(447,"th"),n._uU(448,"\u9ed8\u8ba4\u503c"),n.qZA()()(),n.TgZ(449,"tbody")(450,"tr")(451,"td")(452,"code"),n._uU(453,"nodes"),n.qZA()(),n.TgZ(454,"td"),n._uU(455,"\u8282\u70b9"),n.qZA(),n.TgZ(456,"td")(457,"code"),n._uU(458,"Array<{ id: number|string; label?: string; width?: number; height?: number; [key: string]: any; }>"),n.qZA()(),n.TgZ(459,"td")(460,"code"),n._uU(461,"[]"),n.qZA()()(),n.TgZ(462,"tr")(463,"td")(464,"code"),n._uU(465,"edges"),n.qZA()(),n.TgZ(466,"td"),n._uU(467,"\u7ebf"),n.qZA(),n.TgZ(468,"td")(469,"code"),n._uU(470,"Array<{ v: number|string; w: number|string; [key: string]: any; }>"),n.qZA()(),n.TgZ(471,"td")(472,"code"),n._uU(473,"[]"),n.qZA()()(),n.TgZ(474,"tr")(475,"td")(476,"code"),n._uU(477,"compound"),n.qZA()(),n.TgZ(478,"td"),n._uU(479,"\u5206\u7ec4"),n.qZA(),n.TgZ(480,"td")(481,"code"),n._uU(482,"{ [parent: string]: string[]; }"),n.qZA()(),n.TgZ(483,"td")(484,"code"),n._uU(485,"null"),n.qZA()()()()(),n.TgZ(486,"h4",48)(487,"span"),n._uU(488,"NzGraphNode"),n.qZA(),n.TgZ(489,"a",49),n._uU(490,"#"),n.qZA()(),n.TgZ(491,"table")(492,"thead")(493,"tr")(494,"th"),n._uU(495,"\u5c5e\u6027"),n.qZA(),n.TgZ(496,"th"),n._uU(497,"\u8bf4\u660e"),n.qZA(),n.TgZ(498,"th"),n._uU(499,"\u7c7b\u578b"),n.qZA()()(),n.TgZ(500,"tbody")(501,"tr")(502,"td")(503,"code"),n._uU(504,"id"),n.qZA()(),n.TgZ(505,"td"),n._uU(506,"id"),n.qZA(),n.TgZ(507,"td")(508,"code"),n._uU(509,"number|string"),n.qZA()()(),n.TgZ(510,"tr")(511,"td")(512,"code"),n._uU(513,"label?"),n.qZA()(),n.TgZ(514,"td"),n._uU(515,"\u8282\u70b9\u5185\u5bb9"),n.qZA(),n.TgZ(516,"td")(517,"code"),n._uU(518,"string"),n.qZA()()(),n.TgZ(519,"tr")(52
10,"td")(521,"code"),n._uU(522,"name"),n.qZA()(),n.TgZ(523,"td"),n._uU(524,"\u8282\u70b9\u540d\u79f0"),n.qZA(),n.TgZ(525,"td")(526,"code"),n._uU(527,"number|string"),n.qZA()()(),n.TgZ(528,"tr")(529,"td")(530,"code"),n._uU(531,"type"),n.qZA()(),n.TgZ(532,"td"),n._uU(533,"\u8282\u70b9\u7c7b\u578b(\u7ec4: 0, \u8282\u70b9: 1)"),n.qZA(),n.TgZ(534,"td")(535,"code"),n._uU(536,"number"),n.qZA()()(),n.TgZ(537,"tr")(538,"td")(539,"code"),n._uU(540,"parentNodeName"),n.qZA()(),n.TgZ(541,"td"),n._uU(542,"\u7236\u8282\u70b9\u540d\u79f0"),n.qZA(),n.TgZ(543,"td")(544,"code"),n._uU(545,"string"),n.qZA()()(),n.TgZ(546,"tr")(547,"td")(548,"code"),n._uU(549,"coreBox"),n.qZA()(),n.TgZ(550,"td"),n._uU(551,"\u5e03\u5c40\u9ad8\u5bbd"),n.qZA(),n.TgZ(552,"td")(553,"code"),n._uU(554,"{ width: number; height: number; }"),n.qZA()()(),n.TgZ(555,"tr")(556,"td")(557,"code"),n._uU(558,"xOffset"),n.qZA()(),n.TgZ(559,"td"),n._uU(560,"x \u504f\u79fb"),n.qZA(),n.TgZ(561,"td")(562,"code"),n._uU(563,"number"),n.qZA()()(),n.TgZ(564,"tr")(565,"td")(566,"code"),n._uU(567,"yOffset"),n.qZA()(),n.TgZ(568,"td"),n._uU(569,"y \u504f\u79fb"),n.qZA(),n.TgZ(570,"td")(571,"code"),n._uU(572,"number"),n.qZA()()(),n.TgZ(573,"tr")(574,"td")(575,"code"),n._uU(576,"width"),n.qZA()(),n.TgZ(577,"td"),n._uU(578,"\u5bbd\u5ea6"),n.qZA(),n.TgZ(579,"td")(580,"code"),n._uU(581,"number"),n.qZA()()(),n.TgZ(582,"tr")(583,"td")(584,"code"),n._uU(585,"height"),n.qZA()(),n.TgZ(586,"td"),n._uU(587,"\u9ad8\u5ea6"),n.qZA(),n.TgZ(588,"td")(589,"code"),n._uU(590,"number"),n.qZA()()(),n.TgZ(591,"tr")(592,"td")(593,"code"),n._uU(594,"[key: string]"),n.qZA()(),n.TgZ(595,"td"),n._uU(596,"\u7528\u6237\u8f93\u5165"),n.qZA(),n.TgZ(597,"td")(598,"code"),n._uU(599,"any"),n.qZA()()()()(),n.TgZ(600,"h4",50)(601,"span"),n._uU(602,"NzGraphEdge"),n.qZA(),n.TgZ(603,"a",51),n._uU(604,"#"),n.qZA()(),n.TgZ(605,"table")(606,"thead")(607,"tr")(608,"th"),n._uU(609,"\u5c5e\u6027"),n.qZA(),n.TgZ(610,"th"),n._uU(611,"\u8bf4\u660e"),n.qZA(),n.TgZ(612,"th"),n._uU(613,"\u7c7b\u578b"),n.qZA()()(),n.TgZ(614,"tbody")(615,"tr")(616,"td")(617,"code"),n._uU(618,"id"),n.qZA()(),n.TgZ(619,"td"),n._uU(620,"id"),n.qZA(),n.TgZ(621,"td")(622,"code"),n._uU(623,"string"),n.qZA()()(),n.TgZ(624,"tr")(625,"td")(626,"code"),n._uU(627,"v"),n.qZA()(),n.TgZ(628,"td"),n._uU(629,"\u8d77\u59cb\u8282\u70b9"),n.qZA(),n.TgZ(630,"td")(631,"code"),n._uU(632,"number|string"),n.qZA()()(),n.TgZ(633,"tr")(634,"td")(635,"code"),n._uU(636,"w"),n.qZA()(),n.TgZ(637,"td"),n._uU(638,"\u76ee\u6807\u8282\u70b9"),n.qZA(),n.TgZ(639,"td")(640,"code"),n._uU(641,"number|string"),n.qZA()()(),n.TgZ(642,"tr")(643,"td")(644,"code"),n._uU(645,"label?"),n.qZA()(),n.TgZ(646,"td"),n._uU(647,"\u7ebf\u5185\u5bb9"),n.qZA(),n.TgZ(648,"td")(649,"code"),n._uU(650,"string"),n.qZA()()(),n.TgZ(651,"tr")(652,"td")(653,"code"),n._uU(654,"points"),n.qZA()(),n.TgZ(655,"td"),n._uU(656,"points"),n.qZA(),n.TgZ(657,"td")(658,"code"),n._uU(659,"Array<{ x: number; y: number; }>"),n.qZA()()()()(),n.TgZ(660,"h4",52)(661,"span"),n._uU(662,"NzGraphGroupNode"),n.qZA(),n.TgZ(663,"a",53),n._uU(664,"#"),n.qZA()(),n.TgZ(665,"table")(666,"thead")(667,"tr")(668,"th"),n._uU(669,"\u5c5e\u6027"),n.qZA(),n.TgZ(670,"th"),n._uU(671,"\u7c7b\u578b"),n.qZA()()(),n.TgZ(672,"tbody")(673,"tr")(674,"td")(675,"code"),n._uU(676,"expanded"),n.qZA()(),n.TgZ(677,"td")(678,"code"),n._uU(679,"boolean"),n.qZA()()(),n.TgZ(680,"tr")(681,"td")(682,"code"),n._uU(683,"nodes"),n.qZA()(),n.TgZ(684,"td")(685,"code"),n._uU(686,"Array<NzGraphNode|NzGraphGroupNode>"),n.qZA()()(),n.TgZ(687,"tr")(688,"td")(689,"code"),n._uU(690,"edges"),n.qZA()(),n.TgZ(691,"td")(692,"code"),n._uU(693,"NzGraphEdge[]"),n.qZA()()()()(),n.TgZ(694,"h3",54)(695,"span"),n._uU(696,"[nzGraphNode]"),n.qZA(),n.TgZ(697,"label",40),n._uU(698,"directive"),n.qZA(),n.TgZ(699,"a",55),n._uU(700,"#"),n.qZA()(),n.TgZ(701,"p"),n._uU(702,"\u81ea\u5b9a\u4e49\u53f6\u5b50\u8282\u70b9\u6e32\u67d3\u6a21\u677f"),n.qZA(),n.TgZ(703,"pre",56)(704,"code")(705,"span",57)(706,"span",57)(707,"span",16),n._uU(708,"<"),n.qZA(),n._uU(709,"nz-graph"),n.qZA(),n._uU(710," "),n.TgZ(711,"span",58),n._uU(712,"[nzGraphData]"),n.qZA(),n.TgZ(713,"span",59)(714,"span",16),n._uU(715,"="),n.qZA(),n.TgZ(716,"span",16),n._uU(717,'"'),n.qZA(),n._uU(718,"data"),n.TgZ(719,"span",16),n._uU(720,'"'),n.qZA()(),n.TgZ(721,"span",16),n._uU(722,">"),n.qZA()(),n._uU(723,"\n  "),n.TgZ(724,"span",57)(725,"span",57)(726,"span",16),n._uU(727,"<"),n.qZA(),n._uU(728,"ng-container"),n.qZA(),n._uU(729," "),n.TgZ(730,"span",58),n._uU(731,"*nzGraphNode"),n.qZA(),n.TgZ(732,"span",59)(733,"span",16),n._uU(734,"="),n.qZA(),n.TgZ(735,"span",16),n._uU(736,'"'),n.qZA(),n._uU(737,"let node"),n.TgZ(738,"span",16),n._uU(739,'"'),n.qZA()(),n.TgZ(740,"span",16),n._uU(741,">"),n.qZA()(),n._uU(742,"\n    "),n.TgZ(743,"span",57)(744,"span",57)(745,"span",16),n._uU(746,"<"),n.qZA(),n._uU(747,"span"),n.qZA(),n.TgZ(748,"span",16),n._uU(749,">"),n.qZA()(),n._uU(750,"{{ node.name }} - {{ node.label }}"),n.TgZ(751,"span",57)(752,"span",57)(753,"span",16),n._uU(754,"</"),n.qZA(),n._uU(755,"span"),n.qZA(),n.TgZ(756,"span",16),n._uU(757,">"),n.qZA()(),n._uU(758,"\n  "),n.TgZ(759,"span",57)(760,"span",57)(761,"span",16),n._uU(762,"</"),n.qZA(),n._uU(763,"ng-container"),n.qZA(),n.TgZ(764,"span",16),n._uU(765,">"),n.qZA()(),n._uU(766,"\n"),n.TgZ(767,"span",57)(768,"span",57)(769,"span",16),n._uU(770,"</"),n.qZA(),n._uU(771,"nz-graph"),n.qZA(),n.TgZ(772,"span",16),n._uU(773,">"),n.qZA()()()(),n.TgZ(774,"h3",60)(775,"span"),n._uU(776,"[nzGraphGroupNode]"),n.qZA(),n.TgZ(777,"label",40),n._uU(778,"directive"),n.qZA(),n.TgZ(779,"a",61),n._uU(780,"#"),n.qZA()(),n.TgZ(781,"p"),n._uU(782,"\u81ea\u5b9a\u4e49\u7ec4\u8282\u70b9\u6e32\u67d3\u6a21\u677f"),n.qZA(),n.TgZ(783,"pre",56)(784,"code")(785,"span",57)(786,"span",57)(787,"span",16),n._uU(788,"<"),n.qZA(),n._uU(789,"
1nz-graph"),n.qZA(),n._uU(790," "),n.TgZ(791,"span",58),n._uU(792,"[nzGraphData]"),n.qZA(),n.TgZ(793,"span",59)(794,"span",16),n._uU(795,"="),n.qZA(),n.TgZ(796,"span",16),n._uU(797,'"'),n.qZA(),n._uU(798,"data"),n.TgZ(799,"span",16),n._uU(800,'"'),n.qZA()(),n.TgZ(801,"span",16),n._uU(802,">"),n.qZA()(),n._uU(803,"\n  "),n.TgZ(804,"span",57)(805,"span",57)(806,"span",16),n._uU(807,"<"),n.qZA(),n._uU(808,"ng-container"),n.qZA(),n._uU(809," "),n.TgZ(810,"span",58),n._uU(811,"*nzGraphGroupNode"),n.qZA(),n.TgZ(812,"span",59)(813,"span",16),n._uU(814,"="),n.qZA(),n.TgZ(815,"span",16),n._uU(816,'"'),n.qZA(),n._uU(817,"let node"),n.TgZ(818,"span",16),n._uU(819,'"'),n.qZA()(),n.TgZ(820,"span",16),n._uU(821,">"),n.qZA()(),n._uU(822,"\n    "),n.TgZ(823,"span",57)(824,"span",57)(825,"span",16),n._uU(826,"<"),n.qZA(),n._uU(827,"span"),n.qZA(),n.TgZ(828,"span",16),n._uU(829,">"),n.qZA()(),n._uU(830,"{{ node.name }} - {{ node.label }}"),n.TgZ(831,"span",57)(832,"span",57)(833,"span",16),n._uU(834,"</"),n.qZA(),n._uU(835,"span"),n.qZA(),n.TgZ(836,"span",16),n._uU(837,">"),n.qZA()(),n._uU(838,"\n  "),n.TgZ(839,"span",57)(840,"span",57)(841,"span",16),n._uU(842,"</"),n.qZA(),n._uU(843,"ng-container"),n.qZA(),n.TgZ(844,"span",16),n._uU(845,">"),n.qZA()(),n._uU(846,"\n"),n.TgZ(847,"span",57)(848,"span",57)(849,"span",16),n._uU(850,"</"),n.qZA(),n._uU(851,"nz-graph"),n.qZA(),n.TgZ(852,"span",16),n._uU(853,">"),n.qZA()()()(),n.TgZ(854,"h3",62)(855,"span"),n._uU(856,"[nzGraphEdge]"),n.qZA(),n.TgZ(857,"label",40),n._uU(858,"directive"),n.qZA(),n.TgZ(859,"a",63),n._uU(860,"#"),n.qZA()(),n.TgZ(861,"p"),n._uU(862,"\u81ea\u5b9a\u4e49\u8fb9\u6e32\u67d3\u6a21\u677f"),n.qZA(),n.TgZ(863,"pre",56)(864,"code")(865,"span",57)(866,"span",57)(867,"span",16),n._uU(868,"<"),n.qZA(),n._uU(869,"nz-graph"),n.qZA(),n._uU(870," "),n.TgZ(871,"span",58),n._uU(872,"[nzGraphData]"),n.qZA(),n.TgZ(873,"span",59)(874,"span",16),n._uU(875,"="),n.qZA(),n.TgZ(876,"span",16),n._uU(877,'"'),n.qZA(),n._uU(878,"data"),n.TgZ(879,"span",16),n._uU(880,'"'),n.qZA()(),n.TgZ(881,"span",16),n._uU(882,">"),n.qZA()(),n._uU(883,"\n  "),n.TgZ(884,"span",57)(885,"span",57)(886,"span",16),n._uU(887,"<"),n.qZA(),n._uU(888,"ng-container"),n.qZA(),n._uU(889," "),n.TgZ(890,"span",58),n._uU(891,"*nzGraphEdge"),n.qZA(),n.TgZ(892,"span",59)(893,"span",16),n._uU(894,"="),n.qZA(),n.TgZ(895,"span",16),n._uU(896,'"'),n.qZA(),n._uU(897,"let edge"),n.TgZ(898,"span",16),n._uU(899,'"'),n.qZA()(),n.TgZ(900,"span",16),n._uU(901,">"),n.qZA()(),n._uU(902,"\n    "),n.TgZ(903,"span",57)(904,"span",57)(905,"span",16),n._uU(906,"<"),n.qZA(),n.TgZ(907,"span",64),n._uU(908,"svg:"),n.qZA(),n._uU(909,"g"),n.qZA(),n.TgZ(910,"span",16),n._uU(911,">"),n.qZA()(),n._uU(912,"\n      "),n.TgZ(913,"span",57)(914,"span",57)(915,"span",16),n._uU(916,"<"),n.qZA(),n._uU(917,"path"),n.qZA(),n.TgZ(918,"span",16),n._uU(919,">"),n.qZA()(),n.TgZ(920,"span",57)(921,"span",57)(922,"span",16),n._uU(923,"</"),n.qZA(),n._uU(924,"path"),n.qZA(),n.TgZ(925,"span",16),n._uU(926,">"),n.qZA()(),n._uU(927,"\n    "),n.TgZ(928,"span",57)(929,"span",57)(930,"span",16),n._uU(931,"</"),n.qZA(),n.TgZ(932,"span",64),n._uU(933,"svg:"),n.qZA(),n._uU(934,"g"),n.qZA(),n.TgZ(935,"span",16),n._uU(936,">"),n.qZA()(),n._uU(937,"\n  "),n.TgZ(938,"span",57)(939,"span",57)(940,"span",16),n._uU(941,"</"),n.qZA(),n._uU(942,"ng-container"),n.qZA(),n.TgZ(943,"span",16),n._uU(944,">"),n.qZA()(),n._uU(945,"\n"),n.TgZ(946,"span",57)(947,"span",57)(948,"span",16),n._uU(949,"</"),n.qZA(),n._uU(950,"nz-graph"),n.qZA(),n.TgZ(951,"span",16),n._uU(952,">"),n.qZA()()()(),n.TgZ(953,"h3",65)(954,"span"),n._uU(955,"\u6837\u5f0f"),n.qZA(),n.TgZ(956,"a",66),n._uU(957,"#"),n.qZA()(),n.TgZ(958,"p"),n._uU(959,"\u7ec4\u4ef6\u6837\u5f0f\u5305\u542b\u4e86\u5fc5\u8981\u7684\u5c5e\u6027\u548c\u7b80\u5355\u7684\u6837\u5f0f\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u8986\u5199\u4e0b\u5217\u7c7b\u540d\u81ea\u5b9a\u4e49\u6837\u5f0f\u3002"),n.qZA(),n.TgZ(960,"ul")(961,"li")(962,"code"),n._uU(963,".nz-graph"),n.qZA(),n.TgZ(964,"code"),n._uU(965,"nz-graph"),n.qZA(),n._uU(966," \u7ec4\u4ef6\u547d\u540d\u7a7a\u95f4"),n.qZA(),n.TgZ(967,"li")(968,"code"),n._uU(969,".nz-graph-nodes"),n.qZA(),n._uU(970," \u8282\u70b9"),n.TgZ(971,"ul")(972,"li")(973,"code"),n._uU(974,".nz-graph-node"),n.qZA(),n._uU(975," \u5355\u4e2a\u8282\u70b9"),n.qZA(),n.TgZ(976,"li")(977,"code"),n._uU(978,".nz-graph-node-expanded"),n.qZA(),n._uU(979," \u5c55\u5f00\u8282\u70b9"),n.qZA(),n.TgZ(980,"li")(981,"code"),n._uU(982,".nz-graph-group-node"),n.qZA(),n._uU(983," \u7ec4\u8282\u70b9"),n.qZA(),n.TgZ(984,"li")(985,"code"),n._uU(986,".nz-graph-base-node"),n.qZA(),n._uU(987," \u53f6\u5b50\u8282\u70b9"),n.qZA()()(),n.TgZ(988,"li")(989,"code"),n._uU(990,".nz-graph-edges"),n.qZA(),n._uU(991," \u8fde\u
163a5\u7ebf"),n.TgZ(992,"ul")(993,"li")(994,"code"),n._uU(995,".nz-graph-edge"),n.qZA(),n._uU(996," \u5355\u6761\u7ebf"),n.TgZ(997,"ul")(998,"li")(999,"code"),n._uU(1e3,"path.nz-graph-edge-line"),n.qZA(),n._uU(1001," \u7ebf path \u5143\u7d20"),n.qZA(),n.TgZ(1002,"li")(1003,"code"),n._uU(1004,".nz-graph-edge-text"),n.qZA(),n._uU(1005," \u7ebf\u6587\u672c\u5143\u7d20"),n.qZA()()()()()(),n.TgZ(1006,"h2",67)(1007,"span"),n._uU(1008,"\u8bf4\u660e"),n.qZA(),n.TgZ(1009,"a",68),n._uU(1010,"#"),n.qZA()(),n.TgZ(1011,"ul")(1012,"li")(1013,"a",69),n._uU(1014,"dagre-compound"),n.qZA(),n._uU(1015,": \u57fa\u4e8e Dagre \u7684 \u5d4c\u5957\u5e03\u5c40\u8ba1\u7b97\u5e93"),n.qZA(),n.TgZ(1016,"li")(1017,"a",70),n._uU(1018,"SelectionModel"),n.qZA()()(),n.fQ9(),n.qZA()()),2&o&&(n.xp6(),n.Q6J("nzOffsetTop",16),n.xp6(),n.Q6J("nzAffix",!1),n.xp6(71),n.Q6J("nzGutter",8),n.xp6(),n.Q6J("nzSpan",24),n.xp6(),n.Q6J("nzId","components-graph-demo-customized")("nzLink","components-graph-demo-customized")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/graph/demo/customized.md"))},dependencies:[xt.G,At.IT,At.Fp,Sn.$,Y.t3,Y.SK,It.SY,jt.Ls,cn.w,uu],encapsulation:2})}return t})(),c0=(()=>{class t{constructor(){this.expanded=!1}goLink(r){window&&(window.location.hash=r)}expandAllCode(){this.expanded=!this.expanded,this.codeBoxes.forEach(r=>{r.nzExpanded=this.expanded,r.expandCode(this.expanded),r.check()})}static#t=this.\u0275fac=function(o){return new(o||t)};static#n=this.\u0275cmp=n.Xpm({type:t,selectors:[["nz-demo-graph"]],viewQuery:function(o,i){if(1&o&&n.Gf(xt.G,5),2&o){let a;n.iGM(a=n.CRH())&&(i.codeBoxes=a)}},decls:1023,vars:8,consts:[[1,"toc-affix",3,"nzOffsetTop"],["nzShowInkInFixed","",3,"nzAffix","nzClick"],["nzHref","#components-graph-demo-customized","nzTitle","Custom graph node"],["nzHref","#api","nzTitle","API"],[1,"markdown"],[1,"subtitle"],[1,"widget"],["aria-label","Edit this page on Github","href","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/graph/doc/index.en-US.md","target","_blank","rel","noopener noreferrer",1,"edit-button"],["nz-icon","","nzType","edit"],[2,"border-color","#faad14"],["id","when-to-use"],["onclick","window.location.hash = 'when-to-use'",1,"anchor"],["id","import-module"],["onclick","window.location.hash = 'import-module'",1,"anchor"],[1,"language-ts"],[1,"token","keyword"],[1,"token","punctuation"],[1,"token","string"],["id","import-style"],["onclick","window.location.hash = 'import-style'",1,"anchor"],[1,"language-less"],[1,"token","variable"],["nz-icon","","nzType","appstore","nz-tooltip","","nzTooltipTitle","Expand All Code",1,"code-box-expand-trigger",3,"click"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan"],["nzTitle","Custom graph node","nzSelector","nz-demo-graph-customized","nzGenerateCommand","ng g ng-zorro-antd:graph-customized <name>","nzComponentName","NzDemoGraphCustomizedComponent","nzIframeSource","null",3,"nzId","nzLink","nzIframeHeight","nzHref"],["demo",""],["intro",""],[1,"markdown","api-container"],["id","api"],["onclick","window.location.hash = 'api'",1,"anchor"],[1,"language-sh"],[1,"token","operator"],["id","nz-graph:standalone"],[1,"api-type-label","component"],[1,"api-type-label","standalone"],["onclick","window.location.hash = 'nz-graph:standalone'",1,"anchor"],["id","methods"],["onclick","window.location.hash = 'methods'",1,"anchor"],["id","[nz-graph-zoom]:standalone"],[1,"api-type-label","directive"],["onclick","window.location.hash = '[nz-graph-zoom]:standalone'",1,"anchor"],["id","nzgraphdata"],["onclick","window.location.hash = 'nzgraphdata'",1,"anchor"],["id","nzgraphlayoutconfig"],["onclick","window.location.hash = 'nzgraphlayoutconfig'",1,"anchor"],["id","nzgraphdatadef"],["onclick","window.location.hash = 'nzgraphdatadef'",1,"anchor"],["id","nzgraphnode"],["onclick","window.location.hash = 'nzgraphnode'",1,"anchor"],["id","nzgraphedge"],["onclick","window.location.hash = 'nzgraphedge'",1,"anchor"],["id","nzgraphgroupnode"],["onclick","window.location.hash = 'nzgraphgroupnode'",1,"anchor"],["id","[nzgraphnode]"],["onclick","window.location.hash = '[nzgraphnode]'",1,"anchor"],[1,"language-html"],[1,"token","tag"],[1,"token","attr-name"],[1,"token","attr-value"],["id","[nzgraphgroupnode]"],["onclick","window.location.hash = '[nzgraphgroupnode]'",1,"anchor"],["id","[nzgraphedge]"],["onclick","window.location.hash = '[nzgraphedge]'",1,"anchor"],[1,"token","namespace"],["id","styling"],["onclick","window.location.hash = 'styling'",1,"anchor"],["id","more"],["onclick","window.location.hash = 'more'",1,"anchor"],["href","https://www.npmjs.com/package/dagre-compound","target","_blank","rel","noopener"],["href","https://github.com/angular/components/blob/master/src/cdk/collections/selection-model.ts","target","_blank","rel","noopener"]],template:function(o,i){1&o&&(n.TgZ(0,"article")(1,"nz-affix",0)(2,"nz-anchor",1),n.NdJ("nzClick",function(u){return i.goLink(u)}),n._UZ(3,"nz-link",2)(4,"nz-link",3),n.qZA()(),n.TgZ(5,"section",4)(6,"h1"),n._uU(7,"Graph"),n._UZ(8,"span",5)(9,"span",6),n.TgZ(10,"a",7),n._UZ(11,"span",8),n.qZA()(),n.TgZ(12,"section",4),n.IAx(),n.TgZ(13,"blockquote",9)(14,"p"),n._uU(15,"NG-ZORRO experiments are features that are released but not yet considered stable or production ready"),n.qZA(),n.TgZ(16,"p"),n._uU(17,"Developers and users can opt-in into these features before they are fully released. But "),n.TgZ(18,"strong"),n._uU(19,"breaking changes"),n.qZA(),n._uU(20," may occur with any release."),n.qZA()(),n.TgZ(21,"h2",10)(22,"span"),n._uU(23,"When To Use"),n.qZA(),n.TgZ(24,"a",11),n._uU(25,"#"),n.qZA()(),n.TgZ(26,"p"),n._uU(27,"When you want to use graph in Angular."),n.qZA(),n.TgZ(28,"h3",12)(29,"span"),n._uU(30,"Import Module"),n.qZA(),n.TgZ(31,"a",13),n._uU(32,"#"),n.qZA()(),n.TgZ(33,"blockquote")(34,"p"),n._uU(35,"Now, the graph depends on d3-drag d3-zoom d3-selection d3-transition d3-shape (may be removed in next major version)"),n.qZA()(),n.TgZ(36,"pre",14)(37,"code")(38,"span",15),n._uU(39,"import"),n.qZA(),n._uU(40," "),n.TgZ(41,"span",16),n._uU(42,"{"),n.qZA(),n._uU(43," NzGraphModule "),n.TgZ(44,"span",16),n._uU(45,"}"),n.qZA(),n._uU(46," "),n.TgZ(47,"span",15),n._uU(48,"from"),n.qZA(),n._uU(49," "),n.TgZ(50,"span",17),n._uU(51,"'ng-zorro-antd/graph'"),n.qZA(),n.TgZ(52,"span",16),n._uU(53,";"),n.qZA()()(),n.TgZ(54,"h3",18)(55,"span"),n._uU(56,"Import Style"),n.qZA(),n.TgZ(57,"a",19),n._uU(58,"#"),n.qZA()(),n.TgZ(59,"pre",20)(60,"code")(61,"span",21),n._uU(62,"@import"),n.qZA(),n._uU(63," "),n.TgZ(64,"span",17),n._uU(65,"'no
1de_modules/ng-zorro-antd/graph/style/entry.less'"),n.qZA(),n.TgZ(66,"span",16),n._uU(67,";"),n.qZA()()(),n.fQ9(),n.qZA(),n.TgZ(68,"h2")(69,"span"),n._uU(70,"Examples"),n.qZA(),n.TgZ(71,"span",22),n.NdJ("click",function(){return i.expandAllCode()}),n.qZA()()(),n.TgZ(72,"div",23)(73,"div",24)(74,"nz-code-box",25),n._UZ(75,"nz-demo-graph-customized",26),n.TgZ(76,"div",27),n.IAx(),n.TgZ(77,"p"),n._uU(78,"Custom node style of graph."),n.qZA(),n.fQ9(),n.qZA()()()(),n.TgZ(79,"section",28),n.IAx(),n.TgZ(80,"h2",29)(81,"span"),n._uU(82,"API"),n.qZA(),n.TgZ(83,"a",30),n._uU(84,"#"),n.qZA()(),n.TgZ(85,"p"),n._uU(86,"Dependencies:"),n.qZA(),n.TgZ(87,"pre",31)(88,"code"),n._uU(89,"npm install dagre"),n.TgZ(90,"span",32),n._uU(91,"-"),n.qZA(),n._uU(92,"compound dagre d3"),n.TgZ(93,"span",32),n._uU(94,"-"),n.qZA(),n._uU(95,"transition d3"),n.TgZ(96,"span",32),n._uU(97,"-"),n.qZA(),n._uU(98,"zoom d3"),n.TgZ(99,"span",32),n._uU(100,"-"),n.qZA(),n._uU(101,"selection d3"),n.TgZ(102,"span",32),n._uU(103,"-"),n.qZA(),n._uU(104,"shape d3"),n.TgZ(105,"span",32),n._uU(106,"-"),n.qZA(),n._uU(107,"drag "),n.TgZ(108,"span",21),n._uU(109,"@types"),n.qZA(),n.TgZ(110,"span",32),n._uU(111,"/"),n.qZA(),n._uU(112,"d3"),n.qZA()(),n.TgZ(113,"h3",33)(114,"span"),n._uU(115,"nz-graph"),n.qZA(),n.TgZ(116,"label",34),n._uU(117,"component"),n.qZA(),n.TgZ(118,"label",35),n._uU(119,"standalone"),n.qZA(),n.TgZ(120,"a",36),n._uU(121,"#"),n.qZA()(),n.TgZ(122,"table")(123,"thead")(124,"tr")(125,"th"),n._uU(126,"Parameter"),n.qZA(),n.TgZ(127,"th"),n._uU(128,"Description"),n.qZA(),n.TgZ(129,"th"),n._uU(130,"Type"),n.qZA(),n.TgZ(131,"th"),n._uU(132,"Default"),n.qZA()()(),n.TgZ(133,"tbody")(134,"tr")(135,"td")(136,"code"),n._uU(137,"[nzGraphData]"),n.qZA()(),n.TgZ(138,"td"),n._uU(139,"Data source"),n.qZA(),n.TgZ(140,"td")(141,"code"),n._uU(142,"NzGraphData(data: NzGraphDataDef?)"),n.qZA()(),n.TgZ(143,"td"),n._uU(144,"``"),n.qZA()(),n.TgZ(145,"tr")(146,"td")(147,"code"),n._uU(148,"[nzRankDirection]"),n.qZA()(),n.TgZ(149,"td"),n._uU(150,"Graph Direction"),n.qZA(),n.TgZ(151,"td")(152,"code"),n._uU(153,"TB"),n.qZA(),n._uU(154," | "),n.TgZ(155,"code"),n._uU(156,"BT"),n.qZA(),n._uU(157," | "),n.TgZ(158,"code"),n._uU(159,"LR"),n.qZA(),n._uU(160," | "),n.TgZ(161,"code"),n._uU(162,"RL"),n.qZA()(),n.TgZ(163,"td")(164,"code"),n._uU(165,"LR"),n.qZA()()(),n.TgZ(166,"tr")(167,"td")(168,"code"),n._uU(169,"[nzAutoSize]"),n.qZA()(),n.TgZ(170,"td"),n._uU(171,"Whether to automatically adjust the height of the node, the default equal height"),n.qZA(),n.TgZ(172,"td")(173,"code"),n._uU(174,"boolean"),n.qZA()(),n.TgZ(175,"td")(176,"code"),n._uU(177,"false"),n.qZA()()(),n.TgZ(178,"tr")(179,"td")(180,"code"),n._uU(181,"[nzGraphLayoutConfig]"),n.qZA()(),n.TgZ(182,"td"),n._uU(183,"Global config of graph"),n.qZA(),n.TgZ(184,"td")(185,"code"),n._uU(186,"NzGraphLayoutConfig"),n.qZA()(),n.TgZ(187,"td"),n._uU(188,"``"),n.qZA()()()(),n.TgZ(189,"h4",37)(190,"span"),n._uU(191,"Methods"),n.qZA(),n.TgZ(192,"a",38),n._uU(193,"#"),n.qZA()(),n.TgZ(194,"table")(195,"thead")(196,"tr")(197,"th"),n._uU(198,"Method"),n.qZA(),n.TgZ(199,"th"),n._uU(200,"Description"),n.qZA()()(),n.TgZ(201,"tbody")(202,"tr")(203,"td")(204,"code"),n._uU(205,"fitCenter()"),n.qZA()(),n.TgZ(206,"td"),n._uU(207,"Move graph to center(use "),n.TgZ(208,"code"),n._uU(209,"nz-graph-zoom"),n.qZA(),n._uU(210," instead if zooming is enabled)"),n.qZA()()()(),n.TgZ(211,"h3",39)(212,"span"),n._uU(213,"[nz-graph-zoom]"),n.qZA(),n.TgZ(214,"label",40),n._uU(215,"directive"),n.qZA(),n.TgZ(216,"label",35),n._uU(217,"standalone"),n.qZA(),n.TgZ(218,"a",41),n._uU(219,"#"),n.qZA()(),n.TgZ(220,"table")(221,"thead")(222,"tr")(223,"th"),n._uU(224,"Parameter"),n.qZA(),n.TgZ(225,"th"),n._uU(226,"Description"),n.qZA(),n.TgZ(227,"th"),n._uU(228,"Type"),n.qZA(),n.TgZ(229,"th"),n._uU(230,"Default"),n.qZA()()(),n.TgZ(231,"tbody")(232,"tr")(233,"td")(234,"code"),n._uU(235,"[(nzZoom)]"),n.qZA()(),n.TgZ(236,"td"),n._uU(237,"Default zoom scale"),n.qZA(),n.TgZ(238,"td")(239,"code"),n._uU(240,"number"),n.qZA()(),n.TgZ(241,"td")(242,"code"),n._uU(243,"1"),n.qZA()()(),n.TgZ(244,"tr")(245,"td")(246,"code"),n._uU(247,"[nzMinZoom]"),n.qZA()(),n.TgZ(248,"td"),n._uU(249,"Minimum zoom scale"),n.qZA(),n.TgZ(250,"td")(251,"code"),n._uU(252,"number"),n.qZA()(),n.TgZ(253,"td")(254,"code"),n._uU(255,"0.1"),n.qZA()()(),n.TgZ(256,"tr")(257,"td")(258,"code"),n._uU(259,"[nzMaxZoom]"),n.qZA()(),n.TgZ(260,"td"),n._uU(261,"Maximum zoom scale"),n.qZA(),n.TgZ(262,"td")(263,"code"),n._uU(264,"
1number"),n.qZA()(),n.TgZ(265,"td")(266,"code"),n._uU(267,"10"),n.qZA()()(),n.TgZ(268,"tr")(269,"td")(270,"code"),n._uU(271,"(nzTransformEvent)"),n.qZA()(),n.TgZ(272,"td"),n._uU(273,"Event of zooming"),n.qZA(),n.TgZ(274,"td")(275,"code"),n._uU(276,"() => NzZoomTransform"),n.qZA()(),n.TgZ(277,"td"),n._uU(278,"``"),n.qZA()(),n.TgZ(279,"tr")(280,"td")(281,"code"),n._uU(282,"(fitCenter)"),n.qZA()(),n.TgZ(283,"td"),n._uU(284,"Move graph to center"),n.qZA(),n.TgZ(285,"td")(286,"code"),n._uU(287,"() => void"),n.qZA()(),n.TgZ(288,"td")(289,"code"),n._uU(290,"void"),n.qZA()()(),n.TgZ(291,"tr")(292,"td")(293,"code"),n._uU(294,"(focus)"),n.qZA()(),n.TgZ(295,"td"),n._uU(296,"Move target node to center"),n.qZA(),n.TgZ(297,"td")(298,"code"),n._uU(299,"(e: SVGGElement, duration: number) => void"),n.qZA()(),n.TgZ(300,"td")(301,"code"),n._uU(302,"void"),n.qZA()()()()(),n.TgZ(303,"h4",42)(304,"span"),n._uU(305,"NzGraphData"),n.qZA(),n.TgZ(306,"a",43),n._uU(307,"#"),n.qZA()(),n.TgZ(308,"table")(309,"thead")(310,"tr")(311,"th"),n._uU(312,"Method"),n.qZA(),n.TgZ(313,"th"),n._uU(314,"Description"),n.qZA(),n.TgZ(315,"th"),n._uU(316,"Type"),n.qZA()()(),n.TgZ(317,"tbody")(318,"tr")(319,"td")(320,"code"),n._uU(321,"setData"),n.qZA()(),n.TgZ(322,"td"),n._uU(323,"set data source"),n.qZA(),n.TgZ(324,"td")(325,"code"),n._uU(326,"(data: NzGraphDataDef) => void"),n.qZA()()(),n.TgZ(327,"tr")(328,"td")(329,"code"),n._uU(330,"toggle"),n.qZA()(),n.TgZ(331,"td"),n._uU(332,"toggle group node"),n.qZA(),n.TgZ(333,"td")(334,"code"),n._uU(335,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(336,"tr")(337,"td")(338,"code"),n._uU(339,"expand"),n.qZA()(),n.TgZ(340,"td"),n._uU(341,"expand group node"),n.qZA(),n.TgZ(342,"td")(343,"code"),n._uU(344,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(345,"tr")(346,"td")(347,"code"),n._uU(348,"expandAll"),n.qZA()(),n.TgZ(349,"td"),n._uU(350,"expand all group nodes"),n.qZA(),n.TgZ(351,"td")(352,"code"),n._uU(353,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(354,"tr")(355,"td")(356,"code"),n._uU(357,"collapse"),n.qZA()(),n.TgZ(358,"td"),n._uU(359,"collapse group node"),n.qZA(),n.TgZ(360,"td")(361,"code"),n._uU(362,"(nodeName: string) => void"),n.qZA()()(),n.TgZ(363,"tr")(364,"td")(365,"code"),n._uU(366,"isExpand"),n.qZA()(),n.TgZ(367,"td"),n._uU(368,"get if expanded of node"),n.qZA(),n.TgZ(369,"td")(370,"code"),n._uU(371,"(nodeName: string) => boolean"),n.qZA()()(),n.TgZ(372,"tr")(373,"td")(374,"code"),n._uU(375,"expansionModel"),n.qZA()(),n.TgZ(376,"td"),n._uU(377,"model of expanded nodes' info"),n.qZA(),n.TgZ(378,"td")(379,"code"),n._uU(380,"SelectionModel<string>"),n.qZA()()()()(),n.TgZ(381,"h3",44)(382,"span"),n._uU(383,"NzGraphLayoutConfig"),n.qZA(),n.TgZ(384,"a",45),n._uU(385,"#"),n.qZA()(),n.TgZ(386,"table")(387,"thead")(388,"tr")(389,"th"),n._uU(390,"Method"),n.qZA(),n.TgZ(391,"th"),n._uU(392,"Description"),n.qZA(),n.TgZ(393,"th"),n._uU(394,"Type"),n.qZA()()(),n.TgZ(395,"tbody")(396,"tr")(397,"td")(398,"code"),n._uU(399,"layout"),n.qZA()(),n.TgZ(400,"td"),n._uU(401,"graph layout config"),n.qZA(),n.TgZ(402,"td")(403,"code"),n._uU(404,"{ nodeSep: number; rankSep: number; edgeSep: number; }"),n.qZA()()(),n.TgZ(405,"tr")(406,"td")(407,"code"),n._uU(408,"subScene"),n.qZA()(),n.TgZ(409,"td"),n._uU(410,"group node config"),n.qZA(),n.TgZ(411,"td")(412,"code"),n._uU(413,"{ paddingTop: number; paddingBottom: number; paddingLeft: number; paddingRight: number; labelHeight: number; }"),n.qZA()()(),n.TgZ(414,"tr")(415,"td")(416,"code"),n._uU(417,"defaultCompoundNode"),n.qZA()(),n.TgZ(418,"td"),n._uU(419,"group node size"),n.qZA(),n.TgZ(420,"td")(421,"code"),n._uU(422,"{ width: number; height: number; maxLabelWidth: number; }"),n.qZA()()(),n.TgZ(423,"tr")(424,"td")(425,"code"),n._uU(426,"defaultNode"),n.qZA()(),n.TgZ(427,"td"),n._uU(428,"default node size"),n.qZA(),n.TgZ(429,"td")(430,"code"),n._uU(431,"{ width: number; height: number; labelOffset: number; maxLabelWidth: number; }"),n.qZA()()()()(),n.TgZ(432,"h4",46)(433,"span"),n._uU(434,"NzGraphDataDef"),n.qZA(),n.TgZ(435,"a",47),n._uU(436,"#"),n.qZA()(),n.TgZ(437,"table")(438,"thead")(439,"tr")(440,"th"),n._uU(441,"Parameter"),n.qZA(),n.TgZ(442,"th"),n._uU(443,"Description"),n.qZA(),n.TgZ(444,"th"),n._uU(445,"Type"),n.qZA(),n.TgZ(446,"th"),n._uU(447,"Default"),n.qZA()()(),n.TgZ(448,"tbody")(449,"tr")(450,"td")(451,"code"),n._uU(452,"nodes"),n.qZA()(),n.TgZ(453,"td"),n._uU(454,"nodes"),n.qZA(),n.TgZ(455,"td")(456,"code"),n._uU(457,"Array<{ id: number|string; label?: string; width?: number; height?: number; [key: string]: any; }>"),n.qZA()(),n.TgZ(458,"td")(459,"code"),n._uU(460,"[]"),n.qZA()()(),n.TgZ(461,"tr")(462,"td")(463,"code"),n._uU(464,"edges"),n.qZA()(),n.TgZ(465,"td"),n._uU(466,"edges"),n.qZA(),n.TgZ(467,"td")(468,"code"),n._uU(469,"Array<{ v: number|string; w: number|string; [key: string]: any; }>"),n.qZA()(),n.TgZ(470,"td")(471,"code"),n._uU(472,"[]"),n.qZA()()(),n.TgZ(473,"tr")(474,"td")(475,"code"),n._uU(476,"compound"),n.qZA()(),n.TgZ(477,"td"),n._uU(478,"group"),n.qZA(),n.TgZ(479,"td")(480,"code"),n._uU(481,"{ [parent: string]: string[]; }"),n.qZA()(),n.TgZ(482,"td")(483,"code"),n._uU(484,"null"),n.qZA()()()()(),n.TgZ(485,"h4",48)(486,"span"),n._uU(487,"NzGraphNode"),n.qZA(),n.TgZ(488,"a",49),n._uU(489,"#"),n.qZA()(),n.TgZ(490,"table")(491,"thead")(492,"tr")(493,"th"),n._uU(494,"Parameter"),n.qZA(),n.TgZ(495,"th"),n._uU(496,"Description"),n.qZA(),n.TgZ(497,"th"),n._uU(498,"Type"),n.qZA()()(),n.TgZ(499,"tbody")(500,"tr")(501,"td")(502,"code"),n._uU(503,"id"),n.qZA()(),n.TgZ(504,"td"),n._uU(505,"id"),n.qZA(),n.TgZ(506,"td")(507,"code"),n._uU(508,"number|string"),n.qZA()()(),n.TgZ(509,"tr")(510,"td")(511,"code"),n._uU(512,"label?"),n.qZA()(),n.TgZ(513,"td"),n._uU(514,"node 
1content"),n.qZA(),n.TgZ(515,"td")(516,"code"),n._uU(517,"string"),n.qZA()()(),n.TgZ(518,"tr")(519,"td")(520,"code"),n._uU(521,"name"),n.qZA()(),n.TgZ(522,"td"),n._uU(523,"node name"),n.qZA(),n.TgZ(524,"td")(525,"code"),n._uU(526,"number|string"),n.qZA()()(),n.TgZ(527,"tr")(528,"td")(529,"code"),n._uU(530,"type"),n.qZA()(),n.TgZ(531,"td"),n._uU(532,"node type(group: 0, node: 1)"),n.qZA(),n.TgZ(533,"td")(534,"code"),n._uU(535,"number"),n.qZA()()(),n.TgZ(536,"tr")(537,"td")(538,"code"),n._uU(539,"parentNodeName"),n.qZA()(),n.TgZ(540,"td"),n._uU(541,"parentNode name"),n.qZA(),n.TgZ(542,"td")(543,"code"),n._uU(544,"string"),n.qZA()()(),n.TgZ(545,"tr")(546,"td")(547,"code"),n._uU(548,"coreBox"),n.qZA()(),n.TgZ(549,"td"),n._uU(550,"coreBox"),n.qZA(),n.TgZ(551,"td")(552,"code"),n._uU(553,"{ width: number; height: number; }"),n.qZA()()(),n.TgZ(554,"tr")(555,"td")(556,"code"),n._uU(557,"xOffset"),n.qZA()(),n.TgZ(558,"td"),n._uU(559,"x-offset"),n.qZA(),n.TgZ(560,"td")(561,"code"),n._uU(562,"number"),n.qZA()()(),n.TgZ(563,"tr")(564,"td")(565,"code"),n._uU(566,"yOffset"),n.qZA()(),n.TgZ(567,"td"),n._uU(568,"y-offset"),n.qZA(),n.TgZ(569,"td")(570,"code"),n._uU(571,"number"),n.qZA()()(),n.TgZ(572,"tr")(573,"td")(574,"code"),n._uU(575,"width"),n.qZA()(),n.TgZ(576,"td"),n._uU(577,"width"),n.qZA(),n.TgZ(578,"td")(579,"code"),n._uU(580,"number"),n.qZA()()(),n.TgZ(581,"tr")(582,"td")(583,"code"),n._uU(584,"height"),n.qZA()(),n.TgZ(585,"td"),n._uU(586,"height"),n.qZA(),n.TgZ(587,"td")(588,"code"),n._uU(589,"number"),n.qZA()()(),n.TgZ(590,"tr")(591,"td")(592,"code"),n._uU(593,"[key: string]"),n.qZA()(),n.TgZ(594,"td"),n._uU(595,"user inputs"),n.qZA(),n.TgZ(596,"td")(597,"code"),n._uU(598,"any"),n.qZA()()()()(),n.TgZ(599,"h4",50)(600,"span"),n._uU(601,"NzGraphEdge"),n.qZA(),n.TgZ(602,"a",51),n._uU(603,"#"),n.qZA()(),n.TgZ(604,"table")(605,"thead")(606,"tr")(607,"th"),n._uU(608,"Parameter"),n.qZA(),n.TgZ(609,"th"),n._uU(610,"Description"),n.qZA(),n.TgZ(611,"th"),n._uU(612,"Type"),n.qZA()()(),n.TgZ(613,"tbody")(614,"tr")(615,"td")(616,"code"),n._uU(617,"id"),n.qZA()(),n.TgZ(618,"td"),n._uU(619,"id"),n.qZA(),n.TgZ(620,"td")(621,"code"),n._uU(622,"string"),n.qZA()()(),n.TgZ(623,"tr")(624,"td")(625,"code"),n._uU(626,"v"),n.qZA()(),n.TgZ(627,"td"),n._uU(628,"source node"),n.qZA(),n.TgZ(629,"td")(630,"code"),n._uU(631,"number|string"),n.qZA()()(),n.TgZ(632,"tr")(633,"td")(634,"code"),n._uU(635,"w"),n.qZA()(),n.TgZ(636,"td"),n._uU(637,"target node"),n.qZA(),n.TgZ(638,"td")(639,"code"),n._uU(640,"number|string"),n.qZA()()(),n.TgZ(641,"tr")(642,"td")(643,"code"),n._uU(644,"label?"),n.qZA()(),n.TgZ(645,"td"),n._uU(646,"edge content"),n.qZA(),n.TgZ(647,"td")(648,"code"),n._uU(649,"string"),n.qZA()()(),n.TgZ(650,"tr")(651,"td")(652,"code"),n._uU(653,"points"),n.qZA()(),n.TgZ(654,"td"),n._uU(655,"points"),n.qZA(),n.TgZ(656,"td")(657,"code"),n._uU(658,"Array<{ x: number; y: number; }>"),n.qZA()()()()(),n.TgZ(659,"h4",52)(660,"span"),n._uU(661,"NzGraphGroupNode"),n.qZA(),n.TgZ(662,"a",53),n._uU(663,"#"),n.qZA()(),n.TgZ(664,"table")(665,"thead")(666,"tr")(667,"th"),n._uU(668,"Parameter"),n.qZA(),n.TgZ(669,"th"),n._uU(670,"Type"),n.qZA()()(),n.TgZ(671,"tbody")(672,"tr")(673,"td")(674,"code"),n._uU(675,"expanded"),n.qZA()(),n.TgZ(676,"td")(677,"code"),n._uU(678,"boolean"),n.qZA()()(),n.TgZ(679,"tr")(680,"td")(681,"code"),n._uU(682,"nodes"),n.qZA()(),n.TgZ(683,"td")(684,"code"),n._uU(685,"Array<NzGraphNode|NzGraphGroupNode>"),n.qZA()()(),n.TgZ(686,"tr")(687,"td")(688,"code"),n._uU(689,"edges"),n.qZA()(),n.TgZ(690,"td")(691,"code"),n._uU(692,"NzGraphEdge[]"),n.qZA()()()()(),n.TgZ(693,"h3",54)(694,"span"),n._uU(695,"[nzGraphNode]"),n.qZA(),n.TgZ(696,"label",40),n._uU(697,"directive"),n.qZA(),n.TgZ(698,"a",55),n._uU(699,"#"),n.qZA()(),n.TgZ(700,"p"),n._uU(701,"Customize the graph node template"),n.qZA(),n.TgZ(702,"pre",56)(703,"code")(704,"span",57)(705,"span",57)(706,"span",16),n._uU(707,"<"),n.qZA(),n._uU(708,"nz-graph"),n.qZA(),n._uU(709," "),n.TgZ(710,"span",58),n._uU(711,"[nzGraphData]"),n.qZA(),n.TgZ(712,"span",59)(713,"span",16),n._uU(714,"="),n.qZA(),n.TgZ(715,"span",16),n._uU(716,'"'),n.qZA(),n._uU(717,"data"),n.TgZ(718,"span",16),n._uU(719,'"'),n.qZA()(),n.TgZ(720,"span",16),n._uU(721,">"),n.qZA()(),n._uU(722,"\n  "),n.TgZ(723,"span",57)(724,"span",57)(725,"span",16),n._uU(726,"<"),n.qZA(),n._uU(727,"ng-container"),n.qZA(),n._uU(728," "),n.TgZ(729,"span",58),n._uU(730,"*nzGraphNode"),n.qZA(),n.TgZ(731,"span",59)(732,"span",16),n._uU(733,"="),n.qZA(),n.TgZ(734,"span",16),n._uU(735,'"'),n.qZA(),n._uU(736,"let node"),n.TgZ(737,"span",16),n._uU(738,'"'),n.qZA()(),n.TgZ(739,"span",16),n._uU(740,">"),n.qZA()(),n._uU(741,"\n    "),n.TgZ(742,"span",57)(743,"span",57)(744,"span",16),n._uU(745,"<"),n.qZA(),n._uU(746,"span"),n.qZA(),n.TgZ(747,"span",16),n._uU(748,">"),n.qZA()(),n._uU(749,"{{ node.name }} - {{ node.label }}"),n.TgZ(750,"span",57)(751,"span",57)(752,"span",16),n._uU(753,"</"),n.qZA(),n._uU(754,"span"),n.qZA(),n.TgZ(755,"span",16),n._uU(756,">"),n.qZA()(),n._uU(757,"\n  "),n.TgZ(758,"span",57)(759,"span",57)(760,"span",16),n._uU(761,"</"),n.qZA(),n._uU(762,"ng-container"),n.qZA(),n.TgZ(763,"span",16),n._uU(764,">"),n.qZA()(),n._uU(765,"\n"),n.TgZ(766,"span",57)(767,"span",57)(768,"span",16),n._uU(769,"</"),n.qZA(),n._uU(770,"nz-graph"),n.qZA(),n.TgZ(771,"span",16),n._uU(772,">"),n.qZA()()()(),n.TgZ(773,"h3",60)(774,"span"),n._uU(775,"[nzGraphGroupNode]"),n.qZA(),n.TgZ(776,"label",40),n._uU(777,"directive"),n.qZA(),n.TgZ(778,"a",61),n._uU(779,"#"),n.qZA()(),n.TgZ(780,"p"),n._uU(781,"Customize the graph group-node template"),n.qZA(),n.TgZ(782,"pre",56)(783,"code")(784,"span",57)(785,"span",57)(786,"span",16),n._uU(787,"<"),n.qZA(),n._uU(788,"nz-graph"),n.qZA(),n._uU(789," "),n.TgZ(790,"span",58),n._uU(791,"[nzGraphData]"),n.qZA(),n.TgZ(792,"span",59)(793,"span",16),n._uU(794,"="),n.qZA(),n.TgZ(795,"span",16),n._uU(796,'"'),n.qZA(),n._uU(797,"data"),n.TgZ(798,"span",16),n._uU(799,'"'),n.qZA()(),n.TgZ(800,"span",16),n._uU(801,">"),n.qZA()(),n._uU(802,"\n  "),n.TgZ(803,"span",57)(804,"span",57)(805,"span",16),n._uU(806,"<"),n.qZA(),n._uU(807,"ng-container"),n.qZA(),n._uU(808," "),n.TgZ(809,"span",58),n._uU(810,"*nzGraphGroupNode"),n.qZA(),n.TgZ(811,"span",59)(812,"span",16),n._uU(813,"="),n.qZA(),n.TgZ(814,"span",16),n._uU(815,'"'),n.qZA(),n._uU(816,"let node"),n.TgZ(817,"span",16),n._uU(818,'"'),n.qZA()(),n.TgZ(819,"span",16),n._uU(820,">"),n.qZA()(),n._uU(821,"\n    "),n.TgZ(822,"span",57)(823,"span",57)(824,"span",16),n._uU(825,"<"),n.qZA(),n._uU(826,"span"),n.qZA(),n.TgZ(827,"span",16),n._uU(828,">"),n.qZA()(),n._uU(829,"{{ node.name }} - {{ node.label }}"),n.TgZ(830,"span",57)(831,"span",57)(832,"span",16),n._uU(833,"</"),n.qZA(),n._uU(834,"span"),n.qZA(),n.TgZ(835,"span",16),n._uU(836,">"),n.qZA()(),n._uU(837,"\n  "),n.TgZ(838,"span",57)(839,"span",57)(840,"span",16),n._uU(841,"</"),n.qZA(),n._uU(842,"ng-container"),n.qZA(),n.TgZ(843,"span",16),n._uU(844,">"),n.qZA()(),n._uU(845,"\n"),n.TgZ(846,"span",57)(847,"span",57)(848,"span",16),n._uU(849,"</"),n.qZA(),n._uU(850,"nz-graph"),n.qZA(),n.TgZ(851,"span",16),n._uU(852,">"),n.qZA()()()(),n.TgZ(853,"h3",62)(854,"span"),n._uU(855,"[nzGraphEdge]"),n.qZA(),n.TgZ(856,"label",40),n._uU(857,"directive"),n.qZA(),n.TgZ(858,"a",63),n._uU(859,"#"),n.qZA()(),n.TgZ(860,"p"),n._uU(861,"Customize the graph edge template"),n.qZA(),n.TgZ(862,"pre",56)(863,"code")(864,"span",57)(865,"span",57)(866,"span",16),n._uU(867,"<"),n.qZA(),n._uU(868,"nz-graph"),n.qZA(),n._uU(869," "),n.TgZ(870,"span",58),n._uU(871,"[nzGraphData]"),n.qZA(),n.TgZ(872,"span",59)(873,"span",16),n._uU(874,"="),n.qZA(),n.TgZ(875,"span",16),n._uU(876,'"'),n.qZA(),n._uU(877,"data"),n.TgZ(878,"span",16),n._uU(879,'"'),n.qZA()(),n.TgZ(880,"span",16),n._uU(881,">"),n.qZA()(),n._uU(882,"\n  "),n.TgZ(883,"span",57)(884,"span",57)(885,"span",16),n._uU(886,"<"),n.qZA(),n._uU(887,"ng-container"),n.qZA(),n._uU(888," "),n.TgZ(889,"span",58),n._uU(890,"*nzGraphEdge"),n.qZA(),n.TgZ(891,"span",59)(892,"span",16),n._uU(893,"="),n.qZA(),n.TgZ(894,"span",16),n._uU(895,'"'),n.qZA(),n._uU(896,"let edge"),n.TgZ(897,"span",16),n._uU(898,'"'),n.qZA()(),n.TgZ(899,"span",16),n._uU(900,">"),n.qZA()(),n._uU(901,"\n    "),n.TgZ(902,"span",57)(903,"span",57)(904,"span",16),n._uU(905,"<"),n.qZA(),n.TgZ(906,"span",64),n._uU(907,"svg:"),n.qZA(),n._uU(908,"g"),n.qZA(),n.TgZ(909,"span",16),n._uU(910,">"),n.qZA()(),n._uU(911,"\n      "),n.TgZ(912,"span",57)(913,"span",57)(914,"span",16),n._uU(915,"<"),n.qZA(),n._uU(916,"path"),n.qZA(),n.TgZ(917,"span",16),n._uU(918,">"),n.qZA()(),n.TgZ(919,"span",57)(920,"span",57)(921,"span",16),n._uU(922,"</"),n.qZA(),n._uU(923,"path"),n.qZA(),n.TgZ(924,"span",16),n._uU(925,">"),n.qZA()(),n._uU(926,"\n    "),n.TgZ(927,"span",57)(928,"span",57)(929,"span",16),n._uU(930,"</"),n.qZA(),n.TgZ(931,"span",64),n._uU(932,"svg:"),n.qZA(),n._uU(933,"g"),n.qZA(),n.TgZ(934,"span",16),n._uU(935,">"),n.qZA()(),n._uU(936,"\n  "),n.TgZ(937,"span",57)(938,"span",57)(939,"span",16),n._uU(940,"</"),n.qZA(),n._uU(941,"ng-container"),n.qZA(),n.TgZ(942,"span",16),n._uU(943,">"),n.qZA()(),n._uU(944,"\n"),n.TgZ(945,"span",57)(946,"span",57)(947,"span",16),n._uU(948,"</"),n.qZA(),n._uU(949,"nz-graph"),n.qZA(),n.TgZ(950,"span",16),n._uU(951,">"),n.qZA()()()(),n.TgZ(952,"h3",65)(953,"span"),n._uU(954,"Styling"),n.qZA(),n.TgZ(955,"a",66),n._uU(956,"#"),n.qZA()(),n.TgZ(957,"p"),n._uU(958,"The Component styles only contain the necessary positional properties and simple styles, you can customize the style by overriding the following class."),n.qZA(),n.TgZ(959,"ul")(960,"li")(961,"code"),n._uU(962,".nz-graph"),n.qZA(),n.TgZ(963,"code"),n._uU(964,"nz-graph"),n.qZA(),n._uU(965," The "),n.TgZ(966,"code"),n._uU(967,"nz-graph"),n.qZA(),n._uU(968," component namespace"),n.qZA(),n.TgZ(969,"li")(970,"code"),n._uU(971,".nz-graph-nodes"),n.qZA(),n._uU(972," The class name of container covered all nodes"),n.TgZ(973,"ul")(974,"li")(975,"code"),n._uU(976,".nz-graph-node"),n.qZA(),n._uU(977," The class name of "),n.TgZ(978,"code"),n._uU(979,"nz-graph-node"),n.qZA()(),n.TgZ(980,"li")(981,"code"),n._uU(982,".nz-graph-node-expanded"),n.qZA(),n._uU(983," The class name of expanded node"),n.qZA(),n.TgZ(984,"li")(985,"code"),n._uU(986,".nz-graph-group-node"),n.qZA(),n._uU(987," The class name of group node"),n.qZA(),n.TgZ(988,"li")(989,"code"),n._uU(990,".nz-graph-base-node"),n.qZA(),n._uU(991," The class name of leaf(OP) node"),n.qZA()()(),n.TgZ(992,"li")(993,"code"),n._uU(994,".nz-graph-edges"),n.qZA(),n._uU(995," The class name of container covered edges in the target node"),n.TgZ(996,"ul")(997,"li")(998,"code"),n._uU(999,".nz-graph-edge"),n.qZA(),n._uU(1e3," The class name of edge"),n.TgZ(1001,"ul")(1002,"li")(1003,"code"),n._uU(1004,"path.nz-graph-edge-line"),n.qZA(),n._uU(1005," The class name of svg:path element"),n.qZA(),n.TgZ(1006,"li")(1007,"code"),n._uU(1008,".nz-graph-edge-text"),n.qZA(),n._uU(1009," The class name of svg:text element"),n.qZA()()()()()(),n.TgZ(1010,"h2",67)(1011,"span"),n._uU(1012,"More"),n.qZA(),n.TgZ(1013,"a",68),n._uU(1014,"#"),n.qZA()(),n.TgZ(1015,"ul")(1016,"li")(1017,"a",69),n._uU(1018,"dagre-compound"),n.qZA(),n._uU(1019,": Dagre-based nested layout calculation library"),n.qZA(),n.TgZ(1020,"li")(1021,"a",70),n._uU(1022,"SelectionModel"),n.qZA()()(),n.fQ9(),n.qZA()()),2&o&&(n.xp6(),n.Q6J("nzOffsetTop",16),n.xp6(),n.Q6J("nzAffix",!1),n.xp6(70),n.Q6J("nzGutter",8),n.xp6(),n.Q6J("nzSpan",24),n.xp6(),n.Q6J("nzId","components-graph-demo-customized")("nzLink","components-graph-demo-customized")("nzIframeHeight",null)("nzHref","https://github.com/NG-ZORRO/ng-zorro-antd/edit/master/components/graph/demo/customized.md"))},dependencies:[xt.G,At.IT,At.Fp,Sn.$,Y.t3,Y.SK,It.SY,jt.Ls,cn.w,uu],encapsulation:2})}return t})(),h0=(()=>{class t{static#t=this.\u0275fac=function(o){return new(o||t)};static#n=this.\u0275mod=n.oAB({type:t});static#e=this.\u0275inj=n.cJS({imports:[sn.G,r0,au.sL,jt.PV,xe.aF,x.Bz.forChild([{path:"en",component:c0},{path:"zh",component:s0}])]})}return t})()},7225:(su,Dn,E)=>{E.d(Dn,{Bq:()=>Bn,Dg:()=>Ce,Of:()=>ke,aF:()=>On});var x=E(9212),sn=E(7582),xt=E(6223),n=E(7328),At=E(8645),Sn=E(2438),Y=E(9773),It=E(6700),jt=E(9388),cn=E(6034),qe=E(8188);const Mn=["*"],Ne=["inputElement"],Pt=["nz-radio",""];let Bn=(()=>{class G{static#t=this.\u0275fac=function(B){return new(B||G)};static#n=this.\u0275dir=x.lG2({type:G,selectors:[["","nz-radio-button",""]],standalone:!0})}return G})(),hn=(()=>{class G{constructor(){this.selected$=new n.t(1),this.touched$=new At.x,this.disabled$=new n.t(1),this.name$=new n.t(1)}touch(){this.touched$.next()}select(T){this.selected$.next(T)}setDisabled(T){this.disabled$.next(T)}setName(T){this.name$.next(T)}static#t=this.\u0275fac=function(B){return new(B||G)};static#n=this.\u0275prov=x.Yz7({token:G,factory:G.\u0275fac})}return G})(),Ce=(()=>{class G{constructor(T,B,z){this.cdr=T,this.nzRadioService=B,this.directionality=z,this.value=null,this.destroy$=new At.x,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){this.nzRadioService.selected$.pipe((0,Y.R)(this.destroy$)).subscribe(T=>{this.value!==T&&(this.value=T,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,Y.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,Y.R)(this.destroy$)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(T){const{nzDisabled:B,nzName:z}=T;B&&this.nzRadioService.setDisabled(this.nzDisabled),z&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(T){this.value=T,this.nzRadioService.select(T),this.cdr.markForCheck()}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||T,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static#t=this.\u0275fac=function(B){return new(B||G)(x.Y36(x.sBO),x.Y36(hn),x.Y36(jt.Is,8))};static#n=this.\u0275cmp=x.Xpm({type:G,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(B,z){2&B&&x.ekj("ant-radio-group-large","large"===z.nzSize)("ant-radio-group-small","small"===z.nzSize)("ant-radio-group-solid","solid"===z.nzButtonStyle)("ant-radio-group-rtl","rtl"===z.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],standalone:!0,features:[x._Bn([hn,{provide:xt.JU,useExisting:(0,x.Gpc)(()=>G),multi:!0}]),x.TTD,x.jDz],ngContentSelectors:Mn,decls:1,vars:0,template:function(B,z){1&B&&(x.F$t(),x.Hsn(0))},encapsulation:2,changeDetection:0})}return(0,sn.gn)([(0,It.yF)()],G.prototype,"nzDisabled",void 0),G})(),ke=(()=>{class G{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(T,B,z,bt,pt,Se,dn,Gn){this.ngZone=T,this.elementRef=B,this.cdr=z,this.focusMonitor=bt,this.directionality=pt,this.nzRadioService=Se,this.nzRadioButtonDirective=dn,this.nzFormStatusService=Gn,this.isNgModel=!1,this.destroy$=new At.x,this.isNzDisableFirstChange=!0,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}setDisabledState(T){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||T,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(T){this.isChecked=T,this.cdr.markForCheck()}registerOnChange(T){this.isNgModel=!0,this.onChange=T}registerOnTouched(T){this.onTouched=T}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,Y.R)(this.destroy$)).subscribe(T=>{this.name=T,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,Y.R)(this.destroy$)).subscribe(T=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||T,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,Y.R)(this.destroy$)).subscribe(T=>{const B=this.isChecked;this.isChecked=this.nzValue===T,this.isNgModel&&B!==this.isChecked&&!1===this.isChecked&&this.onChange(!1),this.cdr
1.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,Y.R)(this.destroy$)).subscribe(T=>{T||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,Y.R)(this.destroy$)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,Sn.R)(this.elementRef.nativeElement,"click").pipe((0,Y.R)(this.destroy$)).subscribe(T=>{T.stopPropagation(),T.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}static#t=this.\u0275fac=function(B){return new(B||G)(x.Y36(x.R0b),x.Y36(x.SBq),x.Y36(x.sBO),x.Y36(cn.tE),x.Y36(jt.Is,8),x.Y36(hn,8),x.Y36(Bn,8),x.Y36(qe.kH,8))};static#n=this.\u0275cmp=x.Xpm({type:G,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(B,z){if(1&B&&x.Gf(Ne,7),2&B){let bt;x.iGM(bt=x.CRH())&&(z.inputElement=bt.first)}},hostVars:18,hostBindings:function(B,z){2&B&&x.ekj("ant-radio-wrapper-in-form-item",!!z.nzFormStatusService)("ant-radio-wrapper",!z.isRadioButton)("ant-radio-button-wrapper",z.isRadioButton)("ant-radio-wrapper-checked",z.isChecked&&!z.isRadioButton)("ant-radio-button-wrapper-checked",z.isChecked&&z.isRadioButton)("ant-radio-wrapper-disabled",z.nzDisabled&&!z.isRadioButton)("ant-radio-button-wrapper-disabled",z.nzDisabled&&z.isRadioButton)("ant-radio-wrapper-rtl",!z.isRadioButton&&"rtl"===z.dir)("ant-radio-button-wrapper-rtl",z.isRadioButton&&"rtl"===z.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],standalone:!0,features:[x._Bn([{provide:xt.JU,useExisting:(0,x.Gpc)(()=>G),multi:!0}]),x.jDz],attrs:Pt,ngContentSelectors:Mn,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(B,z){1&B&&(x.F$t(),x.TgZ(0,"span"),x._UZ(1,"input",0,1)(3,"span"),x.qZA(),x.TgZ(4,"span"),x.Hsn(5),x.qZA()),2&B&&(x.ekj("ant-radio",!z.isRadioButton)("ant-radio-checked",z.isChecked&&!z.isRadioButton)("ant-radio-disabled",z.nzDisabled&&!z.isRadioButton)("ant-radio-button",z.isRadioButton)("ant-radio-button-checked",z.isChecked&&z.isRadioButton)("ant-radio-button-disabled",z.nzDisabled&&z.isRadioButton),x.xp6(),x.ekj("ant-radio-input",!z.isRadioButton)("ant-radio-button-input",z.isRadioButton),x.Q6J("disabled",z.nzDisabled)("checked",z.isChecked),x.uIk("autofocus",z.nzAutoFocus?"autofocus":null)("name",z.name),x.xp6(2),x.ekj("ant-radio-inner",!z.isRadioButton)("ant-radio-button-inner",z.isRadioButton))},encapsulation:2,changeDetection:0})}return(0,sn.gn)([(0,It.yF)()],G.prototype,"nzDisabled",void 0),(0,sn.gn)([(0,It.yF)()],G.prototype,"nzAutoFocus",void 0),G})(),On=(()=>{class G{static#t=this.\u0275fac=function(B){return new(B||G)};static#n=this.\u0275mod=x.oAB({type:G});static#e=this.\u0275inj=x.cJS({})}return G})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.