!function(t){var n={};function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(i,r,function(n){return t[n]}.bind(null,r));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=3)}({3:function(t,n,e){"use strict";e.r(n);var i=function(t,n){return tn?1:t>=n?0:NaN},r=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return i(n(t),e)}),{left:function(n,e,i,r){for(null==i&&(i=0),null==r&&(r=n.length);i>>1;t(n[o],e)<0?i=o+1:r=o}return i},right:function(n,e,i,r){for(null==i&&(i=0),null==r&&(r=n.length);i>>1;t(n[o],e)>0?r=o:i=o+1}return i}}};var o=r(i),u=o.right,a=(o.left,u);var s=function(t,n){var e,i,r,o=t.length,u=-1;if(null==n){for(;++u=e)for(i=r=e;++ue&&(i=e),r=e)for(i=r=e;++ue&&(i=e),r0)return[t];if((i=n0)for(t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(r=Math.ceil(n-t+1));++a=0?(o>=c?10:o>=l?5:o>=f?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=c?10:o>=l?5:o>=f?2:1)}function y(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=c?r*=10:o>=l?r*=5:o>=f&&(r*=2),n=e)for(i=e;++oi&&(i=e)}else for(;++o=e)for(i=e;++oi&&(i=e);return i},d=function(t){for(var n,e,i,r=t.length,o=-1,u=0;++o=0;)for(n=(i=t[r]).length;--n>=0;)e[--u]=i[n];return e};var g=Array.prototype.slice,x=function(t){return t},m=1,w=2,M=3,b=4,N=1e-6;function T(t){return"translate("+(t+.5)+",0)"}function k(t){return"translate(0,"+(t+.5)+")"}function C(t){return function(n){return+t(n)}}function S(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function A(){return!this.__axis}function E(t,n){var e=[],i=null,r=null,o=6,u=6,a=3,s=t===m||t===b?-1:1,h=t===b||t===w?"x":"y",c=t===m||t===M?T:k;function l(l){var f=null==i?n.ticks?n.ticks.apply(n,e):n.domain():i,_=null==r?n.tickFormat?n.tickFormat.apply(n,e):x:r,p=Math.max(o,0)+a,y=n.range(),v=+y[0]+.5,d=+y[y.length-1]+.5,g=(n.bandwidth?S:C)(n.copy()),T=l.selection?l.selection():l,k=T.selectAll(".domain").data([null]),E=T.selectAll(".tick").data(f,n).order(),U=E.exit(),P=E.enter().append("g").attr("class","tick"),L=E.select("line"),D=E.select("text");k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),E=E.merge(P),L=L.merge(P.append("line").attr("stroke","currentColor").attr(h+"2",s*o)),D=D.merge(P.append("text").attr("fill","currentColor").attr(h,s*p).attr("dy",t===m?"0em":t===M?"0.71em":"0.32em")),l!==T&&(k=k.transition(l),E=E.transition(l),L=L.transition(l),D=D.transition(l),U=U.transition(l).attr("opacity",N).attr("transform",(function(t){return isFinite(t=g(t))?c(t):this.getAttribute("transform")})),P.attr("opacity",N).attr("transform",(function(t){var n=this.parentNode.__axis;return c(n&&isFinite(n=n(t))?n:g(t))}))),U.remove(),k.attr("d",t===b||t==w?u?"M"+s*u+","+v+"H0.5V"+d+"H"+s*u:"M0.5,"+v+"V"+d:u?"M"+v+","+s*u+"V0.5H"+d+"V"+s*u:"M"+v+",0.5H"+d),E.attr("opacity",1).attr("transform",(function(t){return c(g(t))})),L.attr(h+"2",s*o),D.attr(h,s*p).text(_),T.filter(A).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===w?"start":t===b?"end":"middle"),T.each((function(){this.__axis=g}))}return l.scale=function(t){return arguments.length?(n=t,l):n},l.ticks=function(){return e=g.call(arguments),l},l.tickArguments=function(t){return arguments.length?(e=null==t?[]:g.call(t),l):e.slice()},l.tickValues=function(t){return arguments.length?(i=null==t?null:g.call(t),l):i&&i.slice()},l.tickFormat=function(t){return arguments.length?(r=t,l):r},l.tickSize=function(t){return arguments.length?(o=u=+t,l):o},l.tickSizeInner=function(t){return arguments.length?(o=+t,l):o},l.tickSizeOuter=function(t){return arguments.length?(u=+t,l):u},l.tickPadding=function(t){return arguments.length?(a=+t,l):a},l}var U={value:function(){}};function P(){for(var t,n=0,e=arguments.length,i={};n=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function R(t,n){for(var e,i=0,r=t.length;i0)for(var e,i,r=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),q.hasOwnProperty(n)?{space:q[n],local:t}:t};function z(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===H&&n.documentElement.namespaceURI===H?n.createElement(t):n.createElementNS(e,t)}}function O(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var I=function(t){var n=j(t);return(n.local?O:z)(n)};function X(){}var $=function(t){return null==t?X:function(){return this.querySelector(t)}};function V(){return[]}var B=function(t){return null==t?V:function(){return this.querySelectorAll(t)}},Z=function(t){return function(){return this.matches(t)}},W=function(t){return new Array(t.length)};function Q(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Q.prototype={constructor:Q,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var J="$";function G(t,n,e,i,r,o){for(var u,a=0,s=n.length,h=o.length;an?1:t>=n?0:NaN}function nt(t){return function(){this.removeAttribute(t)}}function et(t){return function(){this.removeAttributeNS(t.space,t.local)}}function it(t,n){return function(){this.setAttribute(t,n)}}function rt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function ot(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function ut(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}var at=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function st(t){return function(){this.style.removeProperty(t)}}function ht(t,n,e){return function(){this.style.setProperty(t,n,e)}}function ct(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function lt(t,n){return t.style.getPropertyValue(n)||at(t).getComputedStyle(t,null).getPropertyValue(n)}function ft(t){return function(){delete this[t]}}function _t(t,n){return function(){this[t]=n}}function pt(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function yt(t){return t.trim().split(/^|\s+/)}function vt(t){return t.classList||new dt(t)}function dt(t){this._node=t,this._names=yt(t.getAttribute("class")||"")}function gt(t,n){for(var e=vt(t),i=-1,r=n.length;++i=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function bt(){this.textContent=""}function Nt(t){return function(){this.textContent=t}}function Tt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function kt(){this.innerHTML=""}function Ct(t){return function(){this.innerHTML=t}}function St(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function At(){this.nextSibling&&this.parentNode.appendChild(this)}function Et(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ut(){return null}function Pt(){var t=this.parentNode;t&&t.removeChild(this)}function Lt(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Dt(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Rt={},Ft=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Rt={mouseenter:"mouseover",mouseleave:"mouseout"}));function Yt(t,n,e){return t=Ht(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Ht(t,n,e){return function(i){var r=Ft;Ft=i;try{t.call(this,this.__data__,n,e)}finally{Ft=r}}}function qt(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function jt(t){return function(){var n=this.__on;if(n){for(var e,i=0,r=-1,o=n.length;i=w&&(w=m+1);!(x=d[w])&&++w=0;)(i=r[o])&&(u&&4^i.compareDocumentPosition(u)&&u.parentNode.insertBefore(i,u),u=i);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=tt);for(var e=this._groups,i=e.length,r=new Array(i),o=0;o1?this.each((null==n?st:"function"==typeof n?ct:ht)(t,n,null==e?"":e)):lt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?ft:"function"==typeof n?pt:_t)(t,n)):this.node()[t]},classed:function(t,n){var e=yt(t+"");if(arguments.length<2){for(var i=vt(this.node()),r=-1,o=e.length;++r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?new wn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?new wn(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=an.exec(t))?new wn(n[1],n[2],n[3],1):(n=sn.exec(t))?new wn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=hn.exec(t))?gn(n[1],n[2],n[3],n[4]):(n=cn.exec(t))?gn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=ln.exec(t))?Tn(n[1],n[2]/100,n[3]/100,1):(n=fn.exec(t))?Tn(n[1],n[2]/100,n[3]/100,n[4]):_n.hasOwnProperty(t)?dn(_n[t]):"transparent"===t?new wn(NaN,NaN,NaN,0):null}function dn(t){return new wn(t>>16&255,t>>8&255,255&t,1)}function gn(t,n,e,i){return i<=0&&(t=n=e=NaN),new wn(t,n,e,i)}function xn(t){return t instanceof nn||(t=vn(t)),t?new wn((t=t.rgb()).r,t.g,t.b,t.opacity):new wn}function mn(t,n,e,i){return 1===arguments.length?xn(t):new wn(t,n,e,null==i?1:i)}function wn(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function Mn(){return"#"+Nn(this.r)+Nn(this.g)+Nn(this.b)}function bn(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Nn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Tn(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Sn(t,n,e,i)}function kn(t){if(t instanceof Sn)return new Sn(t.h,t.s,t.l,t.opacity);if(t instanceof nn||(t=vn(t)),!t)return new Sn;if(t instanceof Sn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,r=Math.min(n,e,i),o=Math.max(n,e,i),u=NaN,a=o-r,s=(o+r)/2;return a?(u=n===o?(e-i)/a+6*(e0&&s<1?0:u,new Sn(u,a,s,t.opacity)}function Cn(t,n,e,i){return 1===arguments.length?kn(t):new Sn(t,n,e,null==i?1:i)}function Sn(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function An(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function En(t,n,e,i,r){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*i+u*r)/6}Kt(nn,vn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:pn,formatHex:pn,formatHsl:function(){return kn(this).formatHsl()},formatRgb:yn,toString:yn}),Kt(wn,mn,tn(nn,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mn,formatHex:Mn,formatRgb:bn,toString:bn})),Kt(Sn,Cn,tn(nn,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Sn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Sn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new wn(An(t>=240?t-240:t+120,r,i),An(t,r,i),An(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Un=function(t){return function(){return t}};function Pn(t,n){return function(e){return t+e*n}}function Ln(t,n){var e=n-t;return e?Pn(t,e>180||e<-180?e-360*Math.round(e/360):e):Un(isNaN(t)?n:t)}function Dn(t){return 1==(t=+t)?Rn:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):Un(isNaN(n)?e:n)}}function Rn(t,n){var e=n-t;return e?Pn(t,e):Un(isNaN(t)?n:t)}var Fn=function t(n){var e=Dn(n);function i(t,n){var i=e((t=mn(t)).r,(n=mn(n)).r),r=e(t.g,n.g),o=e(t.b,n.b),u=Rn(t.opacity,n.opacity);return function(n){return t.r=i(n),t.g=r(n),t.b=o(n),t.opacity=u(n),t+""}}return i.gamma=t,i}(1);function Yn(t){return function(n){var e,i,r=n.length,o=new Array(r),u=new Array(r),a=new Array(r);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),r=t[i],o=t[i+1],u=i>0?t[i-1]:2*r-o,a=io&&(r=n.slice(o,r),a[u]?a[u]+=r:a[++u]=r),(e=e[0])===(i=i[0])?a[u]?a[u]+=i:a[++u]=i:(a[++u]=null,s.push({i:u,x:jn(e,i)})),o=In.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(r(e)+"rotate(",null,i)-2,x:jn(t,n)})):n&&e.push(r(e)+"rotate("+n+i)}(o.rotate,u.rotate,a,s),function(t,n,e,o){t!==n?o.push({i:e.push(r(e)+"skewX(",null,i)-2,x:jn(t,n)}):n&&e.push(r(e)+"skewX("+n+i)}(o.skewX,u.skewX,a,s),function(t,n,e,i,o,u){if(t!==e||n!==i){var a=o.push(r(o)+"scale(",null,",",null,")");u.push({i:a-4,x:jn(t,e)},{i:a-2,x:jn(n,i)})}else 1===e&&1===i||o.push(r(o)+"scale("+e+","+i+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,s),o=u=null,function(t){for(var n,e=-1,i=s.length;++efe?Math.pow(t,1/3):t/le+he}function de(t){return t>ce?t*t*t:le*(t-he)}function ge(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function xe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function me(t){if(t instanceof Me)return new Me(t.h,t.c,t.l,t.opacity);if(t instanceof ye||(t=_e(t)),0===t.a&&0===t.b)return new Me(NaN,0=0&&n._call.call(null,t),n=n._next;--Fe}()}finally{Fe=0,function(){var t,n,e=De,i=1/0;for(;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:De=n);Re=t,Je(i)}(),ze=0}}function Qe(){var t=Ie.now(),n=t-je;n>qe&&(Oe-=n,je=t)}function Je(t){Fe||(Ye&&(Ye=clearTimeout(Ye)),t-ze>24?(t<1/0&&(Ye=setTimeout(We,t-Ie.now()-Oe)),He&&(He=clearInterval(He))):(He||(je=Ie.now(),He=setInterval(Qe,qe)),Fe=1,Xe(We)))}Be.prototype=Ze.prototype={constructor:Be,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?$e():+e)+(null==n?0:+n),this._next||Re===this||(Re?Re._next=this:De=this,Re=this),this._call=t,this._time=e,Je()},stop:function(){this._call&&(this._call=null,this._time=1/0,Je())}};var Ge=function(t,n,e){var i=new Be;return n=null==n?0:+n,i.restart((function(e){i.stop(),t(e+n)}),n,e),i},Ke=Y("start","end","cancel","interrupt"),ti=[],ni=0,ei=1,ii=2,ri=3,oi=4,ui=5,ai=6,si=function(t,n,e,i,r,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var i,r=t.__transition;function o(s){var h,c,l,f;if(e.state!==ei)return a();for(h in r)if((f=r[h]).name===e.name){if(f.state===ri)return Ge(o);f.state===oi?(f.state=ai,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[h]):+hni)throw new Error("too late; already scheduled");return e}function ci(t,n){var e=li(t,n);if(e.state>ri)throw new Error("too late; already running");return e}function li(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var fi=function(t,n){var e,i,r,o=t.__transition,u=!0;if(o){for(r in n=null==n?null:n+"",o)(e=o[r]).name===n?(i=e.state>ii&&e.state=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?hi:ci;return function(){var u=o(this,t),a=u.on;a!==i&&(r=(i=a).copy()).on(n,e),u.on=r}}var Ui=Zt.prototype.constructor;function Pi(t){return function(){this.style.removeProperty(t)}}function Li(t,n,e){var i,r;function o(){var o=n.apply(this,arguments);return o!==r&&(i=(r=o)&&function(t,n,e){return function(i){this.style.setProperty(t,n(i),e)}}(t,o,e)),i}return o._value=n,o}var Di=0;function Ri(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function Fi(){return++Di}var Yi=Zt.prototype;Ri.prototype=function(t){return Zt().transition(t)}.prototype={constructor:Ri,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=$(t));for(var i=this._groups,r=i.length,o=new Array(r),u=0;u1e-6)if(Math.abs(c*a-s*h)>1e-6&&r){var f=e-o,_=i-u,p=a*a+s*s,y=f*f+_*_,v=Math.sqrt(p),d=Math.sqrt(l),g=r*Math.tan((Xi-Math.acos((p+l-y)/(2*v*d)))/2),x=g/d,m=g/v;Math.abs(x-1)>1e-6&&(this._+="L"+(t+x*h)+","+(n+x*c)),this._+="A"+r+","+r+",0,0,"+ +(c*f>h*_)+","+(this._x1=t+m*a)+","+(this._y1=n+m*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,i,r,o){t=+t,n=+n,o=!!o;var u=(e=+e)*Math.cos(i),a=e*Math.sin(i),s=t+u,h=n+a,c=1^o,l=o?i-r:r-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+s+","+h:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+s+","+h),e&&(l<0&&(l=l%$i+$i),l>Vi?this._+="A"+e+","+e+",0,1,"+c+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+c+","+(this._x1=s)+","+(this._y1=h):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=Xi)+","+c+","+(this._x1=t+e*Math.cos(r))+","+(this._y1=n+e*Math.sin(r))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};var Wi=Zi;function Qi(){}function Ji(t,n){var e=new Qi;if(t instanceof Qi)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var i,r=-1,o=t.length;if(null==n)for(;++r9999?"+"+hr(n,6):hr(n,4))+"-"+hr(t.getUTCMonth()+1,2)+"-"+hr(t.getUTCDate(),2)+(o?"T"+hr(e,2)+":"+hr(i,2)+":"+hr(r,2)+"."+hr(o,3)+"Z":r?"T"+hr(e,2)+":"+hr(i,2)+":"+hr(r,2)+"Z":i||e?"T"+hr(e,2)+":"+hr(i,2)+"Z":"")}var lr=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function i(t,n){var i,r=[],o=t.length,u=0,a=0,s=o<=0,h=!1;function c(){if(s)return ir;if(h)return h=!1,er;var n,i,r=u;if(t.charCodeAt(r)===rr){for(;u++=o?s=!0:(i=t.charCodeAt(u++))===or?h=!0:i===ur&&(h=!0,t.charCodeAt(u)===or&&++u),t.slice(r+1,n-1).replace(/""/g,'"')}for(;u=(o=(y+d)/2))?y=o:d=o,(c=e>=(u=(v+g)/2))?v=u:g=u,r=_,!(_=_[l=c<<1|h]))return r[l]=p,t;if(a=+t._x.call(null,_.data),s=+t._y.call(null,_.data),n===a&&e===s)return p.next=_,r?r[l]=p:t._root=p,t;do{r=r?r[l]=new Array(4):t._root=new Array(4),(h=n>=(o=(y+d)/2))?y=o:d=o,(c=e>=(u=(v+g)/2))?v=u:g=u}while((l=c<<1|h)==(f=(s>=u)<<1|a>=o));return r[f]=_,r[l]=p,t}var wr=function(t,n,e,i,r){this.node=t,this.x0=n,this.y0=e,this.x1=i,this.y1=r};function Mr(t){return t[0]}function br(t){return t[1]}function Nr(t,n,e){var i=new Tr(null==n?Mr:n,null==e?br:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function Tr(t,n,e,i,r,o){this._x=t,this._y=n,this._x0=e,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function kr(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Cr=Nr.prototype=Tr.prototype;Cr.copy=function(){var t,n,e=new Tr(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return e;if(!i.length)return e._root=kr(i),e;for(t=[{source:i,target:e._root=new Array(4)}];i=t.pop();)for(var r=0;r<4;++r)(n=i.source[r])&&(n.length?t.push({source:n,target:i.target[r]=new Array(4)}):i.target[r]=kr(n));return e},Cr.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return mr(this.cover(n,e),n,e,t)},Cr.addAll=function(t){var n,e,i,r,o=t.length,u=new Array(o),a=new Array(o),s=1/0,h=1/0,c=-1/0,l=-1/0;for(e=0;ec&&(c=i),rl&&(l=r));if(s>c||h>l)return this;for(this.cover(s,h).cover(c,l),e=0;et||t>=r||i>n||n>=o;)switch(a=(nf||(o=s.y0)>_||(u=s.x1)=d)<<1|t>=v)&&(s=p[p.length-1],p[p.length-1]=p[p.length-1-h],p[p.length-1-h]=s)}else{var g=t-+this._x.call(null,y.data),x=n-+this._y.call(null,y.data),m=g*g+x*x;if(m=(a=(p+v)/2))?p=a:v=a,(c=u>=(s=(y+d)/2))?y=s:d=s,n=_,!(_=_[l=c<<1|h]))return this;if(!_.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,f=l)}for(;_.data!==t;)if(i=_,!(_=_.next))return this;return(r=_.next)&&delete _.next,i?(r?i.next=r:delete i.next,this):n?(r?n[l]=r:delete n[l],(_=n[0]||n[1]||n[2]||n[3])&&_===(n[3]||n[2]||n[1]||n[0])&&!_.length&&(e?e[f]=_:this._root=_),this):(this._root=r,this)},Cr.removeAll=function(t){for(var n=0,e=t.length;n1?i[0]+i.slice(2):i,+t.slice(e+1)]},Ar=function(t){return(t=Sr(Math.abs(t)))?t[1]:NaN},Er=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ur(t){if(!(n=Er.exec(t)))throw new Error("invalid format: "+t);var n;return new Pr({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Pr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Ur.prototype=Pr.prototype,Pr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Lr,Dr,Rr,Fr,Yr=function(t){t:for(var n,e=t.length,i=1,r=-1;i0){if(!+t[i])break t;r=0}}return r>0?t.slice(0,r)+t.slice(n+1):t},Hr=function(t,n){var e=Sr(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},qr={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Hr(100*t,n)},r:Hr,s:function(t,n){var e=Sr(t,n);if(!e)return t+"";var i=e[0],r=e[1],o=r-(Lr=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,u=i.length;return o===u?i:o>u?i+new Array(o-u+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Sr(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},jr=function(t){return t},zr=Array.prototype.map,Or=["y","z","a","f","p","n","ยต","m","","k","M","G","T","P","E","Z","Y"];Dr=function(t){var n,e,i=void 0===t.grouping||void 0===t.thousands?jr:(n=zr.call(t.grouping,Number),e=t.thousands+"",function(t,i){for(var r=t.length,o=[],u=0,a=n[0],s=0;r>0&&a>0&&(s+a+1>i&&(a=Math.max(1,i-s)),o.push(t.substring(r-=a,r+a)),!((s+=a+1)>i));)a=n[u=(u+1)%n.length];return o.reverse().join(e)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?jr:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(zr.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",h=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=Ur(t)).fill,e=t.align,l=t.sign,f=t.symbol,_=t.zero,p=t.width,y=t.comma,v=t.precision,d=t.trim,g=t.type;"n"===g?(y=!0,g="g"):qr[g]||(void 0===v&&(v=12),d=!0,g="g"),(_||"0"===n&&"="===e)&&(_=!0,n="0",e="=");var x="$"===f?r:"#"===f&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",m="$"===f?o:/[%p]/.test(g)?s:"",w=qr[g],M=/[defgprs%]/.test(g);function b(t){var r,o,s,f=x,b=m;if("c"===g)b=w(t)+b,t="";else{var N=(t=+t)<0;if(t=isNaN(t)?c:w(Math.abs(t),v),d&&(t=Yr(t)),N&&0==+t&&(N=!1),f=(N?"("===l?l:h:"-"===l||"("===l?"":l)+f,b=("s"===g?Or[8+Lr/3]:"")+b+(N&&"("===l?")":""),M)for(r=-1,o=t.length;++r(s=t.charCodeAt(r))||s>57){b=(46===s?u+t.slice(r+1):t.slice(r))+b,t=t.slice(0,r);break}}y&&!_&&(t=i(t,1/0));var T=f.length+t.length+b.length,k=T>1)+f+t+b+k.slice(T);break;default:t=k+f+t+b}return a(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),b.toString=function(){return t+""},b}return{format:l,formatPrefix:function(t,n){var e=l(((t=Ur(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Ar(n)/3))),r=Math.pow(10,-i),o=Or[8+i/3];return function(t){return e(r*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Rr=Dr.format,Fr=Dr.formatPrefix;var Ir=function(){return new Xr};function Xr(){this.reset()}Xr.prototype={constructor:Xr,reset:function(){this.s=this.t=0},add:function(t){Vr($r,t,this.t),Vr(this,$r.s,this.s),this.s?this.t+=$r.t:this.s=$r.t},valueOf:function(){return this.s}};var $r=new Xr;function Vr(t,n,e){var i=t.s=n+e,r=i-n,o=i-r;t.t=n-o+(e-r)}var Br=1e-6,Zr=1e-12,Wr=Math.PI,Qr=Wr/2,Jr=Wr/4,Gr=2*Wr,Kr=Wr/180,to=Math.abs,no=Math.atan,eo=Math.atan2,io=Math.cos,ro=(Math.ceil,Math.exp),oo=(Math.floor,Math.log),uo=(Math.pow,Math.sin),ao=Math.sign||function(t){return t>0?1:t<0?-1:0},so=Math.sqrt,ho=Math.tan;function co(t){return t>1?0:t<-1?Wr:Math.acos(t)}function lo(t){return t>1?Qr:t<-1?-Qr:Math.asin(t)}function fo(){}Ir(),Ir();function _o(t){var n=t[0],e=t[1],i=io(e);return[i*io(n),i*uo(n),uo(e)]}function po(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 yo(t){var n=so(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}Ir();function vo(t,n){return[to(t)>Wr?t+Math.round(-t/Gr)*Gr:t,n]}vo.invert=vo;var go=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:fo,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},xo=function(t,n){return to(t[0]-n[0])=0;--o)r.point((c=h[o])[0],c[1]);else i(f.x,f.p.x,-1,r);f=f.p}h=(f=f.o).z,_=!_}while(!f.v);r.lineEnd()}}};function Mo(t){if(n=t.length){for(var n,e,i=0,r=t[0];++i=0?1:-1,T=N*b,k=T>Wr,C=y*w;if(bo.add(eo(C*N*uo(T),v*M+C*io(T))),u+=k?b+N*Gr:b,k^_>=e^x>=e){var S=po(_o(f),_o(g));yo(S);var A=po(o,S);yo(A);var E=(k^b>=0?-1:1)*lo(A[2]);(i>E||i===E&&(S[0]||S[1]))&&(a+=k^b>=0?1:-1)}}return(u<-Br||u0){for(l||(r.polygonStart(),l=!0),r.lineStart(),t=0;t1&&2&s&&f.push(f.pop().concat(f.shift())),u.push(f.filter(Co))}return f}};function Co(t){return t.length>1}function So(t,n){return((t=t.x)[0]<0?t[1]-Qr-Br:Qr-t[1])-((n=n.x)[0]<0?n[1]-Qr-Br:Qr-n[1])}ko((function(){return!0}),(function(t){var n,e=NaN,i=NaN,r=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?Wr:-Wr,s=to(o-e);to(s-Wr)0?Qr:-Qr),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(a,i),t.point(o,i),n=0):r!==a&&s>=Wr&&(to(e-r)Br?no((uo(n)*(o=io(i))*uo(e)-uo(i)*(r=io(n))*uo(t))/(r*o*u)):(n+i)/2}(e,i,o,u),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(a,i),n=0),t.point(e=o,i=u),r=a},lineEnd:function(){t.lineEnd(),e=i=NaN},clean:function(){return 2-n}}}),(function(t,n,e,i){var r;if(null==t)r=e*Qr,i.point(-Wr,r),i.point(0,r),i.point(Wr,r),i.point(Wr,0),i.point(Wr,-r),i.point(0,-r),i.point(-Wr,-r),i.point(-Wr,0),i.point(-Wr,r);else if(to(t[0]-n[0])>Br){var o=t[0]Br&&--r>0);return[t/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]};function Zo(t,n){return[io(n)*uo(t),uo(n)]}Zo.invert=Ro(lo);function Wo(t,n){var e=io(n),i=1+io(t)*e;return[e*uo(t)/i,uo(n)/i]}Wo.invert=Ro((function(t){return 2*no(t)}));function Qo(t,n){return[oo(ho((Qr+n)/2)),-t]}Qo.invert=function(t,n){return[-n,2*no(ro(t))-Qr]};function Jo(t){var n=0,e=t.children,i=e&&e.length;if(i)for(;--i>=0;)n+=e[i].value;else n=1;t.value=n}function Go(t,n){var e,i,r,o,u,a=new eu(t),s=+t.value&&(a.value=t.value),h=[a];for(null==n&&(n=Ko);e=h.pop();)if(s&&(e.value=+e.data.value),(r=n(e.data))&&(u=r.length))for(e.children=new Array(u),o=u-1;o>=0;--o)h.push(i=e.children[o]=new eu(r[o])),i.parent=e,i.depth=e.depth+1;return a.eachBefore(nu)}function Ko(t){return t.children}function tu(t){t.data=t.data.data}function nu(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function eu(t){this.data=t,this.depth=this.height=0,this.parent=null}eu.prototype=Go.prototype={constructor:eu,count:function(){return this.eachAfter(Jo)},each:function(t){var n,e,i,r,o=this,u=[o];do{for(n=u.reverse(),u=[];o=n.pop();)if(t(o),e=o.children)for(i=0,r=e.length;i=0;--e)r.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,i=n.children,r=i&&i.length;--r>=0;)e+=i[r].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;t=e.pop(),n=i.pop();for(;t===n;)r=t,t=e.pop(),n=i.pop();return r}(n,t),i=[n];n!==e;)n=n.parent,i.push(n);for(var r=i.length;t!==e;)i.splice(r,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Go(this).eachBefore(tu)}};Array.prototype.slice;var iu=function(t,n,e,i,r){for(var o,u=t.children,a=-1,s=u.length,h=t.value&&(i-n)/t.value;++af&&(f=a),v=c*c*y,(_=Math.max(f/v,v/l))>p){c-=a;break}p=_}d.push(u={value:c,dice:s1?n:1)},e})(uu),function t(n){function e(t,e,i,r,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,s,h,c,l=-1,f=u.length,_=t.value;++l1?n:1)},e}(uu);var su=function(){return Math.random()},hu=(function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(su),function t(n){function e(t,e){var i,r;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=i)o=i,i=null;else do{i=2*n()-1,o=2*n()-1,r=i*i+o*o}while(!r||r>1);return t+e*o*Math.sqrt(-2*Math.log(r)/r)}}return e.source=t,e}(su)),cu=(function t(n){function e(){var t=hu.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(su),function t(n){function e(t){return function(){for(var e=0,i=0;ii&&(n=e,e=i,i=n),function(t){return Math.max(e,Math.min(i,t))}}function wu(t,n,e){var i=t[0],r=t[1],o=n[0],u=n[1];return r2?Mu:wu,r=o=null,l}function l(n){return isNaN(n=+n)?e:(r||(r=i(u.map(t),a,s)))(t(h(n)))}return l.invert=function(e){return h(n((o||(o=i(a,u.map(t),jn)))(e)))},l.domain=function(t){return arguments.length?(u=_u.call(t,vu),h===gu||(h=mu(u)),c()):u.slice()},l.range=function(t){return arguments.length?(a=pu.call(t),c()):a.slice()},l.rangeRound=function(t){return a=pu.call(t),s=Qn,c()},l.clamp=function(t){return arguments.length?(h=t?mu(u):gu,l):h!==gu},l.interpolate=function(t){return arguments.length?(s=t,c()):s},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,i){return t=e,n=i,c()}}function Tu(t,n){return Nu()(t,n)}var ku=function(t,n,e,i){var r,o=y(t,n,e);switch((i=Ur(null==i?",f":i)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=i.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ar(n)/3)))-Ar(Math.abs(t)))}(o,u))||(i.precision=r),Fr(i,u);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ar(n)-Ar(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-Ar(Math.abs(t)))}(o))||(i.precision=r-2*("%"===i.type))}return Rr(i)};function Cu(t){var n=t.domain;return t.ticks=function(t){var e=n();return _(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var i=n();return ku(i[0],i[i.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var i,r=n(),o=0,u=r.length-1,a=r[o],s=r[u];return s0?i=p(a=Math.floor(a/i)*i,s=Math.ceil(s/i)*i,e):i<0&&(i=p(a=Math.ceil(a*i)/i,s=Math.floor(s*i)/i,e)),i>0?(r[o]=Math.floor(a/i)*i,r[u]=Math.ceil(s/i)*i,n(r)):i<0&&(r[o]=Math.ceil(a*i)/i,r[u]=Math.floor(s*i)/i,n(r)),t},t}function Su(){var t=Tu(gu,gu);return t.copy=function(){return bu(t,Su())},lu.apply(t,arguments),Cu(t)}var Au=function(t,n){var e,i=0,r=(t=t.slice()).length-1,o=t[i],u=t[r];return u0){for(;fs)break;v.push(l)}}else for(;f=1;--c)if(!((l=h*c)s)break;v.push(l)}}else v=_(f,p,Math.min(p-f,y)).map(e);return i?v.reverse():v},i.tickFormat=function(t,r){if(null==r&&(r=10===o?".0e":","),"function"!=typeof r&&(r=Rr(r)),t===1/0)return r;null==t&&(t=10);var u=Math.max(1,o*t/i.ticks().length);return function(t){var i=t/e(Math.round(n(t)));return i*o0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;n(t,-1),!e(t););else for(;--i>=0;)for(;n(t,1),!e(t););}))},e&&(r.count=function(n,i){return Yu.setTime(+n),Hu.setTime(+i),t(Yu),t(Hu),Math.floor(e(Yu,Hu))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(n){return i(n)%t==0}:function(n){return r.count(0,n)%t==0}):r:null}),r}var ju=qu((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ju.every=function(t){return isFinite(t=Math.floor(t))&&t>0?qu((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var zu=ju,Ou=(ju.range,qu((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Iu=(Ou.range,6e4),Xu=6048e5;function $u(t){return qu((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Iu)/Xu}))}var Vu=$u(0),Bu=$u(1),Zu=$u(2),Wu=$u(3),Qu=$u(4),Ju=$u(5),Gu=$u(6),Ku=(Vu.range,Bu.range,Zu.range,Wu.range,Qu.range,Ju.range,Gu.range,qu((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Iu)/864e5}),(function(t){return t.getDate()-1}))),ta=Ku,na=(Ku.range,qu((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Iu)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()}))),ea=(na.range,qu((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+n*Iu)}),(function(t,n){return(n-t)/Iu}),(function(t){return t.getMinutes()}))),ia=(ea.range,qu((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()}))),ra=(ia.range,qu((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t})));ra.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?qu((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):ra:null};ra.range;function oa(t){return qu((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Xu}))}var ua=oa(0),aa=oa(1),sa=oa(2),ha=oa(3),ca=oa(4),la=oa(5),fa=oa(6),_a=(ua.range,aa.range,sa.range,ha.range,ca.range,la.range,fa.range,qu((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/864e5}),(function(t){return t.getUTCDate()-1}))),pa=_a,ya=(_a.range,qu((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));ya.every=function(t){return isFinite(t=Math.floor(t))&&t>0?qu((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var va=ya;ya.range;function da(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ga(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function xa(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var ma,wa,Ma,ba={"-":"",_:" ",0:"0"},Na=/^\s*\d+/,Ta=/^%/,ka=/[\\^$*+?|[\]().{}]/g;function Ca(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),e+i[0].length):-1}function Ha(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function qa(t,n,e){var i=Na.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function ja(t,n,e){var i=Na.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function za(t,n,e){var i=Na.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function Oa(t,n,e){var i=Na.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function Ia(t,n,e){var i=Na.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function Xa(t,n,e){var i=Na.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function $a(t,n,e){var i=Na.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function Va(t,n,e){var i=Na.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Ba(t,n,e){var i=Ta.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function Za(t,n,e){var i=Na.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function Wa(t,n,e){var i=Na.exec(n.slice(e));return i?(t.Q=1e3*+i[0],e+i[0].length):-1}function Qa(t,n){return Ca(t.getDate(),n,2)}function Ja(t,n){return Ca(t.getHours(),n,2)}function Ga(t,n){return Ca(t.getHours()%12||12,n,2)}function Ka(t,n){return Ca(1+ta.count(zu(t),t),n,3)}function ts(t,n){return Ca(t.getMilliseconds(),n,3)}function ns(t,n){return ts(t,n)+"000"}function es(t,n){return Ca(t.getMonth()+1,n,2)}function is(t,n){return Ca(t.getMinutes(),n,2)}function rs(t,n){return Ca(t.getSeconds(),n,2)}function os(t){var n=t.getDay();return 0===n?7:n}function us(t,n){return Ca(Vu.count(zu(t),t),n,2)}function as(t,n){var e=t.getDay();return t=e>=4||0===e?Qu(t):Qu.ceil(t),Ca(Qu.count(zu(t),t)+(4===zu(t).getDay()),n,2)}function ss(t){return t.getDay()}function hs(t,n){return Ca(Bu.count(zu(t),t),n,2)}function cs(t,n){return Ca(t.getFullYear()%100,n,2)}function ls(t,n){return Ca(t.getFullYear()%1e4,n,4)}function fs(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Ca(n/60|0,"0",2)+Ca(n%60,"0",2)}function _s(t,n){return Ca(t.getUTCDate(),n,2)}function ps(t,n){return Ca(t.getUTCHours(),n,2)}function ys(t,n){return Ca(t.getUTCHours()%12||12,n,2)}function vs(t,n){return Ca(1+pa.count(va(t),t),n,3)}function ds(t,n){return Ca(t.getUTCMilliseconds(),n,3)}function gs(t,n){return ds(t,n)+"000"}function xs(t,n){return Ca(t.getUTCMonth()+1,n,2)}function ms(t,n){return Ca(t.getUTCMinutes(),n,2)}function ws(t,n){return Ca(t.getUTCSeconds(),n,2)}function Ms(t){var n=t.getUTCDay();return 0===n?7:n}function bs(t,n){return Ca(ua.count(va(t),t),n,2)}function Ns(t,n){var e=t.getUTCDay();return t=e>=4||0===e?ca(t):ca.ceil(t),Ca(ca.count(va(t),t)+(4===va(t).getUTCDay()),n,2)}function Ts(t){return t.getUTCDay()}function ks(t,n){return Ca(aa.count(va(t),t),n,2)}function Cs(t,n){return Ca(t.getUTCFullYear()%100,n,2)}function Ss(t,n){return Ca(t.getUTCFullYear()%1e4,n,4)}function As(){return"+0000"}function Es(){return"%"}function Us(t){return+t}function Ps(t){return Math.floor(+t/1e3)}!function(t){ma=function(t){var n=t.dateTime,e=t.date,i=t.time,r=t.periods,o=t.days,u=t.shortDays,a=t.months,s=t.shortMonths,h=Aa(r),c=Ea(r),l=Aa(o),f=Ea(o),_=Aa(u),p=Ea(u),y=Aa(a),v=Ea(a),d=Aa(s),g=Ea(s),x={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Qa,e:Qa,f:ns,H:Ja,I:Ga,j:Ka,L:ts,m:es,M:is,p:function(t){return r[+(t.getHours()>=12)]},Q:Us,s:Ps,S:rs,u:os,U:us,V:as,w:ss,W:hs,x:null,X:null,y:cs,Y:ls,Z:fs,"%":Es},m={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:_s,e:_s,f:gs,H:ps,I:ys,j:vs,L:ds,m:xs,M:ms,p:function(t){return r[+(t.getUTCHours()>=12)]},Q:Us,s:Ps,S:ws,u:Ms,U:bs,V:Ns,w:Ts,W:ks,x:null,X:null,y:Cs,Y:Ss,Z:As,"%":Es},w={a:function(t,n,e){var i=_.exec(n.slice(e));return i?(t.w=p[i[0].toLowerCase()],e+i[0].length):-1},A:function(t,n,e){var i=l.exec(n.slice(e));return i?(t.w=f[i[0].toLowerCase()],e+i[0].length):-1},b:function(t,n,e){var i=d.exec(n.slice(e));return i?(t.m=g[i[0].toLowerCase()],e+i[0].length):-1},B:function(t,n,e){var i=y.exec(n.slice(e));return i?(t.m=v[i[0].toLowerCase()],e+i[0].length):-1},c:function(t,e,i){return N(t,n,e,i)},d:ja,e:ja,f:Va,H:Oa,I:Oa,j:za,L:$a,m:qa,M:Ia,p:function(t,n,e){var i=h.exec(n.slice(e));return i?(t.p=c[i[0].toLowerCase()],e+i[0].length):-1},Q:Za,s:Wa,S:Xa,u:Pa,U:La,V:Da,w:Ua,W:Ra,x:function(t,n,i){return N(t,e,n,i)},X:function(t,n,e){return N(t,i,n,e)},y:Ya,Y:Fa,Z:Ha,"%":Ba};function M(t,n){return function(e){var i,r,o,u=[],a=-1,s=0,h=t.length;for(e instanceof Date||(e=new Date(+e));++a53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=ga(xa(o.y))).getUTCDay(),i=r>4||0===r?aa.ceil(i):aa(i),i=pa.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(r=(i=n(xa(o.y))).getDay(),i=r>4||0===r?Bu.ceil(i):Bu(i),i=ta.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?ga(xa(o.y)).getUTCDay():n(xa(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ga(o)):n(o)}}function N(t,n,e,i){for(var r,o,u=0,a=n.length,s=e.length;u=s)return-1;if(37===(r=n.charCodeAt(u++))){if(r=n.charAt(u++),!(o=w[r in ba?n.charAt(u++):r])||(i=o(t,e,i))<0)return-1}else if(r!=e.charCodeAt(i++))return-1}return i}return x.x=M(e,x),x.X=M(i,x),x.c=M(n,x),m.x=M(e,m),m.X=M(i,m),m.c=M(n,m),{format:function(t){var n=M(t+="",x);return n.toString=function(){return t},n},parse:function(t){var n=b(t+="",da);return n.toString=function(){return t},n},utcFormat:function(t){var n=M(t+="",m);return n.toString=function(){return t},n},utcParse:function(t){var n=b(t,ga);return n.toString=function(){return t},n}}}(t),ma.format,ma.parse,wa=ma.utcFormat,Ma=ma.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Date.prototype.toISOString||wa("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Ma("%Y-%m-%dT%H:%M:%S.%LZ");var Ls=qu((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Ds=(Ls.range,qu((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getUTCHours()}))),Rs=(Ds.range,qu((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Iu)}),(function(t,n){return(n-t)/Iu}),(function(t){return t.getUTCMinutes()})));Rs.range;var Fs=function(t){return function(){return t}},Ys=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,1e-12),Hs=Math.PI,qs=2*Hs;function js(t){this._context=t}js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var zs=function(t){return new js(t)};function Os(t){return t[0]}function Is(t){return t[1]}var Xs=function(){var t=Os,n=Is,e=Fs(!0),i=null,r=zs,o=null;function u(u){var a,s,h,c=u.length,l=!1;for(null==i&&(o=r(h=Wi())),a=0;a<=c;++a)!(a0)for(var i,r=t[0],o=n[0],u=t[e]-r,a=n[e]-o,s=-1;++s<=e;)i=s/e,this._basis.point(this._beta*t[s]+(1-this._beta)*(r+i*u),this._beta*n[s]+(1-this._beta)*(o+i*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};(function t(n){function e(t){return 1===n?new Qs(t):new Ks(t,n)}return e.beta=function(n){return t(+n)},e})(.85);function th(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function nh(t,n){this._context=t,this._k=(1-n)/6}nh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:th(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:th(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};(function t(n){function e(t){return new nh(t,n)}return e.tension=function(n){return t(+n)},e})(0);function eh(t,n){this._context=t,this._k=(1-n)/6}eh.prototype={areaStart:Zs,areaEnd:Zs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:th(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};(function t(n){function e(t){return new eh(t,n)}return e.tension=function(n){return t(+n)},e})(0);function ih(t,n){this._context=t,this._k=(1-n)/6}ih.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:th(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};(function t(n){function e(t){return new ih(t,n)}return e.tension=function(n){return t(+n)},e})(0);function rh(t,n,e){var i=t._x1,r=t._y1,o=t._x2,u=t._y2;if(t._l01_a>Ys){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>Ys){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*h+t._x1*t._l23_2a-n*t._l12_2a)/c,u=(u*h+t._y1*t._l23_2a-e*t._l12_2a)/c}t._context.bezierCurveTo(i,r,o,u,t._x2,t._y2)}function oh(t,n){this._context=t,this._alpha=n}oh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:rh(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};(function t(n){function e(t){return n?new oh(t,n):new nh(t,0)}return e.alpha=function(n){return t(+n)},e})(.5);function uh(t,n){this._context=t,this._alpha=n}uh.prototype={areaStart:Zs,areaEnd:Zs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:rh(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};(function t(n){function e(t){return n?new uh(t,n):new eh(t,0)}return e.alpha=function(n){return t(+n)},e})(.5);function ah(t,n){this._context=t,this._alpha=n}ah.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rh(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};(function t(n){function e(t){return n?new ah(t,n):new ih(t,0)}return e.alpha=function(n){return t(+n)},e})(.5);function sh(t){this._context=t}sh.prototype={areaStart:Zs,areaEnd:Zs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};function hh(t){return t<0?-1:1}function ch(t,n,e){var i=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),u=(e-t._y1)/(r||i<0&&-0),a=(o*r+u*i)/(i+r);return(hh(o)+hh(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function lh(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function fh(t,n,e){var i=t._x0,r=t._y0,o=t._x1,u=t._y1,a=(o-i)/3;t._context.bezierCurveTo(i+a,r+a*n,o-a,u-a*e,o,u)}function _h(t){this._context=t}function ph(t){this._context=new yh(t)}function yh(t){this._context=t}function vh(t){this._context=t}function dh(t){var n,e,i=t.length-1,r=new Array(i),o=new Array(i),u=new Array(i);for(r[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;n=0;--n)r[n]=(u[n]-r[n+1])/o[n];for(o[i-1]=(t[i]+r[i-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};function xh(){this._=null}function mh(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function wh(t,n){var e=n,i=n.R,r=e.U;r?r.L===e?r.L=i:r.R=i:t._=i,i.U=r,e.U=i,e.R=i.L,e.R&&(e.R.U=e),i.L=e}function Mh(t,n){var e=n,i=n.L,r=e.U;r?r.L===e?r.L=i:r.R=i:t._=i,i.U=r,e.U=i,e.L=i.R,e.L&&(e.L.U=e),i.R=e}function bh(t){for(;t.L;)t=t.L;return t}xh.prototype={constructor:xh,insert:function(t,n){var e,i,r;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=bh(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(i=e.U).L?(r=i.R)&&r.C?(e.C=r.C=!1,i.C=!0,t=i):(t===e.R&&(wh(this,e),e=(t=e).U),e.C=!1,i.C=!0,Mh(this,i)):(r=i.L)&&r.C?(e.C=r.C=!1,i.C=!0,t=i):(t===e.L&&(Mh(this,e),e=(t=e).U),e.C=!1,i.C=!0,wh(this,i)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,i,r=t.U,o=t.L,u=t.R;if(e=o?u?bh(u):o:u,r?r.L===t?r.L=e:r.R=e:this._=e,o&&u?(i=e.C,e.C=t.C,e.L=o,o.U=e,e!==u?(r=e.U,e.U=t.U,t=e.R,r.L=t,e.R=u,u.U=e):(e.U=r,r=e,t=e.R)):(i=t.C,t=e),t&&(t.U=r),!i)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===r.L){if((n=r.R).C&&(n.C=!1,r.C=!0,wh(this,r),n=r.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Mh(this,n),n=r.R),n.C=r.C,r.C=n.R.C=!1,wh(this,r),t=this._;break}}else if((n=r.L).C&&(n.C=!1,r.C=!0,Mh(this,r),n=r.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,wh(this,n),n=r.L),n.C=r.C,r.C=n.L.C=!1,Mh(this,r),t=this._;break}n.C=!0,t=r,r=r.U}while(!t.C);t&&(t.C=!1)}}};var Nh=xh;function Th(t,n,e,i){var r=[null,null],o=Wh.push(r)-1;return r.left=t,r.right=n,e&&Ch(r,t,n,e),i&&Ch(r,n,t,i),Bh[t.index].halfedges.push(o),Bh[n.index].halfedges.push(o),r}function kh(t,n,e){var i=[n,e];return i.left=t,i}function Ch(t,n,e,i){t[0]||t[1]?t.left===e?t[1]=i:t[0]=i:(t[0]=i,t.left=n,t.right=e)}function Sh(t,n,e,i,r){var o,u=t[0],a=t[1],s=u[0],h=u[1],c=0,l=1,f=a[0]-s,_=a[1]-h;if(o=n-s,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>l)return;o>c&&(c=o)}if(o=i-s,f||!(o<0)){if(o/=f,f<0){if(o>l)return;o>c&&(c=o)}else if(f>0){if(o0)){if(o/=_,_<0){if(o0){if(o>l)return;o>c&&(c=o)}if(o=r-h,_||!(o<0)){if(o/=_,_<0){if(o>l)return;o>c&&(c=o)}else if(_>0){if(o0||l<1)||(c>0&&(t[0]=[s+c*f,h+c*_]),l<1&&(t[1]=[s+l*f,h+l*_]),!0)}}}}}function Ah(t,n,e,i,r){var o=t[1];if(o)return!0;var u,a,s=t[0],h=t.left,c=t.right,l=h[0],f=h[1],_=c[0],p=c[1],y=(l+_)/2,v=(f+p)/2;if(p===f){if(y=i)return;if(l>_){if(s){if(s[1]>=r)return}else s=[y,e];o=[y,r]}else{if(s){if(s[1]1)if(l>_){if(s){if(s[1]>=r)return}else s=[(e-a)/u,e];o=[(r-a)/u,r]}else{if(s){if(s[1]=i)return}else s=[n,u*n+a];o=[i,u*i+a]}else{if(s){if(s[0]=-Jh)){var _=s*s+h*h,p=c*c+l*l,y=(l*_-h*p)/f,v=(s*p-c*_)/f,d=Dh.pop()||new Rh;d.arc=t,d.site=r,d.x=y+u,d.y=(d.cy=v+a)+Math.sqrt(y*y+v*v),t.circle=d;for(var g=null,x=Zh._;x;)if(d.yQh)a=a.L;else{if(!((r=o-$h(a,u))>Qh)){i>-Qh?(n=a.P,e=a):r>-Qh?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){Bh[t.index]={site:t,halfedges:[]}}(t);var s=jh(t);if(Vh.insert(n,s),n||e){if(n===e)return Yh(n),e=jh(n.site),Vh.insert(s,e),s.edge=e.edge=Th(n.site,s.site),Fh(n),void Fh(e);if(e){Yh(n),Yh(e);var h=n.site,c=h[0],l=h[1],f=t[0]-c,_=t[1]-l,p=e.site,y=p[0]-c,v=p[1]-l,d=2*(f*v-_*y),g=f*f+_*_,x=y*y+v*v,m=[(v*g-_*x)/d+c,(f*x-y*g)/d+l];Ch(e.edge,h,p,m),s.edge=Th(h,t,null,m),e.edge=Th(t,p,null,m),Fh(n),Fh(e)}else s.edge=Th(n.site,s.site)}}function Xh(t,n){var e=t.site,i=e[0],r=e[1],o=r-n;if(!o)return i;var u=t.P;if(!u)return-1/0;var a=(e=u.site)[0],s=e[1],h=s-n;if(!h)return a;var c=a-i,l=1/o-1/h,f=c/h;return l?(-f+Math.sqrt(f*f-2*l*(c*c/(-2*h)-s+h/2+r-o/2)))/l+i:(i+a)/2}function $h(t,n){var e=t.N;if(e)return Xh(e,n);var i=t.site;return i[1]===n?i[0]:1/0}var Vh,Bh,Zh,Wh,Qh=1e-6,Jh=1e-12;function Gh(t,n){return n[1]-t[1]||n[0]-t[0]}function Kh(t,n){var e,i,r,o=t.sort(Gh).pop();for(Wh=[],Bh=new Array(t.length),Vh=new Nh,Zh=new Nh;;)if(r=Lh,o&&(!r||o[1]Qh||Math.abs(r[0][1]-r[1][1])>Qh)||delete Wh[o]}(u,a,s,h),function(t,n,e,i){var r,o,u,a,s,h,c,l,f,_,p,y,v=Bh.length,d=!0;for(r=0;rQh||Math.abs(y-f)>Qh)&&(s.splice(a,0,Wh.push(kh(u,_,Math.abs(p-t)Qh?[t,Math.abs(l-t)Qh?[Math.abs(f-i)Qh?[e,Math.abs(l-e)Qh?[Math.abs(f-n)=a)return null;var s=t-r.site[0],h=n-r.site[1],c=s*s+h*h;do{r=o.cells[i=u],u=null,r.halfedges.forEach((function(e){var i=o.edges[e],a=i.left;if(a!==r.site&&a||(a=i.right)){var s=t-a[0],h=n-a[1],l=s*s+h*h;li&&(t.splice(o+1,0,h),e=!0)}var r;return e}}window.chart=function(t){var n,e=20,i=30,r=30,o=40,u=function t(){var n=Fu(Nu()).domain([1,10]);return n.copy=function(){return bu(n,t()).base(n.base())},lu.apply(n,arguments),n}().domain(s(t,(function(t){return t.x*t.y}))).range(["green","red"]),a=Su().domain(s(t,(function(t){return t.x}))).nice().range([o,600-i]),h=Su().domain(s(t,(function(t){return t.y}))).nice().range([600-r,e]),c=function(){let t,n=t=>t[0],e=t=>t[1];function i(i){let r=i.length,o=0,u=0,a=0,s=0,h=0,c=0,l=t?+t[0]:1/0,f=t?+t[1]:-1/0;for(let _=0;_f&&(f=p)))}const _=((r=o)*a-u*s)/(r*h-Math.pow(u,2)),p=Math.exp((s-_*u)/r),y=t=>p*Math.pow(t,_),v=ic(l,f,y);return v.a=p,v.b=_,v.predict=y,v.rSquared=nc(i,n,e,c,y),v}return i.domain=function(n){return arguments.length?(t=n,i):t},i.x=function(t){return arguments.length?(n=t,i):n},i.y=function(t){return arguments.length?(e=t,i):e},i}().x((function(t){return t.x})).y((function(t){return t.y})).domain([0,v(t,(function(t){return t.x}))]),l=c(t),f=Xs().x((function(t){return a(t[0])})).y((function(t){return h(t[1])})),_=(n="svg",Wt(I(n).call(document.documentElement))).attr("viewBox",[0,0,600,600]),p=_.append("g");return p.append("g").attr("class","axis").call((function(n){return n.attr("transform","translate(0,".concat(600-r,")")).call((e=a,E(M,e))).call((function(t){return t.select(".domain").remove()})).call((function(n){return n.append("text").attr("x",600-i).attr("y",-4).attr("fill","#000").attr("font-weight","bold").attr("text-anchor","end").text(t.x)}));var e})).selectAll(".tick line").classed("baseline",(function(t){return 0===t})),p.append("g").attr("class","axis").call((function(n){return n.attr("transform","translate(".concat(o,",0)")).call((e=h,E(b,e))).call((function(t){return t.select(".domain").remove()})).call((function(n){return n.select(".tick:last-of-type text").clone().attr("x",4).attr("text-anchor","start").attr("font-weight","bold").text(t.y)}));var e})).selectAll(".tick line").classed("baseline",(function(t){return 0===t})),p.append("g").attr("stroke-width",1.5).attr("font-family","Red Hat Text").attr("font-size",12).selectAll("g").data(t).join("g").attr("transform",(function(t){return"translate(".concat(a(t.x),",").concat(h(t.y),")")})).call((function(t){return t.append("circle").attr("fill",(function(t){return u(t.x*t.y)})).attr("stroke",(function(t){return u(t.x*t.y)})).attr("r",4)})).call((function(t){return t.append("text").attr("dy","0.35em").attr("x",7).text((function(t){return t.file_path}))})),p.append("g").attr("font-family","Red Hat Text").attr("font-size",24).call((function(n){return n.append("path").attr("class","regression").datum(c(t)).attr("d",f)})).call((function(t){return t.append("text").attr("dy","60").attr("dx","33%").text("R^2 = ".concat(l.rSquared.toFixed(2)))})).call((function(t){return t.append("text").attr("dy","30").attr("dx","33%").text("y = ".concat(l.a.toFixed(2)," x ^ ").concat(l.b.toFixed(2)))})),_}}});