text: !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.liquid_fill_gauge=n():t.liquid_fill_gauge=n()}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},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 r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},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=50)}({0:function(t,n,e){"use strict";var r=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},i=function(t){return 1===t.length&&(t=function(t){return function(n,e){return r(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}},o=i(r),u=o.right,a=(o.left,u),c=function(t){return null===t?NaN:+t},s=Array.prototype,l=(s.slice,s.map,function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}),f=Math.sqrt(50),h=Math.sqrt(10),d=Math.sqrt(2),p=function(t,n,e){var r,i,o,u,a=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(u=g(t,n,e))||!isFinite(u))return[];if(u>0)for(t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(i=Math.ceil(n-t+1));++a<i;)o[a]=(t+a)*u;else for(t=Math.floor(t*u),n=Math.ceil(n*u),o=new Array(i=Math.ceil(t-n+1));++a<i;)o[a]=(t-a)/u;return r&&o.reverse(),o};function g(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=f?10:o>=h?5:o>=d?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=f?10:o>=h?5:o>=d?2:1)}function v(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=f?i*=10:o>=h?i*=5:o>=d&&(i*=2),n<t?-i:i}var y=function(t,n,e){if(null==e&&(e=c),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t);return u+(+e(t[o+1],o+1,t)-u)*(i-o)}},_=function(t){for(var n,e,r,i=t.length,o=-1,u=0;++o<i;)u+=t[o].length;for(e=new Array(u);--i>=0;)for(n=(r=t[i]).length;--n>=0;)e[--u]=r[n];return e},m=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&r>e&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&r>e&&(r=e);return r},w=function(t,n){var e,r=t.length,i=-1,o=0;if(null==n)for(;++i<r;)(e=+t[i])&&(o+=e);else for(;++i<r;)(e=+n(t[i],i,t))&&(o+=e);return o};e.d(n,"b",(function(){return a})),e.d(n,"a",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"d",(function(){return _})),e.d(n,"e",(function(){return m})),e.d(n,"f",(function(){return y})),e.d(n,"g",(function(){return l})),e.d(n,"h",(function(){return w})),e.d(n,"k",(function(){return p})),e.d(n,"i",(function(){return g})),e.d(n,"j",(function(){return v}))},11:function(t,n,e){"use strict";e.d(n,"a",(function(){return i})),e.d(n,"b",(function(){return o}));var r=e(4),i=function(t){if(t){var n="";switch(t.charAt(0)){case"$":n+="$";break;case"£":n+="£";break;case"€":n+="€"}t.indexOf(",")>-1&&(n+=",");var e=t.split(".");switch(n+=".",n+=e.length>1?e[1].length:0,t.slice(-1)){case"%":n+="%";break;case"0":n+="f"}return r.format(n)}},o=function(t,n,e){var r=function(n,e,r,i,o){return!(!t.addError||!t.clearErrors||(r<i?(t.addError({title:"Not Enough "+e+"s",message:"This visualization requires "+(i===o?"exactly":"at least")+" "+i+" "+e.toLowerCase()+(1===i?"":"s")+".",group:n}),1):r>o?(t.addError({title:"Too Many "+e+"s",message:"This visualization requires "+(i===o?"exactly":"no more than")+" "+o+" "+e.toLowerCase()+(1===i?"":"s")+".",group:n}),1):(t.clearErrors(n),0)))},i=n.fields,o=i.pivots,u=i.dimensions,a=i.measure_like;return r("pivot-req","Pivot",o.length,e.min_pivots,e.max_pivots)&&r("dim-req","Dimension",u.length,e.min_dimensions,e.max_dimensions)&&r("mes-req","Measure",a.length,e.min_measures,e.max_measures)}},2:function(t,n,e){"use strict";function r(){}function i(t,n){var e=new r;if(t instanceof r)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var i,o=-1,u=t.length;if(null==n)for(;++o<u;)e.set(o,t[o]);else for(;++o<u;)e.set(n(i=t[o],o,t),i)}else if(t)for(var a in t)e.set(a,t[a]);return e}r.prototype=i.prototype={constructor:r,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var o=i,u=function(){var t,n,e,r=[],i=[];function u(e,i,a,c){if(i>=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var s,l,f,h=-1,d=e.length,p=r[i++],g=o(),v=a();++h<d;)(f=g.get(s=p(l=e[h])+""))?f.push(l):g.set(s,[l]);return g.each((function(t,n){c(v,n,u(t,i,a,c))})),v}return e={object:function(t){return u(t,0,a,c)},map:function(t){return u(t,0,s,l)},entries:function(t){return function t(e,o){if(++o>r.length)return e;var u,a=i[o-1];return null!=n&&o>=r.length?u=e.entries():(u=[],e.each((function(n,e){u.push({key:e,values:t(n,o)})}))),null!=a?u.sort((function(t,n){return a(t.key,n.key)})):u}(u(t,0,s,l),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function a(){return{}}function c(t,n,e){t[n]=e}function s(){return o()}function l(t,n,e){t.set(n,e)}function f(){}var h=o.prototype;f.prototype=function(t,n){var e=new f;if(t instanceof f)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}.prototype={constructor:f,has:h.has,add:function(t){return this["$"+(t+="")]=t,this},remove:h.remove,clear:h.clear,values:h.keys,size:h.size,empty:h.empty,each:h.each},e.d(n,"b",(function(){return u})),e.d(n,"a",(function(){return o}))},30:function(t,n,e){"use strict";var r=Math.PI,i=2*r,o=i-1e-6;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new u}u.prototype=a.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,i,o){t=+t,n=+n,e=+e,i=+i,o=+o;var u=this._x1,a=this._y1,c=e-t,s=i-n,l=u-t,f=a-n,h=l*l+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>1e-6)if(Math.abs(f*c-s*l)>1e-6&&o){var d=e-u,p=i-a,g=c*c+s*s,v=d*d+p*p,y=Math.sqrt(g),_=Math.sqrt(h),m=o*Math.tan((r-Math.acos((g+h-v)/(2*y*_)))/2),w=m/_,x=m/y;Math.abs(w-1)>1e-6&&(this._+="L"+(t+w*l)+","+(n+w*f)),this._+="A"+o+","+o+",0,0,"+ +(f*d>l*p)+","+(this._x1=t+x*c)+","+(this._y1=n+x*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,u,a,c){t=+t,n=+n,c=!!c;var s=(e=+e)*Math.cos(u),l=e*Math.sin(u),f=t+s,h=n+l,d=1^c,p=c?u-a:a-u;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),e&&(p<0&&(p=p%i+i),p>o?this._+="A"+e+","+e+",0,1,"+d+","+(t-s)+","+(n-l)+"A"+e+","+e+",0,1,"+d+","+(this._x1=f)+","+(this._y1=h):p>1e-6&&(this._+="A"+e+","+e+",0,"+ +(p>=r)+","+d+","+(this._x1=t+e*Math.cos(a))+","+(this._y1=n+e*Math.sin(a))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}},n.a=a},31:function(t,n,e){
  /*!
   * @license Open source under BSD 2-clause (http://choosealicense.com/licenses/bsd-2-clause/)
   * Copyright (c) 2015, Curtis Bratton
   * All rights reserved.
   *
   * This file was copied from https://raw.githubusercontent.com/ugomeda/d3-liquid-fill-gauge/master/liquidFillGauge.js
   * and modified for use in the Looker example custom visualizations project.
   */
  var r=e(51),i={minValue:0,maxValue:100,circleThickness:.05,circleFillGap:.05,circleColor:"#178BCA",backgroundColor:null,waveColor:"#178BCA",width:0,height:0,gradientFromColor:"#FFF",gradientToColor:"#000",waveHeight:.05,waveCount:1,waveOffset:0,waveRise:!0,waveRiseTime:1e3,waveRiseAtStart:!0,waveAnimate:!0,waveAnimateTime:1800,waveHeightScaling:!0,valueCountUp:!0,valueCountUpAtStart:!0,textVertPosition:.5,textSize:1,displayPercent:!0,textColor:"#045681",waveTextColor:"#A4DBf8"};t.exports={initialize:function(t){var n=function(){var t=0;return function(n){return n+"-"+t++}}();t.liquidfillgauge=function(e,o,u,a){var c=t.map(i);t.map(u).each((function(t,n){c.set(n,t)})),e.each((function(e){var i,u=t.select(this),s=0!==c.get("width")?c.get("width"):parseInt(u.style("width")),l=0!==c.get("height")?c.get("height"):parseInt(u.style("height")),f=Math.min(s,l)/2,h=s/2-f,d=l/2-f,p=Math.max(c.get("minValue"),Math.min(c.get("maxValue"),o))/c.get("maxValue");i=c.get("waveHeightScaling")?t.scaleLinear().range([0,c.get("waveHeight"),0]).domain([0,50,100]):t.scaleLinear().range([c.get("waveHeight"),c.get("waveHeight")]).domain([0,100]);var g=c.get("textSize")*f/2,v=parseFloat(o).toFixed(2),y=c.get("valueCountUp")?c.get("minValue"):v,_=c.get("displayPercent")?"%":"",m=c.get("circleThickness")*f,w=m+c.get("circleFillGap")*f,x=f-w,b=x*i(100*p),M=2*x/c.get("waveCount"),A=1+c.get("waveCount"),k=M*A,N=function(t){return Math.round(t)};parseFloat(v)!=parseFloat(N(v))&&(N=function(t){return parseFloat(t).toFixed(1)}),parseFloat(v)!=parseFloat(N(v))&&(N=function(t){return parseFloat(t).toFixed(2)}),null!==a&&(N=function(t){return r.format(a,parseFloat(t))});for(var T=[],C=0;C<=40*A;C++)T.push({x:C/(40*A),y:C/40});var E=t.scaleLinear().range([0,2*Math.PI]).domain([0,1]),S=t.scaleLinear().range([0,f]).domain([0,f]),O=t.scaleLinear().range([0,k]).domain([0,1]),P=t.scaleLinear().range([0,b]).domain([0,1]),D=t.scaleLinear().range([w+2*x+b,w-b]).domain([0,1]),U=t.scaleLinear().range([0,k-2*x]).domain([0,1]),L=t.scaleLinear().range([w+2*x,w+.7*g]).domain([0,1]),R=u.append("g").attr("transform","translate("+h+","+d+")");c.get("backgroundColor")&&R.append("circle").attr("r",f).style("fill",c.get("backgroundColor")).attr("transform","translate("+f+","+f+")");var q=t.arc().startAngle(E(0)).endAngle(E(1)).outerRadius(S(f)).innerRadius(S(f-m));R.append("path").attr("d",q).style("fill",c.get("circleColor")).attr("transform","translate("+f+","+f+")");var z=R.append("text").attr("class","liquidFillGaugeText").attr("text-anchor","middle").attr("font-size",g+"px").style("fill",c.get("textColor")).attr("transform","translate("+f+","+L(c.get("textVertPosition"))+")"),F=t.area().x((function(t){return O(t.x)})).y0((function(t){return P(Math.sin(2*Math.PI*c.get("waveOffset")*-1+2*Math.PI*(1-c.get("waveCount"))+2*t.y*Math.PI))})).y1((function(t){return 2*x+b})),$=R.append("defs"),j=n("clipWave"),H=$.append("clipPath").attr("id",j),Y=H.append("path").datum(T).attr("d",F),I=R.append("g").attr("clip-path","url(#"+j+")");if(I.append("circle").attr("cx",f).attr("cy",f).attr("r",x),c.get("fillWithGradient")){var V=c.get("gradientPoints"),B=n("linearGradient"),X=$.append("linearGradient").attr("id",B).attr("x1",V[0]).attr("y1",V[1]).attr("x2",V[2]).attr("y2",V[3]);X.append("stop").attr("offset","0").attr("stop-color",c.get("gradientFromColor")),X.append("stop").attr("offset","1").attr("stop-color",c.get("gradientToColor")),I.style("fill","url(#"+B+")")}else I.style("fill",c.get("waveColor"));var W=I.append("text").attr("class","liquidFillGaugeText").attr("text-anchor","middle").attr("font-size",g+"px").style("fill",c.get("waveTextColor")).attr("transform","translate("+f+","+L(c.get("textVertPosition"))+")"),G=w+2*x-k;c.get("waveAnimate")&&function n(){Y.transition().duration(c.get("waveAnimateTime")).ease(t.easeLinear).attr("transform","translate("+U(1)+",0)").on("end",(function(){Y.attr("transform","translate("+U(0)+",0)"),n()}))}();var Z=function(n,e,r,i){if(i){var u=function(){var r=t.select(this),i=t.interpolate(n,e);return function(t){parseFloat(o)<parseFloat(i(t))?r.text(N(o)+_):r.text(N(i(t))+_)}};z.transition().duration(c.get("waveRiseTime")).tween("text",u),W.transition().duration(c.get("waveRiseTime")).tween("text",u)}else z.text(N(e)+_),W.text(N(e)+_);var a=Math.max(c.get("minValue"),Math.min(c.get("maxValue"),e))/c.get("maxValue"),s=Math.max(c.get("minValue"),Math.min(c.get("maxValue"),n))/c.get("maxValue");r?H.attr("transform","translate("+G+","+D(s)+")").transition().duration(c.get("waveRiseTime")).attr("transform","translate("+G+","+D(a)+")"):H.attr("transform","translate("+G+","+D(a)+")")};Z(y,v,c.get("waveRise")&&c.get("waveRiseAtStart"),c.get("valueCountUp")&&c.get("valueCountUpAtStart")),u.on("valueChanged",(function(t){Z(o,t,c.get("waveRise"),c.get("valueCountUp")),o=t})),u.on("destroy",(function(){z.interrupt().transition(),W.interrupt().transition(),H.interrupt().transition(),Y.interrupt().transition(),u.on("valueChanged",null),u.on("destroy",null)}))}))}},defaultConfig:i}},4:function(t,n,e){"use strict";e.r(n);var r=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},i=function(t){return 1===t.length&&(t=function(t){return function(n,e){return r(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}},o=i(r),u=o.right,a=o.left,c=u,s=function(t,n){null==n&&(n=l);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);e<r;)o[e]=n(i,i=t[++e]);return o};function l(t,n){return[t,n]}var f=function(t,n,e){var r,i,o,u,a=t.length,c=n.length,s=new Array(a*c);for(null==e&&(e=l),r=o=0;r<a;++r)for(u=t[r],i=0;i<c;++i,++o)s[o]=e(u,n[i]);return s},h=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,n){var e,r,i=t.length,o=0,u=-1,a=0,c=0;if(null==n)for(;++u<i;)isNaN(e=d(t[u]))||(c+=(r=e-a)*(e-(a+=r/++o)));else for(;++u<i;)isNaN(e=d(n(t[u],u,t)))||(c+=(r=e-a)*(e-(a+=r/++o)));if(o>1)return c/(o-1)},g=function(t,n){var e=p(t,n);return e?Math.sqrt(e):e},v=function(t,n){var e,r,i,o=t.length,u=-1;if(null==n){for(;++u<o;)if(null!=(e=t[u])&&e>=e)for(r=i=e;++u<o;)null!=(e=t[u])&&(r>e&&(r=e),i<e&&(i=e))}else for(;++u<o;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=i=e;++u<o;)null!=(e=n(t[u],u,t))&&(r>e&&(r=e),i<e&&(i=e));return[r,i]},y=Array.prototype,_=y.slice,m=y.map,w=function(t){return function(){return t}},x=function(t){return t},b=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o},M=Math.sqrt(50),A=Math.sqrt(10),k=Math.sqrt(2),N=function(t,n,e){var r,i,o,u,a=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(u=T(t,n,e))||!isFinite(u))return[];if(u>0)for(t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(i=Math.ceil(n-t+1));++a<i;)o[a]=(t+a)*u;else for(t=Math.floor(t*u),n=Math.ceil(n*u),o=new Array(i=Math.ceil(t-n+1));++a<i;)o[a]=(t-a)/u;return r&&o.reverse(),o};function T(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=M?10:o>=A?5:o>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=M?10:o>=A?5:o>=k?2:1)}function C(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=M?i*=10:o>=A?i*=5:o>=k&&(i*=2),n<t?-i:i}var E=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},S=function(){var t=x,n=v,e=E;function r(r){var i,o,u=r.length,a=new Array(u);for(i=0;i<u;++i)a[i]=t(r[i],i,r);var s=n(a),l=s[0],f=s[1],h=e(a,l,f);Array.isArray(h)||(h=C(l,f,h),h=b(Math.ceil(l/h)*h,Math.floor(f/h)*h,h));for(var d=h.length;h[0]<=l;)h.shift(),--d;for(;h[d-1]>f;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:l,p.x1=i<d?h[i]:f;for(i=0;i<u;++i)l<=(o=a[i])&&o<=f&&g[c(h,o,0,d)].push(r[i]);return g}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:w(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:w([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?w(_.call(t)):w(t),r):e},r},O=function(t,n,e){if(null==e&&(e=d),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t);return u+(+e(t[o+1],o+1,t)-u)*(i-o)}},P=function(t,n,e){return t=m.call(t,d).sort(r),Math.ceil((e-n)/(2*(O(t,.75)-O(t,.25))*Math.pow(t.length,-1/3)))},D=function(t,n,e){return Math.ceil((e-n)/(3.5*g(t)*Math.pow(t.length,-1/3)))},U=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&e>r&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&e>r&&(r=e);return r},L=function(t,n){var e,r=t.length,i=r,o=-1,u=0;if(null==n)for(;++o<r;)isNaN(e=d(t[o]))?--i:u+=e;else for(;++o<r;)isNaN(e=d(n(t[o],o,t)))?--i:u+=e;if(i)return u/i},R=function(t,n){var e,i=t.length,o=-1,u=[];if(null==n)for(;++o<i;)isNaN(e=d(t[o]))||u.push(e);else for(;++o<i;)isNaN(e=d(n(t[o],o,t)))||u.push(e);return O(u.sort(r),.5)},q=function(t){for(var n,e,r,i=t.length,o=-1,u=0;++o<i;)u+=t[o].length;for(e=new Array(u);--i>=0;)for(n=(r=t[i]).length;--n>=0;)e[--u]=r[n];return e},z=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&r>e&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&r>e&&(r=e);return r},F=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},$=function(t,n){if(e=t.length){var e,i,o=0,u=0,a=t[u];for(null==n&&(n=r);++o<e;)(n(i=t[o],a)<0||0!==n(a,a))&&(a=i,u=o);return 0===n(a,a)?u:void 0}},j=function(t,n,e){for(var r,i,o=(null==e?t.length:e)-(n=null==n?0:+n);o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t},H=function(t,n){var e,r=t.length,i=-1,o=0;if(null==n)for(;++i<r;)(e=+t[i])&&(o+=e);else for(;++i<r;)(e=+n(t[i],i,t))&&(o+=e);return o},Y=function(t){if(!(i=t.length))return[];for(var n=-1,e=z(t,I),r=new Array(e);++n<e;)for(var i,o=-1,u=r[n]=new Array(i);++o<i;)u[o]=t[o][n];return r};function I(t){return t.length}var V=function(){return Y(arguments)},B=Array.prototype.slice,X=function(t){return t},W=1e-6;function G(t){return"translate("+(t+.5)+",0)"}function Z(t){return"translate(0,"+(t+.5)+")"}function J(){return!this.__axis}function Q(t,n){var e=[],r=null,i=null,o=6,u=6,a=3,c=1===t||4===t?-1:1,s=4===t||2===t?"x":"y",l=1===t||3===t?G:Z;function f(f){var h=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,d=null==i?n.tickFormat?n.tickFormat.apply(n,e):X:i,p=Math.max(o,0)+a,g=n.range(),v=+g[0]+.5,y=+g[g.length-1]+.5,_=(n.bandwidth?function(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}:function(t){return function(n){return+t(n)}})(n.copy()),m=f.selection?f.selection():f,w=m.selectAll(".domain").data([null]),x=m.selectAll(".tick").data(h,n).order(),b=x.exit(),M=x.enter().append("g").attr("class","tick"),A=x.select("line"),k=x.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),x=x.merge(M),A=A.merge(M.append("line").attr("stroke","#000").attr(s+"2",c*o)),k=k.merge(M.append("text").attr("fill","#000").attr(s,c*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),f!==m&&(w=w.transition(f),x=x.transition(f),A=A.transition(f),k=k.transition(f),b=b.transition(f).attr("opacity",W).attr("transform",(function(t){return isFinite(t=_(t))?l(t):this.getAttribute("transform")})),M.attr("opacity",W).attr("transform",(function(t){var n=this.parentNode.__axis;return l(n&&isFinite(n=n(t))?n:_(t))}))),b.remove(),w.attr("d",4===t||2==t?"M"+c*u+","+v+"H0.5V"+y+"H"+c*u:"M"+v+","+c*u+"V0.5H"+y+"V"+c*u),x.attr("opacity",1).attr("transform",(function(t){return l(_(t))})),A.attr(s+"2",c*o),k.attr(s,c*p).text(d),m.filter(J).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),m.each((function(){this.__axis=_}))}return f.scale=function(t){return arguments.length?(n=t,f):n},f.ticks=function(){return e=B.call(arguments),f},f.tickArguments=function(t){return arguments.length?(e=null==t?[]:B.call(t),f):e.slice()},f.tickValues=function(t){return arguments.length?(r=null==t?null:B.call(t),f):r&&r.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(o=u=+t,f):o},f.tickSizeInner=function(t){return arguments.length?(o=+t,f):o},f.tickSizeOuter=function(t){return arguments.length?(u=+t,f):u},f.tickPadding=function(t){return arguments.length?(a=+t,f):a},f}function K(t){return Q(1,t)}function tt(t){return Q(2,t)}function nt(t){return Q(3,t)}function et(t){return Q(4,t)}var rt={value:function(){}};function it(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new ot(r)}function ot(t){this._=t}function ut(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function at(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=rt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}ot.prototype=it.prototype={constructor:ot,on:function(t,n){var e,r=this._,i=function(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=at(r[e],t.name,n);else if(null==n)for(e in r)r[e]=at(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=ut(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new ot(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var ct=it;function st(){}var lt=function(t){return null==t?st:function(){return this.querySelector(t)}};function ft(){return[]}var ht=function(t){return null==t?ft:function(){return this.querySelectorAll(t)}},dt=function(t){return function(){return this.matches(t)}},pt=function(t){return new Array(t.length)};function gt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}gt.prototype={constructor:gt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function vt(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;a<s;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new gt(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function yt(t,n,e,r,i,o,u){var a,c,s,l={},f=n.length,h=o.length,d=new Array(f);for(a=0;a<f;++a)(c=n[a])&&(d[a]=s="$"+u.call(c,c.__data__,a,n),s in l?i[a]=c:l[s]=c);for(a=0;a<h;++a)(c=l[s="$"+u.call(t,o[a],a,o)])?(r[a]=c,c.__data__=o[a],l[s]=null):e[a]=new gt(t,o[a]);for(a=0;a<f;++a)(c=n[a])&&l[d[a]]===c&&(i[a]=c)}function _t(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var mt="http://www.w3.org/1999/xhtml",wt={svg:"http://www.w3.org/2000/svg",xhtml:mt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},xt=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),wt.hasOwnProperty(n)?{space:wt[n],local:t}:t},bt=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Mt(t,n){return t.style.getPropertyValue(n)||bt(t).getComputedStyle(t,null).getPropertyValue(n)}function At(t){return t.trim().split(/^|\s+/)}function kt(t){return t.classList||new Nt(t)}function Nt(t){this._node=t,this._names=At(t.getAttribute("class")||"")}function Tt(t,n){for(var e=kt(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Ct(t,n){for(var e=kt(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Et(){this.textContent=""}function St(){this.innerHTML=""}function Ot(){this.nextSibling&&this.parentNode.appendChild(this)}function Pt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}Nt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Dt=function(t){var n=xt(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===mt&&n.documentElement.namespaceURI===mt?n.createElement(t):n.createElementNS(e,t)}})(n)};function Ut(){return null}function Lt(){var t=this.parentNode;t&&t.removeChild(this)}function Rt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function qt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var zt={},Ft=null;function $t(t,n,e){return t=jt(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function jt(t,n,e){return function(r){var i=Ft;Ft=r;try{t.call(this,this.__data__,n,e)}finally{Ft=i}}}function Ht(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function Yt(t,n,e){var r=zt.hasOwnProperty(t.type)?$t:jt;return function(i,o,u){var a,c=this.__on,s=r(n,o,u);if(c)for(var l=0,f=c.length;l<f;++l)if((a=c[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=e),void(a.value=n);this.addEventListener(t.type,s,e),a={type:t.type,name:t.name,value:n,listener:s,capture:e},c?c.push(a):this.__on=[a]}}function It(t,n,e,r){var i=Ft;t.sourceEvent=Ft,Ft=t;try{return n.apply(e,r)}finally{Ft=i}}function Vt(t,n,e){var r=bt(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(zt={mouseenter:"mouseover",mouseleave:"mouseout"}));var Bt=[null];function Xt(t,n){this._groups=t,this._parents=n}function Wt(){return new Xt([[document.documentElement]],Bt)}Xt.prototype=Wt.prototype={constructor:Xt,select:function(t){"function"!=typeof t&&(t=lt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,s=r[i]=new Array(c),l=0;l<c;++l)(o=a[l])&&(u=t.call(o,o.__data__,l,a))&&("__data__"in o&&(u.__data__=o.__data__),s[l]=u);return new Xt(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=ht(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,s=0;s<c;++s)(u=a[s])&&(r.push(t.call(u,u.__data__,s,a)),i.push(u));return new Xt(r,i)},filter:function(t){"function"!=typeof t&&(t=dt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new Xt(r,this._parents)},data:function(t,n){if(!t)return d=new Array(this.size()),s=-1,this.each((function(t){d[++s]=t})),d;var e=n?yt:vt,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),s=0;s<o;++s){var l=r[s],f=i[s],h=f.length,d=t.call(l,l&&l.__data__,s,r),p=d.length,g=a[s]=new Array(p),v=u[s]=new Array(p);e(l,f,g,v,c[s]=new Array(h),d,n);for(var y,_,m=0,w=0;m<p;++m)if(y=g[m]){for(m>=w&&(w=m+1);!(_=v[w])&&++w<p;);y._next=_||null}}return(u=new Xt(u,r))._enter=a,u._exit=c,u},enter:function(){return new Xt(this._enter||this._groups.map(pt),this._parents)},exit:function(){return new Xt(this._exit||this._groups.map(pt),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],l=e[a],f=s.length,h=u[a]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new Xt(u,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=_t);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,s=i[o]=new Array(c),l=0;l<c;++l)(u=a[l])&&(s[l]=u);s.sort(n)}return new Xt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=xt(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof n?e.local?function(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)}}:function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:e.local?function(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}:function(t,n){return function(){this.setAttribute(t,n)}})(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):Mt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=At(t+"");if(arguments.length<2){for(var r=kt(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?function(t,n){return function(){(n.apply(this,arguments)?Tt:Ct)(this,t)}}:n?function(t){return function(){Tt(this,t)}}:function(t){return function(){Ct(this,t)}})(e,n))},text:function(t){return arguments.length?this.each(null==t?Et:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?St:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(Ot)},lower:function(){return this.each(Pt)},append:function(t){var n="function"==typeof t?t:Dt(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:Dt(t),r=null==n?Ut:"function"==typeof n?n:lt(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Lt)},clone:function(t){return this.select(t?qt:Rt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(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}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?Yt:Ht,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,s=0,l=a.length;s<l;++s)for(r=0,c=a[s];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?function(t,n){return function(){return Vt(this,t,n.apply(this,arguments))}}:function(t,n){return function(){return Vt(this,t,n)}})(t,n))}};var Gt=Wt,Zt=function(t){return"string"==typeof t?new Xt([[document.querySelector(t)]],[document.documentElement]):new Xt([[t]],Bt)},Jt=function(){Ft.preventDefault(),Ft.stopImmediatePropagation()},Qt=function(t){var n=t.document.documentElement,e=Zt(t).on("dragstart.drag",Jt,!0);"onselectstart"in n?e.on("selectstart.drag",Jt,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")};function Kt(t,n){var e=t.document.documentElement,r=Zt(t).on("dragstart.drag",null);n&&(r.on("click.drag",Jt,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}var tn=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function nn(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function en(){}var rn="\\s*([+-]?\\d+)\\s*",on="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",un="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",an=/^#([0-9a-f]{3,8})$/,cn=new RegExp("^rgb\\("+[rn,rn,rn]+"\\)$"),sn=new RegExp("^rgb\\("+[un,un,un]+"\\)$"),ln=new RegExp("^rgba\\("+[rn,rn,rn,on]+"\\)$"),fn=new RegExp("^rgba\\("+[un,un,un,on]+"\\)$"),hn=new RegExp("^hsl\\("+[on,un,un]+"\\)$"),dn=new RegExp("^hsla\\("+[on,un,un,on]+"\\)$"),pn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function gn(){return this.rgb().formatHex()}function vn(){return this.rgb().formatRgb()}function yn(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=an.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?_n(n):3===e?new bn(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?mn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?mn(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=cn.exec(t))?new bn(n[1],n[2],n[3],1):(n=sn.exec(t))?new bn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=ln.exec(t))?mn(n[1],n[2],n[3],n[4]):(n=fn.exec(t))?mn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=hn.exec(t))?Nn(n[1],n[2]/100,n[3]/100,1):(n=dn.exec(t))?Nn(n[1],n[2]/100,n[3]/100,n[4]):pn.hasOwnProperty(t)?_n(pn[t]):"transparent"===t?new bn(NaN,NaN,NaN,0):null}function _n(t){return new bn(t>>16&255,t>>8&255,255&t,1)}function mn(t,n,e,r){return r<=0&&(t=n=e=NaN),new bn(t,n,e,r)}function wn(t){return t instanceof en||(t=yn(t)),t?new bn((t=t.rgb()).r,t.g,t.b,t.opacity):new bn}function xn(t,n,e,r){return 1===arguments.length?wn(t):new bn(t,n,e,null==r?1:r)}function bn(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Mn(){return"#"+kn(this.r)+kn(this.g)+kn(this.b)}function An(){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 kn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Nn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Cn(t,n,e,r)}function Tn(t){if(t instanceof Cn)return new Cn(t.h,t.s,t.l,t.opacity);if(t instanceof en||(t=yn(t)),!t)return new Cn;if(t instanceof Cn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new Cn(u,a,c,t.opacity)}function Cn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function En(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 Sn(t,n,e,r,i){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)*r+u*i)/6}tn(en,yn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:gn,formatHex:gn,formatHsl:function(){return Tn(this).formatHsl()},formatRgb:vn,toString:vn}),tn(bn,xn,nn(en,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new bn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new bn(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:An,toString:An})),tn(Cn,(function(t,n,e,r){return 1===arguments.length?Tn(t):new Cn(t,n,e,null==r?1:r)}),nn(en,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Cn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Cn(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,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new bn(En(t>=240?t-240:t+120,i,r),En(t,i,r),En(t<120?t+240:t-120,i,r),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 On=function(t){return function(){return t}};function Pn(t,n){return function(e){return t+e*n}}function Dn(t,n){var e=n-t;return e?Pn(t,e):On(isNaN(t)?n:t)}var Un=function t(n){var e=function(t){return 1==(t=+t)?Dn: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(r){return Math.pow(t+r*n,e)}}(n,e,t):On(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=xn(t)).r,(n=xn(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=Dn(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function Ln(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=xn(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}Ln((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<n-1?t[r+2]:2*o-i;return Sn((e-r/n)*n,u,i,o,a)}})),Ln((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return Sn((e-r/n)*n,i,o,u,a)}}));var Rn=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}};function qn(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=In(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}}var zn,Fn,$n=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}},jn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hn=new RegExp(jn.source,"g"),Yn=function(t,n){var e,r,i,o=jn.lastIndex=Hn.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(e=jn.exec(t))&&(r=Hn.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,c.push({i:u,x:$n(e,r)})),o=Hn.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})},In=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?On(n):("number"===r?$n:"string"===r?(e=yn(n))?(n=e,Un):Yn:n instanceof yn?Un:n instanceof Date?function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?Rn:Array.isArray(n)?qn:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=In(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}:$n)(t,n)},Vn=function(){for(var t,n=Ft;t=n.sourceEvent;)n=t;return n},Bn=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},Xn=function(t){var n=Vn();return n.changedTouches&&(n=n.changedTouches[0]),Bn(t,n)},Wn=0,Gn=0,Zn=0,Jn=0,Qn=0,Kn=0,te="object"==typeof performance&&performance.now?performance:Date,ne="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ee(){return Qn||(ne(re),Qn=te.now()+Kn)}function re(){Qn=0}function ie(){this._call=this._time=this._next=null}function oe(t,n,e){var r=new ie;return r.restart(t,n,e),r}function ue(){Qn=(Jn=te.now())+Kn,Wn=Gn=0;try{!function(){ee(),++Wn;for(var t,n=zn;n;)(t=Qn-n._time)>=0&&n._call.call(null,t),n=n._next;--Wn}()}finally{Wn=0,function(){for(var t,n,e=zn,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:zn=n);Fn=t,ce(r)}(),Qn=0}}function ae(){var t=te.now(),n=t-Jn;n>1e3&&(Kn-=n,Jn=t)}function ce(t){Wn||(Gn&&(Gn=clearTimeout(Gn)),t-Qn>24?(t<1/0&&(Gn=setTimeout(ue,t-te.now()-Kn)),Zn&&(Zn=clearInterval(Zn))):(Zn||(Jn=te.now(),Zn=setInterval(ae,1e3)),Wn=1,ne(ue)))}ie.prototype=oe.prototype={constructor:ie,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?ee():+e)+(null==n?0:+n),this._next||Fn===this||(Fn?Fn._next=this:zn=this,Fn=this),this._call=t,this._time=e,ce()},stop:function(){this._call&&(this._call=null,this._time=1/0,ce())}};var se=function(t,n,e){var r=new ie;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},le=ct("start","end","cancel","interrupt"),fe=[],he=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var s,l,f,h;if(1!==e.state)return a();for(s in i)if((h=i[s]).name===e.name){if(3===h.state)return se(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[s])}if(se((function(){3===e.state&&(e.state=4,e.timer.restart(u,e.delay,e.time),u(c))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(f=e.tween.length),s=0,l=-1;s<f;++s)(h=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(r[++l]=h);r.length=l+1}}function u(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=oe((function(t){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:le,tween:fe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function de(t,n){var e=ge(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function pe(t,n){var e=ge(t,n);if(e.state>3)throw new Error("too late; already running");return e}function ge(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var ve,ye,_e,me,we=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},xe=180/Math.PI,be={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Me=function(t,n,e,r,i,o){var u,a,c;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),t*r<n*e&&(t=-t,n=-n,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*xe,skewX:Math.atan(c)*xe,scaleX:u,scaleY:a}};function Ae(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],c=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var c=u.push("translate(",null,n,null,e);a.push({i:c-4,x:$n(t,i)},{i:c-2,x:$n(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,a,c),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:$n(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:$n(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,c),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:$n(t,e)},{i:a-2,x:$n(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,c),o=u=null,function(t){for(var n,e=-1,r=c.length;++e<r;)a[(n=c[e]).i]=n.x(t);return a.join("")}}}var ke=Ae((function(t){return"none"===t?be:(ve||(ve=document.createElement("DIV"),ye=document.documentElement,_e=document.defaultView),ve.style.transform=t,t=_e.getComputedStyle(ye.appendChild(ve),null).getPropertyValue("transform"),ye.removeChild(ve),t=t.slice(7,-1).split(","),Me(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Ne=Ae((function(t){return null==t?be:(me||(me=document.createElementNS("http://www.w3.org/2000/svg","g")),me.setAttribute("transform",t),(t=me.transform.baseVal.consolidate())?(t=t.matrix,Me(t.a,t.b,t.c,t.d,t.e,t.f)):be)}),", ",")",")");function Te(t,n,e){var r=t._id;return t.each((function(){var t=pe(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return ge(t,r).value[n]}}var Ce=function(t,n){var e;return("number"==typeof n?$n:n instanceof yn?Un:(e=yn(n))?(n=e,Un):Yn)(t,n)},Ee=Gt.prototype.constructor;function Se(t){return function(){this.style.removeProperty(t)}}var Oe=0;function Pe(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function De(){return++Oe}var Ue=Gt.prototype;Pe.prototype=function(t){return Gt().transition(t)}.prototype={constructor:Pe,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=lt(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,c,s=r[u],l=s.length,f=o[u]=new Array(l),h=0;h<l;++h)(a=s[h])&&(c=t.call(a,a.__data__,h,s))&&("__data__"in a&&(c.__data__=a.__data__),f[h]=c,he(f[h],n,e,h,f,ge(a,e)));return new Pe(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=ht(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c,s=r[a],l=s.length,f=0;f<l;++f)if(c=s[f]){for(var h,d=t.call(c,c.__data__,f,s),p=ge(c,e),g=0,v=d.length;g<v;++g)(h=d[g])&&he(h,n,e,g,d,p);o.push(d),u.push(c)}return new Pe(o,u,n,e)},filter:function(t){"function"!=typeof t&&(t=dt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new Pe(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],l=e[a],f=s.length,h=u[a]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new Pe(u,this._parents,this._name,this._id)},selection:function(){return new Ee(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=De(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,s=0;s<c;++s)if(u=a[s]){var l=ge(u,n);he(u,t,e,s,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Pe(r,this._parents,t,e)},call:Ue.call,nodes:Ue.nodes,node:Ue.node,size:Ue.size,empty:Ue.empty,each:Ue.each,on:function(t,n){var e=this._id;return arguments.length<2?ge(this.node(),e).on.on(t):this.each(function(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?de:pe;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(t,n){var e=xt(t),r="transform"===e?Ne:Ce;return this.attrTween(t,"function"==typeof n?(e.local?function(t,n,e){var r,i,o;return function(){var u,a,c=e(this);if(null!=c)return(u=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,c));this.removeAttributeNS(t.space,t.local)}}:function(t,n,e){var r,i,o;return function(){var u,a,c=e(this);if(null!=c)return(u=this.getAttribute(t))===(a=c+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,c));this.removeAttribute(t)}})(e,r,Te(this,"attr."+t,n)):null==n?(e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(e):(e.local?function(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}:function(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}})(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=xt(t);return this.tween(e,(r.local?function(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}:function(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i})(r,n))},style:function(t,n,e){var r="transform"==(t+="")?ke:Ce;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=Mt(this,t),u=(this.style.removeProperty(t),Mt(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,Se(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=Mt(this,t),a=e(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=Mt(this,t)),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a))}}(t,r,Te(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var c=pe(this,t),s=c.on,l=null==c.value[u]?o||(o=Se(n)):void 0;s===e&&i===l||(r=(e=s).copy()).on(a,i=l),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=Mt(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Te(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=ge(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?function(t,n){var e,r;return function(){var i=pe(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}:function(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=pe(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,s=i.length;c<s;++c)if(i[c].name===n){i[c]=a;break}c===s&&i.push(a)}o.tween=i}})(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?function(t,n){return function(){de(this,t).delay=+n.apply(this,arguments)}}:function(t,n){return n=+n,function(){de(this,t).delay=n}})(n,t)):ge(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?function(t,n){return function(){pe(this,t).duration=+n.apply(this,arguments)}}:function(t,n){return n=+n,function(){pe(this,t).duration=n}})(n,t)):ge(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!=typeof n)throw new Error;return function(){pe(this,t).ease=n}}(n,t)):ge(this.node(),n).ease},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},c={value:function(){0==--i&&o()}};e.each((function(){var e=pe(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),e.on=n}))}))}};var Le={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Re(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return Le.time=ee(),Le;return e}Gt.prototype.interrupt=function(t){return this.each((function(){we(this,t)}))},Gt.prototype.transition=function(t){var n,e;t instanceof Pe?(n=t._id,t=t._name):(n=De(),(e=Le).time=ee(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,s=0;s<c;++s)(u=a[s])&&he(u,t,n,s,a,e||Re(u,n));return new Pe(r,this._parents,t,n)};var qe=function(t){return function(){return t}},ze=function(t,n,e){this.target=t,this.type=n,this.selection=e};function Fe(){Ft.stopImmediatePropagation()}var $e=function(){Ft.preventDefault(),Ft.stopImmediatePropagation()},je={name:"drag"},He={name:"space"},Ye={name:"handle"},Ie={name:"center"},Ve={name:"x",handles:["e","w"].map(Ke),input:function(t,n){return t&&[[t[0],n[0][1]],[t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Be={name:"y",handles:["n","s"].map(Ke),input:function(t,n){return t&&[[n[0][0],t[0]],[n[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Xe={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(Ke),input:function(t){return t},output:function(t){return t}},We={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ge={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ze={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Je={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Qe={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ke(t){return{type:t}}function tr(){return!Ft.button}function nr(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function er(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function rr(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function ir(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function or(){return cr(Ve)}function ur(){return cr(Be)}var ar=function(){return cr(Xe)};function cr(t){var n,e=nr,r=tr,i=ct(u,"start","brush","end"),o=6;function u(n){var e=n.property("__brush",f).selectAll(".overlay").data([Ke("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",We.overlay).merge(e).each((function(){var t=er(this).extent;Zt(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([Ke("selection")]).enter().append("rect").attr("class","selection").attr("cursor",We.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return We[t.type]})),n.each(a).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",l)}function a(){var t=Zt(this),n=er(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-o/2:n[0][0]-o/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-o/2:n[0][1]-o/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+o:o})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+o:o}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,n){return t.__brush.emitter||new s(t,n)}function s(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function l(){if(Ft.touches){if(Ft.changedTouches.length<Ft.touches.length)return $e()}else if(n)return;if(r.apply(this,arguments)){var e,i,o,u,s,l,f,h,d,p,g,v,y,_=this,m=Ft.target.__data__.type,w="selection"===(Ft.metaKey?m="overlay":m)?je:Ft.altKey?Ie:Ye,x=t===Be?null:Je[m],b=t===Ve?null:Qe[m],M=er(_),A=M.extent,k=M.selection,N=A[0][0],T=A[0][1],C=A[1][0],E=A[1][1],S=x&&b&&Ft.shiftKey,O=Xn(_),P=O,D=c(_,arguments).beforestart();"overlay"===m?M.selection=k=[[e=t===Be?N:O[0],o=t===Ve?T:O[1]],[s=t===Be?C:e,f=t===Ve?E:o]]:(e=k[0][0],o=k[0][1],s=k[1][0],f=k[1][1]),i=e,u=o,l=s,h=f;var U=Zt(_).attr("pointer-events","none"),L=U.selectAll(".overlay").attr("cursor",We[m]);if(Ft.touches)U.on("touchmove.brush",q,!0).on("touchend.brush touchcancel.brush",F,!0);else{var R=Zt(Ft.view).on("keydown.brush",(function(){switch(Ft.keyCode){case 16:S=x&&b;break;case 18:w===Ye&&(x&&(s=l-d*x,e=i+d*x),b&&(f=h-p*b,o=u+p*b),w=Ie,z());break;case 32:w!==Ye&&w!==Ie||(x<0?s=l-d:x>0&&(e=i-d),b<0?f=h-p:b>0&&(o=u-p),w=He,L.attr("cursor",We.selection),z());break;default:return}$e()}),!0).on("keyup.brush",(function(){switch(Ft.keyCode){case 16:S&&(v=y=S=!1,z());break;case 18:w===Ie&&(x<0?s=l:x>0&&(e=i),b<0?f=h:b>0&&(o=u),w=Ye,z());break;case 32:w===He&&(Ft.altKey?(x&&(s=l-d*x,e=i+d*x),b&&(f=h-p*b,o=u+p*b),w=Ie):(x<0?s=l:x>0&&(e=i),b<0?f=h:b>0&&(o=u),w=Ye),L.attr("cursor",We[m]),z());break;default:return}$e()}),!0).on("mousemove.brush",q,!0).on("mouseup.brush",F,!0);Qt(Ft.view)}Fe(),we(_),a.call(_),D.start()}function q(){var t=Xn(_);!S||v||y||(Math.abs(t[0]-P[0])>Math.abs(t[1]-P[1])?y=!0:v=!0),P=t,g=!0,$e(),z()}function z(){var t;switch(d=P[0]-O[0],p=P[1]-O[1],w){case He:case je:x&&(d=Math.max(N-e,Math.min(C-s,d)),i=e+d,l=s+d),b&&(p=Math.max(T-o,Math.min(E-f,p)),u=o+p,h=f+p);break;case Ye:x<0?(d=Math.max(N-e,Math.min(C-e,d)),i=e+d,l=s):x>0&&(d=Math.max(N-s,Math.min(C-s,d)),i=e,l=s+d),b<0?(p=Math.max(T-o,Math.min(E-o,p)),u=o+p,h=f):b>0&&(p=Math.max(T-f,Math.min(E-f,p)),u=o,h=f+p);break;case Ie:x&&(i=Math.max(N,Math.min(C,e-d*x)),l=Math.max(N,Math.min(C,s+d*x))),b&&(u=Math.max(T,Math.min(E,o-p*b)),h=Math.max(T,Math.min(E,f+p*b)))}l<i&&(x*=-1,t=e,e=s,s=t,t=i,i=l,l=t,m in Ge&&L.attr("cursor",We[m=Ge[m]])),h<u&&(b*=-1,t=o,o=f,f=t,t=u,u=h,h=t,m in Ze&&L.attr("cursor",We[m=Ze[m]])),M.selection&&(k=M.selection),v&&(i=k[0][0],l=k[1][0]),y&&(u=k[0][1],h=k[1][1]),k[0][0]===i&&k[0][1]===u&&k[1][0]===l&&k[1][1]===h||(M.selection=[[i,u],[l,h]],a.call(_),D.brush())}function F(){if(Fe(),Ft.touches){if(Ft.touches.length)return;n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),U.on("touchmove.brush touchend.brush touchcancel.brush",null)}else Kt(Ft.view,g),R.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);U.attr("pointer-events","all"),L.attr("cursor",We.overlay),M.selection&&(k=M.selection),rr(k)&&(M.selection=null,a.call(_)),D.end()}}function f(){var n=this.__brush||{selection:null};return n.extent=e.apply(this,arguments),n.dim=t,n}return u.move=function(n,e){n.selection?n.on("start.brush",(function(){c(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){c(this,arguments).end()})).tween("brush",(function(){var n=this,r=n.__brush,i=c(n,arguments),o=r.selection,u=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),s=In(o,u);function l(t){r.selection=1===t&&rr(u)?null:s(t),a.call(n),i.brush()}return o&&u?l:l(1)})):n.each((function(){var n=arguments,r=this.__brush,i=t.input("function"==typeof e?e.apply(this,n):e,r.extent),o=c(this,n).beforestart();we(this),r.selection=null==i||rr(i)?null:i,a.call(this),o.start().brush().end()}))},s.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){It(new ze(u,n,t.output(this.state.selection)),i.apply,i,[n,this.that,this.args])}},u.extent=function(t){return arguments.length?(e="function"==typeof t?t:qe([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),u):e},u.filter=function(t){return arguments.length?(r="function"==typeof t?t:qe(!!t),u):r},u.handleSize=function(t){return arguments.length?(o=+t,u):o},u.on=function(){var t=i.on.apply(i,arguments);return t===i?u:t},u}var sr=e(0),lr=Math.cos,fr=Math.sin,hr=Math.PI,dr=hr/2,pr=2*hr,gr=Math.max,vr=function(){var t=0,n=null,e=null,r=null;function i(i){var o,u,a,c,s,l,f=i.length,h=[],d=Object(sr.g)(f),p=[],g=[],v=g.groups=new Array(f),y=new Array(f*f);for(o=0,s=-1;++s<f;){for(u=0,l=-1;++l<f;)u+=i[s][l];h.push(u),p.push(Object(sr.g)(f)),o+=u}for(n&&d.sort((function(t,e){return n(h[t],h[e])})),e&&p.forEach((function(t,n){t.sort((function(t,r){return e(i[n][t],i[n][r])}))})),c=(o=gr(0,pr-t*f)/o)?t:pr/f,u=0,s=-1;++s<f;){for(a=u,l=-1;++l<f;){var _=d[s],m=p[_][l],w=i[_][m],x=u,b=u+=w*o;y[m*f+_]={index:_,subindex:m,startAngle:x,endAngle:b,value:w}}v[_]={index:_,startAngle:a,endAngle:u,value:h[_]},u+=c}for(s=-1;++s<f;)for(l=s-1;++l<f;){var M=y[l*f+s],A=y[s*f+l];(M.value||A.value)&&g.push(M.value<A.value?{source:A,target:M}:{source:M,target:A})}return r?g.sort(r):g}return i.padAngle=function(n){return arguments.length?(t=gr(0,n),i):t},i.sortGroups=function(t){return arguments.length?(n=t,i):n},i.sortSubgroups=function(t){return arguments.length?(e=t,i):e},i.sortChords=function(t){return arguments.length?(null==t?r=null:(r=function(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}(t))._=t,i):r&&r._},i},yr=Array.prototype.slice,_r=function(t){return function(){return t}},mr=e(30);function wr(t){return t.source}function xr(t){return t.target}function br(t){return t.radius}function Mr(t){return t.startAngle}function Ar(t){return t.endAngle}var kr=function(){var t=wr,n=xr,e=br,r=Mr,i=Ar,o=null;function u(){var u,a=yr.call(arguments),c=t.apply(this,a),s=n.apply(this,a),l=+e.apply(this,(a[0]=c,a)),f=r.apply(this,a)-dr,h=i.apply(this,a)-dr,d=l*lr(f),p=l*fr(f),g=+e.apply(this,(a[0]=s,a)),v=r.apply(this,a)-dr,y=i.apply(this,a)-dr;if(o||(o=u=Object(mr.a)()),o.moveTo(d,p),o.arc(0,0,l,f,h),f===v&&h===y||(o.quadraticCurveTo(0,0,g*lr(v),g*fr(v)),o.arc(0,0,g,v,y)),o.quadraticCurveTo(0,0,d,p),o.closePath(),u)return o=null,u+""||null}return u.radius=function(t){return arguments.length?(e="function"==typeof t?t:_r(+t),u):e},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:_r(+t),u):r},u.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:_r(+t),u):i},u.source=function(n){return arguments.length?(t=n,u):t},u.target=function(t){return arguments.length?(n=t,u):n},u.context=function(t){return arguments.length?(o=null==t?null:t,u):o},u};function Nr(){}function Tr(t,n){var e=new Nr;if(t instanceof Nr)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n(r=t[i],i,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}Nr.prototype=Tr.prototype={constructor:Nr,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var Cr=Tr,Er=function(){var t,n,e,r=[],i=[];function o(e,i,u,a){if(i>=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var c,s,l,f=-1,h=e.length,d=r[i++],p=Cr(),g=u();++f<h;)(l=p.get(c=d(s=e[f])+""))?l.push(s):p.set(c,[s]);return p.each((function(t,n){a(g,n,o(t,i,u,a))})),g}return e={object:function(t){return o(t,0,Sr,Or)},map:function(t){return o(t,0,Pr,Dr)},entries:function(t){return function t(e,o){if(++o>r.length)return e;var u,a=i[o-1];return null!=n&&o>=r.length?u=e.entries():(u=[],e.each((function(n,e){u.push({key:e,values:t(n,o)})}))),null!=a?u.sort((function(t,n){return a(t.key,n.key)})):u}(o(t,0,Pr,Dr),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function Sr(){return{}}function Or(t,n,e){t[n]=e}function Pr(){return Cr()}function Dr(t,n,e){t.set(n,e)}function Ur(){}var Lr=Cr.prototype;function Rr(t,n){var e=new Ur;if(t instanceof Ur)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}Ur.prototype=Rr.prototype={constructor:Ur,has:Lr.has,add:function(t){return this["$"+(t+="")]=t,this},remove:Lr.remove,clear:Lr.clear,values:Lr.keys,size:Lr.size,empty:Lr.empty,each:Lr.each};var qr=Rr,zr=function(t){var n=[];for(var e in t)n.push(e);return n},Fr=function(t){var n=[];for(var e in t)n.push(t[e]);return n},$r=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},jr=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function Hr(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Yr(){}var Ir="\\s*([+-]?\\d+)\\s*",Vr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Br="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xr=/^#([0-9a-f]{3})$/,Wr=/^#([0-9a-f]{6})$/,Gr=new RegExp("^rgb\\("+[Ir,Ir,Ir]+"\\)$"),Zr=new RegExp("^rgb\\("+[Br,Br,Br]+"\\)$"),Jr=new RegExp("^rgba\\("+[Ir,Ir,Ir,Vr]+"\\)$"),Qr=new RegExp("^rgba\\("+[Br,Br,Br,Vr]+"\\)$"),Kr=new RegExp("^hsl\\("+[Vr,Br,Br]+"\\)$"),ti=new RegExp("^hsla\\("+[Vr,Br,Br,Vr]+"\\)$"),ni={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ei(t){var n;return t=(t+"").trim().toLowerCase(),(n=Xr.exec(t))?new ai((n=parseInt(n[1],16))>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Wr.exec(t))?ri(parseInt(n[1],16)):(n=Gr.exec(t))?new ai(n[1],n[2],n[3],1):(n=Zr.exec(t))?new ai(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Jr.exec(t))?ii(n[1],n[2],n[3],n[4]):(n=Qr.exec(t))?ii(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Kr.exec(t))?ci(n[1],n[2]/100,n[3]/100,1):(n=ti.exec(t))?ci(n[1],n[2]/100,n[3]/100,n[4]):ni.hasOwnProperty(t)?ri(ni[t]):"transparent"===t?new ai(NaN,NaN,NaN,0):null}function ri(t){return new ai(t>>16&255,t>>8&255,255&t,1)}function ii(t,n,e,r){return r<=0&&(t=n=e=NaN),new ai(t,n,e,r)}function oi(t){return t instanceof Yr||(t=ei(t)),t?new ai((t=t.rgb()).r,t.g,t.b,t.opacity):new ai}function ui(t,n,e,r){return 1===arguments.length?oi(t):new ai(t,n,e,null==r?1:r)}function ai(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ci(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new li(t,n,e,r)}function si(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof li)return new li(t.h,t.s,t.l,t.opacity);if(t instanceof Yr||(t=ei(t)),!t)return new li;if(t instanceof li)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new li(u,a,c,t.opacity)}(t):new li(t,n,e,null==r?1:r)}function li(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function fi(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}jr(Yr,ei,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),jr(ai,ui,Hr(Yr,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ai(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ai(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){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+")")}})),jr(li,si,Hr(Yr,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new li(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new li(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,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new ai(fi(t>=240?t-240:t+120,i,r),fi(t,i,r),fi(t<120?t+240:t-120,i,r),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}}));var hi=Math.PI/180,di=180/Math.PI,pi=6/29,gi=3*pi*pi;function vi(t){if(t instanceof _i)return new _i(t.l,t.a,t.b,t.opacity);if(t instanceof Ai){var n=t.h*hi;return new _i(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof ai||(t=oi(t));var e=bi(t.r),r=bi(t.g),i=bi(t.b),o=mi((.4124564*e+.3575761*r+.1804375*i)/.95047),u=mi((.2126729*e+.7151522*r+.072175*i)/1);return new _i(116*u-16,500*(o-u),200*(u-mi((.0193339*e+.119192*r+.9503041*i)/1.08883)),t.opacity)}function yi(t,n,e,r){return 1===arguments.length?vi(t):new _i(t,n,e,null==r?1:r)}function _i(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function mi(t){return t>.008856451679035631?Math.pow(t,1/3):t/gi+4/29}function wi(t){return t>pi?t*t*t:gi*(t-4/29)}function xi(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bi(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Mi(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Ai)return new Ai(t.h,t.c,t.l,t.opacity);t instanceof _i||(t=vi(t));var n=Math.atan2(t.b,t.a)*di;return new Ai(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Ai(t,n,e,null==r?1:r)}function Ai(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}jr(_i,yi,Hr(Yr,{brighter:function(t){return new _i(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new _i(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=1*wi(t),new ai(xi(3.2404542*(n=.95047*wi(n))-1.5371385*t-.4985314*(e=1.08883*wi(e))),xi(-.969266*n+1.8760108*t+.041556*e),xi(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),jr(Ai,Mi,Hr(Yr,{brighter:function(t){return new Ai(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Ai(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return vi(this).rgb()}}));var ki=-.29227,Ni=-.90649,Ti=1.97294,Ci=Ti*Ni,Ei=1.78277*Ti,Si=-.6557636667999999;function Oi(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Pi)return new Pi(t.h,t.s,t.l,t.opacity);t instanceof ai||(t=oi(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Si*r+Ci*n-Ei*e)/(Si+Ci-Ei),o=r-i,u=(Ti*(e-i)-ki*o)/Ni,a=Math.sqrt(u*u+o*o)/(Ti*i*(1-i)),c=a?Math.atan2(u,o)*di-120:NaN;return new Pi(c<0?c+360:c,a,i,t.opacity)}(t):new Pi(t,n,e,null==r?1:r)}function Pi(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}jr(Pi,Oi,Hr(Yr,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Pi(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Pi(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*hi,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new ai(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(ki*r+Ni*i)),255*(n+e*(Ti*r)),this.opacity)}}));var Di={value:function(){}};function Ui(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new Li(r)}function Li(t){this._=t}function Ri(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function qi(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Di,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}Li.prototype=Ui.prototype={constructor:Li,on:function(t,n){var e,r=this._,i=function(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=qi(r[e],t.name,n);else if(null==n)for(e in r)r[e]=qi(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=Ri(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Li(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var zi=Ui,Fi={value:function(){}};function $i(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new ji(r)}function ji(t){this._=t}function Hi(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function Yi(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Fi,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}ji.prototype=$i.prototype={constructor:ji,on:function(t,n){var e,r=this._,i=function(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=Yi(r[e],t.name,n);else if(null==n)for(e in r)r[e]=Yi(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=Hi(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new ji(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var Ii=$i,Vi={},Bi=null;function Xi(t,n,e){return t=Wi(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Wi(t,n,e){return function(r){var i=Bi;Bi=r;try{t.call(this,this.__data__,n,e)}finally{Bi=i}}}function Gi(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function Zi(t,n,e){var r=Vi.hasOwnProperty(t.type)?Xi:Wi;return function(i,o,u){var a,c=this.__on,s=r(n,o,u);if(c)for(var l=0,f=c.length;l<f;++l)if((a=c[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=e),void(a.value=n);this.addEventListener(t.type,s,e),a={type:t.type,name:t.name,value:n,listener:s,capture:e},c?c.push(a):this.__on=[a]}}function Ji(t,n,e,r){var i=Bi;t.sourceEvent=Bi,Bi=t;try{return n.apply(e,r)}finally{Bi=i}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Vi={mouseenter:"mouseover",mouseleave:"mouseout"}));var Qi=function(){for(var t,n=Bi;t=n.sourceEvent;)n=t;return n},Ki=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},to=function(t){var n=Qi();return n.changedTouches&&(n=n.changedTouches[0]),Ki(t,n)};function no(){}var eo=function(t){return null==t?no:function(){return this.querySelector(t)}};function ro(){return[]}var io=function(t){return new Array(t.length)};function oo(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}oo.prototype={constructor:oo,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function uo(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;a<s;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new oo(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function ao(t,n,e,r,i,o,u){var a,c,s,l={},f=n.length,h=o.length,d=new Array(f);for(a=0;a<f;++a)(c=n[a])&&(d[a]=s="$"+u.call(c,c.__data__,a,n),s in l?i[a]=c:l[s]=c);for(a=0;a<h;++a)(c=l[s="$"+u.call(t,o[a],a,o)])?(r[a]=c,c.__data__=o[a],l[s]=null):e[a]=new oo(t,o[a]);for(a=0;a<f;++a)(c=n[a])&&l[d[a]]===c&&(i[a]=c)}function co(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var so="http://www.w3.org/1999/xhtml",lo={svg:"http://www.w3.org/2000/svg",xhtml:so,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},fo=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),lo.hasOwnProperty(n)?{space:lo[n],local:t}:t},ho=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function po(t){return t.trim().split(/^|\s+/)}function go(t){return t.classList||new vo(t)}function vo(t){this._node=t,this._names=po(t.getAttribute("class")||"")}function yo(t,n){for(var e=go(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function _o(t,n){for(var e=go(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function mo(){this.textContent=""}function wo(){this.innerHTML=""}function xo(){this.nextSibling&&this.parentNode.appendChild(this)}function bo(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}vo.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Mo=function(t){var n=fo(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===so&&n.documentElement.namespaceURI===so?n.createElement(t):n.createElementNS(e,t)}})(n)};function Ao(){return null}function ko(){var t=this.parentNode;t&&t.removeChild(this)}function No(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function To(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Co(t,n,e){var r=ho(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}var Eo=[null];function So(t,n){this._groups=t,this._parents=n}So.prototype=function(){return new So([[document.documentElement]],Eo)}.prototype={constructor:So,select:function(t){"function"!=typeof t&&(t=eo(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,s=r[i]=new Array(c),l=0;l<c;++l)(o=a[l])&&(u=t.call(o,o.__data__,l,a))&&("__data__"in o&&(u.__data__=o.__data__),s[l]=u);return new So(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?ro:function(){return this.querySelectorAll(t)}}(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,s=0;s<c;++s)(u=a[s])&&(r.push(t.call(u,u.__data__,s,a)),i.push(u));return new So(r,i)},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new So(r,this._parents)},data:function(t,n){if(!t)return d=new Array(this.size()),s=-1,this.each((function(t){d[++s]=t})),d;var e=n?ao:uo,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),s=0;s<o;++s){var l=r[s],f=i[s],h=f.length,d=t.call(l,l&&l.__data__,s,r),p=d.length,g=a[s]=new Array(p),v=u[s]=new Array(p);e(l,f,g,v,c[s]=new Array(h),d,n);for(var y,_,m=0,w=0;m<p;++m)if(y=g[m]){for(m>=w&&(w=m+1);!(_=v[w])&&++w<p;);y._next=_||null}}return(u=new So(u,r))._enter=a,u._exit=c,u},enter:function(){return new So(this._enter||this._groups.map(io),this._parents)},exit:function(){return new So(this._exit||this._groups.map(io),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],l=e[a],f=s.length,h=u[a]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new So(u,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=co);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,s=i[o]=new Array(c),l=0;l<c;++l)(u=a[l])&&(s[l]=u);s.sort(n)}return new So(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=fo(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof n?e.local?function(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)}}:function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:e.local?function(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}:function(t,n){return function(){this.setAttribute(t,n)}})(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):function(t,n){return t.style.getPropertyValue(n)||ho(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=po(t+"");if(arguments.length<2){for(var r=go(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?function(t,n){return function(){(n.apply(this,arguments)?yo:_o)(this,t)}}:n?function(t){return function(){yo(this,t)}}:function(t){return function(){_o(this,t)}})(e,n))},text:function(t){return arguments.length?this.each(null==t?mo:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?wo:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(xo)},lower:function(){return this.each(bo)},append:function(t){var n="function"==typeof t?t:Mo(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:Mo(t),r=null==n?Ao:"function"==typeof n?n:eo(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ko)},clone:function(t){return this.select(t?To:No)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(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}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?Zi:Gi,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,s=0,l=a.length;s<l;++s)for(r=0,c=a[s];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?function(t,n){return function(){return Co(this,t,n.apply(this,arguments))}}:function(t,n){return function(){return Co(this,t,n)}})(t,n))}};var Oo=function(t){return"string"==typeof t?new So([[document.querySelector(t)]],[document.documentElement]):new So([[t]],Eo)},Po=function(t,n,e){arguments.length<3&&(e=n,n=Qi().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return Ki(t,r);return null};function Do(){Bi.stopImmediatePropagation()}var Uo=function(){Bi.preventDefault(),Bi.stopImmediatePropagation()},Lo=function(t){var n=t.document.documentElement,e=Oo(t).on("dragstart.drag",Uo,!0);"onselectstart"in n?e.on("selectstart.drag",Uo,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")};function Ro(t,n){var e=t.document.documentElement,r=Oo(t).on("dragstart.drag",null);n&&(r.on("click.drag",Uo,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}var qo=function(t){return function(){return t}};function zo(t,n,e,r,i,o,u,a,c,s){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=o,this.y=u,this.dx=a,this.dy=c,this._=s}function Fo(){return!Bi.button}function $o(){return this.parentNode}function jo(t){return null==t?{x:Bi.x,y:Bi.y}:t}function Ho(){return"ontouchstart"in this}zo.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Yo=function(){var t,n,e,r,i=Fo,o=$o,u=jo,a=Ho,c={},s=Ii("start","drag","end"),l=0,f=0;function h(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",v).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var u=m("mouse",o.apply(this,arguments),to,this,arguments);u&&(Oo(Bi.view).on("mousemove.drag",p,!0).on("mouseup.drag",g,!0),Lo(Bi.view),Do(),e=!1,t=Bi.clientX,n=Bi.clientY,u("start"))}}function p(){if(Uo(),!e){var r=Bi.clientX-t,i=Bi.clientY-n;e=r*r+i*i>f}c.mouse("drag")}function g(){Oo(Bi.view).on("mousemove.drag mouseup.drag",null),Ro(Bi.view,e),Uo(),c.mouse("end")}function v(){if(i.apply(this,arguments)){var t,n,e=Bi.changedTouches,r=o.apply(this,arguments),u=e.length;for(t=0;t<u;++t)(n=m(e[t].identifier,r,Po,this,arguments))&&(Do(),n("start"))}}function y(){var t,n,e=Bi.changedTouches,r=e.length;for(t=0;t<r;++t)(n=c[e[t].identifier])&&(Uo(),n("drag"))}function _(){var t,n,e=Bi.changedTouches,i=e.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<i;++t)(n=c[e[t].identifier])&&(Do(),n("end"))}function m(t,n,e,r,i){var o,a,f,d=e(n,t),p=s.copy();if(Ji(new zo(h,"beforestart",o,t,l,d[0],d[1],0,0,p),(function(){return null!=(Bi.subject=o=u.apply(r,i))&&(a=o.x-d[0]||0,f=o.y-d[1]||0,!0)})))return function u(s){var g,v=d;switch(s){case"start":c[t]=u,g=l++;break;case"end":delete c[t],--l;case"drag":d=e(n,t),g=l}Ji(new zo(h,s,o,t,g,d[0]+a,d[1]+f,d[0]-v[0],d[1]-v[1],p),p.apply,p,[s,r,i])}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:qo(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:qo(t),h):o},h.subject=function(t){return arguments.length?(u="function"==typeof t?t:qo(t),h):u},h.touchable=function(t){return arguments.length?(a="function"==typeof t?t:qo(!!t),h):a},h.on=function(){var t=s.on.apply(s,arguments);return t===s?h:t},h.clickDistance=function(t){return arguments.length?(f=(t=+t)*t,h):Math.sqrt(f)},h},Io={},Vo={};function Bo(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+"]"})).join(",")+"}")}var Xo=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,u=0,a=0,c=o<=0,s=!1;function l(){if(c)return Vo;if(s)return s=!1,Io;var n,r,i=u;if(34===t.charCodeAt(i)){for(;u++<o&&34!==t.charCodeAt(u)||34===t.charCodeAt(++u););return(n=u)>=o?c=!0:10===(r=t.charCodeAt(u++))?s=!0:13===r&&(s=!0,10===t.charCodeAt(u)&&++u),t.slice(i+1,n-1).replace(/""/g,'"')}for(;u<o;){if(10===(r=t.charCodeAt(n=u++)))s=!0;else if(13===r)s=!0,10===t.charCodeAt(u)&&++u;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(r=l())!==Vo;){for(var f=[];r!==Io&&r!==Vo;)f.push(r),r=l();n&&null==(f=n(f,a++))||i.push(f)}return i}function i(n){return n.map(o).join(t)}function o(t){return null==t?"":n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,o=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=Bo(t);return function(r,i){return n(e(r),i,t)}}(t,n):Bo(t)}));return o.columns=i||[],o},parseRows:r,format:function(n,e){return null==e&&(e=function(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}(n)),[e.map(o).join(t)].concat(n.map((function(n){return e.map((function(t){return o(n[t])})).join(t)}))).join("\n")},formatRows:function(t){return t.map(i).join("\n")}}},Wo=Xo(","),Go=Wo.parse,Zo=Wo.parseRows,Jo=Wo.format,Qo=Wo.formatRows,Ko=Xo("\t"),tu=Ko.parse,nu=Ko.parseRows,eu=Ko.format,ru=Ko.formatRows;function iu(t){return+t}function ou(t){return t*t}function uu(t){return t*(2-t)}function au(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function cu(t){return t*t*t}function su(t){return--t*t*t+1}function lu(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var fu=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),hu=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),du=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),pu=Math.PI,gu=pu/2;function vu(t){return 1-Math.cos(t*gu)}function yu(t){return Math.sin(t*gu)}function _u(t){return(1-Math.cos(pu*t))/2}function mu(t){return Math.pow(2,10*t-10)}function wu(t){return 1-Math.pow(2,-10*t)}function xu(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function bu(t){return 1-Math.sqrt(1-t*t)}function Mu(t){return Math.sqrt(1- --t*t)}function Au(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var ku=7.5625;function Nu(t){return 1-Tu(1-t)}function Tu(t){return(t=+t)<4/11?ku*t*t:t<8/11?ku*(t-=6/11)*t+.75:t<10/11?ku*(t-=9/11)*t+.9375:ku*(t-=21/22)*t+63/64}function Cu(t){return((t*=2)<=1?1-Tu(1-t):Tu(t-1)+1)/2}var Eu=function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(1.70158),Su=function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(1.70158),Ou=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(1.70158),Pu=2*Math.PI,Du=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Pu);function i(t){return n*Math.pow(2,10*--t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Pu)},i.period=function(e){return t(n,e)},i}(1,.3),Uu=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Pu);function i(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Pu)},i.period=function(e){return t(n,e)},i}(1,.3),Lu=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Pu);function i(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((r-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Pu)},i.period=function(e){return t(n,e)},i}(1,.3),Ru=function(t,n){var e;function r(){var r,i,o=e.length,u=0,a=0;for(r=0;r<o;++r)u+=(i=e[r]).x,a+=i.y;for(u=u/o-t,a=a/o-n,r=0;r<o;++r)(i=e[r]).x-=u,i.y-=a}return null==t&&(t=0),null==n&&(n=0),r.initialize=function(t){e=t},r.x=function(n){return arguments.length?(t=+n,r):t},r.y=function(t){return arguments.length?(n=+t,r):n},r},qu=function(t){return function(){return t}},zu=function(){return 1e-6*(Math.random()-.5)};function Fu(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,c,s,l,f,h,d=t._root,p={data:r},g=t._x0,v=t._y0,y=t._x1,_=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((s=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(u=(v+_)/2))?v=u:_=u,i=d,!(d=d[f=l<<1|s]))return i[f]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===a&&e===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(s=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(u=(v+_)/2))?v=u:_=u}while((f=l<<1|s)==(h=(c>=u)<<1|a>=o));return i[h]=d,i[f]=p,t}var $u=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function ju(t){return t[0]}function Hu(t){return t[1]}function Yu(t,n,e){var r=new Iu(null==n?ju:n,null==e?Hu:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Iu(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Vu(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Bu=Yu.prototype=Iu.prototype;function Xu(t){return t.x+t.vx}function Wu(t){return t.y+t.vy}Bu.copy=function(){var t,n,e=new Iu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Vu(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Vu(n));return e},Bu.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Fu(this.cover(n,e),n,e,t)},Bu.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,s=1/0,l=-1/0,f=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(u[e]=r,a[e]=i,r<c&&(c=r),r>l&&(l=r),i<s&&(s=i),i>f&&(f=i));if(c>l||s>f)return this;for(this.cover(c,s).cover(l,f),e=0;e<o;++e)Fu(this,u[e],a[e],t[e]);return this},Bu.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var u,a,c=i-e,s=this._root;e>t||t>=i||r>n||n>=o;)switch(a=(n<r)<<1|t<e,(u=new Array(4))[a]=s,s=u,c*=2,a){case 0:i=e+c,o=r+c;break;case 1:e=i-c,o=r+c;break;case 2:i=e+c,r=o-c;break;case 3:e=i-c,r=o-c}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},Bu.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},Bu.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Bu.find=function(t,n,e){var r,i,o,u,a,c,s,l=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new $u(g,l,f,h,d)),null==e?e=1/0:(l=t-e,f=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(u=c.x1)<l||(a=c.y1)<f))if(g.length){var v=(i+u)/2,y=(o+a)/2;p.push(new $u(g[3],v,y,u,a),new $u(g[2],i,y,v,a),new $u(g[1],v,o,u,y),new $u(g[0],i,o,v,y)),(s=(n>=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var _=t-+this._x.call(null,g.data),m=n-+this._y.call(null,g.data),w=_*_+m*m;if(w<e){var x=Math.sqrt(e=w);l=t-x,f=n-x,h=t+x,d=n+x,r=g.data}}return r},Bu.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var n,e,r,i,o,u,a,c,s,l,f,h,d=this._root,p=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((s=o>=(a=(p+v)/2))?p=a:v=a,(l=u>=(c=(g+y)/2))?g=c:y=c,n=d,!(d=d[f=l<<1|s]))return this;if(!d.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Bu.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},Bu.root=function(){return this._root},Bu.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},Bu.visit=function(t){var n,e,r,i,o,u,a=[],c=this._root;for(c&&a.push(new $u(c,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&c.length){var s=(r+o)/2,l=(i+u)/2;(e=c[3])&&a.push(new $u(e,s,l,o,u)),(e=c[2])&&a.push(new $u(e,r,l,s,u)),(e=c[1])&&a.push(new $u(e,s,i,o,l)),(e=c[0])&&a.push(new $u(e,r,i,s,l))}return this},Bu.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new $u(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,u=n.x0,a=n.y0,c=n.x1,s=n.y1,l=(u+c)/2,f=(a+s)/2;(o=i[0])&&e.push(new $u(o,u,a,l,f)),(o=i[1])&&e.push(new $u(o,l,a,c,f)),(o=i[2])&&e.push(new $u(o,u,f,l,s)),(o=i[3])&&e.push(new $u(o,l,f,c,s))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},Bu.x=function(t){return arguments.length?(this._x=t,this):this._x},Bu.y=function(t){return arguments.length?(this._y=t,this):this._y};var Gu=function(t){var n,e,r=1,i=1;function o(){for(var t,o,a,c,s,l,f,h=n.length,d=0;d<i;++d)for(o=Yu(n,Xu,Wu).visitAfter(u),t=0;t<h;++t)a=n[t],l=e[a.index],f=l*l,c=a.x+a.vx,s=a.y+a.vy,o.visit(p);function p(t,n,e,i,o){var u=t.data,h=t.r,d=l+h;if(!u)return n>c+d||i<c-d||e>s+d||o<s-d;if(u.index>a.index){var p=c-u.x-u.vx,g=s-u.y-u.vy,v=p*p+g*g;v<d*d&&(0===p&&(v+=(p=zu())*p),0===g&&(v+=(g=zu())*g),v=(d-(v=Math.sqrt(v)))/v*r,a.vx+=(p*=v)*(d=(h*=h)/(f+h)),a.vy+=(g*=v)*d,u.vx-=p*(d=1-d),u.vy-=g*d)}}}function u(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function a(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r<o;++r)i=n[r],e[i.index]=+t(i,r,n)}}return"function"!=typeof t&&(t=qu(null==t?1:+t)),o.initialize=function(t){n=t,a()},o.iterations=function(t){return arguments.length?(i=+t,o):i},o.strength=function(t){return arguments.length?(r=+t,o):r},o.radius=function(n){return arguments.length?(t="function"==typeof n?n:qu(+n),a(),o):t},o},Zu=e(2);function Ju(t){return t.index}function Qu(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}var Ku=function(t){var n,e,r,i,o,u=Ju,a=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},c=qu(30),s=1;function l(r){for(var i=0,u=t.length;i<s;++i)for(var a,c,l,f,h,d,p,g=0;g<u;++g)c=(a=t[g]).source,f=(l=a.target).x+l.vx-c.x-c.vx||zu(),h=l.y+l.vy-c.y-c.vy||zu(),f*=d=((d=Math.sqrt(f*f+h*h))-e[g])/d*r*n[g],h*=d,l.vx-=f*(p=o[g]),l.vy-=h*p,c.vx+=f*(p=1-p),c.vy+=h*p}function f(){if(r){var a,c,s=r.length,l=t.length,f=Object(Zu.a)(r,u);for(a=0,i=new Array(s);a<l;++a)(c=t[a]).index=a,"object"!=typeof c.source&&(c.source=Qu(f,c.source)),"object"!=typeof c.target&&(c.target=Qu(f,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(a=0,o=new Array(l);a<l;++a)c=t[a],o[a]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);n=new Array(l),h(),e=new Array(l),d()}}function h(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+a(t[e],e,t)}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}return null==t&&(t=[]),l.initialize=function(t){r=t,f()},l.links=function(n){return arguments.length?(t=n,f(),l):t},l.id=function(t){return arguments.length?(u=t,l):u},l.iterations=function(t){return arguments.length?(s=+t,l):s},l.strength=function(t){return arguments.length?(a="function"==typeof t?t:qu(+t),h(),l):a},l.distance=function(t){return arguments.length?(c="function"==typeof t?t:qu(+t),d(),l):c},l};function ta(t){return t.x}function na(t){return t.y}var ea,ra=Math.PI*(3-Math.sqrt(5)),ia=function(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,u=.6,a=Object(Zu.a)(),c=oe(l),s=ct("tick","end");function l(){f(),s.call("tick",n),e<r&&(c.stop(),s.call("end",n))}function f(){var n,r,c=t.length;for(e+=(o-e)*i,a.each((function(t){t(e)})),n=0;n<c;++n)null==(r=t[n]).fx?r.x+=r.vx*=u:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=u:(r.y=r.fy,r.vy=0)}function h(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,isNaN(n.x)||isNaN(n.y)){var i=10*Math.sqrt(e),o=e*ra;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function d(n){return n.initialize&&n.initialize(t),n}return null==t&&(t=[]),h(),n={tick:f,restart:function(){return c.restart(l),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,h(),a.each(d),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(u=1-t,n):1-u},force:function(t,e){return arguments.length>1?(null==e?a.remove(t):a.set(t,d(e)),n):a.get(t)},find:function(n,e,r){var i,o,u,a,c,s=0,l=t.length;for(null==r?r=1/0:r*=r,s=0;s<l;++s)(u=(i=n-(a=t[s]).x)*i+(o=e-a.y)*o)<r&&(c=a,r=u);return c},on:function(t,e){return arguments.length>1?(s.on(t,e),n):s.on(t)}}},oa=function(){var t,n,e,r,i=qu(-30),o=1,u=1/0,a=.81;function c(r){var i,o=t.length,u=Yu(t,ta,na).visitAfter(l);for(e=r,i=0;i<o;++i)n=t[i],u.visit(f)}function s(){if(t){var n,e,o=t.length;for(r=new Array(o),n=0;n<o;++n)e=t[n],r[e.index]=+i(e,n,t)}}function l(t){var n,e,i,o,u,a=0,c=0;if(t.length){for(i=o=u=0;u<4;++u)(n=t[u])&&(e=Math.abs(n.value))&&(a+=n.value,c+=e,i+=e*n.x,o+=e*n.y);t.x=i/c,t.y=o/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{a+=r[n.data.index]}while(n=n.next)}t.value=a}function f(t,i,c,s){if(!t.value)return!0;var l=t.x-n.x,f=t.y-n.y,h=s-i,d=l*l+f*f;if(h*h/a<d)return d<u&&(0===l&&(d+=(l=zu())*l),0===f&&(d+=(f=zu())*f),d<o&&(d=Math.sqrt(o*d)),n.vx+=l*t.value*e/d,n.vy+=f*t.value*e/d),!0;if(!(t.length||d>=u)){(t.data!==n||t.next)&&(0===l&&(d+=(l=zu())*l),0===f&&(d+=(f=zu())*f),d<o&&(d=Math.sqrt(o*d)));do{t.data!==n&&(h=r[t.data.index]*e/d,n.vx+=l*h,n.vy+=f*h)}while(t=t.next)}}return c.initialize=function(n){t=n,s()},c.strength=function(t){return arguments.length?(i="function"==typeof t?t:qu(+t),s(),c):i},c.distanceMin=function(t){return arguments.length?(o=t*t,c):Math.sqrt(o)},c.distanceMax=function(t){return arguments.length?(u=t*t,c):Math.sqrt(u)},c.theta=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c},ua=function(t,n,e){var r,i,o,u=qu(.1);function a(t){for(var u=0,a=r.length;u<a;++u){var c=r[u],s=c.x-n||1e-6,l=c.y-e||1e-6,f=Math.sqrt(s*s+l*l),h=(o[u]-f)*i[u]*t/f;c.vx+=s*h,c.vy+=l*h}}function c(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)o[n]=+t(r[n],n,r),i[n]=isNaN(o[n])?0:+u(r[n],n,r)}}return"function"!=typeof t&&(t=qu(+t)),null==n&&(n=0),null==e&&(e=0),a.initialize=function(t){r=t,c()},a.strength=function(t){return arguments.length?(u="function"==typeof t?t:qu(+t),c(),a):u},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:qu(+n),c(),a):t},a.x=function(t){return arguments.length?(n=+t,a):n},a.y=function(t){return arguments.length?(e=+t,a):e},a},aa=function(t){var n,e,r,i=qu(.1);function o(t){for(var i,o=0,u=n.length;o<u;++o)(i=n[o]).vx+=(r[o]-i.x)*e[o]*t}function u(){if(n){var o,u=n.length;for(e=new Array(u),r=new Array(u),o=0;o<u;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=qu(null==t?0:+t)),o.initialize=function(t){n=t,u()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:qu(+t),u(),o):i},o.x=function(n){return arguments.length?(t="function"==typeof n?n:qu(+n),u(),o):t},o},ca=function(t){var n,e,r,i=qu(.1);function o(t){for(var i,o=0,u=n.length;o<u;++o)(i=n[o]).vy+=(r[o]-i.y)*e[o]*t}function u(){if(n){var o,u=n.length;for(e=new Array(u),r=new Array(u),o=0;o<u;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=qu(null==t?0:+t)),o.initialize=function(t){n=t,u()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:qu(+t),u(),o):i},o.y=function(n){return arguments.length?(t="function"==typeof n?n:qu(+n),u(),o):t},o},sa=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},la=function(t){return(t=sa(Math.abs(t)))?t[1]:NaN},fa=function(t,n){var e=sa(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},ha={"":function(t,n){t:for(var e,r=(t=t.toPrecision(n)).length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},"%":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 fa(100*t,n)},r:fa,s:function(t,n){var e=sa(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(ea=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+sa(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)}},da=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function pa(t){return new ga(t)}function ga(t){if(!(n=da.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",u=!!n[5],a=n[6]&&+n[6],c=!!n[7],s=n[8]&&+n[8].slice(1),l=n[9]||"";"n"===l?(c=!0,l="g"):ha[l]||(l=""),(u||"0"===e&&"="===r)&&(u=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=u,this.width=a,this.comma=c,this.precision=s,this.type=l}pa.prototype=ga.prototype,ga.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var va,ya,_a,ma=function(t){return t},wa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],xa=function(t){var n=t.grouping&&t.thousands?function(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}}(t.grouping,t.thousands):ma,e=t.currency,r=t.decimal,i=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(t.numerals):ma,o=t.percent||"%";function u(t){var u=(t=pa(t)).fill,a=t.align,c=t.sign,s=t.symbol,l=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.type,g="$"===s?e[0]:"#"===s&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",v="$"===s?e[1]:/[%p]/.test(p)?o:"",y=ha[p],_=!p||/[defgprs%]/.test(p);function m(t){var e,o,s,m=g,w=v;if("c"===p)w=y(t)+w,t="";else{var x=(t=+t)<0;if(t=y(Math.abs(t),d),x&&0==+t&&(x=!1),m=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+m,w=("s"===p?wa[8+ea/3]:"")+w+(x&&"("===c?")":""),_)for(e=-1,o=t.length;++e<o;)if(48>(s=t.charCodeAt(e))||s>57){w=(46===s?r+t.slice(e+1):t.slice(e))+w,t=t.slice(0,e);break}}h&&!l&&(t=n(t,1/0));var b=m.length+t.length+w.length,M=b<f?new Array(f-b+1).join(u):"";switch(h&&l&&(t=n(M+t,M.length?f-w.length:1/0),M=""),a){case"<":t=m+t+w+M;break;case"=":t=m+M+t+w;break;case"^":t=M.slice(0,b=M.length>>1)+m+t+w+M.slice(b);break;default:t=M+m+t+w}return i(t)}return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),m.toString=function(){return t+""},m}return{format:u,formatPrefix:function(t,n){var e=u(((t=pa(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(la(n)/3))),i=Math.pow(10,-r),o=wa[8+r/3];return function(t){return e(i*t)+o}}}};function ba(t){return va=xa(t),ya=va.format,_a=va.formatPrefix,va}ba({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Ma=function(t){return Math.max(0,-la(Math.abs(t)))},Aa=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(la(n)/3)))-la(Math.abs(t)))},ka=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,la(n)-la(t))+1},Na=function(){return new Ta};function Ta(){this.reset()}Ta.prototype={constructor:Ta,reset:function(){this.s=this.t=0},add:function(t){Ea(Ca,t,this.t),Ea(this,Ca.s,this.s),this.s?this.t+=Ca.t:this.s=Ca.t},valueOf:function(){return this.s}};var Ca=new Ta;function Ea(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}var Sa=1e-6,Oa=Math.PI,Pa=Oa/2,Da=Oa/4,Ua=2*Oa,La=180/Oa,Ra=Oa/180,qa=Math.abs,za=Math.atan,Fa=Math.atan2,$a=Math.cos,ja=Math.ceil,Ha=Math.exp,Ya=(Math.floor,Math.log),Ia=Math.pow,Va=Math.sin,Ba=Math.sign||function(t){return t>0?1:t<0?-1:0},Xa=Math.sqrt,Wa=Math.tan;function Ga(t){return t>1?0:t<-1?Oa:Math.acos(t)}function Za(t){return t>1?Pa:t<-1?-Pa:Math.asin(t)}function Ja(t){return(t=Va(t/2))*t}function Qa(){}function Ka(t,n){t&&nc.hasOwnProperty(t.type)&&nc[t.type](t,n)}var tc={Feature:function(t,n){Ka(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)Ka(e[r].geometry,n)}},nc={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){ec(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)ec(e[r],n,0)},Polygon:function(t,n){rc(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)rc(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)Ka(e[r],n)}};function ec(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 rc(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)ec(t[e],n,1);n.polygonEnd()}var ic,oc,uc,ac,cc,sc=function(t,n){t&&tc.hasOwnProperty(t.type)?tc[t.type](t,n):Ka(t,n)},lc=Na(),fc=Na(),hc={point:Qa,lineStart:Qa,lineEnd:Qa,polygonStart:function(){lc.reset(),hc.lineStart=dc,hc.lineEnd=pc},polygonEnd:function(){var t=+lc;fc.add(t<0?Ua+t:t),this.lineStart=this.lineEnd=this.point=Qa},sphere:function(){fc.add(Ua)}};function dc(){hc.point=gc}function pc(){vc(ic,oc)}function gc(t,n){hc.point=vc,ic=t,oc=n,uc=t*=Ra,ac=$a(n=(n*=Ra)/2+Da),cc=Va(n)}function vc(t,n){n=(n*=Ra)/2+Da;var e=(t*=Ra)-uc,r=e>=0?1:-1,i=r*e,o=$a(n),u=Va(n),a=cc*u,c=ac*o+a*$a(i),s=a*r*Va(i);lc.add(Fa(s,c)),uc=t,ac=o,cc=u}var yc=function(t){return fc.reset(),sc(t,hc),2*fc};function _c(t){return[Fa(t[1],t[0]),Za(t[2])]}function mc(t){var n=t[0],e=t[1],r=$a(e);return[r*$a(n),r*Va(n),Va(e)]}function wc(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function xc(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 bc(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Mc(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Ac(t){var n=Xa(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var kc,Nc,Tc,Cc,Ec,Sc,Oc,Pc,Dc,Uc,Lc=Na(),Rc={point:qc,lineStart:Fc,lineEnd:$c,polygonStart:function(){Rc.point=jc,Rc.lineStart=Hc,Rc.lineEnd=Yc,Lc.reset(),hc.polygonStart()},polygonEnd:function(){hc.polygonEnd(),Rc.point=qc,Rc.lineStart=Fc,Rc.lineEnd=$c,lc<0?(kc=-(Tc=180),Nc=-(Cc=90)):Lc>Sa?Cc=90:Lc<-Sa&&(Nc=-90),Uc[0]=kc,Uc[1]=Tc}};function qc(t,n){Dc.push(Uc=[kc=t,Tc=t]),n<Nc&&(Nc=n),n>Cc&&(Cc=n)}function zc(t,n){var e=mc([t*Ra,n*Ra]);if(Pc){var r=xc(Pc,e),i=xc([r[1],-r[0],0],r);Ac(i),i=_c(i);var o,u=t-Ec,a=u>0?1:-1,c=i[0]*La*a,s=qa(u)>180;s^(a*Ec<c&&c<a*t)?(o=i[1]*La)>Cc&&(Cc=o):s^(a*Ec<(c=(c+360)%360-180)&&c<a*t)?(o=-i[1]*La)<Nc&&(Nc=o):(n<Nc&&(Nc=n),n>Cc&&(Cc=n)),s?t<Ec?Ic(kc,t)>Ic(kc,Tc)&&(Tc=t):Ic(t,Tc)>Ic(kc,Tc)&&(kc=t):Tc>=kc?(t<kc&&(kc=t),t>Tc&&(Tc=t)):t>Ec?Ic(kc,t)>Ic(kc,Tc)&&(Tc=t):Ic(t,Tc)>Ic(kc,Tc)&&(kc=t)}else Dc.push(Uc=[kc=t,Tc=t]);n<Nc&&(Nc=n),n>Cc&&(Cc=n),Pc=e,Ec=t}function Fc(){Rc.point=zc}function $c(){Uc[0]=kc,Uc[1]=Tc,Rc.point=qc,Pc=null}function jc(t,n){if(Pc){var e=t-Ec;Lc.add(qa(e)>180?e+(e>0?360:-360):e)}else Sc=t,Oc=n;hc.point(t,n),zc(t,n)}function Hc(){hc.lineStart()}function Yc(){jc(Sc,Oc),hc.lineEnd(),qa(Lc)>Sa&&(kc=-(Tc=180)),Uc[0]=kc,Uc[1]=Tc,Pc=null}function Ic(t,n){return(n-=t)<0?n+360:n}function Vc(t,n){return t[0]-n[0]}function Bc(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var Xc,Wc,Gc,Zc,Jc,Qc,Kc,ts,ns,es,rs,is,os,us,as,cs,ss=function(t){var n,e,r,i,o,u,a;if(Cc=Tc=-(kc=Nc=1/0),Dc=[],sc(t,Rc),e=Dc.length){for(Dc.sort(Vc),n=1,o=[r=Dc[0]];n<e;++n)Bc(r,(i=Dc[n])[0])||Bc(r,i[1])?(Ic(r[0],i[1])>Ic(r[0],r[1])&&(r[1]=i[1]),Ic(i[0],r[1])>Ic(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(a=Ic(r[1],i[0]))>u&&(u=a,kc=i[0],Tc=r[1])}return Dc=Uc=null,kc===1/0||Nc===1/0?[[NaN,NaN],[NaN,NaN]]:[[kc,Nc],[Tc,Cc]]},ls={sphere:Qa,point:fs,lineStart:ds,lineEnd:vs,polygonStart:function(){ls.lineStart=ys,ls.lineEnd=_s},polygonEnd:function(){ls.lineStart=ds,ls.lineEnd=vs}};function fs(t,n){t*=Ra;var e=$a(n*=Ra);hs(e*$a(t),e*Va(t),Va(n))}function hs(t,n,e){Gc+=(t-Gc)/++Xc,Zc+=(n-Zc)/Xc,Jc+=(e-Jc)/Xc}function ds(){ls.point=ps}function ps(t,n){t*=Ra;var e=$a(n*=Ra);us=e*$a(t),as=e*Va(t),cs=Va(n),ls.point=gs,hs(us,as,cs)}function gs(t,n){t*=Ra;var e=$a(n*=Ra),r=e*$a(t),i=e*Va(t),o=Va(n),u=Fa(Xa((u=as*o-cs*i)*u+(u=cs*r-us*o)*u+(u=us*i-as*r)*u),us*r+as*i+cs*o);Wc+=u,Qc+=u*(us+(us=r)),Kc+=u*(as+(as=i)),ts+=u*(cs+(cs=o)),hs(us,as,cs)}function vs(){ls.point=fs}function ys(){ls.point=ms}function _s(){ws(is,os),ls.point=fs}function ms(t,n){is=t,os=n,t*=Ra,n*=Ra,ls.point=ws;var e=$a(n);us=e*$a(t),as=e*Va(t),cs=Va(n),hs(us,as,cs)}function ws(t,n){t*=Ra;var e=$a(n*=Ra),r=e*$a(t),i=e*Va(t),o=Va(n),u=as*o-cs*i,a=cs*r-us*o,c=us*i-as*r,s=Xa(u*u+a*a+c*c),l=Za(s),f=s&&-l/s;ns+=f*u,es+=f*a,rs+=f*c,Wc+=l,Qc+=l*(us+(us=r)),Kc+=l*(as+(as=i)),ts+=l*(cs+(cs=o)),hs(us,as,cs)}var xs=function(t){Xc=Wc=Gc=Zc=Jc=Qc=Kc=ts=ns=es=rs=0,sc(t,ls);var n=ns,e=es,r=rs,i=n*n+e*e+r*r;return i<1e-12&&(n=Qc,e=Kc,r=ts,Wc<Sa&&(n=Gc,e=Zc,r=Jc),(i=n*n+e*e+r*r)<1e-12)?[NaN,NaN]:[Fa(e,n)*La,Za(r/Xa(i))*La]},bs=function(t){return function(){return t}},Ms=function(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))&&t.invert(e[0],e[1])}),e};function As(t,n){return[t>Oa?t-Ua:t<-Oa?t+Ua:t,n]}function ks(t,n,e){return(t%=Ua)?n||e?Ms(Ts(t),Cs(n,e)):Ts(t):n||e?Cs(n,e):As}function Ns(t){return function(n,e){return[(n+=t)>Oa?n-Ua:n<-Oa?n+Ua:n,e]}}function Ts(t){var n=Ns(t);return n.invert=Ns(-t),n}function Cs(t,n){var e=$a(t),r=Va(t),i=$a(n),o=Va(n);function u(t,n){var u=$a(n),a=$a(t)*u,c=Va(t)*u,s=Va(n),l=s*e+a*r;return[Fa(c*i-l*o,a*e-s*r),Za(l*i+c*o)]}return u.invert=function(t,n){var u=$a(n),a=$a(t)*u,c=Va(t)*u,s=Va(n),l=s*i-c*o;return[Fa(c*i+s*o,a*e+l*r),Za(l*e-a*r)]},u}As.invert=As;var Es=function(t){function n(n){return(n=t(n[0]*Ra,n[1]*Ra))[0]*=La,n[1]*=La,n}return t=ks(t[0]*Ra,t[1]*Ra,t.length>2?t[2]*Ra:0),n.invert=function(n){return(n=t.invert(n[0]*Ra,n[1]*Ra))[0]*=La,n[1]*=La,n},n};function Ss(t,n,e,r,i,o){if(e){var u=$a(n),a=Va(n),c=r*e;null==i?(i=n+r*Ua,o=n-c/2):(i=Os(u,i),o=Os(u,o),(r>0?i<o:i>o)&&(i+=r*Ua));for(var s,l=i;r>0?l>o:l<o;l-=c)s=_c([u,-a*$a(l),-a*Va(l)]),t.point(s[0],s[1])}}function Os(t,n){(n=mc(n))[0]-=t,Ac(n);var e=Ga(-n[1]);return((-n[2]<0?-e:e)+Ua-Sa)%Ua}var Ps=function(){var t,n,e=bs([0,0]),r=bs(90),i=bs(6),o={point:function(e,r){t.push(e=n(e,r)),e[0]*=La,e[1]*=La}};function u(){var u=e.apply(this,arguments),a=r.apply(this,arguments)*Ra,c=i.apply(this,arguments)*Ra;return t=[],n=ks(-u[0]*Ra,-u[1]*Ra,0).invert,Ss(o,a,c,1),u={type:"Polygon",coordinates:[t]},t=n=null,u}return u.center=function(t){return arguments.length?(e="function"==typeof t?t:bs([+t[0],+t[1]]),u):e},u.radius=function(t){return arguments.length?(r="function"==typeof t?t:bs(+t),u):r},u.precision=function(t){return arguments.length?(i="function"==typeof t?t:bs(+t),u):i},u},Ds=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:Qa,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},Us=function(t,n){return qa(t[0]-n[0])<Sa&&qa(t[1]-n[1])<Sa};function Ls(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}var Rs=function(t,n,e,r,i){var o,u,a=[],c=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],u=t[n];if(Us(r,u)){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);i.lineEnd()}else a.push(e=new Ls(r,t,null,!0)),c.push(e.o=new Ls(r,null,e,!1)),a.push(e=new Ls(u,t,null,!1)),c.push(e.o=new Ls(u,null,e,!0))}})),a.length){for(c.sort(n),qs(a),qs(c),o=0,u=c.length;o<u;++o)c[o].e=e=!e;for(var s,l,f=a[0];;){for(var h=f,d=!0;h.v;)if((h=h.n)===f)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,u=s.length;o<u;++o)i.point((l=s[o])[0],l[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(s=h.p.z,o=s.length-1;o>=0;--o)i.point((l=s[o])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function qs(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}}var zs=Na(),Fs=function(t,n){var e=n[0],r=n[1],i=[Va(e),-$a(e),0],o=0,u=0;zs.reset();for(var a=0,c=t.length;a<c;++a)if(l=(s=t[a]).length)for(var s,l,f=s[l-1],h=f[0],d=f[1]/2+Da,p=Va(d),g=$a(d),v=0;v<l;++v,h=_,p=w,g=x,f=y){var y=s[v],_=y[0],m=y[1]/2+Da,w=Va(m),x=$a(m),b=_-h,M=b>=0?1:-1,A=M*b,k=A>Oa,N=p*w;if(zs.add(Fa(N*M*Va(A),g*x+N*$a(A))),o+=k?b+M*Ua:b,k^h>=e^_>=e){var T=xc(mc(f),mc(y));Ac(T);var C=xc(i,T);Ac(C);var E=(k^b>=0?-1:1)*Za(C[2]);(r>E||r===E&&(T[0]||T[1]))&&(u+=k^b>=0?1:-1)}}return(o<-Sa||o<Sa&&zs<-Sa)^1&u},$s=function(t,n,e,r){return function(i){var o,u,a,c=n(i),s=Ds(),l=n(s),f=!1,h={point:d,lineStart:g,lineEnd:v,polygonStart:function(){h.point=y,h.lineStart=_,h.lineEnd=m,u=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=g,h.lineEnd=v,u=Object(sr.d)(u);var t=Fs(o,r);u.length?(f||(i.polygonStart(),f=!0),Rs(u,Hs,t,e,i)):t&&(f||(i.polygonStart(),f=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),u=o=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function g(){h.point=p,c.lineStart()}function v(){h.point=d,c.lineEnd()}function y(t,n){a.push([t,n]),l.point(t,n)}function _(){l.lineStart(),a=[]}function m(){y(a[0][0],a[0][1]),l.lineEnd();var t,n,e,r,c=l.clean(),h=s.result(),d=h.length;if(a.pop(),o.push(a),a=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),u.push(h.filter(js))}return h}};function js(t){return t.length>1}function Hs(t,n){return((t=t.x)[0]<0?t[1]-Pa-Sa:Pa-t[1])-((n=n.x)[0]<0?n[1]-Pa-Sa:Pa-n[1])}var Ys=$s((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?Oa:-Oa,c=qa(o-e);qa(c-Oa)<Sa?(t.point(e,r=(r+u)/2>0?Pa:-Pa),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&c>=Oa&&(qa(e-i)<Sa&&(e-=i*Sa),qa(o-a)<Sa&&(o-=a*Sa),r=function(t,n,e,r){var i,o,u=Va(t-e);return qa(u)>Sa?za((Va(n)*(o=$a(r))*Va(e)-Va(r)*(i=$a(n))*Va(t))/(i*o*u)):(n+r)/2}(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(t,n,e,r){var i;if(null==t)i=e*Pa,r.point(-Oa,i),r.point(0,i),r.point(Oa,i),r.point(Oa,0),r.point(Oa,-i),r.point(0,-i),r.point(-Oa,-i),r.point(-Oa,0),r.point(-Oa,i);else if(qa(t[0]-n[0])>Sa){var o=t[0]<n[0]?Oa:-Oa;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}),[-Oa,-Pa]),Is=function(t){var n=$a(t),e=6*Ra,r=n>0,i=qa(n)>Sa;function o(t,e){return $a(t)*$a(e)>n}function u(t,e,r){var i=[1,0,0],o=xc(mc(t),mc(e)),u=wc(o,o),a=o[0],c=u-a*a;if(!c)return!r&&t;var s=n*u/c,l=-n*a/c,f=xc(i,o),h=Mc(i,s);bc(h,Mc(o,l));var d=f,p=wc(h,d),g=wc(d,d),v=p*p-g*(wc(h,h)-1);if(!(v<0)){var y=Xa(v),_=Mc(d,(-p-y)/g);if(bc(_,h),_=_c(_),!r)return _;var m,w=t[0],x=e[0],b=t[1],M=e[1];x<w&&(m=w,w=x,x=m);var A=x-w,k=qa(A-Oa)<Sa;if(!k&&M<b&&(m=b,b=M,M=m),k||A<Sa?k?b+M>0^_[1]<(qa(_[0]-w)<Sa?b:M):b<=_[1]&&_[1]<=M:A>Oa^(w<=_[0]&&_[0]<=x)){var N=Mc(d,(-p+y)/g);return bc(N,h),[_,_c(N)]}}}function a(n,e){var i=r?t:Oa-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return $s(o,(function(t){var n,e,c,s,l;return{lineStart:function(){s=c=!1,l=1},point:function(f,h){var d,p=[f,h],g=o(f,h),v=r?g?0:a(f,h):g?a(f+(f<0?Oa:-Oa),h):0;if(!n&&(s=c=g)&&t.lineStart(),g!==c&&(!(d=u(n,p))||Us(n,d)||Us(p,d))&&(p[0]+=Sa,p[1]+=Sa,g=o(p[0],p[1])),g!==c)l=0,g?(t.lineStart(),d=u(p,n),t.point(d[0],d[1])):(d=u(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(i&&n&&r^g){var y;v&e||!(y=u(p,n,!0))||(l=0,r?(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])))}!g||n&&Us(n,p)||t.point(p[0],p[1]),n=p,c=g,e=v},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return l|(s&&c)<<1}}}),(function(n,r,i,o){Ss(o,t,e,i,n,r)}),r?[0,-t]:[-Oa,t-Oa])},Vs=1e9,Bs=-Vs;function Xs(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,s){var l=0,f=0;if(null==i||(l=u(i,a))!==(f=u(o,a))||c(i,o)<0^a>0)do{s.point(0===l||3===l?t:e,l>1?r:n)}while((l=(l+a+4)%4)!==f);else s.point(o[0],o[1])}function u(r,i){return qa(r[0]-t)<Sa?i>0?0:3:qa(r[0]-e)<Sa?i>0?2:1:qa(r[1]-n)<Sa?i>0?1:0:i>0?3:2}function a(t,n){return c(t.x,n.x)}function c(t,n){var e=u(t,1),r=u(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(u){var c,s,l,f,h,d,p,g,v,y,_,m=u,w=Ds(),x={point:b,lineStart:function(){x.point=M,s&&s.push(l=[]),y=!0,v=!1,p=g=NaN},lineEnd:function(){c&&(M(f,h),d&&v&&w.rejoin(),c.push(w.result())),x.point=b,v&&m.lineEnd()},polygonStart:function(){m=w,c=[],s=[],_=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=s.length;e<i;++e)for(var o,u,a=s[e],c=1,l=a.length,f=a[0],h=f[0],d=f[1];c<l;++c)o=h,u=d,h=(f=a[c])[0],d=f[1],u<=r?d>r&&(h-o)*(r-u)>(d-u)*(t-o)&&++n:d<=r&&(h-o)*(r-u)<(d-u)*(t-o)&&--n;return n}(),e=_&&n,i=(c=Object(sr.d)(c)).length;(e||i)&&(u.polygonStart(),e&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),i&&Rs(c,a,n,o,u),u.polygonEnd()),m=u,c=s=l=null}};function b(t,n){i(t,n)&&m.point(t,n)}function M(o,u){var a=i(o,u);if(s&&l.push([o,u]),y)f=o,h=u,d=a,y=!1,a&&(m.lineStart(),m.point(o,u));else if(a&&v)m.point(o,u);else{var c=[p=Math.max(Bs,Math.min(Vs,p)),g=Math.max(Bs,Math.min(Vs,g))],w=[o=Math.max(Bs,Math.min(Vs,o)),u=Math.max(Bs,Math.min(Vs,u))];!function(t,n,e,r,i,o){var u,a=t[0],c=t[1],s=0,l=1,f=n[0]-a,h=n[1]-c;if(u=e-a,f||!(u>0)){if(u/=f,f<0){if(u<s)return;u<l&&(l=u)}else if(f>0){if(u>l)return;u>s&&(s=u)}if(u=i-a,f||!(u<0)){if(u/=f,f<0){if(u>l)return;u>s&&(s=u)}else if(f>0){if(u<s)return;u<l&&(l=u)}if(u=r-c,h||!(u>0)){if(u/=h,h<0){if(u<s)return;u<l&&(l=u)}else if(h>0){if(u>l)return;u>s&&(s=u)}if(u=o-c,h||!(u<0)){if(u/=h,h<0){if(u>l)return;u>s&&(s=u)}else if(h>0){if(u<s)return;u<l&&(l=u)}return s>0&&(t[0]=a+s*f,t[1]=c+s*h),l<1&&(n[0]=a+l*f,n[1]=c+l*h),!0}}}}}(c,w,t,n,e,r)?a&&(m.lineStart(),m.point(o,u),_=!1):(v||(m.lineStart(),m.point(c[0],c[1])),m.point(w[0],w[1]),a||m.lineEnd(),_=!1)}p=o,g=u,v=a}return x}}var Ws,Gs,Zs,Js=function(){var t,n,e,r=0,i=0,o=960,u=500;return e={stream:function(e){return t&&n===e?t:t=Xs(r,i,o,u)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],u=+a[1][1],t=n=null,e):[[r,i],[o,u]]}}},Qs=Na(),Ks={sphere:Qa,point:Qa,lineStart:function(){Ks.point=nl,Ks.lineEnd=tl},lineEnd:Qa,polygonStart:Qa,polygonEnd:Qa};function tl(){Ks.point=Ks.lineEnd=Qa}function nl(t,n){Ws=t*=Ra,Gs=Va(n*=Ra),Zs=$a(n),Ks.point=el}function el(t,n){t*=Ra;var e=Va(n*=Ra),r=$a(n),i=qa(t-Ws),o=$a(i),u=r*Va(i),a=Zs*e-Gs*r*o,c=Gs*e+Zs*r*o;Qs.add(Fa(Xa(u*u+a*a),c)),Ws=t,Gs=e,Zs=r}var rl=function(t){return Qs.reset(),sc(t,Ks),+Qs},il=[null,null],ol={type:"LineString",coordinates:il},ul=function(t,n){return il[0]=t,il[1]=n,rl(ol)},al={Feature:function(t,n){return sl(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(sl(e[r].geometry,n))return!0;return!1}},cl={Sphere:function(){return!0},Point:function(t,n){return ll(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(ll(e[r],n))return!0;return!1},LineString:function(t,n){return fl(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(fl(e[r],n))return!0;return!1},Polygon:function(t,n){return hl(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(hl(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(sl(e[r],n))return!0;return!1}};function sl(t,n){return!(!t||!cl.hasOwnProperty(t.type))&&cl[t.type](t,n)}function ll(t,n){return 0===ul(t,n)}function fl(t,n){var e=ul(t[0],t[1]);return ul(t[0],n)+ul(n,t[1])<=e+Sa}function hl(t,n){return!!Fs(t.map(dl),pl(n))}function dl(t){return(t=t.map(pl)).pop(),t}function pl(t){return[t[0]*Ra,t[1]*Ra]}var gl=function(t,n){return(t&&al.hasOwnProperty(t.type)?al[t.type]:sl)(t,n)};function vl(t,n,e){var r=Object(sr.g)(t,n-Sa,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function yl(t,n,e){var r=Object(sr.g)(t,n-Sa,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function _l(){var t,n,e,r,i,o,u,a,c,s,l,f,h=10,d=h,p=90,g=360,v=2.5;function y(){return{type:"MultiLineString",coordinates:_()}}function _(){return Object(sr.g)(ja(r/p)*p,e,p).map(l).concat(Object(sr.g)(ja(a/g)*g,u,g).map(f)).concat(Object(sr.g)(ja(n/h)*h,t,h).filter((function(t){return qa(t%p)>Sa})).map(c)).concat(Object(sr.g)(ja(o/d)*d,i,d).filter((function(t){return qa(t%g)>Sa})).map(s))}return y.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(f(u).slice(1),l(e).reverse().slice(1),f(a).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],u=+t[1][1],r>e&&(t=r,r=e,e=t),a>u&&(t=a,a=u,u=t),y.precision(v)):[[r,a],[e,u]]},y.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),y.precision(v)):[[n,o],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],y):[p,g]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(v=+h,c=vl(o,i,90),s=yl(n,t,v),l=vl(a,u,90),f=yl(r,e,v),y):v},y.extentMajor([[-180,-90+Sa],[180,90-Sa]]).extentMinor([[-180,-80-Sa],[180,80+Sa]])}function ml(){return _l()()}var wl,xl,bl,Ml,Al=function(t,n){var e=t[0]*Ra,r=t[1]*Ra,i=n[0]*Ra,o=n[1]*Ra,u=$a(r),a=Va(r),c=$a(o),s=Va(o),l=u*$a(e),f=u*Va(e),h=c*$a(i),d=c*Va(i),p=2*Za(Xa(Ja(o-r)+u*c*Ja(i-e))),g=Va(p),v=p?function(t){var n=Va(t*=p)/g,e=Va(p-t)/g,r=e*l+n*h,i=e*f+n*d,o=e*a+n*s;return[Fa(i,r)*La,Fa(o,Xa(r*r+i*i))*La]}:function(){return[e*La,r*La]};return v.distance=p,v},kl=function(t){return t},Nl=Na(),Tl=Na(),Cl={point:Qa,lineStart:Qa,lineEnd:Qa,polygonStart:function(){Cl.lineStart=El,Cl.lineEnd=Pl},polygonEnd:function(){Cl.lineStart=Cl.lineEnd=Cl.point=Qa,Nl.add(qa(Tl)),Tl.reset()},result:function(){var t=Nl/2;return Nl.reset(),t}};function El(){Cl.point=Sl}function Sl(t,n){Cl.point=Ol,wl=bl=t,xl=Ml=n}function Ol(t,n){Tl.add(Ml*t-bl*n),bl=t,Ml=n}function Pl(){Ol(wl,xl)}var Dl,Ul,Ll,Rl,ql=Cl,zl=1/0,Fl=zl,$l=-zl,jl=$l,Hl={point:function(t,n){t<zl&&(zl=t),t>$l&&($l=t),n<Fl&&(Fl=n),n>jl&&(jl=n)},lineStart:Qa,lineEnd:Qa,polygonStart:Qa,polygonEnd:Qa,result:function(){var t=[[zl,Fl],[$l,jl]];return $l=jl=-(Fl=zl=1/0),t}},Yl=0,Il=0,Vl=0,Bl=0,Xl=0,Wl=0,Gl=0,Zl=0,Jl=0,Ql={point:Kl,lineStart:tf,lineEnd:rf,polygonStart:function(){Ql.lineStart=of,Ql.lineEnd=uf},polygonEnd:function(){Ql.point=Kl,Ql.lineStart=tf,Ql.lineEnd=rf},result:function(){var t=Jl?[Gl/Jl,Zl/Jl]:Wl?[Bl/Wl,Xl/Wl]:Vl?[Yl/Vl,Il/Vl]:[NaN,NaN];return Yl=Il=Vl=Bl=Xl=Wl=Gl=Zl=Jl=0,t}};function Kl(t,n){Yl+=t,Il+=n,++Vl}function tf(){Ql.point=nf}function nf(t,n){Ql.point=ef,Kl(Ll=t,Rl=n)}function ef(t,n){var e=t-Ll,r=n-Rl,i=Xa(e*e+r*r);Bl+=i*(Ll+t)/2,Xl+=i*(Rl+n)/2,Wl+=i,Kl(Ll=t,Rl=n)}function rf(){Ql.point=Kl}function of(){Ql.point=af}function uf(){cf(Dl,Ul)}function af(t,n){Ql.point=cf,Kl(Dl=Ll=t,Ul=Rl=n)}function cf(t,n){var e=t-Ll,r=n-Rl,i=Xa(e*e+r*r);Bl+=i*(Ll+t)/2,Xl+=i*(Rl+n)/2,Wl+=i,Gl+=(i=Rl*t-Ll*n)*(Ll+t),Zl+=i*(Rl+n),Jl+=3*i,Kl(Ll=t,Rl=n)}var sf=Ql;function lf(t){this._context=t}lf.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Ua)}},result:Qa};var ff,hf,df,pf,gf,vf=Na(),yf={point:Qa,lineStart:function(){yf.point=_f},lineEnd:function(){ff&&mf(hf,df),yf.point=Qa},polygonStart:function(){ff=!0},polygonEnd:function(){ff=null},result:function(){var t=+vf;return vf.reset(),t}};function _f(t,n){yf.point=mf,hf=pf=t,df=gf=n}function mf(t,n){pf-=t,gf-=n,vf.add(Xa(pf*pf+gf*gf)),pf=t,gf=n}var wf=yf;function xf(){this._string=[]}function bf(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}xf.prototype={_radius:4.5,_circle:bf(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=bf(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Mf=function(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),sc(t,e(r))),r.result()}return o.area=function(t){return sc(t,e(ql)),ql.result()},o.measure=function(t){return sc(t,e(wf)),wf.result()},o.bounds=function(t){return sc(t,e(Hl)),Hl.result()},o.centroid=function(t){return sc(t,e(sf)),sf.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,kl):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new xf):new lf(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)},Af=function(t){return{stream:kf(t)}};function kf(t){return function(n){var e=new Nf;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Nf(){}function Tf(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),sc(e,t.stream(Hl)),n(Hl.result()),null!=r&&t.clipExtent(r),t}function Cf(t,n,e){return Tf(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),u=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([u,a])}),e)}function Ef(t,n,e){return Cf(t,[[0,0],n],e)}function Sf(t,n,e){return Tf(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,u=-i*e[0][1];t.scale(150*i).translate([o,u])}),e)}function Of(t,n,e){return Tf(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],u=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,u])}),e)}Nf.prototype={constructor:Nf,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Pf=$a(30*Ra),Df=function(t,n){return+n?function(t,n){function e(r,i,o,u,a,c,s,l,f,h,d,p,g,v){var y=s-r,_=l-i,m=y*y+_*_;if(m>4*n&&g--){var w=u+h,x=a+d,b=c+p,M=Xa(w*w+x*x+b*b),A=Za(b/=M),k=qa(qa(b)-1)<Sa||qa(o-f)<Sa?(o+f)/2:Fa(x,w),N=t(k,A),T=N[0],C=N[1],E=T-r,S=C-i,O=_*E-y*S;(O*O/m>n||qa((y*E+_*S)/m-.5)>.3||u*h+a*d+c*p<Pf)&&(e(r,i,o,u,a,c,T,C,k,w/=M,x/=M,b,g,v),v.point(T,C),e(T,C,k,w,x,b,s,l,f,h,d,p,g,v))}}return function(n){var r,i,o,u,a,c,s,l,f,h,d,p,g={point:v,lineStart:y,lineEnd:m,polygonStart:function(){n.polygonStart(),g.lineStart=w},polygonEnd:function(){n.polygonEnd(),g.lineStart=y}};function v(e,r){e=t(e,r),n.point(e[0],e[1])}function y(){l=NaN,g.point=_,n.lineStart()}function _(r,i){var o=mc([r,i]),u=t(r,i);e(l,f,s,h,d,p,l=u[0],f=u[1],s=r,h=o[0],d=o[1],p=o[2],16,n),n.point(l,f)}function m(){g.point=v,n.lineEnd()}function w(){y(),g.point=x,g.lineEnd=b}function x(t,n){_(r=t,n),i=l,o=f,u=h,a=d,c=p,g.point=_}function b(){e(l,f,s,h,d,p,i,o,r,u,a,c,16,n),g.lineEnd=m,m()}return g}}(t,n):function(t){return kf({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)},Uf=kf({point:function(t,n){this.stream.point(t*Ra,n*Ra)}});function Lf(t){return Rf((function(){return t}))()}function Rf(t){var n,e,r,i,o,u,a,c,s,l,f=150,h=480,d=250,p=0,g=0,v=0,y=0,_=0,m=null,w=Ys,x=null,b=kl,M=.5,A=Df(T,M);function k(t){return[(t=o(t[0]*Ra,t[1]*Ra))[0]*f+e,r-t[1]*f]}function N(t){return(t=o.invert((t[0]-e)/f,(r-t[1])/f))&&[t[0]*La,t[1]*La]}function T(t,i){return[(t=n(t,i))[0]*f+e,r-t[1]*f]}function C(){o=Ms(i=ks(v,y,_),n);var t=n(p,g);return e=h-t[0]*f,r=d+t[1]*f,E()}function E(){return s=l=null,k}return k.stream=function(t){return s&&l===t?s:s=Uf(function(t){return kf({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}(i)(w(A(b(l=t)))))},k.preclip=function(t){return arguments.length?(w=t,m=void 0,E()):w},k.postclip=function(t){return arguments.length?(b=t,x=u=a=c=null,E()):b},k.clipAngle=function(t){return arguments.length?(w=+t?Is(m=t*Ra):(m=null,Ys),E()):m*La},k.clipExtent=function(t){return arguments.length?(b=null==t?(x=u=a=c=null,kl):Xs(x=+t[0][0],u=+t[0][1],a=+t[1][0],c=+t[1][1]),E()):null==x?null:[[x,u],[a,c]]},k.scale=function(t){return arguments.length?(f=+t,C()):f},k.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],C()):[h,d]},k.center=function(t){return arguments.length?(p=t[0]%360*Ra,g=t[1]%360*Ra,C()):[p*La,g*La]},k.rotate=function(t){return arguments.length?(v=t[0]%360*Ra,y=t[1]%360*Ra,_=t.length>2?t[2]%360*Ra:0,C()):[v*La,y*La,_*La]},k.precision=function(t){return arguments.length?(A=Df(T,M=t*t),E()):Xa(M)},k.fitExtent=function(t,n){return Cf(k,t,n)},k.fitSize=function(t,n){return Ef(k,t,n)},k.fitWidth=function(t,n){return Sf(k,t,n)},k.fitHeight=function(t,n){return Of(k,t,n)},function(){return n=t.apply(this,arguments),k.invert=n.invert&&N,C()}}function qf(t){var n=0,e=Oa/3,r=Rf(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Ra,e=t[1]*Ra):[n*La,e*La]},i}function zf(t,n){var e=Va(t),r=(e+Va(n))/2;if(qa(r)<Sa)return function(t){var n=$a(t);function e(t,e){return[t*n,Va(e)/n]}return e.invert=function(t,e){return[t/n,Za(e*n)]},e}(t);var i=1+e*(2*r-e),o=Xa(i)/r;function u(t,n){var e=Xa(i-2*r*Va(n))/r;return[e*Va(t*=r),o-e*$a(t)]}return u.invert=function(t,n){var e=o-n;return[Fa(t,qa(e))/r*Ba(e),Za((i-(t*t+e*e)*r*r)/(2*r))]},u}var Ff=function(){return qf(zf).scale(155.424).center([0,33.6442])},$f=function(){return Ff().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},jf=function(){var t,n,e,r,i,o,u=$f(),a=Ff().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Ff().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){o=[t,n]}};function l(t){var n=t[0],u=t[1];return o=null,e.point(n,u),o||(r.point(n,u),o)||(i.point(n,u),o)}function f(){return t=n=null,l}return l.invert=function(t){var n=u.scale(),e=u.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:u).invert(t)},l.stream=function(e){return t&&n===e?t:t=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i<n;)t[i].point(e,r)},sphere:function(){for(var e=-1;++e<n;)t[e].sphere()},lineStart:function(){for(var e=-1;++e<n;)t[e].lineStart()},lineEnd:function(){for(var e=-1;++e<n;)t[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<n;)t[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<n;)t[e].polygonEnd()}}}([u.stream(n=e),a.stream(e),c.stream(e)])},l.precision=function(t){return arguments.length?(u.precision(t),a.precision(t),c.precision(t),f()):u.precision()},l.scale=function(t){return arguments.length?(u.scale(t),a.scale(.35*t),c.scale(t),l.translate(u.translate())):u.scale()},l.translate=function(t){if(!arguments.length)return u.translate();var n=u.scale(),o=+t[0],l=+t[1];return e=u.translate(t).clipExtent([[o-.455*n,l-.238*n],[o+.455*n,l+.238*n]]).stream(s),r=a.translate([o-.307*n,l+.201*n]).clipExtent([[o-.425*n+Sa,l+.12*n+Sa],[o-.214*n-Sa,l+.234*n-Sa]]).stream(s),i=c.translate([o-.205*n,l+.212*n]).clipExtent([[o-.214*n+Sa,l+.166*n+Sa],[o-.115*n-Sa,l+.234*n-Sa]]).stream(s),f()},l.fitExtent=function(t,n){return Cf(l,t,n)},l.fitSize=function(t,n){return Ef(l,t,n)},l.fitWidth=function(t,n){return Sf(l,t,n)},l.fitHeight=function(t,n){return Of(l,t,n)},l.scale(1070)};function Hf(t){return function(n,e){var r=$a(n),i=$a(e),o=t(r*i);return[o*i*Va(n),o*Va(e)]}}function Yf(t){return function(n,e){var r=Xa(n*n+e*e),i=t(r),o=Va(i),u=$a(i);return[Fa(n*o,r*u),Za(r&&e*o/r)]}}var If=Hf((function(t){return Xa(2/(1+t))}));If.invert=Yf((function(t){return 2*Za(t/2)}));var Vf=function(){return Lf(If).scale(124.75).clipAngle(179.999)},Bf=Hf((function(t){return(t=Ga(t))&&t/Va(t)}));Bf.invert=Yf((function(t){return t}));var Xf=function(){return Lf(Bf).scale(79.4188).clipAngle(179.999)};function Wf(t,n){return[t,Ya(Wa((Pa+n)/2))]}Wf.invert=function(t,n){return[t,2*za(Ha(n))-Pa]};var Gf=function(){return Zf(Wf).scale(961/Ua)};function Zf(t){var n,e,r,i=Lf(t),o=i.center,u=i.scale,a=i.translate,c=i.clipExtent,s=null;function l(){var o=Oa*u(),a=i(Es(i.rotate()).invert([0,0]));return c(null==s?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:t===Wf?[[Math.max(a[0]-o,s),n],[Math.min(a[0]+o,e),r]]:[[s,Math.max(a[1]-o,n)],[e,Math.min(a[1]+o,r)]])}return i.scale=function(t){return arguments.length?(u(t),l()):u()},i.translate=function(t){return arguments.length?(a(t),l()):a()},i.center=function(t){return arguments.length?(o(t),l()):o()},i.clipExtent=function(t){return arguments.length?(null==t?s=n=e=r=null:(s=+t[0][0],n=+t[0][1],e=+t[1][0],r=+t[1][1]),l()):null==s?null:[[s,n],[e,r]]},l()}function Jf(t){return Wa((Pa+t)/2)}function Qf(t,n){var e=$a(t),r=t===n?Va(t):Ya(e/$a(n))/Ya(Jf(n)/Jf(t)),i=e*Ia(Jf(t),r)/r;if(!r)return Wf;function o(t,n){i>0?n<-Pa+Sa&&(n=-Pa+Sa):n>Pa-Sa&&(n=Pa-Sa);var e=i/Ia(Jf(n),r);return[e*Va(r*t),i-e*$a(r*t)]}return o.invert=function(t,n){var e=i-n,o=Ba(r)*Xa(t*t+e*e);return[Fa(t,qa(e))/r*Ba(e),2*za(Ia(i/o,1/r))-Pa]},o}var Kf=function(){return qf(Qf).scale(109.5).parallels([30,30])};function th(t,n){return[t,n]}th.invert=th;var nh=function(){return Lf(th).scale(152.63)};function eh(t,n){var e=$a(t),r=t===n?Va(t):(e-$a(n))/(n-t),i=e/r+t;if(qa(r)<Sa)return th;function o(t,n){var e=i-n,o=r*t;return[e*Va(o),i-e*$a(o)]}return o.invert=function(t,n){var e=i-n;return[Fa(t,qa(e))/r*Ba(e),i-Ba(r)*Xa(t*t+e*e)]},o}var rh=function(){return qf(eh).scale(131.154).center([0,13.9389])};function ih(t,n){var e=$a(n),r=$a(t)*e;return[e*Va(t)/r,Va(n)/r]}ih.invert=Yf(za);var oh=function(){return Lf(ih).scale(144.049).clipAngle(60)};function uh(t,n,e,r){return 1===t&&1===n&&0===e&&0===r?kl:kf({point:function(i,o){this.stream.point(i*t+e,o*n+r)}})}var ah=function(){var t,n,e,r,i,o,u=1,a=0,c=0,s=1,l=1,f=kl,h=null,d=kl;function p(){return r=i=null,o}return o={stream:function(t){return r&&i===t?r:r=f(d(i=t))},postclip:function(r){return arguments.length?(d=r,h=t=n=e=null,p()):d},clipExtent:function(r){return arguments.length?(d=null==r?(h=t=n=e=null,kl):Xs(h=+r[0][0],t=+r[0][1],n=+r[1][0],e=+r[1][1]),p()):null==h?null:[[h,t],[n,e]]},scale:function(t){return arguments.length?(f=uh((u=+t)*s,u*l,a,c),p()):u},translate:function(t){return arguments.length?(f=uh(u*s,u*l,a=+t[0],c=+t[1]),p()):[a,c]},reflectX:function(t){return arguments.length?(f=uh(u*(s=t?-1:1),u*l,a,c),p()):s<0},reflectY:function(t){return arguments.length?(f=uh(u*s,u*(l=t?-1:1),a,c),p()):l<0},fitExtent:function(t,n){return Cf(o,t,n)},fitSize:function(t,n){return Ef(o,t,n)},fitWidth:function(t,n){return Sf(o,t,n)},fitHeight:function(t,n){return Of(o,t,n)}}};function ch(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}ch.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,u=o*o;r-=e=(r*(1.007226+o*(.015085+u*(.028874*o-.044475-.005916*u)))-n)/(1.007226+o*(.045255+u*(.259866*o-.311325-.005916*11*u)))}while(qa(e)>Sa&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var sh=function(){return Lf(ch).scale(175.295)};function lh(t,n){return[$a(n)*Va(t),Va(n)]}lh.invert=Yf(Za);var fh=function(){return Lf(lh).scale(249.5).clipAngle(90+Sa)};function hh(t,n){var e=$a(n),r=1+$a(t)*e;return[e*Va(t)/r,Va(n)/r]}hh.invert=Yf((function(t){return 2*za(t)}));var dh=function(){return Lf(hh).scale(250).clipAngle(142)};function ph(t,n){return[Ya(Wa((Pa+n)/2)),-t]}ph.invert=function(t,n){return[-n,2*za(Ha(t))-Pa]};var gh=function(){var t=Zf(ph),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)};function vh(t,n){return t.parent===n.parent?1:2}function yh(t,n){return t+n.x}function _h(t,n){return Math.max(t,n.y)}var mh=function(){var t=vh,n=1,e=1,r=!1;function i(i){var o,u=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(yh,0)/t.length}(e),n.y=function(t){return 1+t.reduce(_h,0)}(e)):(n.x=o?u+=t(n,o):0,n.y=0,o=n)}));var a=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),s=a.x-t(a,c)/2,l=c.x+t(c,a)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-s)/(l-s)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i};function wh(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function xh(t,n){var e,r,i,o,u,a=new kh(t),c=+t.value&&(a.value=t.value),s=[a];for(null==n&&(n=bh);e=s.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(u=i.length))for(e.children=new Array(u),o=u-1;o>=0;--o)s.push(r=e.children[o]=new kh(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Ah)}function bh(t){return t.children}function Mh(t){t.data=t.data.data}function Ah(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function kh(t){this.data=t,this.depth=this.height=0,this.parent=null}kh.prototype=xh.prototype={constructor:kh,count:function(){return this.eachAfter(wh)},each:function(t){var n,e,r,i,o=this,u=[o];do{for(n=u.reverse(),u=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r<i;++r)u.push(e[r])}while(u.length);return this},eachAfter:function(t){for(var n,e,r,i=this,o=[i],u=[];i=o.pop();)if(u.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e]);for(;i=u.pop();)t(i);return this},eachBefore:function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].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(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},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 xh(this).eachBefore(Mh)}};var Nh=Array.prototype.slice,Th=function(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Nh.call(t))).length,o=[];r<i;)n=t[r],e&&Sh(e,n)?++r:(e=Ph(o=Ch(o,n)),r=0);return e};function Ch(t,n){var e,r;if(Oh(n,t))return[n];for(e=0;e<t.length;++e)if(Eh(n,t[e])&&Oh(Dh(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(Eh(Dh(t[e],t[r]),n)&&Eh(Dh(t[e],n),t[r])&&Eh(Dh(t[r],n),t[e])&&Oh(Uh(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function Eh(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function Sh(t,n){var e=t.r-n.r+1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Oh(t,n){for(var e=0;e<n.length;++e)if(!Sh(t,n[e]))return!1;return!0}function Ph(t){switch(t.length){case 1:return function(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return Dh(t[0],t[1]);case 3:return Uh(t[0],t[1],t[2])}}function Dh(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,u=n.y,a=n.r,c=o-e,s=u-r,l=a-i,f=Math.sqrt(c*c+s*s);return{x:(e+o+c/f*l)/2,y:(r+u+s/f*l)/2,r:(f+i+a)/2}}function Uh(t,n,e){var r=t.x,i=t.y,o=t.r,u=n.x,a=n.y,c=n.r,s=e.x,l=e.y,f=e.r,h=r-u,d=r-s,p=i-a,g=i-l,v=c-o,y=f-o,_=r*r+i*i-o*o,m=_-u*u-a*a+c*c,w=_-s*s-l*l+f*f,x=d*p-h*g,b=(p*w-g*m)/(2*x)-r,M=(g*v-p*y)/x,A=(d*m-h*w)/(2*x)-i,k=(h*y-d*v)/x,N=M*M+k*k-1,T=2*(o+b*M+A*k),C=b*b+A*A-o*o,E=-(N?(T+Math.sqrt(T*T-4*N*C))/(2*N):C/T);return{x:r+b+M*E,y:i+A+k*E,r:E}}function Lh(t,n,e){var r=t.x,i=t.y,o=n.r+e.r,u=t.r+e.r,a=n.x-r,c=n.y-i,s=a*a+c*c;if(s){var l=.5+((u*=u)-(o*=o))/(2*s),f=Math.sqrt(Math.max(0,2*o*(u+s)-(u-=s)*u-o*o))/(2*s);e.x=r+l*a+f*c,e.y=i+l*c-f*a}else e.x=r+u,e.y=i}function Rh(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return i*i-1e-6>e*e+r*r}function qh(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function zh(t){this._=t,this.next=null,this.previous=null}function Fh(t){if(!(i=t.length))return 0;var n,e,r,i,o,u,a,c,s,l,f;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;Lh(e,n,r=t[2]),n=new zh(n),e=new zh(e),r=new zh(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a<i;++a){Lh(n._,e._,r=t[a]),r=new zh(r),c=e.next,s=n.previous,l=e._.r,f=n._.r;do{if(l<=f){if(Rh(c._,r._)){e=c,n.next=e,e.previous=n,--a;continue t}l+=c._.r,c=c.next}else{if(Rh(s._,r._)){(n=s).next=e,e.previous=n,--a;continue t}f+=s._.r,s=s.previous}}while(c!==s.next);for(r.previous=n,r.next=e,n.next=e.previous=e=r,o=qh(n);(r=r.next)!==e;)(u=qh(r))<o&&(n=r,o=u);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=Th(n),a=0;a<i;++a)(n=t[a]).x-=r.x,n.y-=r.y;return r.r}var $h=function(t){return Fh(t),t};function jh(t){if("function"!=typeof t)throw new Error;return t}function Hh(){return 0}var Yh=function(t){return function(){return t}};function Ih(t){return Math.sqrt(t.value)}var Vh=function(){var t=null,n=1,e=1,r=Hh;function i(i){return i.x=n/2,i.y=e/2,t?i.eachBefore(Bh(t)).eachAfter(Xh(r,.5)).eachBefore(Wh(1)):i.eachBefore(Bh(Ih)).eachAfter(Xh(Hh,1)).eachAfter(Xh(r,i.r/Math.min(n,e))).eachBefore(Wh(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=function(t){return null==t?null:jh(t)}(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:Yh(+t),i):r},i};function Bh(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function Xh(t,n){return function(e){if(r=e.children){var r,i,o,u=r.length,a=t(e)*n||0;if(a)for(i=0;i<u;++i)r[i].r+=a;if(o=Fh(r),a)for(i=0;i<u;++i)r[i].r-=a;e.r=o+a}}}function Wh(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}var Gh=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},Zh=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,s=t.value&&(r-n)/t.value;++a<c;)(o=u[a]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*s},Jh=function(){var t=1,n=1,e=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/o,i.eachBefore(function(t,n){return function(r){r.children&&Zh(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,u=r.x1-e,a=r.y1-e;u<i&&(i=u=(i+u)/2),a<o&&(o=a=(o+a)/2),r.x0=i,r.y0=o,r.x1=u,r.y1=a}}(n,o)),r&&i.eachBefore(Gh),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i},Qh={depth:-1},Kh={};function td(t){return t.id}function nd(t){return t.parentId}var ed=function(){var t=td,n=nd;function e(e){var r,i,o,u,a,c,s,l=e.length,f=new Array(l),h={};for(i=0;i<l;++i)r=e[i],a=f[i]=new kh(r),null!=(c=t(r,i,e))&&(c+="")&&(h[s="$"+(a.id=c)]=s in h?Kh:a);for(i=0;i<l;++i)if(a=f[i],null!=(c=n(e[i],i,e))&&(c+="")){if(!(u=h["$"+c]))throw new Error("missing: "+c);if(u===Kh)throw new Error("ambiguous: "+c);u.children?u.children.push(a):u.children=[a],a.parent=u}else{if(o)throw new Error("multiple roots");o=a}if(!o)throw new Error("no root");if(o.parent=Qh,o.eachBefore((function(t){t.depth=t.parent.depth+1,--l})).eachBefore(Ah),o.parent=null,l>0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=jh(n),e):t},e.parentId=function(t){return arguments.length?(n=jh(t),e):n},e};function rd(t,n){return t.parent===n.parent?1:2}function id(t){var n=t.children;return n?n[0]:t.t}function od(t){var n=t.children;return n?n[n.length-1]:t.t}function ud(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function ad(t,n,e){return t.a.parent===n.parent?t.a:e}function cd(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}cd.prototype=Object.create(kh.prototype);var sd=function(){var t=rd,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,u=new cd(t,0),a=[u];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new cd(r[i],i)),e.parent=n;return(u.parent=new cd(null,0)).children=[u],u}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(u),r)i.eachBefore(a);else{var s=i,l=i,f=i;i.eachBefore((function(t){t.x<s.x&&(s=t),t.x>l.x&&(l=t),t.depth>f.depth&&(f=t)}));var h=s===l?1:t(s,l)/2,d=h-s.x,p=n/(l.x+h+d),g=e/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,u=n,a=e,c=o.parent.children[0],s=o.m,l=u.m,f=a.m,h=c.m;a=od(a),o=id(o),a&&o;)c=id(c),(u=od(u)).a=n,(i=a.z+f-o.z-s+t(a._,o._))>0&&(ud(ad(a,n,r),n,i),s+=i,l+=i),f+=a.m,s+=o.m,h+=c.m,l+=u.m;a&&!od(u)&&(u.t=a,u.m+=f-l),o&&!id(c)&&(c.t=o,c.m+=s-h,r=n)}return r}(n,i,n.parent.A||r[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},ld=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,s=t.value&&(i-e)/t.value;++a<c;)(o=u[a]).x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*s},fd=(1+Math.sqrt(5))/2;function hd(t,n,e,r,i,o){for(var u,a,c,s,l,f,h,d,p,g,v,y=[],_=n.children,m=0,w=0,x=_.length,b=n.value;m<x;){c=i-e,s=o-r;do{l=_[w++].value}while(!l&&w<x);for(f=h=l,v=l*l*(g=Math.max(s/c,c/s)/(b*t)),p=Math.max(h/v,v/f);w<x;++w){if(l+=a=_[w].value,a<f&&(f=a),a>h&&(h=a),v=l*l*g,(d=Math.max(h/v,v/f))>p){l-=a;break}p=d}y.push(u={value:l,dice:c<s,children:_.slice(m,w)}),u.dice?Zh(u,e,r,i,b?r+=s*l/b:o):ld(u,e,r,b?e+=c*l/b:i,o),b-=l,m=w}return y}var dd=function t(n){function e(t,e,r,i,o){hd(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(fd),pd=function(){var t=dd,n=!1,e=1,r=1,i=[0],o=Hh,u=Hh,a=Hh,c=Hh,s=Hh;function l(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(f),i=[0],n&&t.eachBefore(Gh),t}function f(n){var e=i[n.depth],r=n.x0+e,l=n.y0+e,f=n.x1-e,h=n.y1-e;f<r&&(r=f=(r+f)/2),h<l&&(l=h=(l+h)/2),n.x0=r,n.y0=l,n.x1=f,n.y1=h,n.children&&(e=i[n.depth+1]=o(n)/2,r+=s(n)-e,l+=u(n)-e,(f-=a(n)-e)<r&&(r=f=(r+f)/2),(h-=c(n)-e)<l&&(l=h=(l+h)/2),t(n,r,l,f,h))}return l.round=function(t){return arguments.length?(n=!!t,l):n},l.size=function(t){return arguments.length?(e=+t[0],r=+t[1],l):[e,r]},l.tile=function(n){return arguments.length?(t=jh(n),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:Yh(+t),l):o},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(u="function"==typeof t?t:Yh(+t),l):u},l.paddingRight=function(t){return arguments.length?(a="function"==typeof t?t:Yh(+t),l):a},l.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:Yh(+t),l):c},l.paddingLeft=function(t){return arguments.length?(s="function"==typeof t?t:Yh(+t),l):s},l},gd=function(t,n,e,r,i){var o,u,a=t.children,c=a.length,s=new Array(c+1);for(s[0]=u=o=0;o<c;++o)s[o+1]=u+=a[o].value;!function t(n,e,r,i,o,u,c){if(n>=e-1){var l=a[n];return l.x0=i,l.y0=o,l.x1=u,void(l.y1=c)}for(var f=s[n],h=r/2+f,d=n+1,p=e-1;d<p;){var g=d+p>>>1;s[g]<h?d=g+1:p=g}h-s[d-1]<s[d]-h&&n+1<d&&--d;var v=s[d]-f,y=r-v;if(u-i>c-o){var _=(i*y+u*v)/r;t(n,d,v,i,o,_,c),t(d,e,y,_,o,u,c)}else{var m=(o*y+c*v)/r;t(n,d,v,i,o,u,m),t(d,e,y,i,m,u,c)}}(0,c,t.value,n,e,r,i)},vd=function(t,n,e,r,i){(1&t.depth?ld:Zh)(t,n,e,r,i)},yd=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,c,s,l,f=-1,h=u.length,d=t.value;++f<h;){for(c=(a=u[f]).children,s=a.value=0,l=c.length;s<l;++s)a.value+=c[s].value;a.dice?Zh(a,e,r,i,r+=(o-r)*a.value/d):ld(a,e,r,e+=(i-e)*a.value/d,o),d-=a.value}else t._squarify=u=hd(n,t,e,r,i,o),u.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(fd),_d=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function md(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function wd(){}var xd="\\s*([+-]?\\d+)\\s*",bd="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Md="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ad=/^#([0-9a-f]{3,8})$/,kd=new RegExp("^rgb\\("+[xd,xd,xd]+"\\)$"),Nd=new RegExp("^rgb\\("+[Md,Md,Md]+"\\)$"),Td=new RegExp("^rgba\\("+[xd,xd,xd,bd]+"\\)$"),Cd=new RegExp("^rgba\\("+[Md,Md,Md,bd]+"\\)$"),Ed=new RegExp("^hsl\\("+[bd,Md,Md]+"\\)$"),Sd=new RegExp("^hsla\\("+[bd,Md,Md,bd]+"\\)$"),Od={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Pd(){return this.rgb().formatHex()}function Dd(){return this.rgb().formatRgb()}function Ud(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Ad.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Ld(n):3===e?new Fd(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Rd(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Rd(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=kd.exec(t))?new Fd(n[1],n[2],n[3],1):(n=Nd.exec(t))?new Fd(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Td.exec(t))?Rd(n[1],n[2],n[3],n[4]):(n=Cd.exec(t))?Rd(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ed.exec(t))?Yd(n[1],n[2]/100,n[3]/100,1):(n=Sd.exec(t))?Yd(n[1],n[2]/100,n[3]/100,n[4]):Od.hasOwnProperty(t)?Ld(Od[t]):"transparent"===t?new Fd(NaN,NaN,NaN,0):null}function Ld(t){return new Fd(t>>16&255,t>>8&255,255&t,1)}function Rd(t,n,e,r){return r<=0&&(t=n=e=NaN),new Fd(t,n,e,r)}function qd(t){return t instanceof wd||(t=Ud(t)),t?new Fd((t=t.rgb()).r,t.g,t.b,t.opacity):new Fd}function zd(t,n,e,r){return 1===arguments.length?qd(t):new Fd(t,n,e,null==r?1:r)}function Fd(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function $d(){return"#"+Hd(this.r)+Hd(this.g)+Hd(this.b)}function jd(){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 Hd(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Yd(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Bd(t,n,e,r)}function Id(t){if(t instanceof Bd)return new Bd(t.h,t.s,t.l,t.opacity);if(t instanceof wd||(t=Ud(t)),!t)return new Bd;if(t instanceof Bd)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new Bd(u,a,c,t.opacity)}function Vd(t,n,e,r){return 1===arguments.length?Id(t):new Bd(t,n,e,null==r?1:r)}function Bd(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Xd(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 Wd(t,n,e,r,i){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)*r+u*i)/6}_d(wd,Ud,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Pd,formatHex:Pd,formatHsl:function(){return Id(this).formatHsl()},formatRgb:Dd,toString:Dd}),_d(Fd,zd,md(wd,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Fd(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Fd(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:$d,formatHex:$d,formatRgb:jd,toString:jd})),_d(Bd,Vd,md(wd,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Bd(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Bd(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,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Fd(Xd(t>=240?t-240:t+120,i,r),Xd(t,i,r),Xd(t<120?t+240:t-120,i,r),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 Gd=function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<n-1?t[r+2]:2*o-i;return Wd((e-r/n)*n,u,i,o,a)}},Zd=function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return Wd((e-r/n)*n,i,o,u,a)}},Jd=function(t){return function(){return t}};function Qd(t,n){return function(e){return t+e*n}}function Kd(t,n){var e=n-t;return e?Qd(t,e>180||e<-180?e-360*Math.round(e/360):e):Jd(isNaN(t)?n:t)}function tp(t,n){var e=n-t;return e?Qd(t,e):Jd(isNaN(t)?n:t)}var np=function t(n){var e=function(t){return 1==(t=+t)?tp: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(r){return Math.pow(t+r*n,e)}}(n,e,t):Jd(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=zd(t)).r,(n=zd(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=tp(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function ep(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=zd(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}var rp,ip,op,up,ap=ep(Gd),cp=ep(Zd),sp=function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=vp(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}},lp=function(t,n){var e=new Date;return n-=t=+t,function(r){return e.setTime(t+n*r),e}},fp=function(t,n){return n-=t=+t,function(e){return t+n*e}},hp=function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=vp(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},dp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pp=new RegExp(dp.source,"g"),gp=function(t,n){var e,r,i,o=dp.lastIndex=pp.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(e=dp.exec(t))&&(r=pp.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,c.push({i:u,x:fp(e,r)})),o=pp.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})},vp=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?Jd(n):("number"===r?fp:"string"===r?(e=Ud(n))?(n=e,np):gp:n instanceof Ud?np:n instanceof Date?lp:Array.isArray(n)?sp:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?hp:fp)(t,n)},yp=function(t,n){return n-=t=+t,function(e){return Math.round(t+n*e)}},_p=180/Math.PI,mp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},wp=function(t,n,e,r,i,o){var u,a,c;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),t*r<n*e&&(t=-t,n=-n,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*_p,skewX:Math.atan(c)*_p,scaleX:u,scaleY:a}};function xp(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],c=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var c=u.push("translate(",null,n,null,e);a.push({i:c-4,x:fp(t,i)},{i:c-2,x:fp(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,a,c),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:fp(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:fp(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,c),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:fp(t,e)},{i:a-2,x:fp(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,c),o=u=null,function(t){for(var n,e=-1,r=c.length;++e<r;)a[(n=c[e]).i]=n.x(t);return a.join("")}}}var bp=xp((function(t){return"none"===t?mp:(rp||(rp=document.createElement("DIV"),ip=document.documentElement,op=document.defaultView),rp.style.transform=t,t=op.getComputedStyle(ip.appendChild(rp),null).getPropertyValue("transform"),ip.removeChild(rp),t=t.slice(7,-1).split(","),wp(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Mp=xp((function(t){return null==t?mp:(up||(up=document.createElementNS("http://www.w3.org/2000/svg","g")),up.setAttribute("transform",t),(t=up.transform.baseVal.consolidate())?(t=t.matrix,wp(t.a,t.b,t.c,t.d,t.e,t.f)):mp)}),", ",")",")"),Ap=Math.SQRT2;function kp(t){return((t=Math.exp(t))+1/t)/2}var Np=function(t,n){var e,r,i=t[0],o=t[1],u=t[2],a=n[0],c=n[1],s=n[2],l=a-i,f=c-o,h=l*l+f*f;if(h<1e-12)r=Math.log(s/u)/Ap,e=function(t){return[i+t*l,o+t*f,u*Math.exp(Ap*t*r)]};else{var d=Math.sqrt(h),p=(s*s-u*u+4*h)/(2*u*2*d),g=(s*s-u*u-4*h)/(2*s*2*d),v=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-v)/Ap,e=function(t){var n=t*r,e=kp(v),a=u/(2*d)*(e*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(Ap*n+v)-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+a*l,o+a*f,u*e/kp(Ap*n+v)]}}return e.duration=1e3*r,e};function Tp(t){return function(n,e){var r=t((n=Vd(n)).h,(e=Vd(e)).h),i=tp(n.s,e.s),o=tp(n.l,e.l),u=tp(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=u(t),n+""}}}var Cp=Tp(Kd),Ep=Tp(tp),Sp=Math.PI/180,Op=180/Math.PI,Pp=6/29,Dp=3*Pp*Pp;function Up(t){if(t instanceof Rp)return new Rp(t.l,t.a,t.b,t.opacity);if(t instanceof Yp)return Ip(t);t instanceof Fd||(t=qd(t));var n,e,r=$p(t.r),i=$p(t.g),o=$p(t.b),u=qp((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?n=e=u:(n=qp((.4360747*r+.3850649*i+.1430804*o)/.96422),e=qp((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Rp(116*u-16,500*(n-u),200*(u-e),t.opacity)}function Lp(t,n,e,r){return 1===arguments.length?Up(t):new Rp(t,n,e,null==r?1:r)}function Rp(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function qp(t){return t>.008856451679035631?Math.pow(t,1/3):t/Dp+4/29}function zp(t){return t>Pp?t*t*t:Dp*(t-4/29)}function Fp(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $p(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function jp(t){if(t instanceof Yp)return new Yp(t.h,t.c,t.l,t.opacity);if(t instanceof Rp||(t=Up(t)),0===t.a&&0===t.b)return new Yp(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Op;return new Yp(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Hp(t,n,e,r){return 1===arguments.length?jp(t):new Yp(t,n,e,null==r?1:r)}function Yp(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Ip(t){if(isNaN(t.h))return new Rp(t.l,0,0,t.opacity);var n=t.h*Sp;return new Rp(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}function Vp(t,n){var e=tp((t=Lp(t)).l,(n=Lp(n)).l),r=tp(t.a,n.a),i=tp(t.b,n.b),o=tp(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function Bp(t){return function(n,e){var r=t((n=Hp(n)).h,(e=Hp(e)).h),i=tp(n.c,e.c),o=tp(n.l,e.l),u=tp(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=u(t),n+""}}}_d(Rp,Lp,md(wd,{brighter:function(t){return new Rp(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Rp(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new Fd(Fp(3.1338561*(n=.96422*zp(n))-1.6168667*(t=1*zp(t))-.4906146*(e=.82521*zp(e))),Fp(-.9787684*n+1.9161415*t+.033454*e),Fp(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),_d(Yp,Hp,md(wd,{brighter:function(t){return new Yp(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Yp(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ip(this).rgb()}}));var Xp=Bp(Kd),Wp=Bp(tp),Gp=-.29227,Zp=-.90649,Jp=1.97294,Qp=Jp*Zp,Kp=1.78277*Jp,tg=-.6557636667999999;function ng(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof eg)return new eg(t.h,t.s,t.l,t.opacity);t instanceof Fd||(t=qd(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(tg*r+Qp*n-Kp*e)/(tg+Qp-Kp),o=r-i,u=(Jp*(e-i)-Gp*o)/Zp,a=Math.sqrt(u*u+o*o)/(Jp*i*(1-i)),c=a?Math.atan2(u,o)*Op-120:NaN;return new eg(c<0?c+360:c,a,i,t.opacity)}(t):new eg(t,n,e,null==r?1:r)}function eg(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function rg(t){return function n(e){function r(n,r){var i=t((n=ng(n)).h,(r=ng(r)).h),o=tp(n.s,r.s),u=tp(n.l,r.l),a=tp(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}_d(eg,ng,md(wd,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new eg(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new eg(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Sp,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Fd(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(Gp*r+Zp*i)),255*(n+e*(Jp*r)),this.opacity)}}));var ig=rg(Kd),og=rg(tp),ug=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e},ag=Math.PI,cg=2*ag,sg=cg-1e-6;function lg(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function fg(){return new lg}lg.prototype=fg.prototype={constructor:lg,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,c=r-n,s=o-t,l=u-n,f=s*s+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(f>1e-6)if(Math.abs(l*a-c*s)>1e-6&&i){var h=e-o,d=r-u,p=a*a+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),_=i*Math.tan((ag-Math.acos((p+f-g)/(2*v*y)))/2),m=_/y,w=_/v;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*s)+","+(n+m*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>s*d)+","+(this._x1=t+w*a)+","+(this._y1=n+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n;var u=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+u,s=n+a,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),e&&(f<0&&(f=f%cg+cg),f>sg?this._+="A"+e+","+e+",0,1,"+l+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>1e-6&&(this._+="A"+e+","+e+",0,"+ +(f>=ag)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var hg=fg,dg=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2},pg=function(t){for(var n,e,r=-1,i=t.length,o=0,u=0,a=t[i-1],c=0;++r<i;)n=a,a=t[r],c+=e=n[0]*a[1]-a[0]*n[1],o+=(n[0]+a[0])*e,u+=(n[1]+a[1])*e;return[o/(c*=3),u/c]},gg=function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])};function vg(t,n){return t[0]-n[0]||t[1]-n[1]}function yg(t){for(var n=t.length,e=[0,1],r=2,i=2;i<n;++i){for(;r>1&&gg(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}var _g=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(vg),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=yg(r),u=yg(i),a=u[0]===o[0],c=u[u.length-1]===o[o.length-1],s=[];for(n=o.length-1;n>=0;--n)s.push(t[r[o[n]][2]]);for(n=+a;n<u.length-c;++n)s.push(t[r[u[n]][2]]);return s},mg=function(t,n){for(var e,r,i=t.length,o=t[i-1],u=n[0],a=n[1],c=o[0],s=o[1],l=!1,f=0;f<i;++f)e=(o=t[f])[0],(r=o[1])>a!=s>a&&u<(c-e)*(a-r)/(s-r)+e&&(l=!l),c=e,s=r;return l},wg=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],c=0;++r<i;)n=u,e=a,n-=u=(o=t[r])[0],e-=a=o[1],c+=Math.sqrt(n*n+e*e);return c};function xg(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,c,s,l,f,h,d=t._root,p={data:r},g=t._x0,v=t._y0,y=t._x1,_=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((s=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(u=(v+_)/2))?v=u:_=u,i=d,!(d=d[f=l<<1|s]))return i[f]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===a&&e===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(s=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(u=(v+_)/2))?v=u:_=u}while((f=l<<1|s)==(h=(c>=u)<<1|a>=o));return i[h]=d,i[f]=p,t}var bg=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function Mg(t){return t[0]}function Ag(t){return t[1]}function kg(t,n,e){var r=new Ng(null==n?Mg:n,null==e?Ag:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ng(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Tg(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Cg=kg.prototype=Ng.prototype;Cg.copy=function(){var t,n,e=new Ng(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Tg(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Tg(n));return e},Cg.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return xg(this.cover(n,e),n,e,t)},Cg.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,s=1/0,l=-1/0,f=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(u[e]=r,a[e]=i,r<c&&(c=r),r>l&&(l=r),i<s&&(s=i),i>f&&(f=i));for(l<c&&(c=this._x0,l=this._x1),f<s&&(s=this._y0,f=this._y1),this.cover(c,s).cover(l,f),e=0;e<o;++e)xg(this,u[e],a[e],t[e]);return this},Cg.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{if(!(e>t||t>i||r>n||n>o))return this;var u,a,c=i-e,s=this._root;switch(a=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(u=new Array(4))[a]=s,s=u}while(o=r+(c*=2),t>(i=e+c)||n>o);break;case 1:do{(u=new Array(4))[a]=s,s=u}while(o=r+(c*=2),(e=i-c)>t||n>o);break;case 2:do{(u=new Array(4))[a]=s,s=u}while(r=o-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(u=new Array(4))[a]=s,s=u}while(r=o-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},Cg.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},Cg.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Cg.find=function(t,n,e){var r,i,o,u,a,c,s,l=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new bg(g,l,f,h,d)),null==e?e=1/0:(l=t-e,f=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(u=c.x1)<l||(a=c.y1)<f))if(g.length){var v=(i+u)/2,y=(o+a)/2;p.push(new bg(g[3],v,y,u,a),new bg(g[2],i,y,v,a),new bg(g[1],v,o,u,y),new bg(g[0],i,o,v,y)),(s=(n>=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var _=t-+this._x.call(null,g.data),m=n-+this._y.call(null,g.data),w=_*_+m*m;if(w<e){var x=Math.sqrt(e=w);l=t-x,f=n-x,h=t+x,d=n+x,r=g.data}}return r},Cg.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var n,e,r,i,o,u,a,c,s,l,f,h,d=this._root,p=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((s=o>=(a=(p+v)/2))?p=a:v=a,(l=u>=(c=(g+y)/2))?g=c:y=c,n=d,!(d=d[f=l<<1|s]))return this;if(!d.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Cg.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},Cg.root=function(){return this._root},Cg.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},Cg.visit=function(t){var n,e,r,i,o,u,a=[],c=this._root;for(c&&a.push(new bg(c,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&c.length){var s=(r+o)/2,l=(i+u)/2;(e=c[3])&&a.push(new bg(e,s,l,o,u)),(e=c[2])&&a.push(new bg(e,r,l,s,u)),(e=c[1])&&a.push(new bg(e,s,i,o,l)),(e=c[0])&&a.push(new bg(e,r,i,s,l))}return this},Cg.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new bg(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,u=n.x0,a=n.y0,c=n.x1,s=n.y1,l=(u+c)/2,f=(a+s)/2;(o=i[0])&&e.push(new bg(o,u,a,l,f)),(o=i[1])&&e.push(new bg(o,l,a,c,f)),(o=i[2])&&e.push(new bg(o,u,f,l,s)),(o=i[3])&&e.push(new bg(o,l,f,c,s))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},Cg.x=function(t){return arguments.length?(this._x=t,this):this._x},Cg.y=function(t){return arguments.length?(this._y=t,this):this._y};var Eg=[].slice,Sg={};function Og(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function Pg(t){if(!t._start)try{!function(t){for(;t._start=t._waiting&&t._active<t._size;){var n=t._ended+t._active,e=t._tasks[n],r=e.length-1,i=e[r];e[r]=Dg(t,n),--t._waiting,++t._active,e=i.apply(null,e),t._tasks[n]&&(t._tasks[n]=e||Sg)}}(t)}catch(n){if(t._tasks[t._ended+t._active-1])Ug(t,n);else if(!t._data)throw n}}function Dg(t,n){return function(e,r){t._tasks[n]&&(--t._active,++t._ended,t._tasks[n]=null,null==t._error&&(null!=e?Ug(t,e):(t._data[n]=r,t._waiting?Pg(t):Lg(t))))}}function Ug(t,n){var e,r=t._tasks.length;for(t._error=n,t._data=void 0,t._waiting=NaN;--r>=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=NaN,Lg(t)}function Lg(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function Rg(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new Og(t)}Og.prototype=Rg.prototype={constructor:Og,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var n=Eg.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),Pg(this),this},abort:function(){return null==this._error&&Ug(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(n,e){t.apply(null,[n].concat(e))},Lg(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,Lg(this),this}};var qg=function(){return Math.random()},zg=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}(qg),Fg=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(qg),$g=function t(n){function e(){var t=Fg.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(qg),jg=function t(n){function e(t){return function(){for(var e=0,r=0;r<t;++r)e+=n();return e}}return e.source=t,e}(qg),Hg=function t(n){function e(t){var e=jg.source(n)(t);return function(){return e()/t}}return e.source=t,e}(qg),Yg=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(qg),Ig=function(t,n){var e,r,i,o,u=ct("beforesend","progress","load","error"),a=Object(Zu.a)(),c=new XMLHttpRequest,s=null,l=null,f=0;function h(t){var n,r=c.status;if(!r&&function(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}(c)||r>=200&&r<300||304===r){if(i)try{n=i.call(e,c)}catch(t){return void u.call("error",e,t)}else n=c;u.call("load",e,n)}else u.call("error",e,t)}if("undefined"==typeof XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(t)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=c.ontimeout=h:c.onreadystatechange=function(t){c.readyState>3&&h(t)},c.onprogress=function(t){u.call("progress",e,t)},e={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?a.get(t):(null==n?a.remove(t):a.set(t,n+""),e)},mimeType:function(t){return arguments.length?(r=null==t?null:t+"",e):r},responseType:function(t){return arguments.length?(o=t,e):o},timeout:function(t){return arguments.length?(f=+t,e):f},user:function(t){return arguments.length<1?s:(s=null==t?null:t+"",e)},password:function(t){return arguments.length<1?l:(l=null==t?null:t+"",e)},response:function(t){return i=t,e},get:function(t,n){return e.send("GET",t,n)},post:function(t,n){return e.send("POST",t,n)},send:function(n,i,h){return c.open(n,t,!0,s,l),null==r||a.has("accept")||a.set("accept",r+",*/*"),c.setRequestHeader&&a.each((function(t,n){c.setRequestHeader(n,t)})),null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=o&&(c.responseType=o),f>0&&(c.timeout=f),null==h&&"function"==typeof i&&(h=i,i=null),null!=h&&1===h.length&&(h=function(t){return function(n,e){t(null==n?e:null)}}(h)),null!=h&&e.on("error",h).on("load",(function(t){h(null,t)})),u.call("beforesend",e,c),c.send(null==i?null:i),e},abort:function(){return c.abort(),e},on:function(){var t=u.on.apply(u,arguments);return t===u?e:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return e.get(n)}return e},Vg=function(t,n){return function(e,r){var i=Ig(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},Bg=Vg("text/html",(function(t){return document.createRange().createContextualFragment(t.responseText)})),Xg=Vg("application/json",(function(t){return JSON.parse(t.responseText)})),Wg=Vg("text/plain",(function(t){return t.responseText})),Gg=Vg("application/xml",(function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n})),Zg={},Jg={};function Qg(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function Kg(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}function tv(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}var nv=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,u=0,a=0,c=o<=0,s=!1;function l(){if(c)return Jg;if(s)return s=!1,Zg;var n,r,i=u;if(34===t.charCodeAt(i)){for(;u++<o&&34!==t.charCodeAt(u)||34===t.charCodeAt(++u););return(n=u)>=o?c=!0:10===(r=t.charCodeAt(u++))?s=!0:13===r&&(s=!0,10===t.charCodeAt(u)&&++u),t.slice(i+1,n-1).replace(/""/g,'"')}for(;u<o;){if(10===(r=t.charCodeAt(n=u++)))s=!0;else if(13===r)s=!0,10===t.charCodeAt(u)&&++u;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(r=l())!==Jg;){for(var f=[];r!==Zg&&r!==Jg;)f.push(r),r=l();n&&null==(f=n(f,a++))||i.push(f)}return i}function i(n,e){return n.map((function(n){return e.map((function(t){return u(n[t])})).join(t)}))}function o(n){return n.map(u).join(t)}function u(t){return null==t?"":t instanceof Date?function(t){var n=t.getUTCHours(),e=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+tv(-t,6):t>9999?"+"+tv(t,6):tv(t,4)}(t.getUTCFullYear())+"-"+tv(t.getUTCMonth()+1,2)+"-"+tv(t.getUTCDate(),2)+(i?"T"+tv(n,2)+":"+tv(e,2)+":"+tv(r,2)+"."+tv(i,3)+"Z":r?"T"+tv(n,2)+":"+tv(e,2)+":"+tv(r,2)+"Z":e||n?"T"+tv(n,2)+":"+tv(e,2)+"Z":"")}(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,o=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=Qg(t);return function(r,i){return n(e(r),i,t)}}(t,n):Qg(t)}));return o.columns=i||[],o},parseRows:r,format:function(n,e){return null==e&&(e=Kg(n)),[e.map(u).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=Kg(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:u}},ev=nv(","),rv=ev.parse,iv=(ev.parseRows,ev.format,ev.formatBody,ev.formatRows,ev.formatRow,ev.formatValue,function(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=Ig(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(function(t,n){return function(e){return t(e.responseText,n)}}(n,r=t)):r},o.row(r),i?o.get(i):o}}),ov=iv("text/csv",rv),uv=nv("\t"),av=uv.parse,cv=(uv.parseRows,uv.format,uv.formatBody,uv.formatRows,uv.formatRow,uv.formatValue,iv("text/tab-separated-values",av)),sv=Array.prototype,lv=sv.map,fv=sv.slice,hv={name:"implicit"};function dv(t){var n=Object(Zu.a)(),e=[],r=hv;function i(i){var o=i+"",u=n.get(o);if(!u){if(r!==hv)return r;n.set(o,u=e.push(i))}return t[(u-1)%t.length]}return t=null==t?[]:fv.call(t),i.domain=function(t){if(!arguments.length)return e.slice();e=[],n=Object(Zu.a)();for(var r,o,u=-1,a=t.length;++u<a;)n.has(o=(r=t[u])+"")||n.set(o,e.push(r));return i},i.range=function(n){return arguments.length?(t=fv.call(n),i):t.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return dv().domain(e).range(t).unknown(r)},i}function pv(){var t,n,e=dv().unknown(void 0),r=e.domain,i=e.range,o=[0,1],u=!1,a=0,c=0,s=.5;function l(){var e=r().length,l=o[1]<o[0],f=o[l-0],h=o[1-l];t=(h-f)/Math.max(1,e-a+2*c),u&&(t=Math.floor(t)),f+=(h-f-t*(e-a))*s,n=t*(1-a),u&&(f=Math.round(f),n=Math.round(n));var d=Object(sr.g)(e).map((function(n){return f+t*n}));return i(l?d.reverse():d)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),l()):r()},e.range=function(t){return arguments.length?(o=[+t[0],+t[1]],l()):o.slice()},e.rangeRound=function(t){return o=[+t[0],+t[1]],u=!0,l()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,l()):u},e.padding=function(t){return arguments.length?(a=c=Math.max(0,Math.min(1,t)),l()):a},e.paddingInner=function(t){return arguments.length?(a=Math.max(0,Math.min(1,t)),l()):a},e.paddingOuter=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c},e.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),l()):s},e.copy=function(){return pv().domain(r()).range(o).round(u).paddingInner(a).paddingOuter(c).align(s)},l()}function gv(){return function t(n){var e=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return t(e())},n}(pv().paddingInner(1))}var vv=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}},yv=function(t){return function(){return t}},_v=function(t){return+t},mv=[0,1];function wv(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:yv(n)}function xv(t,n,e,r){var i=t[0],o=t[1],u=n[0],a=n[1];return o<i?(i=e(o,i),u=r(a,u)):(i=e(i,o),u=r(u,a)),function(t){return u(i(t))}}function bv(t,n,e,r){var i=Math.min(t.length,n.length)-1,o=new Array(i),u=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<i;)o[a]=e(t[a],t[a+1]),u[a]=r(n[a],n[a+1]);return function(n){var e=Object(sr.b)(t,n,1,i)-1;return u[e](o[e](n))}}function Mv(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function Av(t,n){var e,r,i,o=mv,u=mv,a=In,c=!1;function s(){return e=Math.min(o.length,u.length)>2?bv:xv,r=i=null,l}function l(n){return(r||(r=e(o,u,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,a)))(+n)}return l.invert=function(t){return(i||(i=e(u,o,wv,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},l.domain=function(t){return arguments.length?(o=lv.call(t,_v),s()):o.slice()},l.range=function(t){return arguments.length?(u=fv.call(t),s()):u.slice()},l.rangeRound=function(t){return u=fv.call(t),a=vv,s()},l.clamp=function(t){return arguments.length?(c=!!t,s()):c},l.interpolate=function(t){return arguments.length?(a=t,s()):a},s()}var kv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Nv(t){if(!(n=kv.exec(t)))throw new Error("invalid format: "+t);var n;return new Tv({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 Tv(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+""}function Cv(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}Nv.prototype=Tv.prototype,Tv.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 Ev,Sv,Ov,Pv,Dv=function(t){return(t=Cv(Math.abs(t)))?t[1]:NaN},Uv=function(t,n){var e=Cv(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Lv={"%":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.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):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 Uv(100*t,n)},r:Uv,s:function(t,n){var e=Cv(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Ev=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Cv(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)}},Rv=function(t){return t},qv=Array.prototype.map,zv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Sv=function(t){var n=void 0===t.grouping||void 0===t.thousands?Rv:function(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}}(qv.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?Rv:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(qv.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function s(t){var s=(t=Nv(t)).fill,l=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,v=t.precision,y=t.trim,_=t.type;"n"===_?(g=!0,_="g"):Lv[_]||(void 0===v&&(v=12),y=!0,_="g"),(d||"0"===s&&"="===l)&&(d=!0,s="0",l="=");var m="$"===h?e:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",w="$"===h?r:/[%p]/.test(_)?u:"",x=Lv[_],b=/[defgprs%]/.test(_);function M(t){var e,r,u,h=m,M=w;if("c"===_)M=x(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:x(Math.abs(t),v),y&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==f&&(A=!1),h=(A?"("===f?f:a:"-"===f||"("===f?"":f)+h,M=("s"===_?zv[8+Ev/3]:"")+M+(A&&"("===f?")":""),b)for(e=-1,r=t.length;++e<r;)if(48>(u=t.charCodeAt(e))||u>57){M=(46===u?i+t.slice(e+1):t.slice(e))+M,t=t.slice(0,e);break}}g&&!d&&(t=n(t,1/0));var k=h.length+t.length+M.length,N=k<p?new Array(p-k+1).join(s):"";switch(g&&d&&(t=n(N+t,N.length?p-M.length:1/0),N=""),l){case"<":t=h+t+M+N;break;case"=":t=h+N+t+M;break;case"^":t=N.slice(0,k=N.length>>1)+h+t+M+N.slice(k);break;default:t=N+h+t+M}return o(t)}return v=void 0===v?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),M.toString=function(){return t+""},M}return{format:s,formatPrefix:function(t,n){var e=s(((t=Nv(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Dv(n)/3))),i=Math.pow(10,-r),o=zv[8+r/3];return function(t){return e(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ov=Sv.format,Pv=Sv.formatPrefix;function Fv(t){var n=t.domain;return t.ticks=function(t){var e=n();return Object(sr.k)(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return function(t,n,e){var r,i=t[0],o=t[t.length-1],u=Object(sr.j)(i,o,null==n?10:n);switch((e=Nv(null==e?",f":e)).type){case"s":var a=Math.max(Math.abs(i),Math.abs(o));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Dv(n)/3)))-Dv(Math.abs(t)))}(u,a))||(e.precision=r),Pv(e,a);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Dv(n)-Dv(t))+1}(u,Math.max(Math.abs(i),Math.abs(o))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-Dv(Math.abs(t)))}(u))||(e.precision=r-2*("%"===e.type))}return Ov(e)}(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,u=i.length-1,a=i[o],c=i[u];return c<a&&(r=a,a=c,c=r,r=o,o=u,u=r),(r=Object(sr.i)(a,c,e))>0?(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,r=Object(sr.i)(a,c,e)):r<0&&(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,r=Object(sr.i)(a,c,e)),r>0?(i[o]=Math.floor(a/r)*r,i[u]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[u]=Math.floor(c*r)/r,n(i)),t},t}function $v(){var t=Av(wv,$n);return t.copy=function(){return Mv(t,$v())},Fv(t)}function jv(){var t=[0,1];function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=lv.call(e,_v),n):t.slice()},n.copy=function(){return jv().domain(t)},Fv(n)}var Hv=function(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],u=t[i];return u<o&&(e=r,r=i,i=e,e=o,o=u,u=e),t[r]=n.floor(o),t[i]=n.ceil(u),t};function Yv(t,n){return(n=Math.log(n/t))?function(e){return Math.log(e/t)/n}:yv(n)}function Iv(t,n){return t<0?function(e){return-Math.pow(-n,e)*Math.pow(-t,1-e)}:function(e){return Math.pow(n,e)*Math.pow(t,1-e)}}function Vv(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Bv(t){return 10===t?Vv:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function Xv(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}function Wv(t){return function(n){return-t(-n)}}function Gv(){var t=Av(Yv,Iv).domain([1,10]),n=t.domain,e=10,r=Xv(10),i=Bv(10);function o(){return r=Xv(e),i=Bv(e),n()[0]<0&&(r=Wv(r),i=Wv(i)),t}return t.base=function(t){return arguments.length?(e=+t,o()):e},t.domain=function(t){return arguments.length?(n(t),o()):n()},t.ticks=function(t){var o,u=n(),a=u[0],c=u[u.length-1];(o=c<a)&&(h=a,a=c,c=h);var s,l,f,h=r(a),d=r(c),p=null==t?10:+t,g=[];if(!(e%1)&&d-h<p){if(h=Math.round(h)-1,d=Math.round(d)+1,a>0){for(;h<d;++h)for(l=1,s=i(h);l<e;++l)if(!((f=s*l)<a)){if(f>c)break;g.push(f)}}else for(;h<d;++h)for(l=e-1,s=i(h);l>=1;--l)if(!((f=s*l)<a)){if(f>c)break;g.push(f)}}else g=Object(sr.k)(h,d,Math.min(d-h,p)).map(i);return o?g.reverse():g},t.tickFormat=function(n,o){if(null==o&&(o=10===e?".0e":","),"function"!=typeof o&&(o=Ov(o)),n===1/0)return o;null==n&&(n=10);var u=Math.max(1,e*n/t.ticks().length);return function(t){var n=t/i(Math.round(r(t)));return n*e<e-.5&&(n*=e),n<=u?o(t):""}},t.nice=function(){return n(Hv(n(),{floor:function(t){return i(Math.floor(r(t)))},ceil:function(t){return i(Math.ceil(r(t)))}}))},t.copy=function(){return Mv(t,Gv().base(e))},t}function Zv(t,n){return t<0?-Math.pow(-t,n):Math.pow(t,n)}function Jv(){var t=1,n=Av((function(n,e){return(e=Zv(e,t)-(n=Zv(n,t)))?function(r){return(Zv(r,t)-n)/e}:yv(e)}),(function(n,e){return e=Zv(e,t)-(n=Zv(n,t)),function(r){return Zv(n+e*r,1/t)}})),e=n.domain;return n.exponent=function(n){return arguments.length?(t=+n,e(e())):t},n.copy=function(){return Mv(n,Jv().exponent(t))},Fv(n)}function Qv(){return Jv().exponent(.5)}function Kv(){var t=[],n=[],e=[];function r(){var r=0,o=Math.max(1,n.length);for(e=new Array(o-1);++r<o;)e[r-1]=Object(sr.f)(t,r/o);return i}function i(t){if(!isNaN(t=+t))return n[Object(sr.b)(e,t)]}return i.invertExtent=function(r){var i=n.indexOf(r);return i<0?[NaN,NaN]:[i>0?e[i-1]:t[0],i<e.length?e[i]:t[t.length-1]]},i.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var e,i=0,o=n.length;i<o;++i)null==(e=n[i])||isNaN(e=+e)||t.push(e);return t.sort(sr.a),r()},i.range=function(t){return arguments.length?(n=fv.call(t),r()):n.slice()},i.quantiles=function(){return e.slice()},i.copy=function(){return Kv().domain(t).range(n)},i}function ty(){var t=0,n=1,e=1,r=[.5],i=[0,1];function o(t){if(t<=t)return i[Object(sr.b)(r,t,0,e)]}function u(){var i=-1;for(r=new Array(e);++i<e;)r[i]=((i+1)*n-(i-e)*t)/(e+1);return o}return o.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],u()):[t,n]},o.range=function(t){return arguments.length?(e=(i=fv.call(t)).length-1,u()):i.slice()},o.invertExtent=function(o){var u=i.indexOf(o);return u<0?[NaN,NaN]:u<1?[t,r[0]]:u>=e?[r[e-1],n]:[r[u-1],r[u]]},o.copy=function(){return ty().domain([t,n]).range(i)},Fv(o)}function ny(){var t=[.5],n=[0,1],e=1;function r(r){if(r<=r)return n[Object(sr.b)(t,r,0,e)]}return r.domain=function(i){return arguments.length?(t=fv.call(i),e=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(i){return arguments.length?(n=fv.call(i),e=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},r.copy=function(){return ny().domain(t).range(n)},r}var ey=new Date,ry=new Date;function iy(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u<e&&e<r);return a},i.filter=function(e){return iy((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return ey.setTime(+n),ry.setTime(+r),t(ey),t(ry),Math.floor(e(ey,ry))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var oy=iy((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()}));oy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?iy((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 uy=oy,ay=(oy.range,iy((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()}))),cy=ay,sy=(ay.range,6e4),ly=6048e5;function fy(t){return iy((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())*sy)/ly}))}var hy=fy(0),dy=fy(1),py=fy(2),gy=fy(3),vy=fy(4),yy=fy(5),_y=fy(6),my=(hy.range,dy.range,py.range,gy.range,vy.range,yy.range,_y.range,iy((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())*sy)/864e5}),(function(t){return t.getDate()-1}))),wy=my,xy=(my.range,iy((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*sy)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()}))),by=xy,My=(xy.range,iy((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+n*sy)}),(function(t,n){return(n-t)/sy}),(function(t){return t.getMinutes()}))),Ay=My,ky=(My.range,iy((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()}))),Ny=ky,Ty=(ky.range,iy((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t})));Ty.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?iy((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Ty:null};var Cy=Ty;function Ey(t){return iy((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)/ly}))}Ty.range;var Sy=Ey(0),Oy=Ey(1),Py=Ey(2),Dy=Ey(3),Uy=Ey(4),Ly=Ey(5),Ry=Ey(6),qy=(Sy.range,Oy.range,Py.range,Dy.range,Uy.range,Ly.range,Ry.range,iy((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}))),zy=qy,Fy=(qy.range,iy((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()})));Fy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?iy((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 $y=Fy;function jy(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 Hy(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 Yy(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}Fy.range;var Iy,Vy,By,Xy={"-":"",_:" ",0:"0"},Wy=/^\s*\d+/,Gy=/^%/,Zy=/[\\^$*+?|[\]().{}]/g;function Jy(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function Qy(t){return t.replace(Zy,"\\$&")}function Ky(t){return new RegExp("^(?:"+t.map(Qy).join("|")+")","i")}function t_(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function n_(t,n,e){var r=Wy.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function e_(t,n,e){var r=Wy.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function r_(t,n,e){var r=Wy.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function i_(t,n,e){var r=Wy.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function o_(t,n,e){var r=Wy.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function u_(t,n,e){var r=Wy.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function a_(t,n,e){var r=Wy.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function c_(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function s_(t,n,e){var r=Wy.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function l_(t,n,e){var r=Wy.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function f_(t,n,e){var r=Wy.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function h_(t,n,e){var r=Wy.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function d_(t,n,e){var r=Wy.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function p_(t,n,e){var r=Wy.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function g_(t,n,e){var r=Wy.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function v_(t,n,e){var r=Wy.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function y_(t,n,e){var r=Wy.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function __(t,n,e){var r=Gy.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function m_(t,n,e){var r=Wy.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function w_(t,n,e){var r=Wy.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function x_(t,n){return Jy(t.getDate(),n,2)}function b_(t,n){return Jy(t.getHours(),n,2)}function M_(t,n){return Jy(t.getHours()%12||12,n,2)}function A_(t,n){return Jy(1+wy.count(uy(t),t),n,3)}function k_(t,n){return Jy(t.getMilliseconds(),n,3)}function N_(t,n){return k_(t,n)+"000"}function T_(t,n){return Jy(t.getMonth()+1,n,2)}function C_(t,n){return Jy(t.getMinutes(),n,2)}function E_(t,n){return Jy(t.getSeconds(),n,2)}function S_(t){var n=t.getDay();return 0===n?7:n}function O_(t,n){return Jy(hy.count(uy(t)-1,t),n,2)}function P_(t){var n=t.getDay();return n>=4||0===n?vy(t):vy.ceil(t)}function D_(t,n){return t=P_(t),Jy(vy.count(uy(t),t)+(4===uy(t).getDay()),n,2)}function U_(t){return t.getDay()}function L_(t,n){return Jy(dy.count(uy(t)-1,t),n,2)}function R_(t,n){return Jy(t.getFullYear()%100,n,2)}function q_(t,n){return Jy((t=P_(t)).getFullYear()%100,n,2)}function z_(t,n){return Jy(t.getFullYear()%1e4,n,4)}function F_(t,n){var e=t.getDay();return Jy((t=e>=4||0===e?vy(t):vy.ceil(t)).getFullYear()%1e4,n,4)}function $_(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Jy(n/60|0,"0",2)+Jy(n%60,"0",2)}function j_(t,n){return Jy(t.getUTCDate(),n,2)}function H_(t,n){return Jy(t.getUTCHours(),n,2)}function Y_(t,n){return Jy(t.getUTCHours()%12||12,n,2)}function I_(t,n){return Jy(1+zy.count($y(t),t),n,3)}function V_(t,n){return Jy(t.getUTCMilliseconds(),n,3)}function B_(t,n){return V_(t,n)+"000"}function X_(t,n){return Jy(t.getUTCMonth()+1,n,2)}function W_(t,n){return Jy(t.getUTCMinutes(),n,2)}function G_(t,n){return Jy(t.getUTCSeconds(),n,2)}function Z_(t){var n=t.getUTCDay();return 0===n?7:n}function J_(t,n){return Jy(Sy.count($y(t)-1,t),n,2)}function Q_(t){var n=t.getUTCDay();return n>=4||0===n?Uy(t):Uy.ceil(t)}function K_(t,n){return t=Q_(t),Jy(Uy.count($y(t),t)+(4===$y(t).getUTCDay()),n,2)}function tm(t){return t.getUTCDay()}function nm(t,n){return Jy(Oy.count($y(t)-1,t),n,2)}function em(t,n){return Jy(t.getUTCFullYear()%100,n,2)}function rm(t,n){return Jy((t=Q_(t)).getUTCFullYear()%100,n,2)}function im(t,n){return Jy(t.getUTCFullYear()%1e4,n,4)}function om(t,n){var e=t.getUTCDay();return Jy((t=e>=4||0===e?Uy(t):Uy.ceil(t)).getUTCFullYear()%1e4,n,4)}function um(){return"+0000"}function am(){return"%"}function cm(t){return+t}function sm(t){return Math.floor(+t/1e3)}Iy=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,a=t.months,c=t.shortMonths,s=Ky(i),l=t_(i),f=Ky(o),h=t_(o),d=Ky(u),p=t_(u),g=Ky(a),v=t_(a),y=Ky(c),_=t_(c),m={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:x_,e:x_,f:N_,g:q_,G:F_,H:b_,I:M_,j:A_,L:k_,m:T_,M:C_,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:cm,s:sm,S:E_,u:S_,U:O_,V:D_,w:U_,W:L_,x:null,X:null,y:R_,Y:z_,Z:$_,"%":am},w={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:j_,e:j_,f:B_,g:rm,G:om,H:H_,I:Y_,j:I_,L:V_,m:X_,M:W_,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:cm,s:sm,S:G_,u:Z_,U:J_,V:K_,w:tm,W:nm,x:null,X:null,y:em,Y:im,Z:um,"%":am},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=_[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:f_,e:f_,f:y_,g:a_,G:u_,H:d_,I:d_,j:h_,L:v_,m:l_,M:p_,p:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=l[r[0].toLowerCase()],e+r[0].length):-1},q:s_,Q:m_,s:w_,S:g_,u:e_,U:r_,V:i_,w:n_,W:o_,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:a_,Y:u_,Z:c_,"%":__};function b(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++a<s;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=Xy[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function M(t,n){return function(e){var r,i,o=Yy(1900,void 0,1);if(A(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!n||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=Hy(Yy(o.y,0,1))).getUTCDay())>4||0===i?Oy.ceil(r):Oy(r),r=zy.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=jy(Yy(o.y,0,1))).getDay())>4||0===i?dy.ceil(r):dy(r),r=wy.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?Hy(Yy(o.y,0,1)).getUTCDay():jy(Yy(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Hy(o)):jy(o)}}function A(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=x[i in Xy?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return m.x=b(e,m),m.X=b(r,m),m.c=b(n,m),w.x=b(e,w),w.X=b(r,w),w.c=b(n,w),{format:function(t){var n=b(t+="",m);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=b(t+="",w);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}({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"]}),Vy=Iy.format,Iy.parse,By=Iy.utcFormat,Iy.utcParse;var lm=1e3,fm=6e4,hm=60*fm,dm=24*hm,pm=30*dm,gm=365*dm;function vm(t){return new Date(t)}function ym(t){return t instanceof Date?+t:+new Date(+t)}function _m(t,n,e,r,i,o,u,a,c){var s=Av(wv,$n),l=s.invert,f=s.domain,h=c(".%L"),d=c(":%S"),p=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),_=c("%B"),m=c("%Y"),w=[[u,1,lm],[u,5,5e3],[u,15,15e3],[u,30,3e4],[o,1,fm],[o,5,5*fm],[o,15,15*fm],[o,30,30*fm],[i,1,hm],[i,3,3*hm],[i,6,6*hm],[i,12,12*hm],[r,1,dm],[r,2,2*dm],[e,1,6048e5],[n,1,pm],[n,3,3*pm],[t,1,gm]];function x(a){return(u(a)<a?h:o(a)<a?d:i(a)<a?p:r(a)<a?g:n(a)<a?e(a)<a?v:y:t(a)<a?_:m)(a)}function b(n,e,r,i){if(null==n&&(n=10),"number"==typeof n){var o=Math.abs(r-e)/n,u=Object(sr.c)((function(t){return t[2]})).right(w,o);u===w.length?(i=Object(sr.j)(e/gm,r/gm,n),n=t):u?(i=(u=w[o/w[u-1][2]<w[u][2]/o?u-1:u])[1],n=u[0]):(i=Math.max(Object(sr.j)(e,r,n),1),n=a)}return null==i?n:n.every(i)}return s.invert=function(t){return new Date(l(t))},s.domain=function(t){return arguments.length?f(lv.call(t,ym)):f().map(vm)},s.ticks=function(t,n){var e,r=f(),i=r[0],o=r[r.length-1],u=o<i;return u&&(e=i,i=o,o=e),e=(e=b(t,i,o,n))?e.range(i,o+1):[],u?e.reverse():e},s.tickFormat=function(t,n){return null==n?x:c(n)},s.nice=function(t,n){var e=f();return(t=b(t,e[0],e[e.length-1],n))?f(Hv(e,t)):s},s.copy=function(){return Mv(s,_m(t,n,e,r,i,o,u,a,c))},s}var mm=function(){return _m(uy,cy,hy,wy,by,Ay,Ny,Cy,Vy).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},wm=iy((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()})),xm=wm,bm=(wm.range,iy((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()}))),Mm=bm,Am=(bm.range,iy((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*sy)}),(function(t,n){return(n-t)/sy}),(function(t){return t.getUTCMinutes()}))),km=Am,Nm=(Am.range,function(){return _m($y,xm,Sy,zy,Mm,km,Ny,Cy,By).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}),Tm=function(t){return t.match(/.{6}/g).map((function(t){return"#"+t}))},Cm=Tm("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Em=Tm("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Sm=Tm("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Om=Tm("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Pm=Math.PI/180,Dm=180/Math.PI,Um=-.29227,Lm=-.90649,Rm=1.97294,qm=Rm*Lm,zm=1.78277*Rm,Fm=-.6557636667999999;function $m(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof jm)return new jm(t.h,t.s,t.l,t.opacity);t instanceof bn||(t=wn(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Fm*r+qm*n-zm*e)/(Fm+qm-zm),o=r-i,u=(Rm*(e-i)-Um*o)/Lm,a=Math.sqrt(u*u+o*o)/(Rm*i*(1-i)),c=a?Math.atan2(u,o)*Dm-120:NaN;return new jm(c<0?c+360:c,a,i,t.opacity)}(t):new jm(t,n,e,null==r?1:r)}function jm(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Hm(t){return function n(e){function r(n,r){var i=t((n=$m(n)).h,(r=$m(r)).h),o=Dn(n.s,r.s),u=Dn(n.l,r.l),a=Dn(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}tn(jm,$m,nn(en,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new jm(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new jm(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Pm,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new bn(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(Um*r+Lm*i)),255*(n+e*(Rm*r)),this.opacity)}})),Hm((function(t,n){var e=n-t;return e?Pn(t,e>180||e<-180?e-360*Math.round(e/360):e):On(isNaN(t)?n:t)}));var Ym=Hm(Dn),Im=Ym($m(300,.5,0),$m(-240,.5,1)),Vm=Ym($m(-100,.75,.35),$m(80,1.5,.8)),Bm=Ym($m(260,.75,.35),$m(80,1.5,.8)),Xm=$m(),Wm=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Xm.h=360*t-100,Xm.s=1.5-1.5*n,Xm.l=.8-.9*n,Xm+""};function Gm(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var Zm=Gm(Tm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Jm=Gm(Tm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Qm=Gm(Tm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Km=Gm(Tm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function tw(t){var n=0,e=1,r=!1;function i(i){var o=(i-n)/(e-n);return t(r?Math.max(0,Math.min(1,o)):o)}return i.domain=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.clamp=function(t){return arguments.length?(r=!!t,i):r},i.interpolator=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return tw(t).domain([n,e]).clamp(r)},Fv(i)}var nw="http://www.w3.org/1999/xhtml",ew={svg:"http://www.w3.org/2000/svg",xhtml:nw,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},rw=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),ew.hasOwnProperty(n)?{space:ew[n],local:t}:t},iw=function(t){var n=rw(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===nw&&n.documentElement.namespaceURI===nw?n.createElement(t):n.createElementNS(e,t)}})(n)};function ow(){}var uw=function(t){return null==t?ow:function(){return this.querySelector(t)}};function aw(){return[]}var cw=function(t){return null==t?aw:function(){return this.querySelectorAll(t)}},sw=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var lw=document.documentElement;if(!lw.matches){var fw=lw.webkitMatchesSelector||lw.msMatchesSelector||lw.mozMatchesSelector||lw.oMatchesSelector;sw=function(t){return function(){return fw.call(this,t)}}}}var hw=sw,dw=function(t){return new Array(t.length)};function pw(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}pw.prototype={constructor:pw,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function gw(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;a<s;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new pw(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function vw(t,n,e,r,i,o,u){var a,c,s,l={},f=n.length,h=o.length,d=new Array(f);for(a=0;a<f;++a)(c=n[a])&&(d[a]=s="$"+u.call(c,c.__data__,a,n),s in l?i[a]=c:l[s]=c);for(a=0;a<h;++a)(c=l[s="$"+u.call(t,o[a],a,o)])?(r[a]=c,c.__data__=o[a],l[s]=null):e[a]=new pw(t,o[a]);for(a=0;a<f;++a)(c=n[a])&&l[d[a]]===c&&(i[a]=c)}function yw(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var _w=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function mw(t,n){return t.style.getPropertyValue(n)||_w(t).getComputedStyle(t,null).getPropertyValue(n)}function ww(t){return t.trim().split(/^|\s+/)}function xw(t){return t.classList||new bw(t)}function bw(t){this._node=t,this._names=ww(t.getAttribute("class")||"")}function Mw(t,n){for(var e=xw(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Aw(t,n){for(var e=xw(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function kw(){this.textContent=""}function Nw(){this.innerHTML=""}function Tw(){this.nextSibling&&this.parentNode.appendChild(this)}function Cw(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ew(){return null}function Sw(){var t=this.parentNode;t&&t.removeChild(this)}function Ow(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Pw(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}bw.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Dw={},Uw=null;function Lw(t,n,e){return t=Rw(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Rw(t,n,e){return function(r){var i=Uw;Uw=r;try{t.call(this,this.__data__,n,e)}finally{Uw=i}}}function qw(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function zw(t,n,e){var r=Dw.hasOwnProperty(t.type)?Lw:Rw;return function(i,o,u){var a,c=this.__on,s=r(n,o,u);if(c)for(var l=0,f=c.length;l<f;++l)if((a=c[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=e),void(a.value=n);this.addEventListener(t.type,s,e),a={type:t.type,name:t.name,value:n,listener:s,capture:e},c?c.push(a):this.__on=[a]}}function Fw(t,n,e,r){var i=Uw;t.sourceEvent=Uw,Uw=t;try{return n.apply(e,r)}finally{Uw=i}}function $w(t,n,e){var r=_w(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Dw={mouseenter:"mouseover",mouseleave:"mouseout"}));var jw=[null];function Hw(t,n){this._groups=t,this._parents=n}function Yw(){return new Hw([[document.documentElement]],jw)}Hw.prototype=Yw.prototype={constructor:Hw,select:function(t){"function"!=typeof t&&(t=uw(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,s=r[i]=new Array(c),l=0;l<c;++l)(o=a[l])&&(u=t.call(o,o.__data__,l,a))&&("__data__"in o&&(u.__data__=o.__data__),s[l]=u);return new Hw(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=cw(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,s=0;s<c;++s)(u=a[s])&&(r.push(t.call(u,u.__data__,s,a)),i.push(u));return new Hw(r,i)},filter:function(t){"function"!=typeof t&&(t=hw(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new Hw(r,this._parents)},data:function(t,n){if(!t)return d=new Array(this.size()),s=-1,this.each((function(t){d[++s]=t})),d;var e=n?vw:gw,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),s=0;s<o;++s){var l=r[s],f=i[s],h=f.length,d=t.call(l,l&&l.__data__,s,r),p=d.length,g=a[s]=new Array(p),v=u[s]=new Array(p);e(l,f,g,v,c[s]=new Array(h),d,n);for(var y,_,m=0,w=0;m<p;++m)if(y=g[m]){for(m>=w&&(w=m+1);!(_=v[w])&&++w<p;);y._next=_||null}}return(u=new Hw(u,r))._enter=a,u._exit=c,u},enter:function(){return new Hw(this._enter||this._groups.map(dw),this._parents)},exit:function(){return new Hw(this._exit||this._groups.map(dw),this._parents)},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],l=e[a],f=s.length,h=u[a]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new Hw(u,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=yw);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,s=i[o]=new Array(c),l=0;l<c;++l)(u=a[l])&&(s[l]=u);s.sort(n)}return new Hw(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=rw(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof n?e.local?function(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)}}:function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:e.local?function(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}:function(t,n){return function(){this.setAttribute(t,n)}})(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):mw(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=ww(t+"");if(arguments.length<2){for(var r=xw(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?function(t,n){return function(){(n.apply(this,arguments)?Mw:Aw)(this,t)}}:n?function(t){return function(){Mw(this,t)}}:function(t){return function(){Aw(this,t)}})(e,n))},text:function(t){return arguments.length?this.each(null==t?kw:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Nw:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(Tw)},lower:function(){return this.each(Cw)},append:function(t){var n="function"==typeof t?t:iw(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:iw(t),r=null==n?Ew:"function"==typeof n?n:uw(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Sw)},clone:function(t){return this.select(t?Pw:Ow)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(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}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?zw:qw,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,s=0,l=a.length;s<l;++s)for(r=0,c=a[s];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?function(t,n){return function(){return $w(this,t,n.apply(this,arguments))}}:function(t,n){return function(){return $w(this,t,n)}})(t,n))}};var Iw=Yw,Vw=function(t){return"string"==typeof t?new Hw([[document.querySelector(t)]],[document.documentElement]):new Hw([[t]],jw)},Bw=function(t){return Vw(iw(t).call(document.documentElement))},Xw=0;function Ww(){return new Gw}function Gw(){this._="@"+(++Xw).toString(36)}Gw.prototype=Ww.prototype={constructor:Gw,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Zw=function(){for(var t,n=Uw;t=n.sourceEvent;)n=t;return n},Jw=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},Qw=function(t){var n=Zw();return n.changedTouches&&(n=n.changedTouches[0]),Jw(t,n)},Kw=function(t){return"string"==typeof t?new Hw([document.querySelectorAll(t)],[document.documentElement]):new Hw([null==t?[]:t],jw)},tx=function(t,n,e){arguments.length<3&&(e=n,n=Zw().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return Jw(t,r);return null},nx=function(t,n){null==n&&(n=Zw().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=Jw(t,n[e]);return i},ex=function(t){return function(){return t}},rx=Math.abs,ix=Math.atan2,ox=Math.cos,ux=Math.max,ax=Math.min,cx=Math.sin,sx=Math.sqrt,lx=1e-12,fx=Math.PI,hx=fx/2,dx=2*fx;function px(t){return t>=1?hx:t<=-1?-hx:Math.asin(t)}function gx(t){return t.innerRadius}function vx(t){return t.outerRadius}function yx(t){return t.startAngle}function _x(t){return t.endAngle}function mx(t){return t&&t.padAngle}function wx(t,n,e,r,i,o,u){var a=t-e,c=n-r,s=(u?o:-o)/sx(a*a+c*c),l=s*c,f=-s*a,h=t+l,d=n+f,p=e+l,g=r+f,v=(h+p)/2,y=(d+g)/2,_=p-h,m=g-d,w=_*_+m*m,x=i-o,b=h*g-p*d,M=(m<0?-1:1)*sx(ux(0,x*x*w-b*b)),A=(b*m-_*M)/w,k=(-b*_-m*M)/w,N=(b*m+_*M)/w,T=(-b*_+m*M)/w,C=A-v,E=k-y,S=N-v,O=T-y;return C*C+E*E>S*S+O*O&&(A=N,k=T),{cx:A,cy:k,x01:-l,y01:-f,x11:A*(i/x-1),y11:k*(i/x-1)}}var xx=function(){var t=gx,n=vx,e=ex(0),r=null,i=yx,o=_x,u=mx,a=null;function c(){var c,s,l=+t.apply(this,arguments),f=+n.apply(this,arguments),h=i.apply(this,arguments)-hx,d=o.apply(this,arguments)-hx,p=rx(d-h),g=d>h;if(a||(a=c=Object(mr.a)()),f<l&&(s=f,f=l,l=s),f>lx)if(p>dx-lx)a.moveTo(f*ox(h),f*cx(h)),a.arc(0,0,f,h,d,!g),l>lx&&(a.moveTo(l*ox(d),l*cx(d)),a.arc(0,0,l,d,h,g));else{var v,y,_=h,m=d,w=h,x=d,b=p,M=p,A=u.apply(this,arguments)/2,k=A>lx&&(r?+r.apply(this,arguments):sx(l*l+f*f)),N=ax(rx(f-l)/2,+e.apply(this,arguments)),T=N,C=N;if(k>lx){var E=px(k/l*cx(A)),S=px(k/f*cx(A));(b-=2*E)>lx?(w+=E*=g?1:-1,x-=E):(b=0,w=x=(h+d)/2),(M-=2*S)>lx?(_+=S*=g?1:-1,m-=S):(M=0,_=m=(h+d)/2)}var O=f*ox(_),P=f*cx(_),D=l*ox(x),U=l*cx(x);if(N>lx){var L=f*ox(m),R=f*cx(m),q=l*ox(w),z=l*cx(w);if(p<fx){var F=b>lx?function(t,n,e,r,i,o,u,a){var c=e-t,s=r-n,l=u-i,f=a-o,h=(l*(n-o)-f*(t-i))/(f*c-l*s);return[t+h*c,n+h*s]}(O,P,q,z,L,R,D,U):[D,U],$=O-F[0],j=P-F[1],H=L-F[0],Y=R-F[1],I=1/cx(function(t){return t>1?0:t<-1?fx:Math.acos(t)}(($*H+j*Y)/(sx($*$+j*j)*sx(H*H+Y*Y)))/2),V=sx(F[0]*F[0]+F[1]*F[1]);T=ax(N,(l-V)/(I-1)),C=ax(N,(f-V)/(I+1))}}M>lx?C>lx?(v=wx(q,z,O,P,f,C,g),y=wx(L,R,D,U,f,C,g),a.moveTo(v.cx+v.x01,v.cy+v.y01),C<N?a.arc(v.cx,v.cy,C,ix(v.y01,v.x01),ix(y.y01,y.x01),!g):(a.arc(v.cx,v.cy,C,ix(v.y01,v.x01),ix(v.y11,v.x11),!g),a.arc(0,0,f,ix(v.cy+v.y11,v.cx+v.x11),ix(y.cy+y.y11,y.cx+y.x11),!g),a.arc(y.cx,y.cy,C,ix(y.y11,y.x11),ix(y.y01,y.x01),!g))):(a.moveTo(O,P),a.arc(0,0,f,_,m,!g)):a.moveTo(O,P),l>lx&&b>lx?T>lx?(v=wx(D,U,L,R,l,-T,g),y=wx(O,P,q,z,l,-T,g),a.lineTo(v.cx+v.x01,v.cy+v.y01),T<N?a.arc(v.cx,v.cy,T,ix(v.y01,v.x01),ix(y.y01,y.x01),!g):(a.arc(v.cx,v.cy,T,ix(v.y01,v.x01),ix(v.y11,v.x11),!g),a.arc(0,0,l,ix(v.cy+v.y11,v.cx+v.x11),ix(y.cy+y.y11,y.cx+y.x11),g),a.arc(y.cx,y.cy,T,ix(y.y11,y.x11),ix(y.y01,y.x01),!g))):a.arc(0,0,l,x,w,g):a.lineTo(D,U)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-fx/2;return[ox(r)*e,cx(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:ex(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:ex(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ex(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:ex(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:ex(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:ex(+t),c):o},c.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:ex(+t),c):u},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c};function bx(t){this._context=t}bx.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 Mx=function(t){return new bx(t)};function Ax(t){return t[0]}function kx(t){return t[1]}var Nx=function(){var t=Ax,n=kx,e=ex(!0),r=null,i=Mx,o=null;function u(u){var a,c,s,l=u.length,f=!1;for(null==r&&(o=i(s=Object(mr.a)())),a=0;a<=l;++a)!(a<l&&e(c=u[a],a,u))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(c,a,u),+n(c,a,u));if(s)return o=null,s+""||null}return u.x=function(n){return arguments.length?(t="function"==typeof n?n:ex(+n),u):t},u.y=function(t){return arguments.length?(n="function"==typeof t?t:ex(+t),u):n},u.defined=function(t){return arguments.length?(e="function"==typeof t?t:ex(!!t),u):e},u.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),u):i},u.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),u):r},u},Tx=function(){var t=Ax,n=null,e=ex(0),r=kx,i=ex(!0),o=null,u=Mx,a=null;function c(c){var s,l,f,h,d,p=c.length,g=!1,v=new Array(p),y=new Array(p);for(null==o&&(a=u(d=Object(mr.a)())),s=0;s<=p;++s){if(!(s<p&&i(h=c[s],s,c))===g)if(g=!g)l=s,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),f=s-1;f>=l;--f)a.point(v[f],y[f]);a.lineEnd(),a.areaEnd()}g&&(v[s]=+t(h,s,c),y[s]=+e(h,s,c),a.point(n?+n(h,s,c):v[s],r?+r(h,s,c):y[s]))}if(d)return a=null,d+""||null}function s(){return Nx().defined(i).curve(u).context(o)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:ex(+e),n=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:ex(+n),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:ex(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:ex(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:ex(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:ex(+t),c):r},c.lineX0=c.lineY0=function(){return s().x(t).y(e)},c.lineY1=function(){return s().x(t).y(r)},c.lineX1=function(){return s().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:ex(!!t),c):i},c.curve=function(t){return arguments.length?(u=t,null!=o&&(a=u(o)),c):u},c.context=function(t){return arguments.length?(null==t?o=a=null:a=u(o=t),c):o},c},Cx=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},Ex=function(t){return t},Sx=function(){var t=Ex,n=Cx,e=null,r=ex(0),i=ex(dx),o=ex(0);function u(u){var a,c,s,l,f,h=u.length,d=0,p=new Array(h),g=new Array(h),v=+r.apply(this,arguments),y=Math.min(dx,Math.max(-dx,i.apply(this,arguments)-v)),_=Math.min(Math.abs(y)/h,o.apply(this,arguments)),m=_*(y<0?-1:1);for(a=0;a<h;++a)(f=g[p[a]=a]=+t(u[a],a,u))>0&&(d+=f);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(u[t],u[n])})),a=0,s=d?(y-h*m)/d:0;a<h;++a,v=l)c=p[a],l=v+((f=g[c])>0?f*s:0)+m,g[c]={data:u[c],index:a,value:f,startAngle:v,endAngle:l,padAngle:_};return g}return u.value=function(n){return arguments.length?(t="function"==typeof n?n:ex(+n),u):t},u.sortValues=function(t){return arguments.length?(n=t,e=null,u):n},u.sort=function(t){return arguments.length?(e=t,n=null,u):e},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:ex(+t),u):r},u.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:ex(+t),u):i},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:ex(+t),u):o},u},Ox=Dx(Mx);function Px(t){this._curve=t}function Dx(t){function n(n){return new Px(t(n))}return n._curve=t,n}function Ux(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Dx(t)):n()._curve},t}Px.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Lx=function(){return Ux(Nx().curve(Ox))},Rx=function(){var t=Tx().curve(Ox),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Ux(e())},delete t.lineX0,t.lineEndAngle=function(){return Ux(r())},delete t.lineX1,t.lineInnerRadius=function(){return Ux(i())},delete t.lineY0,t.lineOuterRadius=function(){return Ux(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Dx(t)):n()._curve},t},qx=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},zx=Array.prototype.slice;function Fx(t){return t.source}function $x(t){return t.target}function jx(t){var n=Fx,e=$x,r=Ax,i=kx,o=null;function u(){var u,a=zx.call(arguments),c=n.apply(this,a),s=e.apply(this,a);if(o||(o=u=Object(mr.a)()),t(o,+r.apply(this,(a[0]=c,a)),+i.apply(this,a),+r.apply(this,(a[0]=s,a)),+i.apply(this,a)),u)return o=null,u+""||null}return u.source=function(t){return arguments.length?(n=t,u):n},u.target=function(t){return arguments.length?(e=t,u):e},u.x=function(t){return arguments.length?(r="function"==typeof t?t:ex(+t),u):r},u.y=function(t){return arguments.length?(i="function"==typeof t?t:ex(+t),u):i},u.context=function(t){return arguments.length?(o=null==t?null:t,u):o},u}function Hx(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function Yx(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function Ix(t,n,e,r,i){var o=qx(n,e),u=qx(n,e=(e+i)/2),a=qx(r,e),c=qx(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(u[0],u[1],a[0],a[1],c[0],c[1])}function Vx(){return jx(Hx)}function Bx(){return jx(Yx)}function Xx(){var t=jx(Ix);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var Wx={draw:function(t,n){var e=Math.sqrt(n/fx);t.moveTo(e,0),t.arc(0,0,e,0,dx)}},Gx={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},Zx=Math.sqrt(1/3),Jx=2*Zx,Qx={draw:function(t,n){var e=Math.sqrt(n/Jx),r=e*Zx;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},Kx=Math.sin(fx/10)/Math.sin(7*fx/10),tb=Math.sin(dx/10)*Kx,nb=-Math.cos(dx/10)*Kx,eb={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=tb*e,i=nb*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var u=dx*o/5,a=Math.cos(u),c=Math.sin(u);t.lineTo(c*e,-a*e),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},rb={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},ib=Math.sqrt(3),ob={draw:function(t,n){var e=-Math.sqrt(n/(3*ib));t.moveTo(0,2*e),t.lineTo(-ib*e,-e),t.lineTo(ib*e,-e),t.closePath()}},ub=Math.sqrt(3)/2,ab=1/Math.sqrt(12),cb=3*(ab/2+1),sb={draw:function(t,n){var e=Math.sqrt(n/cb),r=e/2,i=e*ab,o=r,u=e*ab+e,a=-o,c=u;t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,c),t.lineTo(-.5*r-ub*i,ub*r+-.5*i),t.lineTo(-.5*o-ub*u,ub*o+-.5*u),t.lineTo(-.5*a-ub*c,ub*a+-.5*c),t.lineTo(-.5*r+ub*i,-.5*i-ub*r),t.lineTo(-.5*o+ub*u,-.5*u-ub*o),t.lineTo(-.5*a+ub*c,-.5*c-ub*a),t.closePath()}},lb=[Wx,Gx,Qx,rb,eb,ob,sb],fb=function(){var t=ex(Wx),n=ex(64),e=null;function r(){var r;if(e||(e=r=Object(mr.a)()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:ex(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:ex(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r},hb=function(){};function db(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function pb(t){this._context=t}pb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:db(this,this._x1,this._y1);case 2:this._context.lineTo(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:db(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var gb=function(t){return new pb(t)};function vb(t){this._context=t}vb.prototype={areaStart:hb,areaEnd:hb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:db(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var yb=function(t){return new vb(t)};function _b(t){this._context=t}_b.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=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;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:db(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var mb=function(t){return new _b(t)};function wb(t,n){this._basis=new pb(t),this._beta=n}wb.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],u=t[e]-i,a=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*u),this._beta*n[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var xb=function t(n){function e(t){return 1===n?new pb(t):new wb(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function bb(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 Mb(t,n){this._context=t,this._k=(1-n)/6}Mb.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:bb(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:bb(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}};var Ab=function t(n){function e(t){return new Mb(t,n)}return e.tension=function(n){return t(+n)},e}(0);function kb(t,n){this._context=t,this._k=(1-n)/6}kb.prototype={areaStart:hb,areaEnd:hb,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:bb(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}};var Nb=function t(n){function e(t){return new kb(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Tb(t,n){this._context=t,this._k=(1-n)/6}Tb.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:bb(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}};var Cb=function t(n){function e(t){return new Tb(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Eb(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>lx){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>lx){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/l,u=(u*s+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function Sb(t,n){this._context=t,this._alpha=n}Sb.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,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,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:Eb(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}};var Ob=function t(n){function e(t){return n?new Sb(t,n):new Mb(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Pb(t,n){this._context=t,this._alpha=n}Pb.prototype={areaStart:hb,areaEnd:hb,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,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,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:Eb(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}};var Db=function t(n){function e(t){return n?new Pb(t,n):new kb(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Ub(t,n){this._context=t,this._alpha=n}Ub.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,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,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:Eb(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}};var Lb=function t(n){function e(t){return n?new Ub(t,n):new Tb(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Rb(t){this._context=t}Rb.prototype={areaStart:hb,areaEnd:hb,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))}};var qb=function(t){return new Rb(t)};function zb(t){return t<0?-1:1}function Fb(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(zb(o)+zb(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function $b(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function jb(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function Hb(t){this._context=t}function Yb(t){this._context=new Ib(t)}function Ib(t){this._context=t}function Vb(t){return new Hb(t)}function Bb(t){return new Yb(t)}function Xb(t){this._context=t}function Wb(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,u[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,u[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,u[n]-=e*u[n-1];for(i[r-1]=u[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}Hb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:jb(this,this._t0,$b(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){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,jb(this,$b(this,e=Fb(this,t,n)),e);break;default:jb(this,this._t0,e=Fb(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(Yb.prototype=Object.create(Hb.prototype)).point=function(t,n){Hb.prototype.point.call(this,n,t)},Ib.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},Xb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=Wb(t),i=Wb(n),o=0,u=1;u<e;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[u],n[u]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Gb=function(t){return new Xb(t)};function Zb(t,n){this._context=t,this._t=n}Zb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=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}};var Jb=function(t){return new Zb(t,.5)};function Qb(t){return new Zb(t,0)}function Kb(t){return new Zb(t,1)}var tM=function(t,n){if((i=t.length)>1)for(var e,r,i,o=1,u=t[n[0]],a=u.length;o<i;++o)for(r=u,u=t[n[o]],e=0;e<a;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]},nM=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e};function eM(t,n){return t[n]}var rM=function(){var t=ex([]),n=nM,e=tM,r=eM;function i(i){var o,u,a=t.apply(this,arguments),c=i.length,s=a.length,l=new Array(s);for(o=0;o<s;++o){for(var f,h=a[o],d=l[o]=new Array(c),p=0;p<c;++p)d[p]=f=[0,+r(i[p],h,p,i)],f.data=i[p];d.key=h}for(o=0,u=n(l);o<s;++o)l[u[o]].index=o;return e(l,u),l}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:ex(zx.call(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:ex(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?nM:"function"==typeof t?t:ex(zx.call(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?tM:t,i):e},i},iM=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,u=t[0].length;o<u;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}tM(t,n)}},oM=function(t,n){if((a=t.length)>1)for(var e,r,i,o,u,a,c=0,s=t[n[0]].length;c<s;++c)for(o=u=0,e=0;e<a;++e)(i=(r=t[n[e]][c])[1]-r[0])>=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):r[0]=o},uM=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var u=0,a=0;u<e;++u)a+=t[u][r][1]||0;i[r][1]+=i[r][0]=-a/2}tM(t,n)}},aM=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,u=1;u<r;++u){for(var a=0,c=0,s=0;a<i;++a){for(var l=t[n[a]],f=l[u][1]||0,h=(f-(l[u-1][1]||0))/2,d=0;d<a;++d){var p=t[n[d]];h+=(p[u][1]||0)-(p[u-1][1]||0)}c+=f,s+=h*f}e[u-1][1]+=e[u-1][0]=o,c&&(o-=s/c)}e[u-1][1]+=e[u-1][0]=o,tM(t,n)}},cM=function(t){var n=t.map(sM);return nM(t).sort((function(t,e){return n[t]-n[e]}))};function sM(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}var lM=function(t){return cM(t).reverse()},fM=function(t){var n,e,r=t.length,i=t.map(sM),o=nM(t).sort((function(t,n){return i[n]-i[t]})),u=0,a=0,c=[],s=[];for(n=0;n<r;++n)e=o[n],u<a?(u+=i[e],c.push(e)):(a+=i[e],s.push(e));return s.reverse().concat(c)},hM=function(t){return nM(t).reverse()},dM=new Date,pM=new Date;function gM(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u<e&&e<r);return a},i.filter=function(e){return gM((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return dM.setTime(+n),pM.setTime(+r),t(dM),t(pM),Math.floor(e(dM,pM))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var vM=gM((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));vM.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?gM((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):vM:null};var yM=vM,_M=vM.range,mM=6e4,wM=6048e5,xM=gM((function(t){t.setTime(1e3*Math.floor(t/1e3))}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()})),bM=xM,MM=xM.range,AM=gM((function(t){t.setTime(Math.floor(t/mM)*mM)}),(function(t,n){t.setTime(+t+n*mM)}),(function(t,n){return(n-t)/mM}),(function(t){return t.getMinutes()})),kM=AM,NM=AM.range,TM=gM((function(t){var n=t.getTimezoneOffset()*mM%36e5;n<0&&(n+=36e5),t.setTime(36e5*Math.floor((+t-n)/36e5)+n)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()})),CM=TM,EM=TM.range,SM=gM((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())*mM)/864e5}),(function(t){return t.getDate()-1})),OM=SM,PM=SM.range;function DM(t){return gM((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())*mM)/wM}))}var UM=DM(0),LM=DM(1),RM=DM(2),qM=DM(3),zM=DM(4),FM=DM(5),$M=DM(6),jM=UM.range,HM=LM.range,YM=RM.range,IM=qM.range,VM=zM.range,BM=FM.range,XM=$M.range,WM=gM((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()})),GM=WM,ZM=WM.range,JM=gM((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()}));JM.every=function(t){return isFinite(t=Math.floor(t))&&t>0?gM((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 QM=JM,KM=JM.range,tA=gM((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*mM)}),(function(t,n){return(n-t)/mM}),(function(t){return t.getUTCMinutes()})),nA=tA,eA=tA.range,rA=gM((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()})),iA=rA,oA=rA.range,uA=gM((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})),aA=uA,cA=uA.range;function sA(t){return gM((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)/wM}))}var lA=sA(0),fA=sA(1),hA=sA(2),dA=sA(3),pA=sA(4),gA=sA(5),vA=sA(6),yA=lA.range,_A=fA.range,mA=hA.range,wA=dA.range,xA=pA.range,bA=gA.range,MA=vA.range,AA=gM((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()})),kA=AA,NA=AA.range,TA=gM((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()}));TA.every=function(t){return isFinite(t=Math.floor(t))&&t>0?gM((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 CA=TA,EA=TA.range;function SA(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 OA(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 PA(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function DA(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,a=t.months,c=t.shortMonths,s=VA(i),l=BA(i),f=VA(o),h=BA(o),d=VA(u),p=BA(u),g=VA(a),v=BA(a),y=VA(c),_=BA(c),m={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:hk,e:hk,f:yk,H:dk,I:pk,j:gk,L:vk,m:_k,M:mk,p:function(t){return i[+(t.getHours()>=12)]},Q:Xk,s:Wk,S:wk,u:xk,U:bk,V:Mk,w:Ak,W:kk,x:null,X:null,y:Nk,Y:Tk,Z:Ck,"%":Bk},w={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Ek,e:Ek,f:Uk,H:Sk,I:Ok,j:Pk,L:Dk,m:Lk,M:Rk,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Xk,s:Wk,S:qk,u:zk,U:Fk,V:$k,w:jk,W:Hk,x:null,X:null,y:Yk,Y:Ik,Z:Vk,"%":Bk},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=_[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:ek,e:ek,f:ck,H:ik,I:ik,j:rk,L:ak,m:nk,M:ok,p:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=l[r[0].toLowerCase()],e+r[0].length):-1},Q:lk,s:fk,S:uk,u:WA,U:GA,V:ZA,w:XA,W:JA,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:KA,Y:QA,Z:tk,"%":sk};function b(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++a<s;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=FA[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function M(t,n){return function(e){var r,i,o=PA(1900);if(A(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=OA(PA(o.y))).getUTCDay())>4||0===i?Oy.ceil(r):Oy(r),r=zy.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=n(PA(o.y))).getDay())>4||0===i?dy.ceil(r):dy(r),r=wy.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?OA(PA(o.y)).getUTCDay():n(PA(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,OA(o)):n(o)}}function A(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=x[i in FA?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return m.x=b(e,m),m.X=b(r,m),m.c=b(n,m),w.x=b(e,w),w.X=b(r,w),w.c=b(n,w),{format:function(t){var n=b(t+="",m);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",SA);return n.toString=function(){return t},n},utcFormat:function(t){var n=b(t+="",w);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t,OA);return n.toString=function(){return t},n}}}var UA,LA,RA,qA,zA,FA={"-":"",_:" ",0:"0"},$A=/^\s*\d+/,jA=/^%/,HA=/[\\^$*+?|[\]().{}]/g;function YA(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function IA(t){return t.replace(HA,"\\$&")}function VA(t){return new RegExp("^(?:"+t.map(IA).join("|")+")","i")}function BA(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function XA(t,n,e){var r=$A.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function WA(t,n,e){var r=$A.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function GA(t,n,e){var r=$A.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function ZA(t,n,e){var r=$A.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function JA(t,n,e){var r=$A.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function QA(t,n,e){var r=$A.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function KA(t,n,e){var r=$A.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function tk(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function nk(t,n,e){var r=$A.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function ek(t,n,e){var r=$A.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function rk(t,n,e){var r=$A.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function ik(t,n,e){var r=$A.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ok(t,n,e){var r=$A.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function uk(t,n,e){var r=$A.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function ak(t,n,e){var r=$A.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ck(t,n,e){var r=$A.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function sk(t,n,e){var r=jA.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function lk(t,n,e){var r=$A.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function fk(t,n,e){var r=$A.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function hk(t,n){return YA(t.getDate(),n,2)}function dk(t,n){return YA(t.getHours(),n,2)}function pk(t,n){return YA(t.getHours()%12||12,n,2)}function gk(t,n){return YA(1+wy.count(uy(t),t),n,3)}function vk(t,n){return YA(t.getMilliseconds(),n,3)}function yk(t,n){return vk(t,n)+"000"}function _k(t,n){return YA(t.getMonth()+1,n,2)}function mk(t,n){return YA(t.getMinutes(),n,2)}function wk(t,n){return YA(t.getSeconds(),n,2)}function xk(t){var n=t.getDay();return 0===n?7:n}function bk(t,n){return YA(hy.count(uy(t),t),n,2)}function Mk(t,n){var e=t.getDay();return t=e>=4||0===e?vy(t):vy.ceil(t),YA(vy.count(uy(t),t)+(4===uy(t).getDay()),n,2)}function Ak(t){return t.getDay()}function kk(t,n){return YA(dy.count(uy(t),t),n,2)}function Nk(t,n){return YA(t.getFullYear()%100,n,2)}function Tk(t,n){return YA(t.getFullYear()%1e4,n,4)}function Ck(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+YA(n/60|0,"0",2)+YA(n%60,"0",2)}function Ek(t,n){return YA(t.getUTCDate(),n,2)}function Sk(t,n){return YA(t.getUTCHours(),n,2)}function Ok(t,n){return YA(t.getUTCHours()%12||12,n,2)}function Pk(t,n){return YA(1+zy.count($y(t),t),n,3)}function Dk(t,n){return YA(t.getUTCMilliseconds(),n,3)}function Uk(t,n){return Dk(t,n)+"000"}function Lk(t,n){return YA(t.getUTCMonth()+1,n,2)}function Rk(t,n){return YA(t.getUTCMinutes(),n,2)}function qk(t,n){return YA(t.getUTCSeconds(),n,2)}function zk(t){var n=t.getUTCDay();return 0===n?7:n}function Fk(t,n){return YA(Sy.count($y(t),t),n,2)}function $k(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Uy(t):Uy.ceil(t),YA(Uy.count($y(t),t)+(4===$y(t).getUTCDay()),n,2)}function jk(t){return t.getUTCDay()}function Hk(t,n){return YA(Oy.count($y(t),t),n,2)}function Yk(t,n){return YA(t.getUTCFullYear()%100,n,2)}function Ik(t,n){return YA(t.getUTCFullYear()%1e4,n,4)}function Vk(){return"+0000"}function Bk(){return"%"}function Xk(t){return+t}function Wk(t){return Math.floor(+t/1e3)}function Gk(t){return UA=DA(t),LA=UA.format,RA=UA.parse,qA=UA.utcFormat,zA=UA.utcParse,UA}Gk({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"]});var Zk,Jk,Qk=Date.prototype.toISOString?function(t){return t.toISOString()}:qA("%Y-%m-%dT%H:%M:%S.%LZ"),Kk=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:zA("%Y-%m-%dT%H:%M:%S.%LZ"),tN=0,nN=0,eN=0,rN=0,iN=0,oN=0,uN="object"==typeof performance&&performance.now?performance:Date,aN="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function cN(){return iN||(aN(sN),iN=uN.now()+oN)}function sN(){iN=0}function lN(){this._call=this._time=this._next=null}function fN(t,n,e){var r=new lN;return r.restart(t,n,e),r}function hN(){cN(),++tN;for(var t,n=Zk;n;)(t=iN-n._time)>=0&&n._call.call(null,t),n=n._next;--tN}function dN(){iN=(rN=uN.now())+oN,tN=nN=0;try{hN()}finally{tN=0,function(){for(var t,n,e=Zk,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Zk=n);Jk=t,gN(r)}(),iN=0}}function pN(){var t=uN.now(),n=t-rN;n>1e3&&(oN-=n,rN=t)}function gN(t){tN||(nN&&(nN=clearTimeout(nN)),t-iN>24?(t<1/0&&(nN=setTimeout(dN,t-uN.now()-oN)),eN&&(eN=clearInterval(eN))):(eN||(rN=uN.now(),eN=setInterval(pN,1e3)),tN=1,aN(dN)))}lN.prototype=fN.prototype={constructor:lN,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?cN():+e)+(null==n?0:+n),this._next||Jk===this||(Jk?Jk._next=this:Zk=this,Jk=this),this._call=t,this._time=e,gN()},stop:function(){this._call&&(this._call=null,this._time=1/0,gN())}};var vN=function(t,n,e){var r=new lN;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},yN=function(t,n,e){var r=new lN,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?cN():+e,r.restart((function o(u){u+=i,r.restart(o,i+=n,e),t(u)}),n,e),r)};function _N(){}var mN=function(t){return null==t?_N:function(){return this.querySelector(t)}};function wN(){return[]}var xN=function(t){return null==t?wN:function(){return this.querySelectorAll(t)}},bN=function(t){return function(){return this.matches(t)}},MN=function(t){return new Array(t.length)};function AN(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}AN.prototype={constructor:AN,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function kN(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;a<s;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new AN(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function NN(t,n,e,r,i,o,u){var a,c,s,l={},f=n.length,h=o.length,d=new Array(f);for(a=0;a<f;++a)(c=n[a])&&(d[a]=s="$"+u.call(c,c.__data__,a,n),s in l?i[a]=c:l[s]=c);for(a=0;a<h;++a)(c=l[s="$"+u.call(t,o[a],a,o)])?(r[a]=c,c.__data__=o[a],l[s]=null):e[a]=new AN(t,o[a]);for(a=0;a<f;++a)(c=n[a])&&l[d[a]]===c&&(i[a]=c)}function TN(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var CN="http://www.w3.org/1999/xhtml",EN={svg:"http://www.w3.org/2000/svg",xhtml:CN,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},SN=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),EN.hasOwnProperty(n)?{space:EN[n],local:t}:t},ON=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function PN(t,n){return t.style.getPropertyValue(n)||ON(t).getComputedStyle(t,null).getPropertyValue(n)}function DN(t){return t.trim().split(/^|\s+/)}function UN(t){return t.classList||new LN(t)}function LN(t){this._node=t,this._names=DN(t.getAttribute("class")||"")}function RN(t,n){for(var e=UN(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function qN(t,n){for(var e=UN(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function zN(){this.textContent=""}function FN(){this.innerHTML=""}function $N(){this.nextSibling&&this.parentNode.appendChild(this)}function jN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}LN.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var HN=function(t){var n=SN(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===CN&&n.documentElement.namespaceURI===CN?n.createElement(t):n.createElementNS(e,t)}})(n)};function YN(){return null}function IN(){var t=this.parentNode;t&&t.removeChild(this)}function VN(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function BN(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var XN={},WN=null;function GN(t,n,e){return t=ZN(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function ZN(t,n,e){return function(r){var i=WN;WN=r;try{t.call(this,this.__data__,n,e)}finally{WN=i}}}function JN(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function QN(t,n,e){var r=XN.hasOwnProperty(t.type)?GN:ZN;return function(i,o,u){var a,c=this.__on,s=r(n,o,u);if(c)for(var l=0,f=c.length;l<f;++l)if((a=c[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=e),void(a.value=n);this.addEventListener(t.type,s,e),a={type:t.type,name:t.name,value:n,listener:s,capture:e},c?c.push(a):this.__on=[a]}}function KN(t,n,e){var r=ON(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(XN={mouseenter:"mouseover",mouseleave:"mouseout"}));var tT=[null];function nT(t,n){this._groups=t,this._parents=n}function eT(){return new nT([[document.documentElement]],tT)}nT.prototype=eT.prototype={constructor:nT,select:function(t){"function"!=typeof t&&(t=mN(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,s=r[i]=new Array(c),l=0;l<c;++l)(o=a[l])&&(u=t.call(o,o.__data__,l,a))&&("__data__"in o&&(u.__data__=o.__data__),s[l]=u);return new nT(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=xN(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,s=0;s<c;++s)(u=a[s])&&(r.push(t.call(u,u.__data__,s,a)),i.push(u));return new nT(r,i)},filter:function(t){"function"!=typeof t&&(t=bN(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new nT(r,this._parents)},data:function(t,n){if(!t)return d=new Array(this.size()),s=-1,this.each((function(t){d[++s]=t})),d;var e=n?NN:kN,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),s=0;s<o;++s){var l=r[s],f=i[s],h=f.length,d=t.call(l,l&&l.__data__,s,r),p=d.length,g=a[s]=new Array(p),v=u[s]=new Array(p);e(l,f,g,v,c[s]=new Array(h),d,n);for(var y,_,m=0,w=0;m<p;++m)if(y=g[m]){for(m>=w&&(w=m+1);!(_=v[w])&&++w<p;);y._next=_||null}}return(u=new nT(u,r))._enter=a,u._exit=c,u},enter:function(){return new nT(this._enter||this._groups.map(MN),this._parents)},exit:function(){return new nT(this._exit||this._groups.map(MN),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],l=e[a],f=s.length,h=u[a]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new nT(u,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=TN);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,s=i[o]=new Array(c),l=0;l<c;++l)(u=a[l])&&(s[l]=u);s.sort(n)}return new nT(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=SN(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof n?e.local?function(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)}}:function(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:e.local?function(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}:function(t,n){return function(){this.setAttribute(t,n)}})(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):PN(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=DN(t+"");if(arguments.length<2){for(var r=UN(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?function(t,n){return function(){(n.apply(this,arguments)?RN:qN)(this,t)}}:n?function(t){return function(){RN(this,t)}}:function(t){return function(){qN(this,t)}})(e,n))},text:function(t){return arguments.length?this.each(null==t?zN:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?FN:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each($N)},lower:function(){return this.each(jN)},append:function(t){var n="function"==typeof t?t:HN(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:HN(t),r=null==n?YN:"function"==typeof n?n:mN(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(IN)},clone:function(t){return this.select(t?BN:VN)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(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}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?QN:JN,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,s=0,l=a.length;s<l;++s)for(r=0,c=a[s];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?function(t,n){return function(){return KN(this,t,n.apply(this,arguments))}}:function(t,n){return function(){return KN(this,t,n)}})(t,n))}};var rT=eT,iT={value:function(){}};function oT(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new uT(r)}function uT(t){this._=t}function aT(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function cT(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=iT,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}uT.prototype=oT.prototype={constructor:uT,on:function(t,n){var e,r=this._,i=function(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=cT(r[e],t.name,n);else if(null==n)for(e in r)r[e]=cT(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=aT(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new uT(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var sT,lT,fT=oT,hT=0,dT=0,pT=0,gT=0,vT=0,yT=0,_T="object"==typeof performance&&performance.now?performance:Date,mT="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function wT(){return vT||(mT(xT),vT=_T.now()+yT)}function xT(){vT=0}function bT(){this._call=this._time=this._next=null}function MT(t,n,e){var r=new bT;return r.restart(t,n,e),r}function AT(){vT=(gT=_T.now())+yT,hT=dT=0;try{!function(){wT(),++hT;for(var t,n=sT;n;)(t=vT-n._time)>=0&&n._call.call(null,t),n=n._next;--hT}()}finally{hT=0,function(){for(var t,n,e=sT,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:sT=n);lT=t,NT(r)}(),vT=0}}function kT(){var t=_T.now(),n=t-gT;n>1e3&&(yT-=n,gT=t)}function NT(t){hT||(dT&&(dT=clearTimeout(dT)),t-vT>24?(t<1/0&&(dT=setTimeout(AT,t-_T.now()-yT)),pT&&(pT=clearInterval(pT))):(pT||(gT=_T.now(),pT=setInterval(kT,1e3)),hT=1,mT(AT)))}bT.prototype=MT.prototype={constructor:bT,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?wT():+e)+(null==n?0:+n),this._next||lT===this||(lT?lT._next=this:sT=this,lT=this),this._call=t,this._time=e,NT()},stop:function(){this._call&&(this._call=null,this._time=1/0,NT())}};var TT=function(t,n,e){var r=new bT;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},CT=fT("start","end","interrupt"),ET=[],ST=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var s,l,f,h;if(1!==e.state)return a();for(s in i)if((h=i[s]).name===e.name){if(3===h.state)return TT(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<n&&(h.state=6,h.timer.stop(),delete i[s])}if(TT((function(){3===e.state&&(e.state=4,e.timer.restart(u,e.delay,e.time),u(c))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(f=e.tween.length),s=0,l=-1;s<f;++s)(h=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(r[++l]=h);r.length=l+1}}function u(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(null,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=MT((function(t){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:CT,tween:ET,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function OT(t,n){var e=DT(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function PT(t,n){var e=DT(t,n);if(e.state>2)throw new Error("too late; already started");return e}function DT(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var UT,LT,RT,qT,zT=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},FT=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}},$T=180/Math.PI,jT={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},HT=function(t,n,e,r,i,o){var u,a,c;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),t*r<n*e&&(t=-t,n=-n,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*$T,skewX:Math.atan(c)*$T,scaleX:u,scaleY:a}};function YT(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],c=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var c=u.push("translate(",null,n,null,e);a.push({i:c-4,x:FT(t,i)},{i:c-2,x:FT(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,a,c),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:FT(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:FT(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,c),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:FT(t,e)},{i:a-2,x:FT(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,c),o=u=null,function(t){for(var n,e=-1,r=c.length;++e<r;)a[(n=c[e]).i]=n.x(t);return a.join("")}}}var IT=YT((function(t){return"none"===t?jT:(UT||(UT=document.createElement("DIV"),LT=document.documentElement,RT=document.defaultView),UT.style.transform=t,t=RT.getComputedStyle(LT.appendChild(UT),null).getPropertyValue("transform"),LT.removeChild(UT),t=t.slice(7,-1).split(","),HT(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),VT=YT((function(t){return null==t?jT:(qT||(qT=document.createElementNS("http://www.w3.org/2000/svg","g")),qT.setAttribute("transform",t),(t=qT.transform.baseVal.consolidate())?(t=t.matrix,HT(t.a,t.b,t.c,t.d,t.e,t.f)):jT)}),", ",")",")");function BT(t,n,e){var r=t._id;return t.each((function(){var t=PT(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return DT(t,r).value[n]}}var XT=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function WT(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function GT(){}var ZT="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",JT="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",QT=/^#([0-9a-f]{3,8})$/,KT=new RegExp("^rgb\\("+["\\s*([+-]?\\d+)\\s*","\\s*([+-]?\\d+)\\s*","\\s*([+-]?\\d+)\\s*"]+"\\)$"),tC=new RegExp("^rgb\\("+[JT,JT,JT]+"\\)$"),nC=new RegExp("^rgba\\("+["\\s*([+-]?\\d+)\\s*","\\s*([+-]?\\d+)\\s*","\\s*([+-]?\\d+)\\s*",ZT]+"\\)$"),eC=new RegExp("^rgba\\("+[JT,JT,JT,ZT]+"\\)$"),rC=new RegExp("^hsl\\("+[ZT,JT,JT]+"\\)$"),iC=new RegExp("^hsla\\("+[ZT,JT,JT,ZT]+"\\)$"),oC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function uC(){return this.rgb().formatHex()}function aC(){return this.rgb().formatRgb()}function cC(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=QT.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?sC(n):3===e?new hC(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?lC(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?lC(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=KT.exec(t))?new hC(n[1],n[2],n[3],1):(n=tC.exec(t))?new hC(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=nC.exec(t))?lC(n[1],n[2],n[3],n[4]):(n=eC.exec(t))?lC(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=rC.exec(t))?vC(n[1],n[2]/100,n[3]/100,1):(n=iC.exec(t))?vC(n[1],n[2]/100,n[3]/100,n[4]):oC.hasOwnProperty(t)?sC(oC[t]):"transparent"===t?new hC(NaN,NaN,NaN,0):null}function sC(t){return new hC(t>>16&255,t>>8&255,255&t,1)}function lC(t,n,e,r){return r<=0&&(t=n=e=NaN),new hC(t,n,e,r)}function fC(t,n,e,r){return 1===arguments.length?function(t){return t instanceof GT||(t=cC(t)),t?new hC((t=t.rgb()).r,t.g,t.b,t.opacity):new hC}(t):new hC(t,n,e,null==r?1:r)}function hC(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function dC(){return"#"+gC(this.r)+gC(this.g)+gC(this.b)}function pC(){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 gC(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function vC(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new _C(t,n,e,r)}function yC(t){if(t instanceof _C)return new _C(t.h,t.s,t.l,t.opacity);if(t instanceof GT||(t=cC(t)),!t)return new _C;if(t instanceof _C)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new _C(u,a,c,t.opacity)}function _C(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function mC(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 wC(t,n,e,r,i){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)*r+u*i)/6}XT(GT,cC,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:uC,formatHex:uC,formatHsl:function(){return yC(this).formatHsl()},formatRgb:aC,toString:aC}),XT(hC,fC,WT(GT,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new hC(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new hC(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:dC,formatHex:dC,formatRgb:pC,toString:pC})),XT(_C,(function(t,n,e,r){return 1===arguments.length?yC(t):new _C(t,n,e,null==r?1:r)}),WT(GT,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new _C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new _C(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,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new hC(mC(t>=240?t-240:t+120,i,r),mC(t,i,r),mC(t<120?t+240:t-120,i,r),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 xC=function(t){return function(){return t}};function bC(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):xC(isNaN(t)?n:t)}var MC=function t(n){var e=function(t){return 1==(t=+t)?bC: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(r){return Math.pow(t+r*n,e)}}(n,e,t):xC(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=fC(t)).r,(n=fC(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=bC(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function AC(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=fC(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}AC((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<n-1?t[r+2]:2*o-i;return wC((e-r/n)*n,u,i,o,a)}})),AC((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return wC((e-r/n)*n,i,o,u,a)}}));var kC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,NC=new RegExp(kC.source,"g"),TC=function(t,n){var e;return("number"==typeof n?FT:n instanceof cC?MC:(e=cC(n))?(n=e,MC):function(t,n){var e,r,i,o=kC.lastIndex=NC.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(e=kC.exec(t))&&(r=NC.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,c.push({i:u,x:FT(e,r)})),o=NC.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})})(t,n)},CC=rT.prototype.constructor,EC=0;function SC(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function OC(t){return rT().transition(t)}function PC(){return++EC}var DC=rT.prototype;SC.prototype=OC.prototype={constructor:SC,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=mN(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,c,s=r[u],l=s.length,f=o[u]=new Array(l),h=0;h<l;++h)(a=s[h])&&(c=t.call(a,a.__data__,h,s))&&("__data__"in a&&(c.__data__=a.__data__),f[h]=c,ST(f[h],n,e,h,f,DT(a,e)));return new SC(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=xN(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c,s=r[a],l=s.length,f=0;f<l;++f)if(c=s[f]){for(var h,d=t.call(c,c.__data__,f,s),p=DT(c,e),g=0,v=d.length;g<v;++g)(h=d[g])&&ST(h,n,e,g,d,p);o.push(d),u.push(c)}return new SC(o,u,n,e)},filter:function(t){"function"!=typeof t&&(t=bN(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new SC(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],l=e[a],f=s.length,h=u[a]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new SC(u,this._parents,this._name,this._id)},selection:function(){return new CC(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=PC(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,s=0;s<c;++s)if(u=a[s]){var l=DT(u,n);ST(u,t,e,s,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new SC(r,this._parents,t,e)},call:DC.call,nodes:DC.nodes,node:DC.node,size:DC.size,empty:DC.empty,each:DC.each,on:function(t,n){var e=this._id;return arguments.length<2?DT(this.node(),e).on.on(t):this.each(function(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?OT:PT;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(t,n){var e=SN(t),r="transform"===e?VT:TC;return this.attrTween(t,"function"==typeof n?(e.local?function(t,n,e){var r,i,o;return function(){var u,a=e(this);if(null!=a)return(u=this.getAttributeNS(t.space,t.local))===a?null:u===r&&a===i?o:o=n(r=u,i=a);this.removeAttributeNS(t.space,t.local)}}:function(t,n,e){var r,i,o;return function(){var u,a=e(this);if(null!=a)return(u=this.getAttribute(t))===a?null:u===r&&a===i?o:o=n(r=u,i=a);this.removeAttribute(t)}})(e,r,BT(this,"attr."+t,n)):null==n?(e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(e):(e.local?function(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}:function(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}})(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=SN(t);return this.tween(e,(r.local?function(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}:function(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e})(r,n))},style:function(t,n,e){var r="transform"==(t+="")?IT:TC;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=PN(this,t),u=(this.style.removeProperty(t),PN(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var u=PN(this,t),a=e(this);return null==a&&(this.style.removeProperty(t),a=PN(this,t)),u===a?null:u===r&&a===i?o:o=n(r=u,i=a)}}(t,r,BT(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=PN(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(BT(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=DT(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?function(t,n){var e,r;return function(){var i=PT(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}:function(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=PT(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,s=i.length;c<s;++c)if(i[c].name===n){i[c]=a;break}c===s&&i.push(a)}o.tween=i}})(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?function(t,n){return function(){OT(this,t).delay=+n.apply(this,arguments)}}:function(t,n){return n=+n,function(){OT(this,t).delay=n}})(n,t)):DT(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?function(t,n){return function(){PT(this,t).duration=+n.apply(this,arguments)}}:function(t,n){return n=+n,function(){PT(this,t).duration=n}})(n,t)):DT(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!=typeof n)throw new Error;return function(){PT(this,t).ease=n}}(n,t)):DT(this.node(),n).ease}};var UC={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function LC(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return UC.time=wT(),UC;return e}rT.prototype.interrupt=function(t){return this.each((function(){zT(this,t)}))},rT.prototype.transition=function(t){var n,e;t instanceof SC?(n=t._id,t=t._name):(n=PC(),(e=UC).time=wT(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,s=0;s<c;++s)(u=a[s])&&ST(u,t,n,s,a,e||LC(u,n));return new SC(r,this._parents,t,n)};var RC=[null],qC=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new SC([[t]],RC,n,+r);return null},zC=function(t){return function(){return t}};function FC(t){return t[0]}function $C(t){return t[1]}function jC(){this._=null}function HC(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function YC(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 IC(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 VC(t){for(;t.L;)t=t.L;return t}jC.prototype={constructor:jC,insert:function(t,n){var e,r,i;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=VC(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===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(YC(this,e),e=(t=e).U),e.C=!1,r.C=!0,IC(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(IC(this,e),e=(t=e).U),e.C=!1,r.C=!0,YC(this,r)),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,r,i=t.U,o=t.L,u=t.R;if(e=o?u?VC(u):o:u,i?i.L===t?i.L=e:i.R=e:this._=e,o&&u?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,YC(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,IC(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,YC(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,IC(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,YC(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,IC(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var BC=jC;function XC(t,n,e,r){var i=[null,null],o=gE.push(i)-1;return i.left=t,i.right=n,e&&GC(i,t,n,e),r&&GC(i,n,t,r),dE[t.index].halfedges.push(o),dE[n.index].halfedges.push(o),i}function WC(t,n,e){var r=[n,e];return r.left=t,r}function GC(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function ZC(t,n,e,r,i){var o,u=t[0],a=t[1],c=u[0],s=u[1],l=0,f=1,h=a[0]-c,d=a[1]-s;if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o<l)return;o<f&&(f=o)}else if(h>0){if(o>f)return;o>l&&(l=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>l&&(l=o)}else if(h>0){if(o<l)return;o<f&&(f=o)}if(o=e-s,d||!(o>0)){if(o/=d,d<0){if(o<l)return;o<f&&(f=o)}else if(d>0){if(o>f)return;o>l&&(l=o)}if(o=i-s,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o<l)return;o<f&&(f=o)}return!(l>0||f<1)||(l>0&&(t[0]=[c+l*h,s+l*d]),f<1&&(t[1]=[c+f*h,s+f*d]),!0)}}}}}function JC(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,c=t[0],s=t.left,l=t.right,f=s[0],h=s[1],d=l[0],p=l[1],g=(f+d)/2,v=(h+p)/2;if(p===h){if(g<n||g>=r)return;if(f>d){if(c){if(c[1]>=i)return}else c=[g,e];o=[g,i]}else{if(c){if(c[1]<e)return}else c=[g,i];o=[g,e]}}else if(a=v-(u=(f-d)/(p-h))*g,u<-1||u>1)if(f>d){if(c){if(c[1]>=i)return}else c=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(c){if(c[1]<e)return}else c=[(i-a)/u,i];o=[(e-a)/u,e]}else if(h<p){if(c){if(c[0]>=r)return}else c=[n,u*n+a];o=[r,u*r+a]}else{if(c){if(c[0]<n)return}else c=[r,u*r+a];o=[n,u*n+a]}return t[0]=c,t[1]=o,!0}function QC(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function KC(t,n){return n[+(n.left!==t.site)]}function tE(t,n){return n[+(n.left===t.site)]}var nE,eE=[];function rE(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[0],a=i[1],c=r[0]-u,s=r[1]-a,l=o[0]-u,f=o[1]-a,h=2*(c*f-s*l);if(!(h>=-yE)){var d=c*c+s*s,p=l*l+f*f,g=(f*d-s*p)/h,v=(c*p-l*d)/h,y=eE.pop()||new function(){HC(this),this.x=this.y=this.arc=this.site=this.cy=null};y.arc=t,y.site=i,y.x=g+u,y.y=(y.cy=v+a)+Math.sqrt(g*g+v*v),t.circle=y;for(var _=null,m=pE._;m;)if(y.y<m.y||y.y===m.y&&y.x<=m.x){if(!m.L){_=m.P;break}m=m.L}else{if(!m.R){_=m;break}m=m.R}pE.insert(_,y),_||(nE=y)}}}}function iE(t){var n=t.circle;n&&(n.P||(nE=n.N),pE.remove(n),eE.push(n),HC(n),t.circle=null)}var oE=[];function uE(t){var n=oE.pop()||new function(){HC(this),this.edge=this.site=this.circle=null};return n.site=t,n}function aE(t){iE(t),hE.remove(t),oE.push(t),HC(t)}function cE(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,u=t.N,a=[t];aE(t);for(var c=o;c.circle&&Math.abs(e-c.circle.x)<vE&&Math.abs(r-c.circle.cy)<vE;)o=c.P,a.unshift(c),aE(c),c=o;a.unshift(c),iE(c);for(var s=u;s.circle&&Math.abs(e-s.circle.x)<vE&&Math.abs(r-s.circle.cy)<vE;)u=s.N,a.push(s),aE(s),s=u;a.push(s),iE(s);var l,f=a.length;for(l=1;l<f;++l)s=a[l],c=a[l-1],GC(s.edge,c.site,s.site,i);c=a[0],(s=a[f-1]).edge=XC(c.site,s.site,null,i),rE(c),rE(s)}function sE(t){for(var n,e,r,i,o=t[0],u=t[1],a=hE._;a;)if((r=lE(a,u)-o)>vE)a=a.L;else{if(!((i=o-fE(a,u))>vE)){r>-vE?(n=a.P,e=a):i>-vE?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){dE[t.index]={site:t,halfedges:[]}}(t);var c=uE(t);if(hE.insert(n,c),n||e){if(n===e)return iE(n),e=uE(n.site),hE.insert(c,e),c.edge=e.edge=XC(n.site,c.site),rE(n),void rE(e);if(e){iE(n),iE(e);var s=n.site,l=s[0],f=s[1],h=t[0]-l,d=t[1]-f,p=e.site,g=p[0]-l,v=p[1]-f,y=2*(h*v-d*g),_=h*h+d*d,m=g*g+v*v,w=[(v*_-d*m)/y+l,(h*m-g*_)/y+f];GC(e.edge,s,p,w),c.edge=XC(s,t,null,w),e.edge=XC(t,p,null,w),rE(n),rE(e)}else c.edge=XC(n.site,c.site)}}function lE(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var u=t.P;if(!u)return-1/0;var a=(e=u.site)[0],c=e[1],s=c-n;if(!s)return a;var l=a-r,f=1/o-1/s,h=l/s;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*s)-c+s/2+i-o/2)))/f+r:(r+a)/2}function fE(t,n){var e=t.N;if(e)return lE(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var hE,dE,pE,gE,vE=1e-6,yE=1e-12;function _E(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function mE(t,n){return n[1]-t[1]||n[0]-t[0]}function wE(t,n){var e,r,i,o=t.sort(mE).pop();for(gE=[],dE=new Array(t.length),hE=new BC,pE=new BC;;)if(i=nE,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(sE(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;cE(i.arc)}if(function(){for(var t,n,e,r,i=0,o=dE.length;i<o;++i)if((t=dE[i])&&(r=(n=t.halfedges).length)){var u=new Array(r),a=new Array(r);for(e=0;e<r;++e)u[e]=e,a[e]=QC(t,gE[n[e]]);for(u.sort((function(t,n){return a[n]-a[t]})),e=0;e<r;++e)a[e]=n[u[e]];for(e=0;e<r;++e)n[e]=a[e]}}(),n){var u=+n[0][0],a=+n[0][1],c=+n[1][0],s=+n[1][1];!function(t,n,e,r){for(var i,o=gE.length;o--;)JC(i=gE[o],t,n,e,r)&&ZC(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>vE||Math.abs(i[0][1]-i[1][1])>vE)||delete gE[o]}(u,a,c,s),function(t,n,e,r){var i,o,u,a,c,s,l,f,h,d,p,g,v=dE.length,y=!0;for(i=0;i<v;++i)if(o=dE[i]){for(u=o.site,a=(c=o.halfedges).length;a--;)gE[c[a]]||c.splice(a,1);for(a=0,s=c.length;a<s;)p=(d=tE(o,gE[c[a]]))[0],g=d[1],f=(l=KC(o,gE[c[++a%s]]))[0],h=l[1],(Math.abs(p-f)>vE||Math.abs(g-h)>vE)&&(c.splice(a,0,gE.push(WC(u,d,Math.abs(p-t)<vE&&r-g>vE?[t,Math.abs(f-t)<vE?h:r]:Math.abs(g-r)<vE&&e-p>vE?[Math.abs(h-r)<vE?f:e,r]:Math.abs(p-e)<vE&&g-n>vE?[e,Math.abs(f-e)<vE?h:n]:Math.abs(g-n)<vE&&p-t>vE?[Math.abs(h-n)<vE?f:t,n]:null))-1),++s);s&&(y=!1)}if(y){var _,m,w,x=1/0;for(i=0,y=null;i<v;++i)(o=dE[i])&&(w=(_=(u=o.site)[0]-t)*_+(m=u[1]-n)*m)<x&&(x=w,y=o);if(y){var b=[t,n],M=[t,r],A=[e,r],k=[e,n];y.halfedges.push(gE.push(WC(u=y.site,b,M))-1,gE.push(WC(u,M,A))-1,gE.push(WC(u,A,k))-1,gE.push(WC(u,k,b))-1)}}for(i=0;i<v;++i)(o=dE[i])&&(o.halfedges.length||delete dE[i])}(u,a,c,s)}this.edges=gE,this.cells=dE,hE=pE=gE=dE=null}wE.prototype={constructor:wE,polygons:function(){var t=this.edges;return this.cells.map((function(n){var e=n.halfedges.map((function(e){return KC(n,t[e])}));return e.data=n.site.data,e}))},triangles:function(){var t=[],n=this.edges;return this.cells.forEach((function(e,r){if(o=(i=e.halfedges).length)for(var i,o,u,a=e.site,c=-1,s=n[i[o-1]],l=s.left===a?s.right:s.left;++c<o;)u=l,l=(s=n[i[c]]).left===a?s.right:s.left,u&&l&&r<u.index&&r<l.index&&_E(a,u,l)<0&&t.push([a.data,u.data,l.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,n,e){for(var r,i,o=this,u=o._found||0,a=o.cells.length;!(i=o.cells[u]);)if(++u>=a)return null;var c=t-i.site[0],s=n-i.site[1],l=c*c+s*s;do{i=o.cells[r=u],u=null,i.halfedges.forEach((function(e){var r=o.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var c=t-a[0],s=n-a[1],f=c*c+s*s;f<l&&(l=f,u=a.index)}}))}while(null!==u);return o._found=r,null==e||l<=e*e?i.site:null}};var xE=function(){var t=FC,n=$C,e=null;function r(r){return new wE(r.map((function(e,i){var o=[Math.round(t(e,i,r)/vE)*vE,Math.round(n(e,i,r)/vE)*vE];return o.index=i,o.data=e,o})),e)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(n){return arguments.length?(t="function"==typeof n?n:zC(+n),r):t},r.y=function(t){return arguments.length?(n="function"==typeof t?t:zC(+t),r):n},r.extent=function(t){return arguments.length?(e=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},r.size=function(t){return arguments.length?(e=null==t?null:[[0,0],[+t[0],+t[1]]],r):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},r},bE=Math.SQRT2;function ME(t){return((t=Math.exp(t))+1/t)/2}var AE=function(t,n){var e,r,i=t[0],o=t[1],u=t[2],a=n[0],c=n[1],s=n[2],l=a-i,f=c-o,h=l*l+f*f;if(h<1e-12)r=Math.log(s/u)/bE,e=function(t){return[i+t*l,o+t*f,u*Math.exp(bE*t*r)]};else{var d=Math.sqrt(h),p=(s*s-u*u+4*h)/(2*u*2*d),g=(s*s-u*u-4*h)/(2*s*2*d),v=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-v)/bE,e=function(t){var n=t*r,e=ME(v),a=u/(2*d)*(e*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(bE*n+v)-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+a*l,o+a*f,u*e/ME(bE*n+v)]}}return e.duration=1e3*r,e},kE=function(t,n,e){arguments.length<3&&(e=n,n=Vn().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return Bn(t,r);return null},NE=function(t){return function(){return t}};function TE(t,n,e){this.k=t,this.x=n,this.y=e}TE.prototype={constructor:TE,scale:function(t){return 1===t?this:new TE(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new TE(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var CE=new TE(1,0,0);function EE(t){return t.__zoom||CE}function SE(){Ft.stopImmediatePropagation()}EE.prototype=TE.prototype;var OE=function(){Ft.preventDefault(),Ft.stopImmediatePropagation()};function PE(){return!Ft.button}function DE(){var t,n,e=this;return e instanceof SVGElement?(t=(e=e.ownerSVGElement||e).width.baseVal.value,n=e.height.baseVal.value):(t=e.clientWidth,n=e.clientHeight),[[0,0],[t,n]]}function UE(){return this.__zoom||CE}function LE(){return-Ft.deltaY*(Ft.deltaMode?120:1)/500}function RE(){return"ontouchstart"in this}function qE(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}var zE=function(){var t,n,e=PE,r=DE,i=qE,o=LE,u=RE,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],s=250,l=AE,f=[],h=ct("start","zoom","end"),d=500,p=0;function g(t){t.property("__zoom",UE).on("wheel.zoom",b).on("mousedown.zoom",M).on("dblclick.zoom",A).filter(u).on("touchstart.zoom",k).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,n){return(n=Math.max(a[0],Math.min(a[1],n)))===t.k?t:new TE(n,t.x,t.y)}function y(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new TE(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function m(t,n,e){t.on("start.zoom",(function(){w(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).end()})).tween("zoom",(function(){var t=arguments,i=w(this,t),o=r.apply(this,t),u=e||_(o),a=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=this.__zoom,s="function"==typeof n?n.apply(this,t):n,f=l(c.invert(u).concat(a/c.k),s.invert(u).concat(a/s.k));return function(t){if(1===t)t=s;else{var n=f(t),e=a/n[2];t=new TE(e,u[0]-n[0]*e,u[1]-n[1]*e)}i.zoom(null,t)}}))}function w(t,n){for(var e,r=0,i=f.length;r<i;++r)if((e=f[r]).that===t)return e;return new x(t,n)}function x(t,n){this.that=t,this.args=n,this.index=-1,this.active=0,this.extent=r.apply(t,n)}function b(){if(e.apply(this,arguments)){var t=w(this,arguments),n=this.__zoom,r=Math.max(a[0],Math.min(a[1],n.k*Math.pow(2,o.apply(this,arguments)))),u=Xn(this);if(t.wheel)t.mouse[0][0]===u[0]&&t.mouse[0][1]===u[1]||(t.mouse[1]=n.invert(t.mouse[0]=u)),clearTimeout(t.wheel);else{if(n.k===r)return;t.mouse=[u,n.invert(u)],we(this),t.start()}OE(),t.wheel=setTimeout((function(){t.wheel=null,t.end()}),150),t.zoom("mouse",i(y(v(n,r),t.mouse[0],t.mouse[1]),t.extent,c))}}function M(){if(!n&&e.apply(this,arguments)){var t=w(this,arguments),r=Zt(Ft.view).on("mousemove.zoom",(function(){if(OE(),!t.moved){var n=Ft.clientX-u,e=Ft.clientY-a;t.moved=n*n+e*e>p}t.zoom("mouse",i(y(t.that.__zoom,t.mouse[0]=Xn(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),Kt(Ft.view,t.moved),OE(),t.end()}),!0),o=Xn(this),u=Ft.clientX,a=Ft.clientY;Qt(Ft.view),SE(),t.mouse=[o,this.__zoom.invert(o)],we(this),t.start()}}function A(){if(e.apply(this,arguments)){var t=this.__zoom,n=Xn(this),o=t.invert(n),u=t.k*(Ft.shiftKey?.5:2),a=i(y(v(t,u),n,o),r.apply(this,arguments),c);OE(),s>0?Zt(this).transition().duration(s).call(m,a,n):Zt(this).call(g.transform,a)}}function k(){if(e.apply(this,arguments)){var n,r,i,o,u=w(this,arguments),a=Ft.changedTouches,c=a.length;for(SE(),r=0;r<c;++r)i=a[r],o=[o=kE(this,a,i.identifier),this.__zoom.invert(o),i.identifier],u.touch0?u.touch1||(u.touch1=o):(u.touch0=o,n=!0);if(t&&(t=clearTimeout(t),!u.touch1))return u.end(),void((o=Zt(this).on("dblclick.zoom"))&&o.apply(this,arguments));n&&(t=setTimeout((function(){t=null}),d),we(this),u.start())}}function N(){var n,e,r,o,u=w(this,arguments),a=Ft.changedTouches,s=a.length;for(OE(),t&&(t=clearTimeout(t)),n=0;n<s;++n)e=a[n],r=kE(this,a,e.identifier),u.touch0&&u.touch0[2]===e.identifier?u.touch0[0]=r:u.touch1&&u.touch1[2]===e.identifier&&(u.touch1[0]=r);if(e=u.that.__zoom,u.touch1){var l=u.touch0[0],f=u.touch0[1],h=u.touch1[0],d=u.touch1[1],p=(p=h[0]-l[0])*p+(p=h[1]-l[1])*p,g=(g=d[0]-f[0])*g+(g=d[1]-f[1])*g;e=v(e,Math.sqrt(p/g)),r=[(l[0]+h[0])/2,(l[1]+h[1])/2],o=[(f[0]+d[0])/2,(f[1]+d[1])/2]}else{if(!u.touch0)return;r=u.touch0[0],o=u.touch0[1]}u.zoom("touch",i(y(e,r,o),u.extent,c))}function T(){var t,e,r=w(this,arguments),i=Ft.changedTouches,o=i.length;for(SE(),n&&clearTimeout(n),n=setTimeout((function(){n=null}),d),t=0;t<o;++t)e=i[t],r.touch0&&r.touch0[2]===e.identifier?delete r.touch0:r.touch1&&r.touch1[2]===e.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0?r.touch0[1]=this.__zoom.invert(r.touch0[0]):r.end()}return g.transform=function(t,n){var e=t.selection?t.selection():t;e.property("__zoom",UE),t!==e?m(t,n):e.interrupt().each((function(){w(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()}))},g.scaleBy=function(t,n){g.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof n?n.apply(this,arguments):n)}))},g.scaleTo=function(t,n){g.transform(t,(function(){var t=r.apply(this,arguments),e=this.__zoom,o=_(t),u=e.invert(o),a="function"==typeof n?n.apply(this,arguments):n;return i(y(v(e,a),o,u),t,c)}))},g.translateBy=function(t,n,e){g.transform(t,(function(){return i(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),r.apply(this,arguments),c)}))},g.translateTo=function(t,n,e){g.transform(t,(function(){var t=r.apply(this,arguments),o=this.__zoom,u=_(t);return i(CE.translate(u[0],u[1]).scale(o.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,c)}))},x.prototype={start:function(){return 1==++this.active&&(this.index=f.push(this)-1,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(f.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){It(new function(t,n,e){this.target=t,this.type=n,this.transform=e}(g,t,this.that.__zoom),h.apply,h,[t,this.that,this.args])}},g.wheelDelta=function(t){return arguments.length?(o="function"==typeof t?t:NE(+t),g):o},g.filter=function(t){return arguments.length?(e="function"==typeof t?t:NE(!!t),g):e},g.touchable=function(t){return arguments.length?(u="function"==typeof t?t:NE(!!t),g):u},g.extent=function(t){return arguments.length?(r="function"==typeof t?t:NE([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),g):r},g.scaleExtent=function(t){return arguments.length?(a[0]=+t[0],a[1]=+t[1],g):[a[0],a[1]]},g.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],g):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},g.constrain=function(t){return arguments.length?(i=t,g):i},g.duration=function(t){return arguments.length?(s=+t,g):s},g.interpolate=function(t){return arguments.length?(l=t,g):l},g.on=function(){var t=h.on.apply(h,arguments);return t===h?g:t},g.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,g):Math.sqrt(p)},g};e.d(n,"version",(function(){return"4.13.0"})),e.d(n,"bisect",(function(){return c})),e.d(n,"bisectRight",(function(){return u})),e.d(n,"bisectLeft",(function(){return a})),e.d(n,"ascending",(function(){return r})),e.d(n,"bisector",(function(){return i})),e.d(n,"cross",(function(){return f})),e.d(n,"descending",(function(){return h})),e.d(n,"deviation",(function(){return g})),e.d(n,"extent",(function(){return v})),e.d(n,"histogram",(function(){return S})),e.d(n,"thresholdFreedmanDiaconis",(function(){return P})),e.d(n,"thresholdScott",(function(){return D})),e.d(n,"thresholdSturges",(function(){return E})),e.d(n,"max",(function(){return U})),e.d(n,"mean",(function(){return L})),e.d(n,"median",(function(){return R})),e.d(n,"merge",(function(){return q})),e.d(n,"min",(function(){return z})),e.d(n,"pairs",(function(){return s})),e.d(n,"permute",(function(){return F})),e.d(n,"quantile",(function(){return O})),e.d(n,"range",(function(){return b})),e.d(n,"scan",(function(){return $})),e.d(n,"shuffle",(function(){return j})),e.d(n,"sum",(function(){return H})),e.d(n,"ticks",(function(){return N})),e.d(n,"tickIncrement",(function(){return T})),e.d(n,"tickStep",(function(){return C})),e.d(n,"transpose",(function(){return Y})),e.d(n,"variance",(function(){return p})),e.d(n,"zip",(function(){return V})),e.d(n,"axisTop",(function(){return K})),e.d(n,"axisRight",(function(){return tt})),e.d(n,"axisBottom",(function(){return nt})),e.d(n,"axisLeft",(function(){return et})),e.d(n,"brush",(function(){return ar})),e.d(n,"brushX",(function(){return or})),e.d(n,"brushY",(function(){return ur})),e.d(n,"brushSelection",(function(){return ir})),e.d(n,"chord",(function(){return vr})),e.d(n,"ribbon",(function(){return kr})),e.d(n,"nest",(function(){return Er})),e.d(n,"set",(function(){return qr})),e.d(n,"map",(function(){return Cr})),e.d(n,"keys",(function(){return zr})),e.d(n,"values",(function(){return Fr})),e.d(n,"entries",(function(){return $r})),e.d(n,"color",(function(){return ei})),e.d(n,"rgb",(function(){return ui})),e.d(n,"hsl",(function(){return si})),e.d(n,"lab",(function(){return yi})),e.d(n,"hcl",(function(){return Mi})),e.d(n,"cubehelix",(function(){return Oi})),e.d(n,"dispatch",(function(){return zi})),e.d(n,"drag",(function(){return Yo})),e.d(n,"dragDisable",(function(){return Lo})),e.d(n,"dragEnable",(function(){return Ro})),e.d(n,"dsvFormat",(function(){return Xo})),e.d(n,"csvParse",(function(){return Go})),e.d(n,"csvParseRows",(function(){return Zo})),e.d(n,"csvFormat",(function(){return Jo})),e.d(n,"csvFormatRows",(function(){return Qo})),e.d(n,"tsvParse",(function(){return tu})),e.d(n,"tsvParseRows",(function(){return nu})),e.d(n,"tsvFormat",(function(){return eu})),e.d(n,"tsvFormatRows",(function(){return ru})),e.d(n,"easeLinear",(function(){return iu})),e.d(n,"easeQuad",(function(){return au})),e.d(n,"easeQuadIn",(function(){return ou})),e.d(n,"easeQuadOut",(function(){return uu})),e.d(n,"easeQuadInOut",(function(){return au})),e.d(n,"easeCubic",(function(){return lu})),e.d(n,"easeCubicIn",(function(){return cu})),e.d(n,"easeCubicOut",(function(){return su})),e.d(n,"easeCubicInOut",(function(){return lu})),e.d(n,"easePoly",(function(){return du})),e.d(n,"easePolyIn",(function(){return fu})),e.d(n,"easePolyOut",(function(){return hu})),e.d(n,"easePolyInOut",(function(){return du})),e.d(n,"easeSin",(function(){return _u})),e.d(n,"easeSinIn",(function(){return vu})),e.d(n,"easeSinOut",(function(){return yu})),e.d(n,"easeSinInOut",(function(){return _u})),e.d(n,"easeExp",(function(){return xu})),e.d(n,"easeExpIn",(function(){return mu})),e.d(n,"easeExpOut",(function(){return wu})),e.d(n,"easeExpInOut",(function(){return xu})),e.d(n,"easeCircle",(function(){return Au})),e.d(n,"easeCircleIn",(function(){return bu})),e.d(n,"easeCircleOut",(function(){return Mu})),e.d(n,"easeCircleInOut",(function(){return Au})),e.d(n,"easeBounce",(function(){return Tu})),e.d(n,"easeBounceIn",(function(){return Nu})),e.d(n,"easeBounceOut",(function(){return Tu})),e.d(n,"easeBounceInOut",(function(){return Cu})),e.d(n,"easeBack",(function(){return Ou})),e.d(n,"easeBackIn",(function(){return Eu})),e.d(n,"easeBackOut",(function(){return Su})),e.d(n,"easeBackInOut",(function(){return Ou})),e.d(n,"easeElastic",(function(){return Uu})),e.d(n,"easeElasticIn",(function(){return Du})),e.d(n,"easeElasticOut",(function(){return Uu})),e.d(n,"easeElasticInOut",(function(){return Lu})),e.d(n,"forceCenter",(function(){return Ru})),e.d(n,"forceCollide",(function(){return Gu})),e.d(n,"forceLink",(function(){return Ku})),e.d(n,"forceManyBody",(function(){return oa})),e.d(n,"forceRadial",(function(){return ua})),e.d(n,"forceSimulation",(function(){return ia})),e.d(n,"forceX",(function(){return aa})),e.d(n,"forceY",(function(){return ca})),e.d(n,"formatDefaultLocale",(function(){return ba})),e.d(n,"format",(function(){return ya})),e.d(n,"formatPrefix",(function(){return _a})),e.d(n,"formatLocale",(function(){return xa})),e.d(n,"formatSpecifier",(function(){return pa})),e.d(n,"precisionFixed",(function(){return Ma})),e.d(n,"precisionPrefix",(function(){return Aa})),e.d(n,"precisionRound",(function(){return ka})),e.d(n,"geoArea",(function(){return yc})),e.d(n,"geoBounds",(function(){return ss})),e.d(n,"geoCentroid",(function(){return xs})),e.d(n,"geoCircle",(function(){return Ps})),e.d(n,"geoClipAntimeridian",(function(){return Ys})),e.d(n,"geoClipCircle",(function(){return Is})),e.d(n,"geoClipExtent",(function(){return Js})),e.d(n,"geoClipRectangle",(function(){return Xs})),e.d(n,"geoContains",(function(){return gl})),e.d(n,"geoDistance",(function(){return ul})),e.d(n,"geoGraticule",(function(){return _l})),e.d(n,"geoGraticule10",(function(){return ml})),e.d(n,"geoInterpolate",(function(){return Al})),e.d(n,"geoLength",(function(){return rl})),e.d(n,"geoPath",(function(){return Mf})),e.d(n,"geoAlbers",(function(){return $f})),e.d(n,"geoAlbersUsa",(function(){return jf})),e.d(n,"geoAzimuthalEqualArea",(function(){return Vf})),e.d(n,"geoAzimuthalEqualAreaRaw",(function(){return If})),e.d(n,"geoAzimuthalEquidistant",(function(){return Xf})),e.d(n,"geoAzimuthalEquidistantRaw",(function(){return Bf})),e.d(n,"geoConicConformal",(function(){return Kf})),e.d(n,"geoConicConformalRaw",(function(){return Qf})),e.d(n,"geoConicEqualArea",(function(){return Ff})),e.d(n,"geoConicEqualAreaRaw",(function(){return zf})),e.d(n,"geoConicEquidistant",(function(){return rh})),e.d(n,"geoConicEquidistantRaw",(function(){return eh})),e.d(n,"geoEquirectangular",(function(){return nh})),e.d(n,"geoEquirectangularRaw",(function(){return th})),e.d(n,"geoGnomonic",(function(){return oh})),e.d(n,"geoGnomonicRaw",(function(){return ih})),e.d(n,"geoIdentity",(function(){return ah})),e.d(n,"geoProjection",(function(){return Lf})),e.d(n,"geoProjectionMutator",(function(){return Rf})),e.d(n,"geoMercator",(function(){return Gf})),e.d(n,"geoMercatorRaw",(function(){return Wf})),e.d(n,"geoNaturalEarth1",(function(){return sh})),e.d(n,"geoNaturalEarth1Raw",(function(){return ch})),e.d(n,"geoOrthographic",(function(){return fh})),e.d(n,"geoOrthographicRaw",(function(){return lh})),e.d(n,"geoStereographic",(function(){return dh})),e.d(n,"geoStereographicRaw",(function(){return hh})),e.d(n,"geoTransverseMercator",(function(){return gh})),e.d(n,"geoTransverseMercatorRaw",(function(){return ph})),e.d(n,"geoRotation",(function(){return Es})),e.d(n,"geoStream",(function(){return sc})),e.d(n,"geoTransform",(function(){return Af})),e.d(n,"cluster",(function(){return mh})),e.d(n,"hierarchy",(function(){return xh})),e.d(n,"pack",(function(){return Vh})),e.d(n,"packSiblings",(function(){return $h})),e.d(n,"packEnclose",(function(){return Th})),e.d(n,"partition",(function(){return Jh})),e.d(n,"stratify",(function(){return ed})),e.d(n,"tree",(function(){return sd})),e.d(n,"treemap",(function(){return pd})),e.d(n,"treemapBinary",(function(){return gd})),e.d(n,"treemapDice",(function(){return Zh})),e.d(n,"treemapSlice",(function(){return ld})),e.d(n,"treemapSliceDice",(function(){return vd})),e.d(n,"treemapSquarify",(function(){return dd})),e.d(n,"treemapResquarify",(function(){return yd})),e.d(n,"interpolate",(function(){return vp})),e.d(n,"interpolateArray",(function(){return sp})),e.d(n,"interpolateBasis",(function(){return Gd})),e.d(n,"interpolateBasisClosed",(function(){return Zd})),e.d(n,"interpolateDate",(function(){return lp})),e.d(n,"interpolateNumber",(function(){return fp})),e.d(n,"interpolateObject",(function(){return hp})),e.d(n,"interpolateRound",(function(){return yp})),e.d(n,"interpolateString",(function(){return gp})),e.d(n,"interpolateTransformCss",(function(){return bp})),e.d(n,"interpolateTransformSvg",(function(){return Mp})),e.d(n,"interpolateZoom",(function(){return Np})),e.d(n,"interpolateRgb",(function(){return np})),e.d(n,"interpolateRgbBasis",(function(){return ap})),e.d(n,"interpolateRgbBasisClosed",(function(){return cp})),e.d(n,"interpolateHsl",(function(){return Cp})),e.d(n,"interpolateHslLong",(function(){return Ep})),e.d(n,"interpolateLab",(function(){return Vp})),e.d(n,"interpolateHcl",(function(){return Xp})),e.d(n,"interpolateHclLong",(function(){return Wp})),e.d(n,"interpolateCubehelix",(function(){return ig})),e.d(n,"interpolateCubehelixLong",(function(){return og})),e.d(n,"quantize",(function(){return ug})),e.d(n,"path",(function(){return hg})),e.d(n,"polygonArea",(function(){return dg})),e.d(n,"polygonCentroid",(function(){return pg})),e.d(n,"polygonHull",(function(){return _g})),e.d(n,"polygonContains",(function(){return mg})),e.d(n,"polygonLength",(function(){return wg})),e.d(n,"quadtree",(function(){return kg})),e.d(n,"queue",(function(){return Rg})),e.d(n,"randomUniform",(function(){return zg})),e.d(n,"randomNormal",(function(){return Fg})),e.d(n,"randomLogNormal",(function(){return $g})),e.d(n,"randomBates",(function(){return Hg})),e.d(n,"randomIrwinHall",(function(){return jg})),e.d(n,"randomExponential",(function(){return Yg})),e.d(n,"request",(function(){return Ig})),e.d(n,"html",(function(){return Bg})),e.d(n,"json",(function(){return Xg})),e.d(n,"text",(function(){return Wg})),e.d(n,"xml",(function(){return Gg})),e.d(n,"csv",(function(){return ov})),e.d(n,"tsv",(function(){return cv})),e.d(n,"scaleBand",(function(){return pv})),e.d(n,"scalePoint",(function(){return gv})),e.d(n,"scaleIdentity",(function(){return jv})),e.d(n,"scaleLinear",(function(){return $v})),e.d(n,"scaleLog",(function(){return Gv})),e.d(n,"scaleOrdinal",(function(){return dv})),e.d(n,"scaleImplicit",(function(){return hv})),e.d(n,"scalePow",(function(){return Jv})),e.d(n,"scaleSqrt",(function(){return Qv})),e.d(n,"scaleQuantile",(function(){return Kv})),e.d(n,"scaleQuantize",(function(){return ty})),e.d(n,"scaleThreshold",(function(){return ny})),e.d(n,"scaleTime",(function(){return mm})),e.d(n,"scaleUtc",(function(){return Nm})),e.d(n,"schemeCategory10",(function(){return Cm})),e.d(n,"schemeCategory20b",(function(){return Em})),e.d(n,"schemeCategory20c",(function(){return Sm})),e.d(n,"schemeCategory20",(function(){return Om})),e.d(n,"interpolateCubehelixDefault",(function(){return Im})),e.d(n,"interpolateRainbow",(function(){return Wm})),e.d(n,"interpolateWarm",(function(){return Vm})),e.d(n,"interpolateCool",(function(){return Bm})),e.d(n,"interpolateViridis",(function(){return Zm})),e.d(n,"interpolateMagma",(function(){return Jm})),e.d(n,"interpolateInferno",(function(){return Qm})),e.d(n,"interpolatePlasma",(function(){return Km})),e.d(n,"scaleSequential",(function(){return tw})),e.d(n,"create",(function(){return Bw})),e.d(n,"creator",(function(){return iw})),e.d(n,"local",(function(){return Ww})),e.d(n,"matcher",(function(){return hw})),e.d(n,"mouse",(function(){return Qw})),e.d(n,"namespace",(function(){return rw})),e.d(n,"namespaces",(function(){return ew})),e.d(n,"clientPoint",(function(){return Jw})),e.d(n,"select",(function(){return Vw})),e.d(n,"selectAll",(function(){return Kw})),e.d(n,"selection",(function(){return Iw})),e.d(n,"selector",(function(){return uw})),e.d(n,"selectorAll",(function(){return cw})),e.d(n,"style",(function(){return mw})),e.d(n,"touch",(function(){return tx})),e.d(n,"touches",(function(){return nx})),e.d(n,"window",(function(){return _w})),e.d(n,"event",(function(){return Uw})),e.d(n,"customEvent",(function(){return Fw})),e.d(n,"arc",(function(){return xx})),e.d(n,"area",(function(){return Tx})),e.d(n,"line",(function(){return Nx})),e.d(n,"pie",(function(){return Sx})),e.d(n,"areaRadial",(function(){return Rx})),e.d(n,"radialArea",(function(){return Rx})),e.d(n,"lineRadial",(function(){return Lx})),e.d(n,"radialLine",(function(){return Lx})),e.d(n,"pointRadial",(function(){return qx})),e.d(n,"linkHorizontal",(function(){return Vx})),e.d(n,"linkVertical",(function(){return Bx})),e.d(n,"linkRadial",(function(){return Xx})),e.d(n,"symbol",(function(){return fb})),e.d(n,"symbols",(function(){return lb})),e.d(n,"symbolCircle",(function(){return Wx})),e.d(n,"symbolCross",(function(){return Gx})),e.d(n,"symbolDiamond",(function(){return Qx})),e.d(n,"symbolSquare",(function(){return rb})),e.d(n,"symbolStar",(function(){return eb})),e.d(n,"symbolTriangle",(function(){return ob})),e.d(n,"symbolWye",(function(){return sb})),e.d(n,"curveBasisClosed",(function(){return yb})),e.d(n,"curveBasisOpen",(function(){return mb})),e.d(n,"curveBasis",(function(){return gb})),e.d(n,"curveBundle",(function(){return xb})),e.d(n,"curveCardinalClosed",(function(){return Nb})),e.d(n,"curveCardinalOpen",(function(){return Cb})),e.d(n,"curveCardinal",(function(){return Ab})),e.d(n,"curveCatmullRomClosed",(function(){return Db})),e.d(n,"curveCatmullRomOpen",(function(){return Lb})),e.d(n,"curveCatmullRom",(function(){return Ob})),e.d(n,"curveLinearClosed",(function(){return qb})),e.d(n,"curveLinear",(function(){return Mx})),e.d(n,"curveMonotoneX",(function(){return Vb})),e.d(n,"curveMonotoneY",(function(){return Bb})),e.d(n,"curveNatural",(function(){return Gb})),e.d(n,"curveStep",(function(){return Jb})),e.d(n,"curveStepAfter",(function(){return Kb})),e.d(n,"curveStepBefore",(function(){return Qb})),e.d(n,"stack",(function(){return rM})),e.d(n,"stackOffsetExpand",(function(){return iM})),e.d(n,"stackOffsetDiverging",(function(){return oM})),e.d(n,"stackOffsetNone",(function(){return tM})),e.d(n,"stackOffsetSilhouette",(function(){return uM})),e.d(n,"stackOffsetWiggle",(function(){return aM})),e.d(n,"stackOrderAscending",(function(){return cM})),e.d(n,"stackOrderDescending",(function(){return lM})),e.d(n,"stackOrderInsideOut",(function(){return fM})),e.d(n,"stackOrderNone",(function(){return nM})),e.d(n,"stackOrderReverse",(function(){return hM})),e.d(n,"timeInterval",(function(){return gM})),e.d(n,"timeMillisecond",(function(){return yM})),e.d(n,"timeMilliseconds",(function(){return _M})),e.d(n,"utcMillisecond",(function(){return yM})),e.d(n,"utcMilliseconds",(function(){return _M})),e.d(n,"timeSecond",(function(){return bM})),e.d(n,"timeSeconds",(function(){return MM})),e.d(n,"utcSecond",(function(){return bM})),e.d(n,"utcSeconds",(function(){return MM})),e.d(n,"timeMinute",(function(){return kM})),e.d(n,"timeMinutes",(function(){return NM})),e.d(n,"timeHour",(function(){return CM})),e.d(n,"timeHours",(function(){return EM})),e.d(n,"timeDay",(function(){return OM})),e.d(n,"timeDays",(function(){return PM})),e.d(n,"timeWeek",(function(){return UM})),e.d(n,"timeWeeks",(function(){return jM})),e.d(n,"timeSunday",(function(){return UM})),e.d(n,"timeSundays",(function(){return jM})),e.d(n,"timeMonday",(function(){return LM})),e.d(n,"timeMondays",(function(){return HM})),e.d(n,"timeTuesday",(function(){return RM})),e.d(n,"timeTuesdays",(function(){return YM})),e.d(n,"timeWednesday",(function(){return qM})),e.d(n,"timeWednesdays",(function(){return IM})),e.d(n,"timeThursday",(function(){return zM})),e.d(n,"timeThursdays",(function(){return VM})),e.d(n,"timeFriday",(function(){return FM})),e.d(n,"timeFridays",(function(){return BM})),e.d(n,"timeSaturday",(function(){return $M})),e.d(n,"timeSaturdays",(function(){return XM})),e.d(n,"timeMonth",(function(){return GM})),e.d(n,"timeMonths",(function(){return ZM})),e.d(n,"timeYear",(function(){return QM})),e.d(n,"timeYears",(function(){return KM})),e.d(n,"utcMinute",(function(){return nA})),e.d(n,"utcMinutes",(function(){return eA})),e.d(n,"utcHour",(function(){return iA})),e.d(n,"utcHours",(function(){return oA})),e.d(n,"utcDay",(function(){return aA})),e.d(n,"utcDays",(function(){return cA})),e.d(n,"utcWeek",(function(){return lA})),e.d(n,"utcWeeks",(function(){return yA})),e.d(n,"utcSunday",(function(){return lA})),e.d(n,"utcSundays",(function(){return yA})),e.d(n,"utcMonday",(function(){return fA})),e.d(n,"utcMondays",(function(){return _A})),e.d(n,"utcTuesday",(function(){return hA})),e.d(n,"utcTuesdays",(function(){return mA})),e.d(n,"utcWednesday",(function(){return dA})),e.d(n,"utcWednesdays",(function(){return wA})),e.d(n,"utcThursday",(function(){return pA})),e.d(n,"utcThursdays",(function(){return xA})),e.d(n,"utcFriday",(function(){return gA})),e.d(n,"utcFridays",(function(){return bA})),e.d(n,"utcSaturday",(function(){return vA})),e.d(n,"utcSaturdays",(function(){return MA})),e.d(n,"utcMonth",(function(){return kA})),e.d(n,"utcMonths",(function(){return NA})),e.d(n,"utcYear",(function(){return CA})),e.d(n,"utcYears",(function(){return EA})),e.d(n,"timeFormatDefaultLocale",(function(){return Gk})),e.d(n,"timeFormat",(function(){return LA})),e.d(n,"timeParse",(function(){return RA})),e.d(n,"utcFormat",(function(){return qA})),e.d(n,"utcParse",(function(){return zA})),e.d(n,"timeFormatLocale",(function(){return DA})),e.d(n,"isoFormat",(function(){return Qk})),e.d(n,"isoParse",(function(){return Kk})),e.d(n,"now",(function(){return cN})),e.d(n,"timer",(function(){return fN})),e.d(n,"timerFlush",(function(){return hN})),e.d(n,"timeout",(function(){return vN})),e.d(n,"interval",(function(){return yN})),e.d(n,"transition",(function(){return OC})),e.d(n,"active",(function(){return qC})),e.d(n,"interrupt",(function(){return zT})),e.d(n,"voronoi",(function(){return xE})),e.d(n,"zoom",(function(){return zE})),e.d(n,"zoomTransform",(function(){return EE})),e.d(n,"zoomIdentity",(function(){return CE}))},50:function(t,n,e){"use strict";e.r(n);var r=e(4),i=e(11),o=e(31);o.initialize(r);var u=o.defaultConfig,a={id:"liquid_fill_gauge",label:"Liquid Fill Gauge",options:{showComparison:{label:"Use field comparison",default:!1,section:"Value",type:"boolean"},minValue:{label:"Min value",min:0,default:u.minValue,section:"Value",type:"number",placeholder:"Any positive number"},maxValue:{label:"Max value",min:0,default:u.maxValue,section:"Value",type:"number",placeholder:"Any positive number"},circleThickness:{label:"Circle Thickness",min:0,max:1,step:.05,default:u.circleThickness,section:"Style",type:"number",display:"range"},circleFillGap:{label:"Circle Gap",min:0,max:1,step:.05,default:u.circleFillGap,section:"Style",type:"number",display:"range"},circleColor:{label:"Circle Color",default:u.circleColor,section:"Style",type:"string",display:"color"},waveHeight:{label:"Wave Height",min:0,max:1,step:.05,default:u.waveHeight,section:"Waves",type:"number",display:"range"},waveCount:{label:"Wave Count",min:0,max:10,default:u.waveCount,section:"Waves",type:"number",display:"range"},waveRiseTime:{label:"Wave Rise Time",min:0,max:5e3,step:50,default:u.waveRiseTime,section:"Waves",type:"number",display:"range"},waveAnimateTime:{label:"Wave Animation Time",min:1,max:5e3,step:50,default:u.waveAnimateTime,section:"Waves",type:"number",display:"range"},waveRise:{label:"Wave Rise from Bottom",default:u.waveRise,section:"Waves",type:"boolean"},waveHeightScaling:{label:"Scale waves if high or low",default:u.waveHeightScaling,section:"Waves",type:"boolean"},waveAnimate:{label:"Animate Waves",default:!0,section:"Waves",type:"boolean"},waveColor:{label:"Wave Color",default:"#64518A",section:"Style",type:"string",display:"color"},waveOffset:{label:"Wave Offset",min:0,max:1,step:.05,default:0,section:"Waves",type:"number",display:"range"},textVertPosition:{label:"Text Vertical Offset",min:0,max:1,step:.01,default:.5,section:"Value",type:"number",display:"range"},textSize:{label:"Text Size",min:0,max:1,step:.01,default:1,section:"Value",type:"number",display:"range"},valueCountUp:{label:"Animate to Value",default:!0,section:"Waves",type:"boolean"},displayPercent:{label:"Display as Percent",default:!0,section:"Value",type:"boolean"},textColor:{label:"Text Color (non-overlapped)",default:"#000000",section:"Style",type:"string",display:"color"},waveTextColor:{label:"Text Color (overlapped)",default:"#FFFFFF",section:"Style",type:"string",display:"color"}},create:function(t,n){t.style.margin="10px",t.style.fontFamily='"Open Sans", "Helvetica", sans-serif',t.innerHTML="\n      <style>\n        .node, .link {\n          transition: 0.5s opacity;\n        }\n      </style>\n    ";var e="fill-gauge-"+Date.now();this.svg=r.select(t).append("svg"),this.svg.attr("id",e)},update:function(t,n,e,u,a){if(Object(i.b)(this,u,{min_pivots:0,max_pivots:0,min_dimensions:0,max_dimensions:void 0,min_measures:1,max_measures:void 0})){var c=Object.assign(o.defaultConfig,e);if(this.addError&&this.clearErrors){if(c.maxValue<=0)return void this.addError({group:"config",title:"Max value must be greater than zero."});if(0===t.length)return void this.addError({title:"No results."});this.clearErrors("config")}var s=u.fields.measure_like[0],l=c.displayPercent?null:s.value_format,f=t[0][s.name],h=f.value,d=u.fields.measure_like[1];if(d&&c.showComparison){var p=t[0][d.name];c.maxValue=p.value}c.displayPercent&&(h=f.value/c.maxValue*100,c.maxValue=100),this.svg.html(""),this.svg.attr("width",n.clientWidth-20),this.svg.attr("height",n.clientHeight-20),a.print&&Object.assign(c,{valueCountUp:!1,waveAnimateTime:0,waveRiseTime:0,waveAnimate:!1,waveRise:!1}),r.liquidfillgauge(this.svg,h,c,l)}}};looker.plugins.visualizations.add(a)},51:function(t,n,e){var r={};!function(t){function n(t){for(var n="",e=t.length-1;e>=0;)n+=t.charAt(e--);return n}function e(t,n){for(var e="";e.length<n;)e+=t;return e}function r(t,n){var r=""+t;return r.length>=n?r:e("0",n-r.length)+r}function i(t,n){var r=""+t;return r.length>=n?r:e(" ",n-r.length)+r}function o(t,n){var r=""+t;return r.length>=n?r:r+e(" ",n-r.length)}t.version="0.11.2";var u=Math.pow(2,32);function a(t,n){return t>u||t<-u?function(t,n){var r=""+Math.round(t);return r.length>=n?r:e("0",n-r.length)+r}(t,n):function(t,n){var r=""+t;return r.length>=n?r:e("0",n-r.length)+r}(Math.round(t),n)}function c(t,n){return n=n||0,t.length>=7+n&&103==(32|t.charCodeAt(n))&&101==(32|t.charCodeAt(n+1))&&110==(32|t.charCodeAt(n+2))&&101==(32|t.charCodeAt(n+3))&&114==(32|t.charCodeAt(n+4))&&97==(32|t.charCodeAt(n+5))&&108==(32|t.charCodeAt(n+6))}var s=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],l=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function f(t){t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "'}var h={};f(h);var d=[],p=0;for(p=5;p<=8;++p)d[p]=32+p;for(p=23;p<=26;++p)d[p]=0;for(p=27;p<=31;++p)d[p]=14;for(p=50;p<=58;++p)d[p]=14;for(p=59;p<=62;++p)d[p]=p-58;for(p=67;p<=68;++p)d[p]=p-58;for(p=72;p<=75;++p)d[p]=p-58;for(p=67;p<=68;++p)d[p]=p-57;for(p=76;p<=78;++p)d[p]=p-56;for(p=79;p<=81;++p)d[p]=p-34;var g=[];function v(t,n,e){for(var r=t<0?-1:1,i=t*r,o=0,u=1,a=0,c=1,s=0,l=0,f=Math.floor(i);s<n&&(a=(f=Math.floor(i))*u+o,l=f*s+c,!(i-f<5e-8));)i=1/(i-f),o=u,u=a,c=s,s=l;if(l>n&&(s>n?(l=c,a=o):(l=s,a=u)),!e)return[0,r*a,l];var h=Math.floor(r*a/l);return[h,r*a-h*l,l]}function y(t,n,e){if(t>2958465||t<0)return null;var r=0|t,i=Math.floor(86400*(t-r)),o=0,u=[],a={D:r,T:i,u:86400*(t-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(a.u)<1e-6&&(a.u=0),n&&n.date1904&&(r+=1462),a.u>.9999&&(a.u=0,86400==++i&&(a.T=i=0,++r,++a.D)),60===r)u=e?[1317,10,29]:[1900,2,29],o=3;else if(0===r)u=e?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var c=new Date(1900,0,1);c.setDate(c.getDate()+r-1),u=[c.getFullYear(),c.getMonth()+1,c.getDate()],o=c.getDay(),r<60&&(o=(o+6)%7),e&&(o=function(t,n){n[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}(c,u))}return a.y=u[0],a.m=u[1],a.d=u[2],a.S=i%60,i=Math.floor(i/60),a.M=i%60,i=Math.floor(i/60),a.H=i,a.q=o,a}g[5]=g[63]='"$"#,##0_);\\("$"#,##0\\)',g[6]=g[64]='"$"#,##0_);[Red]\\("$"#,##0\\)',g[7]=g[65]='"$"#,##0.00_);\\("$"#,##0.00\\)',g[8]=g[66]='"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',g[41]='_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',g[42]='_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',g[43]='_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',g[44]='_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)',t.parse_date_code=y;var _=new Date(1899,11,31,0,0,0),m=_.getTime(),w=new Date(1900,2,1,0,0,0);function x(t,n){var e=t.getTime();return n?e-=1262304e5:t>=w&&(e+=864e5),(e-(m+6e4*(t.getTimezoneOffset()-_.getTimezoneOffset())))/864e5}t._general_int=function(t){return t.toString(10)};var b=function(){var t=/(?:\.0*|(\.\d*[1-9])0+)$/;function n(n){return-1==n.indexOf(".")?n:n.replace(t,"$1")}var e=/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,r=/(E[+-])(\d)$/;return function(t){var i=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return n(function(t){return-1==t.indexOf("E")?t:t.replace(e,"$1E").replace(r,"$10$2")}((i>=-4&&i<=-1?t.toPrecision(10+i):Math.abs(i)<=9?function(t){var e=t<0?12:11,r=n(t.toFixed(12));return r.length<=e||(r=t.toPrecision(10)).length<=e?r:t.toExponential(5)}(t):10===i?t.toFixed(10).substr(0,12):function(t){var e=n(t.toFixed(11));return e.length>(t<0?12:11)||"0"===e||"-0"===e?t.toPrecision(6):e}(t)).toUpperCase()))}}();function M(t,n){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):b(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return U(14,x(t,n&&n.date1904),n)}throw new Error("unsupported value in General format: "+t)}function A(t,n,e,i){var o,u="",a=0,c=0,f=e.y,h=0;switch(t){case 98:f=e.y+543;case 121:switch(n.length){case 1:case 2:o=f%100,h=2;break;default:o=f%1e4,h=4}break;case 109:switch(n.length){case 1:case 2:o=e.m,h=n.length;break;case 3:return l[e.m-1][1];case 5:return l[e.m-1][0];default:return l[e.m-1][2]}break;case 100:switch(n.length){case 1:case 2:o=e.d,h=n.length;break;case 3:return s[e.q][0];default:return s[e.q][1]}break;case 104:switch(n.length){case 1:case 2:o=1+(e.H+11)%12,h=n.length;break;default:throw"bad hour format: "+n}break;case 72:switch(n.length){case 1:case 2:o=e.H,h=n.length;break;default:throw"bad hour format: "+n}break;case 77:switch(n.length){case 1:case 2:o=e.M,h=n.length;break;default:throw"bad minute format: "+n}break;case 115:if("s"!=n&&"ss"!=n&&".0"!=n&&".00"!=n&&".000"!=n)throw"bad second format: "+n;return 0!==e.u||"s"!=n&&"ss"!=n?(c=i>=2?3===i?1e3:100:1===i?10:1,(a=Math.round(c*(e.S+e.u)))>=60*c&&(a=0),"s"===n?0===a?"0":""+a/c:(u=r(a,2+i),"ss"===n?u.substr(0,2):"."+u.substr(2,n.length-1))):r(e.S,n.length);case 90:switch(n){case"[h]":case"[hh]":o=24*e.D+e.H;break;case"[m]":case"[mm]":o=60*(24*e.D+e.H)+e.M;break;case"[s]":case"[ss]":o=60*(60*(24*e.D+e.H)+e.M)+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+n}h=3===n.length?1:2;break;case 101:o=f,h=1}return h>0?r(o,h):""}function k(t){if(t.length<=3)return t;for(var n=t.length%3,e=t.substr(0,n);n!=t.length;n+=3)e+=(e.length>0?",":"")+t.substr(n,3);return e}t._general_num=b,t._general=M,"๐๑๒๓๔๕๖๗๘๙".split("");var N=function(){var t=/%/g,u=/# (\?+)( ?)\/( ?)(\d+)/,c=/^#*0*\.([0#]+)/,s=/\).*[0#]/,l=/\(###\) ###\\?-####/;function f(t){for(var n,e="",r=0;r!=t.length;++r)switch(n=t.charCodeAt(r)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(n)}return e}function h(t,n){var e=Math.pow(10,n);return""+Math.round(t*e)/e}function d(t,n){var e=t-Math.floor(t),r=Math.pow(10,n);return n<(""+Math.round(e*r)).length?0:Math.round(e*r)}function p(g,y,_){if(40===g.charCodeAt(0)&&!y.match(s)){var m=y.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return _>=0?p("n",m,_):"("+p("n",m,-_)+")"}if(44===y.charCodeAt(y.length-1))return function(t,n,e){for(var r=n.length-1;44===n.charCodeAt(r-1);)--r;return N(t,n.substr(0,r),e/Math.pow(10,3*(n.length-r)))}(g,y,_);if(-1!==y.indexOf("%"))return function(n,r,i){var o=r.replace(t,""),u=r.length-o.length;return N(n,o,i*Math.pow(10,2*u))+e("%",u)}(g,y,_);if(-1!==y.indexOf("E"))return function t(n,e){var r,i=n.indexOf("E")-n.indexOf(".")-1;if(n.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+t(n,-e);var o=n.indexOf(".");-1===o&&(o=n.indexOf("E"));var u=Math.floor(Math.log(e)*Math.LOG10E)%o;if(u<0&&(u+=o),-1===(r=(e/Math.pow(10,u)).toPrecision(i+1+(o+u)%o)).indexOf("e")){var a=Math.floor(Math.log(e)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(a-r.length+u):r+="E+"+(a-u);"0."===r.substr(0,2);)r=(r=r.charAt(0)+r.substr(2,o)+"."+r.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,n,e,r){return n+e+r.substr(0,(o+u)%o)+"."+r.substr(u)+"E"}))}else r=e.toExponential(i);return n.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),n.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(y,_);if(36===y.charCodeAt(0))return"$"+p(g,y.substr(" "==y.charAt(1)?2:1),_);var w,x,b,M,A=Math.abs(_),T=_<0?"-":"";if(y.match(/^00+$/))return T+a(A,y.length);if(y.match(/^[#?]+$/))return"0"===(w=a(_,0))&&(w=""),w.length>y.length?w:f(y.substr(0,y.length-w.length))+w;if(x=y.match(u))return function(t,n,o){var u=parseInt(t[4],10),a=Math.round(n*u),c=Math.floor(a/u),s=a-c*u,l=u;return o+(0===c?"":""+c)+" "+(0===s?e(" ",t[1].length+1+t[4].length):i(s,t[1].length)+t[2]+"/"+t[3]+r(l,t[4].length))}(x,A,T);if(y.match(/^#+0+$/))return T+a(A,y.length-y.indexOf("0"));if(x=y.match(c))return w=h(_,x[1].length).replace(/^([^\.]+)$/,"$1."+f(x[1])).replace(/\.$/,"."+f(x[1])).replace(/\.(\d*)$/,(function(t,n){return"."+n+e("0",f(x[1]).length-n.length)})),-1!==y.indexOf("0.")?w:w.replace(/^0\./,".");if(y=y.replace(/^#+([0.])/,"$1"),x=y.match(/^(0*)\.(#*)$/))return T+h(A,x[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,x[1].length?"0.":".");if(x=y.match(/^#{1,3},##0(\.?)$/))return T+k(a(A,0));if(x=y.match(/^#,##0\.([#0]*0)$/))return _<0?"-"+p(g,y,-_):k(""+(Math.floor(_)+function(t,n){return n<(""+Math.round((t-Math.floor(t))*Math.pow(10,n))).length?1:0}(_,x[1].length)))+"."+r(d(_,x[1].length),x[1].length);if(x=y.match(/^#,#*,#0/))return p(g,y.replace(/^#,#*,/,""),_);if(x=y.match(/^([0#]+)(\\?-([0#]+))+$/))return w=n(p(g,y.replace(/[\\-]/g,""),_)),b=0,n(n(y.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return b<w.length?w.charAt(b++):"0"===t?"0":""})));if(y.match(l))return"("+(w=p(g,"##########",_)).substr(0,3)+") "+w.substr(3,3)+"-"+w.substr(6);var C="";if(x=y.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return b=Math.min(x[4].length,7),M=v(A,Math.pow(10,b)-1,!1),w=""+T," "==(C=N("n",x[1],M[1])).charAt(C.length-1)&&(C=C.substr(0,C.length-1)+"0"),w+=C+x[2]+"/"+x[3],(C=o(M[2],b)).length<x[4].length&&(C=f(x[4].substr(x[4].length-C.length))+C),w+=C;if(x=y.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return b=Math.min(Math.max(x[1].length,x[4].length),7),T+((M=v(A,Math.pow(10,b)-1,!0))[0]||(M[1]?"":"0"))+" "+(M[1]?i(M[1],b)+x[2]+"/"+x[3]+o(M[2],b):e(" ",2*b+1+x[2].length+x[3].length));if(x=y.match(/^[#0?]+$/))return w=a(_,0),y.length<=w.length?w:f(y.substr(0,y.length-w.length))+w;if(x=y.match(/^([#0?]+)\.([#0]+)$/)){w=""+_.toFixed(Math.min(x[2].length,10)).replace(/([^0])0+$/,"$1"),b=w.indexOf(".");var E=y.indexOf(".")-b,S=y.length-w.length-E;return f(y.substr(0,E)+w+y.substr(y.length-S))}if(x=y.match(/^00,000\.([#0]*0)$/))return b=d(_,x[1].length),_<0?"-"+p(g,y,-_):k(function(t){return t<2147483647&&t>-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(_)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?r(0,3-t.length):"")+t}))+"."+r(b,x[1].length);switch(y){case"###,##0.00":return p(g,"#,##0.00",_);case"###,###":case"##,###":case"#,###":var O=k(a(A,0));return"0"!==O?T+O:"";case"###,###.00":return p(g,"###,##0.00",_).replace(/^0\./,".");case"#,###.00":return p(g,"#,##0.00",_).replace(/^0\./,".")}throw new Error("unsupported format |"+y+"|")}function g(a,h,d){if(40===a.charCodeAt(0)&&!h.match(s)){var p=h.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return d>=0?g("n",p,d):"("+g("n",p,-d)+")"}if(44===h.charCodeAt(h.length-1))return function(t,n,e){for(var r=n.length-1;44===n.charCodeAt(r-1);)--r;return N(t,n.substr(0,r),e/Math.pow(10,3*(n.length-r)))}(a,h,d);if(-1!==h.indexOf("%"))return function(n,r,i){var o=r.replace(t,""),u=r.length-o.length;return N(n,o,i*Math.pow(10,2*u))+e("%",u)}(a,h,d);if(-1!==h.indexOf("E"))return function t(n,e){var r,i=n.indexOf("E")-n.indexOf(".")-1;if(n.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+t(n,-e);var o=n.indexOf(".");-1===o&&(o=n.indexOf("E"));var u=Math.floor(Math.log(e)*Math.LOG10E)%o;if(u<0&&(u+=o),!(r=(e/Math.pow(10,u)).toPrecision(i+1+(o+u)%o)).match(/[Ee]/)){var a=Math.floor(Math.log(e)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(a-r.length+u):r+="E+"+(a-u),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,n,e,r){return n+e+r.substr(0,(o+u)%o)+"."+r.substr(u)+"E"}))}else r=e.toExponential(i);return n.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),n.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(h,d);if(36===h.charCodeAt(0))return"$"+g(a,h.substr(" "==h.charAt(1)?2:1),d);var y,_,m,w,x=Math.abs(d),b=d<0?"-":"";if(h.match(/^00+$/))return b+r(x,h.length);if(h.match(/^[#?]+$/))return y=""+d,0===d&&(y=""),y.length>h.length?y:f(h.substr(0,h.length-y.length))+y;if(_=h.match(u))return function(t,n,r){return r+(0===n?"":""+n)+e(" ",t[1].length+2+t[4].length)}(_,x,b);if(h.match(/^#+0+$/))return b+r(x,h.length-h.indexOf("0"));if(_=h.match(c))return y=(y=(""+d).replace(/^([^\.]+)$/,"$1."+f(_[1])).replace(/\.$/,"."+f(_[1]))).replace(/\.(\d*)$/,(function(t,n){return"."+n+e("0",f(_[1]).length-n.length)})),-1!==h.indexOf("0.")?y:y.replace(/^0\./,".");if(h=h.replace(/^#+([0.])/,"$1"),_=h.match(/^(0*)\.(#*)$/))return b+(""+x).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,_[1].length?"0.":".");if(_=h.match(/^#{1,3},##0(\.?)$/))return b+k(""+x);if(_=h.match(/^#,##0\.([#0]*0)$/))return d<0?"-"+g(a,h,-d):k(""+d)+"."+e("0",_[1].length);if(_=h.match(/^#,#*,#0/))return g(a,h.replace(/^#,#*,/,""),d);if(_=h.match(/^([0#]+)(\\?-([0#]+))+$/))return y=n(g(a,h.replace(/[\\-]/g,""),d)),m=0,n(n(h.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return m<y.length?y.charAt(m++):"0"===t?"0":""})));if(h.match(l))return"("+(y=g(a,"##########",d)).substr(0,3)+") "+y.substr(3,3)+"-"+y.substr(6);var M="";if(_=h.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return m=Math.min(_[4].length,7),w=v(x,Math.pow(10,m)-1,!1),y=""+b," "==(M=N("n",_[1],w[1])).charAt(M.length-1)&&(M=M.substr(0,M.length-1)+"0"),y+=M+_[2]+"/"+_[3],(M=o(w[2],m)).length<_[4].length&&(M=f(_[4].substr(_[4].length-M.length))+M),y+=M;if(_=h.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return m=Math.min(Math.max(_[1].length,_[4].length),7),b+((w=v(x,Math.pow(10,m)-1,!0))[0]||(w[1]?"":"0"))+" "+(w[1]?i(w[1],m)+_[2]+"/"+_[3]+o(w[2],m):e(" ",2*m+1+_[2].length+_[3].length));if(_=h.match(/^[#0?]+$/))return y=""+d,h.length<=y.length?y:f(h.substr(0,h.length-y.length))+y;if(_=h.match(/^([#0]+)\.([#0]+)$/)){y=""+d.toFixed(Math.min(_[2].length,10)).replace(/([^0])0+$/,"$1"),m=y.indexOf(".");var A=h.indexOf(".")-m,T=h.length-y.length-A;return f(h.substr(0,A)+y+h.substr(h.length-T))}if(_=h.match(/^00,000\.([#0]*0)$/))return d<0?"-"+g(a,h,-d):k(""+d).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?r(0,3-t.length):"")+t}))+"."+r(0,_[1].length);switch(h){case"###,###":case"##,###":case"#,###":var C=k(""+x);return"0"!==C?b+C:"";default:if(h.match(/\.[0#?]*$/))return g(a,h.slice(0,h.lastIndexOf(".")),d)+f(h.slice(h.lastIndexOf(".")))}throw new Error("unsupported format |"+h+"|")}return function(t,n,e){return(0|e)===e?g(t,n,e):p(t,n,e)}}();function T(t){for(var n=[],e=!1,r=0,i=0;r<t.length;++r)switch(t.charCodeAt(r)){case 34:e=!e;break;case 95:case 42:case 92:++r;break;case 59:n[n.length]=t.substr(i,r-i),i=r+1}if(n[n.length]=t.substr(i),!0===e)throw new Error("Format |"+t+"| unterminated string ");return n}t._split=T;var C=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function E(t){for(var n=0,e="",r="";n<t.length;)switch(e=t.charAt(n)){case"G":c(t,n)&&(n+=6),n++;break;case'"':for(;34!==t.charCodeAt(++n)&&n<t.length;);++n;break;case"\\":case"_":n+=2;break;case"@":++n;break;case"B":case"b":if("1"===t.charAt(n+1)||"2"===t.charAt(n+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===t.substr(n,3).toUpperCase())return!0;if("AM/PM"===t.substr(n,5).toUpperCase())return!0;if("上午/下午"===t.substr(n,5).toUpperCase())return!0;++n;break;case"[":for(r=e;"]"!==t.charAt(n++)&&n<t.length;)r+=t.charAt(n);if(r.match(C))return!0;break;case".":case"0":case"#":for(;n<t.length&&("0#?.,E+-%".indexOf(e=t.charAt(++n))>-1||"\\"==e&&"-"==t.charAt(n+1)&&"0#".indexOf(t.charAt(n+2))>-1););break;case"?":for(;t.charAt(++n)===e;);break;case"*":++n," "!=t.charAt(n)&&"*"!=t.charAt(n)||++n;break;case"(":case")":++n;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;n<t.length&&"0123456789".indexOf(t.charAt(++n))>-1;);break;case" ":default:++n}return!1}function S(t,n,e,r){for(var i,o,u,a=[],s="",l=0,f="",h="t",d="H";l<t.length;)switch(f=t.charAt(l)){case"G":if(!c(t,l))throw new Error("unrecognized character "+f+" in "+t);a[a.length]={t:"G",v:"General"},l+=7;break;case'"':for(s="";34!==(u=t.charCodeAt(++l))&&l<t.length;)s+=String.fromCharCode(u);a[a.length]={t:"t",v:s},++l;break;case"\\":var p=t.charAt(++l),g="("===p||")"===p?p:"t";a[a.length]={t:g,v:p},++l;break;case"_":a[a.length]={t:"t",v:" "},l+=2;break;case"@":a[a.length]={t:"T",v:n},++l;break;case"B":case"b":if("1"===t.charAt(l+1)||"2"===t.charAt(l+1)){if(null==i&&null==(i=y(n,e,"2"===t.charAt(l+1))))return"";a[a.length]={t:"X",v:t.substr(l,2)},h=f,l+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(n<0)return"";if(null==i&&null==(i=y(n,e)))return"";for(s=f;++l<t.length&&t.charAt(l).toLowerCase()===f;)s+=f;"m"===f&&"h"===h.toLowerCase()&&(f="M"),"h"===f&&(f=d),a[a.length]={t:f,v:s},h=f;break;case"A":case"a":case"上":var v={t:f,v:f};if(null==i&&(i=y(n,e)),"A/P"===t.substr(l,3).toUpperCase()?(null!=i&&(v.v=i.H>=12?"P":"A"),v.t="T",d="h",l+=3):"AM/PM"===t.substr(l,5).toUpperCase()?(null!=i&&(v.v=i.H>=12?"PM":"AM"),v.t="T",l+=5,d="h"):"上午/下午"===t.substr(l,5).toUpperCase()?(null!=i&&(v.v=i.H>=12?"下午":"上午"),v.t="T",l+=5,d="h"):(v.t="t",++l),null==i&&"T"===v.t)return"";a[a.length]=v,h=f;break;case"[":for(s=f;"]"!==t.charAt(l++)&&l<t.length;)s+=t.charAt(l);if("]"!==s.slice(-1))throw'unterminated "[" block: |'+s+"|";if(s.match(C)){if(null==i&&null==(i=y(n,e)))return"";a[a.length]={t:"Z",v:s.toLowerCase()},h=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",E(t)||(a[a.length]={t:"t",v:s}));break;case".":if(null!=i){for(s=f;++l<t.length&&"0"===(f=t.charAt(l));)s+=f;a[a.length]={t:"s",v:s};break}case"0":case"#":for(s=f;++l<t.length&&"0#?.,E+-%".indexOf(f=t.charAt(l))>-1;)s+=f;a[a.length]={t:"n",v:s};break;case"?":for(s=f;t.charAt(++l)===f;)s+=f;a[a.length]={t:f,v:s},h=f;break;case"*":++l," "!=t.charAt(l)&&"*"!=t.charAt(l)||++l;break;case"(":case")":a[a.length]={t:1===r?"t":f,v:f},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=f;l<t.length&&"0123456789".indexOf(t.charAt(++l))>-1;)s+=t.charAt(l);a[a.length]={t:"D",v:s};break;case" ":a[a.length]={t:f,v:f},++l;break;case"$":a[a.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+t);a[a.length]={t:"t",v:f},++l}var _,m=0,w=0;for(l=a.length-1,h="t";l>=0;--l)switch(a[l].t){case"h":case"H":a[l].t=d,h="h",m<1&&(m=1);break;case"s":(_=a[l].v.match(/\.0+$/))&&(w=Math.max(w,_[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":h=a[l].t;break;case"m":"s"===h&&(a[l].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&a[l].v.match(/[Hh]/)&&(m=1),m<2&&a[l].v.match(/[Mm]/)&&(m=2),m<3&&a[l].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M)}var x,b="";for(l=0;l<a.length;++l)switch(a[l].t){case"t":case"T":case" ":case"D":break;case"X":a[l].v="",a[l].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[l].v=A(a[l].t.charCodeAt(0),a[l].v,i,w),a[l].t="t";break;case"n":case"?":for(x=l+1;null!=a[x]&&("?"===(f=a[x].t)||"D"===f||(" "===f||"t"===f)&&null!=a[x+1]&&("?"===a[x+1].t||"t"===a[x+1].t&&"/"===a[x+1].v)||"("===a[l].t&&(" "===f||"n"===f||")"===f)||"t"===f&&("/"===a[x].v||" "===a[x].v&&null!=a[x+1]&&"?"==a[x+1].t));)a[l].v+=a[x].v,a[x]={v:"",t:";"},++x;b+=a[l].v,l=x-1;break;case"G":a[l].t="t",a[l].v=M(n,e)}var k,T,S="";if(b.length>0){40==b.charCodeAt(0)?(k=n<0&&45===b.charCodeAt(0)?-n:n,T=N("n",b,k)):(T=N("n",b,k=n<0&&r>1?-n:n),k<0&&a[0]&&"t"==a[0].t&&(T=T.substr(1),a[0].v="-"+a[0].v)),x=T.length-1;var O=a.length;for(l=0;l<a.length;++l)if(null!=a[l]&&"t"!=a[l].t&&a[l].v.indexOf(".")>-1){O=l;break}var P=a.length;if(O===a.length&&-1===T.indexOf("E")){for(l=a.length-1;l>=0;--l)null!=a[l]&&-1!=="n?".indexOf(a[l].t)&&(x>=a[l].v.length-1?(x-=a[l].v.length,a[l].v=T.substr(x+1,a[l].v.length)):x<0?a[l].v="":(a[l].v=T.substr(0,x+1),x=-1),a[l].t="t",P=l);x>=0&&P<a.length&&(a[P].v=T.substr(0,x+1)+a[P].v)}else if(O!==a.length&&-1===T.indexOf("E")){for(x=T.indexOf(".")-1,l=O;l>=0;--l)if(null!=a[l]&&-1!=="n?".indexOf(a[l].t)){for(o=a[l].v.indexOf(".")>-1&&l===O?a[l].v.indexOf(".")-1:a[l].v.length-1,S=a[l].v.substr(o+1);o>=0;--o)x>=0&&("0"===a[l].v.charAt(o)||"#"===a[l].v.charAt(o))&&(S=T.charAt(x--)+S);a[l].v=S,a[l].t="t",P=l}for(x>=0&&P<a.length&&(a[P].v=T.substr(0,x+1)+a[P].v),x=T.indexOf(".")+1,l=O;l<a.length;++l)if(null!=a[l]&&(-1!=="n?(".indexOf(a[l].t)||l===O)){for(o=a[l].v.indexOf(".")>-1&&l===O?a[l].v.indexOf(".")+1:0,S=a[l].v.substr(0,o);o<a[l].v.length;++o)x<T.length&&(S+=T.charAt(x++));a[l].v=S,a[l].t="t",P=l}}}for(l=0;l<a.length;++l)null!=a[l]&&"n?".indexOf(a[l].t)>-1&&(k=r>1&&n<0&&l>0&&"-"===a[l-1].v?-n:n,a[l].v=N(a[l].t,a[l].v,k),a[l].t="t");var D="";for(l=0;l!==a.length;++l)null!=a[l]&&(D+=a[l].v);return D}t.is_date=E,t._eval=S;var O=/\[[=<>]/,P=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function D(t,n){if(null==n)return!1;var e=parseFloat(n[2]);switch(n[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t<e)return!0;break;case"<>":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0}return!1}function U(t,n,e){null==e&&(e={});var r="";switch(typeof t){case"string":r="m/d/yy"==t&&e.dateNF?e.dateNF:t;break;case"number":null==(r=14==t&&e.dateNF?e.dateNF:(null!=e.table?e.table:h)[t])&&(r=e.table&&e.table[d[t]]||h[d[t]]),null==r&&(r=g[t]||"General")}if(c(r,0))return M(n,e);n instanceof Date&&(n=x(n,e.date1904));var i=function(t,n){var e=T(t),r=e.length,i=e[r-1].indexOf("@");if(r<4&&i>-1&&--r,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if("number"!=typeof n)return[4,4===e.length||i>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=i>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=i>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=i>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"]}var o=n>0?e[0]:n<0?e[1]:e[2];if(-1===e[0].indexOf("[")&&-1===e[1].indexOf("["))return[r,o];if(null!=e[0].match(O)||null!=e[1].match(O)){var u=e[0].match(P),a=e[1].match(P);return D(n,u)?[r,e[0]]:D(n,a)?[r,e[1]]:[r,e[null!=u&&null!=a?2:1]]}return[r,o]}(r,n);if(c(i[1]))return M(n,e);if(!0===n)n="TRUE";else if(!1===n)n="FALSE";else if(""===n||null==n)return"";return S(i[1],n,e,i[0])}function L(t,n){if("number"!=typeof n){n=+n||-1;for(var e=0;e<392;++e)if(null!=h[e]){if(h[e]==t){n=e;break}}else n<0&&(n=e);n<0&&(n=391)}return h[n]=t,n}t.load=L,t._table=h,t.get_table=function(){return h},t.load_table=function(t){for(var n=0;392!=n;++n)void 0!==t[n]&&L(t[n],n)},t.init_table=f,t.format=U}(r),"undefined"==typeof DO_NOT_EXPORT_SSF&&(t.exports=r)}})}));