summaryrefslogtreecommitdiff
path: root/out/_next/static/chunks/4.c9fdfbcb8f8ce1720633.js
blob: ffea4ff9b102c9157f93a1dcfd922e67545f3095 (about) (plain)
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4],{57004:function(n,t,r){"use strict";r.r(t),r.d(t,{forceCenter:function(){return i.Z},forceCollide:function(){return y},forceLink:function(){return h.Z},forceManyBody:function(){return Z.Z},forceRadial:function(){return g.Z},forceSimulation:function(){return s.Z},forceX:function(){return d},forceY:function(){return p},forceZ:function(){return x}});var i=r(20216),e=r(14275),f=r(60054),u=r(78357),o=r(29437),c=r(8246);function a(n){return n.x+n.vx}function l(n){return n.y+n.vy}function v(n){return n.z+n.vz}function y(n){var t,r,i,y,h=1,Z=1;function g(){for(var n,o,g,d,p,x,z,w,A=t.length,N=0;N<Z;++N)for(o=(1===r?(0,e.Z)(t,a):2===r?(0,f.Z)(t,a,l):3===r?(0,u.Z)(t,a,l,v):null).visitAfter(s),n=0;n<A;++n)g=t[n],z=i[g.index],w=z*z,d=g.x+g.vx,r>1&&(p=g.y+g.vy),r>2&&(x=g.z+g.vz),o.visit(k);function k(n,t,i,e,f,u,o){var a=[t,i,e,f,u,o],l=a[0],v=a[1],Z=a[2],s=a[r],A=a[r+1],N=a[r+2],k=n.data,C=n.r,M=z+C;if(!k)return l>d+M||s<d-M||r>1&&(v>p+M||A<p-M)||r>2&&(Z>x+M||N<x-M);if(k.index>g.index){var _=d-k.x-k.vx,b=r>1?p-k.y-k.vy:0,m=r>2?x-k.z-k.vz:0,E=_*_+b*b+m*m;E<M*M&&(0===_&&(E+=(_=(0,c.Z)(y))*_),r>1&&0===b&&(E+=(b=(0,c.Z)(y))*b),r>2&&0===m&&(E+=(m=(0,c.Z)(y))*m),E=(M-(E=Math.sqrt(E)))/E*h,g.vx+=(_*=E)*(M=(C*=C)/(w+C)),r>1&&(g.vy+=(b*=E)*M),r>2&&(g.vz+=(m*=E)*M),k.vx-=_*(M=1-M),r>1&&(k.vy-=b*M),r>2&&(k.vz-=m*M))}}}function s(n){if(n.data)return n.r=i[n.data.index];for(var t=n.r=0;t<Math.pow(2,r);++t)n[t]&&n[t].r>n.r&&(n.r=n[t].r)}function d(){if(t){var r,e,f=t.length;for(i=new Array(f),r=0;r<f;++r)e=t[r],i[e.index]=+n(e,r,t)}}return"function"!==typeof n&&(n=(0,o.Z)(null==n?1:+n)),g.initialize=function(n){t=n;for(var i=arguments.length,e=new Array(i>1?i-1:0),f=1;f<i;f++)e[f-1]=arguments[f];y=e.find((function(n){return"function"===typeof n}))||Math.random,r=e.find((function(n){return[1,2,3].includes(n)}))||2,d()},g.iterations=function(n){return arguments.length?(Z=+n,g):Z},g.strength=function(n){return arguments.length?(h=+n,g):h},g.radius=function(t){return arguments.length?(n="function"===typeof t?t:(0,o.Z)(+t),d(),g):n},g}var h=r(15560),Z=r(92405),g=r(16917),s=r(54505);function d(n){var t,r,i,e=(0,o.Z)(.1);function f(n){for(var e,f=0,u=t.length;f<u;++f)(e=t[f]).vx+=(i[f]-e.x)*r[f]*n}function u(){if(t){var f,u=t.length;for(r=new Array(u),i=new Array(u),f=0;f<u;++f)r[f]=isNaN(i[f]=+n(t[f],f,t))?0:+e(t[f],f,t)}}return"function"!==typeof n&&(n=(0,o.Z)(null==n?0:+n)),f.initialize=function(n){t=n,u()},f.strength=function(n){return arguments.length?(e="function"===typeof n?n:(0,o.Z)(+n),u(),f):e},f.x=function(t){return arguments.length?(n="function"===typeof t?t:(0,o.Z)(+t),u(),f):n},f}function p(n){var t,r,i,e=(0,o.Z)(.1);function f(n){for(var e,f=0,u=t.length;f<u;++f)(e=t[f]).vy+=(i[f]-e.y)*r[f]*n}function u(){if(t){var f,u=t.length;for(r=new Array(u),i=new Array(u),f=0;f<u;++f)r[f]=isNaN(i[f]=+n(t[f],f,t))?0:+e(t[f],f,t)}}return"function"!==typeof n&&(n=(0,o.Z)(null==n?0:+n)),f.initialize=function(n){t=n,u()},f.strength=function(n){return arguments.length?(e="function"===typeof n?n:(0,o.Z)(+n),u(),f):e},f.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,o.Z)(+t),u(),f):n},f}function x(n){var t,r,i,e=(0,o.Z)(.1);function f(n){for(var e,f=0,u=t.length;f<u;++f)(e=t[f]).vz+=(i[f]-e.z)*r[f]*n}function u(){if(t){var f,u=t.length;for(r=new Array(u),i=new Array(u),f=0;f<u;++f)r[f]=isNaN(i[f]=+n(t[f],f,t))?0:+e(t[f],f,t)}}return"function"!==typeof n&&(n=(0,o.Z)(null==n?0:+n)),f.initialize=function(n){t=n,u()},f.strength=function(n){return arguments.length?(e="function"===typeof n?n:(0,o.Z)(+n),u(),f):e},f.z=function(t){return arguments.length?(n="function"===typeof t?t:(0,o.Z)(+t),u(),f):n},f}}}]);