PageSourceSearch

https://hackers.pub/_build/assets/graph-Dg88HIN-.js

js hackers.pub collected 2026-09-25 14:28:45 UTC 67,850 bytes, 13 lines download raw bytes

1import{i as me,k as Yn,t as qn,o as ve,I as _e,D as xe,p as Ut,l as pt,c as yt,v as we}from"./routing-DovmCt9U.js";import{l as be,u as Ne}from"./index-BTflWUxh.js";import{c as $e,r as Ae}from"./relayPreload-CNse-qZy.js";import{u as ke}from"./index-DWQMBNPz.js";import{T as Me}from"./Title-CGqwf2uJ.js";import{A as vn}from"./components-BcNRuaNF.js";import"./index-C-O8dVjx.js";import"./index-CnM74hkh.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"0.2.0+ab862c4f062287bff017225cca17f40dc8eb2888"};var n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="437cf457-ee86-491e-9eb8-b9486ab0f96b",t._sentryDebugIdIdentifier="sentry-dbid-437cf457-ee86-491e-9eb8-b9486ab0f96b")}catch{}})();const Ln=(function(){var t=[{alias:null,args:null,concreteType:"InvitationTreeNode",kind:"LinkedField",name:"invitationTree",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"handle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"avatarUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"inviterId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hidden",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"graphQuery",selections:t,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"graphQuery",selections:t},params:{cacheID:"f6ca0db567fbc3e46aad2e340aa01d9a",id:null,metadata:{},name:"graphQuery",operationKind:"query",text:`query graphQuery {
2  invitationTree {
3    id
4    username
5    name
6    handle
7    avatarUrl
8    inviterId
9    hidden
10  }
11}
12`}}})();Ln.hash="ae1ad84dd61b3278839602948c38ba1d";var Ee={value:()=>{}};function kt(){for(var t=0,n=arguments.length,e={},r;t<n;++t){if(!(r=arguments[t]+"")||r in e||/[\s.]/.test(r))throw new Error("illegal type: "+r);e[r]=[]}return new Dt(e)}function Dt(t){this._=t}function Te(t,n){return t.trim().split(/^|\s+/).map(function(e){var r="",i=e.indexOf(".");if(i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:r}})}Dt.prototype=kt.prototype={constructor:Dt,on:function(t,n){var e=this._,r=Te(t+"",e),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(t=r[o]).type)&&(i=Se(e[i],t.name)))return i;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++o<a;)if(i=(t=r[o]).type)e[i]=_n(e[i],t.name,n);else if(n==null)for(i in e)e[i]=_n(e[i],t.name,null);return this},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Dt(t)},call:function(t,n){if((i=arguments.length-2)>0)for(var e=new Array(i),r=0,i,o;r<i;++r)e[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(n,e)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};function Se(t,n){for(var e=0,r=t.length,i;e<r;++e)if((i=t[e]).name===n)return i.value}function _n(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Ee,t=t.slice(0,r).concat(t.slice(r+1));break}return e!=null&&t.push({name:n,value:e}),t}var jt="http://www.w3.org/1999/xhtml";const xn={svg:"http://www.w3.org/2000/svg",xhtml:jt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vt(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),xn.hasOwnProperty(n)?{space:xn[n],local:t}:t}function ze(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===jt&&n.documentElement.namespaceURI===jt?n.createElement(t):n.createElementNS(e,t)}}function Ce(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function On(t){var n=Vt(t);return(n.local?Ce:ze)(n)}function Ie(){}function sn(t){return t==null?Ie:function(){return this.querySelector(t)}}function De(t){typeof t!="function"&&(t=sn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,u=r[i]=new Array(a),l,s,c=0;c<a;++c)(l=o[c])&&(s=t.call(l,l.__data__,c,o))&&("__data__"in l&&(s.__data__=l.__data__),u[c]=s);return new V(r,this._parents)}function Re(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Fe(){return[]}function Vn(t){return t==null?Fe:function(){return this.querySelectorAll(t)}}function Pe(t){return function(){return Re(t.apply(this,arguments))}}function Xe(t){typeof t=="function"?t=Pe(t):t=Vn(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a=n[o],u=a.length,l,s=0;s<u;++s)(l=a[s])&&(r.push(t.call(l,l.__data__,s,a)),i.push(l));return new V(r,i)}function Bn(t){return function(){return this.matches(t)}}function Kn(t){return function(n){return n.matches(t)}}
vendor: 29,665 bytes, line 12
12var He=Array.prototype.find;function Ye(t){return function(){return He.call(this.children,t)}}function qe(){return this.firstElementChild}function Le(t){return this.select(t==null?qe:Ye(typeof t=="function"?t:Kn(t)))}var Oe=Array.prototype.filter;function Ve(){return Array.from(this.children)}function Be(t){return function(){return Oe.call(this.children,t)}}function Ke(t){return this.selectAll(t==null?Ve:Be(typeof t=="function"?t:Kn(t)))}function Qe(t){typeof t!="function"&&(t=Bn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,u=r[i]=[],l,s=0;s<a;++s)(l=o[s])&&t.call(l,l.__data__,s,o)&&u.push(l);return new V(r,this._parents)}function Qn(t){return new Array(t.length)}function Ue(){return new V(this._enter||this._groups.map(Qn),this._parents)}function Xt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Xt.prototype={constructor:Xt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Ge(t){return function(){return t}}function We(t,n,e,r,i,o){for(var a=0,u,l=n.length,s=o.length;a<s;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new Xt(t,o[a]);for(;a<l;++a)(u=n[a])&&(i[a]=u)}function Ze(t,n,e,r,i,o,a){var u,l,s=new Map,c=n.length,m=o.length,h=new Array(c),g;for(u=0;u<c;++u)(l=n[u])&&(h[u]=g=a.call(l,l.__data__,u,n)+"",s.has(g)?i[u]=l:s.set(g,l));for(u=0;u<m;++u)g=a.call(t,o[u],u,o)+"",(l=s.get(g))?(r[u]=l,l.__data__=o[u],s.delete(g)):e[u]=new Xt(t,o[u]);for(u=0;u<c;++u)(l=n[u])&&s.get(h[u])===l&&(i[u]=l)}function Je(t){return t.__data__}function je(t,n){if(!arguments.length)return Array.from(this,Je);var e=n?Ze:We,r=this._parents,i=this._groups;typeof t!="function"&&(t=Ge(t));for(var o=i.length,a=new Array(o),u=new Array(o),l=new Array(o),s=0;s<o;++s){var c=r[s],m=i[s],h=m.length,g=tr(t.call(c,c&&c.__data__,s,r)),x=g.length,y=u[s]=new Array(x),v=a[s]=new Array(x),p=l[s]=new Array(h);e(c,m,y,v,p,g,n);for(var w=0,A=0,f,b;w<x;++w)if(f=y[w]){for(w>=A&&(A=w+1);!(b=v[A])&&++A<x;);f._next=b||null}}return a=new V(a,r),a._enter=u,a._exit=l,a}function tr(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function nr(){return new V(this._exit||this._groups.map(Qn),this._parents)}function er(t,n,e){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),n!=null&&(i=n(i),i&&(i=i.selection())),e==null?o.remove():e(o),r&&i?r.merge(i).order():i}function rr(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,a=Math.min(i,o),u=new Array(i),l=0;l<a;++l)for(var s=e[l],c=r[l],m=s.length,h=u[l]=new Array(m),g,x=0;x<m;++x)(g=s[x]||c[x])&&(h[x]=g);for(;l<i;++l)u[l]=e[l];return new V(u,this._parents)}function ir(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r=t[n],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function or(t){t||(t=ar);function n(m,h){return m&&h?t(m.__data__,h.__data__):!m-!h}for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a=e[o],u=a.length,l=i[o]=new Array(u),s,c=0;c<u;++c)(s=a[c])&&(l[c]=s);l.sort(n)}return new V(i,this._parents).order()}function ar(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function ur(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function sr(){return Array.from(this)}function lr(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function cr(){let t=0;for(const n of this)++t;return t}function fr(){return!this.node()}function hr(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i=n[e],o=0,a=i.length,u;o<a;++o)(u=i[o])&&t.call(u,u.__data__,o,i);return this}function gr(t){return function(){this.removeAttribute(t)}}function dr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pr(t,n){return function(){this.setAttribute(t,n)}}function yr(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function mr(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function vr(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function _r(t,n){var e=Vt(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?dr:gr:typeof n=="function"?e.local?vr:mr:e.local?yr:pr)(e,n))}function Un(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function xr(t){return function(){this.style.removeProperty(t)}}function wr(t,n,e){return function(){this.style.setProperty(t,n,e)}}function br(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Nr(t,n,e){return arguments.length>1?this.each((n==null?xr:typeof n=="function"?br:wr)(t,n,e??"")):gt(this.node(),t)}function gt(t,n){return t.style.getPropertyValue(n)||Un(t).getComputedStyle(t,null).getPropertyValue(n)}function $r(t){return function(){delete this[t]}}function Ar(t,n){return function(){this[t]=n}}function kr(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function Mr(t,n){return arguments.length>1?this.each((n==null?$r:typeof n=="function"?kr:Ar)(t,n)):this.node()[t]}function Gn(t){return t.trim().split(/^|\s+/)}function ln(t){return t.classList||new Wn(t)}function Wn(t){this._node=t,this._names=Gn(t.getAttribute("class")||"")}Wn.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Zn(t,n){for(var e=ln(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Jn(t,n){for(var e=ln(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Er(t){return function(){Zn(this,t)}}function Tr(t){return function(){Jn(this,t)}}function Sr(t,n){return function(){(n.apply(this,arguments)?Zn:Jn)(this,t)}}function zr(t,n){var e=Gn(t+"");if(arguments.length<2){for(var r=ln(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?Sr:n?Er:Tr)(e,n))}function Cr(){this.textContent=""}function Ir(t){return function(){this.textContent=t}}function Dr(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function Rr(t){return arguments.length?this.each(t==null?Cr:(typeof t=="function"?Dr:Ir)(t)):this.node().textContent}function Fr(){this.innerHTML=""}function Pr(t){return function(){this.innerHTML=t}}function Xr(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Hr(t){return arguments.length?this.each(t==null?Fr:(typeof t=="function"?Xr:Pr)(t)):this.node().innerHTML}function Yr(){this.nextSibling&&this.parentNode.appendChild(this)}function qr(){return this.each(Yr)}function Lr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Or(){return this.each(Lr)}function Vr(t){var n=typeof t=="function"?t:On(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Br(){return null}function Kr(t,n){var e=typeof t=="function"?t:On(t),r=n==null?Br:typeof n=="function"?n:sn(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function Qr(){var t=this.parentNode;t&&t.removeChild(this)}function Ur(){return this.each(Qr)}function Gr(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Wr(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Zr(t){return this.select(t?Wr:Gr)}function Jr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function jr(t){return function(n){t.call(this,n,this.__data__)}}function ti(t){return t.trim().split(/^|\s+/).map(function(n){var e="",r=n.indexOf(".");return r>=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function ni(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e<i;++e)o=n[e],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):n[++r]=o;++r?n.length=r:delete this.__on}}}function ei(t,n,e){return function(){var r=this.__on,i,o=jr(n);if(r){for(var a=0,u=r.length;a<u;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=e),i.value=n;return}}this.addEventListener(t.type,o,e),i={type:t.type,name:t.name,value:n,listener:o,options:e},r?r.push(i):this.__on=[i]}}function ri(t,n,e){var r=ti(t+""),i,o=r.length,a;if(arguments.length<2){var u=this.node().__on;if(u){for(var l=0,s=u.length,c;l<s;++l)for(i=0,c=u[l];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(u=n?ei:ni,i=0;i<o;++i)this.each(u(r[i],n,e));return this}function jn(t,n,e){var r=Un(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function ii(t,n){return function(){return jn(this,t,n)}}function oi(t,n){return function(){return jn(this,t,n.apply(this,arguments))}}function ai(t,n){return this.each((typeof n=="function"?oi:ii)(t,n))}function*ui(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var te=[null];function V(t,n){this._groups=t,this._parents=n}function Mt(){return new V([[document.documentElement]],te)}function si(){return this}V.prototype=Mt.prototype={constructor:V,select:De,selectAll:Xe,selectChild:Le,selectChildren:Ke,filter:Qe,data:je,enter:Ue,exit:nr,join:er,merge:rr,selection:si,order:ir,sort:or,call:ur,nodes:sr,node:lr,size:cr,empty:fr,each:hr,attr:_r,style:Nr,property:Mr,classed:zr,text:Rr,html:Hr,raise:qr,lower:Or,append:Vr,insert:Kr,remove:Ur,clone:Zr,datum:Jr,on:ri,dispatch:ai,[Symbol.iterator]:ui};function W(t){return typeof t=="string"?new V([[document.querySelector(t)]],[document.documentElement]):new V([[t]],te)}function li(t){let n;for(;n=t.sourceEvent;)t=n;return t}function et(t,n){if(t=li(t),n===void 0&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(n.getScreenCTM().inverse()),[r.x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}const ci={passive:!1},wt={capture:!0,passive:!1};function Gt(t){t.stopImmediatePropagation()}function ft(t){t.preventDefault(),t.stopImmediatePropagation()}function ne(t){var n=t.document.documentElement,e=W(t).on("dragstart.drag",ft,wt);"onselectstart"in n?e.on("selectstart.drag",ft,wt):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function ee(t,n){var e=t.document.documentElement,r=W(t).on("dragstart.drag",null);n&&(r.on("click.drag",ft,wt),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}const Tt=t=>()=>t;function tn(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:a,y:u,dx:l,dy:s,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:c}})}tn.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function fi(t){return!t.ctrlKey&&!t.button}function hi(){return this.parentNode}function gi(t,n){return n??{x:t.x,y:t.y}}function di(){return navigator.maxTouchPoints||"ontouchstart"in this}function pi(){var t=fi,n=hi,e=gi,r=di,i={},o=kt("start","drag","end"),a=0,u,l,s,c,m=0;function h(f){f.on("mousedown.drag",g).filter(r).on("touchstart.drag",v).on("touchmove.drag",p,ci).on("touchend.drag touchcancel.drag",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(f,b){if(!(c||!t.call(this,f,b))){var k=A(this,n.call(this,f,b),f,b,"mouse");k&&(W(f.view).on("mousemove.drag",x,wt).on("mouseup.drag",y,wt),ne(f.view),Gt(f),s=!1,u=f.clientX,l=f.clientY,k("start",f))}}function x(f){if(ft(f),!s){var b=f.clientX-u,k=f.clientY-l;s=b*b+k*k>m}i.mouse("drag",f)}function y(f){W(f.view).on("mousemove.drag mouseup.drag",null),ee(f.view,s),ft(f),i.mouse("end",f)}function v(f,b){if(t.call(this,f,b)){var k=f.changedTouches,E=n.call(this,f,b),z=k.length,D,C;for(D=0;D<z;++D)(C=A(this,E,f,b,k[D].identifier,k[D]))&&(Gt(f),C("start",f,k[D]))}}function p(f){var b=f.changedTouches,k=b.length,E,z;for(E=0;E<k;++E)(z=i[b[E].identifier])&&(ft(f),z("drag",f,b[E]))}function w(f){var b=f.changedTouches,k=b.length,E,z;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),E=0;E<k;++E)(z=i[b[E].identifier])&&(Gt(f),z("end",f,b[E]))}function A(f,b,k,E,z,D){var C=o.copy(),R=et(D||k,b),O,q,d;if((d=e.call(f,new tn("beforestart",{sourceEvent:k,target:h,identifier:z,active:a,x:R[0],y:R[1],dx:0,dy:0,dispatch:C}),E))!=null)return O=d.x-R[0]||0,q=d.y-R[1]||0,function N(_,$,M){var T=R,S;switch(_){case"start":i[z]=N,S=a++;break;case"end":delete i[z],--a;case"drag":R=et(M||$,b),S=a;break}C.call(_,f,new tn(_,{sourceEvent:$,subject:d,target:h,identifier:z,active:S,x:R[0]+O,y:R[1]+q,dx:R[0]-T[0],dy:R[1]-T[1],dispatch:C}),E)}}return h.filter=function(f){return arguments.length?(t=typeof f=="function"?f:Tt(!!f),h):t},h.container=function(f){return arguments.length?(n=typeof f=="function"?f:Tt(f),h):n},h.subject=function(f){return arguments.length?(e=typeof f=="function"?f:Tt(f),h):e},h.touchable=function(f){return arguments.length?(r=typeof f=="function"?f:Tt(!!f),h):r},h.on=function(){var f=o.on.apply(o,arguments);return f===o?h:f},h.clickDistance=function(f){return arguments.length?(m=(f=+f)*f,h):Math.sqrt(m)},h}function cn(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function re(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Et(){}var bt=.7,Ht=1/bt,ht="\\s*([+-]?\\d+)\\s*",Nt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yi=/^#([0-9a-f]{3,8})$/,mi=new RegExp(`^rgb\\(${ht},${ht},${ht}\\)$`),vi=new RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`),_i=new RegExp(`^rgba\\(${ht},${ht},${ht},${Nt}\\)$`),xi=new RegExp(`^rgba\\(${Z},${Z},${Z},${Nt}\\)$`),wi=new RegExp(`^hsl\\(${Nt},${Z},${Z}\\)$`),bi=new RegExp(`^hsla\\(${Nt},${Z},${Z},${Nt}\\)$`),wn={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};cn(Et,$t,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:bn,formatHex:bn,formatHex8:Ni,formatHsl:$i,formatRgb:Nn,toString:Nn});function bn(){return this.rgb().formatHex()}function Ni(){return this.rgb().formatHex8()}function $i(){return ie(this).formatHsl()}function Nn(){return this.rgb().formatRgb()}function $t(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=yi.exec(t))?(e=n[1].length,n=parseInt(n[1],16),e===6?$n(n):e===3?new L(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):e===8?St(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):e===4?St(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=mi.exec(t))?new L(n[1],n[2],n[3],1):(n=vi.exec(t))?new L(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=_i.exec(t))?St(n[1],n[2],n[3],n[4]):(n=xi.exec(t))?St(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=wi.exec(t))?Mn(n[1],n[2]/100,n[3]/100,1):(n=bi.exec(t))?Mn(n[1],n[2]/100,n[3]/100,n[4]):wn.hasOwnProperty(t)?$n(wn[t]):t==="transparent"?new L(NaN,NaN,NaN,0):null}function $n(t){return new L(t>>16&255,t>>8&255,t&255,1)}function St(t,n,e,r){return r<=0&&(t=n=e=NaN),new L(t,n,e,r)}function Ai(t){return t instanceof Et||(t=$t(t)),t?(t=t.rgb(),new L(t.r,t.g,t.b,t.opacity)):new L}function nn(t,n,e,r){return arguments.length===1?Ai(t):new L(t,n,e,r??1)}function L(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}cn(L,nn,re(Et,{brighter(t){return t=t==null?Ht:Math.pow(Ht,t),new L(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?bt:Math.pow(bt,t),new L(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new L(lt(this.r),lt(this.g),lt(this.b),Yt(this.opacity))},displayable(){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:An,formatHex:An,formatHex8:ki,formatRgb:kn,toString:kn}));function An(){return`#${st(this.r)}${st(this.g)}${st(this.b)}`}function ki(){return`#${st(this.r)}${st(this.g)}${st(this.b)}${st((isNaN(this.opacity)?1:this.opacity)*255)}`}function kn(){const t=Yt(this.opacity);return`${t===1?"rgb(":"rgba("}${lt(this.r)}, ${lt(this.g)}, ${lt(this.b)}${t===1?")":`, ${t})`}`}function Yt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function lt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function st(t){return t=lt(t),(t<16?"0":"")+t.toString(16)}function Mn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Q(t,n,e,r)}function ie(t){if(t instanceof Q)return new Q(t.h,t.s,t.l,t.opacity);if(t instanceof Et||(t=$t(t)),!t)return new Q;if(t instanceof Q)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,l=(o+i)/2;return u?(n===o?a=(e-r)/u+(e<r)*6:e===o?a=(r-n)/u+2:a=(n-e)/u+4,u/=l<.5?o+i:2-o-i,a*=60):u=l>0&&l<1?0:a,new Q(a,u,l,t.opacity)}function Mi(t,n,e,r){return arguments.length===1?ie(t):new Q(t,n,e,r??1)}function Q(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}cn(Q,Mi,re(Et,{brighter(t){return t=t==null?Ht:Math.pow(Ht,t),new Q(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?bt:Math.pow(bt,t),new Q(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new L(Wt(t>=240?t-240:t+120,i,r),Wt(t,i,r),Wt(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Q(En(this.h),zt(this.s),zt(this.l),Yt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Yt(this.opacity);return`${t===1?"hsl(":"hsla("}${En(this.h)}, ${zt(this.s)*100}%, ${zt(this.l)*100}%${t===1?")":`, ${t})`}`}}));function En(t){return t=(t||0)%360,t<0?t+360:t}function zt(t){return Math.max(0,Math.min(1,t||0))}function Wt(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}const oe=t=>()=>t;function Ei(t,n){return function(e){return t+e*n}}function Ti(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function Si(t){return(t=+t)==1?ae:function(n,e){return e-n?Ti(n,e,t):oe(isNaN(n)?e:n)}}function ae(t,n){var e=n-t;return e?Ei(t,e):oe(isNaN(t)?n:t)}const Tn=(function t(n){var e=Si(n);function r(i,o){var a=e((i=nn(i)).r,(o=nn(o)).r),u=e(i.g,o.g),l=e(i.b,o.b),s=ae(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=u(c),i.b=l(c),i.opacity=s(c),i+""}}return r.gamma=t,r})(1);function at(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var en=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zt=new RegExp(en.source,"g");function zi(t){return function(){return t}}function Ci(t){return function(n){return t(n)+""}}function Ii(t,n){var e=en.lastIndex=Zt.lastIndex=0,r,i,o,a=-1,u=[],l=[];for(t=t+"",n=n+"";(r=en.exec(t))&&(i=Zt.exec(n));)(o=i.index)>e&&(o=n.slice(e,o),u[a]?u[a]+=o:u[++a]=o),(r=r[0])===(i=i[0])?u[a]?u[a]+=i:u[++a]=i:(u[++a]=null,l.push({i:a,x:at(r,i)})),e=Zt.lastIndex;return e<n.length&&(o=n.slice(e),u[a]?u[a]+=o:u[++a]=o),u.length<2?l[0]?Ci(l[0].x):zi(n):(n=l.length,function(s){for(var c=0,m;c<n;++c)u[(m=l[c]).i]=m.x(s);return u.join("")})}var Sn=180/Math.PI,rn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ue(t,n,e,r,i,o){var a,u,l;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(l=t*e+n*r)&&(e-=t*l,r-=n*l),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,l/=u),t*r<n*e&&(t=-t,n=-n,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*Sn,skewX:Math.atan(l)*Sn,scaleX:a,scaleY:u}}var Ct;function Di(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?rn:ue(n.a,n.b,n.c,n.d,n.e,n.f)}function Ri(t){return t==null||(Ct||(Ct=document.createElementNS("http://www.w3.org/2000/svg","g")),Ct.setAttribute("transform",t),!(t=Ct.transform.baseVal.consolidate()))?rn:(t=t.matrix,ue(t.a,t.b,t.c,t.d,t.e,t.f))}function se(t,n,e,r){function i(s){return s.length?s.pop()+" ":""}function o(s,c,m,h,g,x){if(s!==m||c!==h){var y=g.push("translate(",null,n,null,e);x.push({i:y-4,x:at(s,m)},{i:y-2,x:at(c,h)})}else(m||h)&&g.push("translate("+m+n+h+e)}function a(s,c,m,h){s!==c?(s-c>180?c+=360:c-s>180&&(s+=360),h.push({i:m.push(i(m)+"rotate(",null,r)-2,x:at(s,c)})):c&&m.push(i(m)+"rotate("+c+r)}function u(s,c,m,h){s!==c?h.push({i:m.push(i(m)+"skewX(",null,r)-2,x:at(s,c)}):c&&m.push(i(m)+"skewX("+c+r)}function l(s,c,m,h,g,x){if(s!==m||c!==h){var y=g.push(i(g)+"scale(",null,",",null,")");x.push({i:y-4,x:at(s,m)},{i:y-2,x:at(c,h)})}else(m!==1||h!==1)&&g.push(i(g)+"scale("+m+","+h+")")}return function(s,c){var m=[],h=[];return s=t(s),c=t(c),o(s.translateX,s.translateY,c.translateX,c.translateY,m,h),a(s.rotate,c.rotate,m,h),u(s.skewX,c.skewX,m,h),l(s.scaleX,s.scaleY,c.scaleX,c.scaleY,m,h),s=c=null,function(g){for(var x=-1,y=h.length,v;++x<y;)m[(v=h[x]).i]=v.x(g);return m.join("")}}}var Fi=se(Di,"px, ","px)","deg)"),Pi=se(Ri,", ",")",")"),Xi=1e-12;function zn(t){return((t=Math.exp(t))+1/t)/2}function Hi(t){return((t=Math.exp(t))-1/t)/2}function Yi(t){return((t=Math.exp(2*t))-1)/(t+1)}const qi=(function t(n,e,r){function i(o,a){var u=o[0],l=o[1],s=o[2],c=a[0],m=a[1],h=a[2],g=c-u,x=m-l,y=g*g+x*x,v,p;if(y<Xi)p=Math.log(h/s)/n,v=function(E){return[u+E*g,l+E*x,s*Math.exp(n*E*p)]};else{var w=Math.sqrt(y),A=(h*h-s*s+r*y)/(2*s*e*w),f=(h*h-s*s-r*y)/(2*h*e*w),b=Math.log(Math.sqrt(A*A+1)-A),k=Math.log(Math.sqrt(f*f+1)-f);p=(k-b)/n,v=function(E){var z=E*p,D=zn(b),C=s/(e*w)*(D*Yi(n*z+b)-Hi(b));return[u+C*g,l+C*x,s*D/zn(n*z+b)]}}return v.duration=p*1e3*n/Math.SQRT2,v}return i.rho=function(o){var a=Math.max(.001,+o),u=a*a,l=u*u;return t(a,u,l)},i})(Math.SQRT2,2,4);var dt=0,_t=0,mt=0,le=1e3,qt,xt,Lt=0,ct=0,Bt=0,At=typeof performance=="object"&&performance.now?performance:Date,ce=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function fn(){return ct||(ce(Li),ct=At.now()+Bt)}function Li(){ct=0}function Ot(){this._call=this._time=this._next=null}Ot.prototype=hn.prototype={constructor:Ot,restart:function(t,n,e){if(typeof t!="function")throw new TypeError("callback is not a function");e=(e==null?fn():+e)+(n==null?0:+n),!this._next&&xt!==this&&(xt?xt._next=this:qt=this,xt=this),this._call=t,this._time=e,on()},stop:function(){this._call&&(this._call=null,this._time=1/0,on())}};function hn(t,n,e){var r=new Ot;return r.restart(t,n,e),r}function Oi(){fn(),++dt;for(var t=qt,n;t;)(n=ct-t._time)>=0&&t._call.call(void 0,n),t=t._next;--dt}function Cn(){ct=(Lt=At.now())+Bt,dt=_t=0;try{Oi()}finally{dt=0,Bi(),ct=0}}function Vi(){var t=At.now(),n=t-Lt;n>le&&(Bt-=n,Lt=t)}function Bi(){for(var t,n=qt,e,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:qt=e);xt=t,on(r)}function on(t){if(!dt){_t&&(_t=clearTimeout(_t));var n=t-ct;n>24?(t<1/0&&(_t=setTimeout(Cn,t-At.now()-Bt)),mt&&(mt=clearInterval(mt))):(mt||(Lt=At.now(),mt=setInterval(Vi,le)),dt=1,ce(Cn))}}function In(t,n,e){var r=new Ot;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var Ki=kt("start","end","cancel","interrupt"),Qi=[],fe=0,Dn=1,an=2,Rt=3,Rn=4,un=5,Ft=6;function Kt(t,n,e,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(e in a)return;Ui(t,e,{name:n,index:r,group:i,on:Ki,tween:Qi,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:fe})}function gn(t,n){var e=U(t,n);if(e.state>fe)throw new Error("too late; already scheduled");return e}function J(t,n){var e=U(t,n);if(e.state>Rt)throw new Error("too late; already running");return e}function U(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Ui(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=hn(o,0,e.time);function o(s){e.state=Dn,e.timer.restart(a,e.delay,e.time),e.delay<=s&&a(s-e.delay)}function a(s){var c,m,h,g;if(e.state!==Dn)return l();for(c in r)if(g=r[c],g.name===e.name){if(g.state===Rt)return In(a);g.state===Rn?(g.state=Ft,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete r[c]):+c<n&&(g.state=Ft,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete r[c])}if(In(function(){e.state===Rt&&(e.state=Rn,e.timer.restart(u,e.delay,e.time),u(s))}),e.state=an,e.on.call("start",t,t.__data__,e.index,e.group),e.state===an){for(e.state=Rt,i=new Array(h=e.tween.length),c=0,m=-1;c<h;++c)(g=e.tween[c].value.call(t,t.__data__,e.index,e.group))&&(i[++m]=g);i.length=m+1}}function u(s){for(var c=s<e.duration?e.ease.call(null,s/e.duration):(e.timer.restart(l),e.state=un,1),m=-1,h=i.length;++m<h;)i[m].call(t,c);e.state===un&&(e.on.call("end",t,t.__data__,e.index,e.group),l())}function l(){e.state=Ft,e.timer.stop(),delete r[n];for(var s in r)return;delete t.__transition}}function Pt(t,n){var e=t.__transition,r,i,o=!0,a;if(e){n=n==null?null:n+"";for(a in e){if((r=e[a]).name!==n){o=!1;continue}i=r.state>an&&r.state<un,r.state=Ft,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete e[a]}o&&delete t.__transition}}function Gi(t){return this.each(function(){Pt(this,t)})}function Wi(t,n){var e,r;return function(){var i=J(this,t),o=i.tween;if(o!==e){r=e=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===n){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Zi(t,n,e){var r,i;if(typeof e!="function")throw new Error;return function(){var o=J(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},l=0,s=i.length;l<s;++l)if(i[l].name===n){i[l]=u;break}l===s&&i.push(u)}o.tween=i}}function Ji(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r=U(this.node(),e).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===t)return a.value;return null}
vendor: 5,025 bytes, line 12
12return this.each((n==null?Wi:Zi)(e,t,n))}function dn(t,n,e){var r=t._id;return t.each(function(){var i=J(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return U(i,r).value[n]}}function he(t,n){var e;return(typeof n=="number"?at:n instanceof $t?Tn:(e=$t(n))?(n=e,Tn):Ii)(t,n)}function ji(t){return function(){this.removeAttribute(t)}}function to(t){return function(){this.removeAttributeNS(t.space,t.local)}}function no(t,n,e){var r,i=e+"",o;return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=n(r=a,e)}}function eo(t,n,e){var r,i=e+"",o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=n(r=a,e)}}function ro(t,n,e){var r,i,o;return function(){var a,u=e(this),l;return u==null?void this.removeAttribute(t):(a=this.getAttribute(t),l=u+"",a===l?null:a===r&&l===i?o:(i=l,o=n(r=a,u)))}}function io(t,n,e){var r,i,o;return function(){var a,u=e(this),l;return u==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),l=u+"",a===l?null:a===r&&l===i?o:(i=l,o=n(r=a,u)))}}function oo(t,n){var e=Vt(t),r=e==="transform"?Pi:he;return this.attrTween(t,typeof n=="function"?(e.local?io:ro)(e,r,dn(this,"attr."+t,n)):n==null?(e.local?to:ji)(e):(e.local?eo:no)(e,r,n))}function ao(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function uo(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function so(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&uo(t,o)),e}return i._value=n,i}function lo(t,n){var e,r;function i(){var o=n.apply(this,arguments);return o!==r&&(e=(r=o)&&ao(t,o)),e}return i._value=n,i}function co(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw new Error;var r=Vt(t);return this.tween(e,(r.local?so:lo)(r,n))}function fo(t,n){return function(){gn(this,t).delay=+n.apply(this,arguments)}}function ho(t,n){return n=+n,function(){gn(this,t).delay=n}}function go(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?fo:ho)(n,t)):U(this.node(),n).delay}function po(t,n){return function(){J(this,t).duration=+n.apply(this,arguments)}}function yo(t,n){return n=+n,function(){J(this,t).duration=n}}function mo(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?po:yo)(n,t)):U(this.node(),n).duration}function vo(t,n){if(typeof n!="function")throw new Error;return function(){J(this,t).ease=n}}function _o(t){var n=this._id;return arguments.length?this.each(vo(n,t)):U(this.node(),n).ease}function xo(t,n){return function(){var e=n.apply(this,arguments);if(typeof e!="function")throw new Error;J(this,t).ease=e}}function wo(t){if(typeof t!="function")throw new Error;return this.each(xo(this._id,t))}function bo(t){typeof t!="function"&&(t=Bn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o=n[i],a=o.length,u=r[i]=[],l,s=0;s<a;++s)(l=o[s])&&t.call(l,l.__data__,s,o)&&u.push(l);return new it(r,this._parents,this._name,this._id)}function No(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var l=n[u],s=e[u],c=l.length,m=a[u]=new Array(c),h,g=0;g<c;++g)(h=l[g]||s[g])&&(m[g]=h);for(;u<r;++u)a[u]=n[u];return new it(a,this._parents,this._name,this._id)}function $o(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||n==="start"})}function Ao(t,n,e){var r,i,o=$o(n)?gn:J;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}function ko(t,n){var e=this._id;return arguments.length<2?U(this.node(),e).on.on(t):this.each(Ao(e,t,n))}function Mo(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function Eo(){return this.on("end.remove",Mo(this._id))}function To(t){var n=this._name,e=this._id;typeof t!="function"&&(t=sn(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u=r[a],l=u.length,s=o[a]=new Array(l),c,m,h=0;h<l;++h)(c=u[h])&&(m=t.call(c,c.__data__,h,u))&&("__data__"in c&&(m.__data__=c.__data__),s[h]=m,Kt(s[h],n,e,h,s,U(c,e)));return new it(o,this._parents,n,e)}function So(t){var n=this._name,e=this._id;typeof t!="function"&&(t=Vn(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var l=r[u],s=l.length,c,m=0;m<s;++m)if(c=l[m]){for(var h=t.call(c,c.__data__,m,l),g,x=U(c,e),y=0,v=h.length;y<v;++y)(g=h[y])&&Kt(g,n,e,y,h,x);o.push(h),a.push(c)}return new it(o,a,n,e)}var zo=Mt.prototype.constructor;function Co(){return new zo(this._groups,this._parents)}function Io(t,n){var e,r,i;return function(){var o=gt(this,t),a=(this.style.removeProperty(t),gt(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}function ge(t){return function(){this.style.removeProperty(t)}}function Do(t,n,e){var r,i=e+"",o;return function(){var a=gt(this,t);return a===i?null:a===r?o:o=n(r=a,e)}}
12function Ro(t,n,e){var r,i,o;return function(){var a=gt(this,t),u=e(this),l=u+"";return u==null&&(l=u=(this.style.removeProperty(t),gt(this,t))),a===l?null:a===r&&l===i?o:(i=l,o=n(r=a,u))}}function Fo(t,n){var e,r,i,o="style."+n,a="end."+o,u;return function(){var l=J(this,t),s=l.on,c=l.value[o]==null?u||(u=ge(n)):void 0;(s!==e||i!==c)&&(r=(e=s).copy()).on(a,i=c),l.on=r}}function Po(t,n,e){var r=(t+="")=="transform"?Fi:he;return n==null?this.styleTween(t,Io(t,r)).on("end.style."+t,ge(t)):typeof n=="function"?this.styleTween(t,Ro(t,r,dn(this,"style."+t,n))).each(Fo(this._id,t)):this.styleTween(t,Do(t,r,n),e).on("end.style."+t,null)}function Xo(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Ho(t,n,e){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&Xo(t,a,e)),r}return o._value=n,o}function Yo(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;return this.tween(r,Ho(t,n,e??""))}function qo(t){return function(){this.textContent=t}}function Lo(t){return function(){var n=t(this);this.textContent=n??""}}function Oo(t){return this.tween("text",typeof t=="function"?Lo(dn(this,"text",t)):qo(t==null?"":t+""))}function Vo(t){return function(n){this.textContent=t.call(this,n)}}function Bo(t){var n,e;function r(){var i=t.apply(this,arguments);return i!==e&&(n=(e=i)&&Vo(i)),n}return r._value=t,r}function Ko(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Bo(t))}function Qo(){for(var t=this._name,n=this._id,e=de(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],u=a.length,l,s=0;s<u;++s)if(l=a[s]){var c=U(l,n);Kt(l,t,e,s,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new it(r,this._parents,t,e)}function Uo(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,a){var u={value:a},l={value:function(){--i===0&&o()}};e.each(function(){var s=J(this,r),c=s.on;c!==t&&(n=(t=c).copy(),n._.cancel.push(u),n._.interrupt.push(u),n._.end.push(l)),s.on=n}),i===0&&o()})}var Go=0;function it(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function de(){return++Go}var nt=Mt.prototype;it.prototype={constructor:it,select:To,selectAll:So,selectChild:nt.selectChild,selectChildren:nt.selectChildren,filter:bo,merge:No,selection:Co,transition:Qo,call:nt.call,nodes:nt.nodes,node:nt.node,size:nt.size,empty:nt.empty,each:nt.each,on:ko,attr:oo,attrTween:co,style:Po,styleTween:Yo,text:Oo,textTween:Ko,remove:Eo,tween:Ji,delay:go,duration:mo,ease:_o,easeVarying:wo,end:Uo,[Symbol.iterator]:nt[Symbol.iterator]};function Wo(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Zo={time:null,delay:0,duration:250,ease:Wo};function Jo(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}function jo(t){var n,e;t instanceof it?(n=t._id,t=t._name):(n=de(),(e=Zo).time=fn(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],u=a.length,l,s=0;s<u;++s)(l=a[s])&&Kt(l,t,n,s,a,e||Jo(l,n));return new it(r,this._parents,t,n)}Mt.prototype.interrupt=Gi;Mt.prototype.transition=jo;function ta(t){const n=+this._x.call(null,t),e=+this._y.call(null,t);return pe(this.cover(n,e),n,e,t)}function pe(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o=t._root,a={data:r},u=t._x0,l=t._y0,s=t._x1,c=t._y1,m,h,g,x,y,v,p,w;if(!o)return t._root=a,t;for(;o.length;)if((y=n>=(m=(u+s)/2))?u=m:s=m,(v=e>=(h=(l+c)/2))?l=h:c=h,i=o,!(o=o[p=v<<1|y]))return i[p]=a,t;if(g=+t._x.call(null,o.data),x=+t._y.call(null,o.data),n===g&&e===x)return a.next=o,i?i[p]=a:t._root=a,t;do i=i?i[p]=new Array(4):t._root=new Array(4),(y=n>=(m=(u+s)/2))?u=m:s=m,(v=e>=(h=(l+c)/2))?l=h:c=h;while((p=v<<1|y)===(w=(x>=h)<<1|g>=m));return i[w]=o,i[p]=a,t}function na(t){var n,e,r=t.length,i,o,a=new Array(r),u=new Array(r),l=1/0,s=1/0,c=-1/0,m=-1/0;for(e=0;e<r;++e)isNaN(i=+this._x.call(null,n=t[e]))||isNaN(o=+this._y.call(null,n))||(a[e]=i,u[e]=o,i<l&&(l=i),i>c&&(c=i),o<s&&(s=o),o>m&&(m=o));if(l>c||s>m)return this;for(this.cover(l,s).cover(c,m),e=0;e<r;++e)pe(this,a[e],u[e],t[e]);return this}function ea(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var a=i-e||1,u=this._root,l,s;e>t||t>=i||r>n||n>=o;)switch(s=(n<r)<<1|t<e,l=new Array(4),l[s]=u,u=l,a*=2,s){case 0:i=e+a,o=r+a;break;case 1:e=i-a,o=r+a;break;case 2:i=e+a,r=o-a;break;case 3:e=i-a,r=o-a;break}this._root&&this._root.length&&(this._root=u)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this}function ra(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function ia(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function X(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}
vendor: 9,458 bytes, line 12
12function oa(t,n,e){var r,i=this._x0,o=this._y0,a,u,l,s,c=this._x1,m=this._y1,h=[],g=this._root,x,y;for(g&&h.push(new X(g,i,o,c,m)),e==null?e=1/0:(i=t-e,o=n-e,c=t+e,m=n+e,e*=e);x=h.pop();)if(!(!(g=x.node)||(a=x.x0)>c||(u=x.y0)>m||(l=x.x1)<i||(s=x.y1)<o))if(g.length){var v=(a+l)/2,p=(u+s)/2;h.push(new X(g[3],v,p,l,s),new X(g[2],a,p,v,s),new X(g[1],v,u,l,p),new X(g[0],a,u,v,p)),(y=(n>=p)<<1|t>=v)&&(x=h[h.length-1],h[h.length-1]=h[h.length-1-y],h[h.length-1-y]=x)}else{var w=t-+this._x.call(null,g.data),A=n-+this._y.call(null,g.data),f=w*w+A*A;if(f<e){var b=Math.sqrt(e=f);i=t-b,o=n-b,c=t+b,m=n+b,r=g.data}}return r}function aa(t){if(isNaN(c=+this._x.call(null,t))||isNaN(m=+this._y.call(null,t)))return this;var n,e=this._root,r,i,o,a=this._x0,u=this._y0,l=this._x1,s=this._y1,c,m,h,g,x,y,v,p;if(!e)return this;if(e.length)for(;;){if((x=c>=(h=(a+l)/2))?a=h:l=h,(y=m>=(g=(u+s)/2))?u=g:s=g,n=e,!(e=e[v=y<<1|x]))return this;if(!e.length)break;(n[v+1&3]||n[v+2&3]||n[v+3&3])&&(r=n,p=v)}for(;e.data!==t;)if(i=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,i?(o?i.next=o:delete i.next,this):n?(o?n[v]=o:delete n[v],(e=n[0]||n[1]||n[2]||n[3])&&e===(n[3]||n[2]||n[1]||n[0])&&!e.length&&(r?r[p]=e:this._root=e),this):(this._root=o,this)}function ua(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this}function sa(){return this._root}function la(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function ca(t){var n=[],e,r=this._root,i,o,a,u,l;for(r&&n.push(new X(r,this._x0,this._y0,this._x1,this._y1));e=n.pop();)if(!t(r=e.node,o=e.x0,a=e.y0,u=e.x1,l=e.y1)&&r.length){var s=(o+u)/2,c=(a+l)/2;(i=r[3])&&n.push(new X(i,s,c,u,l)),(i=r[2])&&n.push(new X(i,o,c,s,l)),(i=r[1])&&n.push(new X(i,s,a,u,c)),(i=r[0])&&n.push(new X(i,o,a,s,c))}return this}function fa(t){var n=[],e=[],r;for(this._root&&n.push(new X(this._root,this._x0,this._y0,this._x1,this._y1));r=n.pop();){var i=r.node;if(i.length){var o,a=r.x0,u=r.y0,l=r.x1,s=r.y1,c=(a+l)/2,m=(u+s)/2;(o=i[0])&&n.push(new X(o,a,u,c,m)),(o=i[1])&&n.push(new X(o,c,u,l,m)),(o=i[2])&&n.push(new X(o,a,m,c,s)),(o=i[3])&&n.push(new X(o,c,m,l,s))}e.push(r)}for(;r=e.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this}function ha(t){return t[0]}function ga(t){return arguments.length?(this._x=t,this):this._x}function da(t){return t[1]}function pa(t){return arguments.length?(this._y=t,this):this._y}function pn(t,n,e){var r=new yn(n??ha,e??da,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function yn(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Fn(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Y=pn.prototype=yn.prototype;Y.copy=function(){var t=new yn(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,e,r;if(!n)return t;if(!n.length)return t._root=Fn(n),t;for(e=[{source:n,target:t._root=new Array(4)}];n=e.pop();)for(var i=0;i<4;++i)(r=n.source[i])&&(r.length?e.push({source:r,target:n.target[i]=new Array(4)}):n.target[i]=Fn(r));return t};Y.add=ta;Y.addAll=na;Y.cover=ea;Y.data=ra;Y.extent=ia;Y.find=oa;Y.remove=aa;Y.removeAll=ua;Y.root=sa;Y.size=la;Y.visit=ca;Y.visitAfter=fa;Y.x=ga;Y.y=pa;function H(t){return function(){return t}}function ut(t){return(t()-.5)*1e-6}function ya(t){return t.x+t.vx}function ma(t){return t.y+t.vy}function va(t){var n,e,r,i=1,o=1;typeof t!="function"&&(t=H(t==null?1:+t));function a(){for(var s,c=n.length,m,h,g,x,y,v,p=0;p<o;++p)for(m=pn(n,ya,ma).visitAfter(u),s=0;s<c;++s)h=n[s],y=e[h.index],v=y*y,g=h.x+h.vx,x=h.y+h.vy,m.visit(w);function w(A,f,b,k,E){var z=A.data,D=A.r,C=y+D;if(z){if(z.index>h.index){var R=g-z.x-z.vx,O=x-z.y-z.vy,q=R*R+O*O;q<C*C&&(R===0&&(R=ut(r),q+=R*R),O===0&&(O=ut(r),q+=O*O),q=(C-(q=Math.sqrt(q)))/q*i,h.vx+=(R*=q)*(C=(D*=D)/(v+D)),h.vy+=(O*=q)*C,z.vx-=R*(C=1-C),z.vy-=O*C)}return}return f>g+C||k<g-C||b>x+C||E<x-C}}function u(s){if(s.data)return s.r=e[s.data.index];for(var c=s.r=0;c<4;++c)s[c]&&s[c].r>s.r&&(s.r=s[c].r)}function l(){if(n){var s,c=n.length,m;for(e=new Array(c),s=0;s<c;++s)m=n[s],e[m.index]=+t(m,s,n)}}return a.initialize=function(s,c){n=s,r=c,l()},a.iterations=function(s){return arguments.length?(o=+s,a):o},a.strength=function(s){return arguments.length?(i=+s,a):i},a.radius=function(s){return arguments.length?(t=typeof s=="function"?s:H(+s),l(),a):t},a}function _a(t){return t.index}function Pn(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}function xa(t){var n=_a,e=m,r,i=H(30),o,a,u,l,s,c=1;t==null&&(t=[]);function m(v){return 1/Math.min(u[v.source.index],u[v.target.index])}function h(v){for(var p=0,w=t.length;p<c;++p)for(var A=0,f,b,k,E,z,D,C;A<w;++A)f=t[A],b=f.source,k=f.target,E=k.x+k.vx-b.x-b.vx||ut(s),z=k.y+k.vy-b.y-b.vy||ut(s),D=Math.sqrt(E*E+z*z),D=(D-o[A])/D*v*r[A],E*=D,z*=D,k.vx-=E*(C=l[A]),k.vy-=z*C,b.vx+=E*(C=1-C),b.vy+=z*C}function g(){if(a){var v,p=a.length,w=t.length,A=new Map(a.map((b,k)=>[n(b,k,a),b])),f;for(v=0,u=new Array(p);v<w;++v)f=t[v],f.index=v,typeof f.source!="object"&&(f.source=Pn(A,f.source)),typeof f.target!="object"&&(f.target=Pn(A,f.target)),u[f.source.index]=(u[f.source.index]||0)+1,u[f.target.index]=(u[f.target.index]||0)+1;for(v=0,l=new Array(w);v<w;++v)f=t[v],l[v]=u[f.source.index]/(u[f.source.index]+u[f.target.index]);r=new Array(w),x(),o=new Array(w),y()}}function x(){if(a)for(var v=0,p=t.length;v<p;++v)r[v]=+e(t[v],v,t)}function y(){if(a)for(var v=0,p=t.length;v<p;++v)o[v]=+i(t[v],v,t)}return h.initialize=function(v,p){a=v,s=p,g()},h.links=function(v){return arguments.length?(t=v,g(),h):t},h.id=function(v){return arguments.length?(n=v,h):n},h.iterations=function(v){return arguments.length?(c=+v,h):c},h.strength=function(v){return arguments.length?(e=typeof v=="function"?v:H(+v),x(),h):e},h.distance=function(v){return arguments.length?(i=typeof v=="function"?v:H(+v),y(),h):i},h}const wa=1664525,ba=1013904223,Xn=4294967296;function Na(){let t=1;return()=>(t=(wa*t+ba)%Xn)/Xn}function $a(t){return t.x}function Aa(t){return t.y}var ka=10,Ma=Math.PI*(3-Math.sqrt(5));function Ea(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=new Map,l=hn(m),s=kt("tick","end"),c=Na();t==null&&(t=[]);function m(){h(),s.call("tick",n),e<r&&(l.stop(),s.call("end",n))}function h(y){var v,p=t.length,w;y===void 0&&(y=1);for(var A=0;A<y;++A)for(e+=(o-e)*i,u.forEach(function(f){f(e)}),v=0;v<p;++v)w=t[v],w.fx==null?w.x+=w.vx*=a:(w.x=w.fx,w.vx=0),w.fy==null?w.y+=w.vy*=a:(w.y=w.fy,w.vy=0);return n}function g(){for(var y=0,v=t.length,p;y<v;++y){if(p=t[y],p.index=y,p.fx!=null&&(p.x=p.fx),p.fy!=null&&(p.y=p.fy),isNaN(p.x)||isNaN(p.y)){var w=ka*Math.sqrt(.5+y),A=y*Ma;p.x=w*Math.cos(A),p.y=w*Math.sin(A)}(isNaN(p.vx)||isNaN(p.vy))&&(p.vx=p.vy=0)}}function x(y){return y.initialize&&y.initialize(t,c),y}return g(),n={tick:h,restart:function(){return l.restart(m),n},stop:function(){return l.stop(),n},nodes:function(y){return arguments.length?(t=y,g(),u.forEach(x),n):t},alpha:function(y){return arguments.length?(e=+y,n):e},alphaMin:function(y){return arguments.length?(r=+y,n):r},alphaDecay:function(y){return arguments.length?(i=+y,n):+i},alphaTarget:function(y){return arguments.length?(o=+y,n):o},velocityDecay:function(y){return arguments.length?(a=1-y,n):1-a},randomSource:function(y){return arguments.length?(c=y,u.forEach(x),n):c},force:function(y,v){return arguments.length>1?(v==null?u.delete(y):u.set(y,x(v)),n):u.get(y)},find:function(y,v,p){var w=0,A=t.length,f,b,k,E,z;for(p==null?p=1/0:p*=p,w=0;w<A;++w)E=t[w],f=y-E.x,b=v-E.y,k=f*f+b*b,k<p&&(z=E,p=k);return z},on:function(y,v){return arguments.length>1?(s.on(y,v),n):s.on(y)}}}function Ta(){var t,n,e,r,i=H(-30),o,a=1,u=1/0,l=.81;function s(g){var x,y=t.length,v=pn(t,$a,Aa).visitAfter(m);for(r=g,x=0;x<y;++x)n=t[x],v.visit(h)}function c(){if(t){var g,x=t.length,y;for(o=new Array(x),g=0;g<x;++g)y=t[g],o[y.index]=+i(y,g,t)}}function m(g){var x=0,y,v,p=0,w,A,f;if(g.length){for(w=A=f=0;f<4;++f)(y=g[f])&&(v=Math.abs(y.value))&&(x+=y.value,p+=v,w+=v*y.x,A+=v*y.y);g.x=w/p,g.y=A/p}else{y=g,y.x=y.data.x,y.y=y.data.y;do x+=o[y.data.index];while(y=y.next)}g.value=x}function h(g,x,y,v){if(!g.value)return!0;var p=g.x-n.x,w=g.y-n.y,A=v-x,f=p*p+w*w;if(A*A/l<f)return f<u&&(p===0&&(p=ut(e),f+=p*p),w===0&&(w=ut(e),f+=w*w),f<a&&(f=Math.sqrt(a*f)),n.vx+=p*g.value*r/f,n.vy+=w*g.value*r/f),!0;if(g.length||f>=u)return;(g.data!==n||g.next)&&(p===0&&(p=ut(e),f+=p*p),w===0&&(w=ut(e),f+=w*w),f<a&&(f=Math.sqrt(a*f)));do g.data!==n&&(A=o[g.data.index]*r/f,n.vx+=p*A,n.vy+=w*A);while(g=g.next)}return s.initialize=function(g,x){t=g,e=x,c()},s.strength=function(g){return arguments.length?(i=typeof g=="function"?g:H(+g),c(),s):i},s.distanceMin=function(g){return arguments.length?(a=g*g,s):Math.sqrt(a)},s.distanceMax=function(g){return arguments.length?(u=g*g,s):Math.sqrt(u)},s.theta=function(g){return arguments.length?(l=g*g,s):Math.sqrt(l)},s}function Sa(t){var n=H(.1),e,r,i;typeof t!="function"&&(t=H(t==null?0:+t));function o(u){for(var l=0,s=e.length,c;l<s;++l)c=e[l],c.vx+=(i[l]-c.x)*r[l]*u}function a(){if(e){var u,l=e.length;for(r=new Array(l),i=new Array(l),u=0;u<l;++u)r[u]=isNaN(i[u]=+t(e[u],u,e))?0:+n(e[u],u,e)}}return o.initialize=function(u){e=u,a()},o.strength=function(u){return arguments.length?(n=typeof u=="function"?u:H(+u),a(),o):n},o.x=function(u){return arguments.length?(t=typeof u=="function"?u:H(+u),a(),o):t},o}function za(t){var n=H(.1),e,r,i;typeof t!="function"&&(t=H(t==null?0:+t));function o(u){for(var l=0,s=e.length,c;
vendor: 10,009 bytes, line 12
12l<s;++l)c=e[l],c.vy+=(i[l]-c.y)*r[l]*u}function a(){if(e){var u,l=e.length;for(r=new Array(l),i=new Array(l),u=0;u<l;++u)r[u]=isNaN(i[u]=+t(e[u],u,e))?0:+n(e[u],u,e)}}return o.initialize=function(u){e=u,a()},o.strength=function(u){return arguments.length?(n=typeof u=="function"?u:H(+u),a(),o):n},o.y=function(u){return arguments.length?(t=typeof u=="function"?u:H(+u),a(),o):t},o}const It=t=>()=>t;function Ca(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function rt(t,n,e){this.k=t,this.x=n,this.y=e}rt.prototype={constructor:rt,scale:function(t){return t===1?this:new rt(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new rt(this.k,this.x+this.k*t,this.y+this.k*n)},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 mn=new rt(1,0,0);rt.prototype;function Jt(t){t.stopImmediatePropagation()}function vt(t){t.preventDefault(),t.stopImmediatePropagation()}function Ia(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Da(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.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 Hn(){return this.__zoom||mn}function Ra(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Fa(){return navigator.maxTouchPoints||"ontouchstart"in this}function Pa(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function Xa(){var t=Ia,n=Da,e=Pa,r=Ra,i=Fa,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],u=250,l=qi,s=kt("start","zoom","end"),c,m,h,g=500,x=150,y=0,v=10;function p(d){d.property("__zoom",Hn).on("wheel.zoom",z,{passive:!1}).on("mousedown.zoom",D).on("dblclick.zoom",C).filter(i).on("touchstart.zoom",R).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",q).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(d,N,_,$){var M=d.selection?d.selection():d;M.property("__zoom",Hn),d!==M?b(d,N,_,$):M.interrupt().each(function(){k(this,arguments).event($).start().zoom(null,typeof N=="function"?N.apply(this,arguments):N).end()})},p.scaleBy=function(d,N,_,$){p.scaleTo(d,function(){var M=this.__zoom.k,T=typeof N=="function"?N.apply(this,arguments):N;return M*T},_,$)},p.scaleTo=function(d,N,_,$){p.transform(d,function(){var M=n.apply(this,arguments),T=this.__zoom,S=_==null?f(M):typeof _=="function"?_.apply(this,arguments):_,I=T.invert(S),F=typeof N=="function"?N.apply(this,arguments):N;return e(A(w(T,F),S,I),M,a)},_,$)},p.translateBy=function(d,N,_,$){p.transform(d,function(){return e(this.__zoom.translate(typeof N=="function"?N.apply(this,arguments):N,typeof _=="function"?_.apply(this,arguments):_),n.apply(this,arguments),a)},null,$)},p.translateTo=function(d,N,_,$,M){p.transform(d,function(){var T=n.apply(this,arguments),S=this.__zoom,I=$==null?f(T):typeof $=="function"?$.apply(this,arguments):$;return e(mn.translate(I[0],I[1]).scale(S.k).translate(typeof N=="function"?-N.apply(this,arguments):-N,typeof _=="function"?-_.apply(this,arguments):-_),T,a)},$,M)};function w(d,N){return N=Math.max(o[0],Math.min(o[1],N)),N===d.k?d:new rt(N,d.x,d.y)}function A(d,N,_){var $=N[0]-_[0]*d.k,M=N[1]-_[1]*d.k;return $===d.x&&M===d.y?d:new rt(d.k,$,M)}function f(d){return[(+d[0][0]+ +d[1][0])/2,(+d[0][1]+ +d[1][1])/2]}function b(d,N,_,$){d.on("start.zoom",function(){k(this,arguments).event($).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event($).end()}).tween("zoom",function(){var M=this,T=arguments,S=k(M,T).event($),I=n.apply(M,T),F=_==null?f(I):typeof _=="function"?_.apply(M,T):_,G=Math.max(I[1][0]-I[0][0],I[1][1]-I[0][1]),P=M.__zoom,B=typeof N=="function"?N.apply(M,T):N,j=l(P.invert(F).concat(G/P.k),B.invert(F).concat(G/B.k));return function(K){if(K===1)K=B;else{var tt=j(K),Qt=G/tt[2];K=new rt(Qt,F[0]-tt[0]*Qt,F[1]-tt[1]*Qt)}S.zoom(null,K)}})}function k(d,N,_){return!_&&d.__zooming||new E(d,N)}function E(d,N){this.that=d,this.args=N,this.active=0,this.sourceEvent=null,this.extent=n.apply(d,N),this.taps=0}E.prototype={event:function(d){return d&&(this.sourceEvent=d),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(d,N){return this.mouse&&d!=="mouse"&&(this.mouse[1]=N.invert(this.mouse[0])),this.touch0&&d!=="touch"&&(this.touch0[1]=N.invert(this.touch0[0])),this.touch1&&d!=="touch"&&(this.touch1[1]=N.invert(this.touch1[0])),this.that.__zoom=N,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(d){var N=W(this.that).datum();s.call(d,this.that,new Ca(d,{sourceEvent:this.sourceEvent,target:p,transform:this.that.__zoom,dispatch:s}),N)}};function z(d,...N){if(!t.apply(this,arguments))return;var _=k(this,N).event(d),$=this.__zoom,M=Math.max(o[0],Math.min(o[1],$.k*Math.pow(2,r.apply(this,arguments)))),T=et(d);if(_.wheel)(_.mouse[0][0]!==T[0]||_.mouse[0][1]!==T[1])&&(_.mouse[1]=$.invert(_.mouse[0]=T)),clearTimeout(_.wheel);else{if($.k===M)return;_.mouse=[T,$.invert(T)],Pt(this),_.start()}vt(d),_.wheel=setTimeout(S,x),_.zoom("mouse",e(A(w($,M),_.mouse[0],_.mouse[1]),_.extent,a));function S(){_.wheel=null,_.end()}}function D(d,...N){if(h||!t.apply(this,arguments))return;var _=d.currentTarget,$=k(this,N,!0).event(d),M=W(d.view).on("mousemove.zoom",F,!0).on("mouseup.zoom",G,!0),T=et(d,_),S=d.clientX,I=d.clientY;ne(d.view),Jt(d),$.mouse=[T,this.__zoom.invert(T)],Pt(this),$.start();function F(P){if(vt(P),!$.moved){var B=P.clientX-S,j=P.clientY-I;$.moved=B*B+j*j>y}$.event(P).zoom("mouse",e(A($.that.__zoom,$.mouse[0]=et(P,_),$.mouse[1]),$.extent,a))}function G(P){M.on("mousemove.zoom mouseup.zoom",null),ee(P.view,$.moved),vt(P),$.event(P).end()}}function C(d,...N){if(t.apply(this,arguments)){var _=this.__zoom,$=et(d.changedTouches?d.changedTouches[0]:d,this),M=_.invert($),T=_.k*(d.shiftKey?.5:2),S=e(A(w(_,T),$,M),n.apply(this,N),a);vt(d),u>0?W(this).transition().duration(u).call(b,S,$,d):W(this).call(p.transform,S,$,d)}}function R(d,...N){if(t.apply(this,arguments)){var _=d.touches,$=_.length,M=k(this,N,d.changedTouches.length===$).event(d),T,S,I,F;for(Jt(d),S=0;S<$;++S)I=_[S],F=et(I,this),F=[F,this.__zoom.invert(F),I.identifier],M.touch0?!M.touch1&&M.touch0[2]!==F[2]&&(M.touch1=F,M.taps=0):(M.touch0=F,T=!0,M.taps=1+!!c);c&&(c=clearTimeout(c)),T&&(M.taps<2&&(m=F[0],c=setTimeout(function(){c=null},g)),Pt(this),M.start())}}function O(d,...N){if(this.__zooming){var _=k(this,N).event(d),$=d.changedTouches,M=$.length,T,S,I,F;for(vt(d),T=0;T<M;++T)S=$[T],I=et(S,this),_.touch0&&_.touch0[2]===S.identifier?_.touch0[0]=I:_.touch1&&_.touch1[2]===S.identifier&&(_.touch1[0]=I);if(S=_.that.__zoom,_.touch1){var G=_.touch0[0],P=_.touch0[1],B=_.touch1[0],j=_.touch1[1],K=(K=B[0]-G[0])*K+(K=B[1]-G[1])*K,tt=(tt=j[0]-P[0])*tt+(tt=j[1]-P[1])*tt;S=w(S,Math.sqrt(K/tt)),I=[(G[0]+B[0])/2,(G[1]+B[1])/2],F=[(P[0]+j[0])/2,(P[1]+j[1])/2]}else if(_.touch0)I=_.touch0[0],F=_.touch0[1];else return;_.zoom("touch",e(A(S,I,F),_.extent,a))}}function q(d,...N){if(this.__zooming){var _=k(this,N).event(d),$=d.changedTouches,M=$.length,T,S;for(Jt(d),h&&clearTimeout(h),h=setTimeout(function(){h=null},g),T=0;T<M;++T)S=$[T],_.touch0&&_.touch0[2]===S.identifier?delete _.touch0:_.touch1&&_.touch1[2]===S.identifier&&delete _.touch1;if(_.touch1&&!_.touch0&&(_.touch0=_.touch1,delete _.touch1),_.touch0)_.touch0[1]=this.__zoom.invert(_.touch0[0]);else if(_.end(),_.taps===2&&(S=et(S,this),Math.hypot(m[0]-S[0],m[1]-S[1])<v)){var I=W(this).on("dblclick.zoom");I&&I.apply(this,arguments)}}}return p.wheelDelta=function(d){return arguments.length?(r=typeof d=="function"?d:It(+d),p):r},p.filter=function(d){return arguments.length?(t=typeof d=="function"?d:It(!!d),p):t},p.touchable=function(d){return arguments.length?(i=typeof d=="function"?d:It(!!d),p):i},p.extent=function(d){return arguments.length?(n=typeof d=="function"?d:It([[+d[0][0],+d[0][1]],[+d[1][0],+d[1][1]]]),p):n},p.scaleExtent=function(d){return arguments.length?(o[0]=+d[0],o[1]=+d[1],p):[o[0],o[1]]},p.translateExtent=function(d){return arguments.length?(a[0][0]=+d[0][0],a[1][0]=+d[1][0],a[0][1]=+d[0][1],a[1][1]=+d[1][1],p):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},p.constrain=function(d){return arguments.length?(e=d,p):e},p.duration=function(d){return arguments.length?(u=+d,p):u},p.interpolate=function(d){return arguments.length?(l=d,p):l},p.on=function(){var d=s.on.apply(s,arguments);return d===s?p:d},p.clickDistance=function(d){return arguments.length?(y=(d=+d)*d,p):Math.sqrt(y)},p.tapDistance=function(d){return arguments.length?(v=+d,p):v},p}var Ha=qn('<svg class="w-full h-full touch-none">');const ot=16;function Ya(t){let n;const e=()=>t.width??800,r=()=>t.height??600;return me(()=>{if(!n)return;const i=t.data,o=e(),a=r(),u=i.links.map(f=>({...f})),l=i.nodes.map(f=>({...f})),s=Ea(l).force("link",xa(u).id(f=>f.id).distance(80).strength(.8)).force("charge",Ta().strength(-400)).force("x",Sa().strength(.05)).force("y",za().strength(.05)).force("collision",va().radius(ot+4)),c=W(n).attr("viewBox",[-o/2,-
12a/2,o,a]);c.selectAll("*").remove();const m=c.append("defs");l.forEach(f=>{m.append("clipPath").attr("id",`clip-${f.id}`).append("circle").attr("r",ot)});const h=c.append("g"),g=Xa().scaleExtent([.25,4]).on("zoom",f=>{h.attr("transform",f.transform.toString())});c.call(g),c.on("dblclick.zoom",()=>{c.transition().duration(300).call(g.transform,mn)});const x=h.append("g").attr("stroke","currentColor").attr("stroke-opacity",.3).attr("fill","none").selectAll("line").data(u).join("line").attr("stroke-width",1),y=h.append("g").selectAll("g").data(l).join("g").style("cursor","grab").attr("opacity",f=>f.hidden?.5:1);y.append("image").attr("href",f=>f.avatarUrl).attr("width",ot*2).attr("height",ot*2).attr("x",-ot).attr("y",-ot).attr("clip-path",f=>`url(#clip-${f.id})`).attr("preserveAspectRatio","xMidYMid slice"),y.append("circle").attr("r",ot).attr("fill","none").attr("stroke",f=>f.hidden?"#9ca3af":"#e5e7eb").attr("stroke-width",2).attr("stroke-dasharray",f=>f.hidden?"4,2":"none"),y.append("text").text(f=>f.hidden?"🔒":f.username??"").attr("x",0).attr("y",ot+14).attr("text-anchor","middle").attr("font-size","10px").attr("fill","currentColor").attr("opacity",.8),y.append("title").text(f=>f.hidden?"Hidden account":`${f.name} (@${f.username})`);const v=pi().on("start",p).on("drag",w).on("end",A);function p(f,b){f.active||s.alphaTarget(.3).restart(),b.fx=b.x,b.fy=b.y}function w(f,b){b.fx=f.x,b.fy=f.y}function A(f,b){f.active||s.alphaTarget(0),b.fx=null,b.fy=null}y.call(v),s.on("tick",()=>{x.attr("x1",f=>f.source.x??0).attr("y1",f=>f.source.y??0).attr("x2",f=>f.target.x??0).attr("y2",f=>f.target.y??0),y.attr("transform",f=>`translate(${f.x},${f.y})`)}),ve(()=>{s.stop()})}),(()=>{var i=Yn(Ha),o=n;return typeof o=="function"?_e(o,i):n=i,i})()}var qa=qn('<div class="h-full flex flex-col"><!$><!/><div class="container px-8 max-sm:px-4 py-8"><div class="flex items-center gap-6 mb-6"><h1 class="text-xl font-semibold"></h1><div class="flex gap-1 border border-border rounded-md p-0.5"><!$><!/><!$><!/></div></div></div><div class="border-b border-border mx-8 max-sm:mx-4"></div><div class="border overflow-hidden w-full flex-1">');const ye=Ln,La=Ae(()=>be(Ne()(),ye,{}),"loadGraphQuery");function Oa(t){const n=t.map(r=>({id:r.id,username:r.username??void 0,name:r.name??void 0,avatarUrl:r.avatarUrl,hidden:r.hidden})),e=t.filter(r=>r.inviterId!=null).map(r=>({source:r.inviterId,target:r.id,value:1}));return{nodes:n,links:e}}function Ja(){const{_:t}=ke(),n=xe(),e=$e(ye,()=>La());return(()=>{var r=Yn(qa),i=r.firstChild,[o,a]=Ut(i.nextSibling),u=o.nextSibling,l=u.firstChild,s=l.firstChild,c=s.nextSibling,m=c.firstChild,[h,g]=Ut(m.nextSibling),x=h.nextSibling,[y,v]=Ut(x.nextSibling),p=u.nextSibling,w=p.nextSibling;return pt(r,yt(Me,{get children(){return t({id:"kwFdAq"})}}),o,a),pt(s,()=>t({id:"vXfkDP"})),pt(c,yt(vn,{get href(){return`/tree${n.search}`},class:"px-3 py-1 text-sm font-medium rounded-sm text-muted-foreground hover:text-foreground hover:bg-accent transition-colors",get children(){return t({id:"_dCWE0"})}}),h,g),pt(c,yt(vn,{get href(){return`/tree/graph${n.search}`},class:"px-3 py-1 text-sm font-medium rounded-sm bg-accent text-accent-foreground",get children(){return t({id:"x2fr_j"})}}),y,v),pt(w,yt(we,{keyed:!0,get when(){return e()},children:A=>yt(Ya,{get data(){return Oa(A.invitationTree)}})})),r})()}export{Ja as default};
13//# sourceMappingURL=graph-Dg88HIN-.js.map

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.