import{i as Nt,r as G,R as Li,c as Dn,a as jn,b as Ui,o as Hi,m as $n,d as Fn,g as qi,j as Rt,e as Gi}from"./index-gapT4XnB.js";function Wi(e,n){let r=0;for(let i of e)(i=+i)&&(r+=i);return r}var Ln=180/Math.PI,tn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Dr(e,n,r,i,o,a){var s,u,f;return(s=Math.sqrt(e*e+n*n))&&(e/=s,n/=s),(f=e*r+n*i)&&(r-=e*f,i-=n*f),(u=Math.sqrt(r*r+i*i))&&(r/=u,i/=u,f/=u),e*i180?c+=360:c-l>180&&(l+=360),d.push({i:h.push(o(h)+"rotate(",null,i)-2,x:Nt(l,c)})):c&&h.push(o(h)+"rotate("+c+i)}function u(l,c,h,d){l!==c?d.push({i:h.push(o(h)+"skewX(",null,i)-2,x:Nt(l,c)}):c&&h.push(o(h)+"skewX("+c+i)}function f(l,c,h,d,p,y){if(l!==h||c!==d){var _=p.push(o(p)+"scale(",null,",",null,")");y.push({i:_-4,x:Nt(l,h)},{i:_-2,x:Nt(c,d)})}else(h!==1||d!==1)&&p.push(o(p)+"scale("+h+","+d+")")}return function(l,c){var h=[],d=[];return l=e(l),c=e(c),a(l.translateX,l.translateY,c.translateX,c.translateY,h,d),s(l.rotate,c.rotate,h,d),u(l.skewX,c.skewX,h,d),f(l.scaleX,l.scaleY,c.scaleX,c.scaleY,h,d),l=c=null,function(p){for(var y=-1,_=d.length,m;++y<_;)h[(m=d[y]).i]=m.x(p);return h.join("")}}}var Xi=jr(Vi,"px, ","px)","deg)"),Yi=jr(Bi,", ",")",")"),Zi=1e-12;function Un(e){return((e=Math.exp(e))+1/e)/2}function Ki(e){return((e=Math.exp(e))-1/e)/2}function Qi(e){return((e=Math.exp(2*e))-1)/(e+1)}const Ji=(function e(n,r,i){function o(a,s){var u=a[0],f=a[1],l=a[2],c=s[0],h=s[1],d=s[2],p=c-u,y=h-f,_=p*p+y*y,m,g;if(_e.length)&&(n=e.length);for(var r=0,i=new Array(n);ra,methodNames:i=[],initPropNames:o=[]}={}){return G.forwardRef((a,s)=>{const u=G.useRef(),f=G.useMemo(()=>{const h=Object.fromEntries(o.filter(d=>a.hasOwnProperty(d)).map(d=>[d,a[d]]));return e(h)},[]);qn(()=>{f(r(u.current))},G.useLayoutEffect),qn(()=>f._destructor instanceof Function?f._destructor:void 0);const l=G.useCallback((h,...d)=>f[h]instanceof Function?f[h](...d):void 0,[f]),c=G.useRef({});return Object.keys(fo(a,[...i,...o])).filter(h=>c.current[h]!==a[h]).forEach(h=>l(h,a[h])),c.current=a,G.useImperativeHandle(s,()=>Object.fromEntries(i.map(h=>[h,(...d)=>l(h,...d)])),[l]),Li.createElement(n,{ref:u})})}function qn(e,n=G.useEffect){const r=G.useRef(),i=G.useRef(!1),o=G.useRef(!1),[a,s]=G.useState(0);i.current&&(o.current=!0),n(()=>(i.current||(r.current=e(),i.current=!0),s(u=>u+1),()=>{o.current&&(r.current&&r.current(),r.current=void 0,i.current=!1,o.current=!1)}),[])}var nn="http://www.w3.org/1999/xhtml";const Gn={svg:"http://www.w3.org/2000/svg",xhtml:nn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function De(e){var n=e+="",r=n.indexOf(":");return r>=0&&(n=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Gn.hasOwnProperty(n)?{space:Gn[n],local:e}:e}function ho(e){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===nn&&n.documentElement.namespaceURI===nn?n.createElement(e):n.createElementNS(r,e)}}function po(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Fr(e){var n=De(e);return(n.local?po:ho)(n)}function go(){}function vn(e){return e==null?go:function(){return this.querySelector(e)}}function yo(e){typeof e!="function"&&(e=vn(e));for(var n=this._groups,r=n.length,i=new Array(r),o=0;o=M&&(M=k+1);!(x=m[M])&&++M=0;)(s=i[o])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function Uo(e){e||(e=Ho);function n(h,d){return h&&d?e(h.__data__,d.__data__):!h-!d}for(var r=this._groups,i=r.length,o=new Array(i),a=0;an?1:e>=n?0:NaN}function qo(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Go(){return Array.from(this)}function Wo(){for(var e=this._groups,n=0,r=e.length;n1?this.each((n==null?na:typeof n=="function"?ia:ra)(e,n,r??"")):Ut(this.node(),e)}function Ut(e,n){return e.style.getPropertyValue(n)||Gr(e).getComputedStyle(e,null).getPropertyValue(n)}function aa(e){return function(){delete this[e]}}function sa(e,n){return function(){this[e]=n}}function ua(e,n){return function(){var r=n.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function la(e,n){return arguments.length>1?this.each((n==null?aa:typeof n=="function"?ua:sa)(e,n)):this.node()[e]}function Wr(e){return e.trim().split(/^|\s+/)}function mn(e){return e.classList||new Vr(e)}function Vr(e){this._node=e,this._names=Wr(e.getAttribute("class")||"")}Vr.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Br(e,n){for(var r=mn(e),i=-1,o=n.length;++i=0&&(r=n.slice(i+1),n=n.slice(0,i)),{type:n,name:r}})}function ja(e){return function(){var n=this.__on;if(n){for(var r=0,i=-1,o=n.length,a;r{}};function ce(){for(var e=0,n=arguments.length,r={},i;e=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}ve.prototype=ce.prototype={constructor:ve,on:function(e,n){var r=this._,i=Ba(e+"",r),o,a=-1,s=i.length;if(arguments.length<2){for(;++a0)for(var r=new Array(o),i=0,o,a;i()=>e;function rn(e,{sourceEvent:n,subject:r,target:i,identifier:o,active:a,x:s,y:u,dx:f,dy:l,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:f,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:c}})}rn.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Za(e){return!e.ctrlKey&&!e.button}function Ka(){return this.parentNode}function Qa(e,n){return n??{x:e.x,y:e.y}}function Ja(){return navigator.maxTouchPoints||"ontouchstart"in this}function ts(){var e=Za,n=Ka,r=Qa,i=Ja,o={},a=ce("start","drag","end"),s=0,u,f,l,c,h=0;function d(w){w.on("mousedown.drag",p).filter(i).on("touchstart.drag",m).on("touchmove.drag",g,Ya).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(w,x){if(!(c||!e.call(this,w,x))){var C=M(this,n.call(this,w,x),w,x,"mouse");C&&(ft(w.view).on("mousemove.drag",y,se).on("mouseup.drag",_,se),Kr(w.view),qe(w),l=!1,u=w.clientX,f=w.clientY,C("start",w))}}function y(w){if(Lt(w),!l){var x=w.clientX-u,C=w.clientY-f;l=x*x+C*C>h}o.mouse("drag",w)}function _(w){ft(w.view).on("mousemove.drag mouseup.drag",null),Qr(w.view,l),Lt(w),o.mouse("end",w)}function m(w,x){if(e.call(this,w,x)){var C=w.changedTouches,S=n.call(this,w,x),v=C.length,T,P;for(T=0;T=0&&e._call.call(void 0,n),e=e._next;--Ht}function Vn(){jt=(Se=ue.now())+je,Ht=Jt=0;try{ns()}finally{Ht=0,is(),jt=0}}function rs(){var e=ue.now(),n=e-Se;n>Jr&&(je-=n,Se=e)}function is(){for(var e,n=Ce,r,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(r=n._next,n._next=null,n=e?e._next=r:Ce=r);te=e,on(i)}function on(e){if(!Ht){Jt&&(Jt=clearTimeout(Jt));var n=e-jt;n>24?(e<1/0&&(Jt=setTimeout(Vn,e-ue.now()-je)),Wt&&(Wt=clearInterval(Wt))):(Wt||(Se=ue.now(),Wt=setInterval(rs,Jr)),Ht=1,ti(Vn))}}function Bn(e,n,r){var i=new Me;return n=n==null?0:+n,i.restart(o=>{i.stop(),e(o+n)},n,r),i}var os=ce("start","end","cancel","interrupt"),as=[],ei=0,Xn=1,an=2,me=3,Yn=4,sn=5,be=6;function $e(e,n,r,i,o,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;ss(e,r,{name:n,index:i,group:o,on:os,tween:as,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:ei})}function wn(e,n){var r=pt(e,n);if(r.state>ei)throw new Error("too late; already scheduled");return r}function bt(e,n){var r=pt(e,n);if(r.state>me)throw new Error("too late; already running");return r}function pt(e,n){var r=e.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function ss(e,n,r){var i=e.__transition,o;i[n]=r,r.timer=xn(a,0,r.time);function a(l){r.state=Xn,r.timer.restart(s,r.delay,r.time),r.delay<=l&&s(l-r.delay)}function s(l){var c,h,d,p;if(r.state!==Xn)return f();for(c in i)if(p=i[c],p.name===r.name){if(p.state===me)return Bn(s);p.state===Yn?(p.state=be,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[c]):+can&&i.state=0&&(n=n.slice(0,r)),!n||n==="start"})}function js(e,n,r){var i,o,a=Ds(n)?wn:bt;return function(){var s=a(this,e),u=s.on;u!==i&&(o=(i=u).copy()).on(n,r),s.on=o}}function $s(e,n){var r=this._id;return arguments.length<2?pt(this.node(),r).on.on(e):this.each(js(r,e,n))}function Fs(e){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==e)return;n&&n.removeChild(this)}}function Ls(){return this.on("end.remove",Fs(this._id))}function Us(e){var n=this._name,r=this._id;typeof e!="function"&&(e=vn(e));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s()=>e;function hu(e,{sourceEvent:n,target:r,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function St(e,n,r){this.k=e,this.x=n,this.y=r}St.prototype={constructor:St,scale:function(e){return e===1?this:new St(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new St(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var An=new St(1,0,0);gt.prototype=St.prototype;function gt(e){for(;!e.__zoom;)if(!(e=e.parentNode))return An;return e.__zoom}function Ge(e){e.stopImmediatePropagation()}function Vt(e){e.preventDefault(),e.stopImmediatePropagation()}function du(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function pu(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Zn(){return this.__zoom||An}function gu(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function yu(){return navigator.maxTouchPoints||"ontouchstart"in this}function _u(e,n,r){var i=e.invertX(n[0][0])-r[0][0],o=e.invertX(n[1][0])-r[1][0],a=e.invertY(n[0][1])-r[0][1],s=e.invertY(n[1][1])-r[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function vu(){var e=du,n=pu,r=_u,i=gu,o=yu,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,f=Ji,l=ce("start","zoom","end"),c,h,d,p=500,y=150,_=0,m=10;function g(A){A.property("__zoom",Zn).on("wheel.zoom",v,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",P).filter(o).on("touchstart.zoom",E).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}g.transform=function(A,I,O,D){var $=A.selection?A.selection():A;$.property("__zoom",Zn),A!==$?x(A,I,O,D):$.interrupt().each(function(){C(this,arguments).event(D).start().zoom(null,typeof I=="function"?I.apply(this,arguments):I).end()})},g.scaleBy=function(A,I,O,D){g.scaleTo(A,function(){var $=this.__zoom.k,F=typeof I=="function"?I.apply(this,arguments):I;return $*F},O,D)},g.scaleTo=function(A,I,O,D){g.transform(A,function(){var $=n.apply(this,arguments),F=this.__zoom,L=O==null?w($):typeof O=="function"?O.apply(this,arguments):O,U=F.invert(L),H=typeof I=="function"?I.apply(this,arguments):I;return r(M(k(F,H),L,U),$,s)},O,D)},g.translateBy=function(A,I,O,D){g.transform(A,function(){return r(this.__zoom.translate(typeof I=="function"?I.apply(this,arguments):I,typeof O=="function"?O.apply(this,arguments):O),n.apply(this,arguments),s)},null,D)},g.translateTo=function(A,I,O,D,$){g.transform(A,function(){var F=n.apply(this,arguments),L=this.__zoom,U=D==null?w(F):typeof D=="function"?D.apply(this,arguments):D;return r(An.translate(U[0],U[1]).scale(L.k).translate(typeof I=="function"?-I.apply(this,arguments):-I,typeof O=="function"?-O.apply(this,arguments):-O),F,s)},D,$)};function k(A,I){return I=Math.max(a[0],Math.min(a[1],I)),I===A.k?A:new St(I,A.x,A.y)}function M(A,I,O){var D=I[0]-O[0]*A.k,$=I[1]-O[1]*A.k;return D===A.x&&$===A.y?A:new St(A.k,D,$)}function w(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function x(A,I,O,D){A.on("start.zoom",function(){C(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(D).end()}).tween("zoom",function(){var $=this,F=arguments,L=C($,F).event(D),U=n.apply($,F),H=O==null?w(U):typeof O=="function"?O.apply($,F):O,Z=Math.max(U[1][0]-U[0][0],U[1][1]-U[0][1]),V=$.__zoom,et=typeof I=="function"?I.apply($,F):I,at=f(V.invert(H).concat(Z/V.k),et.invert(H).concat(Z/et.k));return function(nt){if(nt===1)nt=et;else{var st=at(nt),Gt=Z/st[2];nt=new St(Gt,H[0]-st[0]*Gt,H[1]-st[1]*Gt)}L.zoom(null,nt)}})}function C(A,I,O){return!O&&A.__zooming||new S(A,I)}function S(A,I){this.that=A,this.args=I,this.active=0,this.sourceEvent=null,this.extent=n.apply(A,I),this.taps=0}S.prototype={event:function(A){return A&&(this.sourceEvent=A),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(A,I){return this.mouse&&A!=="mouse"&&(this.mouse[1]=I.invert(this.mouse[0])),this.touch0&&A!=="touch"&&(this.touch0[1]=I.invert(this.touch0[0])),this.touch1&&A!=="touch"&&(this.touch1[1]=I.invert(this.touch1[0])),this.that.__zoom=I,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(A){var I=ft(this.that).datum();l.call(A,this.that,new hu(A,{sourceEvent:this.sourceEvent,target:g,transform:this.that.__zoom,dispatch:l}),I)}};function v(A,...I){if(!e.apply(this,arguments))return;var O=C(this,I).event(A),D=this.__zoom,$=Math.max(a[0],Math.min(a[1],D.k*Math.pow(2,i.apply(this,arguments)))),F=yt(A);if(O.wheel)(O.mouse[0][0]!==F[0]||O.mouse[0][1]!==F[1])&&(O.mouse[1]=D.invert(O.mouse[0]=F)),clearTimeout(O.wheel);else{if(D.k===$)return;O.mouse=[F,D.invert(F)],xe(this),O.start()}Vt(A),O.wheel=setTimeout(L,y),O.zoom("mouse",r(M(k(D,$),O.mouse[0],O.mouse[1]),O.extent,s));function L(){O.wheel=null,O.end()}}function T(A,...I){if(d||!e.apply(this,arguments))return;var O=A.currentTarget,D=C(this,I,!0).event(A),$=ft(A.view).on("mousemove.zoom",H,!0).on("mouseup.zoom",Z,!0),F=yt(A,O),L=A.clientX,U=A.clientY;Kr(A.view),Ge(A),D.mouse=[F,this.__zoom.invert(F)],xe(this),D.start();function H(V){if(Vt(V),!D.moved){var et=V.clientX-L,at=V.clientY-U;D.moved=et*et+at*at>_}D.event(V).zoom("mouse",r(M(D.that.__zoom,D.mouse[0]=yt(V,O),D.mouse[1]),D.extent,s))}function Z(V){$.on("mousemove.zoom mouseup.zoom",null),Qr(V.view,D.moved),Vt(V),D.event(V).end()}}function P(A,...I){if(e.apply(this,arguments)){var O=this.__zoom,D=yt(A.changedTouches?A.changedTouches[0]:A,this),$=O.invert(D),F=O.k*(A.shiftKey?.5:2),L=r(M(k(O,F),D,$),n.apply(this,I),s);Vt(A),u>0?ft(this).transition().duration(u).call(x,L,D,A):ft(this).call(g.transform,L,D,A)}}function E(A,...I){if(e.apply(this,arguments)){var O=A.touches,D=O.length,$=C(this,I,A.changedTouches.length===D).event(A),F,L,U,H;for(Ge(A),L=0;L=n||S<0||h&&v>=a}function g(){var C=We();if(m(C))return k(C);u=setTimeout(g,_(C))}function k(C){return u=void 0,d&&i?p(C):(i=o=void 0,s)}function M(){u!==void 0&&clearTimeout(u),l=0,i=f=o=u=void 0}function w(){return u===void 0?s:k(We())}function x(){var C=We(),S=m(C);if(i=arguments,o=this,f=C,S){if(u===void 0)return y(f);if(h)return clearTimeout(u),u=setTimeout(g,n),p(f)}return u===void 0&&(u=setTimeout(g,n)),s}return x.cancel=M,x.flush=w,x}var Gu="Expected a function";function Wu(e,n,r){var i=!0,o=!0;if(typeof e!="function")throw new TypeError(Gu);return Pe(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),si(e,n,{leading:i,maxWait:n,trailing:o})}var Dt=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return e},Out:function(e){return e},InOut:function(e){return e}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(e){var n=1.70158;return e===1?1:e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return e===0?0:--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}}),Bounce:Object.freeze({In:function(e){return 1-Dt.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?Dt.Bounce.In(e*2)*.5:Dt.Bounce.Out(e*2-1)*.5+.5}}),generatePow:function(e){return e===void 0&&(e=4),e=e1e4?1e4:e,{In:function(n){return Math.pow(n,e)},Out:function(n){return 1-Math.pow(1-n,e)},InOut:function(n){return n<.5?Math.pow(n*2,e)/2:(1-Math.pow(2-n*2,e))/2+.5}}}}),ee=function(){return performance.now()},ui=(function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(r){return n._tweens[r]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(n){this._tweens[n.getId()]=n,this._tweensAddedDuringUpdate[n.getId()]=n},e.prototype.remove=function(n){delete this._tweens[n.getId()],delete this._tweensAddedDuringUpdate[n.getId()]},e.prototype.update=function(n,r){n===void 0&&(n=ee()),r===void 0&&(r=!1);var i=Object.keys(this._tweens);if(i.length===0)return!1;for(;i.length>0;){this._tweensAddedDuringUpdate={};for(var o=0;o1?a(e[r],e[r-1],r-i):a(e[o],e[o+1>r?r:o+1],i-o)},Utils:{Linear:function(e,n,r){return(n-e)*r+e}}},li=(function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e})(),ln=new ui,tr=(function(){function e(n,r){r===void 0&&(r=ln),this._object=n,this._group=r,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Dt.Linear.None,this._interpolationFunction=un.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=li.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(n,r){if(r===void 0&&(r=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=n,this._propertiesAreSetUp=!1,this._duration=r<0?0:r,this},e.prototype.duration=function(n){return n===void 0&&(n=1e3),this._duration=n<0?0:n,this},e.prototype.dynamic=function(n){return n===void 0&&(n=!1),this._isDynamic=n,this},e.prototype.start=function(n,r){if(n===void 0&&(n=ee()),r===void 0&&(r=!1),this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var i in this._valuesStartRepeat)this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,!this._propertiesAreSetUp||r){if(this._propertiesAreSetUp=!0,!this._isDynamic){var o={};for(var a in this._valuesEnd)o[a]=this._valuesEnd[a];this._valuesEnd=o}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,r)}return this},e.prototype.startFromCurrentValues=function(n){return this.start(n,!0)},e.prototype._setupProperties=function(n,r,i,o,a){for(var s in i){var u=n[s],f=Array.isArray(u),l=f?"array":typeof u,c=!f&&Array.isArray(i[s]);if(!(l==="undefined"||l==="function")){if(c){var h=i[s];if(h.length===0)continue;for(var d=[u],p=0,y=h.length;p"u"||a)&&(r[s]=u),f||(r[s]*=1),c?o[s]=i[s].slice().reverse():o[s]=r[s]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(n){return n===void 0&&(n=ee()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this._group&&this._group.remove(this),this)},e.prototype.resume=function(n){return n===void 0&&(n=ee()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this)},e.prototype.stopChainedTweens=function(){for(var n=0,r=this._chainedTweens.length;ns)return!1;r&&this.start(n,!0)}if(this._goToEnd=!1,nl)return 1;var m=Math.trunc(u/f),g=u-m*f,k=Math.min(g/i._duration,1);return k===0&&u===i._duration?1:k},h=c(),d=this._easingFunction(h);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,d),this._onUpdateCallback&&this._onUpdateCallback(this._object,h),this._duration===0||u>=this._duration)if(this._repeat>0){var p=Math.min(Math.trunc((u-this._duration)/f)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=p);for(a in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[a]=="string"&&(this._valuesStartRepeat[a]=this._valuesStartRepeat[a]+parseFloat(this._valuesEnd[a])),this._yoyo&&this._swapEndStartRepeatValues(a),this._valuesStart[a]=this._valuesStartRepeat[a];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=f*p,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var y=0,_=this._chainedTweens.length;y<_;y++)this._chainedTweens[y].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,r,i,o){for(var a in i)if(r[a]!==void 0){var s=r[a]||0,u=i[a],f=Array.isArray(n[a]),l=Array.isArray(u),c=!f&&l;c?n[a]=this._interpolationFunction(u,o):typeof u=="object"&&u?this._updateProperties(n[a],s,u,o):(u=this._handleRelativeValue(s,u),typeof u=="number"&&(n[a]=s+(u-s)*o))}},e.prototype._handleRelativeValue=function(n,r){return typeof r!="string"?r:r.charAt(0)==="+"||r.charAt(0)==="-"?n+parseFloat(r):parseFloat(r)},e.prototype._swapEndStartRepeatValues=function(n){var r=this._valuesStartRepeat[n],i=this._valuesEnd[n];typeof i=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(i):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=r},e})();li.nextId;var mt=ln;mt.getAll.bind(mt);mt.removeAll.bind(mt);mt.add.bind(mt);mt.remove.bind(mt);mt.update.bind(mt);function er(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r=0,a=!r&&o&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return a?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(i=this.toRgbString()),n==="prgb"&&(i=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(i=this.toHexString()),n==="hex3"&&(i=this.toHexString(!0)),n==="hex4"&&(i=this.toHex8String(!0)),n==="hex8"&&(i=this.toHex8String()),n==="name"&&(i=this.toName()),n==="hsl"&&(i=this.toHslString()),n==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return j(this.toString())},_applyModification:function(n,r){var i=n.apply(null,[this].concat([].slice.call(r)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(fl,arguments)},brighten:function(){return this._applyModification(cl,arguments)},darken:function(){return this._applyModification(hl,arguments)},desaturate:function(){return this._applyModification(sl,arguments)},saturate:function(){return this._applyModification(ul,arguments)},greyscale:function(){return this._applyModification(ll,arguments)},spin:function(){return this._applyModification(dl,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(yl,arguments)},complement:function(){return this._applyCombination(pl,arguments)},monochromatic:function(){return this._applyCombination(_l,arguments)},splitcomplement:function(){return this._applyCombination(gl,arguments)},triad:function(){return this._applyCombination(ar,[3])},tetrad:function(){return this._applyCombination(ar,[4])}};j.fromRatio=function(e,n){if(Oe(e)=="object"){var r={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?r[i]=e[i]:r[i]=ne(e[i]));e=r}return j(e,n)};function nl(e){var n={r:0,g:0,b:0},r=1,i=null,o=null,a=null,s=!1,u=!1;return typeof e=="string"&&(e=wl(e)),Oe(e)=="object"&&(wt(e.r)&&wt(e.g)&&wt(e.b)?(n=rl(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wt(e.h)&&wt(e.s)&&wt(e.v)?(i=ne(e.s),o=ne(e.v),n=ol(e.h,i,o),s=!0,u="hsv"):wt(e.h)&&wt(e.s)&&wt(e.l)&&(i=ne(e.s),a=ne(e.l),n=il(e.h,i,a),s=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=fi(r),{ok:s,format:e.format||u,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function rl(e,n,r){return{r:X(e,255)*255,g:X(n,255)*255,b:X(r,255)*255}}function nr(e,n,r){e=X(e,255),n=X(n,255),r=X(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,u=(i+o)/2;if(i==o)a=s=0;else{var f=i-o;switch(s=u>.5?f/(2-i-o):f/(i+o),i){case e:a=(n-r)/f+(n1&&(h-=1),h<1/6?l+(c-l)*6*h:h<1/2?c:h<2/3?l+(c-l)*(2/3-h)*6:l}if(n===0)i=o=a=r;else{var u=r<.5?r*(1+n):r+n-r*n,f=2*r-u;i=s(f,u,e+1/3),o=s(f,u,e),a=s(f,u,e-1/3)}return{r:i*255,g:o*255,b:a*255}}function rr(e,n,r){e=X(e,255),n=X(n,255),r=X(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,u=i,f=i-o;if(s=i===0?0:f/i,i==o)a=0;else{switch(i){case e:a=(n-r)/f+(n>1)+720)%360;--n;)i.h=(i.h+o)%360,a.push(j(i));return a}function _l(e,n){n=n||6;for(var r=j(e).toHsv(),i=r.h,o=r.s,a=r.v,s=[],u=1/n;n--;)s.push(j({h:i,s:o,v:a})),a=(a+u)%1;return s}j.mix=function(e,n,r){r=r===0?0:r||50;var i=j(e).toRgb(),o=j(n).toRgb(),a=r/100,s={r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a};return j(s)};j.readability=function(e,n){var r=j(e),i=j(n);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)};j.isReadable=function(e,n,r){var i=j.readability(e,n),o,a;switch(a=!1,o=kl(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7;break}return a};j.mostReadable=function(e,n,r){var i=null,o=0,a,s,u,f;r=r||{},s=r.includeFallbackColors,u=r.level,f=r.size;for(var l=0;lo&&(o=a,i=j(n[l]));return j.isReadable(e,i,{level:u,size:f})||!s?i:(r.includeFallbackColors=!1,j.mostReadable(e,["#fff","#000"],r))};var fn=j.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},vl=j.hexNames=ml(fn);function ml(e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);return n}function fi(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function X(e,n){bl(e)&&(e="100%");var r=xl(e);return e=Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function Fe(e){return Math.min(1,Math.max(0,e))}function it(e){return parseInt(e,16)}function bl(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function xl(e){return typeof e=="string"&&e.indexOf("%")!=-1}function dt(e){return e.length==1?"0"+e:""+e}function ne(e){return e<=1&&(e=e*100+"%"),e}function ci(e){return Math.round(parseFloat(e)*255).toString(16)}function sr(e){return it(e)/255}var ht=(function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+e+")",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function wt(e){return!!ht.CSS_UNIT.exec(e)}function wl(e){e=e.replace(tl,"").replace(el,"").toLowerCase();var n=!1;if(fn[e])e=fn[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ht.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ht.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ht.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ht.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ht.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ht.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ht.hex8.exec(e))?{r:it(r[1]),g:it(r[2]),b:it(r[3]),a:sr(r[4]),format:n?"name":"hex8"}:(r=ht.hex6.exec(e))?{r:it(r[1]),g:it(r[2]),b:it(r[3]),format:n?"name":"hex"}:(r=ht.hex4.exec(e))?{r:it(r[1]+""+r[1]),g:it(r[2]+""+r[2]),b:it(r[3]+""+r[3]),a:sr(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=ht.hex3.exec(e))?{r:it(r[1]+""+r[1]),g:it(r[2]+""+r[2]),b:it(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function kl(e){var n,r;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}function cn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r0&&arguments[0]!==void 0?arguments[0]:6;Sl(this,e),ur(this,It,void 0),ur(this,kt,void 0),lr(kt,this,n),this.reset()}return Tl(e,[{key:"reset",value:function(){lr(It,this,["__reserved for background__"])}},{key:"register",value:function(r){if(ut(It,this).length>=Math.pow(2,24-ut(kt,this)))return null;var i=ut(It,this).length,o=fr(i,ut(kt,this)),a=Dl(i+(o<<24-ut(kt,this)));return ut(It,this).push(r),a}},{key:"lookup",value:function(r){if(!r)return null;var i=typeof r=="string"?jl(r):di.apply(void 0,El(r));if(!i)return null;var o=i&Math.pow(2,24-ut(kt,this))-1,a=i>>24-ut(kt,this)&Math.pow(2,ut(kt,this))-1;return fr(o,ut(kt,this))!==a||o>=ut(It,this).length?null:ut(It,this)[o]}}])})(),he,Y,pi,gi,zt,cr,yi,_i,Ve,we,re,vi,Sn,hn,dn,Ee={},ze=[],Fl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Le=Array.isArray;function _t(e,n){for(var r in n)e[r]=n[r];return e}function Mn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ll(e,n,r){var i,o,a,s={};for(a in n)a=="key"?i=n[a]:a=="ref"?o=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?he.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)s[a]===void 0&&(s[a]=e.defaultProps[a]);return ie(e,s,i,o,null)}function ie(e,n,r,i,o){var a={type:e,props:n,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++pi,__i:-1,__u:0};return o==null&&Y.vnode!=null&&Y.vnode(a),a}function Ue(e){return e.children}function ke(e,n){this.props=e,this.context=n}function qt(e,n){if(n==null)return e.__?qt(e.__,e.__i+1):null;for(var r;nn&&zt.sort(_i),e=zt.shift(),n=zt.length,Ul(e)}finally{zt.length=Re.__r=0}}function bi(e,n,r,i,o,a,s,u,f,l,c){var h,d,p,y,_,m,g,k=i&&i.__k||ze,M=n.length;for(f=Hl(r,n,k,f,M),h=0;h0?s=e.__k[a]=ie(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[a]=s,f=a+d,s.__=e,s.__b=e.__b+1,u=null,(l=s.__i=ql(s,r,f,h))!=-1&&(h--,(u=r[l])&&(u.__u|=2)),u==null||u.__v==null?(l==-1&&(o>c?d--:of?d--:d++,s.__u|=4))):e.__k[a]=null;if(h)for(a=0;a(c?1:0)){for(o=r-1,a=r+1;o>=0||a=0?o--:a++])!=null&&(2&l.__u)==0&&u==l.key&&f==l.type)return s}return-1}function dr(e,n,r){n[0]=="-"?e.setProperty(n,r??""):e[n]=r==null?"":typeof r!="number"||Fl.test(n)?r:r+"px"}function ye(e,n,r,i,o){var a,s;t:if(n=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(n in i)r&&n in r||dr(e.style,n,"");if(r)for(n in r)i&&r[n]==i[n]||dr(e.style,n,r[n])}else if(n[0]=="o"&&n[1]=="n")a=n!=(n=n.replace(vi,"$1")),s=n.toLowerCase(),n=s in e||n=="onFocusOut"||n=="onFocusIn"?s.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+a]=r,r?i?r[re]=i[re]:(r[re]=Sn,e.addEventListener(n,a?dn:hn,a)):e.removeEventListener(n,a?dn:hn,a);else{if(o=="http://www.w3.org/2000/svg")n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!="width"&&n!="height"&&n!="href"&&n!="list"&&n!="form"&&n!="tabIndex"&&n!="download"&&n!="rowSpan"&&n!="colSpan"&&n!="role"&&n!="popover"&&n in e)try{e[n]=r??"";break t}catch{}typeof r=="function"||(r==null||r===!1&&n[4]!="-"?e.removeAttribute(n):e.setAttribute(n,n=="popover"&&r==1?"":r))}}function pr(e){return function(n){if(this.l){var r=this.l[n.type+e];if(n[we]==null)n[we]=Sn++;else if(n[we]0?e:Le(e)?e.map(Ai):e.constructor!==void 0?null:_t({},e)}function Gl(e,n,r,i,o,a,s,u,f){var l,c,h,d,p,y,_,m=r.props||Ee,g=n.props,k=n.type;if(k=="svg"?o="http://www.w3.org/2000/svg":k=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),a!=null){for(l=0;l2&&(u.children=arguments.length>3?he.call(arguments,2):r),ie(e.type,u,i||e.key,o||e.ref,null)}he=ze.slice,Y={__e:function(e,n,r,i){for(var o,a,s;n=n.__;)if((o=n.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,i||{}),s=o.__d),s)return o.__E=o}catch(u){e=u}throw e}},pi=0,gi=function(e){return e!=null&&e.constructor===void 0},ke.prototype.setState=function(e,n){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=_t({},this.state),typeof e=="function"&&(e=e(_t({},r),this.props)),e&&_t(r,e),e!=null&&this.__v&&(n&&this._sb.push(n),hr(this))},ke.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),hr(this))},ke.prototype.render=Ue,zt=[],yi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_i=function(e,n){return e.__v.__b-n.__v.__b},Re.__r=0,Ve=Math.random().toString(8),we="__d"+Ve,re="__a"+Ve,vi=/(PointerCapture)$|Capture$/i,Sn=0,hn=pr(!1),dn=pr(!0);function gr(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r"u")){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var af=`.float-tooltip-kap { position: absolute; width: max-content; /* prevent shrinking near right edge */ max-width: max(50%, 150px); padding: 3px 5px; border-radius: 3px; font: 12px sans-serif; color: #eee; background: rgba(0,0,0,0.6); pointer-events: none; } `;of(af);var sf=Cn({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.style,a=o===void 0?{}:o,s=!!n&&Ie(n)==="object"&&!!n.node&&typeof n.node=="function",u=ft(s?n.node():n);u.style("position")==="static"&&u.style("position","relative"),r.tooltipEl=u.append("div").attr("class","float-tooltip-kap"),Object.entries(a).forEach(function(l){var c=Ql(l,2),h=c[0],d=c[1];return r.tooltipEl.style(h,d)}),r.tooltipEl.style("left","-10000px").style("display","none");var f="tooltip-".concat(Math.round(Math.random()*1e12));r.mouseInside=!1,u.on("mousemove.".concat(f),function(l){r.mouseInside=!0;var c=yt(l),h=u.node(),d=h.offsetWidth,p=h.offsetHeight,y=[r.offsetX===null||r.offsetX===void 0?"-".concat(c[0]/d*100,"%"):typeof r.offsetX=="number"?"calc(-50% + ".concat(r.offsetX,"px)"):r.offsetX,r.offsetY===null||r.offsetY===void 0?p>130&&p-c[1]<100?"calc(-100% - 6px)":"21px":typeof r.offsetY=="number"?r.offsetY<0?"calc(-100% - ".concat(Math.abs(r.offsetY),"px)"):"".concat(r.offsetY,"px"):r.offsetY];r.tooltipEl.style("left",c[0]+"px").style("top",c[1]+"px").style("transform","translate(".concat(y.join(","),")")),r.content&&r.tooltipEl.style("display","inline")}),u.on("mouseover.".concat(f),function(){r.mouseInside=!0,r.content&&r.tooltipEl.style("display","inline")}),u.on("mouseout.".concat(f),function(){r.mouseInside=!1,r.tooltipEl.style("display","none")})},update:function(n){n.tooltipEl.style("display",n.content&&n.mouseInside?"inline":"none"),n.content?n.content instanceof HTMLElement?(n.tooltipEl.text(""),n.tooltipEl.append(function(){return n.content})):typeof n.content=="string"?n.tooltipEl.html(n.content):nf(n.content)?(n.tooltipEl.text(""),rf(n.content,n.tooltipEl.node())):(n.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",n.content,n.content.toString())):n.tooltipEl.text("")}});function uf(e,n,r){var i,o=1;e==null&&(e=0),n==null&&(n=0),r==null&&(r=0);function a(){var s,u=i.length,f,l=0,c=0,h=0;for(s=0;s=(f=(s+u)/2))?s=f:u=f,i=o,!(o=o[h=+c]))return i[h]=a,e;if(l=+e._x.call(null,o.data),n===l)return a.next=o,i?i[h]=a:e._root=a,e;do i=i?i[h]=new Array(2):e._root=new Array(2),(c=n>=(f=(s+u)/2))?s=f:u=f;while((h=+c)==(d=+(l>=f)));return i[d]=o,i[h]=a,e}function ff(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,r=new Float64Array(n);let i=1/0,o=-1/0;for(let a=0,s;ao&&(o=s));if(i>o)return this;this.cover(i).cover(o);for(let a=0;ae||e>=r;)switch(s=+(es||(a=l.x1)=h))&&(l=u[u.length-1],u[u.length-1]=u[u.length-1-c],u[u.length-1-c]=l)}else{var d=Math.abs(e-+this._x.call(null,f.data));d=(l=(s+u)/2))?s=l:u=l,n=r,!(r=r[h=+c]))return this;if(!r.length)break;n[h+1&1]&&(i=n,d=h)}for(;r.data!==e;)if(o=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,o?(a?o.next=a:delete o.next,this):n?(a?n[h]=a:delete n[h],(r=n[0]||n[1])&&r===(n[1]||n[0])&&!r.length&&(i?i[d]=r:this._root=r),this):(this._root=a,this)}function yf(e){for(var n=0,r=e.length;n=(h=(u+l)/2))?u=h:l=h,(m=r>=(d=(f+c)/2))?f=d:c=d,o=a,!(a=a[g=m<<1|_]))return o[g]=s,e;if(p=+e._x.call(null,a.data),y=+e._y.call(null,a.data),n===p&&r===y)return s.next=a,o?o[g]=s:e._root=s,e;do o=o?o[g]=new Array(4):e._root=new Array(4),(_=n>=(h=(u+l)/2))?u=h:l=h,(m=r>=(d=(f+c)/2))?f=d:c=d;while((g=m<<1|_)===(k=(y>=d)<<1|p>=h));return o[k]=a,o[g]=s,e}function Af(e){var n,r,i=e.length,o,a,s=new Array(i),u=new Array(i),f=1/0,l=1/0,c=-1/0,h=-1/0;for(r=0;rc&&(c=o),ah&&(h=a));if(f>c||l>h)return this;for(this.cover(f,l).cover(c,h),r=0;re||e>=o||i>n||n>=a;)switch(l=(nc||(u=y.y0)>h||(f=y.x1)=g)<<1|e>=m)&&(y=d[d.length-1],d[d.length-1]=d[d.length-1-_],d[d.length-1-_]=y)}else{var k=e-+this._x.call(null,p.data),M=n-+this._y.call(null,p.data),w=k*k+M*M;if(w=(d=(s+f)/2))?s=d:f=d,(_=h>=(p=(u+l)/2))?u=p:l=p,n=r,!(r=r[m=_<<1|y]))return this;if(!r.length)break;(n[m+1&3]||n[m+2&3]||n[m+3&3])&&(i=n,g=m)}for(;r.data!==e;)if(o=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,o?(a?o.next=a:delete o.next,this):n?(a?n[m]=a:delete n[m],(r=n[0]||n[1]||n[2]||n[3])&&r===(n[3]||n[2]||n[1]||n[0])&&!r.length&&(i?i[g]=r:this._root=r),this):(this._root=a,this)}function Of(e){for(var n=0,r=e.length;n=(y=(f+h)/2))?f=y:h=y,(x=r>=(_=(l+d)/2))?l=_:d=_,(C=i>=(m=(c+p)/2))?c=m:p=m,a=s,!(s=s[S=C<<2|x<<1|w]))return a[S]=u,e;if(g=+e._x.call(null,s.data),k=+e._y.call(null,s.data),M=+e._z.call(null,s.data),n===g&&r===k&&i===M)return u.next=s,a?a[S]=u:e._root=u,e;do a=a?a[S]=new Array(8):e._root=new Array(8),(w=n>=(y=(f+h)/2))?f=y:h=y,(x=r>=(_=(l+d)/2))?l=_:d=_,(C=i>=(m=(c+p)/2))?c=m:p=m;while((S=C<<2|x<<1|w)===(v=(M>=m)<<2|(k>=_)<<1|g>=y));return a[v]=s,a[S]=u,e}function Lf(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,r=new Float64Array(n),i=new Float64Array(n),o=new Float64Array(n);let a=1/0,s=1/0,u=1/0,f=-1/0,l=-1/0,c=-1/0;for(let h=0,d,p,y,_;hf&&(f=p),yl&&(l=y),_c&&(c=_));if(a>f||s>l||u>c)return this;this.cover(a,s,u).cover(f,l,c);for(let h=0;he||e>=s||o>n||n>=u||a>r||r>=f;)switch(d=(ry||(l=M.y0)>_||(c=M.z0)>m||(h=M.x1)=S)<<2|(n>=C)<<1|e>=x)&&(M=g[g.length-1],g[g.length-1]=g[g.length-1-w],g[g.length-1-w]=M)}else{var v=e-+this._x.call(null,k.data),T=n-+this._y.call(null,k.data),P=r-+this._z.call(null,k.data),E=v*v+T*T+P*P;if(EMath.sqrt((e-i)**2+(n-o)**2+(r-a)**2);function Vf(e,n,r,i){const o=[],a=e-i,s=n-i,u=r-i,f=e+i,l=n+i,c=r+i;return this.visit((h,d,p,y,_,m,g)=>{if(!h.length)do{const k=h.data;Wf(e,n,r,this._x(k),this._y(k),this._z(k))<=i&&o.push(k)}while(h=h.next);return d>f||p>l||y>c||_=(_=(s+l)/2))?s=_:l=_,(M=p>=(m=(u+c)/2))?u=m:c=m,(w=y>=(g=(f+h)/2))?f=g:h=g,n=r,!(r=r[x=w<<2|M<<1|k]))return this;if(!r.length)break;(n[x+1&7]||n[x+2&7]||n[x+3&7]||n[x+4&7]||n[x+5&7]||n[x+6&7]||n[x+7&7])&&(i=n,C=x)}for(;r.data!==e;)if(o=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,o?(a?o.next=a:delete o.next,this):n?(a?n[x]=a:delete n[x],(r=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&r===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!r.length&&(i?i[C]=r:this._root=r),this):(this._root=a,this)}function Xf(e){for(var n=0,r=e.length;n1&&(T=S.y+S.vy-C.y-C.vy||Ct(c)),u>2&&(P=S.z+S.vz-C.z-C.vz||Ct(c)),E=Math.sqrt(v*v+T*T+P*P),E=(E-a[w])/E*g*i[w],v*=E,T*=E,P*=E,S.vx-=v*(N=l[w]),u>1&&(S.vy-=T*N),u>2&&(S.vz-=P*N),C.vx+=v*(N=1-N),u>1&&(C.vy+=T*N),u>2&&(C.vz+=P*N)}function y(){if(s){var g,k=s.length,M=e.length,w=new Map(s.map((C,S)=>[n(C,S,s),C])),x;for(g=0,f=new Array(k);gtypeof M=="function")||Math.random,u=k.find(M=>[1,2,3].includes(M))||2,y()},p.links=function(g){return arguments.length?(e=g,y(),p):e},p.id=function(g){return arguments.length?(n=g,p):n},p.iterations=function(g){return arguments.length?(h=+g,p):h},p.strength=function(g){return arguments.length?(r=typeof g=="function"?g:Mt(+g),_(),p):r},p.distance=function(g){return arguments.length?(o=typeof g=="function"?g:Mt(+g),m(),p):o},p}const sc=1664525,uc=1013904223,xr=4294967296;function lc(){let e=1;return()=>(e=(sc*e+uc)%xr)/xr}var wr=3;function Be(e){return e.x}function kr(e){return e.y}function fc(e){return e.z}var cc=10,hc=Math.PI*(3-Math.sqrt(5)),dc=Math.PI*20/(9+Math.sqrt(221));function pc(e,n){n=n||2;var r=Math.min(wr,Math.max(1,Math.round(n))),i,o=1,a=.001,s=1-Math.pow(a,1/300),u=0,f=.6,l=new Map,c=xn(p),h=ce("tick","end"),d=lc();e==null&&(e=[]);function p(){y(),h.call("tick",i),o1&&(w.fy==null?w.y+=w.vy*=f:(w.y=w.fy,w.vy=0)),r>2&&(w.fz==null?w.z+=w.vz*=f:(w.z=w.fz,w.vz=0));return i}function _(){for(var g=0,k=e.length,M;g1&&isNaN(M.y)||r>2&&isNaN(M.z)){var w=cc*(r>2?Math.cbrt(.5+g):r>1?Math.sqrt(.5+g):g),x=g*hc,C=g*dc;r===1?M.x=w:r===2?(M.x=w*Math.cos(x),M.y=w*Math.sin(x)):(M.x=w*Math.sin(x)*Math.cos(C),M.y=w*Math.cos(x),M.z=w*Math.sin(x)*Math.sin(C))}(isNaN(M.vx)||r>1&&isNaN(M.vy)||r>2&&isNaN(M.vz))&&(M.vx=0,r>1&&(M.vy=0),r>2&&(M.vz=0))}}function m(g){return g.initialize&&g.initialize(e,d,r),g}return _(),i={tick:y,restart:function(){return c.restart(p),i},stop:function(){return c.stop(),i},numDimensions:function(g){return arguments.length?(r=Math.min(wr,Math.max(1,Math.round(g))),l.forEach(m),i):r},nodes:function(g){return arguments.length?(e=g,_(),l.forEach(m),i):e},alpha:function(g){return arguments.length?(o=+g,i):o},alphaMin:function(g){return arguments.length?(a=+g,i):a},alphaDecay:function(g){return arguments.length?(s=+g,i):+s},alphaTarget:function(g){return arguments.length?(u=+g,i):u},velocityDecay:function(g){return arguments.length?(f=1-g,i):1-f},randomSource:function(g){return arguments.length?(d=g,l.forEach(m),i):d},force:function(g,k){return arguments.length>1?(k==null?l.delete(g):l.set(g,m(k)),i):l.get(g)},find:function(){var g=Array.prototype.slice.call(arguments),k=g.shift()||0,M=(r>1?g.shift():null)||0,w=(r>2?g.shift():null)||0,x=g.shift()||1/0,C=0,S=e.length,v,T,P,E,N,R;for(x*=x,C=0;C1?(h.on(g,k),i):h.on(g)}}}function gc(){var e,n,r,i,o,a=Mt(-30),s,u=1,f=1/0,l=.81;function c(y){var _,m=e.length,g=(n===1?Ti(e,Be):n===2?En(e,Be,kr):n===3?Ei(e,Be,kr,fc):null).visitAfter(d);for(o=y,_=0;_1&&(y.y=w/k),n>2&&(y.z=x/k)}else{m=y,m.x=m.data.x,n>1&&(m.y=m.data.y),n>2&&(m.z=m.data.z);do _+=s[m.data.index];while(m=m.next)}y.value=_}function p(y,_,m,g,k){if(!y.value)return!0;var M=[m,g,k][n-1],w=y.x-r.x,x=n>1?y.y-r.y:0,C=n>2?y.z-r.z:0,S=M-_,v=w*w+x*x+C*C;if(S*S/l1&&x===0&&(x=Ct(i),v+=x*x),n>2&&C===0&&(C=Ct(i),v+=C*C),v1&&(r.vy+=x*y.value*o/v),n>2&&(r.vz+=C*y.value*o/v)),!0;if(y.length||v>=f)return;(y.data!==r||y.next)&&(w===0&&(w=Ct(i),v+=w*w),n>1&&x===0&&(x=Ct(i),v+=x*x),n>2&&C===0&&(C=Ct(i),v+=C*C),v1&&(r.vy+=x*S),n>2&&(r.vz+=C*S));while(y=y.next)}return c.initialize=function(y,..._){e=y,i=_.find(m=>typeof m=="function")||Math.random,n=_.find(m=>[1,2,3].includes(m))||2,h()},c.strength=function(y){return arguments.length?(a=typeof y=="function"?y:Mt(+y),h(),c):a},c.distanceMin=function(y){return arguments.length?(u=y*y,c):Math.sqrt(u)},c.distanceMax=function(y){return arguments.length?(f=y*y,c):Math.sqrt(f)},c.theta=function(y){return arguments.length?(l=y*y,c):Math.sqrt(l)},c}function yc(e,n,r,i){var o,a,s=Mt(.1),u,f;typeof e!="function"&&(e=Mt(+e)),n==null&&(n=0),r==null&&(r=0),i==null&&(i=0);function l(h){for(var d=0,p=o.length;d1&&(y.vy+=m*M),a>2&&(y.vz+=g*M)}}function c(){if(o){var h,d=o.length;for(u=new Array(d),f=new Array(d),h=0;h[1,2,3].includes(p))||2,c()},l.strength=function(h){return arguments.length?(s=typeof h=="function"?h:Mt(+h),c(),l):s},l.radius=function(h){return arguments.length?(e=typeof h=="function"?h:Mt(+h),c(),l):e},l.x=function(h){return arguments.length?(n=+h,l):n},l.y=function(h){return arguments.length?(r=+h,l):r},l.z=function(h){return arguments.length?(i=+h,l):i},l}const{abs:Xt,cos:At,sin:$t,acos:_c,atan2:Yt,sqrt:Ot,pow:lt}=Math;function Zt(e){return e<0?-lt(-e,1/3):lt(e,1/3)}const zi=Math.PI,_e=2*zi,Et=zi/2,vc=1e-6,Xe=Number.MAX_SAFE_INTEGER||9007199254740991,Ye=Number.MIN_SAFE_INTEGER||-9007199254740991,mc={x:0,y:0,z:0},z={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){const r=n(e);let i=r.x*r.x+r.y*r.y;return typeof r.z<"u"&&(i+=r.z*r.z),Ot(i)},compute:function(e,n,r){if(e===0)return n[0].t=0,n[0];const i=n.length-1;if(e===1)return n[i].t=1,n[i];const o=1-e;let a=n;if(i===0)return n[0].t=e,n[0];if(i===1){const u={x:o*a[0].x+e*a[1].x,y:o*a[0].y+e*a[1].y,t:e};return r&&(u.z=o*a[0].z+e*a[1].z),u}if(i<4){let u=o*o,f=e*e,l,c,h,d=0;i===2?(a=[a[0],a[1],a[2],mc],l=u,c=o*e*2,h=f):i===3&&(l=u*o,c=u*e*3,h=o*f*3,d=e*f);const p={x:l*a[0].x+c*a[1].x+h*a[2].x+d*a[3].x,y:l*a[0].y+c*a[1].y+h*a[2].y+d*a[3].y,t:e};return r&&(p.z=l*a[0].z+c*a[1].z+h*a[2].z+d*a[3].z),p}const s=JSON.parse(JSON.stringify(n));for(;s.length>1;){for(let u=0;u1;o--,a--){const s=[];for(let u=0,f;u"u")e=.5;else if(e===0||e===1)return e;const r=lt(e,n)+lt(1-e,n),i=r-1;return Xt(i/r)},projectionratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=lt(1-e,n),i=lt(e,n)+r;return r/i},lli8:function(e,n,r,i,o,a,s,u){const f=(e*i-n*r)*(o-s)-(e-r)*(o*u-a*s),l=(e*i-n*r)*(a-u)-(n-i)*(o*u-a*s),c=(e-r)*(a-u)-(n-i)*(o-s);return c==0?!1:{x:f/c,y:l/c}},lli4:function(e,n,r,i){const o=e.x,a=e.y,s=n.x,u=n.y,f=r.x,l=r.y,c=i.x,h=i.y;return z.lli8(o,a,s,u,f,l,c,h)},lli:function(e,n){return z.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new B(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=Xe,r=Xe,i=Ye,o=Ye;return e.forEach(function(a){const s=a.bbox();n>s.x.min&&(n=s.x.min),r>s.y.min&&(r=s.y.min),i0&&(c.c1=f,c.c2=l,c.s1=e,c.s2=r,a.push(c))})}),a},makeshape:function(e,n,r){const i=n.points.length,o=e.points.length,a=z.makeline(n.points[i-1],e.points[0]),s=z.makeline(e.points[o-1],n.points[0]),u={startcap:a,forward:e,back:n,endcap:s,bbox:z.findbbox([a,e,n,s])};return u.intersections=function(f){return z.shapeintersections(u,u.bbox,f,f.bbox,r)},u},getminmax:function(e,n,r){if(!r)return{min:0,max:0};let i=Xe,o=Ye,a,s;r.indexOf(0)===-1&&(r=[0].concat(r)),r.indexOf(1)===-1&&r.push(1);for(let u=0,f=r.length;uo&&(o=s[n]);return{min:i,mid:(i+o)/2,max:o,size:o-i}},align:function(e,n){const r=n.p1.x,i=n.p1.y,o=-Yt(n.p2.y-i,n.p2.x-r),a=function(s){return{x:(s.x-r)*At(o)-(s.y-i)*$t(o),y:(s.x-r)*$t(o)+(s.y-i)*At(o)}};return e.map(a)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};const r=e.length-1,i=z.align(e,n),o=function(S){return 0<=S&&S<=1};if(r===2){const S=i[0].y,v=i[1].y,T=i[2].y,P=S-2*v+T;if(P!==0){const E=-Ot(v*v-S*T),N=-S+v,R=-(E+N)/P,A=-(-E+N)/P;return[R,A].filter(o)}else if(v!==T&&P===0)return[(2*v-T)/(2*v-2*T)].filter(o);return[]}const a=i[0].y,s=i[1].y,u=i[2].y,f=i[3].y;let l=-a+3*s-3*u+f,c=3*a-6*s+3*u,h=-3*a+3*s,d=a;if(z.approximately(l,0)){if(z.approximately(c,0))return z.approximately(h,0)?[]:[-d/h].filter(o);const S=Ot(h*h-4*c*d),v=2*c;return[(S-h)/v,(-h-S)/v].filter(o)}c/=l,h/=l,d/=l;const p=(3*h-c*c)/3,y=p/3,_=(2*c*c*c-9*c*h+27*d)/27,m=_/2,g=m*m+y*y*y;let k,M,w,x,C;if(g<0){const S=-p/3,v=S*S*S,T=Ot(v),P=-_/(2*T),E=P<-1?-1:P>1?1:P,N=_c(E),R=Zt(T),A=2*R;return w=A*At(N/3)-c/3,x=A*At((N+_e)/3)-c/3,C=A*At((N+2*_e)/3)-c/3,[w,x,C].filter(o)}else{if(g===0)return k=m<0?Zt(-m):-Zt(m),w=2*k-c/3,x=-k-c/3,[w,x].filter(o);{const S=Ot(g);return k=Zt(-m+S),M=Zt(m+S),[k-M-c/3].filter(o)}}},droots:function(e){if(e.length===3){const n=e[0],r=e[1],i=e[2],o=n-2*r+i;if(o!==0){const a=-Ot(r*r-n*i),s=-n+r,u=-(a+s)/o,f=-(-a+s)/o;return[u,f]}else if(r!==i&&o===0)return[(2*r-i)/(2*(r-i))];return[]}if(e.length===2){const n=e[0],r=e[1];return n!==r?[n/(n-r)]:[]}return[]},curvature:function(e,n,r,i,o){let a,s,u,f,l=0,c=0;const h=z.compute(e,n),d=z.compute(e,r),p=h.x*h.x+h.y*h.y;if(i?(a=Ot(lt(h.y*d.z-d.y*h.z,2)+lt(h.z*d.x-d.z*h.x,2)+lt(h.x*d.y-d.x*h.y,2)),s=lt(p+h.z*h.z,3/2)):(a=h.x*d.y-h.y*d.x,s=lt(p,3/2)),a===0||s===0)return{k:0,r:0};if(l=a/s,c=s/a,!o){const y=z.curvature(e-.001,n,r,i,!0).k,_=z.curvature(e+.001,n,r,i,!0).k;f=(_-l+(l-y))/2,u=(Xt(_-l)+Xt(l-y))/2}return{k:l,r:c,dk:f,adk:u}},inflections:function(e){if(e.length<4)return[];const n=z.align(e,{p1:e[0],p2:e.slice(-1)[0]}),r=n[2].x*n[1].y,i=n[3].x*n[1].y,o=n[1].x*n[2].y,a=n[3].x*n[2].y,s=18*(-3*r+2*i+3*o-a),u=18*(3*r-i-3*o),f=18*(o-r);if(z.approximately(s,0)){if(!z.approximately(u,0)){let d=-f/u;if(0<=d&&d<=1)return[d]}return[]}const l=2*s;if(z.approximately(l,0))return[];const c=u*u-4*s*f;if(c<0)return[];const h=Math.sqrt(c);return[(h-u)/l,-(u+h)/l].filter(function(d){return 0<=d&&d<=1})},bboxoverlap:function(e,n){const r=["x","y"],i=r.length;for(let o=0,a,s,u,f;o=f)return!1;return!0},expandbox:function(e,n){n.x.mine.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,r){const i=e.bbox(),o=n.bbox(),a=1e5,s=r||.5;if(i.x.size+i.y.sizeC||C>S)&&(x+=_e),x>S&&(v=S,S=x,x=v)):S4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");o=!0}}else if(a!==6&&a!==8&&a!==9&&a!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const s=this._3d=!o&&(a===9||a===12)||n&&n[0]&&typeof n[0].z<"u",u=this.points=[];for(let p=0,y=s?3:2;pp+Kt(y.y),0)"u"&&(o=.5),o===0)return new B(r,r,i);if(o===1)return new B(n,r,r);const a=B.getABC(2,n,r,i,o);return new B(n,a.A,i)}static cubicFromPoints(n,r,i,o,a){typeof o>"u"&&(o=.5);const s=B.getABC(3,n,r,i,o);typeof a>"u"&&(a=z.dist(r,s.C));const u=a*(1-o)/o,f=z.dist(n,i),l=(i.x-n.x)/f,c=(i.y-n.y)/f,h=a*l,d=a*c,p=u*l,y=u*c,_={x:r.x-h,y:r.y-d},m={x:r.x+p,y:r.y+y},g=s.A,k={x:g.x+(_.x-g.x)/(1-o),y:g.y+(_.y-g.y)/(1-o)},M={x:g.x+(m.x-g.x)/o,y:g.y+(m.y-g.y)/o},w={x:n.x+(k.x-n.x)/o,y:n.y+(k.y-n.y)/o},x={x:i.x+(M.x-i.x)/(1-o),y:i.y+(M.y-i.y)/(1-o)};return new B(n,w,x,i)}static getUtils(){return z}getUtils(){return B.getUtils()}static get PolyBezier(){return oe}valueOf(){return this.toString()}toString(){return z.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const n=this.points,r=n[0].x,i=n[0].y,o=["M",r,i,this.order===2?"Q":"C"];for(let a=1,s=n.length;a0}length(){return z.length(this.derivative.bind(this))}static getABC(n=2,r,i,o,a=.5){const s=z.projectionratio(a,n),u=1-s,f={x:s*r.x+u*o.x,y:s*r.y+u*o.y},l=z.abcratio(a,n);return{A:{x:i.x+(i.x-f.x)/l,y:i.y+(i.y-f.y)/l},B:i,C:f,S:r,E:o}}getABC(n,r){r=r||this.get(n);let i=this.points[0],o=this.points[this.order];return B.getABC(this.order,i,r,o,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n+1)return this._lut;this._lut=[],n++,this._lut=[];for(let r=0,i,o;r1?1:h,d=this.compute(h),d.t=h,d.d=l,d}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?z.computeWithRatios(n,this.points,this.ratios,this._3d):z.compute(n,this.points,this._3d,this.ratios)}raise(){const n=this.points,r=[n[0]],i=n.length;for(let o=1,a,s;o1;){i=[];for(let s=0,u,f=r.length-1;s=0&&s<=1}),r=r.concat(n[i].sort(z.numberSort))}).bind(this)),n.values=r.sort(z.numberSort).filter(function(i,o){return r.indexOf(i)===o}),n}bbox(){const n=this.extrema(),r={};return this.dims.forEach((function(i){r[i]=z.getminmax(this,i,n[i])}).bind(this)),r}overlaps(n){const r=this.bbox(),i=n.bbox();return z.bboxoverlap(r,i)}offset(n,r){if(typeof r<"u"){const i=this.get(n),o=this.normal(n),a={c:i,n:o,x:i.x+o.x*r,y:i.y+o.y*r};return this._3d&&(a.z=i.z+o.z*r),a}if(this._linear){const i=this.normal(0),o=this.points.map(function(a){const s={x:a.x+n*i.x,y:a.y+n*i.y};return a.z&&i.z&&(s.z=a.z+n*i.z),s});return[new B(o)]}return this.reduce().map(function(i){return i._linear?i.offset(n)[0]:i.scale(n)})}simple(){if(this.order===3){const o=z.angle(this.points[0],this.points[3],this.points[1]),a=z.angle(this.points[0],this.points[3],this.points[2]);if(o>0&&a<0||o<0&&a>0)return!1}const n=this.normal(0),r=this.normal(1);let i=n.x*r.x+n.y*r.y;return this._3d&&(i+=n.z*r.z),Kt(wc(i))(1-u/o)*r+u/o*i);return new B(this.points.map((s,u)=>({x:s.x+n.x*a[u],y:s.y+n.y*a[u]})))}scale(n){const r=this.order;let i=!1;if(typeof n=="function"&&(i=n),i&&r===2)return this.raise().scale(i);const o=this.clockwise,a=this.points;if(this._linear)return this.translate(this.normal(0),i?i(0):n,i?i(1):n);const s=i?i(0):n,u=i?i(1):n,f=[this.offset(0,10),this.offset(1,10)],l=[],c=z.lli4(f[0],f[0].c,f[1],f[1].c);if(!c)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(h){const d=l[h*r]=z.copy(a[h*r]);d.x+=(h?u:s)*f[h].n.x,d.y+=(h?u:s)*f[h].n.y}),i?([0,1].forEach(function(h){if(!(r===2&&h)){var d=a[h+1],p={x:d.x-c.x,y:d.y-c.y},y=i?i((h+1)/r):n;i&&!o&&(y=-y);var _=Qt(p.x*p.x+p.y*p.y);p.x/=_,p.y/=_,l[h+1]={x:d.x+y*p.x,y:d.y+y*p.y}}}),new B(l)):([0,1].forEach(h=>{if(r===2&&h)return;const d=l[h*r],p=this.derivative(h),y={x:d.x+p.x,y:d.y+p.y};l[h+1]=z.lli4(d,y,c,a[h+1])}),new B(l))}outline(n,r,i,o){if(r=r===void 0?n:r,this._linear){const x=this.normal(0),C=this.points[0],S=this.points[this.points.length-1];let v,T,P;i===void 0&&(i=n,o=r),v={x:C.x+x.x*n,y:C.y+x.y*n},P={x:S.x+x.x*i,y:S.y+x.y*i},T={x:(v.x+P.x)/2,y:(v.y+P.y)/2};const E=[v,T,P];v={x:C.x-x.x*r,y:C.y-x.y*r},P={x:S.x-x.x*o,y:S.y-x.y*o},T={x:(v.x+P.x)/2,y:(v.y+P.y)/2};const N=[P,T,v],R=z.makeline(N[2],E[0]),A=z.makeline(E[2],N[0]),I=[R,new B(E),A,new B(N)];return new oe(I)}const a=this.reduce(),s=a.length,u=[];let f=[],l,c=0,h=this.length();const d=typeof i<"u"&&typeof o<"u";function p(x,C,S,v,T){return function(P){const E=v/S,N=(v+T)/S,R=C-x;return z.map(P,0,1,x+E*R,x+N*R)}}a.forEach(function(x){const C=x.length();d?(u.push(x.scale(p(n,i,h,c,C))),f.push(x.scale(p(-r,-o,h,c,C)))):(u.push(x.scale(n)),f.push(x.scale(-r))),c+=C}),f=f.map(function(x){return l=x.points,l[3]?x.points=[l[3],l[2],l[1],l[0]]:x.points=[l[2],l[1],l[0]],x}).reverse();const y=u[0].points[0],_=u[s-1].points[u[s-1].points.length-1],m=f[s-1].points[f[s-1].points.length-1],g=f[0].points[0],k=z.makeline(m,y),M=z.makeline(_,g),w=[k].concat(u).concat([M]).concat(f);return new oe(w)}outlineshapes(n,r,i){r=r||n;const o=this.outline(n,r).curves,a=[];for(let s=1,u=o.length;s1,f.endcap.virtual=s{var u=this.get(s);return z.between(u.x,r,o)&&z.between(u.y,i,a)})}selfintersects(n){const r=this.reduce(),i=r.length-2,o=[];for(let a=0,s,u,f;a0&&(a=a.concat(u))}),a}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,r,i,o){const a=(o-i)/4,s=this.get(i+a),u=this.get(o-a),f=z.dist(n,r),l=z.dist(n,s),c=z.dist(n,u);return Kt(l-f)+Kt(c-f)}_iterate(n,r){let i=0,o=1,a;do{a=0,o=1;let s=this.get(i),u,f,l,c,h=!1,d=!1,p,y=o,_=1;do if(d=h,c=l,y=(i+o)/2,u=this.get(y),f=this.get(o),l=z.getccenter(s,u,f),l.interval={start:i,end:o},h=this._error(l,s,i,o)<=n,p=d&&!h,p||(_=o),h){if(o>=1){if(l.interval.end=_=1,c=l,o>1){let g={x:l.x+l.r*bc(l.e),y:l.y+l.r*xc(l.e)};l.e+=z.angle({x:l.x,y:l.y},g,this.get(1))}break}o=o+(o-i)/2}else o=y;while(!p&&a++<100);if(a>=100)break;c=c||l,r.push(c),i=_}while(o<1);return r}}function gn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=(n instanceof Array?n.length?n:[void 0]:[n]).map(function(u){return{keyAccessor:u,isProp:!(u instanceof Function)}}),a=e.reduce(function(u,f){var l=u,c=f;return o.forEach(function(h,d){var p=h.keyAccessor,y=h.isProp,_;if(y){var m=c,g=m[p],k=Oc(m,[p].map(Nc));_=g,c=k}else _=p(c,d);d+11&&arguments[1]!==void 0?arguments[1]:1;l===o.length?Object.keys(f).forEach(function(c){return f[c]=r(f[c])}):Object.values(f).forEach(function(c){return u(c,l+1)})})(a);var s=a;return i&&(s=[],(function u(f){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];l.length===o.length?s.push({keys:l,vals:f}):Object.entries(f).forEach(function(c){var h=zc(c,2),d=h[0],p=h[1];return u(p,[].concat(Rc(l),[d]))})})(a),n instanceof Array&&n.length===0&&s.length===1&&(s[0].keys=[])),s});function jc(e){for(var n=e.length/6|0,r=new Array(n),i=0;i"u")){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var Lc=`.force-graph-container canvas { display: block; user-select: none; outline: none; -webkit-tap-highlight-color: transparent; } .force-graph-container .clickable { cursor: pointer; } .force-graph-container .grabbable { cursor: move; cursor: grab; cursor: -moz-grab; cursor: -webkit-grab; } .force-graph-container .grabbable:active { cursor: grabbing; cursor: -moz-grabbing; cursor: -webkit-grabbing; } `;Fc(Lc);function yn(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r2&&arguments[2]!==void 0?arguments[2]:{},a=o.nodeFilter,s=a===void 0?function(){return!0}:a,u=o.onLoopError,f=u===void 0?function(p){throw"Invalid DAG structure! Found cycle in node path: ".concat(p.join(" -> "),".")}:u,l={};r.forEach(function(p){return l[n(p)]={data:p,out:[],depth:-1,skip:!s(p)}}),i.forEach(function(p){var y=p.source,_=p.target,m=w(y),g=w(_);if(!l.hasOwnProperty(m))throw"Missing source node with id: ".concat(m);if(!l.hasOwnProperty(g))throw"Missing target node with id: ".concat(g);var k=l[m],M=l[g];k.out.push(M);function w(x){return _n(x)==="object"?n(x):x}});var c=[];d(Object.values(l));var h=Object.assign.apply(Object,[{}].concat(ct(Object.entries(l).filter(function(p){var y=ae(p,2),_=y[1];return!_.skip}).map(function(p){var y=ae(p,2),_=y[0],m=y[1];return le({},_,m.depth)}))));return h;function d(p){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,m=function(){var w=p[g];if(y.indexOf(w)!==-1){var x=[].concat(ct(y.slice(y.indexOf(w))),[w]).map(function(C){return n(C.data)});return c.some(function(C){return C.length===x.length&&C.every(function(S,v){return S===x[v]})})||(c.push(x),f(x)),1}_>w.depth&&(w.depth=_,d(w.out,[].concat(ct(y),[w]),_+(w.skip?0:1)))},g=0,k=p.length;gn.cooldownTicks||new Date-n.startTickTime>n.cooldownTime||n.d3AlphaMin>0&&n.forceLayout.alpha()0){var N=Math.atan2(P.y-T.y,P.x-T.x),R=E*v,A={x:(T.x+P.x)/2+R*Math.cos(N-Math.PI/2),y:(T.y+P.y)/2+R*Math.sin(N-Math.PI/2)};S.__controlPoints=[A.x,A.y]}else{var I=v*70;S.__controlPoints=[P.x,P.y-I,P.x+I,P.y]}}}}function a(){var u=1.6,f=.2,l=q(n.linkDirectionalArrowLength),c=q(n.linkDirectionalArrowRelPos),h=q(n.linkVisibility),d=q(n.linkDirectionalArrowColor||n.linkColor),p=q(n.nodeVal),y=n.ctx;y.save(),n.graphData.links.filter(h).forEach(function(_){var m=l(_);if(!(!m||m<0)){var g=_.source,k=_.target;if(!(!g||!k||!g.hasOwnProperty("x")||!k.hasOwnProperty("x"))){var M=Math.sqrt(Math.max(0,p(g)||1))*n.nodeRelSize,w=Math.sqrt(Math.max(0,p(k)||1))*n.nodeRelSize,x=Math.min(1,Math.max(0,c(_))),C=d(_)||"rgba(0,0,0,0.28)",S=m/u/2,v=_.__controlPoints&&Sr(B,[g.x,g.y].concat(ct(_.__controlPoints),[k.x,k.y])),T=v?function(O){return v.get(O)}:function(O){return{x:g.x+(k.x-g.x)*O||0,y:g.y+(k.y-g.y)*O||0}},P=v?v.length():Math.sqrt(Math.pow(k.x-g.x,2)+Math.pow(k.y-g.y,2)),E=M+m+(P-M-w-m)*x,N=T(E/P),R=T((E-m)/P),A=T((E-m*(1-f))/P),I=Math.atan2(N.y-R.y,N.x-R.x)-Math.PI/2;y.beginPath(),y.moveTo(N.x,N.y),y.lineTo(R.x+S*Math.cos(I),R.y+S*Math.sin(I)),y.lineTo(A.x,A.y),y.lineTo(R.x-S*Math.cos(I),R.y-S*Math.sin(I)),y.fillStyle=C,y.fill()}}}),y.restore()}function s(){var u=q(n.linkDirectionalParticles),f=q(n.linkDirectionalParticleSpeed),l=q(n.linkDirectionalParticleOffset),c=q(n.linkDirectionalParticleWidth),h=q(n.linkVisibility),d=q(n.linkDirectionalParticleColor||n.linkColor),p=n.ctx;p.save(),n.graphData.links.filter(h).forEach(function(y){var _=u(y);if(!(!y.hasOwnProperty("__photons")||!y.__photons.length)){var m=y.source,g=y.target;if(!(!m||!g||!m.hasOwnProperty("x")||!g.hasOwnProperty("x"))){var k=f(y),M=Math.abs(l(y)),w=y.__photons||[],x=Math.max(0,c(y)/2)/Math.sqrt(n.globalScale),C=d(y)||"rgba(0,0,0,0.28)";p.fillStyle=C;var S=y.__controlPoints?Sr(B,[m.x,m.y].concat(ct(y.__controlPoints),[g.x,g.y])):null,v=0,T=!1;w.forEach(function(P){var E=!!P.__singleHop;if(P.hasOwnProperty("__progressRatio")||(P.__progressRatio=E?k<0?1:0:(v+M)/_),!E&&v++,P.__progressRatio+=k,P.__progressRatio>=1||P.__progressRatio<0)if(!E)P.__progressRatio=P.__progressRatio%1,P.__progressRatio<0&&P.__progressRatio++;else{T=!0;return}var N=P.__progressRatio,R=S?S.get(N):{x:m.x+(g.x-m.x)*N||0,y:m.y+(g.y-m.y)*N||0};n.linkDirectionalParticleCanvasObject?n.linkDirectionalParticleCanvasObject(R.x,R.y,y,p,n.globalScale):(p.beginPath(),p.arc(R.x,R.y,x,0,2*Math.PI,!1),p.fill())}),T&&(y.__photons=y.__photons.filter(function(P){return!P.__singleHop||P.__progressRatio<=1&&P.__progressRatio>=0}))}}}),p.restore()}},emitParticle:function(n,r){return r&&(!r.__photons&&(r.__photons=[]),r.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:pc().force("link",ac()).force("charge",gc()).force("center",uf()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(n,r){r.ctx=n},update:function(n,r){n.engineRunning=!1,n.onUpdate(),n.nodeAutoColorBy!==null&&Tr(n.graphData.nodes,q(n.nodeAutoColorBy),n.nodeColor),n.linkAutoColorBy!==null&&Tr(n.graphData.links,q(n.linkAutoColorBy),n.linkColor),n.graphData.links.forEach(function(d){d.source=d[n.linkSource],d.target=d[n.linkTarget]}),n.forceLayout.stop().alpha(1).nodes(n.graphData.nodes);var i=n.forceLayout.force("link");i&&i.id(function(d){return d[n.nodeId]}).links(n.graphData.links);var o=n.dagMode&&Zc(n.graphData,function(d){return d[n.nodeId]},{nodeFilter:n.dagNodeFilter,onLoopError:n.onDagError||void 0}),a=Math.max.apply(Math,ct(Object.values(o||[]))),s=n.dagLevelDistance||n.graphData.nodes.length/(a||1)*Kc*(["radialin","radialout"].indexOf(n.dagMode)!==-1?.7:1);if(["lr","rl","td","bu"].includes(r.dagMode)){var u=["lr","rl"].includes(r.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(d){return delete d[u]})}if(["lr","rl","td","bu"].includes(n.dagMode)){var f=["rl","bu"].includes(n.dagMode),l=function(p){return(o[p[n.nodeId]]-a/2)*s*(f?-1:1)},c=["lr","rl"].includes(n.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(d){return d[c]=l(d)})}n.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(n.dagMode)!==-1?yc(function(d){var p=o[d[n.nodeId]]||-1;return(n.dagMode==="radialin"?a-p:p)*s}).strength(function(d){return n.dagNodeFilter(d)?1:0}):null);for(var h=0;h0&&n.forceLayout.alpha()1?u-1:0),l=1;l1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,o=arguments.length,a=new Array(o>3?o-3:0),s=3;s1&&arguments[1]!==void 0?arguments[1]:function(){return!0},i=q(n.nodeVal),o=function(u){return Math.sqrt(Math.max(0,i(u)||1))*n.nodeRelSize},a=n.graphData.nodes.filter(r).map(function(s){return{x:s.x,y:s.y,r:o(s)}});return a.length?{x:[$n(a,function(s){return s.x-s.r}),Fn(a,function(s){return s.x+s.r})],y:[$n(a,function(s){return s.y-s.r}),Fn(a,function(s){return s.y+s.r})]}:null},pauseAnimation:function(n){return n.animationFrameRequestId&&(cancelAnimationFrame(n.animationFrameRequestId),n.animationFrameRequestId=null),this},resumeAnimation:function(n){return n.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},rh),stateInit:function(){return{lastSetZoom:1,zoom:vu(),forceGraph:new Ne,shadowGraph:new Ne().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new $l,tweenGroup:new ui}},init:function(n,r){var i=this;n.innerHTML="";var o=document.createElement("div");o.classList.add("force-graph-container"),o.style.position="relative",n.appendChild(o),r.canvas=document.createElement("canvas"),r.backgroundColor&&(r.canvas.style.background=r.backgroundColor),o.appendChild(r.canvas),r.shadowCanvas=document.createElement("canvas");var a=r.canvas.getContext("2d"),s=r.shadowCanvas.getContext("2d",{willReadFrequently:!0}),u={x:-1e12,y:-1e12},f=function(){var h=null,d=window.devicePixelRatio,p=u.x>0&&u.y>0?s.getImageData(u.x*d,u.y*d,1,1):null;return p&&(h=r.colorTracker.lookup(p.data)),h};ft(r.canvas).call(ts().subject(function(){if(!r.enableNodeDrag)return null;var c=f();return c&&c.type==="Node"?c.d:null}).on("start",function(c){var h=c.subject;h.__initialDragPos={x:h.x,y:h.y,fx:h.fx,fy:h.fy},c.active||(h.fx=h.x,h.fy=h.y),r.canvas.classList.add("grabbable")}).on("drag",function(c){var h=c.subject,d=h.__initialDragPos,p=c,y=gt(r.canvas).k,_={x:d.x+(p.x-d.x)/y-h.x,y:d.y+(p.y-d.y)/y-h.y};["x","y"].forEach(function(m){return h["f".concat(m)]=h[m]=d[m]+(p[m]-d[m])/y}),!(!h.__dragged&&th>=Math.sqrt(Wi(["x","y"].map(function(m){return Math.pow(c[m]-d[m],2)}))))&&(r.forceGraph.d3AlphaTarget(.3).resetCountdown(),r.isPointerDragging=!0,h.__dragged=!0,r.onNodeDrag(h,_))}).on("end",function(c){var h=c.subject,d=h.__initialDragPos,p={x:h.x-d.x,y:h.y-d.y};d.fx===void 0&&(h.fx=void 0),d.fy===void 0&&(h.fy=void 0),delete h.__initialDragPos,r.forceGraph.d3AlphaTarget()&&r.forceGraph.d3AlphaTarget(0).resetCountdown(),r.canvas.classList.remove("grabbable"),r.isPointerDragging=!1,h.__dragged&&(delete h.__dragged,r.onNodeDragEnd(h,p))})),r.zoom(r.zoom.__baseElem=ft(r.canvas)),r.zoom.__baseElem.on("dblclick.zoom",null),r.zoom.filter(function(c){return!c.button&&r.enableZoomPanInteraction&&(c.type!=="wheel"||q(r.enableZoomInteraction)(c))&&(c.type==="wheel"||q(r.enablePanInteraction)(c))}).on("zoom",function(c){var h=c.transform;[a,s].forEach(function(d){$i(d),d.translate(h.x,h.y),d.scale(h.k,h.k)}),r.isPointerDragging=!0,r.onZoom&&r.onZoom(Ft(Ft({},h),i.centerAt())),r.needsRedraw=!0}).on("end",function(c){r.isPointerDragging=!1,r.onZoomEnd&&r.onZoomEnd(Ft(Ft({},c.transform),i.centerAt()))}),Ze(r),r.forceGraph.onNeedsRedraw(function(){return r.needsRedraw=!0}).onFinishUpdate(function(){gt(r.canvas).k===r.lastSetZoom&&r.graphData.nodes.length&&(r.zoom.scaleTo(r.zoom.__baseElem,r.lastSetZoom=Jc/Math.cbrt(r.graphData.nodes.length)),r.needsRedraw=!0)}),r.tooltip=new sf(o),["pointermove","pointerdown"].forEach(function(c){return o.addEventListener(c,function(h){c==="pointerdown"&&(r.isPointerPressed=!0,r.pointerDownEvent=h),!r.isPointerDragging&&h.type==="pointermove"&&r.onBackgroundClick&&(h.pressure>0||r.isPointerPressed)&&(h.pointerType==="mouse"||h.movementX===void 0||[h.movementX,h.movementY].some(function(y){return Math.abs(y)>1}))&&(r.isPointerDragging=!0);var d=p(o);u.x=h.pageX-d.left,u.y=h.pageY-d.top;function p(y){var _=y.getBoundingClientRect(),m=window.pageXOffset||document.documentElement.scrollLeft,g=window.pageYOffset||document.documentElement.scrollTop;return{top:_.top+g,left:_.left+m}}},{passive:!0})}),o.addEventListener("pointerup",function(c){if(r.isPointerPressed){if(r.isPointerPressed=!1,r.isPointerDragging){r.isPointerDragging=!1;return}var h=[c,r.pointerDownEvent];requestAnimationFrame(function(){if(c.button===0)if(r.hoverObj){var d=r["on".concat(r.hoverObj.type,"Click")];d&&d.apply(void 0,[r.hoverObj.d].concat(h))}else r.onBackgroundClick&&r.onBackgroundClick.apply(r,h);if(c.button===2)if(r.hoverObj){var p=r["on".concat(r.hoverObj.type,"RightClick")];p&&p.apply(void 0,[r.hoverObj.d].concat(h))}else r.onBackgroundRightClick&&r.onBackgroundRightClick.apply(r,h)})}},{passive:!0}),o.addEventListener("contextmenu",function(c){return!r.onBackgroundRightClick&&!r.onNodeRightClick&&!r.onLinkRightClick?!0:(c.preventDefault(),!1)}),r.forceGraph(a),r.shadowGraph(s);var l=Wu(function(){Or(s,r.width,r.height),r.shadowGraph.linkWidth(function(h){return q(r.linkWidth)(h)+r.linkHoverPrecision});var c=gt(r.canvas);r.shadowGraph.globalScale(c.k).tickFrame()},Qc);r.flushShadowCanvas=l.flush,(this._animationCycle=function c(){var h=!r.autoPauseRedraw||!!r.needsRedraw||r.forceGraph.isEngineRunning()||r.graphData.links.some(function(M){return M.__photons&&M.__photons.length});if(r.needsRedraw=!1,r.enablePointerInteraction){var d=r.isPointerDragging?null:f();if(d!==r.hoverObj){var p=r.hoverObj,y=p?p.type:null,_=d?d.type:null;if(y&&y!==_){var m=r["on".concat(y,"Hover")];m&&m(null,p.d)}if(_){var g=r["on".concat(_,"Hover")];g&&g(d.d,y===_?p.d:null)}r.tooltip.content(d&&q(r["".concat(d.type.toLowerCase(),"Label")])(d.d)||null),r.canvas.classList[(d&&r["on".concat(_,"Click")]||!d&&r.onBackgroundClick)&&q(r.showPointerCursor)(d==null?void 0:d.d)?"add":"remove"]("clickable"),r.hoverObj=d}h&&l()}if(h){Or(a,r.width,r.height);var k=gt(r.canvas).k;r.onRenderFramePre&&r.onRenderFramePre(a,k),r.forceGraph.globalScale(k).tickFrame(),r.onRenderFramePost&&r.onRenderFramePost(a,k)}r.tweenGroup.update(),r.animationFrameRequestId=requestAnimationFrame(c)})()},update:function(n){}}),Ke={exports:{}},Qe,Er;function oh(){if(Er)return Qe;Er=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qe=e,Qe}var Je,zr;function ah(){if(zr)return Je;zr=1;var e=oh();function n(){}function r(){}return r.resetWarningCache=n,Je=function(){function i(s,u,f,l,c,h){if(h!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}i.isRequired=i;function o(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:n};return a.PropTypes=a,a},Je}var Rr;function sh(){return Rr||(Rr=1,Ke.exports=ah()()),Ke.exports}var uh=sh();const b=qi(uh),He={width:b.number,height:b.number,graphData:b.shape({nodes:b.arrayOf(b.object).isRequired,links:b.arrayOf(b.object).isRequired}),backgroundColor:b.string,nodeRelSize:b.number,nodeId:b.string,nodeLabel:b.oneOfType([b.string,b.func]),nodeVal:b.oneOfType([b.number,b.string,b.func]),nodeVisibility:b.oneOfType([b.bool,b.string,b.func]),nodeColor:b.oneOfType([b.string,b.func]),nodeAutoColorBy:b.oneOfType([b.string,b.func]),onNodeHover:b.func,onNodeClick:b.func,linkSource:b.string,linkTarget:b.string,linkLabel:b.oneOfType([b.string,b.func]),linkVisibility:b.oneOfType([b.bool,b.string,b.func]),linkColor:b.oneOfType([b.string,b.func]),linkAutoColorBy:b.oneOfType([b.string,b.func]),linkWidth:b.oneOfType([b.number,b.string,b.func]),linkCurvature:b.oneOfType([b.number,b.string,b.func]),linkDirectionalArrowLength:b.oneOfType([b.number,b.string,b.func]),linkDirectionalArrowColor:b.oneOfType([b.string,b.func]),linkDirectionalArrowRelPos:b.oneOfType([b.number,b.string,b.func]),linkDirectionalParticles:b.oneOfType([b.number,b.string,b.func]),linkDirectionalParticleSpeed:b.oneOfType([b.number,b.string,b.func]),linkDirectionalParticleOffset:b.oneOfType([b.number,b.string,b.func]),linkDirectionalParticleWidth:b.oneOfType([b.number,b.string,b.func]),linkDirectionalParticleColor:b.oneOfType([b.string,b.func]),onLinkHover:b.func,onLinkClick:b.func,dagMode:b.oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:b.number,dagNodeFilter:b.func,onDagError:b.func,d3AlphaMin:b.number,d3AlphaDecay:b.number,d3VelocityDecay:b.number,warmupTicks:b.number,cooldownTicks:b.number,cooldownTime:b.number,onEngineTick:b.func,onEngineStop:b.func,getGraphBbox:b.func},Fi={zoomToFit:b.func,onNodeRightClick:b.func,onNodeDrag:b.func,onNodeDragEnd:b.func,onLinkRightClick:b.func,linkHoverPrecision:b.number,onBackgroundClick:b.func,onBackgroundRightClick:b.func,showPointerCursor:b.oneOfType([b.bool,b.func]),enablePointerInteraction:b.bool,enableNodeDrag:b.bool},In={showNavInfo:b.bool,nodeOpacity:b.number,nodeResolution:b.number,nodeThreeObject:b.oneOfType([b.object,b.string,b.func]),nodeThreeObjectExtend:b.oneOfType([b.bool,b.string,b.func]),nodePositionUpdate:b.func,linkOpacity:b.number,linkResolution:b.number,linkCurveRotation:b.oneOfType([b.number,b.string,b.func]),linkMaterial:b.oneOfType([b.object,b.string,b.func]),linkThreeObject:b.oneOfType([b.object,b.string,b.func]),linkThreeObjectExtend:b.oneOfType([b.bool,b.string,b.func]),linkPositionUpdate:b.func,linkDirectionalArrowResolution:b.number,linkDirectionalParticleResolution:b.number,linkDirectionalParticleThreeObject:b.oneOfType([b.object,b.string,b.func]),forceEngine:b.oneOf(["d3","ngraph"]),ngraphPhysics:b.object,numDimensions:b.oneOf([1,2,3])},lh=Object.assign({},He,Fi,{linkLineDash:b.oneOfType([b.arrayOf(b.number),b.string,b.func]),nodeCanvasObjectMode:b.oneOfType([b.string,b.func]),nodeCanvasObject:b.func,nodePointerAreaPaint:b.func,linkCanvasObjectMode:b.oneOfType([b.string,b.func]),linkCanvasObject:b.func,linkPointerAreaPaint:b.func,linkDirectionalParticleCanvasObject:b.func,autoPauseRedraw:b.bool,minZoom:b.number,maxZoom:b.number,enableZoomInteraction:b.oneOfType([b.bool,b.func]),enablePanInteraction:b.oneOfType([b.bool,b.func]),onZoom:b.func,onZoomEnd:b.func,onRenderFramePre:b.func,onRenderFramePost:b.func});Object.assign({},He,Fi,In,{enableNavigationControls:b.bool,controlType:b.oneOf(["trackball","orbit","fly"]),rendererConfig:b.object,extraRenderers:b.arrayOf(b.shape({render:b.func.isRequired}))});Object.assign({},He,In,{nodeDesc:b.oneOfType([b.string,b.func]),linkDesc:b.oneOfType([b.string,b.func])});Object.assign({},He,In,{markerAttrs:b.object,yOffset:b.number,glScale:b.number});const Nn=co(ih,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});Nn.displayName="ForceGraph2D";Nn.propTypes=lh;function vt(e){return function(){return e}}function Ir(e){return(e()-.5)*1e-6}function fh(e){return e.x+e.vx}function ch(e){return e.y+e.vy}function hh(e){var n,r,i,o=1,a=1;typeof e!="function"&&(e=vt(e==null?1:+e));function s(){for(var l,c=n.length,h,d,p,y,_,m,g=0;gd.index){var E=p-v.x-v.vx,N=y-v.y-v.vy,R=E*E+N*N;Rp+P||Cy+P||Sl.r&&(l.r=l[c].r)}function f(){if(n){var l,c=n.length,h;for(r=new Array(c),l=0;l{if(!a.current)return;const v=new ResizeObserver(T=>{for(let P of T)P.contentRect.width>0&&P.contentRect.height>0&&f({width:Math.floor(P.contentRect.width),height:Math.floor(P.contentRect.height)})});return v.observe(a.current),()=>v.disconnect()},[]);const l=G.useRef(new Map),c=G.useMemo(()=>{const v=l.current,T=new Set,P=e.nodes.map(R=>{T.add(R.id);let A=v.get(R.id);return A?(A.content!==R.content||A.category!==R.category)&&(A.content=R.content,A.category=R.category,A.__baseTextWidth=void 0):(A={...R},v.set(R.id,A)),A});for(const R of Array.from(v.keys()))T.has(R)||v.delete(R);const E=new Map(e.nodes.map(R=>[R.id,R.category])),N=e.edges.map(R=>({source:R.source,target:R.target,weight:R.weight||0,__sid:R.source,__tid:R.target,__restColor:mh[E.get(R.source)??""]??vh}));return{nodes:P,links:N}},[e]),h=G.useMemo(()=>{const v={};return e.edges.forEach(T=>{v[T.source]=(v[T.source]||0)+1,v[T.target]=(v[T.target]||0)+1}),v},[e]),d=v=>({identity:-240,knowledge:240,rules:-240,events:240})[v]||0,p=v=>({identity:-240,knowledge:-240,rules:240,events:240})[v]||0,y=G.useMemo(()=>`${e.nodes.map(v=>v.id).sort().join(",")}#${e.edges.length}`,[e]);G.useEffect(()=>{const v=s.current;if(!v)return;v.d3Force("center",null),v.d3Force("x",dh().x(E=>d(E.category)).strength(.07)),v.d3Force("y",ph().y(E=>p(E.category)).strength(.07));const T=v.d3Force("charge");T&&T.strength(-380),v.d3Force("collide",hh().radius(28).iterations(2));const P=v.d3Force("link");P&&P.distance(85),v.d3ReheatSimulation()},[y]);const _=i||n,m=()=>{s.current&&s.current.zoomToFit(400,40)},g=G.useMemo(()=>{if(!_)return new Set;const v=new Set;return e.edges.forEach(T=>{T.source===_&&v.add(T.target),T.target===_&&v.add(T.source)}),v},[_,e]),k=G.useCallback(v=>_?v.__sid===_||v.__tid===_?yh:_h:v.__restColor,[_]),M=G.useCallback(v=>_&&(v.__sid===_||v.__tid===_)?2.5:1.4,[_]),w=G.useCallback(v=>_&&(v.__sid===_||v.__tid===_)?4:0,[_]),x=G.useCallback(v=>{o(v?v.id:null),a.current&&(a.current.style.cursor=v?"pointer":"default")},[]),C=G.useCallback((v,T,P,E)=>{const N=6+Math.min(h[v.id]||0,15)*.8,R=Math.max(N+5,14/Math.max(E||1,.01));P.fillStyle=T,P.beginPath(),P.arc(v.x??0,v.y??0,R,0,2*Math.PI,!1),P.fill()},[h]),S=G.useCallback((v,T,P)=>{const E=v.x??0,N=v.y??0,R=6+Math.min(h[v.id]||0,15)*.8,A=Nr[v.category]||"#64748b",I=v.id===i,O=v.id===n,D=_&&v.id!==_&&!g.has(v.id),$=D?"#1e293b":A;if(D||(T.beginPath(),T.arc(E,N,R*1.9,0,2*Math.PI,!1),T.fillStyle=bh[v.category]||"rgba(100, 116, 139, 0.14)",T.fill()),(I||O)&&(T.shadowColor=A,T.shadowBlur=15),T.beginPath(),T.arc(E,N,R,0,2*Math.PI,!1),T.fillStyle=$,T.fill(),T.shadowBlur=0,(I||O)&&(T.beginPath(),T.arc(E,N,R+2.5,0,2*Math.PI,!1),T.strokeStyle=O?"#ffffff":"rgba(255, 255, 255, 0.7)",T.lineWidth=1.5,T.stroke()),I||O||_&&g.has(v.id)){const L=v.content.length>35?v.content.slice(0,34)+"…":v.content;if(v.__baseTextWidth===void 0){const Gt=T.font;T.font='500 10px "Space Grotesk", sans-serif',v.__baseTextWidth=T.measureText(L).width,T.font=Gt}const H=(I||O?10.5:9.5)/Math.max(.5,P);T.font=`${I||O?"bold":"500"} ${H}px "Space Grotesk", sans-serif`;const Z=v.__baseTextWidth*(H/10),V=4.5/Math.max(.5,P),et=E-Z/2-V,at=N+R+6/Math.max(.5,P),nt=Z+V*2,st=H+V*1.6;T.fillStyle=D?"rgba(10, 15, 25, 0.45)":"rgba(8, 12, 20, 0.88)",T.fillRect(et,at,nt,st),T.strokeStyle=I||O?"rgba(255, 255, 255, 0.2)":"rgba(255, 255, 255, 0.08)",T.lineWidth=.6/Math.max(.5,P),T.strokeRect(et,at,nt,st),T.textAlign="center",T.textBaseline="top",T.fillStyle=D?"#475569":I||O?"#ffffff":"#cbd5e1",T.fillText(L,E,N+R+7/Math.max(.5,P))}},[h,i,n,_,g]);return Rt.jsxs("div",{className:"absolute inset-0",ref:a,style:{background:"radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, #030712 100%)"},children:[Rt.jsx(Nn,{ref:s,width:u.width,height:u.height,graphData:c,backgroundColor:"rgba(0,0,0,0)",cooldownTicks:120,nodePointerAreaPaint:C,onNodeClick:v=>r(v.id),onBackgroundClick:()=>r(null),onNodeHover:x,linkColor:k,linkWidth:M,linkDirectionalParticles:w,linkDirectionalParticleWidth:2.2,linkDirectionalParticleSpeed:.006,nodeCanvasObject:S}),Rt.jsxs("button",{onClick:m,title:"Zentrieren",className:"absolute right-3 top-3 z-10 flex items-center gap-1.5 rounded-lg border border-border/60 bg-background/50 px-2.5 py-1.5 text-[11px] text-muted-foreground hover:text-foreground backdrop-blur-sm transition-colors cursor-pointer",children:[Rt.jsx(Gi,{className:"h-3.5 w-3.5"})," Zentrieren"]}),Rt.jsx("div",{className:"absolute left-3 bottom-3 flex flex-wrap gap-2 rounded-lg bg-background/40 px-2.5 py-1.5 backdrop-blur-sm",children:Object.entries(gh).map(([v,T])=>Rt.jsxs("span",{className:"flex items-center gap-1 text-[10px] text-muted-foreground",children:[Rt.jsx("span",{className:"h-2 w-2 rounded-full",style:{background:Nr[v]}}),T]},v))})]})}export{wh as GraphView};