d3-jsnext
Version:
d3, but futuristic
2 lines • 38.5 kB
JavaScript
!function(){"use strict";function e(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var r=0,n=Se.length;n>r;++r){var a=Se[r]+t;if(a in e)return a}}function t(e){return"function"==typeof e?e:function(){return Ce(e,this)}}function r(e){return"function"==typeof e?e:function(){return Te(e,this)}}function n(e,t){function r(){this.removeAttribute(e)}function n(){this.removeAttributeNS(e.space,e.local)}function a(){this.setAttribute(e,t)}function u(){this.setAttributeNS(e.space,e.local,t)}function o(){var r=t.apply(this,arguments);null==r?this.removeAttribute(e):this.setAttribute(e,r)}function i(){var r=t.apply(this,arguments);null==r?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}return e=Pe.qualify(e),null==t?e.local?n:r:"function"==typeof t?e.local?i:o:e.local?u:a}function a(e){return e.trim().replace(/\s+/g," ")}function u(e){return new RegExp("(?:^|\\s+)"+Le(e)+"(?:\\s+|$)","g")}function o(e){var t=u(e);return function(r,n){if(u=r.classList)return n?u.add(e):u.remove(e);var u=r.getAttribute("class")||"";n?(t.lastIndex=0,t.test(u)||r.setAttribute("class",a(u+" "+e))):r.setAttribute("class",a(u.replace(t," ")))}}function i(e){return(e+"").trim().split(/^|\s+/)}function s(e,t){function r(){for(var r=-1;++r<a;)e[r](this,t)}function n(){for(var r=-1,n=t.apply(this,arguments);++r<a;)e[r](this,n)}e=i(e).map(o);var a=e.length;return"function"==typeof t?n:r}function l(e,t,r){function n(){this.style.removeProperty(e)}function a(){this.style.setProperty(e,t,r)}function u(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}return null==t?n:"function"==typeof t?u:a}function c(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function g(e,t){function r(){delete this[e]}function n(){this[e]=t}function a(){var r=t.apply(this,arguments);null==r?delete this[e]:this[e]=r}return null==t?r:"function"==typeof t?a:n}function f(e){function t(){var t=this.ownerDocument,r=this.namespaceURI;return r?t.createElementNS(r,e):t.createElement(e)}function r(){return this.ownerDocument.createElementNS(e.space,e.local)}return"function"==typeof e?e:(e=Pe.qualify(e)).local?r:t}function v(){var e=this.parentNode;e&&e.removeChild(this)}function h(e){var t,r;return function(n,a,u){var o,i=e[u].update,s=i.length;for(u!=r&&(r=u,t=0),a>=t&&(t=a+1);!(o=i[t])&&++t<s;);return o}}function p(e){return Fe(e,Ge),e}function m(e){return{__data__:e}}function d(){this._=Object.create(null)}function y(e){return(e+="")[0]===Re?e.slice(1):e}function w(){for(var e in this._)return!1;return!0}function _(){var e=0;for(var t in this._)++e;return e}function x(){var e=[];for(var t in this._)e.push(y(t));return e}function b(e){return(e+="")===Oe||e[0]===Re?Re+e:e}function k(e){return(e=b(e))in this._&&delete this._[e]}function M(e){return b(e)in this._}function N(e,t){for(var r in t)Object.defineProperty(e.prototype,r,{value:t[r],enumerable:!1})}function A(e){return function(){return qe(this,e)}}function S(e,t){return t>e?-1:e>t?1:e>=t?0:0/0}function C(e){return arguments.length||(e=S),function(t,r){return t&&r?e(t.__data__,r.__data__):!t-!r}}function T(){}function q(e,t){return function(r){var n=window.d3_event;window.d3_event=r,t[0]=this.__data__;try{e.apply(this,t)}finally{window.d3_event=n}}}function E(e,t){var r=q(e,t);return function(e){var t=this,n=e.relatedTarget;n&&(n===t||8&n.compareDocumentPosition(t))||r.call(t,e)}}function z(e,t,r){function n(){var t=this[o];t&&(this.removeEventListener(e,t,t.$),delete this[o])}function a(){var a=s(t,ze(arguments));n.call(this),this.addEventListener(e,this[o]=a,a.$=r),a._=t}function u(){var t,r=new RegExp("^__on([^.]+)"+Le(e)+"$");for(var n in this)if(t=n.match(r)){var a=this[n];this.removeEventListener(t[1],a,a.$),delete this[n]}}var o="__on"+e,i=e.indexOf("."),s=q;i>0&&(e=e.slice(0,i));var l=$e.get(e);return l&&(e=l,s=E),i?t?a:n:t?T:u}function P(e,t){for(var r=0,n=e.length;n>r;r++)for(var a,u=e[r],o=0,i=u.length;i>o;o++)(a=u[o])&&t(a,o,r);return e}function B(e){return Fe(e,Ae),e}function L(e){return e&&(e.ownerDocument||e.document||e).documentElement}function D(e,t,r){function n(e){return e>360?e-=360:0>e&&(e+=360),60>e?u+(o-u)*e/60:180>e?o:240>e?u+(o-u)*(240-e)/60:u}function a(e){return Math.round(255*n(e))}var u,o;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:0>t?0:t>1?1:t,r=0>r?0:r>1?1:r,o=.5>=r?r*(1+t):r+t-r*t,u=2*r-o,new O(a(e+120),a(e),a(e-120))}function G(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function F(e,t,r){var n,a,u,o=0,i=0,s=0;if(n=/([a-z]+)\((.*)\)/i.exec(e))switch(a=n[2].split(","),n[1]){case"hsl":return r(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(G(a[0]),G(a[1]),G(a[2]))}return(u=He.get(e.toLowerCase()))?t(u.r,u.g,u.b):(null==e||"#"!==e.charAt(0)||isNaN(u=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&u)>>4,o=o>>4|o,i=240&u,i=i>>4|i,s=15&u,s=s<<4|s):7===e.length&&(o=(16711680&u)>>16,i=(65280&u)>>8,s=255&u)),t(o,i,s))}function O(e,t,r){return this instanceof O?(this.r=~~e,this.g=~~t,void(this.b=~~r)):arguments.length<2?e instanceof O?new O(e.r,e.g,e.b):F(""+e,O,D):new O(e,t,r)}function R(){}function V(e,t,r){return this instanceof V?(this.h=+e,this.s=+t,void(this.l=+r)):arguments.length<2?e instanceof V?new V(e.h,e.s,e.l):F(""+e,$,V):new V(e,t,r)}function $(e,t,r){var n,a,u=Math.min(e/=255,t/=255,r/=255),o=Math.max(e,t,r),i=o-u,s=(o+u)/2;return i?(a=.5>s?i/(o+u):i/(2-o-u),n=e==o?(t-r)/i+(r>t?6:0):t==o?(r-e)/i+2:(e-t)/i+4,n*=60):(n=0/0,a=s>0&&1>s?0:n),new V(n,a,s)}function j(e){return 16>e?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function H(e){return new O(e>>16,e>>8&255,255&e)}function I(e){return H(e)+""}function X(e){var t=e[0],r=e[e.length-1];return r>t?[t,r]:[r,t]}function J(e){for(var t=1;e*t%1;)t*=10;return t}function Y(e,t){function r(r){return u[((a.get(r)||("range"===t.t?a.set(r,e.push(r)):0/0))-1)%u.length]}function n(t,r){return Ye(e.length).map(function(e){return t+r*e})}var a,u,o;return r.domain=function(n){if(!arguments.length)return e;e=[],a=new d;for(var u,o=-1,i=n.length;++o<i;)a.has(u=n[o])||a.set(u,e.push(u));return r[t.t].apply(r,t.a)},r.range=function(e){return arguments.length?(u=e,o=0,t={t:"range",a:arguments},r):u},r.rangePoints=function(a,i){arguments.length<2&&(i=0);var s=a[0],l=a[1],c=e.length<2?(s=(s+l)/2,0):(l-s)/(e.length-1+i);return u=n(s+c*i/2,c),o=0,t={t:"rangePoints",a:arguments},r},r.rangeRoundPoints=function(a,i){arguments.length<2&&(i=0);var s=a[0],l=a[1],c=e.length<2?(s=l=Math.round((s+l)/2),0):(l-s)/(e.length-1+i)|0;return u=n(s+Math.round(c*i/2+(l-s-(e.length-1+i)*c)/2),c),o=0,t={t:"rangeRoundPoints",a:arguments},r},r.rangeBands=function(a,i,s){arguments.length<2&&(i=0),arguments.length<3&&(s=i);var l=a[1]<a[0],c=a[l-0],g=a[1-l],f=(g-c)/(e.length-i+2*s);return u=n(c+f*s,f),l&&u.reverse(),o=f*(1-i),t={t:"rangeBands",a:arguments},r},r.rangeRoundBands=function(a,i,s){arguments.length<2&&(i=0),arguments.length<3&&(s=i);var l=a[1]<a[0],c=a[l-0],g=a[1-l],f=Math.floor((g-c)/(e.length-i+2*s));return u=n(c+Math.round((g-c-(e.length-i)*f)/2),f),l&&u.reverse(),o=Math.round(f*(1-i)),t={t:"rangeRoundBands",a:arguments},r},r.rangeBand=function(){return o},r.rangeExtent=function(){return X(t.a[0])},r.copy=function(){return Y(e,t)},r.domain(e)}function W(e,t,r){return function(){var n=r.apply(t,arguments);return n===t?e:n}}function U(e){e.fixed&=-5}function K(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Z(e){e.fixed&=-7}function Q(e){e.fixed|=2}function ee(e){return e}function te(){window.d3_event.preventDefault()}function re(t){var r=".dragsuppress-"+ ++nt,n="click"+r,a=xe(c(t)).on("touchmove"+r,te).on("dragstart"+r,te).on("selectstart"+r,te);if(null==tt&&(tt="onselectstart"in t?!1:e(t.style,"userSelect")),tt){var u=L(t).style,o=u[tt];u[tt]="none"}return function(e){if(a.on(r,null),tt&&(u[tt]=o),e){var t=function(){a.on(n,null)};a.on(n,function(){te(),t()},!0),setTimeout(t,0)}}}function ne(e,t){t.changedTouches&&(t=t.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var n=r.createSVGPoint();if(0>at){var a=c(e);if(a.scrollX||a.scrollY){r=xe("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var u=r[0][0].getScreenCTM();at=!(u.f||u.e),r.remove()}}return at?(n.x=t.pageX,n.y=t.pageY):(n.x=t.clientX,n.y=t.clientY),n=n.matrixTransform(e.getScreenCTM().inverse()),[n.x,n.y]}var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}function ae(){for(var e,t=window.d3_event;e=t.sourceEvent;)t=e;return t}function ue(){return window.d3_event.changedTouches[0].identifier}function oe(e){function t(){for(var t,n=r,a=-1,u=n.length;++a<u;)(t=n[a].on)&&t.apply(this,arguments);return e}var r=[],n=new d;return t.on=function(t,a){var u,o=n.get(t);return arguments.length<2?o&&o.on:(o&&(o.on=null,r=r.slice(0,u=r.indexOf(o)).concat(r.slice(u+1)),n.remove(t)),a&&r.push(n.set(t,{on:a})),e)},t}function ie(){}function se(e){for(var t=new ie,r=0,n=arguments.length;++r<n;)t[arguments[r]]=oe(t);return t.of=function(r,n){return function(a){try{var u=a.sourceEvent=window.d3_event;a.target=e,window.d3_event=a,t[a.type].apply(r,n)}finally{window.d3_event=u}}},t}function le(){for(var e,t=it,r=1/0;t;)t.f?t=e?e.n=t.n:it=t.n:(t.t<r&&(r=t.t),t=(e=t).n);return st=e,r}function ce(){var e=Date.now();for(gt=it;gt;)e>=gt.t&&(gt.f=gt.c(e-gt.t)),gt=gt.n;return e}function ge(){var e=ce(),t=le()-e;t>24?(isFinite(t)&&(clearTimeout(ct),ct=setTimeout(ge,t)),lt=0):(lt=1,ft(ge))}function fe(e,t,r,n,a,u,o){var i,s=1/0;return function l(e,c,g,f,v){if(!(c>u||g>o||n>f||a>v)){if(h=e.point){var h,p=t-e.x,m=r-e.y,d=p*p+m*m;if(s>d){var y=Math.sqrt(s=d);n=t-y,a=r-y,u=t+y,o=r+y,i=h}}for(var w=e.nodes,_=.5*(c+f),x=.5*(g+v),b=t>=_,k=r>=x,M=k<<1|b,N=M+4;N>M;++M)if(e=w[3&M])switch(3&M){case 0:l(e,c,g,_,x);break;case 1:l(e,_,g,f,x);break;case 2:l(e,c,x,_,v);break;case 3:l(e,_,x,f,v)}}}(e,n,a,u,o),i}function ve(e,t,r,n,a,u){if(!e(t,r,n,a,u)){var o=.5*(r+a),i=.5*(n+u),s=t.nodes;s[0]&&ve(e,s[0],r,n,o,i),s[1]&&ve(e,s[1],o,n,a,i),s[2]&&ve(e,s[2],r,i,o,u),s[3]&&ve(e,s[3],o,i,a,u)}}function he(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function pe(e){return"function"==typeof e?e:function(){return e}}function me(e){return e.y}function de(e){return e.x}function ye(e){return e[1]}function we(e){return e[0]}function _e(e,t,r){var n=0,a=0;if(e.charge=0,!e.leaf)for(var u,o=e.nodes,i=o.length,s=-1;++s<i;)u=o[s],null!=u&&(_e(u,t,r),e.charge+=u.charge,n+=u.charge*u.cx,a+=u.charge*u.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var l=t*r[e.point.index];e.charge+=e.pointCharge=l,n+=l*e.point.x,a+=l*e.point.y}e.cx=n/e.charge,e.cy=a/e.charge}var xe,be,ke=960,Me=500,Ne=window.document;be=function(){return xe(Ne.documentElement)};var Ae=be.prototype=[],Se=["webkit","ms","moz","Moz","o","O"],Ce=function(e,t){return t.querySelector(e)},Te=function(e,t){return t.querySelectorAll(e)},qe=function(t,r){var n=t.matches||t[e(t,"matchesSelector")];return(qe=function(e,t){return n.call(e,t)})(t,r)};"function"==typeof Sizzle&&(Ce=function(e,t){return Sizzle(e,t)[0]||null},Te=Sizzle,qe=Sizzle.matchesSelector),Ae.select=function(e){var r,n,a,u,o=[];e=t(e);for(var i=-1,s=this.length;++i<s;){o.push(r=[]),r.parentNode=(a=this[i]).parentNode;for(var l=-1,c=a.length;++l<c;)(u=a[l])?(r.push(n=e.call(u,u.__data__,l,i)),n&&"__data__"in u&&(n.__data__=u.__data__)):r.push(null)}return B(o)};var Ee=[].slice,ze=function(e){return Ee.call(e)};Ae.selectAll=function(e){var t,n,a=[];e=r(e);for(var u=-1,o=this.length;++u<o;)for(var i=this[u],s=-1,l=i.length;++s<l;)(n=i[s])&&(a.push(t=ze(e.call(n,n.__data__,s,u))),t.parentNode=n);return B(a)};var Pe,Be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Pe={prefix:Be,qualify:function(e){var t=e.indexOf(":"),r=e;return t>=0&&(r=e.slice(0,t),e=e.slice(t+1)),Be.hasOwnProperty(r)?{space:Be[r],local:e}:e}},Ae.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var r=this.node();return e=Pe.qualify(e),e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}for(t in e)this.each(n(t,e[t]));return this}return this.each(n(e,t))};var Le,De=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;Le=function(e){return e.replace(De,"\\$&")},Ae.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var r=this.node(),n=(e=i(e)).length,a=-1;if(t=r.classList){for(;++a<n;)if(!t.contains(e[a]))return!1}else for(t=r.getAttribute("class");++a<n;)if(!u(e[a]).test(t))return!1;return!0}for(t in e)this.each(s(t,e[t]));return this}return this.each(s(e,t))},Ae.style=function(e,t,r){var n=arguments.length;if(3>n){if("string"!=typeof e){2>n&&(t="");for(r in e)this.each(l(r,e[r],t));return this}if(2>n){var a=this.node();return c(a).getComputedStyle(a,null).getPropertyValue(e)}r=""}return this.each(l(e,t,r))},Ae.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(g(t,e[t]));return this}return this.each(g(e,t))},Ae.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},Ae.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},Ae.append=function(e){return e=f(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},Ae.insert=function(e,r){return e=f(e),r=t(r),this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},Ae.remove=function(){return this.each(v)};var Ge=[];Ge.append=Ae.append,Ge.empty=Ae.empty,Ge.node=Ae.node,Ge.call=Ae.call,Ge.size=Ae.size,Ge.select=function(e){for(var t,r,n,a,u,o=[],i=-1,s=this.length;++i<s;){n=(a=this[i]).update,o.push(t=[]),t.parentNode=a.parentNode;for(var l=-1,c=a.length;++l<c;)(u=a[l])?(t.push(n[l]=r=e.call(a.parentNode,u.__data__,l,i)),r.__data__=u.__data__):t.push(null)}return B(o)},Ge.insert=function(e,t){return arguments.length<2&&(t=h(this)),Ae.insert.call(this,e,t)};var Fe={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)e[r]=t[r]},Oe="__proto__",Re="\x00";N(d,{has:M,get:function(e){return this._[b(e)]},set:function(e,t){return this._[b(e)]=t},remove:k,keys:x,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:y(t),value:this._[t]});return e},size:_,empty:w,forEach:function(e){for(var t in this._)e.call(this,y(t),this._[t])}}),Ae.data=function(e,t){function r(e,r){var n,a,u,o=e.length,c=r.length,g=Math.min(o,c),f=new Array(c),v=new Array(c),h=new Array(o);if(t){var p,y=new d,w=new Array(o);for(n=-1;++n<o;)y.has(p=t.call(a=e[n],a.__data__,n))?h[n]=a:y.set(p,a),w[n]=p;for(n=-1;++n<c;)(a=y.get(p=t.call(r,u=r[n],n)))?a!==!0&&(f[n]=a,a.__data__=u):v[n]=m(u),y.set(p,!0);for(n=-1;++n<o;)y.get(w[n])!==!0&&(h[n]=e[n])}else{for(n=-1;++n<g;)a=e[n],u=r[n],a?(a.__data__=u,f[n]=a):v[n]=m(u);for(;c>n;++n)v[n]=m(r[n]);for(;o>n;++n)h[n]=e[n]}v.update=f,v.parentNode=f.parentNode=h.parentNode=e.parentNode,i.push(v),s.push(f),l.push(h)}var n,a,u=-1,o=this.length;if(!arguments.length){for(e=new Array(o=(n=this[0]).length);++u<o;)(a=n[u])&&(e[u]=a.__data__);return e}var i=p([]),s=B([]),l=B([]);if("function"==typeof e)for(;++u<o;)r(n=this[u],e.call(n,n.parentNode.__data__,u));else for(;++u<o;)r(n=this[u],e);return s.enter=function(){return i},s.exit=function(){return l},s},Ae.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},Ae.filter=function(e){var t,r,n,a=[];"function"!=typeof e&&(e=A(e));for(var u=0,o=this.length;o>u;u++){a.push(t=[]),t.parentNode=(r=this[u]).parentNode;for(var i=0,s=r.length;s>i;i++)(n=r[i])&&e.call(n,n.__data__,i,u)&&t.push(n)}return B(a)},Ae.order=function(){for(var e=-1,t=this.length;++e<t;)for(var r,n=this[e],a=n.length-1,u=n[a];--a>=0;)(r=n[a])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},Ae.sort=function(e){e=C.apply(this,arguments);for(var t=-1,r=this.length;++t<r;)this[t].sort(e);return this.order()};var Ve;Ve=function(e,t){var r=new d;if(e instanceof d)e.forEach(function(e,t){r.set(e,t)});else if(Array.isArray(e)){var n,a=-1,u=e.length;if(1===arguments.length)for(;++a<u;)r.set(a,e[a]);else for(;++a<u;)r.set(t.call(e,n=e[a],a),n)}else for(var o in e)r.set(o,e[o]);return r};var $e=Ve({mouseenter:"mouseover",mouseleave:"mouseout"});Ae.on=function(e,t,r){var n=arguments.length;if(3>n){if("string"!=typeof e){2>n&&(t=!1);for(r in e)this.each(z(r,e[r],t));return this}if(2>n)return(n=this.node()["__on"+e])&&n._;r=!1}return this.each(z(e,t,r))},Ae.each=function(e){return P(this,function(t,r,n){e.call(t,t.__data__,r,n)})},Ae.call=function(e){var t=ze(arguments);return e.apply(t[0]=this,t),this},Ae.empty=function(){return!this.node()},Ae.node=function(){for(var e=0,t=this.length;t>e;e++)for(var r=this[e],n=0,a=r.length;a>n;n++){var u=r[n];if(u)return u}return null},Ae.size=function(){var e=0;return P(this,function(){++e}),e},xe=function(e){var t;return"string"==typeof e?(t=[Ce(e,Ne)],t.parentNode=Ne.documentElement):(t=[e],t.parentNode=L(e)),B([t])};var je,He=Ve({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});R.prototype.toString=function(){return this.rgb()+""};var Ie=O.prototype=new R;Ie.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,r=this.g,n=this.b,a=30;return t||r||n?(t&&a>t&&(t=a),r&&a>r&&(r=a),n&&a>n&&(n=a),new O(Math.min(255,t/e),Math.min(255,r/e),Math.min(255,n/e))):new O(a,a,a)},Ie.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new O(e*this.r,e*this.g,e*this.b)};var Xe=V.prototype=new R;Xe.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new V(this.h,this.s,this.l/e)},Xe.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new V(this.h,this.s,e*this.l)},Xe.rgb=function(){return D(this.h,this.s,this.l)},Ie.hsl=function(){return $(this.r,this.g,this.b)},Ie.toString=function(){return"#"+j(this.r)+j(this.g)+j(this.b)};var Je,Ye,We=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(I),Ue=Math.abs;Ye=function(e,t,r){if(arguments.length<3&&(r=1,arguments.length<2&&(t=e,e=0)),(t-e)/r===1/0)throw new Error("infinite range");var n,a=[],u=J(Ue(r)),o=-1;if(e*=u,t*=u,r*=u,0>r)for(;(n=e+r*++o)>t;)a.push(n/u);else for(;(n=e+r*++o)<t;)a.push(n/u);return a},Je=function(){return Y([],{t:"range",a:[[]]})},je=function(){return Je().range(We)};var Ke,Ze,Qe=je();Ze=function(e,t){for(var r,n=1,a=arguments.length;++n<a;)e[r=arguments[n]]=W(e,t,t[r]);return e};var et,tt,rt,nt=0,at=window.navigator&&/WebKit/.test(window.navigator.userAgent)?-1:0;rt=function(e,t,r){if(arguments.length<3&&(r=t,t=ae().changedTouches),t)for(var n,a=0,u=t.length;u>a;++a)if((n=t[a]).identifier===r)return ne(e,n)};var ut;ut=function(e){return ne(e,ae())},ie.prototype.on=function(e,t){var r=e.indexOf("."),n="";if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e)return arguments.length<2?this[e].on(n):this[e].on(n,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(n,null);return this}},et=function(){function e(){this.on("mousedown.drag",a).on("touchstart.drag",u)}function t(e,t,a,u,o){return function(){function i(){var e,r,n=t(f,p);n&&(e=n[0]-w[0],r=n[1]-w[1],h|=e|r,w=n,v({type:"drag",x:n[0]+l[0],y:n[1]+l[1],dx:e,dy:r}))}function s(){t(f,p)&&(d.on(u+m,null).on(o+m,null),y(h&&window.d3_event.target===g),v({type:"dragend"}))}var l,c=this,g=window.d3_event.target,f=c.parentNode,v=r.of(c,arguments),h=0,p=e(),m=".drag"+(null==p?"":"-"+p),d=xe(a(g)).on(u+m,i).on(o+m,s),y=re(g),w=t(f,p);n?(l=n.apply(c,arguments),l=[l.x-w[0],l.y-w[1]]):l=[0,0],v({type:"dragstart"})}}var r=se(e,"drag","dragstart","dragend"),n=null,a=t(T,ut,c,"mousemove","mouseup"),u=t(ue,rt,ee,"touchmove","touchend");return e.origin=function(t){return arguments.length?(n=t,e):n},Ze(e,r,"on")};var ot,it,st,lt,ct,gt,ft=window[e(window,"requestAnimationFrame")]||function(e){setTimeout(e,17)};ot=function(e,t,r){var n=arguments.length;2>n&&(t=0),3>n&&(r=Date.now());var a=r+t,u={c:e,t:a,f:!1,n:null};st?st.n=u:it=u,st=u,lt||(ct=clearTimeout(ct),lt=1,ft(ge))};var vt;vt=function(e,t,r,n,a){function u(e){function u(e,t,r,n,a,u,o,i){if(!isNaN(r)&&!isNaN(n))if(e.leaf){var s=e.x,c=e.y;if(null!=s)if(Ue(s-r)+Ue(c-n)<.01)l(e,t,r,n,a,u,o,i);else{var g=e.point;e.x=e.y=e.point=null,l(e,g,s,c,a,u,o,i),l(e,t,r,n,a,u,o,i)}else e.x=r,e.y=n,e.point=t}else l(e,t,r,n,a,u,o,i)}function l(e,t,r,n,a,o,i,s){var l=.5*(a+i),c=.5*(o+s),g=r>=l,f=n>=c,v=f<<1|g;e.leaf=!1,e=e.nodes[v]||(e.nodes[v]=he()),g?a=l:i=l,f?o=c:s=c,u(e,t,r,n,a,o,i,s)}var c,g,f,v,h,p,m,d,y,w=pe(i),_=pe(s);if(null!=t)p=t,m=r,d=n,y=a;else if(d=y=-(p=m=1/0),g=[],f=[],h=e.length,o)for(v=0;h>v;++v)c=e[v],c.x<p&&(p=c.x),c.y<m&&(m=c.y),c.x>d&&(d=c.x),c.y>y&&(y=c.y),g.push(c.x),f.push(c.y);else for(v=0;h>v;++v){var x=+w(c=e[v],v),b=+_(c,v);p>x&&(p=x),m>b&&(m=b),x>d&&(d=x),b>y&&(y=b),g.push(x),f.push(b)}var k=d-p,M=y-m;k>M?y=m+k:d=p+M;var N=he();if(N.add=function(e){u(N,e,+w(e,++v),+_(e,v),p,m,d,y)},N.visit=function(e){ve(e,N,p,m,d,y)},N.find=function(e){return fe(N,e[0],e[1],p,m,d,y)},v=-1,null==t){for(;++v<h;)u(N,e[v],g[v],f[v],p,m,d,y);--v}else e.forEach(N.add);return g=f=e=c=null,N}var o,i=we,s=ye;return(o=arguments.length)?(i=de,s=me,3===o&&(a=r,n=t,r=t=0),u(e)):(u.x=function(e){return arguments.length?(i=e,u):i},u.y=function(e){return arguments.length?(s=e,u):s},u.extent=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=+e[0][0],r=+e[0][1],n=+e[1][0],a=+e[1][1]),u):null==t?null:[[t,r],[n,a]]},u.size=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=r=0,n=+e[0],a=+e[1]),u):null==t?null:[n-t,a-r]},u)};var ht,pt=20,mt=1,dt=1/0;ht=function(){for(var e=new ie,t=-1,r=arguments.length;++t<r;)e[arguments[t]]=oe(e);return e},Ke=function(){function e(e){return function(t,r,n,a){if(t.point!==e){var u=t.cx-e.x,o=t.cy-e.y,i=a-r,s=u*u+o*o;if(s>i*i/m){if(h>s){var l=t.charge/s;e.px-=u*l,e.py-=o*l}return!0}if(t.point&&s&&h>s){var l=t.pointCharge/s;e.px-=u*l,e.py-=o*l}}return!t.charge}}function t(e){e.px=window.d3_event.x,e.py=window.d3_event.y,i.resume()}var r,n,a,u,o,i={},s=ht("start","tick","end"),l=[1,1],c=.9,g=pt,f=mt,v=-30,h=dt,p=.1,m=.64,d=[],y=[];return i.tick=function(){if((n*=.99)<.005)return s.end({type:"end",alpha:n=0}),!0;var t,r,i,g,f,h,m,w,_,x=d.length,b=y.length;for(r=0;b>r;++r)i=y[r],g=i.source,f=i.target,w=f.x-g.x,_=f.y-g.y,(h=w*w+_*_)&&(h=n*u[r]*((h=Math.sqrt(h))-a[r])/h,w*=h,_*=h,f.x-=w*(m=g.weight/(f.weight+g.weight)),f.y-=_*m,g.x+=w*(m=1-m),g.y+=_*m);if((m=n*p)&&(w=l[0]/2,_=l[1]/2,r=-1,m))for(;++r<x;)i=d[r],i.x+=(w-i.x)*m,i.y+=(_-i.y)*m;if(v)for(_e(t=vt(d),n,o),r=-1;++r<x;)(i=d[r]).fixed||t.visit(e(i));for(r=-1;++r<x;)i=d[r],i.fixed?(i.x=i.px,i.y=i.py):(i.x-=(i.px-(i.px=i.x))*c,i.y-=(i.py-(i.py=i.y))*c);s.tick({type:"tick",alpha:n})},i.nodes=function(e){return arguments.length?(d=e,i):d},i.links=function(e){return arguments.length?(y=e,i):y},i.size=function(e){return arguments.length?(l=e,i):l},i.linkDistance=function(e){return arguments.length?(g="function"==typeof e?e:+e,i):g},i.distance=i.linkDistance,i.linkStrength=function(e){return arguments.length?(f="function"==typeof e?e:+e,i):f},i.friction=function(e){return arguments.length?(c=+e,i):c},i.charge=function(e){return arguments.length?(v="function"==typeof e?e:+e,i):v},i.chargeDistance=function(e){return arguments.length?(h=e*e,i):Math.sqrt(h)},i.gravity=function(e){return arguments.length?(p=+e,i):p},i.theta=function(e){return arguments.length?(m=e*e,i):Math.sqrt(m)},i.alpha=function(e){return arguments.length?(e=+e,n?n=e>0?e:0:e>0&&(s.start({type:"start",alpha:n=e}),ot(i.tick)),i):n},i.start=function(){function e(e,n){if(!r){for(r=new Array(s),i=0;s>i;++i)r[i]=[];for(i=0;c>i;++i){var a=y[i];r[a.source.index].push(a.target),r[a.target.index].push(a.source)}}for(var u,o=r[t],i=-1,l=o.length;++i<l;)if(!isNaN(u=o[i][e]))return u;return Math.random()*n}var t,r,n,s=d.length,c=y.length,h=l[0],p=l[1];for(t=0;s>t;++t)(n=d[t]).index=t,n.weight=0;for(t=0;c>t;++t)n=y[t],"number"==typeof n.source&&(n.source=d[n.source]),"number"==typeof n.target&&(n.target=d[n.target]),++n.source.weight,++n.target.weight;for(t=0;s>t;++t)n=d[t],isNaN(n.x)&&(n.x=e("x",h)),isNaN(n.y)&&(n.y=e("y",p)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(a=[],"function"==typeof g)for(t=0;c>t;++t)a[t]=+g.call(this,y[t],t);else for(t=0;c>t;++t)a[t]=g;if(u=[],"function"==typeof f)for(t=0;c>t;++t)u[t]=+f.call(this,y[t],t);else for(t=0;c>t;++t)u[t]=f;if(o=[],"function"==typeof v)for(t=0;s>t;++t)o[t]=+v.call(this,d[t],t);else for(t=0;s>t;++t)o[t]=v;return i.resume()},i.resume=function(){return i.alpha(.1)},i.stop=function(){return i.alpha(0)},i.drag=function(){return r||(r=et().origin(ee).on("dragstart.force",Q).on("drag.force",t).on("dragend.force",Z)),arguments.length?void this.on("mouseover.force",K).on("mouseout.force",U).call(r):r},Ze(i,s,"on")};var yt=Ke().charge(-120).linkDistance(30).size([ke,Me]),wt={nodes:[{name:"Myriel",group:1},{name:"Napoleon",group:1},{name:"Mlle.Baptistine",group:1},{name:"Mme.Magloire",group:1},{name:"CountessdeLo",group:1},{name:"Geborand",group:1},{name:"Champtercier",group:1},{name:"Cravatte",group:1},{name:"Count",group:1},{name:"OldMan",group:1},{name:"Labarre",group:2},{name:"Valjean",group:2},{name:"Marguerite",group:3},{name:"Mme.deR",group:2},{name:"Isabeau",group:2},{name:"Gervais",group:2},{name:"Tholomyes",group:3},{name:"Listolier",group:3},{name:"Fameuil",group:3},{name:"Blacheville",group:3},{name:"Favourite",group:3},{name:"Dahlia",group:3},{name:"Zephine",group:3},{name:"Fantine",group:3},{name:"Mme.Thenardier",group:4},{name:"Thenardier",group:4},{name:"Cosette",group:5},{name:"Javert",group:4},{name:"Fauchelevent",group:0},{name:"Bamatabois",group:2},{name:"Perpetue",group:3},{name:"Simplice",group:2},{name:"Scaufflaire",group:2},{name:"Woman1",group:2},{name:"Judge",group:2},{name:"Champmathieu",group:2},{name:"Brevet",group:2},{name:"Chenildieu",group:2},{name:"Cochepaille",group:2},{name:"Pontmercy",group:4},{name:"Boulatruelle",group:6},{name:"Eponine",group:4},{name:"Anzelma",group:4},{name:"Woman2",group:5},{name:"MotherInnocent",group:0},{name:"Gribier",group:0},{name:"Jondrette",group:7},{name:"Mme.Burgon",group:7},{name:"Gavroche",group:8},{name:"Gillenormand",group:5},{name:"Magnon",group:5},{name:"Mlle.Gillenormand",group:5},{name:"Mme.Pontmercy",group:5},{name:"Mlle.Vaubois",group:5},{name:"Lt.Gillenormand",group:5},{name:"Marius",group:8},{name:"BaronessT",group:5},{name:"Mabeuf",group:8},{name:"Enjolras",group:8},{name:"Combeferre",group:8},{name:"Prouvaire",group:8},{name:"Feuilly",group:8},{name:"Courfeyrac",group:8},{name:"Bahorel",group:8},{name:"Bossuet",group:8},{name:"Joly",group:8},{name:"Grantaire",group:8},{name:"MotherPlutarch",group:9},{name:"Gueulemer",group:4},{name:"Babet",group:4},{name:"Claquesous",group:4},{name:"Montparnasse",group:4},{name:"Toussaint",group:5},{name:"Child1",group:10},{name:"Child2",group:10},{name:"Brujon",group:4},{name:"Mme.Hucheloup",group:8}],links:[{source:1,target:0,value:1},{source:2,target:0,value:8},{source:3,target:0,value:10},{source:3,target:2,value:6},{source:4,target:0,value:1},{source:5,target:0,value:1},{source:6,target:0,value:1},{source:7,target:0,value:1},{source:8,target:0,value:2},{source:9,target:0,value:1},{source:11,target:10,value:1},{source:11,target:3,value:3},{source:11,target:2,value:3},{source:11,target:0,value:5},{source:12,target:11,value:1},{source:13,target:11,value:1},{source:14,target:11,value:1},{source:15,target:11,value:1},{source:17,target:16,value:4},{source:18,target:16,value:4},{source:18,target:17,value:4},{source:19,target:16,value:4},{source:19,target:17,value:4},{source:19,target:18,value:4},{source:20,target:16,value:3},{source:20,target:17,value:3},{source:20,target:18,value:3},{source:20,target:19,value:4},{source:21,target:16,value:3},{source:21,target:17,value:3},{source:21,target:18,value:3},{source:21,target:19,value:3},{source:21,target:20,value:5},{source:22,target:16,value:3},{source:22,target:17,value:3},{source:22,target:18,value:3},{source:22,target:19,value:3},{source:22,target:20,value:4},{source:22,target:21,value:4},{source:23,target:16,value:3},{source:23,target:17,value:3},{source:23,target:18,value:3},{source:23,target:19,value:3},{source:23,target:20,value:4},{source:23,target:21,value:4},{source:23,target:22,value:4},{source:23,target:12,value:2},{source:23,target:11,value:9},{source:24,target:23,value:2},{source:24,target:11,value:7},{source:25,target:24,value:13},{source:25,target:23,value:1},{source:25,target:11,value:12},{source:26,target:24,value:4},{source:26,target:11,value:31},{source:26,target:16,value:1},{source:26,target:25,value:1},{source:27,target:11,value:17},{source:27,target:23,value:5},{source:27,target:25,value:5},{source:27,target:24,value:1
},{source:27,target:26,value:1},{source:28,target:11,value:8},{source:28,target:27,value:1},{source:29,target:23,value:1},{source:29,target:27,value:1},{source:29,target:11,value:2},{source:30,target:23,value:1},{source:31,target:30,value:2},{source:31,target:11,value:3},{source:31,target:23,value:2},{source:31,target:27,value:1},{source:32,target:11,value:1},{source:33,target:11,value:2},{source:33,target:27,value:1},{source:34,target:11,value:3},{source:34,target:29,value:2},{source:35,target:11,value:3},{source:35,target:34,value:3},{source:35,target:29,value:2},{source:36,target:34,value:2},{source:36,target:35,value:2},{source:36,target:11,value:2},{source:36,target:29,value:1},{source:37,target:34,value:2},{source:37,target:35,value:2},{source:37,target:36,value:2},{source:37,target:11,value:2},{source:37,target:29,value:1},{source:38,target:34,value:2},{source:38,target:35,value:2},{source:38,target:36,value:2},{source:38,target:37,value:2},{source:38,target:11,value:2},{source:38,target:29,value:1},{source:39,target:25,value:1},{source:40,target:25,value:1},{source:41,target:24,value:2},{source:41,target:25,value:3},{source:42,target:41,value:2},{source:42,target:25,value:2},{source:42,target:24,value:1},{source:43,target:11,value:3},{source:43,target:26,value:1},{source:43,target:27,value:1},{source:44,target:28,value:3},{source:44,target:11,value:1},{source:45,target:28,value:2},{source:47,target:46,value:1},{source:48,target:47,value:2},{source:48,target:25,value:1},{source:48,target:27,value:1},{source:48,target:11,value:1},{source:49,target:26,value:3},{source:49,target:11,value:2},{source:50,target:49,value:1},{source:50,target:24,value:1},{source:51,target:49,value:9},{source:51,target:26,value:2},{source:51,target:11,value:2},{source:52,target:51,value:1},{source:52,target:39,value:1},{source:53,target:51,value:1},{source:54,target:51,value:2},{source:54,target:49,value:1},{source:54,target:26,value:1},{source:55,target:51,value:6},{source:55,target:49,value:12},{source:55,target:39,value:1},{source:55,target:54,value:1},{source:55,target:26,value:21},{source:55,target:11,value:19},{source:55,target:16,value:1},{source:55,target:25,value:2},{source:55,target:41,value:5},{source:55,target:48,value:4},{source:56,target:49,value:1},{source:56,target:55,value:1},{source:57,target:55,value:1},{source:57,target:41,value:1},{source:57,target:48,value:1},{source:58,target:55,value:7},{source:58,target:48,value:7},{source:58,target:27,value:6},{source:58,target:57,value:1},{source:58,target:11,value:4},{source:59,target:58,value:15},{source:59,target:55,value:5},{source:59,target:48,value:6},{source:59,target:57,value:2},{source:60,target:48,value:1},{source:60,target:58,value:4},{source:60,target:59,value:2},{source:61,target:48,value:2},{source:61,target:58,value:6},{source:61,target:60,value:2},{source:61,target:59,value:5},{source:61,target:57,value:1},{source:61,target:55,value:1},{source:62,target:55,value:9},{source:62,target:58,value:17},{source:62,target:59,value:13},{source:62,target:48,value:7},{source:62,target:57,value:2},{source:62,target:41,value:1},{source:62,target:61,value:6},{source:62,target:60,value:3},{source:63,target:59,value:5},{source:63,target:48,value:5},{source:63,target:62,value:6},{source:63,target:57,value:2},{source:63,target:58,value:4},{source:63,target:61,value:3},{source:63,target:60,value:2},{source:63,target:55,value:1},{source:64,target:55,value:5},{source:64,target:62,value:12},{source:64,target:48,value:5},{source:64,target:63,value:4},{source:64,target:58,value:10},{source:64,target:61,value:6},{source:64,target:60,value:2},{source:64,target:59,value:9},{source:64,target:57,value:1},{source:64,target:11,value:1},{source:65,target:63,value:5},{source:65,target:64,value:7},{source:65,target:48,value:3},{source:65,target:62,value:5},{source:65,target:58,value:5},{source:65,target:61,value:5},{source:65,target:60,value:2},{source:65,target:59,value:5},{source:65,target:57,value:1},{source:65,target:55,value:2},{source:66,target:64,value:3},{source:66,target:58,value:3},{source:66,target:59,value:1},{source:66,target:62,value:2},{source:66,target:65,value:2},{source:66,target:48,value:1},{source:66,target:63,value:1},{source:66,target:61,value:1},{source:66,target:60,value:1},{source:67,target:57,value:3},{source:68,target:25,value:5},{source:68,target:11,value:1},{source:68,target:24,value:1},{source:68,target:27,value:1},{source:68,target:48,value:1},{source:68,target:41,value:1},{source:69,target:25,value:6},{source:69,target:68,value:6},{source:69,target:11,value:1},{source:69,target:24,value:1},{source:69,target:27,value:2},{source:69,target:48,value:1},{source:69,target:41,value:1},{source:70,target:25,value:4},{source:70,target:69,value:4},{source:70,target:68,value:4},{source:70,target:11,value:1},{source:70,target:24,value:1},{source:70,target:27,value:1},{source:70,target:41,value:1},{source:70,target:58,value:1},{source:71,target:27,value:1},{source:71,target:69,value:2},{source:71,target:68,value:2},{source:71,target:70,value:2},{source:71,target:11,value:1},{source:71,target:48,value:1},{source:71,target:41,value:1},{source:71,target:25,value:1},{source:72,target:26,value:2},{source:72,target:27,value:1},{source:72,target:11,value:1},{source:73,target:48,value:2},{source:74,target:48,value:2},{source:74,target:73,value:3},{source:75,target:69,value:3},{source:75,target:68,value:3},{source:75,target:25,value:3},{source:75,target:48,value:1},{source:75,target:41,value:1},{source:75,target:70,value:1},{source:75,target:71,value:1},{source:76,target:64,value:1},{source:76,target:65,value:1},{source:76,target:66,value:1},{source:76,target:63,value:1},{source:76,target:62,value:1},{source:76,target:48,value:1},{source:76,target:58,value:1}]},_t=xe("body").append("svg").attr("width",ke).attr("height",Me);yt.nodes(wt.nodes).links(wt.links).start();var xt=_t.selectAll(".link").data(wt.links).enter().append("line").attr("class","link").style("stroke-width",function(e){return Math.sqrt(e.value)}),bt=_t.selectAll(".node").data(wt.nodes).enter().append("circle").attr("class","node").attr("r",5).style("fill",function(e){return Qe(e.group)}).call(yt.drag);bt.append("title").text(function(e){return e.name}),yt.on("tick",function(){xt.attr("x1",function(e){return e.source.x}).attr("y1",function(e){return e.source.y}).attr("x2",function(e){return e.target.x}).attr("y2",function(e){return e.target.y}),bt.attr("cx",function(e){return e.x}).attr("cy",function(e){return e.y})})}();