@daphneb/phonereporting
Version:
2 lines • 180 kB
JavaScript
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("react"));else if("function"==typeof define&&define.amd)define(["react"],n);else{var e=n("object"==typeof exports?require("react"):t.React);for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var e={};return n.m=t,n.c=e,n.p="/",n(0)}([function(t,n,e){t.exports=e(17)},function(n,e){n.exports=t},function(t,n,e){var r,i;!function(){function o(t){return t&&(t.ownerDocument||t.document||t).documentElement}function u(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function a(t,n){return n>t?-1:t>n?1:t>=n?0:NaN}function l(t){return null===t?NaN:+t}function c(t){return!isNaN(t)}function s(t){return{left:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}function f(t){return t.length}function h(t){for(var n=1;t*n%1;)n*=10;return n}function p(t,n){for(var e in n)Object.defineProperty(t.prototype,e,{value:n[e],enumerable:!1})}function g(){this._=Object.create(null)}function d(t){return(t+="")===Tu||t[0]===Su?Su+t:t}function v(t){return(t+="")[0]===Su?t.slice(1):t}function y(t){return d(t)in this._}function m(t){return(t=d(t))in this._&&delete this._[t]}function x(){var t=[];for(var n in this._)t.push(v(n));return t}function b(){var t=0;for(var n in this._)++t;return t}function M(){for(var t in this._)return!1;return!0}function _(){this._=Object.create(null)}function w(t){return t}function P(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function k(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var e=0,r=Eu.length;r>e;++e){var i=Eu[e]+n;if(i in t)return i}}function T(){}function S(){}function E(t){function n(){for(var n,r=e,i=-1,o=r.length;++i<o;)(n=r[i].on)&&n.apply(this,arguments);return t}var e=[],r=new g;return n.on=function(n,i){var o,u=r.get(n);return arguments.length<2?u&&u.on:(u&&(u.on=null,e=e.slice(0,o=e.indexOf(u)).concat(e.slice(o+1)),r.remove(n)),i&&e.push(r.set(n,{on:i})),t)},n}function C(){pu.event.preventDefault()}function A(){for(var t,n=pu.event;t=n.sourceEvent;)n=t;return n}function N(t){for(var n=new S,e=0,r=arguments.length;++e<r;)n[arguments[e]]=E(n);return n.of=function(e,r){return function(i){try{var o=i.sourceEvent=pu.event;i.target=t,pu.event=i,n[i.type].apply(e,r)}finally{pu.event=o}}},n}function O(t){return Au(t,Ru),t}function L(t){return"function"==typeof t?t:function(){return Nu(t,this)}}function R(t){return"function"==typeof t?t:function(){return Ou(t,this)}}function j(t,n){function e(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,n)}function o(){this.setAttributeNS(t.space,t.local,n)}function u(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}function a(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}return t=pu.ns.qualify(t),null==n?t.local?r:e:"function"==typeof n?t.local?a:u:t.local?o:i}function D(t){return t.trim().replace(/\s+/g," ")}function z(t){return new RegExp("(?:^|\\s+)"+pu.requote(t)+"(?:\\s+|$)","g")}function q(t){return(t+"").trim().split(/^|\s+/)}function H(t,n){function e(){for(var e=-1;++e<i;)t[e](this,n)}function r(){for(var e=-1,r=n.apply(this,arguments);++e<i;)t[e](this,r)}t=q(t).map(U);var i=t.length;return"function"==typeof n?r:e}function U(t){var n=z(t);return function(e,r){if(i=e.classList)return r?i.add(t):i.remove(t);var i=e.getAttribute("class")||"";r?(n.lastIndex=0,n.test(i)||e.setAttribute("class",D(i+" "+t))):e.setAttribute("class",D(i.replace(n," ")))}}function F(t,n,e){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,n,e)}function o(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}return null==n?r:"function"==typeof n?o:i}function Y(t,n){function e(){delete this[t]}function r(){this[t]=n}function i(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}return null==n?e:"function"==typeof n?i:r}function X(t){function n(){var n=this.ownerDocument,e=this.namespaceURI;return e===ju&&n.documentElement.namespaceURI===ju?n.createElement(t):n.createElementNS(e,t)}function e(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"==typeof t?t:(t=pu.ns.qualify(t)).local?e:n}function I(){var t=this.parentNode;t&&t.removeChild(this)}function G(t){return{__data__:t}}function W(t){return function(){return Lu(this,t)}}function Z(t){return arguments.length||(t=a),function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}}function V(t,n){for(var e=0,r=t.length;r>e;e++)for(var i,o=t[e],u=0,a=o.length;a>u;u++)(i=o[u])&&n(i,u,e);return t}function B(t){return Au(t,zu),t}function $(t){var n,e;return function(r,i,o){var u,a=t[o].update,l=a.length;for(o!=e&&(e=o,n=0),i>=n&&(n=i+1);!(u=a[n])&&++n<l;);return u}}function J(t,n,e){function r(){var n=this[u];n&&(this.removeEventListener(t,n,n.$),delete this[u])}function i(){var i=l(n,du(arguments));r.call(this),this.addEventListener(t,this[u]=i,i.$=e),i._=n}function o(){var n,e=new RegExp("^__on([^.]+)"+pu.requote(t)+"$");for(var r in this)if(n=r.match(e)){var i=this[r];this.removeEventListener(n[1],i,i.$),delete this[r]}}var u="__on"+t,a=t.indexOf("."),l=K;a>0&&(t=t.slice(0,a));var c=qu.get(t);return c&&(t=c,l=Q),a?n?i:r:n?T:o}function K(t,n){return function(e){var r=pu.event;pu.event=e,n[0]=this.__data__;try{t.apply(this,n)}finally{pu.event=r}}}function Q(t,n){var e=K(t,n);return function(t){var n=this,r=t.relatedTarget;r&&(r===n||8&r.compareDocumentPosition(n))||e.call(n,t)}}function tt(t){var n=".dragsuppress-"+ ++Uu,e="click"+n,r=pu.select(u(t)).on("touchmove"+n,C).on("dragstart"+n,C).on("selectstart"+n,C);if(null==Hu&&(Hu="onselectstart"in t?!1:k(t.style,"userSelect")),Hu){var i=o(t).style,a=i[Hu];i[Hu]="none"}return function(t){if(r.on(n,null),Hu&&(i[Hu]=a),t){var o=function(){r.on(e,null)};r.on(e,function(){C(),o()},!0),setTimeout(o,0)}}}function nt(t,n){n.changedTouches&&(n=n.changedTouches[0]);var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();if(0>Fu){var i=u(t);if(i.scrollX||i.scrollY){e=pu.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=e[0][0].getScreenCTM();Fu=!(o.f||o.e),e.remove()}}return Fu?(r.x=n.pageX,r.y=n.pageY):(r.x=n.clientX,r.y=n.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var a=t.getBoundingClientRect();return[n.clientX-a.left-t.clientLeft,n.clientY-a.top-t.clientTop]}function et(){return pu.event.changedTouches[0].identifier}function rt(t){return t>0?1:0>t?-1:0}function it(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function ot(t){return t>1?0:-1>t?Iu:Math.acos(t)}function ut(t){return t>1?Zu:-1>t?-Zu:Math.asin(t)}function at(t){return((t=Math.exp(t))-1/t)/2}function lt(t){return((t=Math.exp(t))+1/t)/2}function ct(t){return((t=Math.exp(2*t))-1)/(t+1)}function st(t){return(t=Math.sin(t/2))*t}function ft(){}function ht(t,n,e){return this instanceof ht?(this.h=+t,this.s=+n,void(this.l=+e)):arguments.length<2?t instanceof ht?new ht(t.h,t.s,t.l):Tt(""+t,St,ht):new ht(t,n,e)}function pt(t,n,e){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?o+(u-o)*t/60:180>t?u:240>t?o+(u-o)*(240-t)/60:o}function i(t){return Math.round(255*r(t))}var o,u;return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)?0:0>n?0:n>1?1:n,e=0>e?0:e>1?1:e,u=.5>=e?e*(1+n):e+n-e*n,o=2*e-u,new _t(i(t+120),i(t),i(t-120))}function gt(t,n,e){return this instanceof gt?(this.h=+t,this.c=+n,void(this.l=+e)):arguments.length<2?t instanceof gt?new gt(t.h,t.c,t.l):t instanceof vt?mt(t.l,t.a,t.b):mt((t=Et((t=pu.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new gt(t,n,e)}function dt(t,n,e){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new vt(e,Math.cos(t*=Vu)*n,Math.sin(t)*n)}function vt(t,n,e){return this instanceof vt?(this.l=+t,this.a=+n,void(this.b=+e)):arguments.length<2?t instanceof vt?new vt(t.l,t.a,t.b):t instanceof gt?dt(t.h,t.c,t.l):Et((t=_t(t)).r,t.g,t.b):new vt(t,n,e)}function yt(t,n,e){var r=(t+16)/116,i=r+n/500,o=r-e/200;return i=xt(i)*oa,r=xt(r)*ua,o=xt(o)*aa,new _t(Mt(3.2404542*i-1.5371385*r-.4985314*o),Mt(-.969266*i+1.8760108*r+.041556*o),Mt(.0556434*i-.2040259*r+1.0572252*o))}function mt(t,n,e){return t>0?new gt(Math.atan2(e,n)*Bu,Math.sqrt(n*n+e*e),t):new gt(NaN,NaN,t)}function xt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function bt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function Mt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function _t(t,n,e){return this instanceof _t?(this.r=~~t,this.g=~~n,void(this.b=~~e)):arguments.length<2?t instanceof _t?new _t(t.r,t.g,t.b):Tt(""+t,_t,pt):new _t(t,n,e)}function wt(t){return new _t(t>>16,t>>8&255,255&t)}function Pt(t){return wt(t)+""}function kt(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Tt(t,n,e){var r,i,o,u=0,a=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return n(At(i[0]),At(i[1]),At(i[2]))}return(o=sa.get(t))?n(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(u=(3840&o)>>4,u=u>>4|u,a=240&o,a=a>>4|a,l=15&o,l=l<<4|l):7===t.length&&(u=(16711680&o)>>16,a=(65280&o)>>8,l=255&o)),n(u,a,l))}function St(t,n,e){var r,i,o=Math.min(t/=255,n/=255,e/=255),u=Math.max(t,n,e),a=u-o,l=(u+o)/2;return a?(i=.5>l?a/(u+o):a/(2-u-o),r=t==u?(n-e)/a+(e>n?6:0):n==u?(e-t)/a+2:(t-n)/a+4,r*=60):(r=NaN,i=l>0&&1>l?0:r),new ht(r,i,l)}function Et(t,n,e){t=Ct(t),n=Ct(n),e=Ct(e);var r=bt((.4124564*t+.3575761*n+.1804375*e)/oa),i=bt((.2126729*t+.7151522*n+.072175*e)/ua),o=bt((.0193339*t+.119192*n+.9503041*e)/aa);return vt(116*i-16,500*(r-i),200*(i-o))}function Ct(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function At(t){var n=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*n):n}function Nt(t){return"function"==typeof t?t:function(){return t}}function Ot(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Lt(n,e,t,r)}}function Lt(t,n,e,r){function i(){var t,n=l.status;if(!n&&jt(l)||n>=200&&300>n||304===n){try{t=e.call(o,l)}catch(r){return void u.error.call(o,r)}u.load.call(o,t)}else u.error.call(o,l)}var o={},u=pu.dispatch("beforesend","progress","load","error"),a={},l=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(t)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=i:l.onreadystatechange=function(){l.readyState>3&&i()},l.onprogress=function(t){var n=pu.event;pu.event=t;try{u.progress.call(o,l)}finally{pu.event=n}},o.header=function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?a[t]:(null==n?delete a[t]:a[t]=n+"",o)},o.mimeType=function(t){return arguments.length?(n=null==t?null:t+"",o):n},o.responseType=function(t){return arguments.length?(c=t,o):c},o.response=function(t){return e=t,o},["get","post"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(du(arguments)))}}),o.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),l.open(e,t,!0),null==n||"accept"in a||(a.accept=n+",*/*"),l.setRequestHeader)for(var s in a)l.setRequestHeader(s,a[s]);return null!=n&&l.overrideMimeType&&l.overrideMimeType(n),null!=c&&(l.responseType=c),null!=i&&o.on("error",i).on("load",function(t){i(null,t)}),u.beforesend.call(o,l),l.send(null==r?null:r),o},o.abort=function(){return l.abort(),o},pu.rebind(o,u,"on"),null==r?o:o.get(Rt(r))}function Rt(t){return 1===t.length?function(n,e){t(null==n?e:null)}:t}function jt(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function Dt(t,n,e){var r=arguments.length;2>r&&(n=0),3>r&&(e=Date.now());var i=e+n,o={c:t,t:i,n:null};return ha?ha.n=o:fa=o,ha=o,pa||(ga=clearTimeout(ga),pa=1,da(zt)),o}function zt(){var t=qt(),n=Ht()-t;n>24?(isFinite(n)&&(clearTimeout(ga),ga=setTimeout(zt,n)),pa=0):(pa=1,da(zt))}function qt(){for(var t=Date.now(),n=fa;n;)t>=n.t&&n.c(t-n.t)&&(n.c=null),n=n.n;return t}function Ht(){for(var t,n=fa,e=1/0;n;)n.c?(n.t<e&&(e=n.t),n=(t=n).n):n=t?t.n=n.n:fa=n.n;return ha=t,e}function Ut(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Ft(t,n){var e=Math.pow(10,3*ku(8-n));return{scale:n>8?function(t){return t/e}:function(t){return t*e},symbol:t}}function Yt(t){var n=t.decimal,e=t.thousands,r=t.grouping,i=t.currency,o=r&&e?function(t,n){for(var i=t.length,o=[],u=0,a=r[0],l=0;i>0&&a>0&&(l+a+1>n&&(a=Math.max(1,n-l)),o.push(t.substring(i-=a,i+a)),!((l+=a+1)>n));)a=r[u=(u+1)%r.length];return o.reverse().join(e)}:w;return function(t){var e=ya.exec(t),r=e[1]||" ",u=e[2]||">",a=e[3]||"-",l=e[4]||"",c=e[5],s=+e[6],f=e[7],h=e[8],p=e[9],g=1,d="",v="",y=!1,m=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===u)&&(c=r="0",u="="),p){case"n":f=!0,p="g";break;case"%":g=100,v="%",p="f";break;case"p":g=100,v="%",p="r";break;case"b":case"o":case"x":case"X":"#"===l&&(d="0"+p.toLowerCase());case"c":m=!1;case"d":y=!0,h=0;break;case"s":g=-1,p="r"}"$"===l&&(d=i[0],v=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=ma.get(p)||Xt;var x=c&&f;return function(t){var e=v;if(y&&t%1)return"";var i=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===a?"":a;if(0>g){var l=pu.formatPrefix(t,h);t=l.scale(t),e=l.symbol+v}else t*=g;t=p(t,h);var b,M,_=t.lastIndexOf(".");if(0>_){var w=m?t.lastIndexOf("e"):-1;0>w?(b=t,M=""):(b=t.substring(0,w),M=t.substring(w))}else b=t.substring(0,_),M=n+t.substring(_+1);!c&&f&&(b=o(b,1/0));var P=d.length+b.length+M.length+(x?0:i.length),k=s>P?new Array(P=s-P+1).join(r):"";return x&&(b=o(k+b,k.length?s-M.length:1/0)),i+=d,t=b+M,("<"===u?i+t+k:">"===u?k+i+t:"^"===u?k.substring(0,P>>=1)+i+t+k.substring(P):i+(x?t:k+t))+e}}}function Xt(t){return t+""}function It(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Gt(t,n,e){function r(n){var e=t(n),r=o(e,1);return r-n>n-e?e:r}function i(e){return n(e=t(new ba(e-1)),1),e}function o(t,e){return n(t=new ba(+t),e),t}function u(t,r,o){var u=i(t),a=[];if(o>1)for(;r>u;)e(u)%o||a.push(new Date(+u)),n(u,1);else for(;r>u;)a.push(new Date(+u)),n(u,1);return a}function a(t,n,e){try{ba=It;var r=new It;return r._=t,u(r,n,e)}finally{ba=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=o,t.range=u;var l=t.utc=Wt(t);return l.floor=l,l.round=Wt(r),l.ceil=Wt(i),l.offset=Wt(o),l.range=a,t}function Wt(t){return function(n,e){try{ba=It;var r=new It;return r._=n,t(r,e)._}finally{ba=Date}}}function Zt(t){function n(t){function n(n){for(var e,i,o,u=[],a=-1,l=0;++a<r;)37===t.charCodeAt(a)&&(u.push(t.slice(l,a)),null!=(i=_a[e=t.charAt(++a)])&&(e=t.charAt(++a)),(o=E[e])&&(e=o(n,null==i?"e"===e?" ":"0":i)),u.push(e),l=a+1);return u.push(t.slice(l,a)),u.join("")}var r=t.length;return n.parse=function(n){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=e(r,t,n,0);if(i!=n.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var o=null!=r.Z&&ba!==It,u=new(o?It:ba);return"j"in r?u.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),u.setFullYear(r.y,0,1),u.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(u.getDay()+5)%7:r.w+7*r.U-(u.getDay()+6)%7)):u.setFullYear(r.y,r.m,r.d),u.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),o?u._:u},n.toString=function(){return t},n}function e(t,n,e,r){for(var i,o,u,a=0,l=n.length,c=e.length;l>a;){if(r>=c)return-1;if(i=n.charCodeAt(a++),37===i){if(u=n.charAt(a++),o=C[u in _a?n.charAt(a++):u],!o||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function r(t,n,e){_.lastIndex=0;var r=_.exec(n.slice(e));return r?(t.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function i(t,n,e){b.lastIndex=0;var r=b.exec(n.slice(e));return r?(t.w=M.get(r[0].toLowerCase()),e+r[0].length):-1}function o(t,n,e){T.lastIndex=0;var r=T.exec(n.slice(e));return r?(t.m=S.get(r[0].toLowerCase()),e+r[0].length):-1}function u(t,n,e){P.lastIndex=0;var r=P.exec(n.slice(e));return r?(t.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function a(t,n,r){return e(t,E.c.toString(),n,r)}function l(t,n,r){return e(t,E.x.toString(),n,r)}function c(t,n,r){return e(t,E.X.toString(),n,r)}function s(t,n,e){var r=x.get(n.slice(e,e+=2).toLowerCase());return null==r?-1:(t.p=r,e)}var f=t.dateTime,h=t.date,p=t.time,g=t.periods,d=t.days,v=t.shortDays,y=t.months,m=t.shortMonths;n.utc=function(t){function e(t){try{ba=It;var n=new ba;return n._=t,r(n)}finally{ba=Date}}var r=n(t);return e.parse=function(t){try{ba=It;var n=r.parse(t);return n&&n._}finally{ba=Date}},e.toString=r.toString,e},n.multi=n.utc.multi=gn;var x=pu.map(),b=Bt(d),M=$t(d),_=Bt(v),w=$t(v),P=Bt(y),k=$t(y),T=Bt(m),S=$t(m);g.forEach(function(t,n){x.set(t.toLowerCase(),n)});var E={a:function(t){return v[t.getDay()]},A:function(t){return d[t.getDay()]},b:function(t){return m[t.getMonth()]},B:function(t){return y[t.getMonth()]},c:n(f),d:function(t,n){return Vt(t.getDate(),n,2)},e:function(t,n){return Vt(t.getDate(),n,2)},H:function(t,n){return Vt(t.getHours(),n,2)},I:function(t,n){return Vt(t.getHours()%12||12,n,2)},j:function(t,n){return Vt(1+xa.dayOfYear(t),n,3)},L:function(t,n){return Vt(t.getMilliseconds(),n,3)},m:function(t,n){return Vt(t.getMonth()+1,n,2)},M:function(t,n){return Vt(t.getMinutes(),n,2)},p:function(t){return g[+(t.getHours()>=12)]},S:function(t,n){return Vt(t.getSeconds(),n,2)},U:function(t,n){return Vt(xa.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return Vt(xa.mondayOfYear(t),n,2)},x:n(h),X:n(p),y:function(t,n){return Vt(t.getFullYear()%100,n,2)},Y:function(t,n){return Vt(t.getFullYear()%1e4,n,4)},Z:hn,"%":function(){return"%"}},C={a:r,A:i,b:o,B:u,c:a,d:un,e:un,H:ln,I:ln,j:an,L:fn,m:on,M:cn,p:s,S:sn,U:Kt,w:Jt,W:Qt,x:l,X:c,y:nn,Y:tn,Z:en,"%":pn};return n}function Vt(t,n,e){var r=0>t?"-":"",i=(r?-t:t)+"",o=i.length;return r+(e>o?new Array(e-o+1).join(n)+i:i)}function Bt(t){return new RegExp("^(?:"+t.map(pu.requote).join("|")+")","i")}function $t(t){for(var n=new g,e=-1,r=t.length;++e<r;)n.set(t[e].toLowerCase(),e);return n}function Jt(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Kt(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function Qt(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function tn(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function nn(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e,e+2));return r?(t.y=rn(+r[0]),e+r[0].length):-1}function en(t,n,e){return/^[+-]\d{4}$/.test(n=n.slice(e,e+5))?(t.Z=-n,e+5):-1}function rn(t){return t+(t>68?1900:2e3)}function on(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function un(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function an(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e,e+3));return r?(t.j=+r[0],e+r[0].length):-1}function ln(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function cn(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function sn(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function fn(t,n,e){wa.lastIndex=0;var r=wa.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function hn(t){var n=t.getTimezoneOffset(),e=n>0?"-":"+",r=ku(n)/60|0,i=ku(n)%60;return e+Vt(r,"0",2)+Vt(i,"0",2)}function pn(t,n,e){Pa.lastIndex=0;var r=Pa.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function gn(t){for(var n=t.length,e=-1;++e<n;)t[e][0]=this(t[e][0]);return function(n){for(var e=0,r=t[e];!r[1](n);)r=t[++e];return r[0](n)}}function dn(){}function vn(t,n,e){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}function yn(t,n){t&&Ea.hasOwnProperty(t.type)&&Ea[t.type](t,n)}function mn(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function xn(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)mn(t[e],n,1);n.polygonEnd()}function bn(){function t(t,n){t*=Vu,n=n*Vu/2+Iu/4;var e=t-r,u=e>=0?1:-1,a=u*e,l=Math.cos(n),c=Math.sin(n),s=o*c,f=i*l+s*Math.cos(a),h=s*u*Math.sin(a);Aa.add(Math.atan2(h,f)),r=t,i=l,o=c}var n,e,r,i,o;Na.point=function(u,a){Na.point=t,r=(n=u)*Vu,i=Math.cos(a=(e=a)*Vu/2+Iu/4),o=Math.sin(a)},Na.lineEnd=function(){t(n,e)}}function Mn(t){var n=t[0],e=t[1],r=Math.cos(e);return[r*Math.cos(n),r*Math.sin(n),Math.sin(e)]}function _n(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function wn(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Pn(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function kn(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Tn(t){var n=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function Sn(t){return[Math.atan2(t[1],t[0]),ut(t[2])]}function En(t,n){return ku(t[0]-n[0])<Yu&&ku(t[1]-n[1])<Yu}function Cn(t,n){t*=Vu;var e=Math.cos(n*=Vu);An(e*Math.cos(t),e*Math.sin(t),Math.sin(n))}function An(t,n,e){++Oa,Ra+=(t-Ra)/Oa,ja+=(n-ja)/Oa,Da+=(e-Da)/Oa}function Nn(){function t(t,i){t*=Vu;var o=Math.cos(i*=Vu),u=o*Math.cos(t),a=o*Math.sin(t),l=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*l-r*a)*c+(c=r*u-n*l)*c+(c=n*a-e*u)*c),n*u+e*a+r*l);La+=c,za+=c*(n+(n=u)),qa+=c*(e+(e=a)),Ha+=c*(r+(r=l)),An(n,e,r)}var n,e,r;Xa.point=function(i,o){i*=Vu;var u=Math.cos(o*=Vu);n=u*Math.cos(i),e=u*Math.sin(i),r=Math.sin(o),Xa.point=t,An(n,e,r)}}function On(){Xa.point=Cn}function Ln(){function t(t,n){t*=Vu;var e=Math.cos(n*=Vu),u=e*Math.cos(t),a=e*Math.sin(t),l=Math.sin(n),c=i*l-o*a,s=o*u-r*l,f=r*a-i*u,h=Math.sqrt(c*c+s*s+f*f),p=r*u+i*a+o*l,g=h&&-ot(p)/h,d=Math.atan2(h,p);Ua+=g*c,Fa+=g*s,Ya+=g*f,La+=d,za+=d*(r+(r=u)),qa+=d*(i+(i=a)),Ha+=d*(o+(o=l)),An(r,i,o)}var n,e,r,i,o;Xa.point=function(u,a){n=u,e=a,Xa.point=t,u*=Vu;var l=Math.cos(a*=Vu);r=l*Math.cos(u),i=l*Math.sin(u),o=Math.sin(a),An(r,i,o)},Xa.lineEnd=function(){t(n,e),Xa.lineEnd=On,Xa.point=Cn}}function Rn(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return e=n.invert(e,r),e&&t.invert(e[0],e[1])}),e}function jn(){return!0}function Dn(t,n,e,r,i){var o=[],u=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e=t[0],r=t[n];if(En(e,r)){i.lineStart();for(var a=0;n>a;++a)i.point((e=t[a])[0],e[1]);return void i.lineEnd()}var l=new qn(e,t,null,!0),c=new qn(e,null,l,!1);l.o=c,o.push(l),u.push(c),l=new qn(r,t,null,!1),c=new qn(r,null,l,!0),l.o=c,o.push(l),u.push(c)}}),u.sort(n),zn(o),zn(u),o.length){for(var a=0,l=e,c=u.length;c>a;++a)u[a].e=l=!l;for(var s,f,h=o[0];;){for(var p=h,g=!0;p.v;)if((p=p.n)===h)return;s=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(g)for(var a=0,c=s.length;c>a;++a)i.point((f=s[a])[0],f[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(g){s=p.p.z;for(var a=s.length-1;a>=0;--a)i.point((f=s[a])[0],f[1])}else r(p.x,p.p.x,-1,i);p=p.p}p=p.o,s=p.z,g=!g}while(!p.v);i.lineEnd()}}}function zn(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function qn(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function Hn(t,n,e,r){return function(i,o){function u(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&o.point(n,e)}function a(t,n){var e=i(t,n);v.point(e[0],e[1])}function l(){m.point=a,v.lineStart()}function c(){m.point=u,v.lineEnd()}function s(t,n){d.push([t,n]);var e=i(t,n);b.point(e[0],e[1])}function f(){b.lineStart(),d=[]}function h(){s(d[0][0],d[0][1]),b.lineEnd();var t,n=b.clean(),e=x.buffer(),r=e.length;if(d.pop(),g.push(d),d=null,r)if(1&n){t=e[0];var i,r=t.length-1,u=-1;if(r>0){for(M||(o.polygonStart(),M=!0),o.lineStart();++u<r;)o.point((i=t[u])[0],i[1]);o.lineEnd()}}else r>1&&2&n&&e.push(e.pop().concat(e.shift())),p.push(e.filter(Un))}var p,g,d,v=n(o),y=i.invert(r[0],r[1]),m={point:u,lineStart:l,lineEnd:c,polygonStart:function(){m.point=s,m.lineStart=f,m.lineEnd=h,p=[],g=[]},polygonEnd:function(){m.point=u,m.lineStart=l,m.lineEnd=c,p=pu.merge(p);var t=Wn(y,g);p.length?(M||(o.polygonStart(),M=!0),Dn(p,Yn,t,e,o)):t&&(M||(o.polygonStart(),M=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),M&&(o.polygonEnd(),M=!1),p=g=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}},x=Fn(),b=n(x),M=!1;return m}}function Un(t){return t.length>1}function Fn(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,e){t.push([n,e])},lineEnd:T,buffer:function(){var e=n;return n=[],t=null,e},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function Yn(t,n){return((t=t.x)[0]<0?t[1]-Zu-Yu:Zu-t[1])-((n=n.x)[0]<0?n[1]-Zu-Yu:Zu-n[1])}function Xn(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?Iu:-Iu,l=ku(o-e);ku(l-Iu)<Yu?(t.point(e,r=(r+u)/2>0?Zu:-Zu),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&l>=Iu&&(ku(e-i)<Yu&&(e-=i*Yu),ku(o-a)<Yu&&(o-=a*Yu),r=In(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}function In(t,n,e,r){var i,o,u=Math.sin(t-e);return ku(u)>Yu?Math.atan((Math.sin(n)*(o=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(n))*Math.sin(t))/(i*o*u)):(n+r)/2}function Gn(t,n,e,r){var i;if(null==t)i=e*Zu,r.point(-Iu,i),r.point(0,i),r.point(Iu,i),r.point(Iu,0),r.point(Iu,-i),r.point(0,-i),r.point(-Iu,-i),r.point(-Iu,0),r.point(-Iu,i);else if(ku(t[0]-n[0])>Yu){var o=t[0]<n[0]?Iu:-Iu;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}function Wn(t,n){var e=t[0],r=t[1],i=[Math.sin(e),-Math.cos(e),0],o=0,u=0;Aa.reset();for(var a=0,l=n.length;l>a;++a){var c=n[a],s=c.length;if(s)for(var f=c[0],h=f[0],p=f[1]/2+Iu/4,g=Math.sin(p),d=Math.cos(p),v=1;;){v===s&&(v=0),t=c[v];var y=t[0],m=t[1]/2+Iu/4,x=Math.sin(m),b=Math.cos(m),M=y-h,_=M>=0?1:-1,w=_*M,P=w>Iu,k=g*x;if(Aa.add(Math.atan2(k*_*Math.sin(w),d*b+k*Math.cos(w))),o+=P?M+_*Gu:M,P^h>=e^y>=e){var T=wn(Mn(f),Mn(t));Tn(T);var S=wn(i,T);Tn(S);var E=(P^M>=0?-1:1)*ut(S[2]);(r>E||r===E&&(T[0]||T[1]))&&(u+=P^M>=0?1:-1)}if(!v++)break;h=y,g=x,d=b,f=t}}return(-Yu>o||Yu>o&&-Yu>Aa)^1&u}function Zn(t){function n(t,n){return Math.cos(t)*Math.cos(n)>o}function e(t){var e,o,l,c,s;return{lineStart:function(){c=l=!1,s=1},point:function(f,h){var p,g=[f,h],d=n(f,h),v=u?d?0:i(f,h):d?i(f+(0>f?Iu:-Iu),h):0;if(!e&&(c=l=d)&&t.lineStart(),d!==l&&(p=r(e,g),(En(e,p)||En(g,p))&&(g[0]+=Yu,g[1]+=Yu,d=n(g[0],g[1]))),d!==l)s=0,d?(t.lineStart(),p=r(g,e),t.point(p[0],p[1])):(p=r(e,g),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(a&&e&&u^d){var y;v&o||!(y=r(g,e,!0))||(s=0,u?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!d||e&&En(e,g)||t.point(g[0],g[1]),e=g,l=d,o=v},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return s|(c&&l)<<1}}}function r(t,n,e){var r=Mn(t),i=Mn(n),u=[1,0,0],a=wn(r,i),l=_n(a,a),c=a[0],s=l-c*c;if(!s)return!e&&t;var f=o*l/s,h=-o*c/s,p=wn(u,a),g=kn(u,f),d=kn(a,h);Pn(g,d);var v=p,y=_n(g,v),m=_n(v,v),x=y*y-m*(_n(g,g)-1);if(!(0>x)){var b=Math.sqrt(x),M=kn(v,(-y-b)/m);if(Pn(M,g),M=Sn(M),!e)return M;var _,w=t[0],P=n[0],k=t[1],T=n[1];w>P&&(_=w,w=P,P=_);var S=P-w,E=ku(S-Iu)<Yu,C=E||Yu>S;if(!E&&k>T&&(_=k,k=T,T=_),C?E?k+T>0^M[1]<(ku(M[0]-w)<Yu?k:T):k<=M[1]&&M[1]<=T:S>Iu^(w<=M[0]&&M[0]<=P)){var A=kn(v,(-y+b)/m);return Pn(A,g),[M,Sn(A)]}}}function i(n,e){var r=u?t:Iu-t,i=0;return-r>n?i|=1:n>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var o=Math.cos(t),u=o>0,a=ku(o)>Yu,l=be(t,6*Vu);return Hn(n,e,l,u?[0,-t]:[-Iu,t-Iu])}function Vn(t,n,e,r){return function(i){var o,u=i.a,a=i.b,l=u.x,c=u.y,s=a.x,f=a.y,h=0,p=1,g=s-l,d=f-c;if(o=t-l,g||!(o>0)){if(o/=g,0>g){if(h>o)return;p>o&&(p=o)}else if(g>0){if(o>p)return;o>h&&(h=o)}if(o=e-l,g||!(0>o)){if(o/=g,0>g){if(o>p)return;o>h&&(h=o)}else if(g>0){if(h>o)return;p>o&&(p=o)}if(o=n-c,d||!(o>0)){if(o/=d,0>d){if(h>o)return;p>o&&(p=o)}else if(d>0){if(o>p)return;o>h&&(h=o)}if(o=r-c,d||!(0>o)){if(o/=d,0>d){if(o>p)return;o>h&&(h=o)}else if(d>0){if(h>o)return;p>o&&(p=o)}return h>0&&(i.a={x:l+h*g,y:c+h*d}),1>p&&(i.b={x:l+p*g,y:c+p*d}),i}}}}}}function Bn(t,n,e,r){function i(r,i){return ku(r[0]-t)<Yu?i>0?0:3:ku(r[0]-e)<Yu?i>0?2:1:ku(r[1]-n)<Yu?i>0?1:0:i>0?3:2}function o(t,n){return u(t.x,n.x)}function u(t,n){var e=i(t,1),r=i(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){function l(t){for(var n=0,e=v.length,r=t[1],i=0;e>i;++i)for(var o,u=1,a=v[i],l=a.length,c=a[0];l>u;++u)o=a[u],c[1]<=r?o[1]>r&&it(c,o,t)>0&&++n:o[1]<=r&&it(c,o,t)<0&&--n,c=o;return 0!==n}function c(o,a,l,c){var s=0,f=0;if(null==o||(s=i(o,l))!==(f=i(a,l))||u(o,a)<0^l>0){do c.point(0===s||3===s?t:e,s>1?r:n);while((s=(s+l+4)%4)!==f)}else c.point(a[0],a[1])}function s(i,o){return i>=t&&e>=i&&o>=n&&r>=o}function f(t,n){s(t,n)&&a.point(t,n)}function h(){C.point=g,v&&v.push(y=[]),P=!0,w=!1,M=_=NaN}function p(){d&&(g(m,x),b&&w&&S.rejoin(),d.push(S.buffer())),C.point=f,w&&a.lineEnd()}function g(t,n){t=Math.max(-Ga,Math.min(Ga,t)),n=Math.max(-Ga,Math.min(Ga,n));var e=s(t,n);if(v&&y.push([t,n]),P)m=t,x=n,b=e,P=!1,e&&(a.lineStart(),a.point(t,n));else if(e&&w)a.point(t,n);else{var r={a:{x:M,y:_},b:{x:t,y:n}};E(r)?(w||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),k=!1):e&&(a.lineStart(),a.point(t,n),k=!1)}M=t,_=n,w=e}var d,v,y,m,x,b,M,_,w,P,k,T=a,S=Fn(),E=Vn(t,n,e,r),C={point:f,lineStart:h,lineEnd:p,polygonStart:function(){a=S,d=[],v=[],k=!0},polygonEnd:function(){a=T,d=pu.merge(d);var n=l([t,r]),e=k&&n,i=d.length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),c(null,null,1,a),a.lineEnd()),i&&Dn(d,o,n,c,a),a.polygonEnd()),d=v=y=null}};return C}}function $n(t){var n=0,e=Iu/3,r=he(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Iu/180,e=t[1]*Iu/180):[n/Iu*180,e/Iu*180]},i}function Jn(t,n){function e(t,n){var e=Math.sqrt(o-2*i*Math.sin(n))/i;return[e*Math.sin(t*=i),u-e*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(n))/2,o=1+r*(2*i-r),u=Math.sqrt(o)/i;return e.invert=function(t,n){var e=u-n;return[Math.atan2(t,e)/i,ut((o-(t*t+e*e)*i*i)/(2*i))]},e}function Kn(){function t(t,n){Za+=i*t-r*n,r=t,i=n}var n,e,r,i;Ka.point=function(o,u){Ka.point=t,n=r=o,e=i=u},Ka.lineEnd=function(){t(n,e)}}function Qn(t,n){Va>t&&(Va=t),t>$a&&($a=t),Ba>n&&(Ba=n),n>Ja&&(Ja=n)}function te(){function t(t,n){u.push("M",t,",",n,o)}function n(t,n){u.push("M",t,",",n),a.point=e}function e(t,n){u.push("L",t,",",n)}function r(){a.point=t}function i(){u.push("Z")}var o=ne(4.5),u=[],a={point:t,lineStart:function(){a.point=n},lineEnd:r,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=r,a.point=t},pointRadius:function(t){return o=ne(t),a},result:function(){if(u.length){var t=u.join("");return u=[],t}}};return a}function ne(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function ee(t,n){Ra+=t,ja+=n,++Da}function re(){function t(t,r){var i=t-n,o=r-e,u=Math.sqrt(i*i+o*o);za+=u*(n+t)/2,qa+=u*(e+r)/2,Ha+=u,ee(n=t,e=r)}var n,e;tl.point=function(r,i){tl.point=t,ee(n=r,e=i)}}function ie(){tl.point=ee}function oe(){function t(t,n){var e=t-r,o=n-i,u=Math.sqrt(e*e+o*o);za+=u*(r+t)/2,qa+=u*(i+n)/2,Ha+=u,u=i*t-r*n,Ua+=u*(r+t),Fa+=u*(i+n),Ya+=3*u,ee(r=t,i=n)}var n,e,r,i;tl.point=function(o,u){tl.point=t,ee(n=r=o,e=i=u)},tl.lineEnd=function(){t(n,e)}}function ue(t){function n(n,e){t.moveTo(n+u,e),t.arc(n,e,u,0,Gu)}function e(n,e){t.moveTo(n,e),a.point=r}function r(n,e){t.lineTo(n,e)}function i(){
a.point=n}function o(){t.closePath()}var u=4.5,a={point:n,lineStart:function(){a.point=e},lineEnd:i,polygonStart:function(){a.lineEnd=o},polygonEnd:function(){a.lineEnd=i,a.point=n},pointRadius:function(t){return u=t,a},result:T};return a}function ae(t){function n(t){return(a?r:e)(t)}function e(n){return se(n,function(e,r){e=t(e,r),n.point(e[0],e[1])})}function r(n){function e(e,r){e=t(e,r),n.point(e[0],e[1])}function r(){x=NaN,P.point=o,n.lineStart()}function o(e,r){var o=Mn([e,r]),u=t(e,r);i(x,b,m,M,_,w,x=u[0],b=u[1],m=e,M=o[0],_=o[1],w=o[2],a,n),n.point(x,b)}function u(){P.point=e,n.lineEnd()}function l(){r(),P.point=c,P.lineEnd=s}function c(t,n){o(f=t,h=n),p=x,g=b,d=M,v=_,y=w,P.point=o}function s(){i(x,b,m,M,_,w,p,g,f,d,v,y,a,n),P.lineEnd=u,u()}var f,h,p,g,d,v,y,m,x,b,M,_,w,P={point:e,lineStart:r,lineEnd:u,polygonStart:function(){n.polygonStart(),P.lineStart=l},polygonEnd:function(){n.polygonEnd(),P.lineStart=r}};return P}function i(n,e,r,a,l,c,s,f,h,p,g,d,v,y){var m=s-n,x=f-e,b=m*m+x*x;if(b>4*o&&v--){var M=a+p,_=l+g,w=c+d,P=Math.sqrt(M*M+_*_+w*w),k=Math.asin(w/=P),T=ku(ku(w)-1)<Yu||ku(r-h)<Yu?(r+h)/2:Math.atan2(_,M),S=t(T,k),E=S[0],C=S[1],A=E-n,N=C-e,O=x*A-m*N;(O*O/b>o||ku((m*A+x*N)/b-.5)>.3||u>a*p+l*g+c*d)&&(i(n,e,r,a,l,c,E,C,T,M/=P,_/=P,w,v,y),y.point(E,C),i(E,C,T,M,_,w,s,f,h,p,g,d,v,y))}}var o=.5,u=Math.cos(30*Vu),a=16;return n.precision=function(t){return arguments.length?(a=(o=t*t)>0&&16,n):Math.sqrt(o)},n}function le(t){var n=ae(function(n,e){return t([n*Bu,e*Bu])});return function(t){return pe(n(t))}}function ce(t){this.stream=t}function se(t,n){return{point:n,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function fe(t){return he(function(){return t})()}function he(t){function n(t){return t=a(t[0]*Vu,t[1]*Vu),[t[0]*h+l,c-t[1]*h]}function e(t){return t=a.invert((t[0]-l)/h,(c-t[1])/h),t&&[t[0]*Bu,t[1]*Bu]}function r(){a=Rn(u=ve(y,m,x),o);var t=o(d,v);return l=p-t[0]*h,c=g+t[1]*h,i()}function i(){return s&&(s.valid=!1,s=null),n}var o,u,a,l,c,s,f=ae(function(t,n){return t=o(t,n),[t[0]*h+l,c-t[1]*h]}),h=150,p=480,g=250,d=0,v=0,y=0,m=0,x=0,b=Ia,M=w,_=null,P=null;return n.stream=function(t){return s&&(s.valid=!1),s=pe(b(u,f(M(t)))),s.valid=!0,s},n.clipAngle=function(t){return arguments.length?(b=null==t?(_=t,Ia):Zn((_=+t)*Vu),i()):_},n.clipExtent=function(t){return arguments.length?(P=t,M=t?Bn(t[0][0],t[0][1],t[1][0],t[1][1]):w,i()):P},n.scale=function(t){return arguments.length?(h=+t,r()):h},n.translate=function(t){return arguments.length?(p=+t[0],g=+t[1],r()):[p,g]},n.center=function(t){return arguments.length?(d=t[0]%360*Vu,v=t[1]%360*Vu,r()):[d*Bu,v*Bu]},n.rotate=function(t){return arguments.length?(y=t[0]%360*Vu,m=t[1]%360*Vu,x=t.length>2?t[2]%360*Vu:0,r()):[y*Bu,m*Bu,x*Bu]},pu.rebind(n,f,"precision"),function(){return o=t.apply(this,arguments),n.invert=o.invert&&e,r()}}function pe(t){return se(t,function(n,e){t.point(n*Vu,e*Vu)})}function ge(t,n){return[t,n]}function de(t,n){return[t>Iu?t-Gu:-Iu>t?t+Gu:t,n]}function ve(t,n,e){return t?n||e?Rn(me(t),xe(n,e)):me(t):n||e?xe(n,e):de}function ye(t){return function(n,e){return n+=t,[n>Iu?n-Gu:-Iu>n?n+Gu:n,e]}}function me(t){var n=ye(t);return n.invert=ye(-t),n}function xe(t,n){function e(t,n){var e=Math.cos(n),a=Math.cos(t)*e,l=Math.sin(t)*e,c=Math.sin(n),s=c*r+a*i;return[Math.atan2(l*o-s*u,a*r-c*i),ut(s*o+l*u)]}var r=Math.cos(t),i=Math.sin(t),o=Math.cos(n),u=Math.sin(n);return e.invert=function(t,n){var e=Math.cos(n),a=Math.cos(t)*e,l=Math.sin(t)*e,c=Math.sin(n),s=c*o-l*u;return[Math.atan2(l*o+c*u,a*r+s*i),ut(s*r-a*i)]},e}function be(t,n){var e=Math.cos(t),r=Math.sin(t);return function(i,o,u,a){var l=u*n;null!=i?(i=Me(e,i),o=Me(e,o),(u>0?o>i:i>o)&&(i+=u*Gu)):(i=t+u*Gu,o=t-.5*l);for(var c,s=i;u>0?s>o:o>s;s-=l)a.point((c=Sn([e,-r*Math.cos(s),-r*Math.sin(s)]))[0],c[1])}}function Me(t,n){var e=Mn(n);e[0]-=t,Tn(e);var r=ot(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Yu)%(2*Math.PI)}function _e(t,n,e){var r=pu.range(t,n-Yu,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function we(t,n,e){var r=pu.range(t,n-Yu,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function Pe(t){return t.source}function ke(t){return t.target}function Te(t,n,e,r){var i=Math.cos(n),o=Math.sin(n),u=Math.cos(r),a=Math.sin(r),l=i*Math.cos(t),c=i*Math.sin(t),s=u*Math.cos(e),f=u*Math.sin(e),h=2*Math.asin(Math.sqrt(st(r-n)+i*u*st(e-t))),p=1/Math.sin(h),g=h?function(t){var n=Math.sin(t*=h)*p,e=Math.sin(h-t)*p,r=e*l+n*s,i=e*c+n*f,u=e*o+n*a;return[Math.atan2(i,r)*Bu,Math.atan2(u,Math.sqrt(r*r+i*i))*Bu]}:function(){return[t*Bu,n*Bu]};return g.distance=h,g}function Se(){function t(t,i){var o=Math.sin(i*=Vu),u=Math.cos(i),a=ku((t*=Vu)-n),l=Math.cos(a);nl+=Math.atan2(Math.sqrt((a=u*Math.sin(a))*a+(a=r*o-e*u*l)*a),e*o+r*u*l),n=t,e=o,r=u}var n,e,r;el.point=function(i,o){n=i*Vu,e=Math.sin(o*=Vu),r=Math.cos(o),el.point=t},el.lineEnd=function(){el.point=el.lineEnd=T}}function Ee(t,n){function e(n,e){var r=Math.cos(n),i=Math.cos(e),o=t(r*i);return[o*i*Math.sin(n),o*Math.sin(e)]}return e.invert=function(t,e){var r=Math.sqrt(t*t+e*e),i=n(r),o=Math.sin(i),u=Math.cos(i);return[Math.atan2(t*o,r*u),Math.asin(r&&e*o/r)]},e}function Ce(t,n){function e(t,n){u>0?-Zu+Yu>n&&(n=-Zu+Yu):n>Zu-Yu&&(n=Zu-Yu);var e=u/Math.pow(i(n),o);return[e*Math.sin(o*t),u-e*Math.cos(o*t)]}var r=Math.cos(t),i=function(t){return Math.tan(Iu/4+t/2)},o=t===n?Math.sin(t):Math.log(r/Math.cos(n))/Math.log(i(n)/i(t)),u=r*Math.pow(i(t),o)/o;return o?(e.invert=function(t,n){var e=u-n,r=rt(o)*Math.sqrt(t*t+e*e);return[Math.atan2(t,e)/o,2*Math.atan(Math.pow(u/r,1/o))-Zu]},e):Ne}function Ae(t,n){function e(t,n){var e=o-n;return[e*Math.sin(i*t),o-e*Math.cos(i*t)]}var r=Math.cos(t),i=t===n?Math.sin(t):(r-Math.cos(n))/(n-t),o=r/i+t;return ku(i)<Yu?ge:(e.invert=function(t,n){var e=o-n;return[Math.atan2(t,e)/i,o-rt(i)*Math.sqrt(t*t+e*e)]},e)}function Ne(t,n){return[t,Math.log(Math.tan(Iu/4+n/2))]}function Oe(t){var n,e=fe(t),r=e.scale,i=e.translate,o=e.clipExtent;return e.scale=function(){var t=r.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.translate=function(){var t=i.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.clipExtent=function(t){var u=o.apply(e,arguments);if(u===e){if(n=null==t){var a=Iu*r(),l=i();o([[l[0]-a,l[1]-a],[l[0]+a,l[1]+a]])}}else n&&(u=null);return u},e.clipExtent(null)}function Le(t,n){return[Math.log(Math.tan(Iu/4+n/2)),-t]}function Re(t){return t[0]}function je(t){return t[1]}function De(t){for(var n=t.length,e=[0,1],r=2,i=2;n>i;i++){for(;r>1&&it(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function ze(t,n){return t[0]-n[0]||t[1]-n[1]}function qe(t,n,e){return(e[0]-n[0])*(t[1]-n[1])<(e[1]-n[1])*(t[0]-n[0])}function He(t,n,e,r){var i=t[0],o=e[0],u=n[0]-i,a=r[0]-o,l=t[1],c=e[1],s=n[1]-l,f=r[1]-c,h=(a*(l-c)-f*(i-o))/(f*u-a*s);return[i+h*u,l+h*s]}function Ue(t){var n=t[0],e=t[t.length-1];return!(n[0]-e[0]||n[1]-e[1])}function Fe(){lr(this),this.edge=this.site=this.circle=null}function Ye(t){var n=gl.pop()||new Fe;return n.site=t,n}function Xe(t){Qe(t),fl.remove(t),gl.push(t),lr(t)}function Ie(t){var n=t.circle,e=n.x,r=n.cy,i={x:e,y:r},o=t.P,u=t.N,a=[t];Xe(t);for(var l=o;l.circle&&ku(e-l.circle.x)<Yu&&ku(r-l.circle.cy)<Yu;)o=l.P,a.unshift(l),Xe(l),l=o;a.unshift(l),Qe(l);for(var c=u;c.circle&&ku(e-c.circle.x)<Yu&&ku(r-c.circle.cy)<Yu;)u=c.N,a.push(c),Xe(c),c=u;a.push(c),Qe(c);var s,f=a.length;for(s=1;f>s;++s)c=a[s],l=a[s-1],or(c.edge,l.site,c.site,i);l=a[0],c=a[f-1],c.edge=rr(l.site,c.site,null,i),Ke(l),Ke(c)}function Ge(t){for(var n,e,r,i,o=t.x,u=t.y,a=fl._;a;)if(r=We(a,u)-o,r>Yu)a=a.L;else{if(i=o-Ze(a,u),!(i>Yu)){r>-Yu?(n=a.P,e=a):i>-Yu?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}var l=Ye(t);if(fl.insert(n,l),n||e){if(n===e)return Qe(n),e=Ye(n.site),fl.insert(l,e),l.edge=e.edge=rr(n.site,l.site),Ke(n),void Ke(e);if(!e)return void(l.edge=rr(n.site,l.site));Qe(n),Qe(e);var c=n.site,s=c.x,f=c.y,h=t.x-s,p=t.y-f,g=e.site,d=g.x-s,v=g.y-f,y=2*(h*v-p*d),m=h*h+p*p,x=d*d+v*v,b={x:(v*m-p*x)/y+s,y:(h*x-d*m)/y+f};or(e.edge,c,g,b),l.edge=rr(c,t,null,b),e.edge=rr(t,g,null,b),Ke(n),Ke(e)}}function We(t,n){var e=t.site,r=e.x,i=e.y,o=i-n;if(!o)return r;var u=t.P;if(!u)return-(1/0);e=u.site;var a=e.x,l=e.y,c=l-n;if(!c)return a;var s=a-r,f=1/o-1/c,h=s/c;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*c)-l+c/2+i-o/2)))/f+r:(r+a)/2}function Ze(t,n){var e=t.N;if(e)return We(e,n);var r=t.site;return r.y===n?r.x:1/0}function Ve(t){this.site=t,this.edges=[]}function Be(t){for(var n,e,r,i,o,u,a,l,c,s,f=t[0][0],h=t[1][0],p=t[0][1],g=t[1][1],d=sl,v=d.length;v--;)if(o=d[v],o&&o.prepare())for(a=o.edges,l=a.length,u=0;l>u;)s=a[u].end(),r=s.x,i=s.y,c=a[++u%l].start(),n=c.x,e=c.y,(ku(r-n)>Yu||ku(i-e)>Yu)&&(a.splice(u,0,new ur(ir(o.site,s,ku(r-f)<Yu&&g-i>Yu?{x:f,y:ku(n-f)<Yu?e:g}:ku(i-g)<Yu&&h-r>Yu?{x:ku(e-g)<Yu?n:h,y:g}:ku(r-h)<Yu&&i-p>Yu?{x:h,y:ku(n-h)<Yu?e:p}:ku(i-p)<Yu&&r-f>Yu?{x:ku(e-p)<Yu?n:f,y:p}:null),o.site,null)),++l)}function $e(t,n){return n.angle-t.angle}function Je(){lr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ke(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var u=i.x,a=i.y,l=r.x-u,c=r.y-a,s=o.x-u,f=o.y-a,h=2*(l*f-c*s);if(!(h>=-Xu)){var p=l*l+c*c,g=s*s+f*f,d=(f*p-c*g)/h,v=(l*g-s*p)/h,f=v+a,y=dl.pop()||new Je;y.arc=t,y.site=i,y.x=d+u,y.y=f+Math.sqrt(d*d+v*v),y.cy=f,t.circle=y;for(var m=null,x=pl._;x;)if(y.y<x.y||y.y===x.y&&y.x<=x.x){if(!x.L){m=x.P;break}x=x.L}else{if(!x.R){m=x;break}x=x.R}pl.insert(m,y),m||(hl=y)}}}}function Qe(t){var n=t.circle;n&&(n.P||(hl=n.N),pl.remove(n),dl.push(n),lr(n),t.circle=null)}function tr(t){for(var n,e=cl,r=Vn(t[0][0],t[0][1],t[1][0],t[1][1]),i=e.length;i--;)n=e[i],(!nr(n,t)||!r(n)||ku(n.a.x-n.b.x)<Yu&&ku(n.a.y-n.b.y)<Yu)&&(n.a=n.b=null,e.splice(i,1))}function nr(t,n){var e=t.b;if(e)return!0;var r,i,o=t.a,u=n[0][0],a=n[1][0],l=n[0][1],c=n[1][1],s=t.l,f=t.r,h=s.x,p=s.y,g=f.x,d=f.y,v=(h+g)/2,y=(p+d)/2;if(d===p){if(u>v||v>=a)return;if(h>g){if(o){if(o.y>=c)return}else o={x:v,y:l};e={x:v,y:c}}else{if(o){if(o.y<l)return}else o={x:v,y:c};e={x:v,y:l}}}else if(r=(h-g)/(d-p),i=y-r*v,-1>r||r>1)if(h>g){if(o){if(o.y>=c)return}else o={x:(l-i)/r,y:l};e={x:(c-i)/r,y:c}}else{if(o){if(o.y<l)return}else o={x:(c-i)/r,y:c};e={x:(l-i)/r,y:l}}else if(d>p){if(o){if(o.x>=a)return}else o={x:u,y:r*u+i};e={x:a,y:r*a+i}}else{if(o){if(o.x<u)return}else o={x:a,y:r*a+i};e={x:u,y:r*u+i}}return t.a=o,t.b=e,!0}function er(t,n){this.l=t,this.r=n,this.a=this.b=null}function rr(t,n,e,r){var i=new er(t,n);return cl.push(i),e&&or(i,t,n,e),r&&or(i,n,t,r),sl[t.i].edges.push(new ur(i,t,n)),sl[n.i].edges.push(new ur(i,n,t)),i}function ir(t,n,e){var r=new er(t,null);return r.a=n,r.b=e,cl.push(r),r}function or(t,n,e,r){t.a||t.b?t.l===e?t.b=r:t.a=r:(t.a=r,t.l=n,t.r=e)}function ur(t,n,e){var r=t.a,i=t.b;this.edge=t,this.site=n,this.angle=e?Math.atan2(e.y-n.y,e.x-n.x):t.l===n?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function ar(){this._=null}function lr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function cr(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function sr(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function fr(t){for(;t.L;)t=t.L;return t}function hr(t,n){var e,r,i,o=t.sort(pr).pop();for(cl=[],sl=new Array(t.length),fl=new ar,pl=new ar;;)if(i=hl,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))o.x===e&&o.y===r||(sl[o.i]=new Ve(o),Ge(o),e=o.x,r=o.y),o=t.pop();else{if(!i)break;Ie(i.arc)}n&&(tr(n),Be(n));var u={cells:sl,edges:cl};return fl=pl=cl=sl=null,u}function pr(t,n){return n.y-t.y||n.x-t.x}function gr(t,n,e){return(t.x-e.x)*(n.y-t.y)-(t.x-n.x)*(e.y-t.y)}function dr(t){return t.x}function vr(t){return t.y}function yr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function mr(t,n,e,r,i,o){if(!t(n,e,r,i,o)){var u=.5*(e+i),a=.5*(r+o),l=n.nodes;l[0]&&mr(t,l[0],e,r,u,a),l[1]&&mr(t,l[1],u,r,i,a),l[2]&&mr(t,l[2],e,a,u,o),l[3]&&mr(t,l[3],u,a,i,o)}}function xr(t,n,e,r,i,o,u){var a,l=1/0;return function c(t,s,f,h,p){if(!(s>o||f>u||r>h||i>p)){if(g=t.point){var g,d=n-t.x,v=e-t.y,y=d*d+v*v;if(l>y){var m=Math.sqrt(l=y);r=n-m,i=e-m,o=n+m,u=e+m,a=g}}for(var x=t.nodes,b=.5*(s+h),M=.5*(f+p),_=n>=b,w=e>=M,P=w<<1|_,k=P+4;k>P;++P)if(t=x[3&P])switch(3&P){case 0:c(t,s,f,b,M);break;case 1:c(t,b,f,h,M);break;case 2:c(t,s,M,b,p);break;case 3:c(t,b,M,h,p)}}}(t,r,i,o,u),a}function br(t,n){t=pu.rgb(t),n=pu.rgb(n);var e=t.r,r=t.g,i=t.b,o=n.r-e,u=n.g-r,a=n.b-i;return function(t){return"#"+kt(Math.round(e+o*t))+kt(Math.round(r+u*t))+kt(Math.round(i+a*t))}}function Mr(t,n){var e,r={},i={};for(e in t)e in n?r[e]=Pr(t[e],n[e]):i[e]=t[e];for(e in n)e in t||(i[e]=n[e]);return function(t){for(e in r)i[e]=r[e](t);return i}}function _r(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function wr(t,n){var e,r,i,o=yl.lastIndex=ml.lastIndex=0,u=-1,a=[],l=[];for(t+="",n+="";(e=yl.exec(t))&&(r=ml.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,l.push({i:u,x:_r(e,r)})),o=ml.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?l[0]?(n=l[0].x,function(t){return n(t)+""}):function(){return n}:(n=l.length,function(t){for(var e,r=0;n>r;++r)a[(e=l[r]).i]=e.x(t);return a.join("")})}function Pr(t,n){for(var e,r=pu.interpolators.length;--r>=0&&!(e=pu.interpolators[r](t,n)););return e}function kr(t,n){var e,r=[],i=[],o=t.length,u=n.length,a=Math.min(t.length,n.length);for(e=0;a>e;++e)r.push(Pr(t[e],n[e]));for(;o>e;++e)i[e]=t[e];for(;u>e;++e)i[e]=n[e];return function(t){for(e=0;a>e;++e)i[e]=r[e](t);return i}}function Tr(t){return function(n){return 0>=n?0:n>=1?1:t(n)}}function Sr(t){return function(n){return 1-t(1-n)}}function Er(t){return function(n){return.5*(.5>n?t(2*n):2-t(2-2*n))}}function Cr(t){return t*t}function Ar(t){return t*t*t}function Nr(t){if(0>=t)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(.5>t?e:3*(t-n)+e-.75)}function Or(t){return function(n){return Math.pow(n,t)}}function Lr(t){return 1-Math.cos(t*Zu)}function Rr(t){return Math.pow(2,10*(t-1))}function jr(t){return 1-Math.sqrt(1-t*t)}function Dr(t,n){var e;return arguments.length<2&&(n=.45),arguments.length?e=n/Gu*Math.asin(1/t):(t=1,e=n/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-e)*Gu/n)}}function zr(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}}function qr(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Hr(t,n){t=pu.hcl(t),n=pu.hcl(n);var e=t.h,r=t.c,i=t.l,o=n.h-e,u=n.c-r,a=n.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?n.c:r),isNaN(o)?(o=0,e=isNaN(e)?n.h:e):o>180?o-=360:-180>o&&(o+=360),function(t){return dt(e+o*t,r+u*t,i+a*t)+""}}function Ur(t,n){t=pu.hsl(t),n=pu.hsl(n);var e=t.h,r=t.s,i=t.l,o=n.h-e,u=n.s-r,a=n.l-i;return isNaN(u)&&(u=0,r=isNaN(r)?n.s:r),isNaN(o)?(o=0,e=isNaN(e)?n.h:e):o>180?o-=360:-180>o&&(o+=360),function(t){return pt(e+o*t,r+u*t,i+a*t)+""}}function Fr(t,n){t=pu.lab(t),n=pu.lab(n);var e=t.l,r=t.a,i=t.b,o=n.l-e,u=n.a-r,a=n.b-i;return function(t){return yt(e+o*t,r+u*t,i+a*t)+""}}function Yr(t,n){return n-=t,function(e){return Math.round(t+n*e)}}function Xr(t){var n=[t.a,t.b],e=[t.c,t.d],r=Gr(n),i=Ir(n,e),o=Gr(Wr(e,n,-i))||0;n[0]*e[1]<e[0]*n[1]&&(n[0]*=-1,n[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(n[1],n[0]):Math.atan2(-e[0],e[1]))*Bu,this.translate=[t.e,t.f],this.scale=[r,o],this.skew=o?Math.atan2(i,o)*Bu:0}function Ir(t,n){return t[0]*n[0]+t[1]*n[1]}function Gr(t){var n=Math.sqrt(Ir(t,t));return n&&(t[0]/=n,t[1]/=n),n}function Wr(t,n,e){return t[0]+=e*n[0],t[1]+=e*n[1],t}function Zr(t){return t.length?t.pop()+",":""}function Vr(t,n,e,r){if(t[0]!==n[0]||t[1]!==n[1]){var i=e.push("translate(",null,",",null,")");r.push({i:i-4,x:_r(t[0],n[0])},{i:i-2,x:_r(t[1],n[1])})}else(n[0]||n[1])&&e.push("translate("+n+")")}function Br(t,n,e,r){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),r.push({i:e.push(Zr(e)+"rotate(",null,")")-2,x:_r(t,n)})):n&&e.push(Zr(e)+"rotate("+n+")")}function $r(t,n,e,r){t!==n?r.push({i:e.push(Zr(e)+"skewX(",null,")")-2,x:_r(t,n)}):n&&e.push(Zr(e)+"skewX("+n+")")}function Jr(t,n,e,r){if(t[0]!==n[0]||t[1]!==n[1]){var i=e.push(Zr(e)+"scale(",null,",",null,")");r.push({i:i-4,x:_r(t[0],n[0])},{i:i-2,x:_r(t[1],n[1])})}else 1===n[0]&&1===n[1]||e.push(Zr(e)+"scale("+n+")")}function Kr(t,n){var e=[],r=[];return t=pu.transform(t),n=pu.transform(n),Vr(t.translate,n.translate,e,r),Br(t.rotate,n.rotate,e,r),$r(t.skew,n.skew,e,r),Jr(t.scale,n.scale,e,r),t=n=null,function(t){for(var n,i=-1,o=r.length;++i<o;)e[(n=r[i]).i]=n.x(t);return e.join("")}}function Qr(t,n){return n=(n-=t=+t)||1/n,function(e){return(e-t)/n}}function ti(t,n){return n=(n-=t=+t)||1/n,function(e){return Math.max(0,Math.min(1,(e-t)/n))}}function ni(t){for(var n=t.source,e=t.target,r=ri(n,e),i=[n];n!==r;)n=n.parent,i.push(n);for(var o=i.length;e!==r;)i.splice(o,0,e),e=e.parent;return i}function ei(t){for(var n=[],e=t.parent;null!=e;)n.push(t),t=e,e=e.parent;return n.push(t),n}function ri(t,n){if(t===n)return t;for(var e=ei(t),r=ei(n),i=e.pop(),o=r.pop(),u=null;i===o;)u=i,i=e.pop(),o=r.pop();return u}function ii(t){t.fixed|=2}function oi(t){t.fixed&=-7}function ui(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ai(t){t.fixed&=-5}function li(t,n,e){var r=0,i=0;if(t.charge=0,!t.leaf)for(var o,u=t.nodes,a=u.length,l=-1;++l<a;)o=u[l],null!=o&&(li(o,n,e),t.charge+=o.charge,r+=o.charge*o.cx,i+=o.charge*o.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var c=n*e[t.point.index];t.charge+=t.pointCharge=c,r+=c*t.point.x,i+=c*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}function ci(t,n){return pu.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=di,t}function si(t,n){for(var e=[t];null!=(t=e.pop());)if(n(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)e.push(i[r])}function fi(t,n){for(var e=[t],r=[];null!=