/*! Chart */ !function(){function n(n){return n&&(n.ownerDocument||n.document||n).documentElement}function t(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function e(n,t){return t>n?-1:n>t?1:n>=t?0:NaN}function r(n){return null===n?NaN:+n}function i(n){return!isNaN(n)}function u(n){return{left:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var u=r+i>>>1;n(t[u],e)<0?r=u+1:i=u}return r},right:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var u=r+i>>>1;n(t[u],e)>0?i=u:r=u+1}return r}}}function o(n){return n.length}function a(n){for(var t=1;n*t%1;)t*=10;return t}function l(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function c(){this._=Object.create(null)}function f(n){return(n+="")===bo||n[0]===_o?_o+n:n}function s(n){return(n+="")[0]===_o?n.slice(1):n}function h(n){return f(n)in this._}function p(n){return(n=f(n))in this._&&delete this._[n]}function g(){var n=[];for(var t in this._)n.push(s(t));return n}function v(){var n=0;for(var t in this._)++n;return n}function d(){for(var n in this._)return!1;return!0}function y(){this._=Object.create(null)}function m(n){return n}function M(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function x(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=wo.length;r>e;++e){var i=wo[e]+t;if(i in n)return i}}function b(){}function _(){}function w(n){function t(){for(var t,r=e,i=-1,u=r.length;++ie;e++)for(var i,u=n[e],o=0,a=u.length;a>o;o++)(i=u[o])&&t(i,o,e);return n}function Z(n){return ko(n,qo),n}function V(n){var t,e;return function(r,i,u){var o,a=n[u].update,l=a.length;for(u!=e&&(e=u,t=0),i>=t&&(t=i+1);!(o=a[t])&&++t0&&(n=n.slice(0,a));var c=To.get(n);return c&&(n=c,l=B),a?t?i:r:t?b:u}function $(n,t){return function(e){var r=ao.event;ao.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{ao.event=r}}}function B(n,t){var e=$(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function W(e){var r=".dragsuppress-"+ ++Do,i="click"+r,u=ao.select(t(e)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==Ro&&(Ro="onselectstart"in e?!1:x(e.style,"userSelect")),Ro){var o=n(e).style,a=o[Ro];o[Ro]="none"}return function(n){if(u.on(r,null),Ro&&(o[Ro]=a),n){var t=function(){u.on(i,null)};u.on(i,function(){S(),t()},!0),setTimeout(t,0)}}}function J(n,e){e.changedTouches&&(e=e.changedTouches[0]);var r=n.ownerSVGElement||n;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>Po){var u=t(n);if(u.scrollX||u.scrollY){r=ao.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();Po=!(o.f||o.e),r.remove()}}return Po?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]}var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.clientTop]}function G(){return ao.event.changedTouches[0].identifier}function K(n){return n>0?1:0>n?-1:0}function Q(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function nn(n){return n>1?0:-1>n?Fo:Math.acos(n)}function tn(n){return n>1?Io:-1>n?-Io:Math.asin(n)}function en(n){return((n=Math.exp(n))-1/n)/2}function rn(n){return((n=Math.exp(n))+1/n)/2}function un(n){return((n=Math.exp(2*n))-1)/(n+1)}function on(n){return(n=Math.sin(n/2))*n}function an(){}function ln(n,t,e){return this instanceof ln?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof ln?new ln(n.h,n.s,n.l):_n(""+n,wn,ln):new ln(n,t,e)}function cn(n,t,e){function r(n){return n>360?n-=360:0>n&&(n+=360),60>n?u+(o-u)*n/60:180>n?o:240>n?u+(o-u)*(240-n)/60:u}function i(n){return Math.round(255*r(n))}var u,o;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,e=0>e?0:e>1?1:e,o=.5>=e?e*(1+t):e+t-e*t,u=2*e-o,new mn(i(n+120),i(n),i(n-120))}function fn(n,t,e){return this instanceof fn?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof fn?new fn(n.h,n.c,n.l):n instanceof hn?gn(n.l,n.a,n.b):gn((n=Sn((n=ao.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new fn(n,t,e)}function sn(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new hn(e,Math.cos(n*=Yo)*t,Math.sin(n)*t)}function hn(n,t,e){return this instanceof hn?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof hn?new hn(n.l,n.a,n.b):n instanceof fn?sn(n.h,n.c,n.l):Sn((n=mn(n)).r,n.g,n.b):new hn(n,t,e)}function pn(n,t,e){var r=(n+16)/116,i=r+t/500,u=r-e/200;return i=vn(i)*na,r=vn(r)*ta,u=vn(u)*ea,new mn(yn(3.2404542*i-1.5371385*r-.4985314*u),yn(-.969266*i+1.8760108*r+.041556*u),yn(.0556434*i-.2040259*r+1.0572252*u))}function gn(n,t,e){return n>0?new fn(Math.atan2(e,t)*Zo,Math.sqrt(t*t+e*e),n):new fn(NaN,NaN,n)}function vn(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function dn(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function yn(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function mn(n,t,e){return this instanceof mn?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof mn?new mn(n.r,n.g,n.b):_n(""+n,mn,cn):new mn(n,t,e)}function Mn(n){return new mn(n>>16,n>>8&255,255&n)}function xn(n){return Mn(n)+""}function bn(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function _n(n,t,e){var r,i,u,o=0,a=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(n=n.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(Nn(i[0]),Nn(i[1]),Nn(i[2]))}return(u=ua.get(n))?t(u.r,u.g,u.b):(null==n||"#"!==n.charAt(0)||isNaN(u=parseInt(n.slice(1),16))||(4===n.length?(o=(3840&u)>>4,o=o>>4|o,a=240&u,a=a>>4|a,l=15&u,l=l<<4|l):7===n.length&&(o=(16711680&u)>>16,a=(65280&u)>>8,l=255&u)),t(o,a,l))}function wn(n,t,e){var r,i,u=Math.min(n/=255,t/=255,e/=255),o=Math.max(n,t,e),a=o-u,l=(o+u)/2;return a?(i=.5>l?a/(o+u):a/(2-o-u),r=n==o?(t-e)/a+(e>t?6:0):t==o?(e-n)/a+2:(n-t)/a+4,r*=60):(r=NaN,i=l>0&&1>l?0:r),new ln(r,i,l)}function Sn(n,t,e){n=kn(n),t=kn(t),e=kn(e);var r=dn((.4124564*n+.3575761*t+.1804375*e)/na),i=dn((.2126729*n+.7151522*t+.072175*e)/ta),u=dn((.0193339*n+.119192*t+.9503041*e)/ea);return hn(116*i-16,500*(r-i),200*(i-u))}function kn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Nn(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function En(n){return"function"==typeof n?n:function(){return n}}function An(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Cn(t,e,n,r)}}function Cn(n,t,e,r){function i(){var n,t=l.status;if(!t&&Ln(l)||t>=200&&300>t||304===t){try{n=e.call(u,l)}catch(r){return void o.error.call(u,r)}o.load.call(u,n)}else o.error.call(u,l)}var u={},o=ao.dispatch("beforesend","progress","load","error"),a={},l=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(n)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=i:l.onreadystatechange=function(){l.readyState>3&&i()},l.onprogress=function(n){var t=ao.event;ao.event=n;try{o.progress.call(u,l)}finally{ao.event=t}},u.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?a[n]:(null==t?delete a[n]:a[n]=t+"",u)},u.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",u):t},u.responseType=function(n){return arguments.length?(c=n,u):c},u.response=function(n){return e=n,u},["get","post"].forEach(function(n){u[n]=function(){return u.send.apply(u,[n].concat(co(arguments)))}}),u.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),l.open(e,n,!0),null==t||"accept"in a||(a.accept=t+",*/*"),l.setRequestHeader)for(var f in a)l.setRequestHeader(f,a[f]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=c&&(l.responseType=c),null!=i&&u.on("error",i).on("load",function(n){i(null,n)}),o.beforesend.call(u,l),l.send(null==r?null:r),u},u.abort=function(){return l.abort(),u},ao.rebind(u,o,"on"),null==r?u:u.get(zn(r))}function zn(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function Ln(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function qn(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var i=e+t,u={c:n,t:i,n:null};return aa?aa.n=u:oa=u,aa=u,la||(ca=clearTimeout(ca),la=1,fa(Tn)),u}function Tn(){var n=Rn(),t=Dn()-n;t>24?(isFinite(t)&&(clearTimeout(ca),ca=setTimeout(Tn,t)),la=0):(la=1,fa(Tn))}function Rn(){for(var n=Date.now(),t=oa;t;)n>=t.t&&t.c(n-t.t)&&(t.c=null),t=t.n;return n}function Dn(){for(var n,t=oa,e=1/0;t;)t.c?(t.t8?function(n){return n/e}:function(n){return n*e},symbol:n}}function jn(n){var t=n.decimal,e=n.thousands,r=n.grouping,i=n.currency,u=r&&e?function(n,t){for(var i=n.length,u=[],o=0,a=r[0],l=0;i>0&&a>0&&(l+a+1>t&&(a=Math.max(1,t-l)),u.push(n.substring(i-=a,i+a)),!((l+=a+1)>t));)a=r[o=(o+1)%r.length];return u.reverse().join(e)}:m;return function(n){var e=ha.exec(n),r=e[1]||" ",o=e[2]||">",a=e[3]||"-",l=e[4]||"",c=e[5],f=+e[6],s=e[7],h=e[8],p=e[9],g=1,v="",d="",y=!1,m=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===o)&&(c=r="0",o="="),p){case"n":s=!0,p="g";break;case"%":g=100,d="%",p="f";break;case"p":g=100,d="%",p="r";break;case"b":case"o":case"x":case"X":"#"===l&&(v="0"+p.toLowerCase());case"c":m=!1;case"d":y=!0,h=0;break;case"s":g=-1,p="r"}"$"===l&&(v=i[0],d=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=pa.get(p)||Fn;var M=c&&s;return function(n){var e=d;if(y&&n%1)return"";var i=0>n||0===n&&0>1/n?(n=-n,"-"):"-"===a?"":a;if(0>g){var l=ao.formatPrefix(n,h);n=l.scale(n),e=l.symbol+d}else n*=g;n=p(n,h);var x,b,_=n.lastIndexOf(".");if(0>_){var w=m?n.lastIndexOf("e"):-1;0>w?(x=n,b=""):(x=n.substring(0,w),b=n.substring(w))}else x=n.substring(0,_),b=t+n.substring(_+1);!c&&s&&(x=u(x,1/0));var S=v.length+x.length+b.length+(M?0:i.length),k=f>S?new Array(S=f-S+1).join(r):"";return M&&(x=u(k+x,k.length?f-b.length:1/0)),i+=v,n=x+b,("<"===o?i+n+k:">"===o?k+i+n:"^"===o?k.substring(0,S>>=1)+i+n+k.substring(S):i+(M?n:k+n))+e}}}function Fn(n){return n+""}function Hn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function On(n,t,e){function r(t){var e=n(t),r=u(e,1);return r-t>t-e?e:r}function i(e){return t(e=n(new va(e-1)),1),e}function u(n,e){return t(n=new va(+n),e),n}function o(n,r,u){var o=i(n),a=[];if(u>1)for(;r>o;)e(o)%u||a.push(new Date(+o)),t(o,1);else for(;r>o;)a.push(new Date(+o)),t(o,1);return a}function a(n,t,e){try{va=Hn;var r=new Hn;return r._=n,o(r,t,e)}finally{va=Date}}n.floor=n,n.round=r,n.ceil=i,n.offset=u,n.range=o;var l=n.utc=In(n);return l.floor=l,l.round=In(r),l.ceil=In(i),l.offset=In(u),l.range=a,n}function In(n){return function(t,e){try{va=Hn;var r=new Hn;return r._=t,n(r,e)._}finally{va=Date}}}function Yn(n){function t(n){function t(t){for(var e,i,u,o=[],a=-1,l=0;++aa;){if(r>=c)return-1;if(i=t.charCodeAt(a++),37===i){if(o=t.charAt(a++),u=C[o in ya?t.charAt(a++):o],!u||(r=u(n,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function r(n,t,e){_.lastIndex=0;var r=_.exec(t.slice(e));return r?(n.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function i(n,t,e){x.lastIndex=0;var r=x.exec(t.slice(e));return r?(n.w=b.get(r[0].toLowerCase()),e+r[0].length):-1}function u(n,t,e){N.lastIndex=0;var r=N.exec(t.slice(e));return r?(n.m=E.get(r[0].toLowerCase()),e+r[0].length):-1}function o(n,t,e){S.lastIndex=0;var r=S.exec(t.slice(e));return r?(n.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function a(n,t,r){return e(n,A.c.toString(),t,r)}function l(n,t,r){return e(n,A.x.toString(),t,r)}function c(n,t,r){return e(n,A.X.toString(),t,r)}function f(n,t,e){var r=M.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}var s=n.dateTime,h=n.date,p=n.time,g=n.periods,v=n.days,d=n.shortDays,y=n.months,m=n.shortMonths;t.utc=function(n){function e(n){try{va=Hn;var t=new va;return t._=n,r(t)}finally{va=Date}}var r=t(n);return e.parse=function(n){try{va=Hn;var t=r.parse(n);return t&&t._}finally{va=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ct;var M=ao.map(),x=Vn(v),b=Xn(v),_=Vn(d),w=Xn(d),S=Vn(y),k=Xn(y),N=Vn(m),E=Xn(m);g.forEach(function(n,t){M.set(n.toLowerCase(),t)});var A={a:function(n){return d[n.getDay()]},A:function(n){return v[n.getDay()]},b:function(n){return m[n.getMonth()]},B:function(n){return y[n.getMonth()]},c:t(s),d:function(n,t){return Zn(n.getDate(),t,2)},e:function(n,t){return Zn(n.getDate(),t,2)},H:function(n,t){return Zn(n.getHours(),t,2)},I:function(n,t){return Zn(n.getHours()%12||12,t,2)},j:function(n,t){return Zn(1+ga.dayOfYear(n),t,3)},L:function(n,t){return Zn(n.getMilliseconds(),t,3)},m:function(n,t){return Zn(n.getMonth()+1,t,2)},M:function(n,t){return Zn(n.getMinutes(),t,2)},p:function(n){return g[+(n.getHours()>=12)]},S:function(n,t){return Zn(n.getSeconds(),t,2)},U:function(n,t){return Zn(ga.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Zn(ga.mondayOfYear(n),t,2)},x:t(h),X:t(p),y:function(n,t){return Zn(n.getFullYear()%100,t,2)},Y:function(n,t){return Zn(n.getFullYear()%1e4,t,4)},Z:at,"%":function(){return"%"}},C={a:r,A:i,b:u,B:o,c:a,d:tt,e:tt,H:rt,I:rt,j:et,L:ot,m:nt,M:it,p:f,S:ut,U:Bn,w:$n,W:Wn,x:l,X:c,y:Gn,Y:Jn,Z:Kn,"%":lt};return t}function Zn(n,t,e){var r=0>n?"-":"",i=(r?-n:n)+"",u=i.length;return r+(e>u?new Array(e-u+1).join(t)+i:i)}function Vn(n){return new RegExp("^(?:"+n.map(ao.requote).join("|")+")","i")}function Xn(n){for(var t=new c,e=-1,r=n.length;++e68?1900:2e3)}function nt(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function tt(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function et(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function rt(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function it(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function ut(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function ot(n,t,e){ma.lastIndex=0;var r=ma.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function at(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=xo(t)/60|0,i=xo(t)%60;return e+Zn(r,"0",2)+Zn(i,"0",2)}function lt(n,t,e){Ma.lastIndex=0;var r=Ma.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ct(n){for(var t=n.length,e=-1;++e=0?1:-1,a=o*e,l=Math.cos(t),c=Math.sin(t),f=u*c,s=i*l+f*Math.cos(a),h=f*o*Math.sin(a);ka.add(Math.atan2(h,s)),r=n,i=l,u=c}var t,e,r,i,u;Na.point=function(o,a){Na.point=n,r=(t=o)*Yo,i=Math.cos(a=(e=a)*Yo/2+Fo/4),u=Math.sin(a)},Na.lineEnd=function(){n(t,e)}}function dt(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function yt(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function mt(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Mt(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function xt(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function bt(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function _t(n){return[Math.atan2(n[1],n[0]),tn(n[2])]}function wt(n,t){return xo(n[0]-t[0])a;++a)i.point((e=n[a])[0],e[1]);return void i.lineEnd()}var l=new Tt(e,n,null,!0),c=new Tt(e,null,l,!1);l.o=c,u.push(l),o.push(c),l=new Tt(r,n,null,!1),c=new Tt(r,null,l,!0),l.o=c,u.push(l),o.push(c)}}),o.sort(t),qt(u),qt(o),u.length){for(var a=0,l=e,c=o.length;c>a;++a)o[a].e=l=!l;for(var f,s,h=u[0];;){for(var p=h,g=!0;p.v;)if((p=p.n)===h)return;f=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(g)for(var a=0,c=f.length;c>a;++a)i.point((s=f[a])[0],s[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(g){f=p.p.z;for(var a=f.length-1;a>=0;--a)i.point((s=f[a])[0],s[1])}else r(p.x,p.p.x,-1,i);p=p.p}p=p.o,f=p.z,g=!g}while(!p.v);i.lineEnd()}}}function qt(n){if(t=n.length){for(var t,e,r=0,i=n[0];++r0){for(b||(u.polygonStart(),b=!0),u.lineStart();++o1&&2&t&&e.push(e.pop().concat(e.shift())),p.push(e.filter(Dt))}var p,g,v,d=t(u),y=i.invert(r[0],r[1]),m={point:o,lineStart:l,lineEnd:c,polygonStart:function(){m.point=f,m.lineStart=s,m.lineEnd=h,p=[],g=[]},polygonEnd:function(){m.point=o,m.lineStart=l,m.lineEnd=c,p=ao.merge(p);var n=Ot(y,g);p.length?(b||(u.polygonStart(),b=!0),Lt(p,Ut,n,e,u)):n&&(b||(u.polygonStart(),b=!0),u.lineStart(),e(null,null,1,u),u.lineEnd()),b&&(u.polygonEnd(),b=!1),p=g=null},sphere:function(){u.polygonStart(),u.lineStart(),e(null,null,1,u),u.lineEnd(),u.polygonEnd()}},M=Pt(),x=t(M),b=!1;return m}}function Dt(n){return n.length>1}function Pt(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:b,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Ut(n,t){return((n=n.x)[0]<0?n[1]-Io-Uo:Io-n[1])-((t=t.x)[0]<0?t[1]-Io-Uo:Io-t[1])}function jt(n){var t,e=NaN,r=NaN,i=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(u,o){var a=u>0?Fo:-Fo,l=xo(u-e);xo(l-Fo)0?Io:-Io),n.point(i,r),n.lineEnd(),n.lineStart(),n.point(a,r),n.point(u,r),t=0):i!==a&&l>=Fo&&(xo(e-i)Uo?Math.atan((Math.sin(t)*(u=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(t))*Math.sin(n))/(i*u*o)):(t+r)/2}function Ht(n,t,e,r){var i;if(null==n)i=e*Io,r.point(-Fo,i),r.point(0,i),r.point(Fo,i),r.point(Fo,0),r.point(Fo,-i),r.point(0,-i),r.point(-Fo,-i),r.point(-Fo,0),r.point(-Fo,i);else if(xo(n[0]-t[0])>Uo){var u=n[0]a;++a){var c=t[a],f=c.length;if(f)for(var s=c[0],h=s[0],p=s[1]/2+Fo/4,g=Math.sin(p),v=Math.cos(p),d=1;;){d===f&&(d=0),n=c[d];var y=n[0],m=n[1]/2+Fo/4,M=Math.sin(m),x=Math.cos(m),b=y-h,_=b>=0?1:-1,w=_*b,S=w>Fo,k=g*M;if(ka.add(Math.atan2(k*_*Math.sin(w),v*x+k*Math.cos(w))),u+=S?b+_*Ho:b,S^h>=e^y>=e){var N=mt(dt(s),dt(n));bt(N);var E=mt(i,N);bt(E);var A=(S^b>=0?-1:1)*tn(E[2]);(r>A||r===A&&(N[0]||N[1]))&&(o+=S^b>=0?1:-1)}if(!d++)break;h=y,g=M,v=x,s=n}}return(-Uo>u||Uo>u&&-Uo>ka)^1&o}function It(n){function t(n,t){return Math.cos(n)*Math.cos(t)>u}function e(n){var e,u,l,c,f;return{lineStart:function(){c=l=!1,f=1},point:function(s,h){var p,g=[s,h],v=t(s,h),d=o?v?0:i(s,h):v?i(s+(0>s?Fo:-Fo),h):0;if(!e&&(c=l=v)&&n.lineStart(),v!==l&&(p=r(e,g),(wt(e,p)||wt(g,p))&&(g[0]+=Uo,g[1]+=Uo,v=t(g[0],g[1]))),v!==l)f=0,v?(n.lineStart(),p=r(g,e),n.point(p[0],p[1])):(p=r(e,g),n.point(p[0],p[1]),n.lineEnd()),e=p;else if(a&&e&&o^v){var y;d&u||!(y=r(g,e,!0))||(f=0,o?(n.lineStart(),n.point(y[0][0],y[0][1]),n.point(y[1][0],y[1][1]),n.lineEnd()):(n.point(y[1][0],y[1][1]),n.lineEnd(),n.lineStart(),n.point(y[0][0],y[0][1])))}!v||e&&wt(e,g)||n.point(g[0],g[1]),e=g,l=v,u=d},lineEnd:function(){l&&n.lineEnd(),e=null},clean:function(){return f|(c&&l)<<1}}}function r(n,t,e){var r=dt(n),i=dt(t),o=[1,0,0],a=mt(r,i),l=yt(a,a),c=a[0],f=l-c*c;if(!f)return!e&&n;var s=u*l/f,h=-u*c/f,p=mt(o,a),g=xt(o,s),v=xt(a,h);Mt(g,v);var d=p,y=yt(g,d),m=yt(d,d),M=y*y-m*(yt(g,g)-1);if(!(0>M)){var x=Math.sqrt(M),b=xt(d,(-y-x)/m);if(Mt(b,g),b=_t(b),!e)return b;var _,w=n[0],S=t[0],k=n[1],N=t[1];w>S&&(_=w,w=S,S=_);var E=S-w,A=xo(E-Fo)E;if(!A&&k>N&&(_=k,k=N,N=_),C?A?k+N>0^b[1]<(xo(b[0]-w)Fo^(w<=b[0]&&b[0]<=S)){var z=xt(d,(-y+x)/m);return Mt(z,g),[b,_t(z)]}}}function i(t,e){var r=o?n:Fo-n,i=0;return-r>t?i|=1:t>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var u=Math.cos(n),o=u>0,a=xo(u)>Uo,l=ve(n,6*Yo);return Rt(t,e,l,o?[0,-n]:[-Fo,n-Fo])}function Yt(n,t,e,r){return function(i){var u,o=i.a,a=i.b,l=o.x,c=o.y,f=a.x,s=a.y,h=0,p=1,g=f-l,v=s-c;if(u=n-l,g||!(u>0)){if(u/=g,0>g){if(h>u)return;p>u&&(p=u)}else if(g>0){if(u>p)return;u>h&&(h=u)}if(u=e-l,g||!(0>u)){if(u/=g,0>g){if(u>p)return;u>h&&(h=u)}else if(g>0){if(h>u)return;p>u&&(p=u)}if(u=t-c,v||!(u>0)){if(u/=v,0>v){if(h>u)return;p>u&&(p=u)}else if(v>0){if(u>p)return;u>h&&(h=u)}if(u=r-c,v||!(0>u)){if(u/=v,0>v){if(u>p)return;u>h&&(h=u)}else if(v>0){if(h>u)return;p>u&&(p=u)}return h>0&&(i.a={x:l+h*g,y:c+h*v}),1>p&&(i.b={x:l+p*g,y:c+p*v}),i}}}}}}function Zt(n,t,e,r){function i(r,i){return xo(r[0]-n)0?0:3:xo(r[0]-e)0?2:1:xo(r[1]-t)0?1:0:i>0?3:2}function u(n,t){return o(n.x,t.x)}function o(n,t){var e=i(n,1),r=i(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(a){function l(n){for(var t=0,e=d.length,r=n[1],i=0;e>i;++i)for(var u,o=1,a=d[i],l=a.length,c=a[0];l>o;++o)u=a[o],c[1]<=r?u[1]>r&&Q(c,u,n)>0&&++t:u[1]<=r&&Q(c,u,n)<0&&--t,c=u;return 0!==t}function c(u,a,l,c){var f=0,s=0;if(null==u||(f=i(u,l))!==(s=i(a,l))||o(u,a)<0^l>0){do c.point(0===f||3===f?n:e,f>1?r:t);while((f=(f+l+4)%4)!==s)}else c.point(a[0],a[1])}function f(i,u){return i>=n&&e>=i&&u>=t&&r>=u}function s(n,t){f(n,t)&&a.point(n,t)}function h(){C.point=g,d&&d.push(y=[]),S=!0,w=!1,b=_=NaN}function p(){v&&(g(m,M),x&&w&&E.rejoin(),v.push(E.buffer())),C.point=s,w&&a.lineEnd()}function g(n,t){n=Math.max(-Ha,Math.min(Ha,n)),t=Math.max(-Ha,Math.min(Ha,t));var e=f(n,t);if(d&&y.push([n,t]),S)m=n,M=t,x=e,S=!1,e&&(a.lineStart(),a.point(n,t));else if(e&&w)a.point(n,t);else{var r={a:{x:b,y:_},b:{x:n,y:t}};A(r)?(w||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),k=!1):e&&(a.lineStart(),a.point(n,t),k=!1)}b=n,_=t,w=e}var v,d,y,m,M,x,b,_,w,S,k,N=a,E=Pt(),A=Yt(n,t,e,r),C={point:s,lineStart:h,lineEnd:p,polygonStart:function(){a=E,v=[],d=[],k=!0},polygonEnd:function(){a=N,v=ao.merge(v);var t=l([n,r]),e=k&&t,i=v.length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),c(null,null,1,a),a.lineEnd()),i&&Lt(v,u,t,c,a),a.polygonEnd()),v=d=y=null}};return C}}function Vt(n){var t=0,e=Fo/3,r=ae(n),i=r(t,e);return i.parallels=function(n){return arguments.length?r(t=n[0]*Fo/180,e=n[1]*Fo/180):[t/Fo*180,e/Fo*180]},i}function Xt(n,t){function e(n,t){var e=Math.sqrt(u-2*i*Math.sin(t))/i;return[e*Math.sin(n*=i),o-e*Math.cos(n)]}var r=Math.sin(n),i=(r+Math.sin(t))/2,u=1+r*(2*i-r),o=Math.sqrt(u)/i;return e.invert=function(n,t){var e=o-t;return[Math.atan2(n,e)/i,tn((u-(n*n+e*e)*i*i)/(2*i))]},e}function $t(){function n(n,t){Ia+=i*n-r*t,r=n,i=t}var t,e,r,i;$a.point=function(u,o){$a.point=n,t=r=u,e=i=o},$a.lineEnd=function(){n(t,e)}}function Bt(n,t){Ya>n&&(Ya=n),n>Va&&(Va=n),Za>t&&(Za=t),t>Xa&&(Xa=t)}function Wt(){function n(n,t){o.push("M",n,",",t,u)}function t(n,t){o.push("M",n,",",t),a.point=e}function e(n,t){o.push("L",n,",",t)}function r(){a.point=n}function i(){o.push("Z")}var u=Jt(4.5),o=[],a={point:n,lineStart:function(){a.point=t},lineEnd:r,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=r,a.point=n},pointRadius:function(n){return u=Jt(n),a},result:function(){if(o.length){var n=o.join("");return o=[],n}}};return a}function Jt(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Gt(n,t){Ca+=n,za+=t,++La}function Kt(){function n(n,r){var i=n-t,u=r-e,o=Math.sqrt(i*i+u*u);qa+=o*(t+n)/2,Ta+=o*(e+r)/2,Ra+=o,Gt(t=n,e=r)}var t,e;Wa.point=function(r,i){Wa.point=n,Gt(t=r,e=i)}}function Qt(){Wa.point=Gt}function ne(){function n(n,t){var e=n-r,u=t-i,o=Math.sqrt(e*e+u*u);qa+=o*(r+n)/2,Ta+=o*(i+t)/2,Ra+=o,o=i*n-r*t,Da+=o*(r+n),Pa+=o*(i+t),Ua+=3*o,Gt(r=n,i=t)}var t,e,r,i;Wa.point=function(u,o){Wa.point=n,Gt(t=r=u,e=i=o)},Wa.lineEnd=function(){n(t,e)}}function te(n){function t(t,e){n.moveTo(t+o,e),n.arc(t,e,o,0,Ho)}function e(t,e){n.moveTo(t,e),a.point=r}function r(t,e){n.lineTo(t,e)}function i(){a.point=t}function u(){n.closePath()}var o=4.5,a={point:t,lineStart:function(){a.point=e},lineEnd:i,polygonStart:function(){a.lineEnd=u},polygonEnd:function(){a.lineEnd=i,a.point=t},pointRadius:function(n){return o=n,a},result:b};return a}function ee(n){function t(n){return(a?r:e)(n)}function e(t){return ue(t,function(e,r){e=n(e,r),t.point(e[0],e[1])})}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){M=NaN,S.point=u,t.lineStart()}function u(e,r){var u=dt([e,r]),o=n(e,r);i(M,x,m,b,_,w,M=o[0],x=o[1],m=e,b=u[0],_=u[1],w=u[2],a,t),t.point(M,x)}function o(){S.point=e,t.lineEnd()}function l(){ r(),S.point=c,S.lineEnd=f}function c(n,t){u(s=n,h=t),p=M,g=x,v=b,d=_,y=w,S.point=u}function f(){i(M,x,m,b,_,w,p,g,s,v,d,y,a,t),S.lineEnd=o,o()}var s,h,p,g,v,d,y,m,M,x,b,_,w,S={point:e,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),S.lineStart=l},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function i(t,e,r,a,l,c,f,s,h,p,g,v,d,y){var m=f-t,M=s-e,x=m*m+M*M;if(x>4*u&&d--){var b=a+p,_=l+g,w=c+v,S=Math.sqrt(b*b+_*_+w*w),k=Math.asin(w/=S),N=xo(xo(w)-1)u||xo((m*z+M*L)/x-.5)>.3||o>a*p+l*g+c*v)&&(i(t,e,r,a,l,c,A,C,N,b/=S,_/=S,w,d,y),y.point(A,C),i(A,C,N,b,_,w,f,s,h,p,g,v,d,y))}}var u=.5,o=Math.cos(30*Yo),a=16;return t.precision=function(n){return arguments.length?(a=(u=n*n)>0&&16,t):Math.sqrt(u)},t}function re(n){var t=ee(function(t,e){return n([t*Zo,e*Zo])});return function(n){return le(t(n))}}function ie(n){this.stream=n}function ue(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function oe(n){return ae(function(){return n})()}function ae(n){function t(n){return n=a(n[0]*Yo,n[1]*Yo),[n[0]*h+l,c-n[1]*h]}function e(n){return n=a.invert((n[0]-l)/h,(c-n[1])/h),n&&[n[0]*Zo,n[1]*Zo]}function r(){a=Ct(o=se(y,M,x),u);var n=u(v,d);return l=p-n[0]*h,c=g+n[1]*h,i()}function i(){return f&&(f.valid=!1,f=null),t}var u,o,a,l,c,f,s=ee(function(n,t){return n=u(n,t),[n[0]*h+l,c-n[1]*h]}),h=150,p=480,g=250,v=0,d=0,y=0,M=0,x=0,b=Fa,_=m,w=null,S=null;return t.stream=function(n){return f&&(f.valid=!1),f=le(b(o,s(_(n)))),f.valid=!0,f},t.clipAngle=function(n){return arguments.length?(b=null==n?(w=n,Fa):It((w=+n)*Yo),i()):w},t.clipExtent=function(n){return arguments.length?(S=n,_=n?Zt(n[0][0],n[0][1],n[1][0],n[1][1]):m,i()):S},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(p=+n[0],g=+n[1],r()):[p,g]},t.center=function(n){return arguments.length?(v=n[0]%360*Yo,d=n[1]%360*Yo,r()):[v*Zo,d*Zo]},t.rotate=function(n){return arguments.length?(y=n[0]%360*Yo,M=n[1]%360*Yo,x=n.length>2?n[2]%360*Yo:0,r()):[y*Zo,M*Zo,x*Zo]},ao.rebind(t,s,"precision"),function(){return u=n.apply(this,arguments),t.invert=u.invert&&e,r()}}function le(n){return ue(n,function(t,e){n.point(t*Yo,e*Yo)})}function ce(n,t){return[n,t]}function fe(n,t){return[n>Fo?n-Ho:-Fo>n?n+Ho:n,t]}function se(n,t,e){return n?t||e?Ct(pe(n),ge(t,e)):pe(n):t||e?ge(t,e):fe}function he(n){return function(t,e){return t+=n,[t>Fo?t-Ho:-Fo>t?t+Ho:t,e]}}function pe(n){var t=he(n);return t.invert=he(-n),t}function ge(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),f=c*r+a*i;return[Math.atan2(l*u-f*o,a*r-c*i),tn(f*u+l*o)]}var r=Math.cos(n),i=Math.sin(n),u=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),f=c*u-l*o;return[Math.atan2(l*u+c*o,a*r+f*i),tn(f*r-a*i)]},e}function ve(n,t){var e=Math.cos(n),r=Math.sin(n);return function(i,u,o,a){var l=o*t;null!=i?(i=de(e,i),u=de(e,u),(o>0?u>i:i>u)&&(i+=o*Ho)):(i=n+o*Ho,u=n-.5*l);for(var c,f=i;o>0?f>u:u>f;f-=l)a.point((c=_t([e,-r*Math.cos(f),-r*Math.sin(f)]))[0],c[1])}}function de(n,t){var e=dt(t);e[0]-=n,bt(e);var r=nn(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Uo)%(2*Math.PI)}function ye(n,t,e){var r=ao.range(n,t-Uo,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function me(n,t,e){var r=ao.range(n,t-Uo,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function Me(n){return n.source}function xe(n){return n.target}function be(n,t,e,r){var i=Math.cos(t),u=Math.sin(t),o=Math.cos(r),a=Math.sin(r),l=i*Math.cos(n),c=i*Math.sin(n),f=o*Math.cos(e),s=o*Math.sin(e),h=2*Math.asin(Math.sqrt(on(r-t)+i*o*on(e-n))),p=1/Math.sin(h),g=h?function(n){var t=Math.sin(n*=h)*p,e=Math.sin(h-n)*p,r=e*l+t*f,i=e*c+t*s,o=e*u+t*a;return[Math.atan2(i,r)*Zo,Math.atan2(o,Math.sqrt(r*r+i*i))*Zo]}:function(){return[n*Zo,t*Zo]};return g.distance=h,g}function _e(){function n(n,i){var u=Math.sin(i*=Yo),o=Math.cos(i),a=xo((n*=Yo)-t),l=Math.cos(a);Ja+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*u-e*o*l)*a),e*u+r*o*l),t=n,e=u,r=o}var t,e,r;Ga.point=function(i,u){t=i*Yo,e=Math.sin(u*=Yo),r=Math.cos(u),Ga.point=n},Ga.lineEnd=function(){Ga.point=Ga.lineEnd=b}}function we(n,t){function e(t,e){var r=Math.cos(t),i=Math.cos(e),u=n(r*i);return[u*i*Math.sin(t),u*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),i=t(r),u=Math.sin(i),o=Math.cos(i);return[Math.atan2(n*u,r*o),Math.asin(r&&e*u/r)]},e}function Se(n,t){function e(n,t){o>0?-Io+Uo>t&&(t=-Io+Uo):t>Io-Uo&&(t=Io-Uo);var e=o/Math.pow(i(t),u);return[e*Math.sin(u*n),o-e*Math.cos(u*n)]}var r=Math.cos(n),i=function(n){return Math.tan(Fo/4+n/2)},u=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(i(t)/i(n)),o=r*Math.pow(i(n),u)/u;return u?(e.invert=function(n,t){var e=o-t,r=K(u)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/u,2*Math.atan(Math.pow(o/r,1/u))-Io]},e):Ne}function ke(n,t){function e(n,t){var e=u-t;return[e*Math.sin(i*n),u-e*Math.cos(i*n)]}var r=Math.cos(n),i=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),u=r/i+n;return xo(i)i;i++){for(;r>1&&Q(n[e[r-2]],n[e[r-1]],n[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function qe(n,t){return n[0]-t[0]||n[1]-t[1]}function Te(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Re(n,t,e,r){var i=n[0],u=e[0],o=t[0]-i,a=r[0]-u,l=n[1],c=e[1],f=t[1]-l,s=r[1]-c,h=(a*(l-c)-s*(i-u))/(s*o-a*f);return[i+h*o,l+h*f]}function De(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Pe(){rr(this),this.edge=this.site=this.circle=null}function Ue(n){var t=cl.pop()||new Pe;return t.site=n,t}function je(n){Be(n),ol.remove(n),cl.push(n),rr(n)}function Fe(n){var t=n.circle,e=t.x,r=t.cy,i={x:e,y:r},u=n.P,o=n.N,a=[n];je(n);for(var l=u;l.circle&&xo(e-l.circle.x)f;++f)c=a[f],l=a[f-1],nr(c.edge,l.site,c.site,i);l=a[0],c=a[s-1],c.edge=Ke(l.site,c.site,null,i),$e(l),$e(c)}function He(n){for(var t,e,r,i,u=n.x,o=n.y,a=ol._;a;)if(r=Oe(a,o)-u,r>Uo)a=a.L;else{if(i=u-Ie(a,o),!(i>Uo)){r>-Uo?(t=a.P,e=a):i>-Uo?(t=a,e=a.N):t=e=a;break}if(!a.R){t=a;break}a=a.R}var l=Ue(n);if(ol.insert(t,l),t||e){if(t===e)return Be(t),e=Ue(t.site),ol.insert(l,e),l.edge=e.edge=Ke(t.site,l.site),$e(t),void $e(e);if(!e)return void(l.edge=Ke(t.site,l.site));Be(t),Be(e);var c=t.site,f=c.x,s=c.y,h=n.x-f,p=n.y-s,g=e.site,v=g.x-f,d=g.y-s,y=2*(h*d-p*v),m=h*h+p*p,M=v*v+d*d,x={x:(d*m-p*M)/y+f,y:(h*M-v*m)/y+s};nr(e.edge,c,g,x),l.edge=Ke(c,n,null,x),e.edge=Ke(n,g,null,x),$e(t),$e(e)}}function Oe(n,t){var e=n.site,r=e.x,i=e.y,u=i-t;if(!u)return r;var o=n.P;if(!o)return-(1/0);e=o.site;var a=e.x,l=e.y,c=l-t;if(!c)return a;var f=a-r,s=1/u-1/c,h=f/c;return s?(-h+Math.sqrt(h*h-2*s*(f*f/(-2*c)-l+c/2+i-u/2)))/s+r:(r+a)/2}function Ie(n,t){var e=n.N;if(e)return Oe(e,t);var r=n.site;return r.y===t?r.x:1/0}function Ye(n){this.site=n,this.edges=[]}function Ze(n){for(var t,e,r,i,u,o,a,l,c,f,s=n[0][0],h=n[1][0],p=n[0][1],g=n[1][1],v=ul,d=v.length;d--;)if(u=v[d],u&&u.prepare())for(a=u.edges,l=a.length,o=0;l>o;)f=a[o].end(),r=f.x,i=f.y,c=a[++o%l].start(),t=c.x,e=c.y,(xo(r-t)>Uo||xo(i-e)>Uo)&&(a.splice(o,0,new tr(Qe(u.site,f,xo(r-s)Uo?{x:s,y:xo(t-s)Uo?{x:xo(e-g)Uo?{x:h,y:xo(t-h)Uo?{x:xo(e-p)=-jo)){var p=l*l+c*c,g=f*f+s*s,v=(s*p-c*g)/h,d=(l*g-f*p)/h,s=d+a,y=fl.pop()||new Xe;y.arc=n,y.site=i,y.x=v+o,y.y=s+Math.sqrt(v*v+d*d),y.cy=s,n.circle=y;for(var m=null,M=ll._;M;)if(y.yd||d>=a)return;if(h>g){if(u){if(u.y>=c)return}else u={x:d,y:l};e={x:d,y:c}}else{if(u){if(u.yr||r>1)if(h>g){if(u){if(u.y>=c)return}else u={x:(l-i)/r,y:l};e={x:(c-i)/r,y:c}}else{if(u){if(u.yp){if(u){if(u.x>=a)return}else u={x:o,y:r*o+i};e={x:a,y:r*a+i}}else{if(u){if(u.xu||s>o||r>h||i>p)){if(g=n.point){var g,v=t-n.x,d=e-n.y,y=v*v+d*d;if(l>y){var m=Math.sqrt(l=y);r=t-m,i=e-m,u=t+m,o=e+m,a=g}}for(var M=n.nodes,x=.5*(f+h),b=.5*(s+p),_=t>=x,w=e>=b,S=w<<1|_,k=S+4;k>S;++S)if(n=M[3&S])switch(3&S){case 0:c(n,f,s,x,b);break;case 1:c(n,x,s,h,b);break;case 2:c(n,f,b,x,p);break;case 3:c(n,x,b,h,p)}}}(n,r,i,u,o),a}function vr(n,t){n=ao.rgb(n),t=ao.rgb(t);var e=n.r,r=n.g,i=n.b,u=t.r-e,o=t.g-r,a=t.b-i;return function(n){return"#"+bn(Math.round(e+u*n))+bn(Math.round(r+o*n))+bn(Math.round(i+a*n))}}function dr(n,t){var e,r={},i={};for(e in n)e in t?r[e]=Mr(n[e],t[e]):i[e]=n[e];for(e in t)e in n||(i[e]=t[e]);return function(n){for(e in r)i[e]=r[e](n);return i}}function yr(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function mr(n,t){var e,r,i,u=hl.lastIndex=pl.lastIndex=0,o=-1,a=[],l=[];for(n+="",t+="";(e=hl.exec(n))&&(r=pl.exec(t));)(i=r.index)>u&&(i=t.slice(u,i),a[o]?a[o]+=i:a[++o]=i),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,l.push({i:o,x:yr(e,r)})),u=pl.lastIndex;return ur;++r)a[(e=l[r]).i]=e.x(n);return a.join("")})}function Mr(n,t){for(var e,r=ao.interpolators.length;--r>=0&&!(e=ao.interpolators[r](n,t)););return e}function xr(n,t){var e,r=[],i=[],u=n.length,o=t.length,a=Math.min(n.length,t.length);for(e=0;a>e;++e)r.push(Mr(n[e],t[e]));for(;u>e;++e)i[e]=n[e];for(;o>e;++e)i[e]=t[e];return function(n){for(e=0;a>e;++e)i[e]=r[e](n);return i}}function br(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function _r(n){return function(t){return 1-n(1-t)}}function wr(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function Sr(n){return n*n}function kr(n){return n*n*n}function Nr(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function Er(n){return function(t){return Math.pow(t,n)}}function Ar(n){return 1-Math.cos(n*Io)}function Cr(n){return Math.pow(2,10*(n-1))}function zr(n){return 1-Math.sqrt(1-n*n)}function Lr(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/Ho*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*Ho/t)}}function qr(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function Tr(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Rr(n,t){n=ao.hcl(n),t=ao.hcl(t);var e=n.h,r=n.c,i=n.l,u=t.h-e,o=t.c-r,a=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(u)?(u=0,e=isNaN(e)?t.h:e):u>180?u-=360:-180>u&&(u+=360),function(n){return sn(e+u*n,r+o*n,i+a*n)+""}}function Dr(n,t){n=ao.hsl(n),t=ao.hsl(t);var e=n.h,r=n.s,i=n.l,u=t.h-e,o=t.s-r,a=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(u)?(u=0,e=isNaN(e)?t.h:e):u>180?u-=360:-180>u&&(u+=360),function(n){return cn(e+u*n,r+o*n,i+a*n)+""}}function Pr(n,t){n=ao.lab(n),t=ao.lab(t);var e=n.l,r=n.a,i=n.b,u=t.l-e,o=t.a-r,a=t.b-i;return function(n){return pn(e+u*n,r+o*n,i+a*n)+""}}function Ur(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function jr(n){var t=[n.a,n.b],e=[n.c,n.d],r=Hr(t),i=Fr(t,e),u=Hr(Or(e,t,-i))||0;t[0]*e[1]180?t+=360:t-n>180&&(n+=360),r.push({i:e.push(Ir(e)+"rotate(",null,")")-2,x:yr(n,t)})):t&&e.push(Ir(e)+"rotate("+t+")")}function Vr(n,t,e,r){n!==t?r.push({i:e.push(Ir(e)+"skewX(",null,")")-2,x:yr(n,t)}):t&&e.push(Ir(e)+"skewX("+t+")")}function Xr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var i=e.push(Ir(e)+"scale(",null,",",null,")");r.push({i:i-4,x:yr(n[0],t[0])},{i:i-2,x:yr(n[1],t[1])})}else 1===t[0]&&1===t[1]||e.push(Ir(e)+"scale("+t+")")}function $r(n,t){var e=[],r=[];return n=ao.transform(n),t=ao.transform(t),Yr(n.translate,t.translate,e,r),Zr(n.rotate,t.rotate,e,r),Vr(n.skew,t.skew,e,r),Xr(n.scale,t.scale,e,r),n=t=null,function(n){for(var t,i=-1,u=r.length;++i=0;)e.push(i[r])}function oi(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(u=n.children)&&(i=u.length))for(var i,u,o=-1;++oe;++e)(t=n[e][1])>i&&(r=e,i=t);return r}function yi(n){return n.reduce(mi,0)}function mi(n,t){return n+t[1]}function Mi(n,t){return xi(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function xi(n,t){for(var e=-1,r=+n[0],i=(n[1]-r)/t,u=[];++e<=t;)u[e]=i*e+r;return u}function bi(n){return[ao.min(n),ao.max(n)]}function _i(n,t){return n.value-t.value}function wi(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function Si(n,t){n._pack_next=t,t._pack_prev=n}function ki(n,t){var e=t.x-n.x,r=t.y-n.y,i=n.r+t.r;return.999*i*i>e*e+r*r}function Ni(n){function t(n){f=Math.min(n.x-n.r,f),s=Math.max(n.x+n.r,s),h=Math.min(n.y-n.r,h),p=Math.max(n.y+n.r,p)}if((e=n.children)&&(c=e.length)){var e,r,i,u,o,a,l,c,f=1/0,s=-(1/0),h=1/0,p=-(1/0);if(e.forEach(Ei),r=e[0],r.x=-r.r,r.y=0,t(r),c>1&&(i=e[1],i.x=i.r,i.y=0,t(i),c>2))for(u=e[2],zi(r,i,u),t(u),wi(r,u),r._pack_prev=u,wi(u,i),i=r._pack_next,o=3;c>o;o++){zi(r,i,u=e[o]);var g=0,v=1,d=1;for(a=i._pack_next;a!==i;a=a._pack_next,v++)if(ki(a,u)){g=1;break}if(1==g)for(l=r._pack_prev;l!==a._pack_prev&&!ki(l,u);l=l._pack_prev,d++);g?(d>v||v==d&&i.ro;o++)u=e[o],u.x-=y,u.y-=m,M=Math.max(M,u.r+Math.sqrt(u.x*u.x+u.y*u.y));n.r=M,e.forEach(Ai)}}function Ei(n){n._pack_next=n._pack_prev=n}function Ai(n){delete n._pack_next,delete n._pack_prev}function Ci(n,t,e,r){var i=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,i)for(var u=-1,o=i.length;++u=0;)t=i[u],t.z+=e,t.m+=e,e+=t.s+(r+=t.c)}function Pi(n,t,e){return n.a.parent===t.parent?n.a:e}function Ui(n){return 1+ao.max(n,function(n){return n.y})}function ji(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Fi(n){var t=n.children;return t&&t.length?Fi(t[0]):n}function Hi(n){var t,e=n.children;return e&&(t=e.length)?Hi(e[t-1]):n}function Oi(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Ii(n,t){var e=n.x+t[3],r=n.y+t[0],i=n.dx-t[1]-t[3],u=n.dy-t[0]-t[2];return 0>i&&(e+=i/2,i=0),0>u&&(r+=u/2,u=0),{x:e,y:r,dx:i,dy:u}}function Yi(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Zi(n){return n.rangeExtent?n.rangeExtent():Yi(n.range())}function Vi(n,t,e,r){var i=e(n[0],n[1]),u=r(t[0],t[1]);return function(n){return u(i(n))}}function Xi(n,t){var e,r=0,i=n.length-1,u=n[r],o=n[i];return u>o&&(e=r,r=i,i=e,e=u,u=o,o=e),n[r]=t.floor(u),n[i]=t.ceil(o),n}function $i(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:Sl}function Bi(n,t,e,r){var i=[],u=[],o=0,a=Math.min(n.length,t.length)-1;for(n[a]2?Bi:Vi,l=r?Wr:Br;return o=i(n,t,l,e),a=i(t,n,l,Mr),u}function u(n){return o(n)}var o,a;return u.invert=function(n){return a(n)},u.domain=function(t){return arguments.length?(n=t.map(Number),i()):n},u.range=function(n){return arguments.length?(t=n,i()):t},u.rangeRound=function(n){return u.range(n).interpolate(Ur)},u.clamp=function(n){return arguments.length?(r=n,i()):r},u.interpolate=function(n){return arguments.length?(e=n,i()):e},u.ticks=function(t){return Qi(n,t)},u.tickFormat=function(t,e){return nu(n,t,e)},u.nice=function(t){return Gi(n,t),i()},u.copy=function(){return Wi(n,t,e,r)},i()}function Ji(n,t){return ao.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Gi(n,t){return Xi(n,$i(Ki(n,t)[2])),Xi(n,$i(Ki(n,t)[2])),n}function Ki(n,t){null==t&&(t=10);var e=Yi(n),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),u=t/r*i;return.15>=u?i*=10:.35>=u?i*=5:.75>=u&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function Qi(n,t){return ao.range.apply(ao,Ki(n,t))}function nu(n,t,e){var r=Ki(n,t);if(e){var i=ha.exec(e);if(i.shift(),"s"===i[8]){var u=ao.formatPrefix(Math.max(xo(r[0]),xo(r[1])));return i[7]||(i[7]="."+tu(u.scale(r[2]))),i[8]="f",e=ao.format(i.join("")),function(n){return e(u.scale(n))+u.symbol}}i[7]||(i[7]="."+eu(i[8],r)),e=i.join("")}else e=",."+tu(r[2])+"f";return ao.format(e)}function tu(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function eu(n,t){var e=tu(t[2]);return n in kl?Math.abs(e-tu(Math.max(xo(t[0]),xo(t[1]))))+ +("e"!==n):e-2*("%"===n)}function ru(n,t,e,r){function i(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function u(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function o(t){return n(i(t))}return o.invert=function(t){return u(n.invert(t))},o.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(i)),o):r},o.base=function(e){return arguments.length?(t=+e,n.domain(r.map(i)),o):t},o.nice=function(){var t=Xi(r.map(i),e?Math:El);return n.domain(t),r=t.map(u),o},o.ticks=function(){var n=Yi(r),o=[],a=n[0],l=n[1],c=Math.floor(i(a)),f=Math.ceil(i(l)),s=t%1?2:t;if(isFinite(f-c)){if(e){for(;f>c;c++)for(var h=1;s>h;h++)o.push(u(c)*h);o.push(u(c))}else for(o.push(u(c));c++0;h--)o.push(u(c)*h);for(c=0;o[c]l;f--);o=o.slice(c,f)}return o},o.tickFormat=function(n,e){if(!arguments.length)return Nl;arguments.length<2?e=Nl:"function"!=typeof e&&(e=ao.format(e));var r=Math.max(1,t*n/o.ticks().length);return function(n){var o=n/u(Math.round(i(n)));return t-.5>o*t&&(o*=t),r>=o?e(n):""}},o.copy=function(){return ru(n.copy(),t,e,r)},Ji(o,n)}function iu(n,t,e){function r(t){return n(i(t))}var i=uu(t),u=uu(1/t);return r.invert=function(t){return u(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(i)),r):e},r.ticks=function(n){return Qi(e,n)},r.tickFormat=function(n,t){return nu(e,n,t)},r.nice=function(n){return r.domain(Gi(e,n))},r.exponent=function(o){return arguments.length?(i=uu(t=o),u=uu(1/t),n.domain(e.map(i)),r):t},r.copy=function(){return iu(n.copy(),t,e)},Ji(r,n)}function uu(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function ou(n,t){function e(e){return u[((i.get(e)||("range"===t.t?i.set(e,n.push(e)):NaN))-1)%u.length]}function r(t,e){return ao.range(n.length).map(function(n){return t+e*n})}var i,u,o;return e.domain=function(r){if(!arguments.length)return n;n=[],i=new c;for(var u,o=-1,a=r.length;++oe?[NaN,NaN]:[e>0?a[e-1]:n[0],et?NaN:t/u+n,[t,t+1/u]},r.copy=function(){return lu(n,t,e)},i()}function cu(n,t){function e(e){return e>=e?t[ao.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return cu(n,t)},e}function fu(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Qi(n,t)},t.tickFormat=function(t,e){return nu(n,t,e)},t.copy=function(){return fu(n)},t}function su(){return 0}function hu(n){return n.innerRadius}function pu(n){return n.outerRadius}function gu(n){return n.startAngle}function vu(n){return n.endAngle}function du(n){return n&&n.padAngle}function yu(n,t,e,r){return(n-e)*t-(t-r)*n>0?0:1}function mu(n,t,e,r,i){var u=n[0]-t[0],o=n[1]-t[1],a=(i?r:-r)/Math.sqrt(u*u+o*o),l=a*o,c=-a*u,f=n[0]+l,s=n[1]+c,h=t[0]+l,p=t[1]+c,g=(f+h)/2,v=(s+p)/2,d=h-f,y=p-s,m=d*d+y*y,M=e-r,x=f*p-h*s,b=(0>y?-1:1)*Math.sqrt(Math.max(0,M*M*m-x*x)),_=(x*y-d*b)/m,w=(-x*d-y*b)/m,S=(x*y+d*b)/m,k=(-x*d+y*b)/m,N=_-g,E=w-v,A=S-g,C=k-v;return N*N+E*E>A*A+C*C&&(_=S,w=k),[[_-l,w-c],[_*e/M,w*e/M]]}function Mu(n){function t(t){function o(){c.push("M",u(n(f),a))}for(var l,c=[],f=[],s=-1,h=t.length,p=En(e),g=En(r);++s1?n.join("L"):n+"Z"}function bu(n){return n.join("L")+"Z"}function _u(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t1&&i.push("H",r[0]),i.join("")}function wu(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];++t1){a=t[1],u=n[l],l++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(u[0]-a[0])+","+(u[1]-a[1])+","+u[0]+","+u[1];for(var c=2;c9&&(i=3*t/Math.sqrt(i),o[a]=i*e,o[a+1]=i*r));for(a=-1;++a<=l;)i=(n[Math.min(l,a+1)][0]-n[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),u.push([i||0,o[a]*i||0]);return u}function Fu(n){return n.length<3?xu(n):n[0]+Au(n,ju(n))}function Hu(n){for(var t,e,r,i=-1,u=n.length;++i=t?o(n-t):void(f.c=o)}function o(e){var i=g.active,u=g[i];u&&(u.timer.c=null,u.timer.t=NaN,--g.count,delete g[i],u.event&&u.event.interrupt.call(n,n.__data__,u.index));for(var o in g)if(r>+o){var c=g[o];c.timer.c=null,c.timer.t=NaN,--g.count,delete g[o]}f.c=a,qn(function(){return f.c&&a(e||1)&&(f.c=null,f.t=NaN),1},0,l),g.active=r,v.event&&v.event.start.call(n,n.__data__,t),p=[],v.tween.forEach(function(e,r){(r=r.call(n,n.__data__,t))&&p.push(r)}),h=v.ease,s=v.duration}function a(i){for(var u=i/s,o=h(u),a=p.length;a>0;)p[--a].call(n,o);return u>=1?(v.event&&v.event.end.call(n,n.__data__,t),--g.count?delete g[r]:delete n[e],1):void 0}var l,f,s,h,p,g=n[e]||(n[e]={active:0,count:0}),v=g[r];v||(l=i.time,f=qn(u,0,l),v=g[r]={tween:new c,time:l,timer:f,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++g.count)}function no(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function to(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function eo(n){return n.toISOString()}function ro(n,t,e){function r(t){return n(t)}function i(n,e){var r=n[1]-n[0],i=r/e,u=ao.bisect(Kl,i);return u==Kl.length?[t.year,Ki(n.map(function(n){return n/31536e6}),e)[2]]:u?t[i/Kl[u-1]1?{floor:function(t){for(;e(t=n.floor(t));)t=io(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=io(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Yi(r.domain()),u=null==n?i(e,10):"number"==typeof n?i(e,n):!n.range&&[{range:n},t];return u&&(n=u[0],t=u[1]),n.range(e[0],io(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return ro(n.copy(),t,e)},Ji(r,n)}function io(n){return new Date(n)}function uo(n){return JSON.parse(n.responseText)}function oo(n){var t=fo.createRange();return t.selectNode(fo.body),t.createContextualFragment(n.responseText)}var ao={version:"3.5.17"},lo=[].slice,co=function(n){return lo.call(n)},fo=this.document;if(fo)try{co(fo.documentElement.childNodes)[0].nodeType}catch(so){co=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),fo)try{fo.createElement("DIV").style.setProperty("opacity",0,"")}catch(ho){var po=this.Element.prototype,go=po.setAttribute,vo=po.setAttributeNS,yo=this.CSSStyleDeclaration.prototype,mo=yo.setProperty;po.setAttribute=function(n,t){go.call(this,n,t+"")},po.setAttributeNS=function(n,t,e){vo.call(this,n,t,e+"")},yo.setProperty=function(n,t,e){mo.call(this,n,t+"",e)}}ao.ascending=e,ao.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:NaN},ao.min=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i=r){e=r;break}for(;++ir&&(e=r)}else{for(;++i=r){e=r;break}for(;++ir&&(e=r)}return e},ao.max=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i=r){e=r;break}for(;++ie&&(e=r)}else{for(;++i=r){e=r;break}for(;++ie&&(e=r)}return e},ao.extent=function(n,t){var e,r,i,u=-1,o=n.length;if(1===arguments.length){for(;++u=r){e=i=r;break}for(;++ur&&(e=r),r>i&&(i=r))}else{for(;++u=r){e=i=r;break}for(;++ur&&(e=r),r>i&&(i=r))}return[e,i]},ao.sum=function(n,t){var e,r=0,u=n.length,o=-1;if(1===arguments.length)for(;++o1?l/(f-1):void 0},ao.deviation=function(){var n=ao.variance.apply(this,arguments);return n?Math.sqrt(n):n};var Mo=u(e);ao.bisectLeft=Mo.left,ao.bisect=ao.bisectRight=Mo.right,ao.bisector=function(n){return u(1===n.length?function(t,r){return e(n(t),r)}:n)},ao.shuffle=function(n,t,e){(u=arguments.length)<3&&(e=n.length,2>u&&(t=0));for(var r,i,u=e-t;u;)i=Math.random()*u--|0,r=n[u+t],n[u+t]=n[i+t],n[i+t]=r;return n},ao.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},ao.pairs=function(n){for(var t,e=0,r=n.length-1,i=n[0],u=new Array(0>r?0:r);r>e;)u[e]=[t=i,i=n[++e]];return u},ao.transpose=function(n){if(!(i=n.length))return[];for(var t=-1,e=ao.min(n,o),r=new Array(e);++t=0;)for(r=n[i],t=r.length;--t>=0;)e[--o]=r[t];return e};var xo=Math.abs;ao.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e===1/0)throw new Error("infinite range");var r,i=[],u=a(xo(e)),o=-1;if(n*=u,t*=u,e*=u,0>e)for(;(r=n+e*++o)>t;)i.push(r/u);else for(;(r=n+e*++o)=u.length)return r?r.call(i,o):e?o.sort(e):o;for(var l,f,s,h,p=-1,g=o.length,v=u[a++],d=new c;++p=u.length)return n;var r=[],i=o[e++];return n.forEach(function(n,i){r.push({key:n,values:t(i,e)})}),i?r.sort(function(n,t){return i(n.key,t.key)}):r}var e,r,i={},u=[],o=[];return i.map=function(t,e){return n(e,t,0)},i.entries=function(e){return t(n(ao.map,e,0),0)},i.key=function(n){return u.push(n),i},i.sortKeys=function(n){return o[u.length-1]=n,i},i.sortValues=function(n){return e=n,i},i.rollup=function(n){return r=n,i},i},ao.set=function(n){var t=new y;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},l(y,{has:h,add:function(n){return this._[f(n+="")]=!0,n},remove:p,values:g,size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,s(t))}}),ao.behavior={},ao.rebind=function(n,t){for(var e,r=1,i=arguments.length;++r=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},ao.event=null,ao.requote=function(n){return n.replace(So,"\\$&")};var So=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ko={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},No=function(n,t){return t.querySelector(n)},Eo=function(n,t){return t.querySelectorAll(n)},Ao=function(n,t){var e=n.matches||n[x(n,"matchesSelector")];return(Ao=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(No=function(n,t){return Sizzle(n,t)[0]||null},Eo=Sizzle,Ao=Sizzle.matchesSelector),ao.selection=function(){return ao.select(fo.documentElement)};var Co=ao.selection.prototype=[];Co.select=function(n){var t,e,r,i,u=[];n=A(n);for(var o=-1,a=this.length;++o=0&&"xmlns"!==(e=n.slice(0,t))&&(n=n.slice(t+1)),Lo.hasOwnProperty(e)?{space:Lo[e],local:n}:n}},Co.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=ao.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(z(t,n[t]));return this}return this.each(z(n,t))},Co.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=T(n)).length,i=-1;if(t=e.classList){for(;++ii){if("string"!=typeof n){2>i&&(e="");for(r in n)this.each(P(r,n[r],e));return this}if(2>i){var u=this.node();return t(u).getComputedStyle(u,null).getPropertyValue(n)}r=""}return this.each(P(n,e,r))},Co.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(U(t,n[t]));return this}return this.each(U(n,t))},Co.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},Co.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},Co.append=function(n){return n=j(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},Co.insert=function(n,t){return n=j(n),t=A(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},Co.remove=function(){return this.each(F)},Co.data=function(n,t){function e(n,e){var r,i,u,o=n.length,s=e.length,h=Math.min(o,s),p=new Array(s),g=new Array(s),v=new Array(o);if(t){var d,y=new c,m=new Array(o);for(r=-1;++rr;++r)g[r]=H(e[r]);for(;o>r;++r)v[r]=n[r]}g.update=p,g.parentNode=p.parentNode=v.parentNode=n.parentNode,a.push(g),l.push(p),f.push(v)}var r,i,u=-1,o=this.length;if(!arguments.length){for(n=new Array(o=(r=this[0]).length);++uu;u++){i.push(t=[]),t.parentNode=(e=this[u]).parentNode;for(var a=0,l=e.length;l>a;a++)(r=e[a])&&n.call(r,r.__data__,a,u)&&t.push(r)}return E(i)},Co.order=function(){for(var n=-1,t=this.length;++n=0;)(e=r[i])&&(u&&u!==e.nextSibling&&u.parentNode.insertBefore(e,u),u=e);return this},Co.sort=function(n){n=I.apply(this,arguments);for(var t=-1,e=this.length;++tn;n++)for(var e=this[n],r=0,i=e.length;i>r;r++){var u=e[r];if(u)return u}return null},Co.size=function(){var n=0;return Y(this,function(){++n}),n};var qo=[];ao.selection.enter=Z,ao.selection.enter.prototype=qo,qo.append=Co.append,qo.empty=Co.empty,qo.node=Co.node,qo.call=Co.call,qo.size=Co.size,qo.select=function(n){for(var t,e,r,i,u,o=[],a=-1,l=this.length;++ar){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(X(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(X(n,t,e))};var To=ao.map({mouseenter:"mouseover",mouseleave:"mouseout"});fo&&To.forEach(function(n){"on"+n in fo&&To.remove(n)});var Ro,Do=0;ao.mouse=function(n){return J(n,k())};var Po=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ao.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=k().changedTouches),t)for(var r,i=0,u=t.length;u>i;++i)if((r=t[i]).identifier===e)return J(n,r)},ao.behavior.drag=function(){function n(){this.on("mousedown.drag",u).on("touchstart.drag",o)}function e(n,t,e,u,o){return function(){function a(){var n,e,r=t(h,v);r&&(n=r[0]-M[0],e=r[1]-M[1],g|=n|e,M=r,p({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:n,dy:e}))}function l(){t(h,v)&&(y.on(u+d,null).on(o+d,null),m(g),p({type:"dragend"}))}var c,f=this,s=ao.event.target.correspondingElement||ao.event.target,h=f.parentNode,p=r.of(f,arguments),g=0,v=n(),d=".drag"+(null==v?"":"-"+v),y=ao.select(e(s)).on(u+d,a).on(o+d,l),m=W(s),M=t(h,v);i?(c=i.apply(f,arguments),c=[c.x-M[0],c.y-M[1]]):c=[0,0],p({type:"dragstart"})}}var r=N(n,"drag","dragstart","dragend"),i=null,u=e(b,ao.mouse,t,"mousemove","mouseup"),o=e(G,ao.touch,m,"touchmove","touchend");return n.origin=function(t){return arguments.length?(i=t,n):i},ao.rebind(n,r,"on")},ao.touches=function(n,t){return arguments.length<2&&(t=k().touches),t?co(t).map(function(t){var e=J(n,t);return e.identifier=t.identifier,e}):[]};var Uo=1e-6,jo=Uo*Uo,Fo=Math.PI,Ho=2*Fo,Oo=Ho-Uo,Io=Fo/2,Yo=Fo/180,Zo=180/Fo,Vo=Math.SQRT2,Xo=2,$o=4;ao.interpolateZoom=function(n,t){var e,r,i=n[0],u=n[1],o=n[2],a=t[0],l=t[1],c=t[2],f=a-i,s=l-u,h=f*f+s*s;if(jo>h)r=Math.log(c/o)/Vo,e=function(n){return[i+n*f,u+n*s,o*Math.exp(Vo*n*r)]};else{var p=Math.sqrt(h),g=(c*c-o*o+$o*h)/(2*o*Xo*p),v=(c*c-o*o-$o*h)/(2*c*Xo*p),d=Math.log(Math.sqrt(g*g+1)-g),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-d)/Vo,e=function(n){var t=n*r,e=rn(d),a=o/(Xo*p)*(e*un(Vo*t+d)-en(d));return[i+a*f,u+a*s,o*e/rn(Vo*t+d)]}}return e.duration=1e3*r,e},ao.behavior.zoom=function(){function n(n){n.on(L,s).on(Wo+".zoom",p).on("dblclick.zoom",g).on(R,h)}function e(n){return[(n[0]-k.x)/k.k,(n[1]-k.y)/k.k]}function r(n){return[n[0]*k.k+k.x,n[1]*k.k+k.y]}function i(n){k.k=Math.max(A[0],Math.min(A[1],n))}function u(n,t){t=r(t),k.x+=n[0]-t[0],k.y+=n[1]-t[1]}function o(t,e,r,o){t.__chart__={x:k.x,y:k.y,k:k.k},i(Math.pow(2,o)),u(d=e,r),t=ao.select(t),C>0&&(t=t.transition().duration(C)),t.call(n.event)}function a(){b&&b.domain(x.range().map(function(n){return(n-k.x)/k.k}).map(x.invert)),w&&w.domain(_.range().map(function(n){return(n-k.y)/k.k}).map(_.invert))}function l(n){z++||n({type:"zoomstart"})}function c(n){a(),n({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function f(n){--z||(n({type:"zoomend"}),d=null)}function s(){function n(){a=1,u(ao.mouse(i),h),c(o)}function r(){s.on(q,null).on(T,null),p(a),f(o)}var i=this,o=D.of(i,arguments),a=0,s=ao.select(t(i)).on(q,n).on(T,r),h=e(ao.mouse(i)),p=W(i);Il.call(i),l(o)}function h(){function n(){var n=ao.touches(g);return p=k.k,n.forEach(function(n){n.identifier in d&&(d[n.identifier]=e(n))}),n}function t(){var t=ao.event.target;ao.select(t).on(x,r).on(b,a),_.push(t);for(var e=ao.event.changedTouches,i=0,u=e.length;u>i;++i)d[e[i].identifier]=null;var l=n(),c=Date.now();if(1===l.length){if(500>c-M){var f=l[0];o(g,f,d[f.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),S()}M=c}else if(l.length>1){var f=l[0],s=l[1],h=f[0]-s[0],p=f[1]-s[1];y=h*h+p*p}}function r(){var n,t,e,r,o=ao.touches(g);Il.call(g);for(var a=0,l=o.length;l>a;++a,r=null)if(e=o[a],r=d[e.identifier]){if(t)break;n=e,t=r}if(r){var f=(f=e[0]-n[0])*f+(f=e[1]-n[1])*f,s=y&&Math.sqrt(f/y);n=[(n[0]+e[0])/2,(n[1]+e[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],i(s*p)}M=null,u(n,t),c(v)}function a(){if(ao.event.touches.length){for(var t=ao.event.changedTouches,e=0,r=t.length;r>e;++e)delete d[t[e].identifier];for(var i in d)return void n()}ao.selectAll(_).on(m,null),w.on(L,s).on(R,h),N(),f(v)}var p,g=this,v=D.of(g,arguments),d={},y=0,m=".zoom-"+ao.event.changedTouches[0].identifier,x="touchmove"+m,b="touchend"+m,_=[],w=ao.select(g),N=W(g);t(),l(v),w.on(L,null).on(R,t)}function p(){var n=D.of(this,arguments);m?clearTimeout(m):(Il.call(this),v=e(d=y||ao.mouse(this)),l(n)),m=setTimeout(function(){m=null,f(n)},50),S(),i(Math.pow(2,.002*Bo())*k.k),u(d,v),c(n)}function g(){var n=ao.mouse(this),t=Math.log(k.k)/Math.LN2;o(this,n,e(n),ao.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var v,d,y,m,M,x,b,_,w,k={x:0,y:0,k:1},E=[960,500],A=Jo,C=250,z=0,L="mousedown.zoom",q="mousemove.zoom",T="mouseup.zoom",R="touchstart.zoom",D=N(n,"zoomstart","zoom","zoomend");return Wo||(Wo="onwheel"in fo?(Bo=function(){return-ao.event.deltaY*(ao.event.deltaMode?120:1)},"wheel"):"onmousewheel"in fo?(Bo=function(){return ao.event.wheelDelta},"mousewheel"):(Bo=function(){return-ao.event.detail},"MozMousePixelScroll")),n.event=function(n){n.each(function(){var n=D.of(this,arguments),t=k;Hl?ao.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},l(n)}).tween("zoom:zoom",function(){var e=E[0],r=E[1],i=d?d[0]:e/2,u=d?d[1]:r/2,o=ao.interpolateZoom([(i-k.x)/k.k,(u-k.y)/k.k,e/k.k],[(i-t.x)/t.k,(u-t.y)/t.k,e/t.k]);return function(t){var r=o(t),a=e/r[2];this.__chart__=k={x:i-r[0]*a,y:u-r[1]*a,k:a},c(n)}}).each("interrupt.zoom",function(){f(n)}).each("end.zoom",function(){f(n)}):(this.__chart__=k,l(n),c(n),f(n))})},n.translate=function(t){return arguments.length?(k={x:+t[0],y:+t[1],k:k.k},a(),n):[k.x,k.y]},n.scale=function(t){return arguments.length?(k={x:k.x,y:k.y,k:null},i(+t),a(),n):k.k},n.scaleExtent=function(t){return arguments.length?(A=null==t?Jo:[+t[0],+t[1]],n):A},n.center=function(t){return arguments.length?(y=t&&[+t[0],+t[1]],n):y},n.size=function(t){return arguments.length?(E=t&&[+t[0],+t[1]],n):E},n.duration=function(t){return arguments.length?(C=+t,n):C},n.x=function(t){return arguments.length?(b=t,x=t.copy(),k={x:0,y:0,k:1},n):b},n.y=function(t){return arguments.length?(w=t,_=t.copy(),k={x:0,y:0,k:1},n):w},ao.rebind(n,D,"on")};var Bo,Wo,Jo=[0,1/0];ao.color=an,an.prototype.toString=function(){return this.rgb()+""},ao.hsl=ln;var Go=ln.prototype=new an;Go.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,this.l/n)},Go.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,n*this.l)},Go.rgb=function(){return cn(this.h,this.s,this.l)},ao.hcl=fn;var Ko=fn.prototype=new an;Ko.brighter=function(n){return new fn(this.h,this.c,Math.min(100,this.l+Qo*(arguments.length?n:1)))},Ko.darker=function(n){return new fn(this.h,this.c,Math.max(0,this.l-Qo*(arguments.length?n:1)))},Ko.rgb=function(){return sn(this.h,this.c,this.l).rgb()},ao.lab=hn;var Qo=18,na=.95047,ta=1,ea=1.08883,ra=hn.prototype=new an;ra.brighter=function(n){return new hn(Math.min(100,this.l+Qo*(arguments.length?n:1)),this.a,this.b)},ra.darker=function(n){return new hn(Math.max(0,this.l-Qo*(arguments.length?n:1)),this.a,this.b)},ra.rgb=function(){return pn(this.l,this.a,this.b)},ao.rgb=mn;var ia=mn.prototype=new an;ia.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,i=30;return t||e||r?(t&&i>t&&(t=i),e&&i>e&&(e=i),r&&i>r&&(r=i),new mn(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new mn(i,i,i)},ia.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new mn(n*this.r,n*this.g,n*this.b)},ia.hsl=function(){return wn(this.r,this.g,this.b)},ia.toString=function(){return"#"+bn(this.r)+bn(this.g)+bn(this.b)};var ua=ao.map({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});ua.forEach(function(n,t){ua.set(n,Mn(t))}),ao.functor=En,ao.xhr=An(m),ao.dsv=function(n,t){function e(n,e,u){arguments.length<3&&(u=e,e=null);var o=Cn(n,t,null==e?r:i(e),u);return o.row=function(n){return arguments.length?o.response(null==(e=n)?r:i(n)):e},o}function r(n){return e.parse(n.responseText)}function i(n){return function(t){return e.parse(t.responseText,n)}}function u(t){return t.map(o).join(n)}function o(n){return a.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var a=new RegExp('["'+n+"\n]"),l=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var i=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(i(n),e)}:i})},e.parseRows=function(n,t){function e(){if(f>=c)return o;if(i)return i=!1,u;var t=f;if(34===n.charCodeAt(t)){for(var e=t;e++f;){var r=n.charCodeAt(f++),a=1;if(10===r)i=!0;else if(13===r)i=!0,10===n.charCodeAt(f)&&(++f,++a);else if(r!==l)continue;return n.slice(t,f-a)}return n.slice(t)}for(var r,i,u={},o={},a=[],c=n.length,f=0,s=0;(r=e())!==o;){for(var h=[];r!==u&&r!==o;)h.push(r),r=e();t&&null==(h=t(h,s++))||a.push(h)}return a},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new y,i=[];return t.forEach(function(n){for(var t in n)r.has(t)||i.push(r.add(t))}),[i.map(o).join(n)].concat(t.map(function(t){return i.map(function(n){return o(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(u).join("\n")},e},ao.csv=ao.dsv(",","text/csv"),ao.tsv=ao.dsv(" ","text/tab-separated-values");var oa,aa,la,ca,fa=this[x(this,"requestAnimationFrame")]||function(n){setTimeout(n,17)};ao.timer=function(){qn.apply(this,arguments)},ao.timer.flush=function(){Rn(),Dn()},ao.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var sa=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(Un);ao.formatPrefix=function(n,t){var e=0;return(n=+n)&&(0>n&&(n*=-1),t&&(n=ao.round(n,Pn(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),sa[8+e/3]};var ha=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,pa=ao.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=ao.round(n,Pn(n,t))).toFixed(Math.max(0,Math.min(20,Pn(n*(1+1e-15),t))))}}),ga=ao.time={},va=Date;Hn.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){da.setUTCDate.apply(this._,arguments)},setDay:function(){da.setUTCDay.apply(this._,arguments)},setFullYear:function(){da.setUTCFullYear.apply(this._,arguments)},setHours:function(){da.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){da.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){da.setUTCMinutes.apply(this._,arguments)},setMonth:function(){da.setUTCMonth.apply(this._,arguments)},setSeconds:function(){da.setUTCSeconds.apply(this._,arguments)},setTime:function(){da.setTime.apply(this._,arguments)}};var da=Date.prototype;ga.year=On(function(n){return n=ga.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),ga.years=ga.year.range,ga.years.utc=ga.year.utc.range,ga.day=On(function(n){var t=new va(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),ga.days=ga.day.range,ga.days.utc=ga.day.utc.range,ga.dayOfYear=function(n){var t=ga.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=ga[n]=On(function(n){return(n=ga.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=ga.year(n).getDay();return Math.floor((ga.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});ga[n+"s"]=e.range,ga[n+"s"].utc=e.utc.range,ga[n+"OfYear"]=function(n){var e=ga.year(n).getDay();return Math.floor((ga.dayOfYear(n)+(e+t)%7)/7)}}),ga.week=ga.sunday,ga.weeks=ga.sunday.range,ga.weeks.utc=ga.sunday.utc.range,ga.weekOfYear=ga.sundayOfYear;var ya={"-":"",_:" ",0:"0"},ma=/^\s*\d+/,Ma=/^%/;ao.locale=function(n){return{numberFormat:jn(n),timeFormat:Yn(n)}};var xa=ao.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",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"]});ao.format=xa.numberFormat,ao.geo={},ft.prototype={s:0,t:0,add:function(n){st(n,this.t,ba),st(ba.s,this.s,this),this.s?this.t+=ba.t:this.s=ba.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ba=new ft;ao.geo.stream=function(n,t){n&&_a.hasOwnProperty(n.type)?_a[n.type](n,t):ht(n,t)};var _a={Feature:function(n,t){ht(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,i=e.length;++rn?4*Fo+n:n,Na.lineStart=Na.lineEnd=Na.point=b}};ao.geo.bounds=function(){function n(n,t){M.push(x=[f=n,h=n]),s>t&&(s=t),t>p&&(p=t)}function t(t,e){var r=dt([t*Yo,e*Yo]);if(y){var i=mt(y,r),u=[i[1],-i[0],0],o=mt(u,i);bt(o),o=_t(o);var l=t-g,c=l>0?1:-1,v=o[0]*Zo*c,d=xo(l)>180;if(d^(v>c*g&&c*t>v)){var m=o[1]*Zo;m>p&&(p=m)}else if(v=(v+360)%360-180,d^(v>c*g&&c*t>v)){var m=-o[1]*Zo;s>m&&(s=m)}else s>e&&(s=e),e>p&&(p=e);d?g>t?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t):h>=f?(f>t&&(f=t),t>h&&(h=t)):t>g?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t)}else n(t,e);y=r,g=t}function e(){b.point=t}function r(){x[0]=f,x[1]=h,b.point=n,y=null}function i(n,e){if(y){var r=n-g;m+=xo(r)>180?r+(r>0?360:-360):r}else v=n,d=e;Na.point(n,e),t(n,e)}function u(){Na.lineStart()}function o(){i(v,d),Na.lineEnd(),xo(m)>Uo&&(f=-(h=180)),x[0]=f,x[1]=h,y=null}function a(n,t){return(t-=n)<0?t+360:t}function l(n,t){return n[0]-t[0]}function c(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nka?(f=-(h=180),s=-(p=90)):m>Uo?p=90:-Uo>m&&(s=-90),x[0]=f,x[1]=h}};return function(n){p=h=-(f=s=1/0),M=[],ao.geo.stream(n,b);var t=M.length;if(t){M.sort(l);for(var e,r=1,i=M[0],u=[i];t>r;++r)e=M[r],c(e[0],i)||c(e[1],i)?(a(i[0],e[1])>a(i[0],i[1])&&(i[1]=e[1]),a(e[0],i[1])>a(i[0],i[1])&&(i[0]=e[0])):u.push(i=e);for(var o,e,g=-(1/0),t=u.length-1,r=0,i=u[t];t>=r;i=e,++r)e=u[r],(o=a(i[1],e[0]))>g&&(g=o,f=e[0],h=i[1])}return M=x=null,f===1/0||s===1/0?[[NaN,NaN],[NaN,NaN]]:[[f,s],[h,p]]}}(),ao.geo.centroid=function(n){Ea=Aa=Ca=za=La=qa=Ta=Ra=Da=Pa=Ua=0,ao.geo.stream(n,ja);var t=Da,e=Pa,r=Ua,i=t*t+e*e+r*r;return jo>i&&(t=qa,e=Ta,r=Ra,Uo>Aa&&(t=Ca,e=za,r=La),i=t*t+e*e+r*r,jo>i)?[NaN,NaN]:[Math.atan2(e,t)*Zo,tn(r/Math.sqrt(i))*Zo]};var Ea,Aa,Ca,za,La,qa,Ta,Ra,Da,Pa,Ua,ja={sphere:b,point:St,lineStart:Nt,lineEnd:Et,polygonStart:function(){ja.lineStart=At},polygonEnd:function(){ja.lineStart=Nt}},Fa=Rt(zt,jt,Ht,[-Fo,-Fo/2]),Ha=1e9;ao.geo.clipExtent=function(){var n,t,e,r,i,u,o={stream:function(n){return i&&(i.valid=!1),i=u(n),i.valid=!0,i},extent:function(a){return arguments.length?(u=Zt(n=+a[0][0],t=+a[0][1],e=+a[1][0],r=+a[1][1]),i&&(i.valid=!1,i=null),o):[[n,t],[e,r]]}};return o.extent([[0,0],[960,500]])},(ao.geo.conicEqualArea=function(){return Vt(Xt)}).raw=Xt,ao.geo.albers=function(){return ao.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ao.geo.albersUsa=function(){function n(n){var u=n[0],o=n[1];return t=null,e(u,o),t||(r(u,o),t)||i(u,o),t}var t,e,r,i,u=ao.geo.albers(),o=ao.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=ao.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=u.scale(),e=u.translate(),r=(n[0]-e[0])/t,i=(n[1]-e[1])/t;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?o:i>=.166&&.234>i&&r>=-.214&&-.115>r?a:u).invert(n)},n.stream=function(n){var t=u.stream(n),e=o.stream(n),r=a.stream(n);return{point:function(n,i){t.point(n,i),e.point(n,i),r.point(n,i)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(u.precision(t),o.precision(t),a.precision(t),n):u.precision()},n.scale=function(t){return arguments.length?(u.scale(t),o.scale(.35*t),a.scale(t),n.translate(u.translate())):u.scale()},n.translate=function(t){if(!arguments.length)return u.translate();var c=u.scale(),f=+t[0],s=+t[1];return e=u.translate(t).clipExtent([[f-.455*c,s-.238*c],[f+.455*c,s+.238*c]]).stream(l).point,r=o.translate([f-.307*c,s+.201*c]).clipExtent([[f-.425*c+Uo,s+.12*c+Uo],[f-.214*c-Uo,s+.234*c-Uo]]).stream(l).point,i=a.translate([f-.205*c,s+.212*c]).clipExtent([[f-.214*c+Uo,s+.166*c+Uo],[f-.115*c-Uo,s+.234*c-Uo]]).stream(l).point,n},n.scale(1070)};var Oa,Ia,Ya,Za,Va,Xa,$a={point:b,lineStart:b,lineEnd:b,polygonStart:function(){Ia=0,$a.lineStart=$t},polygonEnd:function(){$a.lineStart=$a.lineEnd=$a.point=b,Oa+=xo(Ia/2)}},Ba={point:Bt,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},Wa={point:Gt,lineStart:Kt,lineEnd:Qt,polygonStart:function(){Wa.lineStart=ne},polygonEnd:function(){Wa.point=Gt,Wa.lineStart=Kt,Wa.lineEnd=Qt}};ao.geo.path=function(){function n(n){return n&&("function"==typeof a&&u.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=i(u)),ao.geo.stream(n,o)),u.result()}function t(){return o=null,n}var e,r,i,u,o,a=4.5;return n.area=function(n){return Oa=0,ao.geo.stream(n,i($a)),Oa},n.centroid=function(n){return Ca=za=La=qa=Ta=Ra=Da=Pa=Ua=0,ao.geo.stream(n,i(Wa)),Ua?[Da/Ua,Pa/Ua]:Ra?[qa/Ra,Ta/Ra]:La?[Ca/La,za/La]:[NaN,NaN]},n.bounds=function(n){return Va=Xa=-(Ya=Za=1/0),ao.geo.stream(n,i(Ba)),[[Ya,Za],[Va,Xa]]},n.projection=function(n){return arguments.length?(i=(e=n)?n.stream||re(n):m,t()):e},n.context=function(n){return arguments.length?(u=null==(r=n)?new Wt:new te(n),"function"!=typeof a&&u.pointRadius(a),t()):r},n.pointRadius=function(t){return arguments.length?(a="function"==typeof t?t:(u.pointRadius(+t),+t),n):a},n.projection(ao.geo.albersUsa()).context(null)},ao.geo.transform=function(n){return{stream:function(t){var e=new ie(t);for(var r in n)e[r]=n[r];return e}}},ie.prototype={point:function(n,t){this.stream.point(n,t)},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()}},ao.geo.projection=oe,ao.geo.projectionMutator=ae,(ao.geo.equirectangular=function(){return oe(ce)}).raw=ce.invert=ce,ao.geo.rotation=function(n){function t(t){return t=n(t[0]*Yo,t[1]*Yo),t[0]*=Zo,t[1]*=Zo,t}return n=se(n[0]%360*Yo,n[1]*Yo,n.length>2?n[2]*Yo:0),t.invert=function(t){return t=n.invert(t[0]*Yo,t[1]*Yo),t[0]*=Zo,t[1]*=Zo,t},t},fe.invert=ce,ao.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=se(-n[0]*Yo,-n[1]*Yo,0).invert,i=[];return e(null,null,1,{point:function(n,e){i.push(n=t(n,e)),n[0]*=Zo,n[1]*=Zo}}),{type:"Polygon",coordinates:[i]}}var t,e,r=[0,0],i=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=ve((t=+r)*Yo,i*Yo),n):t},n.precision=function(r){return arguments.length?(e=ve(t*Yo,(i=+r)*Yo),n):i},n.angle(90)},ao.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Yo,i=n[1]*Yo,u=t[1]*Yo,o=Math.sin(r),a=Math.cos(r),l=Math.sin(i),c=Math.cos(i),f=Math.sin(u),s=Math.cos(u);return Math.atan2(Math.sqrt((e=s*o)*e+(e=c*f-l*s*a)*e),l*f+c*s*a)},ao.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return ao.range(Math.ceil(u/d)*d,i,d).map(h).concat(ao.range(Math.ceil(c/y)*y,l,y).map(p)).concat(ao.range(Math.ceil(r/g)*g,e,g).filter(function(n){return xo(n%d)>Uo}).map(f)).concat(ao.range(Math.ceil(a/v)*v,o,v).filter(function(n){return xo(n%y)>Uo}).map(s))}var e,r,i,u,o,a,l,c,f,s,h,p,g=10,v=g,d=90,y=360,m=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(u).concat(p(l).slice(1),h(i).reverse().slice(1),p(c).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(u=+t[0][0],i=+t[1][0],c=+t[0][1],l=+t[1][1],u>i&&(t=u,u=i,i=t),c>l&&(t=c,c=l,l=t),n.precision(m)):[[u,c],[i,l]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),n.precision(m)):[[r,a],[e,o]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(d=+t[0],y=+t[1],n):[d,y]},n.minorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],n):[g,v]},n.precision=function(t){return arguments.length?(m=+t,f=ye(a,o,90),s=me(r,e,m),h=ye(c,l,90),p=me(u,i,m),n):m},n.majorExtent([[-180,-90+Uo],[180,90-Uo]]).minorExtent([[-180,-80-Uo],[180,80+Uo]])},ao.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||i.apply(this,arguments)]}}var t,e,r=Me,i=xe;return n.distance=function(){return ao.geo.distance(t||r.apply(this,arguments),e||i.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(i=t,e="function"==typeof t?null:t,n):i},n.precision=function(){return arguments.length?n:0},n},ao.geo.interpolate=function(n,t){return be(n[0]*Yo,n[1]*Yo,t[0]*Yo,t[1]*Yo)},ao.geo.length=function(n){return Ja=0,ao.geo.stream(n,Ga),Ja};var Ja,Ga={sphere:b,point:b,lineStart:_e,lineEnd:b,polygonStart:b,polygonEnd:b},Ka=we(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(ao.geo.azimuthalEqualArea=function(){return oe(Ka)}).raw=Ka;var Qa=we(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},m);(ao.geo.azimuthalEquidistant=function(){return oe(Qa)}).raw=Qa,(ao.geo.conicConformal=function(){return Vt(Se)}).raw=Se,(ao.geo.conicEquidistant=function(){return Vt(ke)}).raw=ke;var nl=we(function(n){return 1/n},Math.atan);(ao.geo.gnomonic=function(){return oe(nl)}).raw=nl,Ne.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Io]},(ao.geo.mercator=function(){return Ee(Ne)}).raw=Ne;var tl=we(function(){return 1},Math.asin);(ao.geo.orthographic=function(){return oe(tl)}).raw=tl;var el=we(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(ao.geo.stereographic=function(){return oe(el)}).raw=el,Ae.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Io]},(ao.geo.transverseMercator=function(){var n=Ee(Ae),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},e([0,0,90])}).raw=Ae,ao.geom={},ao.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,i=En(e),u=En(r),o=n.length,a=[],l=[];for(t=0;o>t;t++)a.push([+i.call(this,n[t],t),+u.call(this,n[t],t),t]);for(a.sort(qe),t=0;o>t;t++)l.push([a[t][0],-a[t][1]]);var c=Le(a),f=Le(l),s=f[0]===c[0],h=f[f.length-1]===c[c.length-1],p=[];for(t=c.length-1;t>=0;--t)p.push(n[a[c[t]][2]]);for(t=+s;t=r&&c.x<=u&&c.y>=i&&c.y<=o?[[r,o],[u,o],[u,i],[r,i]]:[];f.point=n[a]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(u(n,t)/Uo)*Uo,y:Math.round(o(n,t)/Uo)*Uo,i:t}})}var r=Ce,i=ze,u=r,o=i,a=sl;return n?t(n):(t.links=function(n){return ar(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return ar(e(n)).cells.forEach(function(e,r){for(var i,u,o=e.site,a=e.edges.sort(Ve),l=-1,c=a.length,f=a[c-1].edge,s=f.l===o?f.r:f.l;++l=c,h=r>=f,p=h<<1|s;n.leaf=!1,n=n.nodes[p]||(n.nodes[p]=hr()),s?i=c:a=c,h?o=f:l=f,u(n,t,e,r,i,o,a,l)}var f,s,h,p,g,v,d,y,m,M=En(a),x=En(l);if(null!=t)v=t,d=e,y=r,m=i;else if(y=m=-(v=d=1/0),s=[],h=[],g=n.length,o)for(p=0;g>p;++p)f=n[p],f.xy&&(y=f.x),f.y>m&&(m=f.y),s.push(f.x),h.push(f.y);else for(p=0;g>p;++p){var b=+M(f=n[p],p),_=+x(f,p);v>b&&(v=b),d>_&&(d=_),b>y&&(y=b),_>m&&(m=_),s.push(b),h.push(_)}var w=y-v,S=m-d;w>S?m=d+w:y=v+S;var k=hr();if(k.add=function(n){u(k,n,+M(n,++p),+x(n,p),v,d,y,m)},k.visit=function(n){pr(n,k,v,d,y,m)},k.find=function(n){return gr(k,n[0],n[1],v,d,y,m)},p=-1,null==t){for(;++p=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=vl.get(e)||gl,r=dl.get(r)||m,br(r(e.apply(null,lo.call(arguments,1))))},ao.interpolateHcl=Rr,ao.interpolateHsl=Dr,ao.interpolateLab=Pr,ao.interpolateRound=Ur,ao.transform=function(n){var t=fo.createElementNS(ao.ns.prefix.svg,"g");return(ao.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new jr(e?e.matrix:yl)})(n)},jr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var yl={a:1,b:0,c:0,d:1,e:0,f:0};ao.interpolateTransform=$r,ao.layout={},ao.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++ea*a/y){if(v>l){var c=t.charge/l;n.px-=u*c,n.py-=o*c}return!0}if(t.point&&l&&v>l){var c=t.pointCharge/l;n.px-=u*c,n.py-=o*c}}return!t.charge}}function t(n){n.px=ao.event.x,n.py=ao.event.y,l.resume()}var e,r,i,u,o,a,l={},c=ao.dispatch("start","tick","end"),f=[1,1],s=.9,h=ml,p=Ml,g=-30,v=xl,d=.1,y=.64,M=[],x=[];return l.tick=function(){if((i*=.99)<.005)return e=null,c.end({type:"end",alpha:i=0}),!0;var t,r,l,h,p,v,y,m,b,_=M.length,w=x.length;for(r=0;w>r;++r)l=x[r],h=l.source,p=l.target,m=p.x-h.x,b=p.y-h.y,(v=m*m+b*b)&&(v=i*o[r]*((v=Math.sqrt(v))-u[r])/v,m*=v,b*=v,p.x-=m*(y=h.weight+p.weight?h.weight/(h.weight+p.weight):.5),p.y-=b*y,h.x+=m*(y=1-y),h.y+=b*y);if((y=i*d)&&(m=f[0]/2,b=f[1]/2,r=-1,y))for(;++r<_;)l=M[r],l.x+=(m-l.x)*y,l.y+=(b-l.y)*y;if(g)for(ri(t=ao.geom.quadtree(M),i,a),r=-1;++r<_;)(l=M[r]).fixed||t.visit(n(l));for(r=-1;++r<_;)l=M[r],l.fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*s,l.y-=(l.py-(l.py=l.y))*s);c.tick({type:"tick",alpha:i})},l.nodes=function(n){return arguments.length?(M=n,l):M},l.links=function(n){return arguments.length?(x=n,l):x},l.size=function(n){return arguments.length?(f=n,l):f},l.linkDistance=function(n){return arguments.length?(h="function"==typeof n?n:+n,l):h},l.distance=l.linkDistance,l.linkStrength=function(n){return arguments.length?(p="function"==typeof n?n:+n,l):p},l.friction=function(n){return arguments.length?(s=+n,l):s},l.charge=function(n){return arguments.length?(g="function"==typeof n?n:+n,l):g},l.chargeDistance=function(n){return arguments.length?(v=n*n,l):Math.sqrt(v)},l.gravity=function(n){return arguments.length?(d=+n,l):d},l.theta=function(n){return arguments.length?(y=n*n,l):Math.sqrt(y)},l.alpha=function(n){return arguments.length?(n=+n,i?n>0?i=n:(e.c=null,e.t=NaN,e=null,c.end({type:"end",alpha:i=0})):n>0&&(c.start({type:"start",alpha:i=n}),e=qn(l.tick)),l):i},l.start=function(){function n(n,r){if(!e){for(e=new Array(i),l=0;i>l;++l)e[l]=[];for(l=0;c>l;++l){var u=x[l];e[u.source.index].push(u.target),e[u.target.index].push(u.source)}}for(var o,a=e[t],l=-1,f=a.length;++lt;++t)(r=M[t]).index=t,r.weight=0;for(t=0;c>t;++t)r=x[t],"number"==typeof r.source&&(r.source=M[r.source]),"number"==typeof r.target&&(r.target=M[r.target]),++r.source.weight,++r.target.weight;for(t=0;i>t;++t)r=M[t],isNaN(r.x)&&(r.x=n("x",s)),isNaN(r.y)&&(r.y=n("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(u=[],"function"==typeof h)for(t=0;c>t;++t)u[t]=+h.call(this,x[t],t);else for(t=0;c>t;++t)u[t]=h;if(o=[],"function"==typeof p)for(t=0;c>t;++t)o[t]=+p.call(this,x[t],t);else for(t=0;c>t;++t)o[t]=p;if(a=[],"function"==typeof g)for(t=0;i>t;++t)a[t]=+g.call(this,M[t],t);else for(t=0;i>t;++t)a[t]=g;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){return r||(r=ao.behavior.drag().origin(m).on("dragstart.force",Qr).on("drag.force",t).on("dragend.force",ni)),arguments.length?void this.on("mouseover.force",ti).on("mouseout.force",ei).call(r):r},ao.rebind(l,c,"on")};var ml=20,Ml=1,xl=1/0;ao.layout.hierarchy=function(){function n(i){var u,o=[i],a=[];for(i.depth=0;null!=(u=o.pop());)if(a.push(u),(c=e.call(n,u,u.depth))&&(l=c.length)){for(var l,c,f;--l>=0;)o.push(f=c[l]),f.parent=u,f.depth=u.depth+1;r&&(u.value=0),u.children=c}else r&&(u.value=+r.call(n,u,u.depth)||0),delete u.children;return oi(i,function(n){var e,i;t&&(e=n.children)&&e.sort(t),r&&(i=n.parent)&&(i.value+=n.value)}),a}var t=ci,e=ai,r=li;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(ui(t,function(n){n.children&&(n.value=0)}),oi(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},ao.layout.partition=function(){function n(t,e,r,i){var u=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,u&&(o=u.length)){var o,a,l,c=-1;for(r=t.value?r/t.value:0;++cs?-1:1),g=ao.sum(c),v=g?(s-l*p)/g:0,d=ao.range(l),y=[];return null!=e&&d.sort(e===bl?function(n,t){return c[t]-c[n]}:function(n,t){return e(o[n],o[t])}),d.forEach(function(n){y[n]={data:o[n],value:a=c[n],startAngle:f,endAngle:f+=a*v+p,padAngle:h}}),y}var t=Number,e=bl,r=0,i=Ho,u=0;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(i=t,n):i},n.padAngle=function(t){return arguments.length?(u=t,n):u},n};var bl={};ao.layout.stack=function(){function n(a,l){if(!(h=a.length))return a;var c=a.map(function(e,r){return t.call(n,e,r)}),f=c.map(function(t){return t.map(function(t,e){return[u.call(n,t,e),o.call(n,t,e)]})}),s=e.call(n,f,l);c=ao.permute(c,s),f=ao.permute(f,s);var h,p,g,v,d=r.call(n,f,l),y=c[0].length;for(g=0;y>g;++g)for(i.call(n,c[0][g],v=d[g],f[0][g][1]),p=1;h>p;++p)i.call(n,c[p][g],v+=f[p-1][g][1],f[p][g][1]);return a}var t=m,e=gi,r=vi,i=pi,u=si,o=hi;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:_l.get(t)||gi,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:wl.get(t)||vi,n):r},n.x=function(t){return arguments.length?(u=t,n):u},n.y=function(t){return arguments.length?(o=t,n):o},n.out=function(t){return arguments.length?(i=t,n):i},n};var _l=ao.map({"inside-out":function(n){var t,e,r=n.length,i=n.map(di),u=n.map(yi),o=ao.range(r).sort(function(n,t){return i[n]-i[t]}),a=0,l=0,c=[],f=[];for(t=0;r>t;++t)e=o[t],l>a?(a+=u[e],c.push(e)):(l+=u[e],f.push(e));return f.reverse().concat(c)},reverse:function(n){return ao.range(n.length).reverse()},"default":gi}),wl=ao.map({silhouette:function(n){var t,e,r,i=n.length,u=n[0].length,o=[],a=0,l=[];for(e=0;u>e;++e){for(t=0,r=0;i>t;t++)r+=n[t][e][1];r>a&&(a=r),o.push(r)}for(e=0;u>e;++e)l[e]=(a-o[e])/2;return l},wiggle:function(n){var t,e,r,i,u,o,a,l,c,f=n.length,s=n[0],h=s.length,p=[];for(p[0]=l=c=0,e=1;h>e;++e){for(t=0,i=0;f>t;++t)i+=n[t][e][1];for(t=0,u=0,a=s[e][0]-s[e-1][0];f>t;++t){for(r=0,o=(n[t][e][1]-n[t][e-1][1])/(2*a);t>r;++r)o+=(n[r][e][1]-n[r][e-1][1])/a;u+=o*n[t][e][1]}p[e]=l-=i?u/i*a:0,c>l&&(c=l)}for(e=0;h>e;++e)p[e]-=c;return p},expand:function(n){var t,e,r,i=n.length,u=n[0].length,o=1/i,a=[];for(e=0;u>e;++e){for(t=0,r=0;i>t;t++)r+=n[t][e][1];if(r)for(t=0;i>t;t++)n[t][e][1]/=r;else for(t=0;i>t;t++)n[t][e][1]=o}for(e=0;u>e;++e)a[e]=0;return a},zero:vi});ao.layout.histogram=function(){function n(n,u){for(var o,a,l=[],c=n.map(e,this),f=r.call(this,c,u),s=i.call(this,f,c,u),u=-1,h=c.length,p=s.length-1,g=t?1:1/h;++u0)for(u=-1;++u=f[0]&&a<=f[1]&&(o=l[ao.bisect(s,a,1,p)-1],o.y+=g,o.push(n[u]));return l}var t=!0,e=Number,r=bi,i=Mi;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=En(t),n):r},n.bins=function(t){return arguments.length?(i="number"==typeof t?function(n){return xi(n,t)}:En(t),n):i},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},ao.layout.pack=function(){function n(n,u){var o=e.call(this,n,u),a=o[0],l=i[0],c=i[1],f=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,oi(a,function(n){n.r=+f(n.value)}),oi(a,Ni),r){var s=r*(t?1:Math.max(2*a.r/l,2*a.r/c))/2;oi(a,function(n){n.r+=s}),oi(a,Ni),oi(a,function(n){n.r-=s})}return Ci(a,l/2,c/2,t?1:1/Math.max(2*a.r/l,2*a.r/c)),o}var t,e=ao.layout.hierarchy().sort(_i),r=0,i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},ii(n,e)},ao.layout.tree=function(){function n(n,i){var f=o.call(this,n,i),s=f[0],h=t(s);if(oi(h,e),h.parent.m=-h.z,ui(h,r),c)ui(s,u);else{var p=s,g=s,v=s;ui(s,function(n){n.xg.x&&(g=n),n.depth>v.depth&&(v=n)});var d=a(p,g)/2-p.x,y=l[0]/(g.x+a(g,p)/2+d),m=l[1]/(v.depth||1);ui(s,function(n){n.x=(n.x+d)*y,n.y=n.depth*m})}return f}function t(n){for(var t,e={A:null,children:[n]},r=[e];null!=(t=r.pop());)for(var i,u=t.children,o=0,a=u.length;a>o;++o)r.push((u[o]=i={_:u[o],parent:t,children:(i=u[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return e.children[0]}function e(n){var t=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(t.length){Di(n);var u=(t[0].z+t[t.length-1].z)/2;r?(n.z=r.z+a(n._,r._),n.m=n.z-u):n.z=u}else r&&(n.z=r.z+a(n._,r._));n.parent.A=i(n,r,n.parent.A||e[0])}function r(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function i(n,t,e){if(t){for(var r,i=n,u=n,o=t,l=i.parent.children[0],c=i.m,f=u.m,s=o.m,h=l.m;o=Ti(o),i=qi(i),o&&i;)l=qi(l),u=Ti(u),u.a=n,r=o.z+s-i.z-c+a(o._,i._),r>0&&(Ri(Pi(o,n,e),n,r),c+=r,f+=r),s+=o.m,c+=i.m,h+=l.m,f+=u.m;o&&!Ti(u)&&(u.t=o,u.m+=s-f),i&&!qi(l)&&(l.t=i,l.m+=c-h,e=n)}return e}function u(n){n.x*=l[0],n.y=n.depth*l[1]}var o=ao.layout.hierarchy().sort(null).value(null),a=Li,l=[1,1],c=null;return n.separation=function(t){return arguments.length?(a=t,n):a},n.size=function(t){return arguments.length?(c=null==(l=t)?u:null,n):c?null:l},n.nodeSize=function(t){return arguments.length?(c=null==(l=t)?null:u,n):c?l:null},ii(n,o)},ao.layout.cluster=function(){function n(n,u){var o,a=t.call(this,n,u),l=a[0],c=0;oi(l,function(n){var t=n.children;t&&t.length?(n.x=ji(t),n.y=Ui(t)):(n.x=o?c+=e(n,o):0,n.y=0,o=n)});var f=Fi(l),s=Hi(l),h=f.x-e(f,s)/2,p=s.x+e(s,f)/2;return oi(l,i?function(n){n.x=(n.x-l.x)*r[0],n.y=(l.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(p-h)*r[0],n.y=(1-(l.y?n.y/l.y:1))*r[1]}),a}var t=ao.layout.hierarchy().sort(null).value(null),e=Li,r=[1,1],i=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(i=null==(r=t),n):i?null:r},n.nodeSize=function(t){return arguments.length?(i=null!=(r=t),n):i?r:null},ii(n,t)},ao.layout.treemap=function(){function n(n,t){for(var e,r,i=-1,u=n.length;++it?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var u=e.children;if(u&&u.length){var o,a,l,c=s(e),f=[],h=u.slice(),g=1/0,v="slice"===p?c.dx:"dice"===p?c.dy:"slice-dice"===p?1&e.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(n(h,c.dx*c.dy/e.value),f.area=0;(l=h.length)>0;)f.push(o=h[l-1]),f.area+=o.area,"squarify"!==p||(a=r(f,v))<=g?(h.pop(),g=a):(f.area-=f.pop().area,i(f,v,c,!1),v=Math.min(c.dx,c.dy),f.length=f.area=0,g=1/0);f.length&&(i(f,v,c,!0),f.length=f.area=0),u.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var u,o=s(t),a=r.slice(),l=[];for(n(a,o.dx*o.dy/t.value),l.area=0;u=a.pop();)l.push(u),l.area+=u.area,null!=u.z&&(i(l,u.z?o.dx:o.dy,o,!a.length),l.length=l.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,i=0,u=1/0,o=-1,a=n.length;++oe&&(u=e),e>i&&(i=e));return r*=r,t*=t,r?Math.max(t*i*g/r,r/(t*u*g)):1/0}function i(n,t,e,r){var i,u=-1,o=n.length,a=e.x,c=e.y,f=t?l(n.area/t):0; if(t==e.dx){for((r||f>e.dy)&&(f=e.dy);++ue.dx)&&(f=e.dx);++ue&&(t=1),1>e&&(n=0),function(){var e,r,i;do e=2*Math.random()-1,r=2*Math.random()-1,i=e*e+r*r;while(!i||i>1);return n+t*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var n=ao.random.normal.apply(ao,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=ao.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},ao.scale={};var Sl={floor:m,ceil:m};ao.scale.linear=function(){return Wi([0,1],[0,1],Mr,!1)};var kl={s:1,g:1,p:1,r:1,e:1};ao.scale.log=function(){return ru(ao.scale.linear().domain([0,1]),10,!0,[1,10])};var Nl=ao.format(".0e"),El={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};ao.scale.pow=function(){return iu(ao.scale.linear(),1,[0,1])},ao.scale.sqrt=function(){return ao.scale.pow().exponent(.5)},ao.scale.ordinal=function(){return ou([],{t:"range",a:[[]]})},ao.scale.category10=function(){return ao.scale.ordinal().range(Al)},ao.scale.category20=function(){return ao.scale.ordinal().range(Cl)},ao.scale.category20b=function(){return ao.scale.ordinal().range(zl)},ao.scale.category20c=function(){return ao.scale.ordinal().range(Ll)};var Al=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xn),Cl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xn),zl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xn),Ll=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xn);ao.scale.quantile=function(){return au([],[])},ao.scale.quantize=function(){return lu(0,1,[0,1])},ao.scale.threshold=function(){return cu([.5],[0,1])},ao.scale.identity=function(){return fu([0,1])},ao.svg={},ao.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),f=o.apply(this,arguments)-Io,s=a.apply(this,arguments)-Io,h=Math.abs(s-f),p=f>s?0:1;if(n>c&&(g=c,c=n,n=g),h>=Oo)return t(c,p)+(n?t(n,1-p):"")+"Z";var g,v,d,y,m,M,x,b,_,w,S,k,N=0,E=0,A=[];if((y=(+l.apply(this,arguments)||0)/2)&&(d=u===ql?Math.sqrt(n*n+c*c):+u.apply(this,arguments),p||(E*=-1),c&&(E=tn(d/c*Math.sin(y))),n&&(N=tn(d/n*Math.sin(y)))),c){m=c*Math.cos(f+E),M=c*Math.sin(f+E),x=c*Math.cos(s-E),b=c*Math.sin(s-E);var C=Math.abs(s-f-2*E)<=Fo?0:1;if(E&&yu(m,M,x,b)===p^C){var z=(f+s)/2;m=c*Math.cos(z),M=c*Math.sin(z),x=b=null}}else m=M=0;if(n){_=n*Math.cos(s-N),w=n*Math.sin(s-N),S=n*Math.cos(f+N),k=n*Math.sin(f+N);var L=Math.abs(f-s+2*N)<=Fo?0:1;if(N&&yu(_,w,S,k)===1-p^L){var q=(f+s)/2;_=n*Math.cos(q),w=n*Math.sin(q),S=k=null}}else _=w=0;if(h>Uo&&(g=Math.min(Math.abs(c-n)/2,+i.apply(this,arguments)))>.001){v=c>n^p?0:1;var T=g,R=g;if(Fo>h){var D=null==S?[_,w]:null==x?[m,M]:Re([m,M],[S,k],[x,b],[_,w]),P=m-D[0],U=M-D[1],j=x-D[0],F=b-D[1],H=1/Math.sin(Math.acos((P*j+U*F)/(Math.sqrt(P*P+U*U)*Math.sqrt(j*j+F*F)))/2),O=Math.sqrt(D[0]*D[0]+D[1]*D[1]);R=Math.min(g,(n-O)/(H-1)),T=Math.min(g,(c-O)/(H+1))}if(null!=x){var I=mu(null==S?[_,w]:[S,k],[m,M],c,T,p),Y=mu([x,b],[_,w],c,T,p);g===T?A.push("M",I[0],"A",T,",",T," 0 0,",v," ",I[1],"A",c,",",c," 0 ",1-p^yu(I[1][0],I[1][1],Y[1][0],Y[1][1]),",",p," ",Y[1],"A",T,",",T," 0 0,",v," ",Y[0]):A.push("M",I[0],"A",T,",",T," 0 1,",v," ",Y[0])}else A.push("M",m,",",M);if(null!=S){var Z=mu([m,M],[S,k],n,-R,p),V=mu([_,w],null==x?[m,M]:[x,b],n,-R,p);g===R?A.push("L",V[0],"A",R,",",R," 0 0,",v," ",V[1],"A",n,",",n," 0 ",p^yu(V[1][0],V[1][1],Z[1][0],Z[1][1]),",",1-p," ",Z[1],"A",R,",",R," 0 0,",v," ",Z[0]):A.push("L",V[0],"A",R,",",R," 0 0,",v," ",Z[0])}else A.push("L",_,",",w)}else A.push("M",m,",",M),null!=x&&A.push("A",c,",",c," 0 ",C,",",p," ",x,",",b),A.push("L",_,",",w),null!=S&&A.push("A",n,",",n," 0 ",L,",",1-p," ",S,",",k);return A.push("Z"),A.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var e=hu,r=pu,i=su,u=ql,o=gu,a=vu,l=du;return n.innerRadius=function(t){return arguments.length?(e=En(t),n):e},n.outerRadius=function(t){return arguments.length?(r=En(t),n):r},n.cornerRadius=function(t){return arguments.length?(i=En(t),n):i},n.padRadius=function(t){return arguments.length?(u=t==ql?ql:En(t),n):u},n.startAngle=function(t){return arguments.length?(o=En(t),n):o},n.endAngle=function(t){return arguments.length?(a=En(t),n):a},n.padAngle=function(t){return arguments.length?(l=En(t),n):l},n.centroid=function(){var n=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Io;return[Math.cos(t)*n,Math.sin(t)*n]},n};var ql="auto";ao.svg.line=function(){return Mu(m)};var Tl=ao.map({linear:xu,"linear-closed":bu,step:_u,"step-before":wu,"step-after":Su,basis:zu,"basis-open":Lu,"basis-closed":qu,bundle:Tu,cardinal:Eu,"cardinal-open":ku,"cardinal-closed":Nu,monotone:Fu});Tl.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var Rl=[0,2/3,1/3,0],Dl=[0,1/3,2/3,0],Pl=[0,1/6,2/3,1/6];ao.svg.line.radial=function(){var n=Mu(Hu);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},wu.reverse=Su,Su.reverse=wu,ao.svg.area=function(){return Ou(m)},ao.svg.area.radial=function(){var n=Ou(Hu);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},ao.svg.chord=function(){function n(n,a){var l=t(this,u,n,a),c=t(this,o,n,a);return"M"+l.p0+r(l.r,l.p1,l.a1-l.a0)+(e(l,c)?i(l.r,l.p1,l.r,l.p0):i(l.r,l.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+i(c.r,c.p1,l.r,l.p0))+"Z"}function t(n,t,e,r){var i=t.call(n,e,r),u=a.call(n,i,r),o=l.call(n,i,r)-Io,f=c.call(n,i,r)-Io;return{r:u,a0:o,a1:f,p0:[u*Math.cos(o),u*Math.sin(o)],p1:[u*Math.cos(f),u*Math.sin(f)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>Fo)+",1 "+t}function i(n,t,e,r){return"Q 0,0 "+r}var u=Me,o=xe,a=Iu,l=gu,c=vu;return n.radius=function(t){return arguments.length?(a=En(t),n):a},n.source=function(t){return arguments.length?(u=En(t),n):u},n.target=function(t){return arguments.length?(o=En(t),n):o},n.startAngle=function(t){return arguments.length?(l=En(t),n):l},n.endAngle=function(t){return arguments.length?(c=En(t),n):c},n},ao.svg.diagonal=function(){function n(n,i){var u=t.call(this,n,i),o=e.call(this,n,i),a=(u.y+o.y)/2,l=[u,{x:u.x,y:a},{x:o.x,y:a},o];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=Me,e=xe,r=Yu;return n.source=function(e){return arguments.length?(t=En(e),n):t},n.target=function(t){return arguments.length?(e=En(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},ao.svg.diagonal.radial=function(){var n=ao.svg.diagonal(),t=Yu,e=n.projection;return n.projection=function(n){return arguments.length?e(Zu(t=n)):t},n},ao.svg.symbol=function(){function n(n,r){return(Ul.get(t.call(this,n,r))||$u)(e.call(this,n,r))}var t=Xu,e=Vu;return n.type=function(e){return arguments.length?(t=En(e),n):t},n.size=function(t){return arguments.length?(e=En(t),n):e},n};var Ul=ao.map({circle:$u,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Fl)),e=t*Fl;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});ao.svg.symbolTypes=Ul.keys();var jl=Math.sqrt(3),Fl=Math.tan(30*Yo);Co.transition=function(n){for(var t,e,r=Hl||++Zl,i=Ku(n),u=[],o=Ol||{time:Date.now(),ease:Nr,delay:0,duration:250},a=-1,l=this.length;++au;u++){i.push(t=[]);for(var e=this[u],a=0,l=e.length;l>a;a++)(r=e[a])&&n.call(r,r.__data__,a,u)&&t.push(r)}return Wu(i,this.namespace,this.id)},Yl.tween=function(n,t){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(n):Y(this,null==t?function(t){t[r][e].tween.remove(n)}:function(i){i[r][e].tween.set(n,t)})},Yl.attr=function(n,t){function e(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function i(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(a);return e!==n&&(t=o(e,n),function(n){this.setAttribute(a,t(n))})})}function u(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(a.space,a.local);return e!==n&&(t=o(e,n),function(n){this.setAttributeNS(a.space,a.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var o="transform"==n?$r:Mr,a=ao.ns.qualify(n);return Ju(this,"attr."+n,t,a.local?u:i)},Yl.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(i));return r&&function(n){this.setAttribute(i,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(i.space,i.local));return r&&function(n){this.setAttributeNS(i.space,i.local,r(n))}}var i=ao.ns.qualify(n);return this.tween("attr."+n,i.local?r:e)},Yl.style=function(n,e,r){function i(){this.style.removeProperty(n)}function u(e){return null==e?i:(e+="",function(){var i,u=t(this).getComputedStyle(this,null).getPropertyValue(n);return u!==e&&(i=Mr(u,e),function(t){this.style.setProperty(n,i(t),r)})})}var o=arguments.length;if(3>o){if("string"!=typeof n){2>o&&(e="");for(r in n)this.style(r,n[r],e);return this}r=""}return Ju(this,"style."+n,e,u)},Yl.styleTween=function(n,e,r){function i(i,u){var o=e.call(this,i,u,t(this).getComputedStyle(this,null).getPropertyValue(n));return o&&function(t){this.style.setProperty(n,o(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+n,i)},Yl.text=function(n){return Ju(this,"text",n,Gu)},Yl.remove=function(){var n=this.namespace;return this.each("end.transition",function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Yl.ease=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].ease:("function"!=typeof n&&(n=ao.ease.apply(ao,arguments)),Y(this,function(r){r[e][t].ease=n}))},Yl.delay=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].delay:Y(this,"function"==typeof n?function(r,i,u){r[e][t].delay=+n.call(r,r.__data__,i,u)}:(n=+n,function(r){r[e][t].delay=n}))},Yl.duration=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].duration:Y(this,"function"==typeof n?function(r,i,u){r[e][t].duration=Math.max(1,n.call(r,r.__data__,i,u))}:(n=Math.max(1,n),function(r){r[e][t].duration=n}))},Yl.each=function(n,t){var e=this.id,r=this.namespace;if(arguments.length<2){var i=Ol,u=Hl;try{Hl=e,Y(this,function(t,i,u){Ol=t[r][e],n.call(t,t.__data__,i,u)})}finally{Ol=i,Hl=u}}else Y(this,function(i){var u=i[r][e];(u.event||(u.event=ao.dispatch("start","end","interrupt"))).on(n,t)});return this},Yl.transition=function(){for(var n,t,e,r,i=this.id,u=++Zl,o=this.namespace,a=[],l=0,c=this.length;c>l;l++){a.push(n=[]);for(var t=this[l],f=0,s=t.length;s>f;f++)(e=t[f])&&(r=e[o][i],Qu(e,f,o,u,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),n.push(e)}return Wu(a,o,u)},ao.svg.axis=function(){function n(n){n.each(function(){var n,c=ao.select(this),f=this.__chart__||e,s=this.__chart__=e.copy(),h=null==l?s.ticks?s.ticks.apply(s,a):s.domain():l,p=null==t?s.tickFormat?s.tickFormat.apply(s,a):m:t,g=c.selectAll(".tick").data(h,s),v=g.enter().insert("g",".domain").attr("class","tick").style("opacity",Uo),d=ao.transition(g.exit()).style("opacity",Uo).remove(),y=ao.transition(g.order()).style("opacity",1),M=Math.max(i,0)+o,x=Zi(s),b=c.selectAll(".domain").data([0]),_=(b.enter().append("path").attr("class","domain"),ao.transition(b));v.append("line"),v.append("text");var w,S,k,N,E=v.select("line"),A=y.select("line"),C=g.select("text").text(p),z=v.select("text"),L=y.select("text"),q="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(n=no,w="x",k="y",S="x2",N="y2",C.attr("dy",0>q?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+q*u+"V0H"+x[1]+"V"+q*u)):(n=to,w="y",k="x",S="y2",N="x2",C.attr("dy",".32em").style("text-anchor",0>q?"end":"start"),_.attr("d","M"+q*u+","+x[0]+"H0V"+x[1]+"H"+q*u)),E.attr(N,q*i),z.attr(k,q*M),A.attr(S,0).attr(N,q*i),L.attr(w,0).attr(k,q*M),s.rangeBand){var T=s,R=T.rangeBand()/2;f=s=function(n){return T(n)+R}}else f.rangeBand?f=s:d.call(n,s,f);v.call(n,f,s),y.call(n,s,s)})}var t,e=ao.scale.linear(),r=Vl,i=6,u=6,o=3,a=[10],l=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in Xl?t+"":Vl,n):r},n.ticks=function(){return arguments.length?(a=co(arguments),n):a},n.tickValues=function(t){return arguments.length?(l=t,n):l},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(i=+t,u=+arguments[e-1],n):i},n.innerTickSize=function(t){return arguments.length?(i=+t,n):i},n.outerTickSize=function(t){return arguments.length?(u=+t,n):u},n.tickPadding=function(t){return arguments.length?(o=+t,n):o},n.tickSubdivide=function(){return arguments.length&&n},n};var Vl="bottom",Xl={top:1,right:1,bottom:1,left:1};ao.svg.brush=function(){function n(t){t.each(function(){var t=ao.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",u).on("touchstart.brush",u),o=t.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=t.selectAll(".resize").data(v,m);a.exit().remove(),a.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return $l[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",n.empty()?"none":null);var l,s=ao.transition(t),h=ao.transition(o);c&&(l=Zi(c),h.attr("x",l[0]).attr("width",l[1]-l[0]),r(s)),f&&(l=Zi(f),h.attr("y",l[0]).attr("height",l[1]-l[0]),i(s)),e(s)})}function e(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+s[+/e$/.test(n)]+","+h[+/^s/.test(n)]+")"})}function r(n){n.select(".extent").attr("x",s[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",s[1]-s[0])}function i(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function u(){function u(){32==ao.event.keyCode&&(C||(M=null,L[0]-=s[1],L[1]-=h[1],C=2),S())}function v(){32==ao.event.keyCode&&2==C&&(L[0]+=s[1],L[1]+=h[1],C=0,S())}function d(){var n=ao.mouse(b),t=!1;x&&(n[0]+=x[0],n[1]+=x[1]),C||(ao.event.altKey?(M||(M=[(s[0]+s[1])/2,(h[0]+h[1])/2]),L[0]=s[+(n[0]f?(i=r,r=f):i=f),v[0]!=r||v[1]!=i?(e?a=null:o=null,v[0]=r,v[1]=i,!0):void 0}function m(){d(),k.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),ao.select("body").style("cursor",null),q.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),z(),w({type:"brushend"})}var M,x,b=this,_=ao.select(ao.event.target),w=l.of(b,arguments),k=ao.select(b),N=_.datum(),E=!/^(n|s)$/.test(N)&&c,A=!/^(e|w)$/.test(N)&&f,C=_.classed("extent"),z=W(b),L=ao.mouse(b),q=ao.select(t(b)).on("keydown.brush",u).on("keyup.brush",v);if(ao.event.changedTouches?q.on("touchmove.brush",d).on("touchend.brush",m):q.on("mousemove.brush",d).on("mouseup.brush",m),k.interrupt().selectAll("*").interrupt(),C)L[0]=s[0]-L[0],L[1]=h[0]-L[1];else if(N){var T=+/w$/.test(N),R=+/^n/.test(N);x=[s[1-T]-L[0],h[1-R]-L[1]],L[0]=s[T],L[1]=h[R]}else ao.event.altKey&&(M=L.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),ao.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),d()}var o,a,l=N(n,"brushstart","brush","brushend"),c=null,f=null,s=[0,0],h=[0,0],p=!0,g=!0,v=Bl[0];return n.event=function(n){n.each(function(){var n=l.of(this,arguments),t={x:s,y:h,i:o,j:a},e=this.__chart__||t;this.__chart__=t,Hl?ao.select(this).transition().each("start.brush",function(){o=e.i,a=e.j,s=e.x,h=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var e=xr(s,t.x),r=xr(h,t.y);return o=a=null,function(i){s=t.x=e(i),h=t.y=r(i),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=t.i,a=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(c=t,v=Bl[!c<<1|!f],n):c},n.y=function(t){return arguments.length?(f=t,v=Bl[!c<<1|!f],n):f},n.clamp=function(t){return arguments.length?(c&&f?(p=!!t[0],g=!!t[1]):c?p=!!t:f&&(g=!!t),n):c&&f?[p,g]:c?p:f?g:null},n.extent=function(t){var e,r,i,u,l;return arguments.length?(c&&(e=t[0],r=t[1],f&&(e=e[0],r=r[0]),o=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(l=e,e=r,r=l),e==s[0]&&r==s[1]||(s=[e,r])),f&&(i=t[0],u=t[1],c&&(i=i[1],u=u[1]),a=[i,u],f.invert&&(i=f(i),u=f(u)),i>u&&(l=i,i=u,u=l),i==h[0]&&u==h[1]||(h=[i,u])),n):(c&&(o?(e=o[0],r=o[1]):(e=s[0],r=s[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(l=e,e=r,r=l))),f&&(a?(i=a[0],u=a[1]):(i=h[0],u=h[1],f.invert&&(i=f.invert(i),u=f.invert(u)),i>u&&(l=i,i=u,u=l))),c&&f?[[e,i],[r,u]]:c?[e,r]:f&&[i,u])},n.clear=function(){return n.empty()||(s=[0,0],h=[0,0],o=a=null),n},n.empty=function(){return!!c&&s[0]==s[1]||!!f&&h[0]==h[1]},ao.rebind(n,l,"on")};var $l={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Bl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Wl=ga.format=xa.timeFormat,Jl=Wl.utc,Gl=Jl("%Y-%m-%dT%H:%M:%S.%LZ");Wl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?eo:Gl,eo.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},eo.toString=Gl.toString,ga.second=On(function(n){return new va(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),ga.seconds=ga.second.range,ga.seconds.utc=ga.second.utc.range,ga.minute=On(function(n){return new va(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),ga.minutes=ga.minute.range,ga.minutes.utc=ga.minute.utc.range,ga.hour=On(function(n){var t=n.getTimezoneOffset()/60;return new va(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),ga.hours=ga.hour.range,ga.hours.utc=ga.hour.utc.range,ga.month=On(function(n){return n=ga.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),ga.months=ga.month.range,ga.months.utc=ga.month.utc.range;var Kl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ql=[[ga.second,1],[ga.second,5],[ga.second,15],[ga.second,30],[ga.minute,1],[ga.minute,5],[ga.minute,15],[ga.minute,30],[ga.hour,1],[ga.hour,3],[ga.hour,6],[ga.hour,12],[ga.day,1],[ga.day,2],[ga.week,1],[ga.month,1],[ga.month,3],[ga.year,1]],nc=Wl.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",zt]]),tc={range:function(n,t,e){return ao.range(Math.ceil(n/e)*e,+t,e).map(io)},floor:m,ceil:m};Ql.year=ga.year,ga.scale=function(){return ro(ao.scale.linear(),Ql,nc)};var ec=Ql.map(function(n){return[n[0].utc,n[1]]}),rc=Jl.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",zt]]);ec.year=ga.year.utc,ga.scale.utc=function(){return ro(ao.scale.linear(),ec,rc)},ao.text=An(function(n){return n.responseText}),ao.json=function(n,t){return Cn(n,"application/json",uo,t)},ao.html=function(n,t){return Cn(n,"text/html",oo,t)},ao.xml=An(function(n){return n.responseXML}),"function"==typeof define&&define.amd?(this.d3=ao,define(ao)):"object"==typeof module&&module.exports?module.exports=ao:this.d3=ao}(); !function(a){"use strict";function b(a){this.owner=a}function c(a,b){if(Object.create)b.prototype=Object.create(a.prototype);else{var c=function(){};c.prototype=a.prototype,b.prototype=new c}return b.prototype.constructor=b,b}function d(a){var b=this.internal=new e(this);b.loadConfig(a),b.beforeInit(a),b.init(),b.afterInit(a),function c(a,b,d){Object.keys(a).forEach(function(e){b[e]=a[e].bind(d),Object.keys(a[e]).length>0&&c(a[e],b[e],d)})}(h,this,this)}function e(b){var c=this;c.d3=a.d3?a.d3:"undefined"!=typeof require?require("d3"):void 0,c.api=b,c.config=c.getDefaultConfig(),c.data={},c.cache={},c.axes={}}function f(a){b.call(this,a)}function g(a,b){function c(a,b){a.attr("transform",function(a){return"translate("+Math.ceil(b(a)+u)+", 0)"})}function d(a,b){a.attr("transform",function(a){return"translate(0,"+Math.ceil(b(a))+")"})}function e(a){var b=a[0],c=a[a.length-1];return c>b?[b,c]:[c,b]}function f(a){var b,c,d=[];if(a.ticks)return a.ticks.apply(a,n);for(c=a.domain(),b=Math.ceil(c[0]);b0&&d[0]>0&&d.unshift(d[0]-(d[1]-d[0])),d}function g(){var a,c=p.copy();return b.isCategory&&(a=p.domain(),c.domain([a[0],a[1]-1])),c}function h(a){var b=m?m(a):a;return"undefined"!=typeof b?b:""}function i(a){if(A)return A;var b={h:11.5,w:5.5};return a.select("text").text(h).each(function(a){var c=this.getBoundingClientRect(),d=h(a),e=c.height,f=d?c.width/d.length:void 0;e&&f&&(b.h=e,b.w=f)}).text(""),A=b,b}function j(c){return b.withoutTransition?c:a.transition(c)}function k(m){m.each(function(){function m(a,c){function d(a,b){f=void 0;for(var h=1;hc)return d(a.concat(b.substr(0,f?f:h)),b.slice(f?f+1:h));return a.concat(b)}var e,f,g,i=h(a),j=[];return"[object Array]"===Object.prototype.toString.call(i)?i:((!c||0>=c)&&(c=X?95:b.isCategory?Math.ceil(F(G[1])-F(G[0]))-12:110),d(j,i+""))}function n(a,b){var c=U.h;return 0===b&&(c="left"===q||"right"===q?-((V[a.index]-1)*(U.h/2)-3):".71em"),c}function v(a){var b=p(a)+(o?0:u);return L[0]0?"start":"end":"middle"}function x(a){return a?"rotate("+a+")":""}function y(a){return a?8*Math.sin(Math.PI*(a/180)):0}function z(a){return a?11.5-2.5*(a/15)*(a>0?1:-1):W}var A,B,C,D=k.g=a.select(this),E=this.__chart__||p,F=this.__chart__=g(),G=t?t:f(F),H=D.selectAll(".tick").data(G,F),I=H.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),J=H.exit().remove(),K=j(H).style("opacity",1),L=p.rangeExtent?p.rangeExtent():e(p.range()),M=D.selectAll(".domain").data([0]),N=(M.enter().append("path").attr("class","domain"),j(M));I.append("line"),I.append("text");var O=I.select("line"),P=K.select("line"),Q=I.select("text"),R=K.select("text");b.isCategory?(u=Math.ceil((F(1)-F(0))/2),B=o?0:u,C=o?u:0):u=B=0;var S,T,U=i(D.select(".tick")),V=[],W=Math.max(r,0)+s,X="left"===q||"right"===q;S=H.select("text"),T=S.selectAll("tspan").data(function(a,c){var d=b.tickMultiline?m(a,b.tickWidth):[].concat(h(a));return V[c]=d.length,d.map(function(a){return{index:c,splitted:a}})}),T.enter().append("tspan"),T.exit().remove(),T.text(function(a){return a.splitted});var Y=b.tickTextRotate;switch(q){case"bottom":A=c,O.attr("y2",r),Q.attr("y",W),P.attr("x1",B).attr("x2",B).attr("y2",v),R.attr("x",0).attr("y",z(Y)).style("text-anchor",w(Y)).attr("transform",x(Y)),T.attr("x",0).attr("dy",n).attr("dx",y(Y)),N.attr("d","M"+L[0]+","+l+"V0H"+L[1]+"V"+l);break;case"top":A=c,O.attr("y2",-r),Q.attr("y",-W),P.attr("x2",0).attr("y2",-r),R.attr("x",0).attr("y",-W),S.style("text-anchor","middle"),T.attr("x",0).attr("dy","0em"),N.attr("d","M"+L[0]+","+-l+"V0H"+L[1]+"V"+-l);break;case"left":A=d,O.attr("x2",-r),Q.attr("x",-W),P.attr("x2",-r).attr("y1",C).attr("y2",C),R.attr("x",-W).attr("y",u),S.style("text-anchor","end"),T.attr("x",-W).attr("dy",n),N.attr("d","M"+-l+","+L[0]+"H0V"+L[1]+"H"+-l);break;case"right":A=d,O.attr("x2",r),Q.attr("x",W),P.attr("x2",r).attr("y2",0),R.attr("x",W).attr("y",0),S.style("text-anchor","start"),T.attr("x",W).attr("dy",n),N.attr("d","M"+l+","+L[0]+"H0V"+L[1]+"H"+l)}if(F.rangeBand){var Z=F,$=Z.rangeBand()/2;E=F=function(a){return Z(a)+$}}else E.rangeBand?E=F:J.call(A,F);I.call(A,E),K.call(A,F)})}var l,m,n,o,p=a.scale.linear(),q="bottom",r=6,s=3,t=null,u=0,v=!0;return b=b||{},l=b.withOuterTick?6:0,k.scale=function(a){return arguments.length?(p=a,k):p},k.orient=function(a){return arguments.length?(q=a in{top:1,right:1,bottom:1,left:1}?a+"":"bottom",k):q},k.tickFormat=function(a){return arguments.length?(m=a,k):m},k.tickCentered=function(a){return arguments.length?(o=a,k):o},k.tickOffset=function(){return u},k.tickInterval=function(){var a,c;return b.isCategory?a=2*u:(c=k.g.select("path.domain").node().getTotalLength()-2*l,a=c/k.g.selectAll("line").size()),a===1/0?0:a},k.ticks=function(){return arguments.length?(n=arguments,k):n},k.tickCulling=function(a){return arguments.length?(v=a,k):v},k.tickValues=function(a){if("function"==typeof a)t=function(){return a(p.domain())};else{if(!arguments.length)return t;t=a}return k},k}var h,i,j,k={version:"0.4.11"};k.generate=function(a){return new d(a)},k.chart={fn:d.prototype,internal:{fn:e.prototype,axis:{fn:f.prototype}}},h=k.chart.fn,i=k.chart.internal.fn,j=k.chart.internal.axis.fn,i.beforeInit=function(){},i.afterInit=function(){},i.init=function(){var a=this,b=a.config;if(a.initParams(),b.data_url)a.convertUrlToData(b.data_url,b.data_mimeType,b.data_headers,b.data_keys,a.initWithData);else if(b.data_json)a.initWithData(a.convertJsonToData(b.data_json,b.data_keys));else if(b.data_rows)a.initWithData(a.convertRowsToData(b.data_rows));else{if(!b.data_columns)throw Error("url or json or rows or columns is required.");a.initWithData(a.convertColumnsToData(b.data_columns))}},i.initParams=function(){var a=this,b=a.d3,c=a.config;a.clipId="c3-"+ +new Date+"-clip",a.clipIdForXAxis=a.clipId+"-xaxis",a.clipIdForYAxis=a.clipId+"-yaxis",a.clipIdForGrid=a.clipId+"-grid",a.clipIdForSubchart=a.clipId+"-subchart",a.clipPath=a.getClipPath(a.clipId),a.clipPathForXAxis=a.getClipPath(a.clipIdForXAxis),a.clipPathForYAxis=a.getClipPath(a.clipIdForYAxis),a.clipPathForGrid=a.getClipPath(a.clipIdForGrid),a.clipPathForSubchart=a.getClipPath(a.clipIdForSubchart),a.dragStart=null,a.dragging=!1,a.flowing=!1,a.cancelClick=!1,a.mouseover=!1,a.transiting=!1,a.color=a.generateColor(),a.levelColor=a.generateLevelColor(),a.dataTimeFormat=c.data_xLocaltime?b.time.format:b.time.format.utc,a.axisTimeFormat=c.axis_x_localtime?b.time.format:b.time.format.utc,a.defaultAxisTimeFormat=a.axisTimeFormat.multi([[".%L",function(a){return a.getMilliseconds()}],[":%S",function(a){return a.getSeconds()}],["%I:%M",function(a){return a.getMinutes()}],["%I %p",function(a){return a.getHours()}],["%-m/%-d",function(a){return a.getDay()&&1!==a.getDate()}],["%-m/%-d",function(a){return 1!==a.getDate()}],["%-m/%-d",function(a){return a.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),a.hiddenTargetIds=[],a.hiddenLegendIds=[],a.focusedTargetIds=[],a.defocusedTargetIds=[],a.xOrient=c.axis_rotated?"left":"bottom",a.yOrient=c.axis_rotated?c.axis_y_inner?"top":"bottom":c.axis_y_inner?"right":"left",a.y2Orient=c.axis_rotated?c.axis_y2_inner?"bottom":"top":c.axis_y2_inner?"left":"right",a.subXOrient=c.axis_rotated?"left":"bottom",a.isLegendRight="right"===c.legend_position,a.isLegendInset="inset"===c.legend_position,a.isLegendTop="top-left"===c.legend_inset_anchor||"top-right"===c.legend_inset_anchor,a.isLegendLeft="top-left"===c.legend_inset_anchor||"bottom-left"===c.legend_inset_anchor,a.legendStep=0,a.legendItemWidth=0,a.legendItemHeight=0,a.currentMaxTickWidths={x:0,y:0,y2:0},a.rotated_padding_left=30,a.rotated_padding_right=c.axis_rotated&&!c.axis_x_show?0:30,a.rotated_padding_top=5,a.withoutFadeIn={},a.intervalForObserveInserted=void 0,a.axes.subx=b.selectAll([])},i.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},i.initWithData=function(a){var b,c,d=this,e=d.d3,g=d.config,h=!0;d.axis=new f(d),d.initPie&&d.initPie(),d.initBrush&&d.initBrush(),d.initZoom&&d.initZoom(),g.bindto?"function"==typeof g.bindto.node?d.selectChart=g.bindto:d.selectChart=e.select(g.bindto):d.selectChart=e.selectAll([]),d.selectChart.empty()&&(d.selectChart=e.select(document.createElement("div")).style("opacity",0),d.observeInserted(d.selectChart),h=!1),d.selectChart.html("").classed("c3",!0),d.data.xs={},d.data.targets=d.convertDataToTargets(a),g.data_filter&&(d.data.targets=d.data.targets.filter(g.data_filter)),g.data_hide&&d.addHiddenTargetIds(g.data_hide===!0?d.mapToIds(d.data.targets):g.data_hide),g.legend_hide&&d.addHiddenLegendIds(g.legend_hide===!0?d.mapToIds(d.data.targets):g.legend_hide),d.hasType("gauge")&&(g.legend_show=!1),d.updateSizes(),d.updateScales(),d.x.domain(e.extent(d.getXDomain(d.data.targets))),d.y.domain(d.getYDomain(d.data.targets,"y")),d.y2.domain(d.getYDomain(d.data.targets,"y2")),d.subX.domain(d.x.domain()),d.subY.domain(d.y.domain()),d.subY2.domain(d.y2.domain()),d.orgXDomain=d.x.domain(),d.brush&&d.brush.scale(d.subX),g.zoom_enabled&&d.zoom.scale(d.x),d.svg=d.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return g.onmouseover.call(d)}).on("mouseleave",function(){return g.onmouseout.call(d)}),d.config.svg_classname&&d.svg.attr("class",d.config.svg_classname),b=d.svg.append("defs"),d.clipChart=d.appendClip(b,d.clipId),d.clipXAxis=d.appendClip(b,d.clipIdForXAxis),d.clipYAxis=d.appendClip(b,d.clipIdForYAxis),d.clipGrid=d.appendClip(b,d.clipIdForGrid),d.clipSubchart=d.appendClip(b,d.clipIdForSubchart),d.updateSvgSize(),c=d.main=d.svg.append("g").attr("transform",d.getTranslate("main")),d.initSubchart&&d.initSubchart(),d.initTooltip&&d.initTooltip(),d.initLegend&&d.initLegend(),d.initTitle&&d.initTitle(),c.append("text").attr("class",l.text+" "+l.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),d.initRegion(),d.initGrid(),c.append("g").attr("clip-path",d.clipPath).attr("class",l.chart),g.grid_lines_front&&d.initGridLines(),d.initEventRect(),d.initChartElements(),c.insert("rect",g.zoom_privileged?null:"g."+l.regions).attr("class",l.zoomRect).attr("width",d.width).attr("height",d.height).style("opacity",0).on("dblclick.zoom",null),g.axis_x_extent&&d.brush.extent(d.getDefaultExtent()),d.axis.init(),d.updateTargets(d.data.targets),h&&(d.updateDimension(),d.config.oninit.call(d),d.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),d.bindResize(),d.api.element=d.selectChart.node()},i.smoothLines=function(a,b){var c=this;"grid"===b&&a.each(function(){var a=c.d3.select(this),b=a.attr("x1"),d=a.attr("x2"),e=a.attr("y1"),f=a.attr("y2");a.attr({x1:Math.ceil(b),x2:Math.ceil(d),y1:Math.ceil(e),y2:Math.ceil(f)})})},i.updateSizes=function(){var a=this,b=a.config,c=a.legend?a.getLegendHeight():0,d=a.legend?a.getLegendWidth():0,e=a.isLegendRight||a.isLegendInset?0:c,f=a.hasArcType(),g=b.axis_rotated||f?0:a.getHorizontalAxisHeight("x"),h=b.subchart_show&&!f?b.subchart_size_height+g:0;a.currentWidth=a.getCurrentWidth(),a.currentHeight=a.getCurrentHeight(),a.margin=b.axis_rotated?{top:a.getHorizontalAxisHeight("y2")+a.getCurrentPaddingTop(),right:f?0:a.getCurrentPaddingRight(),bottom:a.getHorizontalAxisHeight("y")+e+a.getCurrentPaddingBottom(),left:h+(f?0:a.getCurrentPaddingLeft())}:{top:4+a.getCurrentPaddingTop(),right:f?0:a.getCurrentPaddingRight(),bottom:g+h+e+a.getCurrentPaddingBottom(),left:f?0:a.getCurrentPaddingLeft()},a.margin2=b.axis_rotated?{top:a.margin.top,right:NaN,bottom:20+e,left:a.rotated_padding_left}:{top:a.currentHeight-h-e,right:NaN,bottom:g+e,left:a.margin.left},a.margin3={top:0,right:NaN,bottom:0,left:0},a.updateSizeForLegend&&a.updateSizeForLegend(c,d),a.width=a.currentWidth-a.margin.left-a.margin.right,a.height=a.currentHeight-a.margin.top-a.margin.bottom,a.width<0&&(a.width=0),a.height<0&&(a.height=0),a.width2=b.axis_rotated?a.margin.left-a.rotated_padding_left-a.rotated_padding_right:a.width,a.height2=b.axis_rotated?a.height:a.currentHeight-a.margin2.top-a.margin2.bottom,a.width2<0&&(a.width2=0),a.height2<0&&(a.height2=0),a.arcWidth=a.width-(a.isLegendRight?d+10:0),a.arcHeight=a.height-(a.isLegendRight?0:10),a.hasType("gauge")&&!b.gauge_fullCircle&&(a.arcHeight+=a.height-a.getGaugeLabelHeight()),a.updateRadius&&a.updateRadius(),a.isLegendRight&&f&&(a.margin3.left=a.arcWidth/2+1.1*a.radiusExpanded)},i.updateTargets=function(a){var b=this;b.updateTargetsForText(a),b.updateTargetsForBar(a),b.updateTargetsForLine(a),b.hasArcType()&&b.updateTargetsForArc&&b.updateTargetsForArc(a),b.updateTargetsForSubchart&&b.updateTargetsForSubchart(a),b.showTargets()},i.showTargets=function(){var a=this;a.svg.selectAll("."+l.target).filter(function(b){return a.isTargetToShow(b.id)}).transition().duration(a.config.transition_duration).style("opacity",1)},i.redraw=function(a,b){var c,d,e,f,g,h,i,j,k,m,n,o,p,q,r,s,t,u,v,x,y,z,A,B,C,D,E,F,G,H=this,I=H.main,J=H.d3,K=H.config,L=H.getShapeIndices(H.isAreaType),M=H.getShapeIndices(H.isBarType),N=H.getShapeIndices(H.isLineType),O=H.hasArcType(),P=H.filterTargetsToShow(H.data.targets),Q=H.xv.bind(H);if(a=a||{},c=w(a,"withY",!0),d=w(a,"withSubchart",!0),e=w(a,"withTransition",!0),h=w(a,"withTransform",!1),i=w(a,"withUpdateXDomain",!1),j=w(a,"withUpdateOrgXDomain",!1),k=w(a,"withTrimXDomain",!0),p=w(a,"withUpdateXAxis",i),m=w(a,"withLegend",!1),n=w(a,"withEventRect",!0),o=w(a,"withDimension",!0),f=w(a,"withTransitionForExit",e),g=w(a,"withTransitionForAxis",e),v=e?K.transition_duration:0,x=f?v:0,y=g?v:0,b=b||H.axis.generateTransitions(y),m&&K.legend_show?H.updateLegend(H.mapToIds(H.data.targets),a,b):o&&H.updateDimension(!0),H.isCategorized()&&0===P.length&&H.x.domain([0,H.axes.x.selectAll(".tick").size()]),P.length?(H.updateXDomain(P,i,j,k),K.axis_x_tick_values||(B=H.axis.updateXAxisTickValues(P))):(H.xAxis.tickValues([]),H.subXAxis.tickValues([])),K.zoom_rescale&&!a.flow&&(E=H.x.orgDomain()),H.y.domain(H.getYDomain(P,"y",E)),H.y2.domain(H.getYDomain(P,"y2",E)),!K.axis_y_tick_values&&K.axis_y_tick_count&&H.yAxis.tickValues(H.axis.generateTickValues(H.y.domain(),K.axis_y_tick_count)),!K.axis_y2_tick_values&&K.axis_y2_tick_count&&H.y2Axis.tickValues(H.axis.generateTickValues(H.y2.domain(),K.axis_y2_tick_count)),H.axis.redraw(b,O),H.axis.updateLabels(e),(i||p)&&P.length)if(K.axis_x_tick_culling&&B){for(C=1;C=0&&J.select(this).style("display",b%D?"none":"block")})}else H.svg.selectAll("."+l.axisX+" .tick text").style("display","block");q=H.generateDrawArea?H.generateDrawArea(L,!1):void 0,r=H.generateDrawBar?H.generateDrawBar(M):void 0,s=H.generateDrawLine?H.generateDrawLine(N,!1):void 0,t=H.generateXYForText(L,M,N,!0),u=H.generateXYForText(L,M,N,!1),c&&(H.subY.domain(H.getYDomain(P,"y")),H.subY2.domain(H.getYDomain(P,"y2"))),H.updateXgridFocus(),I.select("text."+l.text+"."+l.empty).attr("x",H.width/2).attr("y",H.height/2).text(K.data_empty_label_text).transition().style("opacity",P.length?0:1),H.updateGrid(v),H.updateRegion(v),H.updateBar(x),H.updateLine(x),H.updateArea(x),H.updateCircle(),H.hasDataLabel()&&H.updateText(x),H.redrawTitle&&H.redrawTitle(),H.redrawArc&&H.redrawArc(v,x,h),H.redrawSubchart&&H.redrawSubchart(d,b,v,x,L,M,N),I.selectAll("."+l.selectedCircles).filter(H.isBarType.bind(H)).selectAll("circle").remove(),K.interaction_enabled&&!a.flow&&n&&(H.redrawEventRect(),H.updateZoom&&H.updateZoom()),H.updateCircleY(),F=(H.config.axis_rotated?H.circleY:H.circleX).bind(H),G=(H.config.axis_rotated?H.circleX:H.circleY).bind(H),a.flow&&(A=H.generateFlow({targets:P,flow:a.flow,duration:a.flow.duration,drawBar:r,drawLine:s,drawArea:q,cx:F,cy:G,xv:Q,xForText:t,yForText:u})),(v||A)&&H.isTabVisible()?J.transition().duration(v).each(function(){var b=[];[H.redrawBar(r,!0),H.redrawLine(s,!0),H.redrawArea(q,!0),H.redrawCircle(F,G,!0),H.redrawText(t,u,a.flow,!0),H.redrawRegion(!0),H.redrawGrid(!0)].forEach(function(a){a.forEach(function(a){b.push(a)})}),z=H.generateWait(),b.forEach(function(a){z.add(a)})}).call(z,function(){A&&A(),K.onrendered&&K.onrendered.call(H)}):(H.redrawBar(r),H.redrawLine(s),H.redrawArea(q),H.redrawCircle(F,G),H.redrawText(t,u,a.flow),H.redrawRegion(),H.redrawGrid(),K.onrendered&&K.onrendered.call(H)),H.mapToIds(H.data.targets).forEach(function(a){H.withoutFadeIn[a]=!0})},i.updateAndRedraw=function(a){var b,c=this,d=c.config;a=a||{},a.withTransition=w(a,"withTransition",!0),a.withTransform=w(a,"withTransform",!1),a.withLegend=w(a,"withLegend",!1),a.withUpdateXDomain=!0,a.withUpdateOrgXDomain=!0,a.withTransitionForExit=!1,a.withTransitionForTransform=w(a,"withTransitionForTransform",a.withTransition),c.updateSizes(),a.withLegend&&d.legend_show||(b=c.axis.generateTransitions(a.withTransitionForAxis?d.transition_duration:0),c.updateScales(),c.updateSvgSize(),c.transformAll(a.withTransitionForTransform,b)),c.redraw(a,b)},i.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},i.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},i.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},i.isCustomX=function(){var a=this,b=a.config;return!a.isTimeSeries()&&(b.data_x||v(b.data_xs))},i.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},i.getTranslate=function(a){var b,c,d=this,e=d.config;return"main"===a?(b=s(d.margin.left),c=s(d.margin.top)):"context"===a?(b=s(d.margin2.left),c=s(d.margin2.top)):"legend"===a?(b=d.margin3.left,c=d.margin3.top):"x"===a?(b=0,c=e.axis_rotated?0:d.height):"y"===a?(b=0,c=e.axis_rotated?d.height:0):"y2"===a?(b=e.axis_rotated?0:d.width,c=e.axis_rotated?1:0):"subx"===a?(b=0,c=e.axis_rotated?0:d.height2):"arc"===a&&(b=d.arcWidth/2,c=d.arcHeight/2),"translate("+b+","+c+")"},i.initialOpacity=function(a){return null!==a.value&&this.withoutFadeIn[a.id]?1:0},i.initialOpacityForCircle=function(a){return null!==a.value&&this.withoutFadeIn[a.id]?this.opacityForCircle(a):0},i.opacityForCircle=function(a){var b=this.config.point_show?1:0;return m(a.value)?this.isScatterType(a)?.5:b:0},i.opacityForText=function(){return this.hasDataLabel()?1:0},i.xx=function(a){return a?this.x(a.x):null},i.xv=function(a){var b=this,c=a.value;return b.isTimeSeries()?c=b.parseDate(a.value):b.isCategorized()&&"string"==typeof a.value&&(c=b.config.axis_x_categories.indexOf(a.value)),Math.ceil(b.x(c))},i.yv=function(a){var b=this,c=a.axis&&"y2"===a.axis?b.y2:b.y;return Math.ceil(c(a.value))},i.subxx=function(a){return a?this.subX(a.x):null},i.transformMain=function(a,b){var c,d,e,f=this;b&&b.axisX?c=b.axisX:(c=f.main.select("."+l.axisX),a&&(c=c.transition())),b&&b.axisY?d=b.axisY:(d=f.main.select("."+l.axisY),a&&(d=d.transition())),b&&b.axisY2?e=b.axisY2:(e=f.main.select("."+l.axisY2),a&&(e=e.transition())),(a?f.main.transition():f.main).attr("transform",f.getTranslate("main")),c.attr("transform",f.getTranslate("x")),d.attr("transform",f.getTranslate("y")),e.attr("transform",f.getTranslate("y2")),f.main.select("."+l.chartArcs).attr("transform",f.getTranslate("arc"))},i.transformAll=function(a,b){var c=this;c.transformMain(a,b),c.config.subchart_show&&c.transformContext(a,b),c.legend&&c.transformLegend(a)},i.updateSvgSize=function(){var a=this,b=a.svg.select(".c3-brush .background");a.svg.attr("width",a.currentWidth).attr("height",a.currentHeight),a.svg.selectAll(["#"+a.clipId,"#"+a.clipIdForGrid]).select("rect").attr("width",a.width).attr("height",a.height),a.svg.select("#"+a.clipIdForXAxis).select("rect").attr("x",a.getXAxisClipX.bind(a)).attr("y",a.getXAxisClipY.bind(a)).attr("width",a.getXAxisClipWidth.bind(a)).attr("height",a.getXAxisClipHeight.bind(a)),a.svg.select("#"+a.clipIdForYAxis).select("rect").attr("x",a.getYAxisClipX.bind(a)).attr("y",a.getYAxisClipY.bind(a)).attr("width",a.getYAxisClipWidth.bind(a)).attr("height",a.getYAxisClipHeight.bind(a)),a.svg.select("#"+a.clipIdForSubchart).select("rect").attr("width",a.width).attr("height",b.size()?b.attr("height"):0),a.svg.select("."+l.zoomRect).attr("width",a.width).attr("height",a.height),a.selectChart.style("max-height",a.currentHeight+"px")},i.updateDimension=function(a){var b=this;a||(b.config.axis_rotated?(b.axes.x.call(b.xAxis),b.axes.subx.call(b.subXAxis)):(b.axes.y.call(b.yAxis),b.axes.y2.call(b.y2Axis))),b.updateSizes(),b.updateScales(),b.updateSvgSize(),b.transformAll(!1)},i.observeInserted=function(b){var c,d=this;return"undefined"==typeof MutationObserver?void a.console.error("MutationObserver not defined."):(c=new MutationObserver(function(e){e.forEach(function(e){"childList"===e.type&&e.previousSibling&&(c.disconnect(),d.intervalForObserveInserted=a.setInterval(function(){b.node().parentNode&&(a.clearInterval(d.intervalForObserveInserted),d.updateDimension(),d.brush&&d.brush.update(),d.config.oninit.call(d),d.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),b.transition().style("opacity",1))},10))})}),void c.observe(b.node(),{attributes:!0,childList:!0,characterData:!0}))},i.bindResize=function(){var b=this,c=b.config;if(b.resizeFunction=b.generateResize(),b.resizeFunction.add(function(){c.onresize.call(b)}),c.resize_auto&&b.resizeFunction.add(function(){void 0!==b.resizeTimeout&&a.clearTimeout(b.resizeTimeout),b.resizeTimeout=a.setTimeout(function(){delete b.resizeTimeout,b.api.flush()},100)}),b.resizeFunction.add(function(){c.onresized.call(b)}),a.attachEvent)a.attachEvent("onresize",b.resizeFunction);else if(a.addEventListener)a.addEventListener("resize",b.resizeFunction,!1);else{var d=a.onresize;d?d.add&&d.remove||(d=b.generateResize(),d.add(a.onresize)):d=b.generateResize(),d.add(b.resizeFunction),a.onresize=d}},i.generateResize=function(){function a(){b.forEach(function(a){a()})}var b=[];return a.add=function(a){b.push(a)},a.remove=function(a){for(var c=0;c0)for(g=h.hasNegativeValueInTargets(a),b=0;b=0}),0!==e.length)for(d=e[0],g&&k[d]&&k[d].forEach(function(a,b){k[d][b]=0>a?a:0}),c=1;c0||(k[d][b]+=+a)});return h.d3.min(Object.keys(k).map(function(a){return h.d3.min(k[a])}))},i.getYDomainMax=function(a){var b,c,d,e,f,g,h=this,i=h.config,j=h.mapToIds(a),k=h.getValuesAsIdKeyed(a);if(i.data_groups.length>0)for(g=h.hasPositiveValueInTargets(a),b=0;b=0}),0!==e.length)for(d=e[0],g&&k[d]&&k[d].forEach(function(a,b){k[d][b]=a>0?a:0}),c=1;c+a||(k[d][b]+=+a)});return h.d3.max(Object.keys(k).map(function(a){return h.d3.max(k[a])}))},i.getYDomain=function(a,b,c){var d,e,f,g,h,i,j,k,l,n,o,p=this,q=p.config,r=a.filter(function(a){return p.axis.getId(a.id)===b}),s=c?p.filterByXDomain(r,c):r,u="y2"===b?q.axis_y2_min:q.axis_y_min,w="y2"===b?q.axis_y2_max:q.axis_y_max,x=p.getYDomainMin(s),y=p.getYDomainMax(s),z="y2"===b?q.axis_y2_center:q.axis_y_center,A=p.hasType("bar",s)&&q.bar_zerobased||p.hasType("area",s)&&q.area_zerobased,B="y2"===b?q.axis_y2_inverted:q.axis_y_inverted,C=p.hasDataLabel()&&q.axis_rotated,D=p.hasDataLabel()&&!q.axis_rotated;return x=m(u)?u:m(w)?w>x?x:w-10:x,y=m(w)?w:m(u)?y>u?y:u+10:y,0===s.length?"y2"===b?p.y2.domain():p.y.domain():(isNaN(x)&&(x=0),isNaN(y)&&(y=x),x===y&&(0>x?y=0:x=0),n=x>=0&&y>=0,o=0>=x&&0>=y,(m(u)&&n||m(w)&&o)&&(A=!1),A&&(n&&(x=0),o&&(y=0)),e=Math.abs(y-x),f=g=h=.1*e,"undefined"!=typeof z&&(i=Math.max(Math.abs(x),Math.abs(y)),y=z+i,x=z-i),C?(j=p.getDataLabelLength(x,y,"width"),k=t(p.y.range()),l=[j[0]/k,j[1]/k], g+=e*(l[1]/(1-l[0]-l[1])),h+=e*(l[0]/(1-l[0]-l[1]))):D&&(j=p.getDataLabelLength(x,y,"height"),g+=p.axis.convertPixelsToAxisPadding(j[1],e),h+=p.axis.convertPixelsToAxisPadding(j[0],e)),"y"===b&&v(q.axis_y_padding)&&(g=p.axis.getPadding(q.axis_y_padding,"top",g,e),h=p.axis.getPadding(q.axis_y_padding,"bottom",h,e)),"y2"===b&&v(q.axis_y2_padding)&&(g=p.axis.getPadding(q.axis_y2_padding,"top",g,e),h=p.axis.getPadding(q.axis_y2_padding,"bottom",h,e)),A&&(n&&(h=x),o&&(g=-y)),d=[x-h,y+g],B?d.reverse():d)},i.getXDomainMin=function(a){var b=this,c=b.config;return q(c.axis_x_min)?b.isTimeSeries()?this.parseDate(c.axis_x_min):c.axis_x_min:b.d3.min(a,function(a){return b.d3.min(a.values,function(a){return a.x})})},i.getXDomainMax=function(a){var b=this,c=b.config;return q(c.axis_x_max)?b.isTimeSeries()?this.parseDate(c.axis_x_max):c.axis_x_max:b.d3.max(a,function(a){return b.d3.max(a.values,function(a){return a.x})})},i.getXDomainPadding=function(a){var b,c,d,e,f=this,g=f.config,h=a[1]-a[0];return f.isCategorized()?c=0:f.hasType("bar")?(b=f.getMaxDataCount(),c=b>1?h/(b-1)/2:.5):c=.01*h,"object"==typeof g.axis_x_padding&&v(g.axis_x_padding)?(d=m(g.axis_x_padding.left)?g.axis_x_padding.left:c,e=m(g.axis_x_padding.right)?g.axis_x_padding.right:c):d=e="number"==typeof g.axis_x_padding?g.axis_x_padding:c,{left:d,right:e}},i.getXDomain=function(a){var b=this,c=[b.getXDomainMin(a),b.getXDomainMax(a)],d=c[0],e=c[1],f=b.getXDomainPadding(c),g=0,h=0;return d-e!==0||b.isCategorized()||(b.isTimeSeries()?(d=new Date(.5*d.getTime()),e=new Date(1.5*e.getTime())):(d=0===d?1:.5*d,e=0===e?-1:1.5*e)),(d||0===d)&&(g=b.isTimeSeries()?new Date(d.getTime()-f.left):d-f.left),(e||0===e)&&(h=b.isTimeSeries()?new Date(e.getTime()+f.right):e+f.right),[g,h]},i.updateXDomain=function(a,b,c,d,e){var f=this,g=f.config;return c&&(f.x.domain(e?e:f.d3.extent(f.getXDomain(a))),f.orgXDomain=f.x.domain(),g.zoom_enabled&&f.zoom.scale(f.x).updateScaleExtent(),f.subX.domain(f.x.domain()),f.brush&&f.brush.scale(f.subX)),b&&(f.x.domain(e?e:!f.brush||f.brush.empty()?f.orgXDomain:f.brush.extent()),g.zoom_enabled&&f.zoom.scale(f.x).updateScaleExtent()),d&&f.x.domain(f.trimXDomain(f.x.orgDomain())),f.x.domain()},i.trimXDomain=function(a){var b=this.getZoomDomain(),c=b[0],d=b[1];return a[0]<=c&&(a[1]=+a[1]+(c-a[0]),a[0]=c),d<=a[1]&&(a[0]=+a[0]-(a[1]-d),a[1]=d),a},i.isX=function(a){var b=this,c=b.config;return c.data_x&&a===c.data_x||v(c.data_xs)&&x(c.data_xs,a)},i.isNotX=function(a){return!this.isX(a)},i.getXKey=function(a){var b=this,c=b.config;return c.data_x?c.data_x:v(c.data_xs)?c.data_xs[a]:null},i.getXValuesOfXKey=function(a,b){var c,d=this,e=b&&v(b)?d.mapToIds(b):[];return e.forEach(function(b){d.getXKey(b)===a&&(c=d.data.xs[b])}),c},i.getIndexByX=function(a){var b=this,c=b.filterByX(b.data.targets,a);return c.length?c[0].index:null},i.getXValue=function(a,b){var c=this;return a in c.data.xs&&c.data.xs[a]&&m(c.data.xs[a][b])?c.data.xs[a][b]:b},i.getOtherTargetXs=function(){var a=this,b=Object.keys(a.data.xs);return b.length?a.data.xs[b[0]]:null},i.getOtherTargetX=function(a){var b=this.getOtherTargetXs();return b&&a1},i.isMultipleX=function(){return v(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},i.addName=function(a){var b,c=this;return a&&(b=c.config.data_names[a.id],a.name=void 0!==b?b:a.id),a},i.getValueOnIndex=function(a,b){var c=a.filter(function(a){return a.index===b});return c.length?c[0]:null},i.updateTargetX=function(a,b){var c=this;a.forEach(function(a){a.values.forEach(function(d,e){d.x=c.generateTargetX(b[e],a.id,e)}),c.data.xs[a.id]=b})},i.updateTargetXs=function(a,b){var c=this;a.forEach(function(a){b[a.id]&&c.updateTargetX([a],b[a.id])})},i.generateTargetX=function(a,b,c){var d,e=this;return d=e.isTimeSeries()?a?e.parseDate(a):e.parseDate(e.getXValue(b,c)):e.isCustomX()&&!e.isCategorized()?m(a)?+a:e.getXValue(b,c):c},i.cloneTarget=function(a){return{id:a.id,id_org:a.id_org,values:a.values.map(function(a){return{x:a.x,value:a.value,id:a.id}})}},i.updateXs=function(){var a=this;a.data.targets.length&&(a.xs=[],a.data.targets[0].values.forEach(function(b){a.xs[b.index]=b.x}))},i.getPrevX=function(a){var b=this.xs[a-1];return"undefined"!=typeof b?b:null},i.getNextX=function(a){var b=this.xs[a+1];return"undefined"!=typeof b?b:null},i.getMaxDataCount=function(){var a=this;return a.d3.max(a.data.targets,function(a){return a.values.length})},i.getMaxDataCountTarget=function(a){var b,c=a.length,d=0;return c>1?a.forEach(function(a){a.values.length>d&&(b=a,d=a.values.length)}):b=c?a[0]:null,b},i.getEdgeX=function(a){var b=this;return a.length?[b.d3.min(a,function(a){return a.values[0].x}),b.d3.max(a,function(a){return a.values[a.values.length-1].x})]:[0,0]},i.mapToIds=function(a){return a.map(function(a){return a.id})},i.mapToTargetIds=function(a){var b=this;return a?[].concat(a):b.mapToIds(b.data.targets)},i.hasTarget=function(a,b){var c,d=this.mapToIds(a);for(c=0;ca?-1:a>b?1:a>=b?0:NaN})},i.addHiddenTargetIds=function(a){this.hiddenTargetIds=this.hiddenTargetIds.concat(a)},i.removeHiddenTargetIds=function(a){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(b){return a.indexOf(b)<0})},i.addHiddenLegendIds=function(a){this.hiddenLegendIds=this.hiddenLegendIds.concat(a)},i.removeHiddenLegendIds=function(a){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(b){return a.indexOf(b)<0})},i.getValuesAsIdKeyed=function(a){var b={};return a.forEach(function(a){b[a.id]=[],a.values.forEach(function(c){b[a.id].push(c.value)})}),b},i.checkValueInTargets=function(a,b){var c,d,e,f=Object.keys(a);for(c=0;ca})},i.hasPositiveValueInTargets=function(a){return this.checkValueInTargets(a,function(a){return a>0})},i.isOrderDesc=function(){var a=this.config;return"string"==typeof a.data_order&&"desc"===a.data_order.toLowerCase()},i.isOrderAsc=function(){var a=this.config;return"string"==typeof a.data_order&&"asc"===a.data_order.toLowerCase()},i.orderTargets=function(a){var b=this,c=b.config,d=b.isOrderAsc(),e=b.isOrderDesc();return d||e?a.sort(function(a,b){var c=function(a,b){return a+Math.abs(b.value)},e=a.values.reduce(c,0),f=b.values.reduce(c,0);return d?f-e:e-f}):n(c.data_order)&&a.sort(c.data_order),a},i.filterByX=function(a,b){return this.d3.merge(a.map(function(a){return a.values})).filter(function(a){return a.x-b===0})},i.filterRemoveNull=function(a){return a.filter(function(a){return m(a.value)})},i.filterByXDomain=function(a,b){return a.map(function(a){return{id:a.id,id_org:a.id_org,values:a.values.filter(function(a){return b[0]<=a.x&&a.x<=b[1]})}})},i.hasDataLabel=function(){var a=this.config;return"boolean"==typeof a.data_labels&&a.data_labels?!0:!("object"!=typeof a.data_labels||!v(a.data_labels))},i.getDataLabelLength=function(a,b,c){var d=this,e=[0,0],f=1.3;return d.selectChart.select("svg").selectAll(".dummy").data([a,b]).enter().append("text").text(function(a){return d.dataLabelFormat(a.id)(a)}).each(function(a,b){e[b]=this.getBoundingClientRect()[c]*f}).remove(),e},i.isNoneArc=function(a){return this.hasTarget(this.data.targets,a.id)},i.isArc=function(a){return"data"in a&&this.hasTarget(this.data.targets,a.data.id)},i.findSameXOfValues=function(a,b){var c,d=a[b].x,e=[];for(c=b-1;c>=0&&d===a[c].x;c--)e.push(a[c]);for(c=b;cf&&(e=f,c=a)}),c},i.dist=function(a,b){var c=this,d=c.config,e=d.axis_rotated?1:0,f=d.axis_rotated?0:1,g=c.circleY(a,a.index),h=c.x(a.x);return Math.sqrt(Math.pow(h-b[e],2)+Math.pow(g-b[f],2))},i.convertValuesToStep=function(a){var b,c=[].concat(a);if(!this.isCategorized())return a;for(b=a.length+1;b>0;b--)c[b]=c[b-1];return c[0]={x:c[0].x-1,value:c[0].value,id:c[0].id},c[a.length+1]={x:c[a.length].x+1,value:c[a.length].value,id:c[a.length].id},c},i.updateDataAttributes=function(a,b){var c=this,d=c.config,e=d["data_"+a];return"undefined"==typeof b?e:(Object.keys(b).forEach(function(a){e[a]=b[a]}),c.redraw({withLegend:!0}),e)},i.convertUrlToData=function(a,b,c,d,e){var f=this,g=b?b:"csv",h=f.d3.xhr(a);c&&Object.keys(c).forEach(function(a){h.header(a,c[a])}),h.get(function(a,b){var c;if(!b)throw new Error(a.responseURL+" "+a.status+" ("+a.statusText+")");c="json"===g?f.convertJsonToData(JSON.parse(b.response),d):"tsv"===g?f.convertTsvToData(b.response):f.convertCsvToData(b.response),e.call(f,c)})},i.convertXsvToData=function(a,b){var c,d=b.parseRows(a);return 1===d.length?(c=[{}],d[0].forEach(function(a){c[0][a]=null})):c=b.parse(a),c},i.convertCsvToData=function(a){return this.convertXsvToData(a,this.d3.csv)},i.convertTsvToData=function(a){return this.convertXsvToData(a,this.d3.tsv)},i.convertJsonToData=function(a,b){var c,d,e=this,f=[];return b?(b.x?(c=b.value.concat(b.x),e.config.data_x=b.x):c=b.value,f.push(c),a.forEach(function(a){var b=[];c.forEach(function(c){var d=e.findValueInJson(a,c);p(d)&&(d=null),b.push(d)}),f.push(b)}),d=e.convertRowsToData(f)):(Object.keys(a).forEach(function(b){f.push([b].concat(a[b]))}),d=e.convertColumnsToData(f)),d},i.findValueInJson=function(a,b){b=b.replace(/\[(\w+)\]/g,".$1"),b=b.replace(/^\./,"");for(var c=b.split("."),d=0;d=0?d.data.xs[c]=(b&&d.data.xs[c]?d.data.xs[c]:[]).concat(a.map(function(a){return a[f]}).filter(m).map(function(a,b){return d.generateTargetX(a,c,b)})):e.data_x?d.data.xs[c]=d.getOtherTargetXs():v(e.data_xs)&&(d.data.xs[c]=d.getXValuesOfXKey(f,d.data.targets)):d.data.xs[c]=a.map(function(a,b){return b})}),f.forEach(function(a){if(!d.data.xs[a])throw new Error('x is not defined for id = "'+a+'".')}),c=f.map(function(b,c){var f=e.data_idConverter(b);return{id:f,id_org:b,values:a.map(function(a,g){var h,i=d.getXKey(b),j=a[i],k=null===a[b]||isNaN(a[b])?null:+a[b];return d.isCustomX()&&d.isCategorized()&&0===c&&!p(j)?(0===c&&0===g&&(e.axis_x_categories=[]),h=e.axis_x_categories.indexOf(j),-1===h&&(h=e.axis_x_categories.length,e.axis_x_categories.push(j))):h=d.generateTargetX(j,b,g),(p(a[b])||d.data.xs[b].length<=g)&&(h=void 0),{x:h,value:k,id:f}}).filter(function(a){return q(a.x)})}}),c.forEach(function(a){var b;e.data_xSort&&(a.values=a.values.sort(function(a,b){var c=a.x||0===a.x?a.x:1/0,d=b.x||0===b.x?b.x:1/0;return c-d})),b=0,a.values.forEach(function(a){a.index=b++}),d.data.xs[a.id].sort(function(a,b){return a-b})}),d.hasNegativeValue=d.hasNegativeValueInTargets(c),d.hasPositiveValue=d.hasPositiveValueInTargets(c),e.data_type&&d.setTargetType(d.mapToIds(c).filter(function(a){return!(a in e.data_types)}),e.data_type),c.forEach(function(a){d.addCache(a.id_org,a)}),c},i.load=function(a,b){var c=this;a&&(b.filter&&(a=a.filter(b.filter)),(b.type||b.types)&&a.forEach(function(a){var d=b.types&&b.types[a.id]?b.types[a.id]:b.type;c.setTargetType(a.id,d)}),c.data.targets.forEach(function(b){for(var c=0;c0?c:320/(a.hasType("gauge")&&!b.gauge_fullCircle?2:1)},i.getCurrentPaddingTop=function(){var a=this,b=a.config,c=m(b.padding_top)?b.padding_top:0;return a.title&&a.title.node()&&(c+=a.getTitlePadding()),c},i.getCurrentPaddingBottom=function(){var a=this.config;return m(a.padding_bottom)?a.padding_bottom:0},i.getCurrentPaddingLeft=function(a){var b=this,c=b.config;return m(c.padding_left)?c.padding_left:c.axis_rotated?c.axis_x_show?Math.max(r(b.getAxisWidthByAxisId("x",a)),40):1:!c.axis_y_show||c.axis_y_inner?b.axis.getYAxisLabelPosition().isOuter?30:1:r(b.getAxisWidthByAxisId("y",a))},i.getCurrentPaddingRight=function(){var a=this,b=a.config,c=10,d=a.isLegendRight?a.getLegendWidth()+20:0;return m(b.padding_right)?b.padding_right+1:b.axis_rotated?c+d:!b.axis_y2_show||b.axis_y2_inner?2+d+(a.axis.getY2AxisLabelPosition().isOuter?20:0):r(a.getAxisWidthByAxisId("y2"))+d},i.getParentRectValue=function(a){for(var b,c=this.selectChart.node();c&&"BODY"!==c.tagName;){try{b=c.getBoundingClientRect()[a]}catch(d){"width"===a&&(b=c.offsetWidth)}if(b)break;c=c.parentNode}return b},i.getParentWidth=function(){return this.getParentRectValue("width")},i.getParentHeight=function(){var a=this.selectChart.style("height");return a.indexOf("px")>0?+a.replace("px",""):0},i.getSvgLeft=function(a){var b=this,c=b.config,d=c.axis_rotated||!c.axis_rotated&&!c.axis_y_inner,e=c.axis_rotated?l.axisX:l.axisY,f=b.main.select("."+e).node(),g=f&&d?f.getBoundingClientRect():{right:0},h=b.selectChart.node().getBoundingClientRect(),i=b.hasArcType(),j=g.right-h.left-(i?0:b.getCurrentPaddingLeft(a));return j>0?j:0},i.getAxisWidthByAxisId=function(a,b){var c=this,d=c.axis.getLabelPositionById(a);return c.axis.getMaxTickWidth(a,b)+(d.isInner?20:40)},i.getHorizontalAxisHeight=function(a){var b=this,c=b.config,d=30;return"x"!==a||c.axis_x_show?"x"===a&&c.axis_x_height?c.axis_x_height:"y"!==a||c.axis_y_show?"y2"!==a||c.axis_y2_show?("x"===a&&!c.axis_rotated&&c.axis_x_tick_rotate&&(d=30+b.axis.getMaxTickWidth(a)*Math.cos(Math.PI*(90-c.axis_x_tick_rotate)/180)),"y"===a&&c.axis_rotated&&c.axis_y_tick_rotate&&(d=30+b.axis.getMaxTickWidth(a)*Math.cos(Math.PI*(90-c.axis_y_tick_rotate)/180)),d+(b.axis.getLabelPositionById(a).isInner?0:10)+("y2"===a?-10:0)):b.rotated_padding_top:!c.legend_show||b.isLegendRight||b.isLegendInset?1:10:8},i.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},i.getShapeIndices=function(a){var b,c,d=this,e=d.config,f={},g=0;return d.filterTargetsToShow(d.data.targets.filter(a,d)).forEach(function(a){for(b=0;b=0&&(j+=h(e[g].value)-i))}),j}},i.isWithinShape=function(a,b){var c,d=this,e=d.d3.select(a);return d.isTargetToShow(b.id)?"circle"===a.nodeName?c=d.isStepType(b)?d.isWithinStep(a,d.getYScale(b.id)(b.value)):d.isWithinCircle(a,1.5*d.pointSelectR(b)):"path"===a.nodeName&&(c=e.classed(l.bar)?d.isWithinBar(a):!0):c=!1,c},i.getInterpolate=function(a){var b=this,c=b.isInterpolationType(b.config.spline_interpolation_type)?b.config.spline_interpolation_type:"cardinal";return b.isSplineType(a)?c:b.isStepType(a)?b.config.line_step_type:"linear"},i.initLine=function(){var a=this;a.main.select("."+l.chart).append("g").attr("class",l.chartLines)},i.updateTargetsForLine=function(a){var b,c,d=this,e=d.config,f=d.classChartLine.bind(d),g=d.classLines.bind(d),h=d.classAreas.bind(d),i=d.classCircles.bind(d),j=d.classFocus.bind(d);b=d.main.select("."+l.chartLines).selectAll("."+l.chartLine).data(a).attr("class",function(a){return f(a)+j(a)}),c=b.enter().append("g").attr("class",f).style("opacity",0).style("pointer-events","none"),c.append("g").attr("class",g),c.append("g").attr("class",h),c.append("g").attr("class",function(a){return d.generateClass(l.selectedCircles,a.id)}),c.append("g").attr("class",i).style("cursor",function(a){return e.data_selection_isselectable(a)?"pointer":null}),a.forEach(function(a){d.main.selectAll("."+l.selectedCircles+d.getTargetSelectorSuffix(a.id)).selectAll("."+l.selectedCircle).each(function(b){b.value=a.values[b.index].value})})},i.updateLine=function(a){var b=this;b.mainLine=b.main.selectAll("."+l.lines).selectAll("."+l.line).data(b.lineData.bind(b)),b.mainLine.enter().append("path").attr("class",b.classLine.bind(b)).style("stroke",b.color),b.mainLine.style("opacity",b.initialOpacity.bind(b)).style("shape-rendering",function(a){return b.isStepType(a)?"crispEdges":""}).attr("transform",null),b.mainLine.exit().transition().duration(a).style("opacity",0).remove()},i.redrawLine=function(a,b){return[(b?this.mainLine.transition(Math.random().toString()):this.mainLine).attr("d",a).style("stroke",this.color).style("opacity",1)]},i.generateDrawLine=function(a,b){var c=this,d=c.config,e=c.d3.svg.line(),f=c.generateGetLinePoints(a,b),g=b?c.getSubYScale:c.getYScale,h=function(a){return(b?c.subxx:c.xx).call(c,a)},i=function(a,b){return d.data_groups.length>0?f(a,b)[0][1]:g.call(c,a.id)(a.value)};return e=d.axis_rotated?e.x(i).y(h):e.x(h).y(i),d.line_connectNull||(e=e.defined(function(a){return null!=a.value})),function(a){var f,h=d.line_connectNull?c.filterRemoveNull(a.values):a.values,i=b?c.x:c.subX,j=g.call(c,a.id),k=0,l=0;return c.isLineType(a)?d.data_regions[a.id]?f=c.lineWithRegions(h,i,j,d.data_regions[a.id]):(c.isStepType(a)&&(h=c.convertValuesToStep(h)),f=e.interpolate(c.getInterpolate(a))(h)):(h[0]&&(k=i(h[0].x),l=j(h[0].value)),f=d.axis_rotated?"M "+l+" "+k:"M "+k+" "+l),f?f:"M 0 0"}},i.generateGetLinePoints=function(a,b){var c=this,d=c.config,e=a.__max__+1,f=c.getShapeX(0,e,a,!!b),g=c.getShapeY(!!b),h=c.getShapeOffset(c.isLineType,a,!!b),i=b?c.getSubYScale:c.getYScale;return function(a,b){var e=i.call(c,a.id)(0),j=h(a,b)||e,k=f(a),l=g(a);return d.axis_rotated&&(0l||a.value<0&&l>e)&&(l=e),[[k,l-(e-j)],[k,l-(e-j)],[k,l-(e-j)],[k,l-(e-j)]]}},i.lineWithRegions=function(a,b,c,d){function e(a,b){var c;for(c=0;c=h;h+=r)x+=i(a[g-1],a[g],h,o);w=a[g].x}return x},i.updateArea=function(a){var b=this,c=b.d3;b.mainArea=b.main.selectAll("."+l.areas).selectAll("."+l.area).data(b.lineData.bind(b)),b.mainArea.enter().append("path").attr("class",b.classArea.bind(b)).style("fill",b.color).style("opacity",function(){return b.orgAreaOpacity=+c.select(this).style("opacity"),0}),b.mainArea.style("opacity",b.orgAreaOpacity),b.mainArea.exit().transition().duration(a).style("opacity",0).remove()},i.redrawArea=function(a,b){return[(b?this.mainArea.transition(Math.random().toString()):this.mainArea).attr("d",a).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},i.generateDrawArea=function(a,b){var c=this,d=c.config,e=c.d3.svg.area(),f=c.generateGetAreaPoints(a,b),g=b?c.getSubYScale:c.getYScale,h=function(a){return(b?c.subxx:c.xx).call(c,a)},i=function(a,b){return d.data_groups.length>0?f(a,b)[0][1]:g.call(c,a.id)(c.getAreaBaseValue(a.id))},j=function(a,b){return d.data_groups.length>0?f(a,b)[1][1]:g.call(c,a.id)(a.value)};return e=d.axis_rotated?e.x0(i).x1(j).y(h):e.x(h).y0(d.area_above?0:i).y1(j),d.line_connectNull||(e=e.defined(function(a){return null!==a.value})),function(a){var b,f=d.line_connectNull?c.filterRemoveNull(a.values):a.values,g=0,h=0;return c.isAreaType(a)?(c.isStepType(a)&&(f=c.convertValuesToStep(f)),b=e.interpolate(c.getInterpolate(a))(f)):(f[0]&&(g=c.x(f[0].x),h=c.getYScale(a.id)(f[0].value)),b=d.axis_rotated?"M "+h+" "+g:"M "+g+" "+h),b?b:"M 0 0"}},i.getAreaBaseValue=function(){return 0},i.generateGetAreaPoints=function(a,b){var c=this,d=c.config,e=a.__max__+1,f=c.getShapeX(0,e,a,!!b),g=c.getShapeY(!!b),h=c.getShapeOffset(c.isAreaType,a,!!b),i=b?c.getSubYScale:c.getYScale;return function(a,b){var e=i.call(c,a.id)(0),j=h(a,b)||e,k=f(a),l=g(a);return d.axis_rotated&&(0l||a.value<0&&l>e)&&(l=e),[[k,j],[k,l-(e-j)],[k,l-(e-j)],[k,j]]}},i.updateCircle=function(){var a=this;a.mainCircle=a.main.selectAll("."+l.circles).selectAll("."+l.circle).data(a.lineOrScatterData.bind(a)),a.mainCircle.enter().append("circle").attr("class",a.classCircle.bind(a)).attr("r",a.pointR.bind(a)).style("fill",a.color),a.mainCircle.style("opacity",a.initialOpacityForCircle.bind(a)),a.mainCircle.exit().remove()},i.redrawCircle=function(a,b,c){var d=this.main.selectAll("."+l.selectedCircle);return[(c?this.mainCircle.transition(Math.random().toString()):this.mainCircle).style("opacity",this.opacityForCircle.bind(this)).style("fill",this.color).attr("cx",a).attr("cy",b),(c?d.transition(Math.random().toString()):d).attr("cx",a).attr("cy",b)]},i.circleX=function(a){return a.x||0===a.x?this.x(a.x):null},i.updateCircleY=function(){var a,b,c=this;c.config.data_groups.length>0?(a=c.getShapeIndices(c.isLineType),b=c.generateGetLinePoints(a),c.circleY=function(a,c){return b(a,c)[0][1]}):c.circleY=function(a){return c.getYScale(a.id)(a.value)}},i.getCircles=function(a,b){var c=this;return(b?c.main.selectAll("."+l.circles+c.getTargetSelectorSuffix(b)):c.main).selectAll("."+l.circle+(m(a)?"-"+a:""))},i.expandCircles=function(a,b,c){var d=this,e=d.pointExpandedR.bind(d);c&&d.unexpandCircles(),d.getCircles(a,b).classed(l.EXPANDED,!0).attr("r",e)},i.unexpandCircles=function(a){var b=this,c=b.pointR.bind(b);b.getCircles(a).filter(function(){return b.d3.select(this).classed(l.EXPANDED)}).classed(l.EXPANDED,!1).attr("r",c)},i.pointR=function(a){var b=this,c=b.config;return b.isStepType(a)?0:n(c.point_r)?c.point_r(a):c.point_r; },i.pointExpandedR=function(a){var b=this,c=b.config;return c.point_focus_expand_enabled?c.point_focus_expand_r?c.point_focus_expand_r:1.75*b.pointR(a):b.pointR(a)},i.pointSelectR=function(a){var b=this,c=b.config;return n(c.point_select_r)?c.point_select_r(a):c.point_select_r?c.point_select_r:4*b.pointR(a)},i.isWithinCircle=function(a,b){var c=this.d3,d=c.mouse(a),e=c.select(a),f=+e.attr("cx"),g=+e.attr("cy");return Math.sqrt(Math.pow(f-d[0],2)+Math.pow(g-d[1],2))d.bar_width_max?d.bar_width_max:e},i.getBars=function(a,b){var c=this;return(b?c.main.selectAll("."+l.bars+c.getTargetSelectorSuffix(b)):c.main).selectAll("."+l.bar+(m(a)?"-"+a:""))},i.expandBars=function(a,b,c){var d=this;c&&d.unexpandBars(),d.getBars(a,b).classed(l.EXPANDED,!0)},i.unexpandBars=function(a){var b=this;b.getBars(a).classed(l.EXPANDED,!1)},i.generateDrawBar=function(a,b){var c=this,d=c.config,e=c.generateGetBarPoints(a,b);return function(a,b){var c=e(a,b),f=d.axis_rotated?1:0,g=d.axis_rotated?0:1,h="M "+c[0][f]+","+c[0][g]+" L"+c[1][f]+","+c[1][g]+" L"+c[2][f]+","+c[2][g]+" L"+c[3][f]+","+c[3][g]+" z";return h}},i.generateGetBarPoints=function(a,b){var c=this,d=b?c.subXAxis:c.xAxis,e=a.__max__+1,f=c.getBarW(d,e),g=c.getShapeX(f,e,a,!!b),h=c.getShapeY(!!b),i=c.getShapeOffset(c.isBarType,a,!!b),j=b?c.getSubYScale:c.getYScale;return function(a,b){var d=j.call(c,a.id)(0),e=i(a,b)||d,k=g(a),l=h(a);return c.config.axis_rotated&&(0l||a.value<0&&l>d)&&(l=d),[[k,e],[k,l-(d-e)],[k+f,l-(d-e)],[k+f,e]]}},i.isWithinBar=function(a){var b=this.d3.mouse(a),c=a.getBoundingClientRect(),d=a.pathSegList.getItem(0),e=a.pathSegList.getItem(1),f=Math.min(d.x,e.x),g=Math.min(d.y,e.y),h=c.width,i=c.height,j=2,k=f-j,l=f+h+j,m=g+i+j,n=g-j;return kf.width?d=f.width-g.width:0>d&&(d=4)),d},i.getYForText=function(a,b,c){var d,e=this,f=c.getBoundingClientRect();return e.config.axis_rotated?d=(a[0][0]+a[2][0]+.6*f.height)/2:(d=a[2][1],b.value<0||0===b.value&&!e.hasPositiveValue?(d+=f.height,e.isBarType(b)&&e.isSafari()?d-=3:!e.isBarType(b)&&e.isChrome()&&(d+=3)):d+=e.isBarType(b)?-3:-6),null!==b.value||e.config.axis_rotated||(dthis.height&&(d=this.height-4)),d},i.setTargetType=function(a,b){var c=this,d=c.config;c.mapToTargetIds(a).forEach(function(a){c.withoutFadeIn[a]=b===d.data_types[a],d.data_types[a]=b}),a||(d.data_type=b)},i.hasType=function(a,b){var c=this,d=c.config.data_types,e=!1;return b=b||c.data.targets,b&&b.length?b.forEach(function(b){var c=d[b.id];(c&&c.indexOf(a)>=0||!c&&"line"===a)&&(e=!0)}):Object.keys(d).length?Object.keys(d).forEach(function(b){d[b]===a&&(e=!0)}):e=c.config.data_type===a,e},i.hasArcType=function(a){return this.hasType("pie",a)||this.hasType("donut",a)||this.hasType("gauge",a)},i.isLineType=function(a){var b=this.config,c=o(a)?a:a.id;return!b.data_types[c]||["line","spline","area","area-spline","step","area-step"].indexOf(b.data_types[c])>=0},i.isStepType=function(a){var b=o(a)?a:a.id;return["step","area-step"].indexOf(this.config.data_types[b])>=0},i.isSplineType=function(a){var b=o(a)?a:a.id;return["spline","area-spline"].indexOf(this.config.data_types[b])>=0},i.isAreaType=function(a){var b=o(a)?a:a.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[b])>=0},i.isBarType=function(a){var b=o(a)?a:a.id;return"bar"===this.config.data_types[b]},i.isScatterType=function(a){var b=o(a)?a:a.id;return"scatter"===this.config.data_types[b]},i.isPieType=function(a){var b=o(a)?a:a.id;return"pie"===this.config.data_types[b]},i.isGaugeType=function(a){var b=o(a)?a:a.id;return"gauge"===this.config.data_types[b]},i.isDonutType=function(a){var b=o(a)?a:a.id;return"donut"===this.config.data_types[b]},i.isArcType=function(a){return this.isPieType(a)||this.isDonutType(a)||this.isGaugeType(a)},i.lineData=function(a){return this.isLineType(a)?[a]:[]},i.arcData=function(a){return this.isArcType(a.data)?[a]:[]},i.barData=function(a){return this.isBarType(a)?a.values:[]},i.lineOrScatterData=function(a){return this.isLineType(a)||this.isScatterType(a)?a.values:[]},i.barOrLineData=function(a){return this.isBarType(a)||this.isLineType(a)?a.values:[]},i.isInterpolationType=function(a){return["linear","linear-closed","basis","basis-open","basis-closed","bundle","cardinal","cardinal-open","cardinal-closed","monotone"].indexOf(a)>=0},i.initGrid=function(){var a=this,b=a.config,c=a.d3;a.grid=a.main.append("g").attr("clip-path",a.clipPathForGrid).attr("class",l.grid),b.grid_x_show&&a.grid.append("g").attr("class",l.xgrids),b.grid_y_show&&a.grid.append("g").attr("class",l.ygrids),b.grid_focus_show&&a.grid.append("g").attr("class",l.xgridFocus).append("line").attr("class",l.xgridFocus),a.xgrid=c.selectAll([]),b.grid_lines_front||a.initGridLines()},i.initGridLines=function(){var a=this,b=a.d3;a.gridLines=a.main.append("g").attr("clip-path",a.clipPathForGrid).attr("class",l.grid+" "+l.gridLines),a.gridLines.append("g").attr("class",l.xgridLines),a.gridLines.append("g").attr("class",l.ygridLines),a.xgridLines=b.selectAll([])},i.updateXGrid=function(a){var b=this,c=b.config,d=b.d3,e=b.generateGridData(c.grid_x_type,b.x),f=b.isCategorized()?b.xAxis.tickOffset():0;b.xgridAttr=c.axis_rotated?{x1:0,x2:b.width,y1:function(a){return b.x(a)-f},y2:function(a){return b.x(a)-f}}:{x1:function(a){return b.x(a)+f},x2:function(a){return b.x(a)+f},y1:0,y2:b.height},b.xgrid=b.main.select("."+l.xgrids).selectAll("."+l.xgrid).data(e),b.xgrid.enter().append("line").attr("class",l.xgrid),a||b.xgrid.attr(b.xgridAttr).style("opacity",function(){return+d.select(this).attr(c.axis_rotated?"y1":"x1")===(c.axis_rotated?b.height:0)?0:1}),b.xgrid.exit().remove()},i.updateYGrid=function(){var a=this,b=a.config,c=a.yAxis.tickValues()||a.y.ticks(b.grid_y_ticks);a.ygrid=a.main.select("."+l.ygrids).selectAll("."+l.ygrid).data(c),a.ygrid.enter().append("line").attr("class",l.ygrid),a.ygrid.attr("x1",b.axis_rotated?a.y:0).attr("x2",b.axis_rotated?a.y:a.width).attr("y1",b.axis_rotated?0:a.y).attr("y2",b.axis_rotated?a.height:a.y),a.ygrid.exit().remove(),a.smoothLines(a.ygrid,"grid")},i.gridTextAnchor=function(a){return a.position?a.position:"end"},i.gridTextDx=function(a){return"start"===a.position?4:"middle"===a.position?0:-4},i.xGridTextX=function(a){return"start"===a.position?-this.height:"middle"===a.position?-this.height/2:0},i.yGridTextX=function(a){return"start"===a.position?0:"middle"===a.position?this.width/2:this.width},i.updateGrid=function(a){var b,c,d,e=this,f=e.main,g=e.config;e.grid.style("visibility",e.hasArcType()?"hidden":"visible"),f.select("line."+l.xgridFocus).style("visibility","hidden"),g.grid_x_show&&e.updateXGrid(),e.xgridLines=f.select("."+l.xgridLines).selectAll("."+l.xgridLine).data(g.grid_x_lines),b=e.xgridLines.enter().append("g").attr("class",function(a){return l.xgridLine+(a["class"]?" "+a["class"]:"")}),b.append("line").style("opacity",0),b.append("text").attr("text-anchor",e.gridTextAnchor).attr("transform",g.axis_rotated?"":"rotate(-90)").attr("dx",e.gridTextDx).attr("dy",-5).style("opacity",0),e.xgridLines.exit().transition().duration(a).style("opacity",0).remove(),g.grid_y_show&&e.updateYGrid(),e.ygridLines=f.select("."+l.ygridLines).selectAll("."+l.ygridLine).data(g.grid_y_lines),c=e.ygridLines.enter().append("g").attr("class",function(a){return l.ygridLine+(a["class"]?" "+a["class"]:"")}),c.append("line").style("opacity",0),c.append("text").attr("text-anchor",e.gridTextAnchor).attr("transform",g.axis_rotated?"rotate(-90)":"").attr("dx",e.gridTextDx).attr("dy",-5).style("opacity",0),d=e.yv.bind(e),e.ygridLines.select("line").transition().duration(a).attr("x1",g.axis_rotated?d:0).attr("x2",g.axis_rotated?d:e.width).attr("y1",g.axis_rotated?0:d).attr("y2",g.axis_rotated?e.height:d).style("opacity",1),e.ygridLines.select("text").transition().duration(a).attr("x",g.axis_rotated?e.xGridTextX.bind(e):e.yGridTextX.bind(e)).attr("y",d).text(function(a){return a.text}).style("opacity",1),e.ygridLines.exit().transition().duration(a).style("opacity",0).remove()},i.redrawGrid=function(a){var b=this,c=b.config,d=b.xv.bind(b),e=b.xgridLines.select("line"),f=b.xgridLines.select("text");return[(a?e.transition():e).attr("x1",c.axis_rotated?0:d).attr("x2",c.axis_rotated?b.width:d).attr("y1",c.axis_rotated?d:0).attr("y2",c.axis_rotated?d:b.height).style("opacity",1),(a?f.transition():f).attr("x",c.axis_rotated?b.yGridTextX.bind(b):b.xGridTextX.bind(b)).attr("y",d).text(function(a){return a.text}).style("opacity",1)]},i.showXGridFocus=function(a){var b=this,c=b.config,d=a.filter(function(a){return a&&m(a.value)}),e=b.main.selectAll("line."+l.xgridFocus),f=b.xx.bind(b);c.tooltip_show&&(b.hasType("scatter")||b.hasArcType()||(e.style("visibility","visible").data([d[0]]).attr(c.axis_rotated?"y1":"x1",f).attr(c.axis_rotated?"y2":"x2",f),b.smoothLines(e,"grid")))},i.hideXGridFocus=function(){this.main.select("line."+l.xgridFocus).style("visibility","hidden")},i.updateXgridFocus=function(){var a=this,b=a.config;a.main.select("line."+l.xgridFocus).attr("x1",b.axis_rotated?0:-10).attr("x2",b.axis_rotated?a.width:-10).attr("y1",b.axis_rotated?-10:0).attr("y2",b.axis_rotated?-10:a.height)},i.generateGridData=function(a,b){var c,d,e,f,g=this,h=[],i=g.main.select("."+l.axisX).selectAll(".tick").size();if("year"===a)for(c=g.getXDomain(),d=c[0].getFullYear(),e=c[1].getFullYear(),f=d;e>=f;f++)h.push(new Date(f+"-01-01 00:00:00"));else h=b.ticks(10),h.length>i&&(h=h.filter(function(a){return(""+a).indexOf(".")<0}));return h},i.getGridFilterToRemove=function(a){return a?function(b){var c=!1;return[].concat(a).forEach(function(a){("value"in a&&b.value===a.value||"class"in a&&b["class"]===a["class"])&&(c=!0)}),c}:function(){return!0}},i.removeGridLines=function(a,b){var c=this,d=c.config,e=c.getGridFilterToRemove(a),f=function(a){return!e(a)},g=b?l.xgridLines:l.ygridLines,h=b?l.xgridLine:l.ygridLine;c.main.select("."+g).selectAll("."+h).filter(e).transition().duration(d.transition_duration).style("opacity",0).remove(),b?d.grid_x_lines=d.grid_x_lines.filter(f):d.grid_y_lines=d.grid_y_lines.filter(f)},i.initTooltip=function(){var a,b=this,c=b.config;if(b.tooltip=b.selectChart.style("position","relative").append("div").attr("class",l.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),c.tooltip_init_show){if(b.isTimeSeries()&&o(c.tooltip_init_x)){for(c.tooltip_init_x=b.parseDate(c.tooltip_init_x),a=0;a0&&d>0&&(c=a?q.indexOf(a.id):null,d=b?q.indexOf(b.id):null),p?c-d:d-c})}for(f=0;f"+(g||0===g?""+g+"":"")),h=y(o(a[f].value,a[f].ratio,a[f].id,a[f].index,a)),void 0!==h)){if(null===a[f].name)continue;i=y(n(a[f].name,a[f].ratio,a[f].id,a[f].index)),j=k.levelColor?k.levelColor(a[f].value):d(a[f].id),e+="",e+=""+i+"",e+=""+h+"",e+=""}return e+""},i.tooltipPosition=function(a,b,c,d){var e,f,g,h,i,j=this,k=j.config,l=j.d3,m=j.hasArcType(),n=l.mouse(d);return m?(f=(j.width-(j.isLegendRight?j.getLegendWidth():0))/2+n[0],h=j.height/2+n[1]+20):(e=j.getSvgLeft(!0),k.axis_rotated?(f=e+n[0]+100,g=f+b,i=j.currentWidth-j.getCurrentPaddingRight(),h=j.x(a[0].x)+20):(f=e+j.getCurrentPaddingLeft(!0)+j.x(a[0].x)+20,g=f+b,i=e+j.currentWidth-j.getCurrentPaddingRight(),h=n[1]+15),g>i&&(f-=g-i+20),h+c>j.currentHeight&&(h-=c+30)),0>h&&(h=0),{top:h,left:f}},i.showTooltip=function(a,b){var c,d,e,f=this,g=f.config,h=f.hasArcType(),j=a.filter(function(a){return a&&m(a.value)}),k=g.tooltip_position||i.tooltipPosition;0!==j.length&&g.tooltip_show&&(f.tooltip.html(g.tooltip_contents.call(f,a,f.axis.getXAxisTickFormat(),f.getYFormat(h),f.color)).style("display","block"),c=f.tooltip.property("offsetWidth"),d=f.tooltip.property("offsetHeight"),e=k.call(this,j,c,d,b),f.tooltip.style("top",e.top+"px").style("left",e.left+"px"))},i.hideTooltip=function(){this.tooltip.style("display","none")},i.initLegend=function(){var a=this;return a.legendItemTextBox={},a.legendHasRendered=!1,a.legend=a.svg.append("g").attr("transform",a.getTranslate("legend")),a.config.legend_show?void a.updateLegendWithDefaults():(a.legend.style("visibility","hidden"),void(a.hiddenLegendIds=a.mapToIds(a.data.targets)))},i.updateLegendWithDefaults=function(){var a=this;a.updateLegend(a.mapToIds(a.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},i.updateSizeForLegend=function(a,b){var c=this,d=c.config,e={top:c.isLegendTop?c.getCurrentPaddingTop()+d.legend_inset_y+5.5:c.currentHeight-a-c.getCurrentPaddingBottom()-d.legend_inset_y,left:c.isLegendLeft?c.getCurrentPaddingLeft()+d.legend_inset_x+.5:c.currentWidth-b-c.getCurrentPaddingRight()-d.legend_inset_x+.5};c.margin3={top:c.isLegendRight?0:c.isLegendInset?e.top:c.currentHeight-a,right:NaN,bottom:0,left:c.isLegendRight?c.currentWidth-b:c.isLegendInset?e.left:0}},i.transformLegend=function(a){var b=this;(a?b.legend.transition():b.legend).attr("transform",b.getTranslate("legend"))},i.updateLegendStep=function(a){this.legendStep=a},i.updateLegendItemWidth=function(a){this.legendItemWidth=a},i.updateLegendItemHeight=function(a){this.legendItemHeight=a},i.getLegendWidth=function(){var a=this;return a.config.legend_show?a.isLegendRight||a.isLegendInset?a.legendItemWidth*(a.legendStep+1):a.currentWidth:0},i.getLegendHeight=function(){var a=this,b=0;return a.config.legend_show&&(b=a.isLegendRight?a.currentHeight:Math.max(20,a.legendItemHeight)*(a.legendStep+1)),b},i.opacityForLegend=function(a){return a.classed(l.legendItemHidden)?null:1},i.opacityForUnfocusedLegend=function(a){return a.classed(l.legendItemHidden)?null:.3},i.toggleFocusLegend=function(a,b){var c=this;a=c.mapToTargetIds(a),c.legend.selectAll("."+l.legendItem).filter(function(b){return a.indexOf(b)>=0}).classed(l.legendItemFocused,b).transition().duration(100).style("opacity",function(){var a=b?c.opacityForLegend:c.opacityForUnfocusedLegend;return a.call(c,c.d3.select(this))})},i.revertLegend=function(){var a=this,b=a.d3;a.legend.selectAll("."+l.legendItem).classed(l.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return a.opacityForLegend(b.select(this))})},i.showLegend=function(a){var b=this,c=b.config;c.legend_show||(c.legend_show=!0,b.legend.style("visibility","visible"),b.legendHasRendered||b.updateLegendWithDefaults()),b.removeHiddenLegendIds(a),b.legend.selectAll(b.selectorLegends(a)).style("visibility","visible").transition().style("opacity",function(){return b.opacityForLegend(b.d3.select(this))})},i.hideLegend=function(a){var b=this,c=b.config;c.legend_show&&u(a)&&(c.legend_show=!1,b.legend.style("visibility","hidden")),b.addHiddenLegendIds(a),b.legend.selectAll(b.selectorLegends(a)).style("opacity",0).style("visibility","hidden")},i.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},i.updateLegend=function(a,b,c){function d(a,b){return y.legendItemTextBox[b]||(y.legendItemTextBox[b]=y.getTextRect(a.textContent,l.legendItem,a)),y.legendItemTextBox[b]}function e(b,c,e){function f(a,b){b||(g=(o-G-n)/2,E>g&&(g=(o-n)/2,G=0,M++)),L[a]=M,K[M]=y.isLegendInset?10:g,H[a]=G,G+=n}var g,h,i=0===e,j=e===a.length-1,k=d(b,c),l=k.width+F+(!j||y.isLegendRight||y.isLegendInset?B:0)+z.legend_padding,m=k.height+A,n=y.isLegendRight||y.isLegendInset?m:l,o=y.isLegendRight||y.isLegendInset?y.getLegendHeight():y.getLegendWidth();return i&&(G=0,M=0,C=0,D=0),z.legend_show&&!y.isLegendToShow(c)?void(I[c]=J[c]=L[c]=H[c]=0):(I[c]=l,J[c]=m,(!C||l>=C)&&(C=l),(!D||m>=D)&&(D=m),h=y.isLegendRight||y.isLegendInset?D:C,void(z.legend_equally?(Object.keys(I).forEach(function(a){I[a]=C}),Object.keys(J).forEach(function(a){J[a]=D}),g=(o-h*a.length)/2,E>g?(G=0,M=0,a.forEach(function(a){f(a)})):f(c,!0)):f(c)))}var f,g,h,i,j,k,m,n,o,p,r,s,t,u,v,x,y=this,z=y.config,A=4,B=10,C=0,D=0,E=10,F=z.legend_item_tile_width+5,G=0,H={},I={},J={},K=[0],L={},M=0;a=a.filter(function(a){return!q(z.data_names[a])||null!==z.data_names[a]}),b=b||{},r=w(b,"withTransition",!0),s=w(b,"withTransitionForTransform",!0),y.isLegendInset&&(M=z.legend_inset_step?z.legend_inset_step:a.length,y.updateLegendStep(M)),y.isLegendRight?(f=function(a){return C*L[a]},i=function(a){return K[L[a]]+H[a]}):y.isLegendInset?(f=function(a){return C*L[a]+10},i=function(a){return K[L[a]]+H[a]}):(f=function(a){return K[L[a]]+H[a]},i=function(a){return D*L[a]}),g=function(a,b){return f(a,b)+4+z.legend_item_tile_width},j=function(a,b){return i(a,b)+9},h=function(a,b){return f(a,b)},k=function(a,b){return i(a,b)-5},m=function(a,b){return f(a,b)-2},n=function(a,b){return f(a,b)-2+z.legend_item_tile_width},o=function(a,b){return i(a,b)+4},p=y.legend.selectAll("."+l.legendItem).data(a).enter().append("g").attr("class",function(a){return y.generateClass(l.legendItem,a)}).style("visibility",function(a){return y.isLegendToShow(a)?"visible":"hidden"}).style("cursor","pointer").on("click",function(a){z.legend_item_onclick?z.legend_item_onclick.call(y,a):y.d3.event.altKey?(y.api.hide(),y.api.show(a)):(y.api.toggle(a),y.isTargetToShow(a)?y.api.focus(a):y.api.revert())}).on("mouseover",function(a){z.legend_item_onmouseover?z.legend_item_onmouseover.call(y,a):(y.d3.select(this).classed(l.legendItemFocused,!0),!y.transiting&&y.isTargetToShow(a)&&y.api.focus(a))}).on("mouseout",function(a){z.legend_item_onmouseout?z.legend_item_onmouseout.call(y,a):(y.d3.select(this).classed(l.legendItemFocused,!1),y.api.revert())}),p.append("text").text(function(a){return q(z.data_names[a])?z.data_names[a]:a}).each(function(a,b){e(this,a,b)}).style("pointer-events","none").attr("x",y.isLegendRight||y.isLegendInset?g:-200).attr("y",y.isLegendRight||y.isLegendInset?-200:j),p.append("rect").attr("class",l.legendItemEvent).style("fill-opacity",0).attr("x",y.isLegendRight||y.isLegendInset?h:-200).attr("y",y.isLegendRight||y.isLegendInset?-200:k),p.append("line").attr("class",l.legendItemTile).style("stroke",y.color).style("pointer-events","none").attr("x1",y.isLegendRight||y.isLegendInset?m:-200).attr("y1",y.isLegendRight||y.isLegendInset?-200:o).attr("x2",y.isLegendRight||y.isLegendInset?n:-200).attr("y2",y.isLegendRight||y.isLegendInset?-200:o).attr("stroke-width",z.legend_item_tile_height),x=y.legend.select("."+l.legendBackground+" rect"),y.isLegendInset&&C>0&&0===x.size()&&(x=y.legend.insert("g","."+l.legendItem).attr("class",l.legendBackground).append("rect")),t=y.legend.selectAll("text").data(a).text(function(a){return q(z.data_names[a])?z.data_names[a]:a}).each(function(a,b){e(this,a,b)}),(r?t.transition():t).attr("x",g).attr("y",j),u=y.legend.selectAll("rect."+l.legendItemEvent).data(a),(r?u.transition():u).attr("width",function(a){return I[a]}).attr("height",function(a){return J[a]}).attr("x",h).attr("y",k),v=y.legend.selectAll("line."+l.legendItemTile).data(a),(r?v.transition():v).style("stroke",y.color).attr("x1",m).attr("y1",o).attr("x2",n).attr("y2",o),x&&(r?x.transition():x).attr("height",y.getLegendHeight()-12).attr("width",C*(M+1)+10),y.legend.selectAll("."+l.legendItem).classed(l.legendItemHidden,function(a){return!y.isTargetToShow(a)}),y.updateLegendItemWidth(C),y.updateLegendItemHeight(D),y.updateLegendStep(M),y.updateSizes(),y.updateScales(),y.updateSvgSize(),y.transformAll(s,c),y.legendHasRendered=!0},i.initTitle=function(){var a=this;a.title=a.svg.append("text").text(a.config.title_text).attr("class",a.CLASS.title)},i.redrawTitle=function(){var a=this;a.title.attr("x",a.xForTitle.bind(a)).attr("y",a.yForTitle.bind(a))},i.xForTitle=function(){var a,b=this,c=b.config,d=c.title_position||"left";return a=d.indexOf("right")>=0?b.currentWidth-b.getTextRect(b.title.node().textContent,b.CLASS.title,b.title.node()).width-c.title_padding.right:d.indexOf("center")>=0?(b.currentWidth-b.getTextRect(b.title.node().textContent,b.CLASS.title,b.title.node()).width)/2:c.title_padding.left},i.yForTitle=function(){var a=this;return a.config.title_padding.top+a.getTextRect(a.title.node().textContent,a.CLASS.title,a.title.node()).height},i.getTitlePadding=function(){var a=this;return a.yForTitle()+a.config.title_padding.bottom},c(b,f),f.prototype.init=function(){var a=this.owner,b=a.config,c=a.main;a.axes.x=c.append("g").attr("class",l.axis+" "+l.axisX).attr("clip-path",a.clipPathForXAxis).attr("transform",a.getTranslate("x")).style("visibility",b.axis_x_show?"visible":"hidden"),a.axes.x.append("text").attr("class",l.axisXLabel).attr("transform",b.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),a.axes.y=c.append("g").attr("class",l.axis+" "+l.axisY).attr("clip-path",b.axis_y_inner?"":a.clipPathForYAxis).attr("transform",a.getTranslate("y")).style("visibility",b.axis_y_show?"visible":"hidden"),a.axes.y.append("text").attr("class",l.axisYLabel).attr("transform",b.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),a.axes.y2=c.append("g").attr("class",l.axis+" "+l.axisY2).attr("transform",a.getTranslate("y2")).style("visibility",b.axis_y2_show?"visible":"hidden"),a.axes.y2.append("text").attr("class",l.axisY2Label).attr("transform",b.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},f.prototype.getXAxis=function(a,b,c,d,e,f,h){var i=this.owner,j=i.config,k={isCategory:i.isCategorized(),withOuterTick:e,tickMultiline:j.axis_x_tick_multiline,tickWidth:j.axis_x_tick_width,tickTextRotate:h?0:j.axis_x_tick_rotate,withoutTransition:f},l=g(i.d3,k).scale(a).orient(b);return i.isTimeSeries()&&d&&"function"!=typeof d&&(d=d.map(function(a){return i.parseDate(a)})),l.tickFormat(c).tickValues(d),i.isCategorized()&&(l.tickCentered(j.axis_x_tick_centered),u(j.axis_x_tick_culling)&&(j.axis_x_tick_culling=!1)),l},f.prototype.updateXAxisTickValues=function(a,b){var c,d=this.owner,e=d.config;return(e.axis_x_tick_fit||e.axis_x_tick_count)&&(c=this.generateTickValues(d.mapTargetsToUniqueXs(a),e.axis_x_tick_count,d.isTimeSeries())),b?b.tickValues(c):(d.xAxis.tickValues(c),d.subXAxis.tickValues(c)),c},f.prototype.getYAxis=function(a,b,c,d,e,f,h){var i=this.owner,j=i.config,k={withOuterTick:e,withoutTransition:f,tickTextRotate:h?0:j.axis_y_tick_rotate},l=g(i.d3,k).scale(a).orient(b).tickFormat(c);return i.isTimeSeriesY()?l.ticks(i.d3.time[j.axis_y_tick_time_value],j.axis_y_tick_time_interval):l.tickValues(d),l},f.prototype.getId=function(a){var b=this.owner.config;return a in b.data_axes?b.data_axes[a]:"y"},f.prototype.getXAxisTickFormat=function(){var a=this.owner,b=a.config,c=a.isTimeSeries()?a.defaultAxisTimeFormat:a.isCategorized()?a.categoryName:function(a){return 0>a?a.toFixed(0):a};return b.axis_x_tick_format&&(n(b.axis_x_tick_format)?c=b.axis_x_tick_format:a.isTimeSeries()&&(c=function(c){return c?a.axisTimeFormat(b.axis_x_tick_format)(c):""})),n(c)?function(b){return c.call(a,b)}:c},f.prototype.getTickValues=function(a,b){return a?a:b?b.tickValues():void 0},f.prototype.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},f.prototype.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},f.prototype.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},f.prototype.getLabelOptionByAxisId=function(a){var b,c=this.owner,d=c.config;return"y"===a?b=d.axis_y_label:"y2"===a?b=d.axis_y2_label:"x"===a&&(b=d.axis_x_label),b},f.prototype.getLabelText=function(a){var b=this.getLabelOptionByAxisId(a);return o(b)?b:b?b.text:null},f.prototype.setLabelText=function(a,b){var c=this.owner,d=c.config,e=this.getLabelOptionByAxisId(a);o(e)?"y"===a?d.axis_y_label=b:"y2"===a?d.axis_y2_label=b:"x"===a&&(d.axis_x_label=b):e&&(e.text=b)},f.prototype.getLabelPosition=function(a,b){var c=this.getLabelOptionByAxisId(a),d=c&&"object"==typeof c&&c.position?c.position:b;return{isInner:d.indexOf("inner")>=0,isOuter:d.indexOf("outer")>=0,isLeft:d.indexOf("left")>=0,isCenter:d.indexOf("center")>=0,isRight:d.indexOf("right")>=0,isTop:d.indexOf("top")>=0,isMiddle:d.indexOf("middle")>=0,isBottom:d.indexOf("bottom")>=0}},f.prototype.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},f.prototype.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},f.prototype.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},f.prototype.getLabelPositionById=function(a){return"y2"===a?this.getY2AxisLabelPosition():"y"===a?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},f.prototype.textForXAxisLabel=function(){return this.getLabelText("x")},f.prototype.textForYAxisLabel=function(){return this.getLabelText("y")},f.prototype.textForY2AxisLabel=function(){return this.getLabelText("y2")},f.prototype.xForAxisLabel=function(a,b){var c=this.owner;return a?b.isLeft?0:b.isCenter?c.width/2:c.width:b.isBottom?-c.height:b.isMiddle?-c.height/2:0},f.prototype.dxForAxisLabel=function(a,b){return a?b.isLeft?"0.5em":b.isRight?"-0.5em":"0":b.isTop?"-0.5em":b.isBottom?"0.5em":"0"},f.prototype.textAnchorForAxisLabel=function(a,b){return a?b.isLeft?"start":b.isCenter?"middle":"end":b.isBottom?"start":b.isMiddle?"middle":"end"},f.prototype.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},f.prototype.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},f.prototype.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},f.prototype.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},f.prototype.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},f.prototype.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},f.prototype.dyForXAxisLabel=function(){var a=this.owner,b=a.config,c=this.getXAxisLabelPosition();return b.axis_rotated?c.isInner?"1.2em":-25-this.getMaxTickWidth("x"):c.isInner?"-0.5em":b.axis_x_height?b.axis_x_height-10:"3em"},f.prototype.dyForYAxisLabel=function(){var a=this.owner,b=this.getYAxisLabelPosition();return a.config.axis_rotated?b.isInner?"-0.5em":"3em":b.isInner?"1.2em":-10-(a.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},f.prototype.dyForY2AxisLabel=function(){var a=this.owner,b=this.getY2AxisLabelPosition();return a.config.axis_rotated?b.isInner?"1.2em":"-2.2em":b.isInner?"-0.5em":15+(a.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},f.prototype.textAnchorForXAxisLabel=function(){var a=this.owner;return this.textAnchorForAxisLabel(!a.config.axis_rotated,this.getXAxisLabelPosition())},f.prototype.textAnchorForYAxisLabel=function(){var a=this.owner;return this.textAnchorForAxisLabel(a.config.axis_rotated,this.getYAxisLabelPosition())},f.prototype.textAnchorForY2AxisLabel=function(){var a=this.owner;return this.textAnchorForAxisLabel(a.config.axis_rotated,this.getY2AxisLabelPosition())},f.prototype.getMaxTickWidth=function(a,b){var c,d,e,f,g,h=this.owner,i=h.config,j=0;return b&&h.currentMaxTickWidths[a]?h.currentMaxTickWidths[a]:(h.svg&&(c=h.filterTargetsToShow(h.data.targets),"y"===a?(d=h.y.copy().domain(h.getYDomain(c,"y")),e=this.getYAxis(d,h.yOrient,i.axis_y_tick_format,h.yAxisTickValues,!1,!0,!0)):"y2"===a?(d=h.y2.copy().domain(h.getYDomain(c,"y2")), e=this.getYAxis(d,h.y2Orient,i.axis_y2_tick_format,h.y2AxisTickValues,!1,!0,!0)):(d=h.x.copy().domain(h.getXDomain(c)),e=this.getXAxis(d,h.xOrient,h.xAxisTickFormat,h.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(c,e)),f=h.d3.select("body").append("div").classed("c3",!0),g=f.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),g.append("g").call(e).each(function(){h.d3.select(this).selectAll("text").each(function(){var a=this.getBoundingClientRect();j=j?h.currentMaxTickWidths[a]:j,h.currentMaxTickWidths[a])},f.prototype.updateLabels=function(a){var b=this.owner,c=b.main.select("."+l.axisX+" ."+l.axisXLabel),d=b.main.select("."+l.axisY+" ."+l.axisYLabel),e=b.main.select("."+l.axisY2+" ."+l.axisY2Label);(a?c.transition():c).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(a?d.transition():d).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(a?e.transition():e).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},f.prototype.getPadding=function(a,b,c,d){var e="number"==typeof a?a:a[b];return m(e)?"ratio"===a.unit?a[b]*d:this.convertPixelsToAxisPadding(e,d):c},f.prototype.convertPixelsToAxisPadding=function(a,b){var c=this.owner,d=c.config.axis_rotated?c.width:c.height;return b*(a/d)},f.prototype.generateTickValues=function(a,b,c){var d,e,f,g,h,i,j,k=a;if(b)if(d=n(b)?b():b,1===d)k=[a[0]];else if(2===d)k=[a[0],a[a.length-1]];else if(d>2){for(g=d-2,e=a[0],f=a[a.length-1],h=(f-e)/(g+1),k=[e],i=0;g>i;i++)j=+e+h*(i+1),k.push(c?new Date(j):j);k.push(f)}return c||(k=k.sort(function(a,b){return a-b})),k},f.prototype.generateTransitions=function(a){var b=this.owner,c=b.axes;return{axisX:a?c.x.transition().duration(a):c.x,axisY:a?c.y.transition().duration(a):c.y,axisY2:a?c.y2.transition().duration(a):c.y2,axisSubX:a?c.subx.transition().duration(a):c.subx}},f.prototype.redraw=function(a,b){var c=this.owner;c.axes.x.style("opacity",b?0:1),c.axes.y.style("opacity",b?0:1),c.axes.y2.style("opacity",b?0:1),c.axes.subx.style("opacity",b?0:1),a.axisX.call(c.xAxis),a.axisY.call(c.yAxis),a.axisY2.call(c.y2Axis),a.axisSubX.call(c.subXAxis)},i.getClipPath=function(b){var c=a.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0;return"url("+(c?"":document.URL.split("#")[0])+"#"+b+")"},i.appendClip=function(a,b){return a.append("clipPath").attr("id",b).append("rect")},i.getAxisClipX=function(a){var b=Math.max(30,this.margin.left);return a?-(1+b):-(b-1)},i.getAxisClipY=function(a){return a?-20:-this.margin.top},i.getXAxisClipX=function(){var a=this;return a.getAxisClipX(!a.config.axis_rotated)},i.getXAxisClipY=function(){var a=this;return a.getAxisClipY(!a.config.axis_rotated)},i.getYAxisClipX=function(){var a=this;return a.config.axis_y_inner?-1:a.getAxisClipX(a.config.axis_rotated)},i.getYAxisClipY=function(){var a=this;return a.getAxisClipY(a.config.axis_rotated)},i.getAxisClipWidth=function(a){var b=this,c=Math.max(30,b.margin.left),d=Math.max(30,b.margin.right);return a?b.width+2+c+d:b.margin.left+20},i.getAxisClipHeight=function(a){return(a?this.margin.bottom:this.margin.top+this.height)+20},i.getXAxisClipWidth=function(){var a=this;return a.getAxisClipWidth(!a.config.axis_rotated)},i.getXAxisClipHeight=function(){var a=this;return a.getAxisClipHeight(!a.config.axis_rotated)},i.getYAxisClipWidth=function(){var a=this;return a.getAxisClipWidth(a.config.axis_rotated)+(a.config.axis_y_inner?20:0)},i.getYAxisClipHeight=function(){var a=this;return a.getAxisClipHeight(a.config.axis_rotated)},i.initPie=function(){var a=this,b=a.d3,c=a.config;a.pie=b.layout.pie().value(function(a){return a.values.reduce(function(a,b){return a+b.value},0)}),c.data_order||a.pie.sort(null)},i.updateRadius=function(){var a=this,b=a.config,c=b.gauge_width||b.donut_width;a.radiusExpanded=Math.min(a.arcWidth,a.arcHeight)/2,a.radius=.95*a.radiusExpanded,a.innerRadiusRatio=c?(a.radius-c)/a.radius:.6,a.innerRadius=a.hasType("donut")||a.hasType("gauge")?a.radius*a.innerRadiusRatio:0},i.updateArc=function(){var a=this;a.svgArc=a.getSvgArc(),a.svgArcExpanded=a.getSvgArcExpanded(),a.svgArcExpandedSub=a.getSvgArcExpanded(.98)},i.updateAngle=function(a){var b,c,d,e,f=this,g=f.config,h=!1,i=0;return g?(f.pie(f.filterTargetsToShow(f.data.targets)).forEach(function(b){h||b.data.id!==a.data.id||(h=!0,a=b,a.index=i),i++}),isNaN(a.startAngle)&&(a.startAngle=0),isNaN(a.endAngle)&&(a.endAngle=a.startAngle),f.isGaugeType(a.data)&&(b=g.gauge_min,c=g.gauge_max,d=Math.PI*(g.gauge_fullCircle?2:1)/(c-b),e=a.value.375?1.175-36/g.radius:.8)*g.radius/e:0,j="translate("+c*f+","+d*f+")"),j},i.getArcRatio=function(a){var b=this,c=b.config,d=Math.PI*(b.hasType("gauge")&&!c.gauge_fullCircle?1:2);return a?(a.endAngle-a.startAngle)/d:null},i.convertToArcData=function(a){return this.addName({id:a.data.id,value:a.value,ratio:this.getArcRatio(a),index:a.index})},i.textForArcLabel=function(a){var b,c,d,e,f,g=this;return g.shouldShowArcLabel()?(b=g.updateAngle(a),c=b?b.value:null,d=g.getArcRatio(b),e=a.data.id,g.hasType("gauge")||g.meetsArcLabelThreshold(d)?(f=g.getArcLabelFormat(),f?f(c,d,e):g.defaultArcValueFormat(c,d)):""):""},i.expandArc=function(b){var c,d=this;return d.transiting?void(c=a.setInterval(function(){d.transiting||(a.clearInterval(c),d.legend.selectAll(".c3-legend-item-focused").size()>0&&d.expandArc(b))},10)):(b=d.mapToTargetIds(b),void d.svg.selectAll(d.selectorTargets(b,"."+l.chartArc)).each(function(a){d.shouldExpand(a.data.id)&&d.d3.select(this).selectAll("path").transition().duration(d.expandDuration(a.data.id)).attr("d",d.svgArcExpanded).transition().duration(2*d.expandDuration(a.data.id)).attr("d",d.svgArcExpandedSub).each(function(a){d.isDonutType(a.data)})}))},i.unexpandArc=function(a){var b=this;b.transiting||(a=b.mapToTargetIds(a),b.svg.selectAll(b.selectorTargets(a,"."+l.chartArc)).selectAll("path").transition().duration(function(a){return b.expandDuration(a.data.id)}).attr("d",b.svgArc),b.svg.selectAll("."+l.arc).style("opacity",1))},i.expandDuration=function(a){var b=this,c=b.config;return b.isDonutType(a)?c.donut_expand_duration:b.isGaugeType(a)?c.gauge_expand_duration:b.isPieType(a)?c.pie_expand_duration:50},i.shouldExpand=function(a){var b=this,c=b.config;return b.isDonutType(a)&&c.donut_expand||b.isGaugeType(a)&&c.gauge_expand||b.isPieType(a)&&c.pie_expand},i.shouldShowArcLabel=function(){var a=this,b=a.config,c=!0;return a.hasType("donut")?c=b.donut_label_show:a.hasType("pie")&&(c=b.pie_label_show),c},i.meetsArcLabelThreshold=function(a){var b=this,c=b.config,d=b.hasType("donut")?c.donut_label_threshold:c.pie_label_threshold;return a>=d},i.getArcLabelFormat=function(){var a=this,b=a.config,c=b.pie_label_format;return a.hasType("gauge")?c=b.gauge_label_format:a.hasType("donut")&&(c=b.donut_label_format),c},i.getArcTitle=function(){var a=this;return a.hasType("donut")?a.config.donut_title:""},i.updateTargetsForArc=function(a){var b,c,d=this,e=d.main,f=d.classChartArc.bind(d),g=d.classArcs.bind(d),h=d.classFocus.bind(d);b=e.select("."+l.chartArcs).selectAll("."+l.chartArc).data(d.pie(a)).attr("class",function(a){return f(a)+h(a.data)}),c=b.enter().append("g").attr("class",f),c.append("g").attr("class",g),c.append("text").attr("dy",d.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},i.initArc=function(){var a=this;a.arcs=a.main.select("."+l.chart).append("g").attr("class",l.chartArcs).attr("transform",a.getTranslate("arc")),a.arcs.append("text").attr("class",l.chartArcsTitle).style("text-anchor","middle").text(a.getArcTitle())},i.redrawArc=function(a,b,c){var d,e=this,f=e.d3,g=e.config,h=e.main;d=h.selectAll("."+l.arcs).selectAll("."+l.arc).data(e.arcData.bind(e)),d.enter().append("path").attr("class",e.classArc.bind(e)).style("fill",function(a){return e.color(a.data)}).style("cursor",function(a){return g.interaction_enabled&&g.data_selection_isselectable(a)?"pointer":null}).style("opacity",0).each(function(a){e.isGaugeType(a.data)&&(a.startAngle=a.endAngle=g.gauge_startingAngle),this._current=a}),d.attr("transform",function(a){return!e.isGaugeType(a.data)&&c?"scale(0)":""}).style("opacity",function(a){return a===this._current?0:1}).on("mouseover",g.interaction_enabled?function(a){var b,c;e.transiting||(b=e.updateAngle(a),b&&(c=e.convertToArcData(b),e.expandArc(b.data.id),e.api.focus(b.data.id),e.toggleFocusLegend(b.data.id,!0),e.config.data_onmouseover(c,this)))}:null).on("mousemove",g.interaction_enabled?function(a){var b,c,d=e.updateAngle(a);d&&(b=e.convertToArcData(d),c=[b],e.showTooltip(c,this))}:null).on("mouseout",g.interaction_enabled?function(a){var b,c;e.transiting||(b=e.updateAngle(a),b&&(c=e.convertToArcData(b),e.unexpandArc(b.data.id),e.api.revert(),e.revertLegend(),e.hideTooltip(),e.config.data_onmouseout(c,this)))}:null).on("click",g.interaction_enabled?function(a,b){var c,d=e.updateAngle(a);d&&(c=e.convertToArcData(d),e.toggleShape&&e.toggleShape(this,c,b),e.config.data_onclick.call(e.api,c,this))}:null).each(function(){e.transiting=!0}).transition().duration(a).attrTween("d",function(a){var b,c=e.updateAngle(a);return c?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),b=f.interpolate(this._current,c),this._current=b(0),function(c){var d=b(c);return d.data=a.data,e.getArc(d,!0)}):function(){return"M 0 0"}}).attr("transform",c?"scale(1)":"").style("fill",function(a){return e.levelColor?e.levelColor(a.data.values[0].value):e.color(a.data.id)}).style("opacity",1).call(e.endall,function(){e.transiting=!1}),d.exit().transition().duration(b).style("opacity",0).remove(),h.selectAll("."+l.chartArc).select("text").style("opacity",0).attr("class",function(a){return e.isGaugeType(a.data)?l.gaugeValue:""}).text(e.textForArcLabel.bind(e)).attr("transform",e.transformForArcLabel.bind(e)).style("font-size",function(a){return e.isGaugeType(a.data)?Math.round(e.radius/5)+"px":""}).transition().duration(a).style("opacity",function(a){return e.isTargetToShow(a.data.id)&&e.isArcType(a.data)?1:0}),h.select("."+l.chartArcsTitle).style("opacity",e.hasType("donut")||e.hasType("gauge")?1:0),e.hasType("gauge")&&(e.arcs.select("."+l.chartArcsBackground).attr("d",function(){var a={data:[{value:g.gauge_max}],startAngle:g.gauge_startingAngle,endAngle:-1*g.gauge_startingAngle};return e.getArc(a,!0,!0)}),e.arcs.select("."+l.chartArcsGaugeUnit).attr("dy",".75em").text(g.gauge_label_show?g.gauge_units:""),e.arcs.select("."+l.chartArcsGaugeMin).attr("dx",-1*(e.innerRadius+(e.radius-e.innerRadius)/(g.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(g.gauge_label_show?g.gauge_min:""),e.arcs.select("."+l.chartArcsGaugeMax).attr("dx",e.innerRadius+(e.radius-e.innerRadius)/(g.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(g.gauge_label_show?g.gauge_max:""))},i.initGauge=function(){var a=this.arcs;this.hasType("gauge")&&(a.append("path").attr("class",l.chartArcsBackground),a.append("text").attr("class",l.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),a.append("text").attr("class",l.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),a.append("text").attr("class",l.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},i.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},i.initRegion=function(){var a=this;a.region=a.main.append("g").attr("clip-path",a.clipPath).attr("class",l.regions)},i.updateRegion=function(a){var b=this,c=b.config;b.region.style("visibility",b.hasArcType()?"hidden":"visible"),b.mainRegion=b.main.select("."+l.regions).selectAll("."+l.region).data(c.regions),b.mainRegion.enter().append("g").append("rect").style("fill-opacity",0),b.mainRegion.attr("class",b.classRegion.bind(b)),b.mainRegion.exit().transition().duration(a).style("opacity",0).remove()},i.redrawRegion=function(a){var b=this,c=b.mainRegion.selectAll("rect").each(function(){var a=b.d3.select(this.parentNode).datum();b.d3.select(this).datum(a)}),d=b.regionX.bind(b),e=b.regionY.bind(b),f=b.regionWidth.bind(b),g=b.regionHeight.bind(b);return[(a?c.transition():c).attr("x",d).attr("y",e).attr("width",f).attr("height",g).style("fill-opacity",function(a){return m(a.opacity)?a.opacity:.1})]},i.regionX=function(a){var b,c=this,d=c.config,e="y"===a.axis?c.y:c.y2;return b="y"===a.axis||"y2"===a.axis?d.axis_rotated&&"start"in a?e(a.start):0:d.axis_rotated?0:"start"in a?c.x(c.isTimeSeries()?c.parseDate(a.start):a.start):0},i.regionY=function(a){var b,c=this,d=c.config,e="y"===a.axis?c.y:c.y2;return b="y"===a.axis||"y2"===a.axis?d.axis_rotated?0:"end"in a?e(a.end):0:d.axis_rotated&&"start"in a?c.x(c.isTimeSeries()?c.parseDate(a.start):a.start):0},i.regionWidth=function(a){var b,c=this,d=c.config,e=c.regionX(a),f="y"===a.axis?c.y:c.y2;return b="y"===a.axis||"y2"===a.axis?d.axis_rotated&&"end"in a?f(a.end):c.width:d.axis_rotated?c.width:"end"in a?c.x(c.isTimeSeries()?c.parseDate(a.end):a.end):c.width,e>b?0:b-e},i.regionHeight=function(a){var b,c=this,d=c.config,e=this.regionY(a),f="y"===a.axis?c.y:c.y2;return b="y"===a.axis||"y2"===a.axis?d.axis_rotated?c.height:"start"in a?f(a.start):c.height:d.axis_rotated&&"end"in a?c.x(c.isTimeSeries()?c.parseDate(a.end):a.end):c.height,e>b?0:b-e},i.isRegionOnX=function(a){return!a.axis||"x"===a.axis},i.drag=function(a){var b,c,d,e,f,g,h,i,j=this,k=j.config,m=j.main,n=j.d3;j.hasArcType()||k.data_selection_enabled&&(k.zoom_enabled&&!j.zoom.altDomain||k.data_selection_multiple&&(b=j.dragStart[0],c=j.dragStart[1],d=a[0],e=a[1],f=Math.min(b,d),g=Math.max(b,d),h=k.data_selection_grouped?j.margin.top:Math.min(c,e),i=k.data_selection_grouped?j.height:Math.max(c,e),m.select("."+l.dragarea).attr("x",f).attr("y",h).attr("width",g-f).attr("height",i-h),m.selectAll("."+l.shapes).selectAll("."+l.shape).filter(function(a){return k.data_selection_isselectable(a)}).each(function(a,b){var c,d,e,k,m,o,p=n.select(this),q=p.classed(l.SELECTED),r=p.classed(l.INCLUDED),s=!1;if(p.classed(l.circle))c=1*p.attr("cx"),d=1*p.attr("cy"),m=j.togglePoint,s=c>f&&g>c&&d>h&&i>d;else{if(!p.classed(l.bar))return;o=z(this),c=o.x,d=o.y,e=o.width,k=o.height,m=j.togglePath,s=!(c>g||f>c+e||d>i||h>d+k)}s^r&&(p.classed(l.INCLUDED,!r),p.classed(l.SELECTED,!q),m.call(j,!q,p,a,b))})))},i.dragstart=function(a){var b=this,c=b.config;b.hasArcType()||c.data_selection_enabled&&(b.dragStart=a,b.main.select("."+l.chart).append("rect").attr("class",l.dragarea).style("opacity",.1),b.dragging=!0)},i.dragend=function(){var a=this,b=a.config;a.hasArcType()||b.data_selection_enabled&&(a.main.select("."+l.dragarea).transition().duration(100).style("opacity",0).remove(),a.main.selectAll("."+l.shape).classed(l.INCLUDED,!1),a.dragging=!1)},i.selectPoint=function(a,b,c){var d=this,e=d.config,f=(e.axis_rotated?d.circleY:d.circleX).bind(d),g=(e.axis_rotated?d.circleX:d.circleY).bind(d),h=d.pointSelectR.bind(d);e.data_onselected.call(d.api,b,a.node()),d.main.select("."+l.selectedCircles+d.getTargetSelectorSuffix(b.id)).selectAll("."+l.selectedCircle+"-"+c).data([b]).enter().append("circle").attr("class",function(){return d.generateClass(l.selectedCircle,c)}).attr("cx",f).attr("cy",g).attr("stroke",function(){return d.color(b)}).attr("r",function(a){return 1.4*d.pointSelectR(a)}).transition().duration(100).attr("r",h)},i.unselectPoint=function(a,b,c){var d=this;d.config.data_onunselected.call(d.api,b,a.node()),d.main.select("."+l.selectedCircles+d.getTargetSelectorSuffix(b.id)).selectAll("."+l.selectedCircle+"-"+c).transition().duration(100).attr("r",0).remove()},i.togglePoint=function(a,b,c,d){a?this.selectPoint(b,c,d):this.unselectPoint(b,c,d)},i.selectPath=function(a,b){var c=this;c.config.data_onselected.call(c,b,a.node()),c.config.interaction_brighten&&a.transition().duration(100).style("fill",function(){return c.d3.rgb(c.color(b)).brighter(.75)})},i.unselectPath=function(a,b){var c=this;c.config.data_onunselected.call(c,b,a.node()),c.config.interaction_brighten&&a.transition().duration(100).style("fill",function(){return c.color(b)})},i.togglePath=function(a,b,c,d){a?this.selectPath(b,c,d):this.unselectPath(b,c,d)},i.getToggle=function(a,b){var c,d=this;return"circle"===a.nodeName?c=d.isStepType(b)?function(){}:d.togglePoint:"path"===a.nodeName&&(c=d.togglePath),c},i.toggleShape=function(a,b,c){var d=this,e=d.d3,f=d.config,g=e.select(a),h=g.classed(l.SELECTED),i=d.getToggle(a,b).bind(d);f.data_selection_enabled&&f.data_selection_isselectable(b)&&(f.data_selection_multiple||d.main.selectAll("."+l.shapes+(f.data_selection_grouped?d.getTargetSelectorSuffix(b.id):"")).selectAll("."+l.shape).each(function(a,b){var c=e.select(this);c.classed(l.SELECTED)&&i(!1,c.classed(l.SELECTED,!1),a,b)}),g.classed(l.SELECTED,!h),i(!h,g,b,c))},i.initBrush=function(){var a=this,b=a.d3;a.brush=b.svg.brush().on("brush",function(){a.redrawForBrush()}),a.brush.update=function(){return a.context&&a.context.select("."+l.brush).call(this),this},a.brush.scale=function(b){return a.config.axis_rotated?this.y(b):this.x(b)}},i.initSubchart=function(){var a=this,b=a.config,c=a.context=a.svg.append("g").attr("transform",a.getTranslate("context")),d=b.subchart_show?"visible":"hidden";c.style("visibility",d),c.append("g").attr("clip-path",a.clipPathForSubchart).attr("class",l.chart),c.select("."+l.chart).append("g").attr("class",l.chartBars),c.select("."+l.chart).append("g").attr("class",l.chartLines),c.append("g").attr("clip-path",a.clipPath).attr("class",l.brush).call(a.brush),a.axes.subx=c.append("g").attr("class",l.axisX).attr("transform",a.getTranslate("subx")).attr("clip-path",b.axis_rotated?"":a.clipPathForXAxis).style("visibility",b.subchart_axis_x_show?d:"hidden")},i.updateTargetsForSubchart=function(a){var b,c,d,e,f=this,g=f.context,h=f.config,i=f.classChartBar.bind(f),j=f.classBars.bind(f),k=f.classChartLine.bind(f),m=f.classLines.bind(f),n=f.classAreas.bind(f);h.subchart_show&&(e=g.select("."+l.chartBars).selectAll("."+l.chartBar).data(a).attr("class",i),d=e.enter().append("g").style("opacity",0).attr("class",i),d.append("g").attr("class",j),c=g.select("."+l.chartLines).selectAll("."+l.chartLine).data(a).attr("class",k),b=c.enter().append("g").style("opacity",0).attr("class",k),b.append("g").attr("class",m),b.append("g").attr("class",n),g.selectAll("."+l.brush+" rect").attr(h.axis_rotated?"width":"height",h.axis_rotated?f.width2:f.height2))},i.updateBarForSubchart=function(a){var b=this;b.contextBar=b.context.selectAll("."+l.bars).selectAll("."+l.bar).data(b.barData.bind(b)),b.contextBar.enter().append("path").attr("class",b.classBar.bind(b)).style("stroke","none").style("fill",b.color),b.contextBar.style("opacity",b.initialOpacity.bind(b)),b.contextBar.exit().transition().duration(a).style("opacity",0).remove()},i.redrawBarForSubchart=function(a,b,c){(b?this.contextBar.transition(Math.random().toString()).duration(c):this.contextBar).attr("d",a).style("opacity",1)},i.updateLineForSubchart=function(a){var b=this;b.contextLine=b.context.selectAll("."+l.lines).selectAll("."+l.line).data(b.lineData.bind(b)),b.contextLine.enter().append("path").attr("class",b.classLine.bind(b)).style("stroke",b.color),b.contextLine.style("opacity",b.initialOpacity.bind(b)),b.contextLine.exit().transition().duration(a).style("opacity",0).remove()},i.redrawLineForSubchart=function(a,b,c){(b?this.contextLine.transition(Math.random().toString()).duration(c):this.contextLine).attr("d",a).style("opacity",1)},i.updateAreaForSubchart=function(a){var b=this,c=b.d3;b.contextArea=b.context.selectAll("."+l.areas).selectAll("."+l.area).data(b.lineData.bind(b)),b.contextArea.enter().append("path").attr("class",b.classArea.bind(b)).style("fill",b.color).style("opacity",function(){return b.orgAreaOpacity=+c.select(this).style("opacity"),0}),b.contextArea.style("opacity",0),b.contextArea.exit().transition().duration(a).style("opacity",0).remove()},i.redrawAreaForSubchart=function(a,b,c){(b?this.contextArea.transition(Math.random().toString()).duration(c):this.contextArea).attr("d",a).style("fill",this.color).style("opacity",this.orgAreaOpacity)},i.redrawSubchart=function(a,b,c,d,e,f,g){var h,i,j,k=this,l=k.d3,m=k.config;k.context.style("visibility",m.subchart_show?"visible":"hidden"),m.subchart_show&&(l.event&&"zoom"===l.event.type&&k.brush.extent(k.x.orgDomain()).update(),a&&(k.brush.empty()||k.brush.extent(k.x.orgDomain()).update(),h=k.generateDrawArea(e,!0),i=k.generateDrawBar(f,!0),j=k.generateDrawLine(g,!0),k.updateBarForSubchart(c),k.updateLineForSubchart(c),k.updateAreaForSubchart(c),k.redrawBarForSubchart(i,c,c),k.redrawLineForSubchart(j,c,c),k.redrawAreaForSubchart(h,c,c)))},i.redrawForBrush=function(){var a=this,b=a.x;a.redraw({withTransition:!1,withY:a.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),a.config.subchart_onbrush.call(a.api,b.orgDomain())},i.transformContext=function(a,b){var c,d=this;b&&b.axisSubX?c=b.axisSubX:(c=d.context.select("."+l.axisX),a&&(c=c.transition())),d.context.attr("transform",d.getTranslate("context")),c.attr("transform",d.getTranslate("subx"))},i.getDefaultExtent=function(){var a=this,b=a.config,c=n(b.axis_x_extent)?b.axis_x_extent(a.getXDomain(a.data.targets)):b.axis_x_extent;return a.isTimeSeries()&&(c=[a.parseDate(c[0]),a.parseDate(c[1])]),c},i.initZoom=function(){var a,b=this,c=b.d3,d=b.config;b.zoom=c.behavior.zoom().on("zoomstart",function(){a=c.event.sourceEvent,b.zoom.altDomain=c.event.sourceEvent.altKey?b.x.orgDomain():null,d.zoom_onzoomstart.call(b.api,c.event.sourceEvent)}).on("zoom",function(){b.redrawForZoom.call(b)}).on("zoomend",function(){var e=c.event.sourceEvent;e&&a.clientX===e.clientX&&a.clientY===e.clientY||(b.redrawEventRect(),b.updateZoom(),d.zoom_onzoomend.call(b.api,b.x.orgDomain()))}),b.zoom.scale=function(a){return d.axis_rotated?this.y(a):this.x(a)},b.zoom.orgScaleExtent=function(){var a=d.zoom_extent?d.zoom_extent:[1,10];return[a[0],Math.max(b.getMaxDataCount()/a[1],a[1])]},b.zoom.updateScaleExtent=function(){var a=t(b.x.orgDomain())/t(b.getZoomDomain()),c=this.orgScaleExtent();return this.scaleExtent([c[0]*a,c[1]*a]),this}},i.getZoomDomain=function(){var a=this,b=a.config,c=a.d3,d=c.min([a.orgXDomain[0],b.zoom_x_min]),e=c.max([a.orgXDomain[1],b.zoom_x_max]);return[d,e]},i.updateZoom=function(){var a=this,b=a.config.zoom_enabled?a.zoom:function(){};a.main.select("."+l.zoomRect).call(b).on("dblclick.zoom",null),a.main.selectAll("."+l.eventRect).call(b).on("dblclick.zoom",null)},i.redrawForZoom=function(){var a=this,b=a.d3,c=a.config,d=a.zoom,e=a.x;if(c.zoom_enabled&&0!==a.filterTargetsToShow(a.data.targets).length){if("mousemove"===b.event.sourceEvent.type&&d.altDomain)return e.domain(d.altDomain),void d.scale(e).updateScaleExtent();a.isCategorized()&&e.orgDomain()[0]===a.orgXDomain[0]&&e.domain([a.orgXDomain[0]-1e-10,e.orgDomain()[1]]),a.redraw({withTransition:!1,withY:c.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===b.event.sourceEvent.type&&(a.cancelClick=!0),c.zoom_onzoom.call(a.api,e.orgDomain())}},i.generateColor=function(){var a=this,b=a.config,c=a.d3,d=b.data_colors,e=v(b.color_pattern)?b.color_pattern:c.scale.category10().range(),f=b.data_color,g=[];return function(a){var b,c=a.id||a.data&&a.data.id||a;return d[c]instanceof Function?b=d[c](a):d[c]?b=d[c]:(g.indexOf(c)<0&&g.push(c),b=e[g.indexOf(c)%e.length],d[c]=b),f instanceof Function?f(b,a):b}},i.generateLevelColor=function(){var a=this,b=a.config,c=b.color_pattern,d=b.color_threshold,e="value"===d.unit,f=d.values&&d.values.length?d.values:[],g=d.max||100;return v(b.color_threshold)?function(a){var b,d,h=c[c.length-1];for(b=0;b=0?l.focused:"")},i.classDefocused=function(a){return" "+(this.defocusedTargetIds.indexOf(a.id)>=0?l.defocused:"")},i.classChartText=function(a){return l.chartText+this.classTarget(a.id)},i.classChartLine=function(a){return l.chartLine+this.classTarget(a.id)},i.classChartBar=function(a){return l.chartBar+this.classTarget(a.id)},i.classChartArc=function(a){return l.chartArc+this.classTarget(a.data.id)},i.getTargetSelectorSuffix=function(a){return a||0===a?("-"+a).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},i.selectorTarget=function(a,b){return(b||"")+"."+l.target+this.getTargetSelectorSuffix(a)},i.selectorTargets=function(a,b){var c=this;return a=a||[],a.length?a.map(function(a){return c.selectorTarget(a,b)}):null},i.selectorLegend=function(a){return"."+l.legendItem+this.getTargetSelectorSuffix(a)},i.selectorLegends=function(a){var b=this;return a&&a.length?a.map(function(a){return b.selectorLegend(a)}):null};var m=i.isValue=function(a){return a||0===a},n=i.isFunction=function(a){return"function"==typeof a},o=i.isString=function(a){return"string"==typeof a},p=i.isUndefined=function(a){return"undefined"==typeof a},q=i.isDefined=function(a){return"undefined"!=typeof a},r=i.ceil10=function(a){return 10*Math.ceil(a/10)},s=i.asHalfPixel=function(a){return Math.ceil(a)+.5},t=i.diffDomain=function(a){return a[1]-a[0]},u=i.isEmpty=function(a){return"undefined"==typeof a||null===a||o(a)&&0===a.length||"object"==typeof a&&0===Object.keys(a).length},v=i.notEmpty=function(a){return!i.isEmpty(a)},w=i.getOption=function(a,b,c){return q(a[b])?a[b]:c},x=i.hasValue=function(a,b){var c=!1;return Object.keys(a).forEach(function(d){a[d]===b&&(c=!0)}),c},y=i.sanitise=function(a){return"string"==typeof a?a.replace(//g,">"):a},z=i.getPathBox=function(a){var b=a.getBoundingClientRect(),c=[a.pathSegList.getItem(0),a.pathSegList.getItem(1)],d=c[0].x,e=Math.min(c[0].y,c[1].y);return{x:d,y:e,width:b.width,height:b.height}};h.focus=function(a){var b,c=this.internal;a=c.mapToTargetIds(a),b=c.svg.selectAll(c.selectorTargets(a.filter(c.isTargetToShow,c))),this.revert(),this.defocus(),b.classed(l.focused,!0).classed(l.defocused,!1), c.hasArcType()&&c.expandArc(a),c.toggleFocusLegend(a,!0),c.focusedTargetIds=a,c.defocusedTargetIds=c.defocusedTargetIds.filter(function(b){return a.indexOf(b)<0})},h.defocus=function(a){var b,c=this.internal;a=c.mapToTargetIds(a),b=c.svg.selectAll(c.selectorTargets(a.filter(c.isTargetToShow,c))),b.classed(l.focused,!1).classed(l.defocused,!0),c.hasArcType()&&c.unexpandArc(a),c.toggleFocusLegend(a,!1),c.focusedTargetIds=c.focusedTargetIds.filter(function(b){return a.indexOf(b)<0}),c.defocusedTargetIds=a},h.revert=function(a){var b,c=this.internal;a=c.mapToTargetIds(a),b=c.svg.selectAll(c.selectorTargets(a)),b.classed(l.focused,!1).classed(l.defocused,!1),c.hasArcType()&&c.unexpandArc(a),c.config.legend_show&&(c.showLegend(a.filter(c.isLegendToShow.bind(c))),c.legend.selectAll(c.selectorLegends(a)).filter(function(){return c.d3.select(this).classed(l.legendItemFocused)}).classed(l.legendItemFocused,!1)),c.focusedTargetIds=[],c.defocusedTargetIds=[]},h.show=function(a,b){var c,d=this.internal;a=d.mapToTargetIds(a),b=b||{},d.removeHiddenTargetIds(a),c=d.svg.selectAll(d.selectorTargets(a)),c.transition().style("opacity",1,"important").call(d.endall,function(){c.style("opacity",null).style("opacity",1)}),b.withLegend&&d.showLegend(a),d.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},h.hide=function(a,b){var c,d=this.internal;a=d.mapToTargetIds(a),b=b||{},d.addHiddenTargetIds(a),c=d.svg.selectAll(d.selectorTargets(a)),c.transition().style("opacity",0,"important").call(d.endall,function(){c.style("opacity",null).style("opacity",0)}),b.withLegend&&d.hideLegend(a),d.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},h.toggle=function(a,b){var c=this,d=this.internal;d.mapToTargetIds(a).forEach(function(a){d.isTargetToShow(a)?c.hide(a,b):c.show(a,b)})},h.zoom=function(a){var b=this.internal;return a&&(b.isTimeSeries()&&(a=a.map(function(a){return b.parseDate(a)})),b.brush.extent(a),b.redraw({withUpdateXDomain:!0,withY:b.config.zoom_rescale}),b.config.zoom_onzoom.call(this,b.x.orgDomain())),b.brush.extent()},h.zoom.enable=function(a){var b=this.internal;b.config.zoom_enabled=a,b.updateAndRedraw()},h.unzoom=function(){var a=this.internal;a.brush.clear().update(),a.redraw({withUpdateXDomain:!0})},h.zoom.max=function(a){var b=this.internal,c=b.config,d=b.d3;return 0===a||a?void(c.zoom_x_max=d.max([b.orgXDomain[1],a])):c.zoom_x_max},h.zoom.min=function(a){var b=this.internal,c=b.config,d=b.d3;return 0===a||a?void(c.zoom_x_min=d.min([b.orgXDomain[0],a])):c.zoom_x_min},h.zoom.range=function(a){return arguments.length?(q(a.max)&&this.domain.max(a.max),void(q(a.min)&&this.domain.min(a.min))):{max:this.domain.max(),min:this.domain.min()}},h.load=function(a){var b=this.internal,c=b.config;return a.xs&&b.addXs(a.xs),"names"in a&&h.data.names.bind(this)(a.names),"classes"in a&&Object.keys(a.classes).forEach(function(b){c.data_classes[b]=a.classes[b]}),"categories"in a&&b.isCategorized()&&(c.axis_x_categories=a.categories),"axes"in a&&Object.keys(a.axes).forEach(function(b){c.data_axes[b]=a.axes[b]}),"colors"in a&&Object.keys(a.colors).forEach(function(b){c.data_colors[b]=a.colors[b]}),"cacheIds"in a&&b.hasCaches(a.cacheIds)?void b.load(b.getCaches(a.cacheIds),a.done):void("unload"in a?b.unload(b.mapToTargetIds("boolean"==typeof a.unload&&a.unload?null:a.unload),function(){b.loadFromArgs(a)}):b.loadFromArgs(a))},h.unload=function(a){var b=this.internal;a=a||{},a instanceof Array?a={ids:a}:"string"==typeof a&&(a={ids:[a]}),b.unload(b.mapToTargetIds(a.ids),function(){b.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),a.done&&a.done()})},h.flow=function(a){var b,c,d,e,f,g,h,i,j=this.internal,k=[],l=j.getMaxDataCount(),n=0,o=0;if(a.json)c=j.convertJsonToData(a.json,a.keys);else if(a.rows)c=j.convertRowsToData(a.rows);else{if(!a.columns)return;c=j.convertColumnsToData(a.columns)}b=j.convertDataToTargets(c,!0),j.data.targets.forEach(function(a){var c,d,e=!1;for(c=0;cd;d++)b[c].values[d].index=o+d,j.isTimeSeries()||(b[c].values[d].x=o+d);a.values=a.values.concat(b[c].values),b.splice(c,1);break}e||k.push(a.id)}),j.data.targets.forEach(function(a){var b,c;for(b=0;bc;c++)a.values.push({id:a.id,index:o+c,x:j.isTimeSeries()?j.getOtherTargetX(o+c):o+c,value:null})}),j.data.targets.length&&b.forEach(function(a){var b,c=[];for(b=j.data.targets[0].values[0].index;o>b;b++)c.push({id:a.id,index:b,x:j.isTimeSeries()?j.getOtherTargetX(b):b,value:null});a.values.forEach(function(a){a.index+=o,j.isTimeSeries()||(a.x+=o)}),a.values=c.concat(a.values)}),j.data.targets=j.data.targets.concat(b),d=j.getMaxDataCount(),f=j.data.targets[0],g=f.values[0],q(a.to)?(n=0,i=j.isTimeSeries()?j.parseDate(a.to):a.to,f.values.forEach(function(a){a.x1?f.values[f.values.length-1].x-g.x:g.x-j.getXDomain(j.data.targets)[0]:1,e=[g.x-h,g.x],j.updateXDomain(null,!0,!0,!1,e)),j.updateTargets(j.data.targets),j.redraw({flow:{index:g.index,length:n,duration:m(a.duration)?a.duration:j.config.transition_duration,done:a.done,orgDataCount:l},withLegend:!0,withTransition:l>1,withTrimXDomain:!1,withUpdateXAxis:!0})},i.generateFlow=function(a){var b=this,c=b.config,d=b.d3;return function(){var e,f,g,h=a.targets,i=a.flow,j=a.drawBar,k=a.drawLine,m=a.drawArea,n=a.cx,o=a.cy,p=a.xv,q=a.xForText,r=a.yForText,s=a.duration,u=1,v=i.index,w=i.length,x=b.getValueOnIndex(b.data.targets[0].values,v),y=b.getValueOnIndex(b.data.targets[0].values,v+w),z=b.x.domain(),A=i.duration||s,B=i.done||function(){},C=b.generateWait(),D=b.xgrid||d.selectAll([]),E=b.xgridLines||d.selectAll([]),F=b.mainRegion||d.selectAll([]),G=b.mainText||d.selectAll([]),H=b.mainBar||d.selectAll([]),I=b.mainLine||d.selectAll([]),J=b.mainArea||d.selectAll([]),K=b.mainCircle||d.selectAll([]);b.flowing=!0,b.data.targets.forEach(function(a){a.values.splice(0,w)}),g=b.updateXDomain(h,!0,!0),b.updateXGrid&&b.updateXGrid(!0),i.orgDataCount?e=1===i.orgDataCount||(x&&x.x)===(y&&y.x)?b.x(z[0])-b.x(g[0]):b.isTimeSeries()?b.x(z[0])-b.x(g[0]):b.x(x.x)-b.x(y.x):1!==b.data.targets[0].values.length?e=b.x(z[0])-b.x(g[0]):b.isTimeSeries()?(x=b.getValueOnIndex(b.data.targets[0].values,0),y=b.getValueOnIndex(b.data.targets[0].values,b.data.targets[0].values.length-1),e=b.x(x.x)-b.x(y.x)):e=t(g)/2,u=t(z)/t(g),f="translate("+e+",0) scale("+u+",1)",b.hideXGridFocus(),d.transition().ease("linear").duration(A).each(function(){C.add(b.axes.x.transition().call(b.xAxis)),C.add(H.transition().attr("transform",f)),C.add(I.transition().attr("transform",f)),C.add(J.transition().attr("transform",f)),C.add(K.transition().attr("transform",f)),C.add(G.transition().attr("transform",f)),C.add(F.filter(b.isRegionOnX).transition().attr("transform",f)),C.add(D.transition().attr("transform",f)),C.add(E.transition().attr("transform",f))}).call(C,function(){var a,d=[],e=[],f=[];if(w){for(a=0;w>a;a++)d.push("."+l.shape+"-"+(v+a)),e.push("."+l.text+"-"+(v+a)),f.push("."+l.eventRect+"-"+(v+a));b.svg.selectAll("."+l.shapes).selectAll(d).remove(),b.svg.selectAll("."+l.texts).selectAll(e).remove(),b.svg.selectAll("."+l.eventRects).selectAll(f).remove(),b.svg.select("."+l.xgrid).remove()}D.attr("transform",null).attr(b.xgridAttr),E.attr("transform",null),E.select("line").attr("x1",c.axis_rotated?0:p).attr("x2",c.axis_rotated?b.width:p),E.select("text").attr("x",c.axis_rotated?b.width:0).attr("y",p),H.attr("transform",null).attr("d",j),I.attr("transform",null).attr("d",k),J.attr("transform",null).attr("d",m),K.attr("transform",null).attr("cx",n).attr("cy",o),G.attr("transform",null).attr("x",q).attr("y",r).style("fill-opacity",b.opacityForText.bind(b)),F.attr("transform",null),F.select("rect").filter(b.isRegionOnX).attr("x",b.regionX.bind(b)).attr("width",b.regionWidth.bind(b)),c.interaction_enabled&&b.redrawEventRect(),B(),b.flowing=!1})}},h.selected=function(a){var b=this.internal,c=b.d3;return c.merge(b.main.selectAll("."+l.shapes+b.getTargetSelectorSuffix(a)).selectAll("."+l.shape).filter(function(){return c.select(this).classed(l.SELECTED)}).map(function(a){return a.map(function(a){var b=a.__data__;return b.data?b.data:b})}))},h.select=function(a,b,c){var d=this.internal,e=d.d3,f=d.config;f.data_selection_enabled&&d.main.selectAll("."+l.shapes).selectAll("."+l.shape).each(function(g,h){var i=e.select(this),j=g.data?g.data.id:g.id,k=d.getToggle(this,g).bind(d),m=f.data_selection_grouped||!a||a.indexOf(j)>=0,n=!b||b.indexOf(h)>=0,o=i.classed(l.SELECTED);i.classed(l.line)||i.classed(l.area)||(m&&n?f.data_selection_isselectable(g)&&!o&&k(!0,i.classed(l.SELECTED,!0),g,h):q(c)&&c&&o&&k(!1,i.classed(l.SELECTED,!1),g,h))})},h.unselect=function(a,b){var c=this.internal,d=c.d3,e=c.config;e.data_selection_enabled&&c.main.selectAll("."+l.shapes).selectAll("."+l.shape).each(function(f,g){var h=d.select(this),i=f.data?f.data.id:f.id,j=c.getToggle(this,f).bind(c),k=e.data_selection_grouped||!a||a.indexOf(i)>=0,m=!b||b.indexOf(g)>=0,n=h.classed(l.SELECTED);h.classed(l.line)||h.classed(l.area)||k&&m&&e.data_selection_isselectable(f)&&n&&j(!1,h.classed(l.SELECTED,!1),f,g)})},h.transform=function(a,b){var c=this.internal,d=["pie","donut"].indexOf(a)>=0?{withTransform:!0}:null;c.transformTo(b,a,d)},i.transformTo=function(a,b,c){var d=this,e=!d.hasArcType(),f=c||{withTransitionForAxis:e};f.withTransitionForTransform=!1,d.transiting=!1,d.setTargetType(a,b),d.updateTargets(d.data.targets),d.updateAndRedraw(f)},h.groups=function(a){var b=this.internal,c=b.config;return p(a)?c.data_groups:(c.data_groups=a,b.redraw(),c.data_groups)},h.xgrids=function(a){var b=this.internal,c=b.config;return a?(c.grid_x_lines=a,b.redrawWithoutRescale(),c.grid_x_lines):c.grid_x_lines},h.xgrids.add=function(a){var b=this.internal;return this.xgrids(b.config.grid_x_lines.concat(a?a:[]))},h.xgrids.remove=function(a){var b=this.internal;b.removeGridLines(a,!0)},h.ygrids=function(a){var b=this.internal,c=b.config;return a?(c.grid_y_lines=a,b.redrawWithoutRescale(),c.grid_y_lines):c.grid_y_lines},h.ygrids.add=function(a){var b=this.internal;return this.ygrids(b.config.grid_y_lines.concat(a?a:[]))},h.ygrids.remove=function(a){var b=this.internal;b.removeGridLines(a,!1)},h.regions=function(a){var b=this.internal,c=b.config;return a?(c.regions=a,b.redrawWithoutRescale(),c.regions):c.regions},h.regions.add=function(a){var b=this.internal,c=b.config;return a?(c.regions=c.regions.concat(a),b.redrawWithoutRescale(),c.regions):c.regions},h.regions.remove=function(a){var b,c,d,e=this.internal,f=e.config;return a=a||{},b=e.getOption(a,"duration",f.transition_duration),c=e.getOption(a,"classes",[l.region]),d=e.main.select("."+l.regions).selectAll(c.map(function(a){return"."+a})),(b?d.transition().duration(b):d).style("opacity",0).remove(),f.regions=f.regions.filter(function(a){var b=!1;return a["class"]?(a["class"].split(" ").forEach(function(a){c.indexOf(a)>=0&&(b=!0)}),!b):!0}),f.regions},h.data=function(a){var b=this.internal.data.targets;return"undefined"==typeof a?b:b.filter(function(b){return[].concat(a).indexOf(b.id)>=0})},h.data.shown=function(a){return this.internal.filterTargetsToShow(this.data(a))},h.data.values=function(a){var b,c=null;return a&&(b=this.data(a),c=b[0]?b[0].values.map(function(a){return a.value}):null),c},h.data.names=function(a){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",a)},h.data.colors=function(a){return this.internal.updateDataAttributes("colors",a)},h.data.axes=function(a){return this.internal.updateDataAttributes("axes",a)},h.category=function(a,b){var c=this.internal,d=c.config;return arguments.length>1&&(d.axis_x_categories[a]=b,c.redraw()),d.axis_x_categories[a]},h.categories=function(a){var b=this.internal,c=b.config;return arguments.length?(c.axis_x_categories=a,b.redraw(),c.axis_x_categories):c.axis_x_categories},h.color=function(a){var b=this.internal;return b.color(a)},h.x=function(a){var b=this.internal;return arguments.length&&(b.updateTargetX(b.data.targets,a),b.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),b.data.xs},h.xs=function(a){var b=this.internal;return arguments.length&&(b.updateTargetXs(b.data.targets,a),b.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),b.data.xs},h.axis=function(){},h.axis.labels=function(a){var b=this.internal;arguments.length&&(Object.keys(a).forEach(function(c){b.axis.setLabelText(c,a[c])}),b.axis.updateLabels())},h.axis.max=function(a){var b=this.internal,c=b.config;return arguments.length?("object"==typeof a?(m(a.x)&&(c.axis_x_max=a.x),m(a.y)&&(c.axis_y_max=a.y),m(a.y2)&&(c.axis_y2_max=a.y2)):c.axis_y_max=c.axis_y2_max=a,void b.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:c.axis_x_max,y:c.axis_y_max,y2:c.axis_y2_max}},h.axis.min=function(a){var b=this.internal,c=b.config;return arguments.length?("object"==typeof a?(m(a.x)&&(c.axis_x_min=a.x),m(a.y)&&(c.axis_y_min=a.y),m(a.y2)&&(c.axis_y2_min=a.y2)):c.axis_y_min=c.axis_y2_min=a,void b.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:c.axis_x_min,y:c.axis_y_min,y2:c.axis_y2_min}},h.axis.range=function(a){return arguments.length?(q(a.max)&&this.axis.max(a.max),void(q(a.min)&&this.axis.min(a.min))):{max:this.axis.max(),min:this.axis.min()}},h.legend=function(){},h.legend.show=function(a){var b=this.internal;b.showLegend(b.mapToTargetIds(a)),b.updateAndRedraw({withLegend:!0})},h.legend.hide=function(a){var b=this.internal;b.hideLegend(b.mapToTargetIds(a)),b.updateAndRedraw({withLegend:!0})},h.resize=function(a){var b=this.internal,c=b.config;c.size_width=a?a.width:null,c.size_height=a?a.height:null,this.flush()},h.flush=function(){var a=this.internal;a.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},h.destroy=function(){var b=this.internal;if(a.clearInterval(b.intervalForObserveInserted),void 0!==b.resizeTimeout&&a.clearTimeout(b.resizeTimeout),a.detachEvent)a.detachEvent("onresize",b.resizeFunction);else if(a.removeEventListener)a.removeEventListener("resize",b.resizeFunction);else{var c=a.onresize;c&&c.add&&c.remove&&c.remove(b.resizeFunction)}return b.selectChart.classed("c3",!1).html(""),Object.keys(b).forEach(function(a){b[a]=null}),null},h.tooltip=function(){},h.tooltip.show=function(a){var b,c,d=this.internal;a.mouse&&(c=a.mouse),a.data?d.isMultipleX()?(c=[d.x(a.data.x),d.getYScale(a.data.id)(a.data.value)],b=null):b=m(a.data.index)?a.data.index:d.getIndexByX(a.data.x):"undefined"!=typeof a.x?b=d.getIndexByX(a.x):"undefined"!=typeof a.index&&(b=a.index),d.dispatchEvent("mouseover",b,c),d.dispatchEvent("mousemove",b,c),d.config.tooltip_onshow.call(d,a.data)},h.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)};var A;i.isSafari=function(){var b=a.navigator.userAgent;return b.indexOf("Safari")>=0&&b.indexOf("Chrome")<0},i.isChrome=function(){var b=a.navigator.userAgent;return b.indexOf("Chrome")>=0},Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice.call(arguments,1),c=this,d=function(){},e=function(){return c.apply(this instanceof d?this:a,b.concat(Array.prototype.slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e}),function(){"SVGPathSeg"in a||(a.SVGPathSeg=function(a,b,c){this.pathSegType=a,this.pathSegTypeAsLetter=b,this._owningPathSegList=c},SVGPathSeg.PATHSEG_UNKNOWN=0,SVGPathSeg.PATHSEG_CLOSEPATH=1,SVGPathSeg.PATHSEG_MOVETO_ABS=2,SVGPathSeg.PATHSEG_MOVETO_REL=3,SVGPathSeg.PATHSEG_LINETO_ABS=4,SVGPathSeg.PATHSEG_LINETO_REL=5,SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,SVGPathSeg.PATHSEG_ARC_ABS=10,SVGPathSeg.PATHSEG_ARC_REL=11,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},a.SVGPathSegClosePath=function(a){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CLOSEPATH,"z",a)},SVGPathSegClosePath.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},SVGPathSegClosePath.prototype.clone=function(){return new SVGPathSegClosePath(void 0)},a.SVGPathSegMovetoAbs=function(a,b,c){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_MOVETO_ABS,"M",a),this._x=b,this._y=c},SVGPathSegMovetoAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegMovetoAbs.prototype.clone=function(){return new SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegMovetoRel=function(a,b,c){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_MOVETO_REL,"m",a),this._x=b,this._y=c},SVGPathSegMovetoRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegMovetoRel.prototype.clone=function(){return new SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoAbs=function(a,b,c){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_ABS,"L",a),this._x=b,this._y=c},SVGPathSegLinetoAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegLinetoAbs.prototype.clone=function(){return new SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoRel=function(a,b,c){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_REL,"l",a),this._x=b,this._y=c},SVGPathSegLinetoRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegLinetoRel.prototype.clone=function(){return new SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoCubicAbs=function(a,b,c,d,e,f,g){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",a),this._x=b,this._y=c,this._x1=d,this._y1=e,this._x2=f,this._y2=g},SVGPathSegCurvetoCubicAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(a){this._x1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(a){this._y1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(a){this._x2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(a){this._y2=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoCubicRel=function(a,b,c,d,e,f,g){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",a),this._x=b,this._y=c,this._x1=d,this._y1=e,this._x2=f,this._y2=g},SVGPathSegCurvetoCubicRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(a){this._x1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(a){this._y1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(a){this._x2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(a){this._y2=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoQuadraticAbs=function(a,b,c,d,e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",a),this._x=b,this._y=c,this._x1=d,this._y1=e},SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(a){this._x1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(a){this._y1=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoQuadraticRel=function(a,b,c,d,e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",a),this._x=b,this._y=c,this._x1=d,this._y1=e},SVGPathSegCurvetoQuadraticRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(a){this._x1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(a){this._y1=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegArcAbs=function(a,b,c,d,e,f,g,h){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_ARC_ABS,"A",a),this._x=b,this._y=c,this._r1=d,this._r2=e,this._angle=f,this._largeArcFlag=g,this._sweepFlag=h},SVGPathSegArcAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},SVGPathSegArcAbs.prototype.clone=function(){return new SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(a){this._r1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(a){this._r2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(a){this._angle=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(a){this._largeArcFlag=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(a){this._sweepFlag=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegArcRel=function(a,b,c,d,e,f,g,h){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_ARC_REL,"a",a),this._x=b,this._y=c,this._r1=d,this._r2=e,this._angle=f,this._largeArcFlag=g,this._sweepFlag=h},SVGPathSegArcRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},SVGPathSegArcRel.prototype.clone=function(){return new SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(a){this._r1=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(a){this._r2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(a){this._angle=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(a){this._largeArcFlag=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(a){this._sweepFlag=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoHorizontalAbs=function(a,b){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",a),this._x=b},SVGPathSegLinetoHorizontalAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoHorizontalRel=function(a,b){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",a),this._x=b},SVGPathSegLinetoHorizontalRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoVerticalAbs=function(a,b){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",a),this._y=b},SVGPathSegLinetoVerticalAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegLinetoVerticalRel=function(a,b){ SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",a),this._y=b},SVGPathSegLinetoVerticalRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoCubicSmoothAbs=function(a,b,c,d,e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",a),this._x=b,this._y=c,this._x2=d,this._y2=e},SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(a){this._x2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(a){this._y2=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoCubicSmoothRel=function(a,b,c,d,e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",a),this._x=b,this._y=c,this._x2=d,this._y2=e},SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(a){this._x2=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(a){this._y2=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoQuadraticSmoothAbs=function(a,b,c){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",a),this._x=b,this._y=c},SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),a.SVGPathSegCurvetoQuadraticSmoothRel=function(a,b,c){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",a),this._x=b,this._y=c},SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(a){this._x=a,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(a){this._y=a,this._segmentChanged()},enumerable:!0}),SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new SVGPathSegClosePath(void 0)},SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(a,b){return new SVGPathSegMovetoAbs(void 0,a,b)},SVGPathElement.prototype.createSVGPathSegMovetoRel=function(a,b){return new SVGPathSegMovetoRel(void 0,a,b)},SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(a,b){return new SVGPathSegLinetoAbs(void 0,a,b)},SVGPathElement.prototype.createSVGPathSegLinetoRel=function(a,b){return new SVGPathSegLinetoRel(void 0,a,b)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(a,b,c,d,e,f){return new SVGPathSegCurvetoCubicAbs(void 0,a,b,c,d,e,f)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(a,b,c,d,e,f){return new SVGPathSegCurvetoCubicRel(void 0,a,b,c,d,e,f)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(a,b,c,d){return new SVGPathSegCurvetoQuadraticAbs(void 0,a,b,c,d)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(a,b,c,d){return new SVGPathSegCurvetoQuadraticRel(void 0,a,b,c,d)},SVGPathElement.prototype.createSVGPathSegArcAbs=function(a,b,c,d,e,f,g){return new SVGPathSegArcAbs(void 0,a,b,c,d,e,f,g)},SVGPathElement.prototype.createSVGPathSegArcRel=function(a,b,c,d,e,f,g){return new SVGPathSegArcRel(void 0,a,b,c,d,e,f,g)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(a){return new SVGPathSegLinetoHorizontalAbs(void 0,a)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(a){return new SVGPathSegLinetoHorizontalRel(void 0,a)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(a){return new SVGPathSegLinetoVerticalAbs(void 0,a)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(a){return new SVGPathSegLinetoVerticalRel(void 0,a)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(a,b,c,d){return new SVGPathSegCurvetoCubicSmoothAbs(void 0,a,b,c,d)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(a,b,c,d){return new SVGPathSegCurvetoCubicSmoothRel(void 0,a,b,c,d)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(a,b){return new SVGPathSegCurvetoQuadraticSmoothAbs(void 0,a,b)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(a,b){return new SVGPathSegCurvetoQuadraticSmoothRel(void 0,a,b)}),"SVGPathSegList"in a||(a.SVGPathSegList=function(a){this._pathElement=a,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},Object.defineProperty(SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},SVGPathSegList.prototype._updateListFromPathMutations=function(a){if(this._pathElement){var b=!1;a.forEach(function(a){"d"==a.attributeName&&(b=!0)}),b&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},SVGPathSegList.prototype.segmentChanged=function(a){this._writeListToPath()},SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(a){a._owningPathSegList=null}),this._list=[],this._writeListToPath()},SVGPathSegList.prototype.initialize=function(a){return this._checkPathSynchronizedToList(),this._list=[a],a._owningPathSegList=this,this._writeListToPath(),a},SVGPathSegList.prototype._checkValidIndex=function(a){if(isNaN(a)||0>a||a>=this.numberOfItems)throw"INDEX_SIZE_ERR"},SVGPathSegList.prototype.getItem=function(a){return this._checkPathSynchronizedToList(),this._checkValidIndex(a),this._list[a]},SVGPathSegList.prototype.insertItemBefore=function(a,b){return this._checkPathSynchronizedToList(),b>this.numberOfItems&&(b=this.numberOfItems),a._owningPathSegList&&(a=a.clone()),this._list.splice(b,0,a),a._owningPathSegList=this,this._writeListToPath(),a},SVGPathSegList.prototype.replaceItem=function(a,b){return this._checkPathSynchronizedToList(),a._owningPathSegList&&(a=a.clone()),this._checkValidIndex(b),this._list[b]=a,a._owningPathSegList=this,this._writeListToPath(),a},SVGPathSegList.prototype.removeItem=function(a){this._checkPathSynchronizedToList(),this._checkValidIndex(a);var b=this._list[a];return this._list.splice(a,1),this._writeListToPath(),b},SVGPathSegList.prototype.appendItem=function(a){return this._checkPathSynchronizedToList(),a._owningPathSegList&&(a=a.clone()),this._list.push(a),a._owningPathSegList=this,this._writeListToPath(),a},SVGPathSegList._pathSegArrayAsString=function(a){var b="",c=!0;return a.forEach(function(a){c?(c=!1,b+=a._asPathString()):b+=" "+a._asPathString()}),b},SVGPathSegList.prototype._parsePath=function(a){if(!a||0==a.length)return[];var b=this,c=function(){this.pathSegList=[]};c.prototype.appendSegment=function(a){this.pathSegList.push(a)};var d=function(a){this._string=a,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};d.prototype._isCurrentSpace=function(){var a=this._string[this._currentIndex];return" ">=a&&(" "==a||"\n"==a||" "==a||"\r"==a||"\f"==a)},d.prototype._skipOptionalSpaces=function(){for(;this._currentIndex="0"&&"9">=a)&&b!=SVGPathSeg.PATHSEG_CLOSEPATH?b==SVGPathSeg.PATHSEG_MOVETO_ABS?SVGPathSeg.PATHSEG_LINETO_ABS:b==SVGPathSeg.PATHSEG_MOVETO_REL?SVGPathSeg.PATHSEG_LINETO_REL:b:SVGPathSeg.PATHSEG_UNKNOWN},d.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var a=this.peekSegmentType();return a==SVGPathSeg.PATHSEG_MOVETO_ABS||a==SVGPathSeg.PATHSEG_MOVETO_REL},d.prototype._parseNumber=function(){var a=0,b=0,c=1,d=0,e=1,f=1,g=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex"9")&&"."!=this._string.charAt(this._currentIndex))){for(var h=this._currentIndex;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=h)for(var i=this._currentIndex-1,j=1;i>=h;)b+=j*(this._string.charAt(i--)-"0"),j*=10;if(this._currentIndex=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)d+=(this._string.charAt(this._currentIndex++)-"0")*(c*=.1)}if(this._currentIndex!=g&&this._currentIndex+1=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)a*=10,a+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var k=b+d;if(k*=e,a&&(k*=Math.pow(10,f*a)),g!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),k}},d.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var a=!1,b=this._string.charAt(this._currentIndex++);if("0"==b)a=!1;else{if("1"!=b)return;a=!0}return this._skipOptionalSpacesOrDelimiter(),a}},d.prototype.parseSegment=function(){var a=this._string[this._currentIndex],c=this._pathSegTypeFromChar(a);if(c==SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==SVGPathSeg.PATHSEG_UNKNOWN)return null;if(c=this._nextCommandHelper(a,this._previousCommand),c==SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=c,c){case SVGPathSeg.PATHSEG_MOVETO_REL:return new SVGPathSegMovetoRel(b,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_MOVETO_ABS:return new SVGPathSegMovetoAbs(b,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_REL:return new SVGPathSegLinetoRel(b,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_ABS:return new SVGPathSegLinetoAbs(b,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new SVGPathSegLinetoHorizontalRel(b,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new SVGPathSegLinetoHorizontalAbs(b,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new SVGPathSegLinetoVerticalRel(b,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new SVGPathSegLinetoVerticalAbs(b,this._parseNumber());case SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new SVGPathSegClosePath(b);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var d={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicRel(b,d.x,d.y,d.x1,d.y1,d.x2,d.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:var d={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicAbs(b,d.x,d.y,d.x1,d.y1,d.x2,d.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:var d={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothRel(b,d.x,d.y,d.x2,d.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:var d={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothAbs(b,d.x,d.y,d.x2,d.y2);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:var d={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticRel(b,d.x,d.y,d.x1,d.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:var d={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticAbs(b,d.x,d.y,d.x1,d.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new SVGPathSegCurvetoQuadraticSmoothRel(b,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new SVGPathSegCurvetoQuadraticSmoothAbs(b,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_ARC_REL:var d={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcRel(b,d.x,d.y,d.x1,d.y1,d.arcAngle,d.arcLarge,d.arcSweep);case SVGPathSeg.PATHSEG_ARC_ABS:var d={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcAbs(b,d.x,d.y,d.x1,d.y1,d.arcAngle,d.arcLarge,d.arcSweep);default:throw"Unknown path seg type."}};var e=new c,f=new d(a);if(!f.initialCommandIsMoveTo())return[];for(;f.hasMoreData();){var g=f.parseSegment();if(!g)return[];e.appendSegment(g)}return e.pathSegList})}(),"function"==typeof define&&define.amd?define("c3",["d3"],function(){return k}):"undefined"!=typeof exports&&"undefined"!=typeof module?module.exports=k:a.c3=k}(window); var tabelleAutarkie=[[0,0,.0625,.125,.1875,.25,.3125,.375,.4375,.5,.5625,.625,.6875,.75,.8125,.875,.9375,1,1.0625,1.125,1.1875,1.25,1.3125,1.375,1.4375,1.5,1.5625,1.625,1.6875,1.75,1.8125,1.875,1.9375,2,2.0625,2.125,2.1875,2.25,2.3125,2.375,2.4375,2.5,2.5625,2.625,2.6875,2.75,2.8125,2.875,2.9375,3,3.0625,3.125,3.1875,3.25,3.3125,3.375,3.4375,3.5,3.5625,3.625,3.6875,3.75,3.8125,3.875,3.9375,4,4.0625,4.125,4.1875,4.25,4.3125,4.375,4.4375,4.5,4.5625,4.625,4.6875,4.75,4.8125,4.875,4.9375,5],[0,1.03e-8,.0616,.107,.14,.166,.188,.207,.223,.238,.25,.261,.27,.279,.286,.293,.299,.305,.31,.315,.319,.323,.327,.331,.334,.338,.341,.344,.347,.349,.352,.354,.357,.359,.361,.363,.365,.367,.369,.37,.372,.374,.375,.377,.378,.379,.381,.382,.383,.385,.386,.387,.388,.389,.39,.391,.392,.393,.394,.395,.396,.397,.398,.398,.399,.4,.401,.402,.402,.403,.404,.404,.405,.406,.406,.407,.408,.408,.409,.41,.41,.410673851],[.0625,1.03e-8,.063700669,.119498955,.161394995,.192599972,.217339002,.237897231,.255052635,.269562683,.281653221,.291921364,.3009504,.309082301,.316391175,.322942477,.328927286,.334459472,.339551347,.344271168,.348652293,.352737749,.356563631,.360115406,.363440593,.366586882,.369553282,.372375241,.37505852,.377607716,.380025138,.382315042,.384495633,.386586036,.388586474,.390500312,.39234759,.394126595,.395842835,.397503666,.399109896,.400655552,.402148468,.403587752,.404972164,.406303795,.40759293,.40883372,.410038327,.411207694,.412340848,.413440453,.414504775,.415544298,.416553742,.417529757,.418480807,.419405244,.42030249,.421179532,.422036613,.422871566,.423681959,.42446598,.425227731,.425971786,.426699149,.42740563,.428093861,.42876423,.42941989,.430059356,.430684805,.431298051,.431896114,.432481205,.433048629,.433602001,.434141454,.434670166,.435186941,.435690972],[.125,1.03e-8,.063700669,.122534762,.170445659,.207489855,.235507381,.258428942,.276720411,.291237073,.303425412,.313825724,.322963764,.331201622,.338640241,.345345918,.351393279,.356972988,.36213217,.366795459,.371122046,.375195941,.379011406,.382595409,.385950071,.389067439,.392010438,.394805989,.397453512,.399943209,.40231821,.404593222,.406757586,.40881786,.410781769,.412666295,.414478602,.416212813,.417900106,.419528419,.421096768,.422615542,.424087348,.425518109,.426898237,.428223284,.429510611,.430758241,.431974761,.433157315,.434296874,.435409569,.436489201,.437542819,.438560868,.439543601,.440502107,.441431047,.442331624,.44319333,.44403497,.444855063,.445654855,.446434973,.447194341,.447930128,.448647236,.449349984,.450033765,.450702436,.45135298,.451983504,.452589374,.453174409,.453746403,.454307287,.454858017,.455397201,.45592359,.456436597,.456938644,.45742989],[.1875,1.03e-8,.063700669,.124093446,.175372599,.216657713,.248593412,.273402428,.292930747,.308133763,.320952704,.331837317,.341407345,.349905573,.357500105,.364400751,.370523501,.376131731,.381290786,.386084894,.390496483,.394534251,.398315244,.401892909,.405282143,.408502804,.411481395,.414322199,.416983174,.419506452,.42192706,.42423672,.426455124,.428576797,.430576827,.432459739,.434272205,.435997387,.437662457,.439275689,.440839518,.442365197,.443842895,.445280662,.446677555,.448032408,.449347531,.450618874,.451839629,.453022496,.454166936,.455283319,.45636465,.457424506,.458445596,.459437936,.460405283,.461338468,.462247188,.463137684,.464006316,.464855555,.465682285,.466491332,.46726946,.468022169,.468754516,.469473631,.470182196,.470874674,.471545279,.472188582,.472813446,.473417444,.474007326,.474583626,.475143965,.475691888,.476216245,.476729288,.477229413,.477721417],[.25,1.03e-8,.063700669,.1247087,.178594558,.223159519,.258410971,.285084996,.306050893,.322575532,.335975378,.347486294,.357447995,.366281429,.374182418,.381229893,.387484373,.393148677,.398422769,.403265836,.407759084,.411939035,.415866423,.419489774,.422914575,.42614796,.429145607,.431980466,.434704765,.437292888,.439751768,.442108393,.444362638,.446553227,.448665271,.450681048,.452596138,.454412929,.456150568,.457791539,.459362312,.46088861,.462361609,.463798861,.465200026,.466557538,.467890682,.469181519,.470431973,.471634083,.472799587,.473941138,.475046129,.476121472,.477163751,.478177689,.479171243,.480135781,.481068507,.481976833,.482860002,.483722536,.484561606,.485382483,.486181527,.486958145,.487714383,.488450943,.489168532,.489863446,.490543906,.491209384,.491856523,.49248624,.49310328,.493705822,.494299761,.494882734,.495448877,.496000602,.496535051,.497054625],[.3125,1.03e-8,.063700669,.124793412,.180859802,.228070186,.265745517,.295018314,.317384129,.335297361,.349426912,.36151492,.371966234,.381149821,.389281746,.396590909,.403006133,.408844244,.414214074,.419165515,.423734209,.428022327,.432016545,.435778575,.439338208,.442643919,.445747722,.448686003,.451455715,.454071101,.456576275,.45899358,.46133667,.46359558,.46577577,.467856475,.469842214,.471752507,.473555857,.475274774,.476932723,.47854913,.48010934,.481610772,.483054813,.484451678,.485780639,.487072446,.48832448,.48954996,.490741956,.491890661,.49302131,.494132108,.495215077,.496262941,.497271204,.498249601,.499190289,.500109043,.501008812,.501884432,.502742673,.50358431,.504410332,.505215161,.505992267,.506753183,.50749835,.508229382,.50894656,.50964647,.510332062,.510999264,.511626791,.512240499,.512845547,.51344155,.514019327,.514582359,.515130209,.515665147],[.375,1.03e-8,.063700669,.124793412,.182351088,.231917733,.271857803,.303550638,.327627864,.346723249,.36178729,.374441614,.385480908,.395082708,.403495918,.411036624,.417686544,.423675552,.429266277,.434361016,.438997825,.443373171,.447528686,.451374779,.455038821,.458520117,.461725003,.464731149,.467641437,.470365225,.472940869,.475407748,.477772334,.480090855,.482337874,.484489032,.486526017,.488485548,.490388459,.49220589,.493924278,.495569973,.497161494,.498711845,.500227568,.501712114,.503136948,.504485474,.50580213,.507078084,.508296032,.509471577,.510607947,.511717256,.512802235,.513869462,.514914954,.515932798,.516904944,.517844219,.518761764,.519662533,.52054708,.52140955,.522250147,.523069317,.523867288,.524656731,.525426711,.526183711,.526923896,.527650892,.528355647,.529042198,.529713701,.530373872,.531022899,.531656558,.532267054,.532849698,.533421668,.533977013],[.4375,1.03e-8,.063700669,.124793412,.183281992,.234859858,.277094503,.311021637,.337023793,.357102894,.373424542,.386695107,.398296504,.408306953,.41721933,.424938458,.431894097,.438083409,.443809392,.449125587,.45391096,.458368874,.462555193,.466512933,.470309785,.473909273,.477314818,.480466698,.483415303,.486240126,.488920546,.49148099,.493917051,.49629225,.498606953,.500830778,.502952997,.504971913,.506892465,.50873604,.510520454,.512252557,.513928871,.515553637,.517101265,.518603592,.520061399,.521476108,.52286105,.524194996,.525476063,.526714027,.527906621,.529070461,.530191345,.531280412,.532342037,.533370474,.53436548,.535335565,.536295759,.537227162,.538143757,.539038279,.539909996,.540760069,.541580456,.542377957,.54315574,.543922816,.544674467,.545413204,.546142629,.54685706,.547557409,.548240991,.548914552,.549566792,.550190484,.550804071,.551405205,.551994419],[.5,1.03e-8,.063700669,.124793412,.183753724,.237271072,.281837261,.31766365,.345587664,.366892574,.384314699,.398468065,.410554854,.421200256,.430294003,.438543105,.445620938,.452154754,.458092909,.463566656,.468500674,.473157941,.477436315,.481423773,.485284442,.488987375,.492524642,.49585728,.49901023,.501926242,.504650052,.507272265,.509816464,.512279342,.514653187,.516923578,.519137254,.521294845,.523304575,.525171873,.526978019,.528736686,.530447167,.532103199,.533729457,.535313628,.536841275,.538314008,.539717955,.54107889,.542398551,.543682615,.54491703,.546123498,.547308098,.548473121,.549601331,.550670672,.551698779,.552700512,.553681754,.554639616,.55558614,.556513402,.557406595,.558282335,.559143111,.559979077,.560787028,.561566351,.562327431,.56307595,.563814968,.564539063,.565245268,.565936066,.566619024,.567293014,.567945503,.56858511,.569214339,.569832783],[.5625,1.03e-8,.063700669,.124793412,.183875772,.239065407,.285856756,.323377981,.353292263,.37631127,.39442202,.409803425,.422460455,.433571382,.443186845,.451654211,.459160941,.465887259,.472106071,.477799109,.482939717,.487664438,.492167739,.496257858,.500154858,.503909593,.507503034,.510948421,.514261272,.517368777,.520233553,.522935915,.525531457,.528060842,.530510283,.532879454,.53514237,.537333414,.539449842,.541485872,.543367189,.545151837,.546886555,.548590456,.550237755,.551835199,.553391218,.554903037,.556364318,.557786223,.559174591,.560509906,.561796498,.563044635,.564252416,.565434542,.566591763,.567709373,.568798799,.56986786,.570908539,.571905069,.572878664,.573835062,.574778108,.575688256,.576565071,.577417765,.57825819,.579083816,.57988914,.580681545,.581423841,.58214943,.582861033,.583561085,.584253831,.584937752,.58559901,.586248455,.586887103,.587507217],[.625,1.03e-8,.063700669,.124793412,.183876932,.240378791,.289198747,.3285533,.360208037,.384977792,.404149278,.420520169,.434019583,.44563505,.455684063,.464543679,.47234926,.479373318,.485860596,.491766676,.497153846,.502082588,.50662762,.510944283,.51495158,.518750224,.522398011,.525884191,.529272685,.532520237,.535550638,.538395437,.541102218,.543707544,.546224067,.548660149,.551006544,.553264142,.555421758,.55751509,.559523513,.56141805,.56323264,.564973869,.566663465,.568302773,.569878324,.571398353,.572879293,.574337817,.575755055,.577120158,.578454342,.579774266,.581066061,.58231216,.583504663,.584639124,.585746187,.586833118,.587893567,.588941892,.589979079,.591000175,.591981705,.592932257,.59384717,.594740156,.595620527,.596466259,.597287105,.598089448,.598882786,.599661413,.600424299,.601150745,.601849802,.602531801,.603193991,.603844645,.60448497,.605114344],[.6875,1.03e-8,.063700669,.124793412,.183876932,.241169716,.291985615,.333395431,.366482235,.393146171,.4135878,.430690418,.445150774,.457387779,.467933211,.477141872,.485319039,.492592106,.499337443,.505547905,.511119313,.516308066,.52101803,.525399618,.529600121,.533524613,.537208948,.540756893,.544188793,.54748565,.550647284,.553640177,.556478154,.559166559,.561774364,.56429428,.566724202,.569066038,.571288734,.573425532,.575463582,.577468465,.579391553,.581188625,.582944429,.584632026,.58627062,.587856872,.589359906,.59082161,.592254097,.593656364,.595019816,.596349949,.597657022,.598944021,.600200537,.601429309,.602601809,.603721032,.604811362,.605877579,.606930612,.607956039,.6089668,.609960928,.610940107,.611886756,.612803301,.613698533,.614564913,.615406526,.61622629,.617028598,.617802159,.618556135,.619300444,.620031229,.620728587,.621412243,.622071261,.622701931],[.75,1.03e-8,.063700669,.124793412,.183876932,.241652827,.294208058,.337684114,.372334768,.400637452,.42255594,.44033779,.455897679,.468780646,.479865709,.489462867,.49795253,.505643352,.51257646,.519018764,.524921559,.530274932,.535244474,.539762602,.544059698,.54813837,.551961195,.555540803,.559031496,.562383629,.565577906,.568691206,.571659352,.574499207,.577164516,.579760238,.582264283,.584685045,.587029299,.589236187,.591326325,.593372751,.595339689,.597273216,.59906881,.600814364,.602518555,.604150151,.605721139,.607249263,.608720014,.610135857,.611511193,.612872125,.6142144,.615516839,.616776003,.618007749,.619213693,.62040764,.62158265,.622696576,.623793376,.624849583,.625890649,.62690504,.627888432,.628850121,.629799612,.630738729,.631658992,.632548088,.633423841,.634275046,.635085528,.635871852,.636641755,.637399748,.638123027,.638827506,.639515265,.64018184],[.8125,1.03e-8,.063700669,.124793412,.183876932,.241831649,.295918684,.341410486,.377823056,.407281392,.431018617,.449855818,.466089564,.479813669,.491548921,.501576321,.510402756,.518361619,.525675615,.532304002,.538389252,.544079582,.549226945,.554006484,.558397577,.562578137,.566550858,.570274156,.57380114,.577192631,.580461515,.583598482,.586669397,.589624483,.592440893,.595109593,.597664775,.600163969,.602560724,.604862614,.607082672,.609171366,.61117783,.613146218,.61505199,.616876991,.618590446,.620258164,.621888079,.623476968,.624999958,.626472033,.627886861,.629279581,.630625563,.631951675,.633245519,.634496248,.635700368,.63689219,.638073961,.639243951,.640397348,.641501809,.642579849,.643632626,.644652136,.645640776,.646615795,.64755939,.648478959,.64938951,.6502924,.651182291,.652041799,.652875746,.653695591,.654475561,.655224417,.655961954,.656682393,.657385226],[.875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.29726649,.344750128,.382796186,.413431075,.438979239,.459006787,.475846594,.490494033,.502848893,.513488884,.522581472,.530861789,.538492794,.545404965,.55171303,.557570821,.563038318,.568010476,.572637825,.576920769,.58097164,.584835095,.588514038,.591942697,.595221864,.598433013,.601517472,.604546498,.607467959,.610250939,.612908302,.615401295,.617835446,.620192515,.622446888,.624637129,.626753369,.628748861,.63069439,.632587636,.634405061,.636095075,.637721746,.63932487,.640900842,.642444414,.64390379,.645316848,.646703129,.64805356,.649355959,.650614983,.651847133,.653062094,.654234591,.65539409,.656542301,.657678135,.658799998,.659869629,.660913374,.661937599,.662939525,.663918155,.664862081,.665794535,.666709386,.667595374,.668463773,.669318803,.67016579,.67099724,.671789609,.672551971,.673297943,.674016678],[.9375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.298160486,.347518792,.387259058,.419274064,.446236442,.467740386,.485351918,.500784261,.513870768,.525139003,.534619497,.54320143,.551095539,.558318535,.564812356,.570892204,.576505338,.581770543,.586582758,.591049755,.595212233,.599115376,.602892193,.606468456,.609783511,.612976076,.616099125,.619114768,.622052869,.624878528,.627588717,.630153692,.632579363,.634911891,.637191589,.639399404,.641532952,.643597784,.645624291,.647550252,.649406353,.651195778,.652852669,.654458175,.656002069,.657513433,.658997673,.660467641,.661878216,.663230166,.664551675,.665829619,.667078091,.668283517,.669474718,.670651431,.671787821,.672902786,.674004851,.675091805,.676162492,.677183038,.678173456,.679151021,.680120414,.681066979,.68199009,.682895672,.683779024,.684641397,.685486702,.686316869,.68712253,.687917018,.688700989,.689451758],[1,1.03e-8,.063700669,.124793412,.183876932,.241863995,.298794041,.349631844,.391320124,.424873583,.452914225,.476086519,.494641567,.51065059,.524432894,.536343482,.546424895,.555191711,.563339644,.570881852,.577605817,.583862883,.589706784,.595113414,.600202278,.604796744,.609049786,.613017116,.616742762,.620289081,.623691298,.626866085,.629929509,.632935263,.635852467,.638683305,.641405351,.644035333,.646521123,.648891166,.651146284,.653346347,.655502808,.657576836,.659565622,.661520134,.663425314,.665245704,.666969471,.66861935,.67015879,.671661219,.673108273,.674537366,.675953136,.677355635,.678689959,.679962469,.681198953,.682409314,.683603132,.684764718,.685889322,.68700087,.688082001,.689127335,.690159254,.691172619,.692175358,.693149533,.694085885,.695016221,.695940509,.696857325,.697751552,.698610936,.699461475,.700289462,.701092215,.701874089,.70264806,.703405033],[1.0625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299075718,.351495936,.395050154,.430222128,.459058349,.483759223,.503454059,.520178606,.534638969,.547187794,.557860811,.566943241,.575265535,.582877854,.589894773,.59620591,.602136102,.607724645,.612885797,.617697598,.622030824,.626018237,.629748496,.633212347,.63660204,.639902116,.642983213,.645949396,.648842704,.651668047,.654417212,.65705599,.659601026,.661991621,.664259016,.666404744,.668486417,.67054339,.672564789,.674495087,.676369174,.678218144,.679994902,.681707615,.6833108,.684803901,.686230937,.68764292,.689018879,.690382926,.691728814,.693050542,.694310346,.695514291,.696695296,.697856525,.698992049,.700111487,.70120163,.702263341,.703303779,.704300524,.705286953,.706264134,.707234285,.708184848,.709097328,.709999618,.710893668,.711775204,.7126506,.713511141,.714325019,.715129351,.715919407,.716693269],[1.125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299172865,.353038931,.398303588,.43509204,.464883501,.490819633,.511944257,.529372097,.544347327,.557227372,.568476059,.57791922,.586342306,.594115575,.601202412,.607755313,.613716498,.619375983,.624729271,.629625151,.634129208,.63811932,.641777408,.645238265,.648545949,.651799715,.654965612,.657952427,.660806647,.663578303,.666289134,.668918764,.671439522,.673874895,.676200014,.678408169,.680507537,.682536524,.684544162,.686534866,.688442449,.690275776,.692056086,.693803933,.695514015,.697131945,.698612424,.700017874,.701391758,.702748147,.704066122,.705366377,.706645635,.707910958,.709136493,.710319897,.711485914,.712627899,.713741258,.714838604,.715902172,.716936984,.717949003,.718926465,.719888936,.720846329,.721797782,.722729956,.72362196,.724493716,.725359361,.726219494,.727061032,.727893506,.728710899,.729496645],[1.1875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.354145824,.400942057,.439373006,.47044784,.49739913,.519718774,.537894139,.553261864,.566443162,.578029282,.587931291,.596500973,.604299735,.611464301,.618180321,.624270585,.629945556,.635383592,.640488867,.645056113,.649146695,.652836811,.656312389,.659646509,.662834434,.665968754,.669012214,.671905884,.674685894,.6773718,.680006085,.682582006,.685068524,.687438398,.6897364,.691903315,.693993278,.696006489,.69796818,.699898965,.701780451,.703570766,.705319436,.707033825,.708695278,.710318778,.711829759,.713259597,.714621125,.715951425,.717256188,.718525352,.719786542,.721039644,.722274814,.723481028,.724647197,.725790919,.726910837,.728001344,.729064766,.730103667,.731122444,.7321122,.733072176,.734012727,.734944986,.73587347,.736766725,.737625809,.738465021,.739285044,.740096182,.740900389,.741699573],[1.25,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.35492972,.403193764,.443268299,.475581511,.503133321,.526630795,.545656205,.561398546,.574777627,.586386185,.596864106,.605724452,.613737159,.621052817,.627766732,.634087358,.639850114,.645301827,.650524255,.655303144,.659435829,.663276481,.666768735,.670103339,.673300736,.67637355,.679412781,.68236758,.685198326,.687948905,.690564311,.693141266,.695638843,.69805796,.700363908,.702607131,.704762321,.706823347,.7087945,.710714729,.712614915,.714464059,.71627471,.718021164,.71971747,.72136937,.722987053,.724534299,.725975421,.727357175,.728672012,.729957281,.731219733,.732452727,.733680726,.734902273,.736089843,.737255521,.73838258,.739478028,.740559188,.741610175,.742631238,.743639004,.744627046,.745599872,.746530638,.747451468,.748349868,.749241788,.750102676,.750933987,.751737988,.752534251,.753323854],[1.3125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.355457069,.40521084,.44681181,.480401948,.508198532,.5327538,.552565688,.568589158,.582267493,.594056439,.604925004,.614392271,.622503336,.62990815,.63681282,.643235433,.649198962,.654776718,.659950134,.664754879,.669012616,.672904546,.676545516,.67989253,.683133404,.686246123,.689250347,.692220141,.695096115,.697874506,.700579941,.703167165,.705704006,.708147076,.710530484,.71279894,.715008418,.717146381,.719196575,.721146907,.723034892,.724881834,.726694995,.728466388,.730192928,.73185773,.733481517,.735059512,.736596182,.738027794,.739392833,.740714456,.741978037,.743218143,.744439954,.745642125,.746838109,.748021451,.749162892,.750293548,.7513957,.752460647,.753516343,.754555237,.755561854,.756557789,.757524931,.758488747,.759402279,.760297014,.76117343,.762030036,.762849744,.763661992,.764447395],[1.375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.355783001,.406795683,.449782037,.484555112,.512789527,.538134134,.558573199,.57519351,.589228601,.601285964,.612306173,.62234223,.630671977,.638324372,.64534495,.651883874,.658069641,.663699703,.668882154,.673662816,.67800695,.682061523,.685820271,.689342721,.692572208,.695727576,.698766249,.701693811,.704577378,.707387898,.71010577,.712764531,.715297951,.717757985,.720153181,.722479892,.724712893,.726879069,.728989639,.731001608,.732918193,.734744598,.736537552,.738307416,.74004102,.741757717,.743428076,.745049101,.746624156,.748152273,.749593406,.750976247,.752291225,.753593399,.754849426,.756073027,.757274422,.758453207,.75962053,.760768102,.761881866,.762986064,.764071213,.765123229,.766162705,.767197463,.768193123,.769171622,.770123801,.771057678,.771961228,.772823039,.773666619,.774497055,.775300755],[1.4375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.355940123,.408108078,.45202135,.487967118,.516958099,.542787374,.564036006,.581255974,.595553853,.607985582,.619128855,.629538598,.638368739,.646115029,.653403211,.660163726,.666424467,.672178689,.677336708,.682074942,.68643704,.6906131,.694489962,.698101652,.701490272,.704616906,.707700433,.710682115,.713554942,.716382371,.719144784,.721834838,.724446488,.726929984,.729337841,.73167399,.733945466,.736135448,.738272535,.740346394,.742344485,.744238996,.7460647,.747836078,.749586672,.75128642,.752977687,.754650688,.756271077,.757833629,.759345112,.760796699,.762163055,.763486679,.764764729,.766036535,.767272436,.768462166,.769621097,.770759215,.771883288,.772981166,.774052491,.775118093,.776173595,.777198974,.778203948,.779206268,.780183504,.781127413,.782057278,.78296201,.783843424,.784686218,.785508428],[1.5,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.40915719,.45391744,.490998585,.520802964,.546829798,.568930768,.586738367,.601354619,.614170758,.625572153,.636040421,.645367183,.653421578,.660939865,.667856127,.674203944,.680021104,.685196531,.689943028,.694330667,.698537956,.7025669,.706331042,.709811877,.713061474,.716122956,.719139798,.722063466,.724884028,.727645627,.730359774,.732988309,.735518281,.737957954,.74030049,.742598825,.744821143,.746968478,.749075268,.751101055,.753059631,.754939601,.756738103,.758490944,.760204162,.761875571,.763537314,.765190927,.766808995,.768368147,.769871634,.771333897,.772696932,.774026864,.775292119,.776538613,.7777752,.778979489,.780131349,.781248795,.782351132,.783447245,.784511256,.785569428,.786623114,.787671082,.788692218,.789683851,.790669936,.791646397,.79257406,.793490047,.794378962,.795249385],[1.5625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.409957241,.455640511,.493755166,.524451873,.55067909,.573487466,.591737672,.606749826,.619927529,.631596688,.642085776,.651816713,.660289356,.667882129,.67503087,.681477107,.687204965,.692531194,.697276535,.701724576,.705994944,.710048273,.713939272,.717557397,.720887273,.724047643,.727053696,.730000862,.732866226,.73562322,.73831722,.74096471,.743528247,.746011684,.748426625,.75070934,.75294132,.755133123,.757259195,.759345636,.761346317,.763296647,.765177005,.766971933,.768710635,.770410603,.772066804,.773713785,.775339081,.776945523,.778503884,.780016279,.781464428,.782847177,.784138664,.785398846,.786622175,.787835843,.78904145,.790211474,.791335141,.792423332,.793503037,.794572465,.795614884,.796653001,.797681457,.798702033,.799697485,.800666174,.801624629,.802577935,.803497684,.804399515],[1.625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.410520982,.457277264,.496244374,.527873781,.554339398,.577620687,.596399118,.611764895,.625220167,.637234963,.64777223,.657635639,.66651427,.674413087,.681609758,.688104327,.693875778,.699235957,.70401975,.708535265,.712852043,.717003704,.72095696,.724686777,.728153,.731396074,.734459126,.737393497,.740267932,.743083345,.745802293,.748436909,.751021372,.753552271,.755989837,.758363664,.760594441,.762799235,.764962428,.767064072,.769116175,.771109714,.773042635,.774904352,.776677713,.778390323,.780061766,.781688691,.783293438,.784886026,.786470747,.788041183,.789557492,.791014895,.792393303,.793660975,.794909117,.796120971,.797316959,.798494879,.79966539,.800807544,.801914466,.802978619,.804037532,.80507571,.806097735,.807112581,.808121818,.809126786,.810111329,.81107154,.812015928,.812953835],[1.6875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.410878956,.45868576,.498183918,.530984276,.557809884,.581206484,.600718896,.61650778,.630144331,.642410721,.65311001,.662907807,.672067939,.680287904,.687464513,.693993941,.699928346,.705246875,.710178473,.71480144,.719212984,.723400019,.727398308,.73115631,.734727659,.738056791,.741240445,.744217188,.747105272,.749920676,.752699657,.755364651,.757930785,.76047539,.762974169,.765360145,.767682364,.769898663,.772063637,.774187624,.776250154,.778272099,.780245963,.782168531,.784029242,.785793406,.787498009,.789168333,.790776157,.792360448,.793938388,.795508186,.797062488,.798587322,.800042633,.801403159,.802682859,.803905609,.805113163,.806283323,.807445763,.808604538,.809758708,.810884577,.811982282,.813029603,.814074667,.815085471,.81608831,.817087399,.818081646,.819072278,.820049117,.821003487],[1.75,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.411183047,.459815335,.499828517,.533791786,.561090435,.584430351,.604526432,.620613512,.634352311,.646904463,.657921237,.667737231,.676955035,.685303971,.692631641,.699202625,.705226988,.710670393,.715703108,.720394094,.724887663,.729143841,.733200459,.737032343,.740611344,.744048328,.747295418,.750432192,.753358026,.756212378,.758992747,.76173008,.764327885,.766848823,.769346194,.771795839,.774113982,.776410472,.778618583,.780764043,.782860175,.784917816,.786927312,.78889451,.790829218,.792677401,.794438781,.79613774,.797795797,.799386372,.800953706,.802515384,.804070012,.805619685,.807145186,.808604098,.809997538,.811307399,.812523207,.813726902,.814898511,.816055716,.817206299,.818351602,.819493812,.820606058,.821690764,.822722158,.823738964,.824727297,.825711392,.826692954,.827671367,.828646763],[1.8125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.411434787,.46082028,.501358334,.536140789,.563964133,.587246528,.607809252,.624126469,.638101855,.650752344,.662082266,.672026281,.681213342,.689639567,.697109638,.703767318,.709972524,.715610752,.720686926,.725551983,.73011102,.734437702,.738565757,.742482991,.746087892,.749564994,.752954665,.756158212,.759234773,.762097759,.764898753,.76762149,.770302141,.772856359,.775344161,.77779722,.780202689,.782504566,.784778845,.786966061,.789078222,.79115161,.793191373,.795180017,.797131992,.799056759,.800908575,.802672839,.804361215,.80600509,.807593959,.809145455,.810689418,.81222278,.813728866,.81521542,.816685547,.818090314,.819405298,.820620394,.821797845,.822965388,.824100335,.825231935,.826357548,.827479044,.828598319,.829683845,.83074113,.831757479,.832741392,.833708163,.83467182,.835632141],[1.875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.411646287,.461642406,.502798928,.538152461,.566502244,.589771012,.610556541,.627108418,.641408011,.654209558,.665828413,.67604478,.685023579,.693297245,.700970782,.707867866,.714100747,.719939636,.725213021,.730134868,.734810237,.73924383,.743400372,.747308589,.75100073,.754467076,.757860899,.761156978,.764287225,.767293006,.77013125,.772887395,.775566607,.778209843,.780713405,.783136657,.78551258,.78787924,.790144509,.792395203,.794568907,.796668364,.798712815,.800721418,.802688159,.804618036,.806507278,.808345103,.810073962,.811731625,.813347443,.814923192,.816443992,.817960402,.819450544,.820919003,.822381712,.823839077,.825259287,.826593384,.827827812,.828988464,.83014558,.831278065,.832394903,.833507663,.834618458,.835721927,.836819432,.837888201,.838926826,.839935714,.840898382,.841853832],[1.9375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.411832617,.46231304,.504197487,.539957224,.568455892,.591829602,.61268385,.629607365,.644174086,.657127664,.668874348,.679335203,.688244909,.696383405,.704209208,.711351157,.717723245,.723748737,.729208614,.73424015,.739035004,.743446171,.747597286,.751483503,.755213591,.758795611,.762184145,.765537702,.768757581,.771859851,.77480706,.777607778,.7803098,.782950655,.785464012,.787824083,.790163968,.79249603,.794817803,.797045073,.799248161,.801400191,.803478954,.805496461,.807482545,.809434136,.811352066,.813227675,.815058058,.816786918,.818446398,.820062592,.821644704,.823155207,.824642653,.826110355,.827572193,.829028968,.83047931,.831917867,.833284416,.834537634,.83570757,.836858623,.838003496,.839113687,.840222047,.841323395,.842421046,.843514605,.844599966,.845659598,.846688246,.847688969],[2,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.411991242,.462823666,.505552333,.541480438,.570095406,.593719245,.614513324,.631937318,.646563995,.659670789,.671557349,.68213567,.691112101,.699187874,.706988641,.71438066,.72100932,.727093425,.732774407,.737969937,.742805141,.747285532,.75143251,.755310416,.75910227,.762745247,.766213361,.76956193,.772830429,.775971411,.779008724,.781862099,.784558707,.787108242,.789557822,.791976517,.794314161,.796631955,.79894053,.801244574,.803469426,.805663545,.807807854,.809831326,.811817495,.81379832,.815714335,.817589644,.819447741,.821270492,.82301565,.824684169,.826305542,.827886501,.829386963,.830851239,.83230923,.833762162,.835208569,.836643791,.838069698,.839440436,.840707109,.841897926,.843040449,.844179316,.845297398,.84639476,.847488804,.84857895,.849664348,.850745084,.851816525,.85286374],[2.0625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412115067,.463282754,.506710756,.542805783,.571582509,.595488871,.616263729,.634121889,.648742617,.662011257,.673966618,.684571614,.693727309,.701767179,.709486166,.716933524,.72380752,.730073993,.735877039,.741277177,.746252571,.750748864,.7548812,.758837935,.762642754,.766337079,.769855616,.773211611,.776444088,.779620557,.782637789,.785561882,.788277353,.790800829,.793239907,.795672946,.798082007,.800411224,.802716895,.805015632,.807308175,.809532393,.811700406,.813783913,.815766004,.817699775,.819614394,.821506982,.823359086,.825199258,.827017007,.828765558,.830430927,.832017482,.833567727,.835053462,.836504391,.837949884,.839385513,.840795563,.842173331,.843547251,.844918754,.846228049,.847438904,.848583317,.849710695,.850832063,.851916603,.852997598,.854074586,.855149016,.856220327,.857288569],[2.125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412176961,.463675994,.507795008,.544124949,.573018533,.597194892,.617932993,.636099227,.650838868,.66423815,.676159291,.686795981,.695933409,.704015604,.711674439,.719087784,.726189823,.732728468,.738616061,.744244411,.749308225,.753796823,.757915958,.761894177,.765752266,.769463465,.773024232,.776403709,.779631075,.782740875,.785766724,.788710031,.791467198,.794014188,.796486059,.798908413,.801324066,.803715074,.806027003,.808318326,.810603702,.812884985,.815058557,.81712795,.819141936,.82107146,.82298324,.824890269,.82677099,.828608596,.830441559,.832260875,.833977001,.83560657,.837177417,.838700823,.840188125,.84163073,.843036677,.844418843,.845792814,.847162783,.848530006,.849894416,.851254401,.852485875,.853665673,.854782127,.855894853,.85698942,.858063394,.859135072,.86020376,.861270052],[2.1875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412229836,.463993244,.508720216,.545355252,.57434426,.598828981,.619540032,.637837507,.652762668,.666092276,.677969346,.688619802,.697696046,.705920926,.713632439,.720992759,.72822262,.734993926,.741069982,.746774092,.751981506,.756474317,.760610494,.764625061,.768527147,.772231707,.775801141,.779216392,.782491556,.785519666,.788534031,.791471481,.794243784,.796854047,.799382817,.801846079,.804257868,.806662043,.809038957,.811324522,.813604111,.815852309,.81805086,.820128036,.822141217,.824147448,.826077104,.827983851,.829875221,.831750242,.833582237,.835370446,.837143206,.838815856,.84042681,.841995544,.843509471,.844947942,.846351502,.84772721,.849096661,.850462177,.851825199,.85318574,.854543376,.855898373,.857199343,.858385595,.859522874,.860632068,.861738244,.862809805,.863876802,.864941513],[2.25,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412282711,.464258161,.509553257,.54653923,.57563824,.600340175,.621067961,.639476632,.654564344,.667763777,.679671957,.690211439,.699377168,.707742641,.715455031,.722812846,.730032445,.736982748,.743310967,.749068981,.754430951,.759006652,.763196186,.767244138,.771190089,.774922651,.778459173,.781918763,.785158342,.78820884,.791159549,.794043039,.796866881,.799520676,.802113203,.804633377,.807091175,.809495279,.811889718,.814210536,.816467491,.81868545,.820838179,.822952793,.825012004,.82702181,.829026239,.830959213,.832845304,.834719476,.836541758,.838318729,.840079215,.841806441,.843456344,.845030328,.846563573,.848040988,.849473923,.850875359,.852241351,.853604579,.854965094,.856322498,.857677298,.859029767,.860380409,.861688249,.862886726,.864052233,.86515583,.866235906,.867297791,.868357518],[2.3125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412335586,.464469661,.510320351,.547687977,.576849381,.601746829,.622548461,.641097771,.656196043,.669301414,.681220169,.691672976,.700978292,.709344731,.71716875,.724575811,.731792681,.738797732,.745369014,.751194367,.75662811,.761441599,.765650536,.769735386,.773711505,.77744945,.78099486,.784407844,.787638929,.790700362,.793627983,.796487504,.799309328,.802014554,.804655827,.80723571,.809744998,.812195148,.814588226,.816903318,.81915274,.821315004,.823453408,.825559456,.827621426,.829664969,.831663104,.833656553,.835573954,.837395571,.839210793,.841022421,.842775165,.844495485,.846168084,.84776082,.849294114,.850812792,.852301473,.853724344,.855123876,.856490584,.857846761,.85920068,.860551249,.861899303,.863245901,.86457039,.865804365,.867026939,.868187941,.869294755,.870348632,.871399258],[2.375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412388461,.4646369,.510915326,.548726388,.578012631,.60307067,.623996701,.642635258,.657719109,.670678874,.682507257,.692994851,.702390213,.710825231,.718783279,.726223518,.733484681,.740489732,.747162596,.753151616,.758696133,.763603041,.767955261,.772034558,.776010411,.779741525,.783281582,.786632347,.789875788,.792945633,.795886435,.798745056,.801564113,.804273362,.806940655,.809563437,.812120475,.814614622,.817031718,.819303413,.821521114,.823715937,.825838447,.827937536,.829993116,.832036588,.834074998,.836053261,.837979426,.8398538,.841672026,.843479553,.845251877,.846954925,.848587332,.850216468,.851777468,.853299062,.854808895,.856272266,.8576789,.85907206,.860447105,.861797411,.863145427,.864491266,.865834337,.867144396,.868374661,.86960368,.870831159,.871997745,.873112211,.87417625],[2.4375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412441336,.464795525,.511496951,.549655922,.579175881,.604291244,.625424326,.644104118,.659074233,.672037989,.683631481,.694304572,.70373889,.712296177,.720310405,.727862643,.735176681,.742153599,.748788367,.754962387,.760664544,.765650789,.770166618,.774229287,.778187627,.781881054,.785436505,.788786445,.791990788,.795060633,.798051645,.800965806,.803784863,.806494112,.809161405,.811788656,.814399529,.816934626,.819365584,.821634542,.823850373,.826029977,.828169514,.830269849,.832326611,.834370643,.83639528,.838367957,.840286962,.842194527,.844068663,.845874765,.847642558,.849326384,.850976564,.852607665,.85419826,.85572269,.857197423,.858670024,.860138455,.861568655,.862960236,.864347884,.865696432,.867043016,.868388208,.869690214,.870920531,.872149548,.873376609,.874582835,.875758778,.876856195],[2.5,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.46495415,.512028791,.550536821,.580298224,.605507244,.626791702,.64549995,.660396108,.673348547,.684741856,.695506177,.705009196,.713707529,.72173803,.7294791,.736822248,.743758113,.750374617,.756671435,.762551126,.767653976,.772225108,.776397162,.780302627,.783984225,.787506188,.790870038,.794064193,.797129736,.800158534,.803134055,.805994423,.808702289,.811368207,.813994091,.816609736,.819148002,.821568798,.823892962,.826122755,.82828283,.830437529,.832572095,.834621413,.836621238,.838586828,.840544126,.842496965,.844407127,.84630715,.84818685,.84989435,.851573717,.853248991,.854897435,.856484916,.858000272,.859471329,.86094086,.862408121,.863871928,.865325977,.866714565,.868098683,.869454568,.870796873,.872086756,.873315686,.874542165,.875766743,.876970487,.878156313,.879312551],[2.5625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.465112775,.512499475,.551332723,.581355724,.60659849,.628017604,.646790633,.661693311,.674472068,.685852231,.696637187,.706225321,.715042236,.723165655,.731059756,.738416715,.745344363,.751960867,.758284493,.764331594,.769555534,.774153611,.77844309,.782324813,.785962992,.789448742,.792827421,.796050232,.799114338,.802172748,.805173065,.808096589,.810829405,.813491043,.816112226,.818669847,.821173903,.823634091,.825918403,.82817661,.830375648,.832502483,.834621096,.836644944,.838608829,.840568067,.84252365,.844474984,.846423502,.848335087,.850197765,.851967096,.853645896,.855321227,.856994186,.858605487,.860112746,.861583847,.863052554,.864518447,.865981688,.867442763,.868900344,.87031103,.871691751,.873041668,.874301228,.875525106,.876747803,.87796893,.87916782,.880348283,.881499158],[2.625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.4652714,.512922475,.552125848,.582413224,.607637395,.629226738,.648006758,.662962311,.675529568,.686962606,.697658884,.707410307,.716311236,.72459328,.732495807,.739940128,.746882028,.753547117,.759870743,.766022532,.771275267,.775927237,.780206721,.784195566,.787743002,.791225646,.794586135,.797859731,.800974621,.804031148,.807083593,.810027166,.812828518,.815496391,.818051154,.820551178,.823046107,.825484046,.827769941,.830004018,.832231895,.834362956,.836449284,.838450783,.840416175,.842377065,.844333766,.846285443,.848234346,.85017868,.852003993,.853778535,.855551233,.857235975,.858907991,.860540192,.862069799,.863538965,.865006858,.866471463,.867930982,.869388823,.870844671,.872297724,.873734402,.875019476,.876275414,.877495566,.878714175,.879920556,.881100751,.882277667,.883423763],[2.6875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.465430025,.513345475,.552894653,.583443073,.608589145,.630360908,.649190005,.664209826,.676557796,.68803157,.698663509,.708487252,.71753014,.725978051,.733867221,.741420628,.748415403,.755133367,.761456993,.7676108,.772888483,.777600143,.781898721,.785922021,.789487877,.792931851,.796319619,.799594393,.802778278,.805853815,.808898509,.811885873,.814711659,.817397988,.819901779,.822401803,.824844039,.827226453,.829521051,.831772522,.833996306,.836125962,.838205816,.840201049,.842162255,.844120206,.846074405,.84802301,.849968364,.851855825,.853697821,.855464914,.857230384,.858993947,.860682325,.862309425,.863847615,.865346119,.866809026,.868270354,.869729242,.871185709,.872639975,.874092819,.875460904,.8767952,.87806772,.879285916,.880474651,.881654299,.882832426,.884008158,.885154111],[2.75,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.46558865,.513756245,.553634903,.584400833,.609540895,.631471283,.650340906,.665277204,.677562421,.68908907,.699668134,.709525761,.718746265,.727248297,.735189096,.742826865,.749941517,.756668858,.763043243,.769111259,.774443819,.779239268,.783538883,.787454176,.791170696,.794557985,.79793351,.801254019,.804456188,.807608362,.810648582,.813652909,.816456005,.819126693,.82166643,.824099625,.826498447,.828846041,.831139526,.833428441,.835623708,.83774251,.839858911,.84186792,.843828069,.845785185,.847739754,.849689278,.851602001,.853457679,.855245438,.857008636,.858769731,.860529376,.862251336,.86389345,.865423772,.866931492,.868428689,.869885852,.871341235,.872795587,.874245734,.875621046,.876953333,.878284976,.879600959,.880830639,.882009325,.883186791,.884363151,.885536749,.886681204],[2.8125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.465747275,.51412637,.554343731,.585208229,.610492645,.632501458,.651357534,.666281829,.678566086,.690093862,.700672759,.710503495,.719903571,.728429042,.736500671,.74414874,.751422017,.758202233,.764602063,.770591759,.775886908,.780835575,.785018207,.788893947,.792651372,.796144235,.79951976,.802840269,.806042438,.809240911,.812340582,.815289829,.818053647,.820712943,.823276569,.825730277,.828084697,.830432291,.832725427,.834966735,.837178231,.839301665,.84141462,.843452793,.845428701,.847382092,.849332937,.851271894,.853130311,.85494373,.856728561,.858491792,.860253561,.862013374,.863735334,.865380707,.866907685,.868414615,.869920067,.871420952,.872877202,.874315793,.875714948,.877049447,.878382624,.879688799,.880977457,.882231039,.883482087,.884669664,.885846275,.887020246,.888165202],[2.875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.4659059,.51449048,.554978231,.586001354,.611444395,.633436045,.652325359,.667286454,.679517836,.691098487,.701668933,.711455245,.720926218,.729539417,.737748772,.745470615,.752869653,.759735608,.766082563,.772036167,.777314533,.782276648,.786372,.790260222,.794011593,.797675948,.801083429,.804403564,.807605359,.810785461,.813900688,.816798754,.819562197,.822229736,.824787389,.827266045,.829644628,.831986249,.834231735,.836451284,.838630917,.840806268,.842920251,.844957232,.846963984,.848939394,.850890005,.85276497,.854581754,.856396558,.858180133,.85994299,.861704385,.86346433,.865186285,.866831285,.86835448,.869862531,.871368615,.872872772,.874346632,.875762935,.877106537,.878434497,.879731394,.881027651,.882316425,.883569633,.884822,.886073632,.887289745,.88844361,.889571522],[2.9375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.466064525,.51480773,.555552647,.586794479,.612396145,.634262641,.653214719,.668251074,.680442118,.692081194,.702620683,.712403454,.721883006,.730633673,.738898071,.746778221,.754212267,.761169387,.767543765,.773446067,.778700439,.783515262,.787620336,.791516703,.795316638,.799063261,.802595456,.805893042,.809072295,.812211501,.815273264,.818260645,.820978125,.823649085,.826197932,.828688725,.831137316,.833446616,.835675755,.837858268,.840037646,.842212743,.844379347,.846416075,.848422572,.850426044,.852352417,.854170796,.855986349,.857800477,.859583569,.861345593,.863105782,.864864583,.866585712,.86823019,.869748813,.871255829,.872760007,.87422488,.875687119,.877102752,.87841986,.879717029,.881013113,.882308558,.883597147,.884850547,.886102459,.887351486,.888565773,.88976591,.890902999],[3,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.46622315,.51512498,.556081397,.587587604,.613271849,.635051773,.654060719,.669160577,.681340993,.693032944,.703572433,.713302329,.722763849,.731671125,.740008446,.748045057,.755481267,.762524055,.768918515,.774757941,.780022314,.784678512,.788755049,.792732828,.796554379,.800276756,.803934438,.807295888,.810442053,.813504769,.816564631,.819542746,.822319258,.824948863,.827514929,.830011662,.832445804,.834822278,.83700808,.839189369,.841367523,.843541411,.845713333,.8477953,.849800664,.851777498,.853647971,.855493291,.857309099,.859123226,.860906693,.862669552,.86443028,.866189081,.86791021,.869554793,.871070688,.87256275,.874029007,.87549435,.876939625,.8783215,.879635985,.880933154,.882229238,.883524683,.884813272,.886066825,.887300456,.888516484,.889730771,.890942861,.892144899],[3.0625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.466381775,.51544223,.556610147,.588290849,.614067463,.635792023,.654906719,.670006577,.682239868,.693983457,.704504842,.714167097,.723609849,.73267575,.741118821,.749196949,.756705925,.763790225,.770212596,.776026941,.781231061,.78580093,.789844989,.793854226,.797717629,.801440006,.805158269,.808632887,.811711053,.814773769,.817785105,.820758871,.823586678,.826217863,.82876821,.831280514,.833714804,.836095856,.838329955,.840511244,.842689398,.844863286,.847035208,.849130731,.851159801,.853046498,.854916971,.856784802,.858631429,.860445976,.862229442,.863992539,.865754091,.867513579,.869234708,.870879292,.872364634,.87383175,.875298007,.87676335,.878155763,.879539064,.88085211,.882149279,.883445363,.884740808,.8860286,.887246488,.888463706,.889680212,.890895534,.89210786,.893309898],[3.125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.4665404,.51575948,.557138897,.588918307,.614807713,.636532273,.655649671,.670852577,.683138743,.694849721,.705403717,.715013097,.724455849,.733652559,.742215144,.750307324,.75792205,.764980461,.771427391,.77728038,.782299221,.786860403,.790902489,.794930393,.798873097,.802603256,.806306473,.809812571,.812980053,.815992893,.81900123,.821957023,.824758729,.827469077,.829984335,.832496639,.834983804,.837364856,.839618103,.841833119,.844011273,.846185161,.848357083,.850435404,.852410352,.854315498,.856185971,.858053802,.859920039,.861768213,.863552191,.865315289,.867076941,.868837204,.870558104,.872162892,.873633634,.87510075,.876567007,.877987627,.879371888,.880755189,.882068235,.883365404,.884661488,.885938928,.88719185,.888409738,.889626956,.890843462,.892058865,.893272071,.894469082],[3.1875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.466699025,.51607673,.557629955,.589499932,.615524419,.637272523,.656368233,.671698577,.684037618,.695610154,.706267434,.715859097,.725301849,.734578914,.743241274,.751364935,.759090759,.766116682,.77258154,.778402147,.783303846,.787911615,.791959989,.795987893,.799983472,.803753178,.807363973,.810910671,.814166799,.817209018,.8202106,.823120273,.825903089,.828612463,.83120046,.833712764,.836220686,.838633856,.840887103,.843135834,.845333148,.847507036,.849660203,.851690704,.853626477,.855559318,.857454971,.859322802,.861189039,.863053922,.864874336,.866638038,.86839969,.87014602,.871828679,.873433406,.874902634,.87636975,.877818175,.879203752,.880588013,.881971314,.88328436,.884581529,.885842399,.887102178,.8883551,.889572988,.890790206,.892006712,.893217202,.894404586,.895527492],[3.25,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.46685765,.51629746,.558052955,.590081557,.616211794,.638012773,.657030463,.672501203,.684936493,.696350404,.707060559,.716705097,.726147849,.735424914,.744237684,.752409042,.760141398,.767227057,.773663304,.779386348,.784308471,.78891624,.793017489,.797045393,.801040102,.804804578,.808420904,.81191587,.815258742,.818425143,.82137385,.82426633,.827013464,.829722838,.832392038,.834928889,.837436811,.839891636,.842156103,.844404834,.846650408,.848808614,.850929203,.852906829,.854842602,.856775443,.858705861,.860591802,.862458039,.864322922,.866157143,.867960089,.869695586,.871415894,.873098553,.874702406,.876171634,.87763875,.8790343,.880419877,.881804138,.883187439,.884483775,.885745252,.887005649,.888265428,.88951835,.890736238,.89194311,.893135891,.894327577,.895462086,.896584992],[3.3125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467016275,.516456085,.558475955,.590620726,.616877745,.63872044,.657650664,.673294328,.685784821,.697088895,.707804983,.717551097,.726993849,.736270914,.74516277,.753413667,.7611288,.768337432,.774706474,.780290567,.785298114,.789920865,.794066873,.79808853,.802015074,.805807547,.809425529,.812920495,.81630254,.819532405,.822521871,.825376705,.828123839,.830833213,.833503834,.836145014,.838652936,.841107761,.843425103,.845673834,.84789758,.850077614,.852157021,.854122954,.856058727,.857991568,.859921986,.861849758,.863727039,.865591922,.867426143,.869200248,.870964669,.872685759,.874368428,.875971406,.877440634,.878863954,.880250425,.881636002,.883020263,.884369696,.885647025,.886908502,.888168899,.889428678,.890665874,.891860008,.893053485,.894246266,.895386656,.896519586,.897618834],[3.375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467130116,.51661471,.558898955,.591096601,.617494119,.639395546,.658232289,.674053693,.686577946,.69777627,.708523894,.718397097,.727839849,.737100462,.746027378,.754336298,.76208055,.769357452,.775711099,.781189442,.786249864,.79092549,.795056744,.799076416,.802964163,.806713737,.810404885,.81392512,.81727003,.820533575,.823615682,.82648708,.829234214,.831943588,.834614209,.837281985,.839869061,.842323886,.844650931,.846919479,.849113705,.851287899,.853373146,.855339079,.857274852,.859207693,.861138111,.863065883,.864992066,.866848348,.868642515,.870416373,.872188798,.873954759,.875638199,.877240406,.878692789,.880080079,.88146655,.88283692,.884185402,.885532946,.886810275,.888071752,.889311094,.890547093,.891776249,.892970383,.89416386,.895304279,.896399222,.897489909,.898570584],[3.4375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467235866,.516773335,.559278623,.591572476,.618075744,.640030046,.658813914,.674692885,.687371071,.698463645,.709211269,.719243097,.728685849,.737893587,.746801849,.755231082,.763024253,.770268761,.776648825,.782088317,.78716679,.791911342,.796004807,.800016948,.803863038,.807612612,.811356635,.81490442,.81822178,.821485325,.824637847,.827597455,.830344589,.833053963,.835724584,.83839236,.84105584,.843540011,.845842184,.848113335,.85032983,.852451149,.854560767,.856555204,.858490977,.860423818,.862354236,.864282008,.866182877,.868064473,.86985864,.871632498,.873404923,.875175986,.876907199,.878509406,.879908914,.881296204,.882650498,.88400017,.885348652,.886693664,.887947176,.889184859,.890421469,.891657468,.892886624,.894057023,.895164537,.896258248,.897350972,.898441659,.899522334],[3.5,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467341616,.51693196,.559648748,.592048351,.618657369,.640619953,.659395539,.675327385,.688097459,.69915102,.709898644,.720036538,.729507215,.738686712,.747542099,.756051593,.763921966,.771167636,.777546022,.782987192,.788065665,.792810217,.796899139,.800862948,.804761913,.808511487,.812244547,.815822156,.81917353,.822437075,.825589597,.828672108,.831454964,.834164338,.836834959,.839502735,.842166215,.844729761,.847005434,.849276585,.851501475,.853614399,.855724017,.857757257,.859707102,.861639943,.863570361,.865460128,.867346127,.869230801,.871074765,.872848623,.874621048,.876392111,.878125525,.879734949,.881111961,.882463263,.883813748,.885155671,.88648032,.887804039,.889057551,.890295234,.891520081,.892723357,.893909953,.895021956,.896116287,.897209998,.898302722,.899393409,.900474084],[3.5625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467447366,.517090585,.560017652,.592521651,.619238994,.641177573,.659977164,.675909716,.688731959,.699838395,.710586019,.720829663,.73030034,.73942968,.748282349,.756825548,.764726935,.772066511,.778358101,.783886067,.788932654,.793638169,.797745139,.801708948,.805660788,.809410362,.813090547,.816716975,.82012528,.823388825,.826541347,.829659363,.832563333,.835274713,.837945334,.84061311,.843248734,.845807727,.848168684,.850422273,.85261185,.854777649,.856887267,.858920507,.860923227,.862845688,.864735833,.866623378,.868509377,.870394051,.872248143,.874064748,.875837173,.877608236,.879325891,.880868267,.882271608,.883613597,.88494022,.886266046,.887590695,.888909234,.890142921,.891340588,.892534575,.893727982,.894878798,.895973706,.897068037,.898161748,.899254472,.900345159,.901425834],[3.625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467546207,.51724921,.560334902,.592944651,.619790949,.64167175,.660506885,.676426517,.689331363,.70052577,.711273394,.721546207,.731064814,.74016993,.749022599,.757521379,.76552006,.772939161,.779151226,.784784942,.789742728,.794378419,.798545839,.802554948,.806511033,.81025661,.813936547,.817562975,.821034264,.824340575,.827493097,.830611113,.833620508,.836385088,.839055709,.841694162,.844306234,.846865227,.849296507,.851532648,.853722225,.855907548,.858050517,.860083757,.862063872,.864008938,.865899083,.867786628,.869672627,.871557301,.873411393,.875245159,.877053298,.878813633,.880442367,.881961699,.883340059,.884717468,.886050595,.887358072,.888658424,.889939394,.891150198,.892345213,.8935392,.894700774,.895830548,.896925456,.898019787,.899113498,.900206222,.901296909,.902377584],[3.6875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467599082,.517407835,.560652152,.593367651,.620289484,.642147625,.660973448,.676902392,.689864214,.701213145,.711960769,.722233582,.731805064,.74091018,.749732721,.758208754,.76628874,.773690739,.779944351,.785633012,.790482978,.795118669,.799329553,.803400948,.807317343,.81110261,.814782547,.818408975,.821923471,.825292325,.828444847,.831562863,.834573184,.837474299,.840135315,.842751662,.845363734,.847922727,.850309172,.852643023,.8548326,.857017923,.859201296,.861211517,.863174247,.865134071,.867062333,.868949878,.870835877,.872720551,.874574643,.876408409,.878213203,.879918749,.881508671,.883019199,.88438603,.885743515,.887088814,.888381202,.889663049,.890944019,.892154823,.893349838,.894515988,.895652524,.896782298,.897877206,.898971537,.900065248,.901157972,.902248659,.903329334],[3.75,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467651957,.51756646,.560955885,.593790651,.620765359,.642584914,.661396448,.677378267,.690392964,.701894922,.712608984,.722920957,.732545314,.74165043,.750420096,.758870068,.76702899,.774378114,.780729957,.786282536,.791223228,.795858919,.800069803,.804186375,.808110468,.81194861,.815628547,.819254975,.822769471,.826192562,.829396597,.832514613,.835524934,.838467522,.841192815,.843809162,.846421234,.848961052,.851313797,.853662075,.855942975,.858120596,.860263634,.862321892,.864284622,.866244446,.868201852,.870113128,.871999127,.873883801,.875729702,.877513165,.879267265,.880950031,.882541642,.884032225,.88537237,.88670685,.888040564,.889373542,.890667674,.891948644,.893159448,.894330676,.895467738,.896604274,.897734048,.898828956,.899923287,.901016998,.902109722,.903200409,.904281084],[3.8125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467704832,.517725085,.56122026,.594213651,.621241234,.643007914,.661748084,.677841821,.690921714,.702529422,.713243484,.723608332,.733270566,.742350429,.751107471,.759504568,.767686559,.775058793,.781417332,.786917036,.791961618,.796599169,.800796447,.804926625,.808903593,.812789561,.816474547,.820100975,.823615471,.827076153,.830340961,.833466363,.836443038,.839366397,.842210008,.844866662,.847478734,.849965677,.852318422,.8546667,.856991636,.859178096,.861321134,.863387789,.865394997,.867354821,.869312227,.871266987,.873162377,.875010619,.876800788,.878553184,.880234431,.881899781,.883506555,.884988728,.88632412,.8876586,.888992314,.890325292,.891657125,.892953269,.894144372,.895282426,.896419488,.897556024,.898685798,.899780706,.900875037,.901968748,.903061472,.904152159,.905232834],[3.875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467757707,.51788371,.561484635,.594636651,.621680167,.643405183,.662065334,.678264821,.691416283,.703117712,.713877984,.724295707,.733957941,.743037804,.751794846,.760139068,.76831421,.775631384,.782080807,.787551536,.792635324,.797339317,.801483822,.805617324,.809675726,.813582686,.817320547,.820946975,.824461471,.827922153,.831239836,.834383039,.837341913,.840265272,.843149902,.8459176,.848489902,.850970302,.853323047,.855638555,.857943386,.860235596,.862378634,.864445289,.866481735,.868465196,.870422602,.872363204,.874237079,.876037755,.877807924,.879508954,.881154397,.882798656,.88440543,.885932842,.88727587,.88861035,.889944064,.891277042,.892608875,.893924242,.895096122,.896234176,.897371238,.898507774,.899637548,.900732456,.901826787,.902920498,.904013222,.905103909,.906184584],[3.9375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467810582,.518042335,.56174901,.595059651,.622103167,.643731065,.662382584,.678687821,.691848621,.703678965,.714512484,.724983082,.734595047,.743725179,.752471504,.760766645,.76881814,.776160134,.782705194,.788186036,.793269824,.798026692,.802171197,.806304699,.810415976,.814375811,.818166547,.821792975,.825307471,.828768153,.832081307,.835265777,.838240788,.841164147,.844048777,.846900472,.849494527,.851970069,.854282397,.856590305,.858895136,.861195708,.863436134,.865502789,.867539235,.86956397,.871454153,.873324612,.875193772,.877027068,.878761487,.880407829,.882053272,.883697531,.885304305,.886831717,.888226982,.8895621,.890895814,.892228792,.893549176,.894823117,.896026922,.897185926,.898322988,.899459524,.900589298,.901684206,.902778537,.903872248,.904964972,.906055659,.907136334],[4,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467863457,.51820096,.562013385,.595482651,.622526167,.64399544,.662699834,.679104467,.692271621,.704207715,.715146984,.725655591,.735229547,.744412554,.753099224,.761341274,.76924114,.776661915,.783286819,.788820536,.793904324,.798714067,.802858572,.806992074,.8111195,.815160848,.819012547,.822638975,.826153471,.829576302,.832874432,.836111777,.839139663,.842063022,.844947652,.847755957,.850456177,.852921819,.855234147,.857542055,.859846886,.862147458,.864446076,.866541859,.868528162,.870477208,.872405903,.874254515,.876100471,.877945214,.879660362,.881306704,.882952147,.884596406,.88620318,.887730592,.889125857,.89051385,.891847564,.893173273,.894448051,.895721992,.896925797,.898113837,.899274738,.900411274,.901541048,.902635956,.903730287,.904823998,.905910714,.906983087,.908045463],[4.0625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467916332,.518359585,.56227776,.595905651,.622939044,.644259815,.663010868,.679474592,.692694621,.704736465,.715741719,.726237216,.735864047,.745055355,.753680849,.761870024,.76966414,.77713779,.783838075,.78942012,.794538824,.799371498,.803545947,.807679449,.811806875,.815901098,.819844191,.823484975,.82696029,.830369427,.833667557,.836931176,.840013649,.842961897,.845798924,.848572998,.851330623,.853873569,.856185897,.858493805,.860790861,.863071089,.865321954,.867472086,.869424625,.871349129,.873271321,.87515339,.876999346,.878807107,.880539956,.882205579,.883851022,.885495281,.887102055,.888629467,.890024732,.891419084,.892796286,.894072148,.895346926,.896620867,.897824672,.899012712,.900199761,.901363024,.902492798,.903583885,.904659848,.905735195,.906809589,.907881962,.90890916],[4.125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.467969207,.51851821,.562542135,.59630654,.623309169,.64452419,.663275243,.679830175,.693117621,.705265215,.716323344,.726818841,.7364928,.74563698,.754218691,.762398774,.77008714,.77757662,.78431395,.790001745,.795173324,.800005998,.804233322,.808366824,.81249425,.816617447,.820637316,.8242905,.827753415,.831162552,.834460682,.837724301,.840859649,.84383909,.846604621,.849366123,.852123748,.854780531,.85711778,.859405286,.861665491,.863917683,.866127054,.868239793,.870270625,.872195129,.874117321,.876038215,.87788978,.879653107,.881385956,.883099511,.884749897,.886394156,.88800093,.889528342,.890923607,.892317959,.893655643,.894971023,.896245801,.897519742,.898723547,.899911587,.901097102,.902265226,.903406228,.90448276,.905558723,.90663407,.907708464,.908747589,.90975516],[4.1875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468022082,.518676835,.56280651,.596676665,.623679294,.644788565,.663505607,.680137444,.693540621,.705782483,.716904969,.727395439,.737074425,.746170773,.754747441,.762885877,.77051014,.77799962,.784771544,.79058337,.795807824,.800640498,.804920697,.809054199,.813181625,.817304822,.821341043,.825083625,.82854654,.831955677,.835253807,.838517426,.841663421,.844599854,.847397746,.850147766,.852884967,.855569895,.857985471,.860255489,.862487364,.864678265,.866867304,.868980043,.87106293,.873041129,.874963321,.876884215,.87873578,.880499107,.882231956,.883945511,.885648772,.887293031,.888899805,.890427217,.891822482,.893165204,.894501643,.895837378,.897144676,.898418617,.899604852,.900774467,.901943102,.903111226,.904272612,.905381635,.906457598,.907532945,.908576064,.909593589,.91060116],[4.25,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468074957,.51883546,.563070885,.59704679,.624049419,.64505294,.663717107,.680401819,.693963621,.706258358,.717482391,.727924189,.73765605,.746659253,.755267502,.76332616,.77093314,.77842262,.785194544,.791143081,.796396832,.801274998,.805561873,.809741574,.813869,.817949764,.822017343,.82587675,.829339665,.832748802,.836046932,.839289428,.842352097,.845316651,.848146961,.850888016,.853609187,.856265567,.858761827,.861032997,.863227614,.865418515,.867607554,.869720293,.87180318,.873877226,.875809321,.877730215,.87958178,.881345107,.883077956,.884791511,.886504167,.888191906,.88979868,.891326092,.892674028,.894011204,.895347643,.896668223,.897984565,.899265477,.900450852,.901620467,.902789102,.903957226,.905118612,.906245141,.907356473,.908402572,.909422064,.910439589,.91144716],[4.3125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468127832,.518994085,.56333526,.597416915,.624419544,.645317315,.663928607,.680666194,.694383225,.706731249,.718011141,.728452939,.738237675,.747135128,.755743377,.76374916,.77135614,.77884562,.785617544,.791671831,.796978457,.801909498,.806196373,.810428949,.814513192,.818584264,.822651843,.82663446,.83013279,.833541927,.83679294,.839971742,.842986597,.845966004,.848833239,.851588029,.854279877,.856911472,.85941555,.861743178,.863967864,.866158765,.868347804,.870460543,.87254343,.874623502,.876655321,.878576215,.88042778,.882191107,.883923956,.885637511,.887350167,.889061637,.890697555,.892181968,.893507315,.89482605,.896144049,.897461348,.89877769,.900093262,.901296852,.902466467,.903635102,.904803226,.905964612,.907091141,.908190363,.909248572,.910268064,.911285589,.91229316],[4.375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468180707,.51915271,.563599635,.59778704,.624757742,.64558169,.664140107,.680930569,.694753255,.707154249,.718539891,.728981689,.738787593,.747611003,.756219252,.76417216,.77177914,.77926862,.786040544,.792190981,.797560082,.802540748,.806830873,.811063089,.815147692,.819218764,.823286343,.827315761,.830897789,.834244519,.837480315,.840606242,.843614109,.846564761,.849447892,.852230676,.854914377,.857545972,.86005005,.862430553,.864708114,.866899015,.869088054,.871200793,.87328368,.875363752,.877441495,.879422215,.88127378,.883037107,.884769956,.886483511,.888196167,.889907637,.891542992,.892980822,.89430044,.895619175,.896937174,.898254473,.899570815,.900886387,.902131827,.903312467,.904481102,.905649226,.906810612,.907913057,.908983488,.910053451,.911114064,.912131589,.91313916],[4.4375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468233582,.519311335,.56386401,.598157165,.625074992,.645846065,.664351607,.681194944,.695070505,.707538602,.719039198,.729510439,.739310616,.748086878,.756647819,.76459516,.77220214,.779659099,.78643646,.792666856,.798120318,.803122373,.807421455,.811644714,.815782192,.819835561,.823882508,.827886684,.831585164,.834931894,.838118354,.841209814,.844172962,.84709859,.849985768,.852813987,.855548877,.858180472,.86068455,.863069974,.865399228,.867639265,.869828304,.871941043,.87402393,.876104002,.878181745,.880251477,.88211978,.883883107,.885615956,.887329511,.889042167,.890719385,.892336117,.893773947,.895093565,.8964123,.897730299,.899047598,.90036394,.901679512,.902924952,.904154637,.905327102,.906495226,.907635208,.908706182,.909776613,.910846576,.911916066,.912977589,.91398516],[4.5,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468286457,.51946996,.564128385,.59852729,.625392242,.64611044,.664563107,.681459319,.695387755,.707908727,.719515073,.730039189,.739786491,.748562753,.757070819,.76498648,.77262514,.780029224,.786806585,.793142731,.798649068,.80365995,.807994662,.812197165,.816366787,.820417186,.824440742,.828415434,.832272539,.835595746,.838710327,.841740847,.844701712,.84762734,.850514518,.853395612,.85617628,.858814972,.86131905,.863704474,.866077283,.868364211,.870568554,.872681293,.87476418,.876844252,.878921995,.880998424,.88296578,.884729107,.886461956,.888175511,.889858337,.89151251,.893129242,.894567072,.89588669,.897205425,.898523424,.899840723,.901157065,.902472637,.903718077,.904947762,.906173102,.907322513,.908428333,.909499307,.910569738,.911639701,.912709191,.913778159,.91483116],[4.5625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468339332,.519628585,.56439276,.598897415,.625709492,.646374815,.664774607,.681676216,.695705005,.708278852,.719990948,.730552811,.740262366,.749038628,.757442446,.765356605,.77304814,.780399349,.78717671,.793573951,.799132872,.8041887,.808523412,.812725915,.816922539,.820964982,.824969492,.828941278,.832839019,.836177371,.839239077,.842269597,.845230462,.84815609,.851043268,.853928469,.856757905,.859449472,.86195355,.864338974,.866711783,.869051586,.871308804,.873421543,.87550443,.877584502,.879662245,.881738674,.883765185,.885575107,.887307956,.888996161,.890651462,.892305635,.893922367,.895360197,.896679815,.89799855,.899316549,.900633848,.90195019,.903265762,.904511202,.905740887,.906953575,.908115638,.909221458,.910292432,.911362863,.912432826,.913502316,.914571284,.915630565],[4.625,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468392207,.51978721,.564657135,.59926754,.626026742,.64663919,.664986107,.681887716,.696022255,.708648552,.720466823,.731028686,.740738241,.749514503,.757812571,.76572673,.77347114,.780769474,.787546835,.793953126,.799555872,.80471745,.809052162,.813253542,.81740709,.821488441,.825467687,.829417153,.833265133,.836734716,.839767827,.842798347,.845759212,.84868484,.851572018,.854457219,.85733953,.860068088,.86258805,.864973474,.867346283,.869715386,.872014709,.874161793,.87624468,.878324752,.880402495,.882478924,.884554062,.886397532,.888133108,.889789286,.891444587,.89309876,.894715492,.896153322,.89747294,.898791675,.900109674,.901426973,.902743315,.904058887,.905304327,.906520714,.907693825,.908866447,.910014583,.911085557,.912155988,.913225951,.914295441,.915364409,.91642369],[4.6875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468445082,.519945835,.56492151,.599632446,.626343992,.646903565,.665197607,.682064954,.696339505,.708965802,.720942698,.731480906,.741214116,.749938761,.758182696,.766096855,.773893084,.781139599,.787873484,.794323251,.799978872,.805198069,.809570206,.813721949,.817850119,.821964316,.825943562,.82986957,.833688133,.837237993,.840296577,.843327097,.846287962,.84921359,.852100768,.854985969,.857869301,.860649713,.86322255,.865607974,.867980783,.870349886,.872702084,.874901538,.87698493,.879065002,.881142745,.883219174,.885294312,.88717435,.888925676,.890582411,.892237712,.893891885,.895508617,.896946447,.898266065,.8995848,.900902799,.902220098,.90353644,.904852012,.906086893,.907260964,.908434075,.909606697,.910772587,.911878682,.912949113,.914019076,.915088566,.916157534,.917216815],[4.75,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468497957,.52010446,.565185885,.59992,.626661242,.64716794,.665409107,.682223579,.696656755,.709283052,.721418573,.731903906,.741670447,.750361761,.758552821,.76646698,.774263209,.781505202,.788190734,.794676253,.800401872,.8056445,.810011239,.814144949,.818273119,.822398002,.826419437,.83029257,.834079704,.837713868,.840825327,.843855847,.846816712,.84974234,.852629518,.855514719,.858398051,.8612293,.863832351,.866242474,.868615283,.870984386,.873351627,.875588913,.87772518,.879805252,.881882995,.883959424,.886022838,.8879146,.889665926,.891375536,.893030837,.89468501,.896301742,.897739572,.89905919,.900377925,.901695924,.903013223,.904329565,.905637339,.906827143,.908001214,.909174325,.910346947,.911512837,.912643881,.913742238,.914812201,.915881691,.916931924,.917972411],[4.8125,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468550832,.520245498,.56545026,.600184375,.626978492,.647414359,.665620607,.682382204,.696927647,.709600302,.721844019,.732326906,.742093447,.750771012,.758922946,.766837105,.774633334,.781822452,.788507984,.794993503,.800795279,.806008859,.810434239,.814567949,.818696119,.822821002,.826845334,.83071557,.834449829,.83811609,.841341429,.844384597,.847345462,.85027109,.853158268,.856043469,.858926801,.86175805,.864413976,.866876974,.869249783,.871618886,.873986127,.876276288,.87844594,.880545502,.882623245,.884692574,.886710213,.88865485,.890406176,.892138249,.893823962,.895478135,.897094867,.898532697,.899852315,.90117105,.902489049,.903806348,.905117665,.906377589,.907567393,.908741464,.909914575,.911087197,.912253087,.913384131,.914514622,.915571387,.916622029,.917672174,.918712661],[4.875,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468567923,.52029999,.565714635,.60044875,.627281133,.647625859,.665832107,.682540829,.697192022,.709917552,.72225254,.732749906,.742513898,.751141137,.759293071,.76720723,.775003459,.782139702,.788825234,.795310753,.801165404,.806326109,.810857239,.814990949,.819119119,.823220493,.827262682,.8311001,.834819954,.838486215,.841817304,.844913347,.847874212,.85079984,.853687018,.856572219,.859455551,.8622868,.864990504,.867480431,.869884283,.872253386,.874620627,.876911572,.879133315,.881285752,.883361042,.885379949,.887397588,.8893951,.891146426,.892878499,.894609694,.89627126,.897887992,.899325822,.90064544,.901964175,.903282174,.904597242,.905857915,.907117839,.908307643,.909481714,.910654825,.911827447,.912993337,.914124381,.915254872,.916311637,.917362279,.918412424,.919452911],[4.9375,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468567923,.520352865,.56597901,.600713125,.627545508,.647837359,.666043607,.682699454,.697456397,.710234802,.722547541,.733172906,.742884023,.751511262,.759663196,.767577355,.775373584,.782456952,.789142484,.795628003,.801514667,.806643359,.811280239,.815413949,.819542119,.823590618,.827632807,.831470225,.835190079,.83885634,.842293179,.845442097,.848402962,.85132859,.854215768,.857100969,.859984301,.86281555,.865519254,.868062056,.870518783,.872887886,.875255127,.877546072,.879807211,.881987526,.884048417,.886067324,.888084963,.890101437,.891886676,.893618749,.895349944,.897064385,.898681117,.900118947,.901438565,.9027573,.904075299,.905337492,.906598165,.907858089,.909047893,.910221964,.911395075,.912567697,.913733587,.914864631,.915995122,.917051887,.918102529,.919152674,.920193161],[5,1.03e-8,.063700669,.124793412,.183876932,.241863995,.299175154,.356003022,.412447935,.468567923,.52040574,.566243385,.6009775,.627809883,.648048859,.666255107,.682858079,.697680541,.710522315,.722761629,.733595906,.743254148,.751881387,.760033321,.76794748,.775702696,.782774202,.789459734,.795945253,.801831917,.806960609,.811703239,.815836949,.81991531,.823960743,.827957463,.83184035,.835560204,.839226465,.842769054,.845918149,.848931712,.85185734,.854744518,.857629719,.860513051,.8633443,.866048004,.868635681,.871117155,.873522386,.875889627,.878180572,.880441711,.882624304,.884731216,.886754699,.888772338,.890788812,.892626926,.894358999,.896090194,.897820261,.899474242,.900912072,.90223169,.903550425,.904816134,.906077742,.907338415,.908598339,.909788143,.910962214,.912135325,.913307947,.914473837,.915604881,.916735372,.917792137,.918842779,.919892924,.920933411]],tabelleEigenverbrauch=[[0,0,.0625,.125,.1875,.25,.3125,.375,.4375,.5,.5625,.625,.6875,.75,.8125,.875,.9375,1,1.0625,1.125,1.1875,1.25,1.3125,1.375,1.4375,1.5,1.5625,1.625,1.6875,1.75,1.8125,1.875,1.9375,2,2.0625,2.125,2.1875,2.25,2.3125,2.375,2.4375,2.5,2.5625,2.625,2.6875,2.75,2.8125,2.875,2.9375,3,3.0625,3.125,3.1875,3.25,3.3125,3.375,3.4375,3.5,3.5625,3.625,3.6875,3.75,3.8125,3.875,3.9375,4,4.0625,4.125,4.1875,4.25,4.3125,4.375,4.4375,4.5,4.5625,4.625,4.6875,4.75,4.8125,4.875,4.9375,5],[0,1,.961589083,.834899489,.727599055,.647316489,.586013095,.537318243,.497220912,.463201796,.43359231,.407234634,.383482465,.362233394,.343241817,.3262128,.310851527,.296945224,.284291434,.272698587,.262037111,.252212487,.243126519,.234701099,.226864242,.219557837,.212728875,.206330393,.200318164,.19465464,.189308323,.184256541,.179475561,.174943997,.170640715,.166547723,.162655475,.158945917,.155407611,.152027042,.148794765,.145699751,.142734021,.139889263,.137158207,.134533695,.13200914,.129580307,.127241911,.124987611,.122812723,.120713215,.118686016,.116727213,.114833502,.113001326,.111227889,.10951036,.107846732,.106234597,.104671361,.103155048,.101683301,.100254291,.098865865,.097516017,.096203163,.094925891,.093682521,.092472008,.091293124,.090144057,.089023876,.087931545,.08686644,.085827454,.084813796,.083824271,.082857823,.081913627,.080991207,.080089597],[.0625,1,1,.950798189,.860715697,.771092729,.695796004,.63414444,.58208935,.537657044,.498704604,.464666306,.435141463,.409426355,.386684248,.366328849,.348100887,.331714628,.316848136,.303315313,.29093095,.27955412,.26906875,.259336674,.250295322,.241892331,.234048324,.226722588,.219860814,.213415608,.207344483,.201610936,.196192301,.191069396,.186215169,.181607341,.177233812,.173074425,.16911394,.165340251,.161738859,.158294049,.15499752,.151838109,.14880549,.145891789,.143093225,.140399491,.137808546,.135314464,.132910855,.130593141,.128355378,.12619665,.124110523,.1220918,.120139558,.118249626,.116418359,.114644889,.112926347,.111259229,.109640271,.108066538,.10653711,.105051258,.10360722,.102201863,.100834204,.099502597,.098206288,.096943455,.095713192,.094514578,.093345454,.092205179,.091091389,.090003959,.088941916,.08790503,.086891992,.08590175],[.125,1,1,.979010184,.916788064,.840279169,.763332092,.697745392,.639620893,.588012508,.543666991,.505378105,.472336367,.443685795,.418493845,.396071277,.375937993,.357867119,.341535834,.326573098,.312911291,.300424701,.288936273,.278328354,.268485097,.259301802,.250744019,.242757262,.235276997,.228241719,.221632161,.215413132,.209539535,.20398203,.198715938,.193724417,.188986114,.184477149,.180193941,.176112768,.172217104,.168497848,.164942875,.161542899,.158282736,.155150861,.152145794,.149258028,.146483315,.143813614,.141238983,.138759572,.136367262,.134059497,.131828033,.129668705,.12758122,.125559897,.123601466,.121699234,.119856264,.118069043,.116335218,.114652333,.113017666,.111428154,.109883077,.108381581,.106920452,.105498878,.104114288,.102764681,.101447303,.100161766,.098908646,.097687113,.096496093,.095334079,.094199661,.093091625,.092009469,.090952288],[.1875,1,1,.99349516,.947312363,.882877992,.811975911,.744128664,.682662024,.627268087,.579863111,.538854744,.503499585,.472655352,.445457883,.421368149,.399641821,.380122588,.362482018,.346490685,.331863735,.318395949,.306021238,.294631376,.284107229,.274353004,.265219633,.256708471,.248720756,.241227633,.234199515,.22758304,.221349266,.215458368,.209864852,.204544539,.199497175,.194691574,.190121137,.185771346,.181625872,.177674605,.173898481,.170288376,.166832076,.163518489,.160338954,.157282658,.154338882,.151505645,.148775885,.146147107,.143610563,.141165733,.138801255,.136516101,.134307105,.132167086,.130095394,.128090424,.126147631,.124264583,.1224374,.120664764,.118940196,.117263059,.115632572,.114048571,.112509735,.111012473,.109553379,.108129464,.106741499,.105387326,.104067177,.102779807,.101523266,.100297242,.099097876,.097927051,.096783235,.095666558],[.25,1,1,.999212765,.967273649,.913088898,.84847006,.78031768,.71749819,.66082022,.610886875,.567940188,.530602686,.498019045,.469308666,.443710233,.420657655,.39989007,.381212479,.364231117,.348750341,.334570356,.321555003,.309497658,.298355892,.288017826,.27835203,.269331526,.26091988,.253034119,.245623409,.238655233,.232085781,.225899395,.220052572,.214505251,.209227792,.204199192,.199408246,.194827625,.190453249,.186281584,.182293403,.178483191,.174838161,.17134374,.167997755,.164782839,.16169123,.158712269,.155843425,.153082652,.150418739,.147848519,.145365381,.142966102,.14064869,.138405834,.136232518,.134127449,.132086913,.130108995,.128189763,.126327894,.124519605,.122762233,.121053974,.119392744,.117776648,.116202597,.114670939,.113179803,.111726537,.110309767,.108929102,.107582621,.106270369,.104990454,.103740224,.102519099,.101325232,.100158185],[.3125,1,1,1,.981307714,.935906511,.875734271,.811088057,.747589813,.690376465,.638666028,.594014019,.555133446,.521047907,.490896246,.464103256,.439890319,.418122593,.39847717,.380648563,.364377513,.34951669,.335848756,.323258853,.311627731,.300792683,.290694814,.281273519,.272450838,.264171354,.256406272,.249116262,.242262623,.235797893,.229689497,.22389423,.218386031,.213151309,.208151423,.203378841,.198826749,.194487616,.190338823,.186365455,.182555648,.178902454,.175386769,.172011614,.168766826,.165649507,.162649135,.159754907,.156969516,.154285992,.151695662,.149190833,.146765214,.144417734,.142141543,.139937936,.137804146,.135734995,.133729374,.131784379,.129897439,.12806423,.12628037,.12454681,.122861439,.121222483,.119627963,.118075156,.116563007,.115088741,.11364528,.112237871,.110866302,.109529101,.108222736,.106946838,.105700075,.104481913],[.375,1,1,1,.990546805,.953784292,.898455057,.837518583,.774788632,.716921892,.664191806,.618039781,.57796853,.542627815,.511218316,.483281142,.458080485,.435351162,.414933798,.396338899,.379308673,.363782353,.349577858,.336434924,.324315302,.313087583,.302573067,.292743431,.283592707,.274987255,.266894375,.259285474,.252116685,.245378638,.239017556,.232986447,.227245684,.221790282,.216606922,.211660012,.206924385,.20239642,.198068923,.193933153,.189978337,.186193483,.182555373,.179047296,.175678368,.172436602,.169307562,.166290143,.163378695,.160571385,.157863167,.155250789,.152727571,.150286712,.147917814,.145621192,.143396676,.141242106,.13915422,.137127973,.135160513,.133249234,.131391571,.129588602,.127834863,.126129866,.124470423,.122855629,.121281166,.119746364,.118250297,.116792328,.115370932,.113983668,.112627349,.111299654,.110003468,.108736254],[.4375,1,1,1,.996314113,.967454994,.917921089,.860661449,.799736383,.741036613,.688224235,.640814323,.599622416,.563110145,.530838744,.501736982,.475684744,.452087834,.430833839,.411584272,.393896986,.377717982,.362877149,.349224024,.336655677,.325005306,.314163261,.303992025,.294451064,.28552488,.277135784,.269243471,.261796308,.254788693,.248180578,.241919693,.235968956,.2303019,.224897358,.219745066,.214833595,.210148051,.205669928,.201386112,.197271762,.193328659,.189545608,.185912311,.182424322,.179064471,.175824109,.172699562,.169682929,.166773875,.16396122,.161243433,.158616709,.156074203,.153611223,.151226313,.14892023,.14668309,.144515772,.142412657,.140370495,.138386784,.136456491,.13457905,.132752991,.130978424,.129251799,.127571818,.125937388,.124345113,.122793393,.121279912,.119804761,.118363701,.116953684,.115577897,.114234417,.112922185],[.5,1,1,1,.999236676,.978658797,.935551023,.881236371,.822474882,.763780686,.710713814,.662695733,.620334751,.583079896,.549531667,.519798279,.492693363,.468433604,.446450061,.426495608,.408168922,.391461582,.376047766,.361821083,.348756607,.336682141,.325470951,.31499402,.305186244,.29593719,.287216859,.279026778,.271328859,.264074278,.257218091,.250716852,.244563334,.238729141,.233141632,.227783989,.222676749,.217807468,.213158018,.208709751,.204459071,.200387191,.196476131,.192715614,.18909039,.185602112,.182242969,.179007181,.17588211,.172869077,.169963763,.16716096,.164449146,.161816065,.159263145,.156790928,.154397161,.152076935,.149830312,.147651294,.145532314,.143475404,.141478373,.139535676,.137644006,.135800859,.134006884,.13226157,.130563598,.128909566,.12729681,.125724284,.124192203,.122698734,.121239368,.119814836,.118424334,.117066519],[.5625,1,1,1,.999992811,.986996247,.950492419,.898937619,.842931871,.785662861,.731586736,.683763817,.640451062,.602240877,.567964626,.537204361,.509470477,.484385764,.461770703,.441191535,.42229347,.404942588,.389085891,.374353297,.360773302,.348238257,.336606584,.325781958,.315684701,.306187814,.297204358,.288731015,.28075084,.27324045,.266149077,.259439161,.253062582,.24700957,.241251863,.235763321,.230487307,.225434835,.220610339,.216005819,.211594557,.207366114,.203311685,.199418362,.195673198,.192071387,.188606279,.185262276,.182033572,.178917135,.175905835,.172998881,.170190726,.167471137,.164839,.162292224,.159823937,.157425244,.155099192,.152843926,.150657231,.148530237,.146460025,.144446559,.142490601,.140588836,.138737388,.136936148,.135173195,.133455526,.131781872,.13015106,.128562382,.127013838,.125500549,.124023731,.122582167,.121172767],[.625,1,1,1,1,.993098941,.962915379,.91496917,.8612944,.805797534,.751674782,.703682132,.659981956,.620925651,.585831957,.5543162,.525811826,.500051644,.476808575,.45561395,.436198002,.418341491,.401883686,.386760764,.372730444,.35973119,.347680202,.336458829,.326018203,.316245225,.30702111,.298308789,.290086347,.28232833,.274999348,.268065707,.261486986,.255234323,.249275016,.243603365,.238186898,.232992996,.228020363,.223255933,.218694346,.214322228,.210121285,.206083245,.20220405,.198480359,.194895406,.191436693,.188104266,.184896743,.181802083,.178807958,.175906107,.17309005,.170365086,.167728759,.165174556,.16270273,.160309538,.157989629,.15573261,.153538046,.151401685,.149324692,.147307007,.145339908,.143423785,.141558235,.139743545,.137976089,.136253566,.134568956,.132922936,.131316547,.129747603,.128216624,.12672238,.125263379],[.6875,1,1,1,1,.996774008,.973274812,.92996861,.877953437,.824774885,.771166548,.722584722,.678789784,.639128828,.603344623,.571041347,.541882387,.515407052,.491542861,.469843959,.449859287,.431561343,.414619996,.398973,.384567843,.371172822,.358691342,.347090616,.3362861,.326179139,.316696584,.307753495,.299305045,.291307197,.28375754,.276612133,.269833584,.263392562,.257245453,.251385314,.245783429,.240450887,.235345539,.230431411,.22573157,.221219913,.216891727,.21273326,.208721312,.204863076,.201153648,.197583585,.194141297,.190821327,.18762024,.184532448,.181548147,.178662641,.17586125,.173140509,.170503995,.167948887,.165474521,.163072604,.160743526,.158483322,.156289256,.154153321,.152073602,.150049936,.148077816,.146156207,.144283674,.142459274,.140678056,.13894057,.137247476,.135596116,.133980082,.132402704,.13085987,.129349451],[.75,1,1,1,1,.999018803,.981536149,.943253635,.893492883,.842179157,.789686916,.740515483,.696948305,.656774633,.620404573,.587398491,.557536261,.530567838,.506017127,.48375349,.463360908,.444540866,.427211187,.411107217,.396252541,.382490058,.369658848,.357658929,.346503466,.336068291,.326265651,.317078191,.308406987,.300212668,.292425536,.285066627,.278085883,.271456378,.265152391,.259118455,.253343109,.247840878,.242575164,.237549288,.232701113,.22805554,.223602544,.219316511,.215191366,.211224056,.207399326,.203709396,.200151324,.196726785,.193426619,.190236616,.187149498,.184164955,.181277937,.178487751,.175787281,.173158897,.170612456,.168136896,.165736374,.163404041,.161135476,.158930349,.15678847,.154707463,.152682357,.150707576,.148785596,.146911292,.145078487,.14328966,.141544921,.13984367,.13817873,.136552485,.134963883,.133410506],[.8125,1,1,1,1,.999849706,.987894946,.954796793,.908065198,.857614824,.807163437,.758205845,.714169035,.673863097,.637108117,.603480107,.572963056,.545341825,.520338481,.497471357,.476535262,.457369639,.439586447,.423140812,.407838895,.393672552,.380505482,.368191102,.35667054,.345898381,.335804588,.326313826,.317406314,.308997695,.301029452,.29345738,.286264056,.279447873,.272954272,.26676149,.260852084,.255181769,.249754926,.24457353,.239609625,.234840599,.23024065,.225824905,.221584587,.217507614,.213574462,.209781932,.206119184,.20259124,.199181724,.195893293,.192715045,.189637418,.186653797,.183770242,.180982369,.178284767,.17567154,.173128847,.170659996,.168261879,.165928906,.16365874,.16145337,.159304985,.157213062,.155179253,.153201396,.151275748,.149395638,.147560433,.145771126,.144019641,.142306642,.140635352,.139002757,.137407318],[.875,1,1,1,1,1,.992905051,.965141983,.921269685,.871902199,.823603147,.775213985,.730655011,.690405345,.65326374,.619295024,.588053429,.559862461,.53435155,.510998946,.489568836,.469907157,.451810276,.434971743,.419346354,.404779822,.391226562,.378600024,.366798552,.35568935,.345264528,.335504393,.326308531,.317664663,.309492952,.301734425,.294358875,.287314634,.280627203,.274259491,.268174182,.262367998,.256815646,.251478131,.246370838,.241476976,.236772494,.232223762,.227846015,.223644107,.219605818,.215719237,.211956306,.208323379,.204819842,.201435372,.19815925,.194987158,.191918822,.188951905,.186073286,.183287585,.180590765,.177978135,.175445239,.172977247,.17057866,.168248065,.165981661,.16377626,.161626097,.15953506,.157498984,.15551264,.153576754,.151690342,.149852697,.148060097,.146305127,.14458849,.142911863,.141271254],[.9375,1,1,1,1,1,.996228244,.973718454,.933119352,.885477042,.838590209,.791446392,.746715693,.706343333,.669021769,.634761523,.602969475,.574196621,.548130178,.524333042,.502382846,.482286826,.463729335,.446596599,.430615171,.41572164,.401813681,.388808318,.376696134,.365331425,.354597119,.344514384,.335051014,.326126171,.317707422,.309730623,.302154663,.294931036,.288033496,.281458878,.275201039,.269227349,.263515542,.258049191,.252824084,.247797376,.242968416,.238325156,.233829542,.2295039,.225333855,.221320742,.217457039,.21373867,.210141477,.20665898,.203294342,.200036831,.196885226,.193829627,.190874226,.188013842,.185235941,.182542133,.179930951,.177397901,.174939008,.17254131,.170207636,.167939797,.165736153,.163590148,.16149912,.159462276,.157476093,.155538832,.153649456,.151806585,.150006168,.148249737,.146535705,.14485724],[1,1,1,1,1,1,.998583315,.980264044,.943902156,.898486239,.852380695,.806958652,.762411957,.721624766,.68412249,.6496364,.617597277,.588124954,.561516702,.537305478,.514897654,.494340583,.475413345,.457868998,.441621023,.426367631,.412101161,.39874601,.386230539,.374505439,.363510649,.353119783,.343343071,.334153357,.325479591,.31727703,.309491755,.302097881,.295036843,.288296275,.281851403,.275707853,.269848371,.264235308,.258850034,.253698433,.248758609,.244001986,.239412035,.234987273,.230703633,.226579803,.222599429,.218767558,.215077302,.2115208,.208072095,.204727464,.201489658,.198356254,.195324955,.192385706,.189532544,.186768411,.18408397,.181473942,.178941255,.176480895,.174091839,.171765953,.169497957,.167293903,.165151018,.163066353,.161033568,.159047482,.157112622,.155223649,.153378153,.151575485,.149817002,.148098963],[1.0625,1,1,1,1,1,.999630372,.986038428,.953806005,.910912354,.865069102,.821219263,.777301995,.736382203,.698714164,.664033124,.631767264,.601775944,.574555323,.549692125,.526918945,.505811059,.48641398,.468523288,.451870499,.436358354,.421751868,.408039893,.395183378,.383083793,.371785172,.361196109,.351169466,.341712194,.332795913,.324375163,.316401485,.308820216,.301607254,.294703832,.288100516,.28177549,.275734115,.269973367,.264468746,.259179219,.254104757,.249243462,.244562945,.240055203,.235692315,.231465243,.227381781,.223451826,.219659227,.21600464,.212478318,.20907134,.20576493,.202555758,.199449244,.196441147,.193524829,.19069867,.187954503,.185288754,.182699813,.180177825,.177729067,.175350513,.173039672,.170790392,.16859517,.16645892,.164379616,.162353877,.160381091,.158457074,.15657227,.154734004,.152939324,.151186179],[1.125,1,1,1,1,1,.999991492,.990818153,.962444411,.922226477,.877098794,.834341855,.791647467,.750621512,.712594251,.677361497,.644920378,.614526027,.586665597,.561295797,.537980293,.516544012,.496663271,.478366637,.46144114,.445595331,.430746369,.416690381,.403463797,.391066496,.379440048,.368567133,.358353557,.348683765,.33953421,.330885926,.32270587,.314944756,.30755407,.300516055,.293791216,.28735293,.281183541,.275280661,.269646667,.264264975,.259091332,.254115312,.249332544,.244739039,.240321109,.236047864,.231894023,.227874959,.223998176,.220260603,.216647468,.213158913,.209787135,.206528283,.203368466,.200301918,.1973316,.1944508,.191653924,.188940721,.18630221,.18373636,.181241588,.178811457,.176448387,.174152226,.171919856,.169745144,.167620302,.165548314,.163530519,.161564962,.159646473,.157775499,.155948751,.15416075],[1.1875,1,1,1,1,1,1,.994246971,.969449986,.932172316,.888589873,.846570616,.804783689,.76382085,.725339407,.689596224,.656757562,.6261564,.597772105,.5718116,.548018669,.526232057,.506004222,.487296082,.470050833,.454008447,.438869939,.424573326,.411076829,.398417405,.386554421,.375403569,.364950531,.355107484,.34578549,.336957911,.328591133,.320668943,.313151259,.305990966,.299147074,.292616639,.286349487,.280350592,.274601101,.269094553,.263823169,.258763742,.253886027,.249197976,.244690682,.240346224,.236160223,.232096836,.228160018,.224347141,.220663871,.217105091,.21366079,.210333827,.207118193,.204005185,.200986405,.198053907,.195208797,.192446603,.189761859,.187151647,.184613358,.182144934,.179740903,.177398391,.175117447,.172898346,.170739598,.168630856,.166570335,.164559664,.162597089,.160683203,.158816547,.15699582],[1.25,1,1,1,1,1,1,.996675239,.975428641,.941222135,.899191566,.857228276,.816462593,.775843102,.736972461,.700660918,.667112412,.636533072,.607856168,.581556349,.557398338,.535140786,.51469261,.495663706,.478065699,.461780087,.446488058,.431928539,.418263252,.405358239,.393256226,.381887848,.371188764,.361148316,.351677695,.342704552,.334207927,.326119968,.318455479,.311161009,.30420802,.297554753,.291201752,.285116191,.27927654,.273667729,.268290358,.263141374,.258193783,.253439987,.248858284,.244443429,.240187441,.236084746,.232113856,.228255156,.224518218,.220893955,.217388434,.213997605,.210713539,.207538387,.204466358,.201484147,.198591066,.195778098,.193043513,.190388574,.187805325,.185290586,.182845817,.180466401,.178150694,.175889079,.173687414,.171540129,.169448955,.167405708,.165408896,.163457261,.161553621,.159696454],[1.3125,1,1,1,1,1,1,.998308807,.980784312,.94945467,.90914639,.866642559,.826808335,.786544833,.747252912,.710604337,.676616452,.645896894,.617332727,.590607994,.566060793,.54354739,.522789163,.503561851,.485722301,.469079708,.453514917,.438774528,.424890984,.411847983,.39953014,.387979567,.377107901,.366862147,.357226825,.348115196,.339478751,.331290861,.323491776,.316083977,.309016172,.302278694,.295821913,.289650373,.28373853,.278061699,.272599117,.267351535,.262313494,.257474843,.252820255,.2483374,.244009761,.239835742,.235804862,.231910697,.228124143,.22445215,.220896058,.217445115,.214104858,.210871267,.207738696,.204706228,.201767214,.198908796,.196136113,.193440228,.190815305,.188265767,.185786264,.183369774,.181019224,.178727159,.17649756,.174316101,.172188611,.170113114,.168087247,.166105016,.164171621,.162280754],[1.375,1,1,1,1,1,1,.999318443,.984992332,.956355309,.917723211,.875175457,.835899223,.795849547,.756695187,.719845786,.685574393,.65447112,.626024445,.599042642,.574293703,.551476368,.530443511,.511056028,.492932913,.475996874,.460137492,.445204149,.431194431,.418004487,.405586788,.393827272,.382792541,.37238915,.362562558,.353298146,.344530679,.336208877,.328312809,.320776467,.313596426,.30674992,.300210492,.293944872,.287945352,.282198414,.276669364,.271344853,.266213727,.261285997,.25655305,.251998165,.247617659,.243390903,.239308034,.235362207,.231545511,.227837677,.224242152,.220749987,.217373268,.214095803,.2109169,.207834793,.204844774,.201945786,.199131217,.196393222,.193735112,.191150686,.188632908,.186184476,.183804445,.181481058,.179217472,.177008965,.17485527,.172751322,.170692448,.168682506,.166720763,.164802283],[1.4375,1,1,1,1,1,1,.99980516,.988476961,.961557839,.924769444,.882923232,.843761575,.804310599,.76536272,.728243083,.693875739,.662396587,.633892262,.606990047,.581914671,.558964974,.537771639,.518114398,.49978473,.482544279,.466391457,.451230419,.437081134,.423759354,.411200405,.399352358,.38812217,.377578281,.367624924,.358205748,.349307042,.34087556,.332869084,.325251103,.31796751,.311017609,.30437837,.298030541,.291946295,.286119628,.280529002,.275153518,.269968289,.26497502,.260167362,.255546506,.251090248,.246804184,.242675141,.238682563,.234817134,.231074227,.227444336,.223913426,.220489846,.21716726,.213952693,.210831965,.207797602,.204850038,.201988086,.199209708,.196507808,.193878828,.191325171,.188842533,.18642261,.184065264,.181772343,.179535604,.177350707,.175220359,.17313978,.171107477,.169117946,.167173801],[1.5,1,1,1,1,1,1,1,.991262528,.965962967,.931029814,.890069361,.850591861,.811891836,.773200924,.735944082,.701539651,.669881349,.641000729,.614216392,.589062078,.565968849,.544579839,.524686699,.506122139,.488631109,.472240959,.456873197,.442536419,.429120757,.416474639,.404507915,.393185142,.382470231,.372388435,.362856948,.353821704,.345264395,.337151404,.32942899,.32206042,.31502298,.308288944,.301859892,.295700568,.289792906,.284134252,.278691584,.273456412,.268411486,.263543984,.258856431,.254340181,.249984521,.245791524,.24175267,.237850181,.234068933,.230403428,.226852232,.223391257,.220036385,.216772788,.213609751,.210545119,.207567797,.204667962,.201847114,.199107087,.196446658,.193855358,.191337283,.188889632,.18650912,.184187513,.181921752,.179715492,.177565423,.175459925,.173406114,.171398337,.169436889],[1.5625,1,1,1,1,1,1,1,.993386794,.969966127,.936722511,.896851283,.857095821,.818949463,.780348454,.743106667,.708672736,.67687966,.647610137,.620875948,.595780269,.57242035,.550929884,.530831253,.511927374,.494311245,.477693029,.462158751,.447669633,.434086829,.42135077,.409306564,.397877128,.387073028,.376845677,.36719594,.358060517,.349383085,.341148658,.333330323,.325877716,.318765178,.311972692,.305449019,.299210403,.293241756,.287514426,.282022782,.276733384,.271647432,.266744939,.262009011,.257440234,.253035165,.248782665,.244686137,.240732755,.236915728,.233218172,.229634511,.226153191,.222768648,.219468252,.216265843,.21315514,.21013976,.207215725,.204371081,.2015993,.198900055,.196277426,.193727739,.19124347,.188827723,.186476218,.184186798,.181952659,.179771253,.17764454,.175571614,.17354368,.171562711],[1.625,1,1,1,1,1,1,1,.994883622,.973768748,.941863046,.903211295,.863280465,.82535119,.787012946,.749764587,.715230725,.683429279,.653827158,.626884365,.601869598,.578489623,.556752564,.536430098,.517318018,.49950357,.482706248,.467027388,.452389898,.438703785,.425848422,.413723492,.402233321,.391341126,.381016541,.371237138,.361991068,.353234615,.344908625,.336985047,.329448701,.322268942,.315401255,.308836269,.30251836,.29648002,.29069606,.285141393,.279805976,.274672743,.269728447,.264957676,.260343712,.255887326,.251586357,.247431006,.243420773,.239551147,.235815951,.2322061,.228702665,.225298757,.221983368,.218742637,.21559994,.212545834,.209582032,.206703758,.203910156,.201191678,.198543168,.195959712,.193448325,.191001971,.188619044,.186299228,.184040339,.181840336,.179693048,.177595505,.175547749,.173550111],[1.6875,1,1,1,1,1,1,1,.995834101,.977041064,.945868455,.908992513,.869144375,.830905039,.793188953,.756061161,.721332145,.689441621,.659662972,.632328218,.607302303,.583949138,.561934346,.541405795,.522209062,.504158565,.487284929,.471506778,.456768619,.442949605,.429976695,.417731618,.406175181,.395209788,.384835896,.374967321,.365621923,.356764608,.348373369,.340373472,.332741508,.325485798,.3185674,.311932405,.305582018,.299478909,.293629042,.288019643,.28262711,.277446102,.272460737,.26765794,.263022863,.258533382,.254194116,.25000541,.245949409,.242031876,.238250947,.234598909,.231066887,.227644463,.224314052,.221063565,.217893338,.214806562,.211811287,.208897051,.206068473,.203322798,.200656129,.198058876,.195528078,.193055198,.190650011,.188301734,.186014559,.183787142,.181616913,.179501954,.1774377,.175420262],[1.75,1,1,1,1,1,1,1,.996641513,.979665373,.949264764,.914210596,.874687361,.835898316,.798632606,.76151186,.726546159,.69466171,.664923105,.637314911,.612082953,.58861061,.566507541,.545806224,.526490863,.508358665,.491392199,.475504701,.460674934,.446762305,.433695306,.421372048,.409702766,.398689778,.38824616,.378364764,.368942343,.360012903,.351534569,.343486864,.335790163,.328447239,.321455973,.314780378,.308361997,.30222958,.296336404,.290676826,.285241045,.280019402,.274995036,.270158143,.26550101,.260993902,.256628122,.252404198,.248321558,.244363751,.240538453,.236844373,.233274395,.229822874,.226478137,.223222239,.220051303,.216956106,.213930122,.210993226,.208135906,.205359398,.202662247,.200041495,.197494423,.195010993,.192589107,.190219798,.18791051,.185655515,.183458572,.18131784,.179230971,.177196002],[1.8125,1,1,1,1,1,1,1,.997309924,.982000132,.952424034,.918576491,.879542908,.840260143,.803326068,.766175603,.731192134,.699131544,.669472373,.641743632,.61624851,.592639715,.570470815,.549662593,.530325702,.512184595,.495097401,.47919183,.46427057,.450276325,.437133937,.424748936,.41298625,.401893954,.391433544,.381494904,.372063091,.36305142,.354501325,.346368409,.338637304,.331238665,.324174977,.317436156,.310993758,.304803803,.298880752,.293182733,.287699973,.2824332,.277371053,.272494612,.267797958,.263274052,.258896964,.254653502,.250540211,.246560475,.24270366,.238968986,.235359639,.23186831,.228484126,.22520416,.222024389,.218925924,.215897993,.212934492,.210049819,.207247991,.204519257,.201868337,.199291191,.196785193,.194347805,.191968325,.189645755,.18737478,.185155464,.182989453,.180877952,.178818894],[1.875,1,1,1,1,1,1,1,.997871492,.983910153,.955399047,.922315418,.88383143,.844170182,.807253882,.770134388,.735288718,.703147565,.673568049,.645892992,.619975757,.596038824,.573888142,.553126841,.533661695,.515536984,.498462311,.482467916,.4675054,.453466592,.440232452,.427738581,.41593176,.40474117,.394196819,.384227488,.374746111,.365733635,.357129759,.348944013,.341146181,.333726183,.326608969,.319799004,.313288885,.307074134,.301096909,.295376361,.289871266,.284569352,.279465388,.27455448,.269822817,.265261798,.26086033,.256605828,.252470721,.248461088,.244579716,.240820469,.237172443,.23364565,.230227471,.226913962,.223704863,.220595416,.217571888,.214616537,.211722564,.208894254,.206147632,.203473685,.200871631,.198341428,.195880562,.193484876,.191152052,.188874077,.186648496,.18447338,.182342862,.180264361],[1.9375,1,1,1,1,1,1,1,.998366228,.985468215,.958287251,.925669779,.887132414,.847358623,.810295305,.773451947,.738716099,.706537339,.676898181,.649290566,.623126924,.598906818,.576754328,.556069614,.536589013,.518486841,.50143282,.485402586,.47041363,.45625607,.442922263,.430325102,.418457596,.407255259,.396631745,.386622219,.377120018,.368091416,.359478552,.351252797,.343406637,.335929021,.328762519,.32187332,.315299384,.309024326,.303027101,.297255127,.291721678,.286401571,.28127323,.276329474,.271570057,.266983198,.262559311,.258286352,.254154998,.250138918,.246242348,.242467395,.23881077,.235254841,.231809461,.228470209,.22523615,.222102606,.219064507,.216115957,.213236256,.210410986,.207645836,.204955416,.202339831,.199788573,.197307263,.194891765,.192540219,.190250041,.188017872,.185837291,.183705031,.181620021],[2,1,1,1,1,1,1,1,.998787404,.986654538,.961085184,.928500849,.88990262,.85028539,.812910913,.776545154,.741677382,.709491522,.679831515,.652182229,.625931665,.601513034,.57921428,.558629016,.539244471,.521077046,.504083797,.488068834,.473008903,.458804605,.445380267,.432696023,.420789068,.409549277,.398901068,.38882207,.379282836,.370214141,.361589169,.353333626,.345431531,.337860861,.330618329,.323710887,.317093248,.310771393,.304729893,.298951923,.293390978,.288052391,.282915222,.277940844,.273149863,.268543072,.264089082,.25978769,.255638404,.251626998,.247732258,.243948384,.240279025,.236720452,.23325501,.229891417,.226633664,.223477167,.220416796,.217446817,.214563719,.211751048,.208992535,.206293435,.203658389,.201096221,.198599473,.196165512,.193796088,.191488551,.189240306,.187049081,.184911551,.182822261],[2.0625,1,1,1,1,1,1,1,.999116182,.987721123,.963477476,.930964158,.892415306,.853026269,.815413475,.779445353,.744376863,.712210292,.682465578,.654697499,.628489912,.603910003,.581424728,.560785741,.54150568,.523385268,.506390438,.490433022,.475382032,.461103535,.44759054,.434881457,.422911778,.411635476,.400952448,.390817175,.381201809,.372098131,.363412152,.355143226,.347203719,.339576636,.332287496,.325346659,.318721849,.312367805,.30628963,.300475608,.294909013,.289550454,.284391704,.279410113,.274588836,.269937554,.265456764,.261135992,.256960166,.252930938,.249036992,.24525627,.241578603,.238000103,.234528852,.231151146,.227871314,.224693318,.221611155,.218615991,.215702089,.212873548,.210127004,.207443154,.204809803,.202233075,.19972312,.197280004,.194893365,.192569152,.190304844,.188098468,.185947624,.183850268],[2.125,1,1,1,1,1,1,1,.99928052,.988634728,.965716598,.93341598,.894841686,.855668635,.817800031,.782070433,.746974281,.714797129,.684862836,.656994301,.630647961,.605999482,.583361471,.562605715,.543430804,.525440956,.508426754,.492554157,.477485473,.463126745,.449535523,.436774918,.424776097,.413451336,.402737067,.392562142,.382894204,.373709096,.364983906,.356683015,.348723899,.341069736,.333759045,.326778443,.320123184,.313763393,.30765679,.301810051,.29621223,.290848617,.285665482,.280653169,.275819142,.271142682,.266638158,.262300479,.258113152,.254062483,.250153646,.246376348,.242695686,.239111892,.235628693,.23224454,.228958083,.225762268,.222655172,.219636338,.216706153,.213861766,.211099747,.208416636,.205808613,.203240485,.200730078,.198272119,.195879237,.193545371,.191267657,.189048282,.186884798,.184775274],[2.1875,1,1,1,1,1,1,1,.999420912,.989371785,.96762727,.935702642,.897081701,.858199588,.820097622,.784378144,.749358019,.716950948,.686841775,.658877514,.632372206,.607770113,.585094409,.564215086,.545073496,.527195379,.510251113,.494362505,.479325696,.464904043,.451262456,.438466806,.426439787,.41505918,.404301069,.3940997,.384413215,.375143736,.366374004,.358033667,.350047131,.342389288,.335072206,.328078441,.32139128,.315008231,.308900805,.303024696,.297398743,.2919976,.286800491,.281768371,.276912184,.272242121,.267723122,.263365253,.259162165,.255105182,.251177737,.247372813,.243693103,.240106031,.236618754,.233232221,.229937942,.226725616,.223603017,.220568002,.217622658,.214763576,.211987356,.209290537,.20666959,.204121391,.201629767,.199177182,.196778317,.194436198,.192154688,.189923913,.187748946,.185628254],[2.25,1,1,1,1,1,1,1,.999561304,.989987258,.969347608,.937903202,.899268077,.860540197,.822282109,.786554218,.751590434,.718892621,.688703246,.660520982,.634016712,.609463048,.586707504,.565752742,.546536004,.528735569,.511917166,.496003012,.481011837,.466584985,.452919632,.440089426,.428036364,.416622127,.405798118,.395576956,.385829367,.376532109,.367692877,.35929144,.351297216,.343628348,.336309947,.329311898,.322615938,.316205025,.310078243,.304190781,.298531067,.293094625,.287857747,.282818398,.277958398,.273269494,.268757331,.264389338,.260165846,.256090658,.252142757,.248317594,.244618004,.241032423,.237541827,.234141979,.230838958,.227623863,.224495845,.221454548,.218495012,.215622476,.212833133,.210123398,.207489979,.204929733,.202439682,.200006691,.197611932,.195272616,.19297962,.190740298,.188553795,.186421884],[2.3125,1,1,1,1,1,1,1,.999701696,.990478629,.970931757,.940038281,.901314482,.862718888,.824398787,.788706415,.753612236,.720678795,.690395912,.662030113,.635582962,.610951883,.588224241,.56724214,.547958441,.530141135,.513447213,.497522349,.482524308,.468201282,.45449263,.44163285,.429548088,.418089736,.40722626,.396937616,.387146641,.377818438,.368932842,.360487051,.352461209,.344787139,.337462572,.330463502,.323763017,.317345485,.311192796,.305278792,.299592949,.294112819,.288849728,.283787356,.278909362,.274214228,.269682033,.26531773,.261087939,.256978843,.253013057,.249183995,.245467281,.241865406,.23836807,.234960517,.231644518,.22842882,.225304357,.222256846,.21929464,.216411296,.213609352,.210887603,.208242313,.205670478,.203169251,.200730582,.198334968,.196000095,.193711507,.191469173,.18927156,.187128562],[2.375,1,1,1,1,1,1,1,.999842088,.990867172,.972160457,.94196829,.903279968,.864769315,.826469342,.790747556,.755499433,.7222789,.691803091,.663395034,.63696413,.612327724,.589653188,.568634165,.549325736,.53145146,.514780645,.498921493,.483947887,.469636029,.455969734,.443057276,.430926405,.419421014,.408514181,.398153645,.388334487,.378977631,.370067327,.361591242,.353535768,.345836703,.338498333,.331493586,.324789784,.318367502,.312202022,.306248543,.300529523,.295042489,.289754397,.284671343,.279773687,.275061906,.270527842,.266142649,.261900821,.257794719,.253815599,.249971385,.246247494,.242627265,.239105194,.235696663,.232377153,.229150854,.226021332,.222974363,.220003417,.21711688,.214309793,.211577079,.208921409,.206339571,.20382828,.20137708,.198971927,.196630249,.194349524,.192113253,.189921742,.187773733],[2.4375,1,1,1,1,1,1,1,.999982479,.9912357,.973361587,.943695936,.905245455,.866659798,.828510425,.792697591,.757178536,.723857697,.693032209,.664747406,.638283432,.613694686,.591004779,.57001894,.550693031,.532739998,.515989319,.500215928,.485302895,.470995307,.457386997,.444416996,.432231763,.42066369,.40972787,.399331187,.389457622,.380069568,.371154975,.362677432,.354594107,.346868584,.339505045,.332478307,.325774875,.319347501,.313165968,.307190429,.30145063,.295938512,.290638592,.285538318,.280624094,.275896159,.271341524,.26693934,.262680607,.258571596,.254597077,.250738933,.247000606,.243361871,.239833171,.236413489,.233091332,.229854697,.22670431,.223649592,.220685711,.217799264,.214986741,.212254271,.209589203,.206998282,.204478508,.202016499,.199602833,.197252853,.194963941,.192729239,.190544394,.188396356],[2.5,1,1,1,1,1,1,1,1,.991604229,.974459905,.945333191,.907141824,.868543195,.830465369,.794550672,.758816441,.725380087,.694246186,.665988141,.639526069,.615006267,.592268306,.571384564,.552022803,.533982571,.517168611,.501437644,.486601573,.472325006,.458706288,.445760079,.433499819,.421885249,.410893551,.400470187,.39055867,.38113781,.372213325,.363737943,.355647113,.347894622,.340505435,.333454273,.326730206,.320282459,.314075953,.308102937,.302349243,.296810843,.291498872,.286394117,.281460399,.27670058,.272110061,.267688352,.263427434,.259305949,.255326988,.251479843,.247709965,.244058026,.24052556,.237099908,.233765937,.230516127,.227354513,.224289079,.221315329,.218428808,.215623988,.212882665,.210218057,.207620803,.205091766,.202618425,.20019639,.197837979,.195540869,.193298179,.191108457,.188967034],[2.5625,1,1,1,1,1,1,1,1,.991972758,.975431929,.946812467,.90892863,.870233369,.832218046,.796264162,.760423777,.726685208,.695460163,.667155982,.640715705,.616246621,.593531833,.572719943,.553311283,.535211001,.518347903,.502590743,.487827205,.473587244,.45994227,.44702761,.434712228,.423034551,.411987631,.401540194,.391613323,.382162425,.373225123,.364735242,.356648938,.348882995,.341467761,.334391606,.327620661,.321138226,.314928972,.30892131,.303161441,.297621207,.292282128,.287155778,.282197843,.277410998,.272804846,.268369681,.264095866,.259975175,.255988243,.252124243,.248362921,.244699923,.241156952,.237728466,.234391545,.231129608,.227958568,.22488375,.221900745,.219005461,.216194176,.213463025,.210797199,.208198312,.205663302,.203174622,.200743918,.198377378,.19607243,.193821768,.191624157,.189475042],[2.625,1,1,1,1,1,1,1,1,.992341287,.976305479,.948286582,.910715436,.871842472,.833946752,.797878669,.761996166,.727913637,.69667414,.66821095,.641874882,.617425913,.59479536,.573933155,.554542344,.536401804,.519527195,.503724677,.488991207,.474728788,.46107899,.448120248,.435833844,.424068413,.412988413,.402501598,.392574227,.383122856,.374158651,.365669699,.35756899,.349811891,.342376828,.335249636,.328433841,.321929068,.315693051,.309669418,.30388409,.298339967,.292987823,.287835358,.282855954,.27805699,.27343923,.268992701,.264707675,.260576186,.256589389,.252703051,.248933559,.245290138,.241740359,.23830218,.234962318,.231697954,.228517616,.225434099,.222442522,.219538253,.216718376,.213979276,.211317269,.208725605,.206166862,.203670467,.201232229,.198858264,.196543511,.194282355,.192078079,.18992218],[2.6875,1,1,1,1,1,1,1,1,.992709815,.977179028,.949715495,.912455521,.873316587,.835568279,.799449527,.763541934,.729108064,.697842842,.66924829,.642928369,.61855865,.596020959,.57509176,.555738727,.537589285,.520706487,.504858612,.490084533,.475799627,.462151159,.449168507,.436868947,.425081867,.413949377,.40344921,.39349539,.384054052,.375074229,.366557392,.358454791,.3506869,.343238862,.336068588,.329233748,.322688538,.31641271,.310376949,.304583445,.299023168,.293656548,.288488302,.283493811,.278681085,.274050518,.269591808,.265294852,.261151699,.257136261,.25324584,.249464802,.245810288,.242275997,.238834084,.235484275,.232214247,.229034356,.225941604,.222941544,.220029764,.217202393,.214455959,.211787184,.209171286,.20661897,.20412063,.201675905,.199288797,.196962,.194694986,.192485208,.190324187],[2.75,1,1,1,1,1,1,1,1,.993078344,.978027321,.951091336,.914073802,.874790702,.837155788,.800977444,.764864497,.730275071,.698999011,.67028563,.643944259,.619688805,.597145197,.576208514,.556875098,.538771144,.521848043,.505992547,.491117414,.476832046,.463201678,.450184651,.437787556,.426059277,.414865243,.404331447,.394376706,.384920327,.375955588,.36741337,.359296904,.351497418,.34402252,.336849495,.329967609,.323387381,.317081642,.311030889,.305238279,.299653317,.29426972,.289102796,.284101277,.279276491,.274634397,.270165002,.265857934,.261693897,.257658582,.253741776,.249951105,.246287131,.242743829,.239304438,.235951591,.232671977,.229487679,.226397715,.223389692,.220470364,.217636038,.214882315,.212187238,.209556543,.206998274,.204505725,.202058711,.199664108,.197331911,.195059733,.192844836,.190678972],[2.8125,1,1,1,1,1,1,1,1,.993446873,.978791677,.952408774,.91543802,.876264817,.838628635,.802327102,.766109305,.731440964,.700097554,.67132297,.644900697,.620764299,.598190222,.577316567,.557943298,.539917678,.522988025,.507106873,.492136555,.477789956,.464224755,.45110115,.438650776,.42691928,.415758646,.405198573,.395219058,.38573928,.376775664,.368240943,.360077008,.352239768,.344741601,.337562026,.330672435,.324057433,.317736804,.311671668,.305846598,.300255247,.294861122,.289681089,.284678859,.279848599,.275194404,.270713357,.266392748,.262201136,.258143143,.254217044,.250418328,.246746775,.24319599,.239749306,.23639036,.233102918,.229911764,.2268177,.223815537,.220890183,.218045527,.215272416,.212561161,.209925502,.207355695,.204851452,.202405752,.200024279,.197689845,.195413138,.193193855,.191023744],[2.875,1,1,1,1,1,1,1,1,.993815402,.979543612,.953588066,.916778125,.877738932,.839964818,.80361197,.767354114,.73254655,.701195914,.672351584,.645831717,.621714653,.599172965,.578370994,.559011497,.541038761,.524128007,.508165212,.493130851,.478737602,.465148341,.451939877,.439469931,.42770932,.416621333,.406053356,.396049219,.386546188,.377551536,.369004006,.360796114,.352940723,.345429195,.338230606,.33133625,.324716368,.318378629,.312280287,.306433663,.300817744,.295431832,.290240767,.285227129,.280397349,.275740523,.271249281,.266897303,.262682864,.258616871,.254682202,.250875484,.247196196,.243638084,.240184267,.236818307,.23352308,.230325783,.227225623,.22421828,.221291817,.218435336,.215641906,.212923735,.210273675,.207696573,.205187753,.202737477,.200351962,.198028733,.195757094,.193528727,.191350471],[2.9375,1,1,1,1,1,1,1,1,.99418393,.980198774,.954655686,.918118229,.879213047,.841146606,.804792669,.768549353,.733620228,.702270311,.673334328,.646759273,.622603804,.600141442,.579341952,.560068166,.542078513,.525193945,.509209756,.494101393,.479657554,.465942172,.45271327,.440223259,.428467313,.417402691,.406879908,.396840181,.387303542,.378267877,.369675346,.361492805,.353598639,.346072615,.33885481,.331951184,.325346899,.318981798,.312863739,.306990055,.301362446,.295965322,.290783147,.285758781,.280918687,.276261864,.271752626,.267372374,.263149043,.259074652,.255131934,.251317332,.247630306,.244064728,.240603783,.23723101,.233928007,.230724184,.227617451,.224593362,.221658206,.218796236,.215990615,.213259472,.210604539,.208022698,.205509425,.203054907,.200665104,.19833718,.196061151,.193839822,.191659809],[3,1,1,1,1,1,1,1,1,.994552459,.980853937,.955638429,.919458334,.88056938,.842274832,.805915804,.769676297,.734664393,.703310862,.674317071,.64763857,.623422379,.601059644,.580280025,.561091888,.543061256,.526201069,.510192499,.495004456,.480535003,.466687701,.453416268,.440952391,.429186215,.418086152,.407611865,.397585139,.388010723,.378917523,.370306966,.362103814,.354221802,.346661832,.339437618,.332523006,.325899621,.319549982,.313402061,.307516439,.30187739,.296469298,.291279021,.286261419,.281411253,.276735795,.27219854,.267819285,.263588058,.259505964,.255555931,.251734405,.248040595,.244468291,.241000837,.237621792,.234311891,.231097886,.227974813,.22494552,.222000549,.219124523,.216313516,.213577826,.210918471,.20833233,.205814872,.20335632,.20095808,.198618385,.196338752,.194116721,.191948336],[3.0625,1,1,1,1,1,1,1,1,.994920988,.981509099,.956621173,.920646572,.881801664,.843333171,.807038939,.770724557,.735708557,.704350062,.675279844,.648484502,.624208574,.601948793,.581218098,.562022725,.54400966,.527142398,.511117576,.495878006,.481337359,.467407061,.454091528,.441624729,.429861851,.418741314,.408280875,.39829513,.388665885,.379554978,.370903911,.36268338,.354810714,.347237097,.339992229,.333071449,.326435662,.320076003,.31393616,.308039175,.302389235,.296970697,.291770392,.286748096,.281897044,.277180811,.272635315,.268255726,.264026934,.259937277,.255979807,.252151172,.248450671,.244871854,.241397891,.238012544,.234687664,.231460745,.228332174,.225297547,.222332951,.219452492,.216636418,.213896179,.211232403,.208641961,.206120119,.203648658,.201242558,.198899284,.196616296,.194390808,.192218996],[3.125,1,1,1,1,1,1,1,1,.995289517,.982164261,.957603916,.921706757,.882948198,.84439151,.808025271,.771772817,.736752722,.705297151,.67620799,.649312075,.624994768,.602813324,.5821443,.562920013,.544951456,.528027275,.511985975,.496740844,.482046395,.46808608,.454746691,.442269949,.430532967,.419396477,.408908542,.398921581,.389321048,.380167379,.37149873,.363254381,.355355312,.347804298,.340530398,.333597103,.326971704,.320600133,.314456633,.308561911,.302901081,.297472097,.292261764,.287223564,.282344024,.277625827,.27307209,.268684559,.264454618,.260368423,.256403684,.252567864,.24886045,.245275151,.241794614,.238391229,.235056193,.231823604,.228689535,.225637168,.222665349,.219780073,.216959319,.214214533,.211546335,.208947008,.206412286,.20393693,.201527036,.199180068,.1968935,.194664709,.192488306],[3.1875,1,1,1,1,1,1,1,1,.995658045,.982819423,.958516603,.922689501,.884058265,.845449849,.808979221,.772821076,.737796887,.706128535,.677099834,.650139649,.625780963,.603633199,.583011201,.563774662,.545856532,.528871994,.512811022,.497513042,.482713256,.468759804,.455401853,.442903977,.431177893,.420044132,.409486627,.399504709,.389933744,.380778273,.372090244,.363808749,.355887044,.348322619,.341068567,.334122756,.327494179,.321124263,.314969368,.30907707,.303412926,.297973497,.292746164,.287681038,.282778699,.278062013,.273508865,.269113393,.264875794,.260787658,.256827366,.252984556,.249270197,.245673936,.242175503,.238766054,.235424722,.232186463,.229041874,.225974528,.222997748,.220107654,.21728222,.214532886,.211851177,.209243178,.206704453,.204225201,.201811515,.199460852,.197169513,.194931154,.192734203],[3.25,1,1,1,1,1,1,1,1,.996026574,.983275259,.959302798,.923672244,.885122903,.846508188,.809858386,.773815592,.738841052,.706937853,.677918786,.650967222,.626567158,.604381956,.583852993,.564618399,.546670171,.529697499,.513584323,.498190542,.483380118,.46940367,.456057015,.443538005,.431791602,.420636299,.4100644,.400038503,.390497495,.381389168,.372659201,.364354924,.356402984,.348825976,.341595874,.33464841,.328007886,.321643758,.315482104,.309578896,.303922985,.298467198,.293217881,.288124236,.283213373,.278488486,.273939406,.269542226,.26529697,.261201445,.257238443,.253401029,.249671626,.246060855,.242556182,.239140433,.235793251,.232549323,.229384346,.226311888,.223330146,.220435236,.217600685,.214837522,.212151459,.209539347,.20699662,.204513472,.202093463,.199733412,.197434098,.195179949,.192979889],[3.3125,1,1,1,1,1,1,1,1,.996395103,.98360284,.960088993,.924583252,.88615436,.847519943,.810681754,.774798336,.7398265,.707745249,.678687452,.651794795,.627353352,.605130713,.584634529,.56543023,.547434838,.530523003,.514330035,.498812985,.484037035,.470047537,.456707149,.444163422,.432357882,.421201188,.41061358,.400571992,.391036389,.381945377,.373220709,.364884094,.356918924,.349329332,.342087874,.335174063,.328521592,.322146049,.31599484,.310080723,.304405904,.298948541,.293674289,.288567434,.283648048,.27891496,.274357982,.269967327,.265718145,.261615232,.257645096,.253791703,.250064749,.246447772,.242936861,.239514811,.236161779,.232899659,.229726817,.226649247,.223662545,.220753694,.217909547,.215142034,.212451742,.209835516,.207284837,.20479196,.202365011,.200001433,.19768646,.195428745,.193220079],[3.375,1,1,1,1,1,1,1,1,.996659586,.983930421,.960875187,.925387314,.887109029,.848485145,.811453909,.775739247,.740747822,.708496759,.679429774,.652622369,.628139547,.605864908,.585364972,.566175803,.548171896,.531281334,.515048194,.49943175,.484668798,.470691403,.457320413,.444755712,.43290913,.42171157,.411148947,.401105481,.391535887,.382448294,.373755702,.365413263,.357434864,.349832689,.342579246,.335665503,.329035299,.32264834,.316490132,.310573313,.304876802,.299407614,.294126351,.289010632,.284082723,.279341433,.274776558,.270378293,.266138002,.262024918,.258034883,.254174806,.250443946,.246834425,.243317509,.23988919,.236525416,.233247398,.230069288,.226982388,.223981007,.221067032,.218218409,.215446546,.212746589,.21012027,.207563724,.205067128,.202636558,.200256815,.197927738,.195657031,.193441196],[3.4375,1,1,1,1,1,1,1,1,.996905272,.984258002,.961580845,.926191377,.888009877,.849392293,.812226065,.776531256,.741669144,.709248268,.680139533,.653449942,.628925742,.606566868,.586019265,.566898872,.548902721,.531958843,.51571853,.500050514,.485277446,.471323237,.457907774,.445319611,.433431213,.422217832,.411669223,.401625522,.392027259,.382926385,.374255653,.365942433,.357950805,.350336045,.343070617,.336145448,.32953661,.323150631,.316971454,.311045424,.3053477,.299848846,.294567817,.28945383,.284517398,.279767907,.275195134,.270789258,.266533228,.262421464,.258424592,.25455791,.250820665,.247206522,.243697925,.240263568,.236878589,.233595138,.230402698,.22730508,.224298954,.221379689,.218520275,.215737932,.213033223,.210402977,.207842611,.205336414,.202881278,.200487082,.198154525,.195880947,.193662313],[3.5,1,1,1,1,1,1,1,1,.997150958,.984585583,.962268766,.92699544,.888910725,.850235685,.81299822,.777317451,.742512941,.709999778,.680849292,.654226101,.629689043,.607268827,.586644647,.567561922,.549597931,.532627108,.516359893,.500669278,.485874112,.471899328,.458461848,.445826834,.433953295,.422724093,.412154602,.402112871,.39251863,.383404476,.374721163,.366454578,.358466745,.350839401,.343561989,.336625392,.330005647,.323642029,.317441462,.311505432,.305801375,.300290077,.295000224,.2898919,.284952073,.28019438,.27561371,.271187381,.266919305,.262801772,.258814301,.254941013,.251197383,.247577065,.244063151,.240625126,.237227965,.233928848,.230730279,.227625622,.224608268,.221678784,.218815098,.216028602,.21331682,.210674358,.208099634,.20557554,.203114033,.200716815,.198381312,.196104863,.19388343],[3.5625,1,1,1,1,1,1,1,1,.997396644,.984913164,.962954416,.927795151,.889811573,.851032917,.813770376,.778039003,.743249999,.710751287,.681559051,.655001951,.630426101,.607926395,.587270029,.568187351,.550221318,.533295374,.51694041,.501288043,.486449611,.472429965,.458985978,.446334056,.434475377,.423230355,.412617069,.402588049,.393010002,.383882568,.375186673,.366925072,.358981753,.351342758,.344053361,.337105336,.330462916,.324087256,.317911469,.311958494,.306231325,.300731309,.295432631,.290315828,.285386748,.280617214,.276014851,.271580478,.267305383,.263181076,.259190311,.255324116,.251574101,.247947607,.244422993,.240959476,.237564737,.234257776,.231047503,.227933646,.224911762,.221976485,.219103282,.216302252,.213578703,.21093014,.208342974,.205811398,.203346788,.200946547,.198608099,.196328779,.194104548],[3.625,1,1,1,1,1,1,1,1,.997626277,.985240745,.963544062,.928509874,.890666467,.851739445,.814473624,.77867936,.743946288,.711502797,.68226881,.655702889,.631136533,.608581557,.587895411,.568749648,.550835533,.533944143,.517507377,.501906807,.486987332,.472904392,.459482042,.446841278,.434969214,.423706976,.413079536,.403037303,.393479294,.384360659,.375652183,.367378646,.359472974,.351846114,.344544732,.337572607,.330909618,.324524031,.318367163,.312397592,.306661275,.30115989,.295865038,.290739757,.285794445,.281025145,.276415228,.271973576,.267691461,.263560381,.259563075,.255695969,.251950819,.248314881,.244757687,.241282058,.237875024,.234573418,.231360194,.22823658,.2252036,.222253973,.219370731,.21656524,.213838038,.211177818,.208582019,.206047257,.203579543,.201176279,.198834886,.196552696,.194325665],[3.6875,1,1,1,1,1,1,1,1,.99774912,.985568326,.964133708,.929224596,.891438621,.852419806,.815093026,.779269006,.744565266,.712254307,.682978569,.656375292,.631824453,.60923672,.58849534,.569305112,.551430816,.5345029,.518074345,.502490598,.487478704,.47337882,.459967584,.447348501,.435437533,.424183458,.413542004,.403486557,.393938376,.384838751,.376117693,.36783222,.359915639,.352339876,.345022488,.338029697,.331356319,.324960806,.318776327,.31283669,.307091225,.301581066,.29629281,.291150752,.286191322,.281419709,.276815605,.272366673,.268077539,.263939685,.25993584,.256062415,.252310122,.2486516,.24507734,.24159404,.238178783,.234866807,.231652565,.228520402,.22547819,.222524584,.219637476,.216828227,.214090187,.211420138,.208821065,.206283115,.203812298,.201406011,.199061673,.196776612,.194546782],[3.75,1,1,1,1,1,1,1,1,.997871963,.985895907,.964698231,.929939319,.892175678,.853045,.815654594,.779858652,.745179481,.712999696,.683647893,.657047695,.632512374,.609891882,.589076052,.569839515,.552004083,.535013927,.518635937,.502937715,.487970075,.473853248,.460426197,.447819407,.435898194,.424659939,.414004471,.403935811,.394375151,.385290965,.376583203,.368285794,.360357873,.352790125,.345490461,.338486787,.331803021,.325389661,.319182243,.313239675,.307521175,.30199932,.296687706,.291555411,.286588199,.281809098,.277207815,.27275977,.268463616,.26431899,.26030598,.256410436,.252636639,.248965823,.245387001,.241892902,.238465225,.235142264,.231920586,.228795683,.22575278,.222795194,.21990422,.217084988,.214335873,.211662459,.209060111,.206518973,.204045053,.201635744,.199288459,.197000528,.194767899],[3.8125,1,1,1,1,1,1,1,1,.997994805,.986223489,.965189602,.930654041,.892912736,.853649765,.81612142,.780433031,.745793695,.713693397,.684303055,.657720099,.633186356,.61051142,.589656764,.570352251,.552513321,.535519976,.519127309,.50337449,.488460212,.474327676,.460876381,.448263226,.436358855,.425133578,.414466939,.404385066,.394811926,.385734818,.3770451,.368739368,.360784474,.353197604,.345940597,.338943877,.332249722,.325804597,.319588158,.313636954,.307927229,.30240044,.297080803,.29194386,.286985076,.282198487,.277589993,.273149694,.268849694,.264686415,.260649211,.256738062,.252936237,.249255203,.245676259,.242175088,.238741622,.235414408,.232188607,.229059703,.226023223,.223065805,.220165734,.217334134,.214581559,.211904779,.209299156,.206754832,.204277808,.201865476,.199515246,.197224444,.194989017],[3.875,1,1,1,1,1,1,1,1,.998117648,.98655107,.965680974,.931368763,.893592576,.854217742,.816542596,.780957161,.746368204,.714336577,.684958217,.658392502,.633825139,.611119785,.590237476,.570864986,.552999388,.535945667,.519601595,.503811265,.488907413,.474802039,.461302237,.448677337,.436807324,.425580279,.414929406,.40483432,.395248701,.386159788,.377484748,.369176227,.36120214,.353605083,.346356526,.33939813,.332676853,.326219533,.319994074,.314021274,.308295758,.30280156,.2974739,.29232925,.287373505,.282587876,.277972171,.273520139,.269206383,.265021336,.260971949,.257039148,.253221214,.249529082,.245945721,.242453619,.239018018,.235686552,.232456628,.229323724,.226283361,.223327351,.220418439,.21758328,.214827244,.212147099,.209538202,.20699069,.204510563,.202095208,.199742033,.19744836,.195210134],[3.9375,1,1,1,1,1,1,1,1,.998240491,.986878651,.966172346,.932083486,.894247738,.854683657,.816963772,.781481291,.746870423,.714950196,.68561338,.659064905,.634417207,.61172815,.590809135,.571372128,.553389643,.536338764,.52004794,.50424804,.489328588,.475242579,.461728092,.449089455,.437237274,.426026981,.415391874,.405283574,.395685475,.386584759,.37789632,.369596911,.361619806,.354012562,.346754303,.339822963,.333101219,.326632463,.320381697,.314397644,.308664287,.303165739,.297866998,.292714639,.287751483,.282973197,.278327218,.273845028,.269523905,.265343924,.261277519,.257322312,.253499658,.249802962,.246215183,.242718804,.239294229,.235958697,.232724649,.229587744,.226540369,.223569476,.220665582,.217832426,.21507293,.212389419,.209777248,.207226549,.204743318,.20232494,.19996882,.197672277,.195431251],[4,1,1,1,1,1,1,1,1,.998363334,.987206232,.966663717,.932798208,.8949029,.855061635,.817384948,.781997548,.747361795,.715528281,.686268542,.659722766,.635006853,.612336515,.591339448,.571836482,.553717224,.536711811,.520463716,.504684815,.489749764,.475683119,.462153947,.449501573,.437645893,.426469126,.415854341,.405732828,.39612225,.386990715,.378284245,.370000088,.362037472,.354420041,.34715208,.340192735,.333507432,.32702556,.320766248,.314774014,.309032816,.303526747,.298242417,.293093313,.288104951,.283293453,.278654799,.27415927,.269824835,.265643307,.261565564,.257605475,.253778102,.250076841,.246484645,.242983988,.239555271,.236230841,.23299267,.229849748,.226786055,.223811601,.220904248,.218075332,.215318616,.21263174,.210016293,.207462407,.204976073,.202554672,.200194176,.197890471,.195642466],[4.0625,1,1,1,1,1,1,1,1,.998486177,.987533813,.967155089,.933512931,.895542385,.855439614,.817797871,.782456161,.747853166,.716106365,.686882644,.660291723,.635596499,.612905429,.59183082,.572263761,.554044805,.537065598,.520857782,.505097554,.49017094,.476104468,.462579803,.449913692,.438045133,.426886048,.416308961,.406182082,.396538796,.387389124,.37867217,.370390588,.362443573,.35482752,.347528792,.34054589,.33387681,.327418658,.3211508,.315150384,.309398334,.303877089,.298568001,.293432319,.288425371,.28359922,.278952666,.274463027,.270123168,.265924347,.261847431,.257888638,.254056546,.25035072,.246754107,.243249173,.239816312,.236489684,.233259838,.230099101,.227031741,.224053726,.221142915,.218310637,.215557403,.21287406,.210255339,.207697318,.205203402,.202774616,.200408363,.198101947,.195843127],[4.125,1,1,1,1,1,1,1,1,.99860902,.987861394,.967646461,.934190293,.896115651,.855817592,.81814885,.782896757,.748344538,.716684449,.68748321,.66086068,.636180804,.613420199,.592285203,.572691041,.554372386,.537391845,.521197963,.505497931,.490592115,.47651112,.463005658,.45032581,.438444372,.427289508,.416742524,.406609843,.396948273,.387787534,.379060095,.370768566,.36283667,.35522517,.347885335,.340888707,.334211836,.327793256,.321527325,.315510829,.309737001,.30419821,.298867275,.293712098,.288727753,.283895897,.279243849,.274762036,.270418699,.266200205,.262118533,.258170245,.25433499,.250624599,.247023569,.243514358,.240077353,.23674671,.233501841,.230348454,.227277427,.224295852,.221381581,.218545942,.215789043,.213103765,.21048476,.207920074,.205423226,.202991585,.200622551,.198305601,.196039675],[4.1875,1,1,1,1,1,1,1,1,.998731863,.988188975,.968137832,.934815675,.896688918,.85619557,.818454678,.783277486,.74883591,.717249981,.688083775,.661424719,.636721313,.613892636,.592731904,.573084666,.554699967,.537706323,.521525075,.505898308,.491013291,.476917772,.463431514,.450737928,.438843612,.427676649,.417127218,.407031018,.397357749,.388185943,.37944802,.371146544,.363210146,.35557004,.348236314,.341226562,.334533385,.328119284,.321877913,.315847042,.31005524,.304486706,.299142443,.293981871,.289010944,.284192575,.279535032,.275047925,.270699483,.266476063,.262389634,.258436751,.254613434,.250898479,.247293031,.243779542,.240338394,.236988972,.233740081,.230588786,.227523113,.224537977,.221615582,.218771824,.216007431,.213319161,.210702365,.208142829,.20564305,.203208555,.200829286,.198504638,.196236224],[4.25,1,1,1,1,1,1,1,1,.998854706,.988516556,.968629204,.935441057,.897262185,.856573548,.818735462,.783605067,.749327281,.717770257,.688680001,.661941952,.637261822,.614324968,.593171265,.573440456,.555027548,.538020801,.521827457,.506283599,.491404269,.477324425,.463828747,.451150046,.439242851,.428039892,.417496918,.407452194,.397767226,.388584353,.379835945,.371514456,.363530142,.355894979,.348567863,.341546524,.334839304,.328406615,.322191597,.316154508,.310341873,.30476749,.299417612,.294251644,.289275528,.284485779,.279826216,.275333814,.270980267,.26675192,.262660736,.258703258,.254878409,.251172358,.247562492,.244044727,.240585691,.237230878,.233978322,.230819267,.227752676,.224766091,.221840209,.218993287,.216225818,.213534557,.21091485,.208356819,.205862874,.203418464,.201030875,.198703675,.196432773],[4.3125,1,1,1,1,1,1,1,1,.998977549,.988844137,.969120576,.93606644,.897835452,.856951526,.819016246,.783932648,.749814708,.71828727,.689225969,.662459185,.637802331,.614746143,.593573296,.57378228,.555355129,.538335279,.52212984,.506647578,.491790347,.477731077,.464221845,.451562164,.439617009,.428397253,.417843769,.407854563,.398176702,.388982762,.380200825,.371839625,.363824965,.356189344,.34887156,.341849096,.335122612,.32867339,.322455732,.316435349,.310628507,.305048274,.29969278,.294521416,.289540113,.284747485,.280117399,.275619703,.27126105,.267027778,.262931838,.258969765,.255140474,.251437358,.247831954,.244297226,.240827684,.237463875,.234202597,.231039284,.227969458,.224989067,.222064836,.21921475,.216444205,.213749952,.211127335,.208566471,.206066806,.203622671,.201232463,.198902711,.196629321],[4.375,1,1,1,1,1,1,1,1,.999100392,.989171719,.969611947,.936691822,.898359269,.857329505,.819297029,.784260229,.750244548,.718749737,.689771938,.662976419,.638313374,.615167319,.593975328,.574124104,.555682711,.538649757,.522432222,.507004949,.492176425,.478135647,.464614942,.451942365,.439985538,.428754614,.418190619,.408216357,.398571658,.389335694,.380537026,.372142007,.364116541,.356460773,.349143561,.342126871,.335390633,.328935455,.3227121,.316707172,.31091514,.305329057,.299967948,.294791189,.289804698,.285007077,.280387991,.275905592,.271541834,.267303636,.263202939,.259236271,.255402539,.251695126,.248085397,.244532903,.241058015,.237690662,.234425948,.231259301,.228186239,.225202707,.222286536,.219436214,.216662593,.213965348,.21133982,.208770155,.206260769,.203816951,.201434051,.199101748,.19682587],[4.4375,1,1,1,1,1,1,1,1,.999223235,.9894993,.970103319,.937317204,.898850641,.857707483,.819577813,.784587811,.750613077,.719169952,.690287505,.663493652,.638799424,.615588495,.594337392,.574465928,.556010292,.538940057,.522715244,.50733253,.492548305,.478508411,.46498083,.452291081,.440354066,.429102005,.418516514,.408519536,.398926537,.389680983,.380849097,.372429651,.364376214,.35670277,.349381586,.342378999,.335658654,.32919752,.322968468,.316960031,.311182747,.305609841,.300243116,.295060962,.290069283,.28526667,.280642776,.276185825,.271822618,.267579494,.263474041,.259502778,.255664604,.251942459,.248323157,.24476689,.241288345,.237917449,.234649298,.231479318,.228403021,.225416347,.222497124,.219656674,.21688098,.214180744,.211546929,.208966703,.206454731,.204008395,.201625156,.199300785,.197022419],[4.5,1,1,1,1,1,1,1,1,.999346078,.989826881,.970594691,.937942586,.899342012,.858085461,.819858597,.784915392,.750981606,.719574611,.690778876,.664010885,.639241658,.616009671,.594694753,.574782151,.556337873,.539215225,.522979829,.507660111,.492899285,.478852945,.465335954,.452622305,.44069361,.429429586,.418821674,.408800319,.399281417,.390014455,.381138637,.372682724,.3646219,.356942463,.349615572,.342630398,.335923677,.329459585,.323224836,.317210944,.311445298,.30588482,.300518284,.295330734,.290333867,.285526262,.280897561,.276438241,.272103402,.267855351,.263745142,.259769285,.255917428,.252184117,.248560918,.245000876,.241518676,.238144236,.234872649,.231699335,.228619803,.225629987,.222707712,.219864296,.217099368,.214391375,.211746134,.209163252,.206648694,.204199838,.201814145,.199489133,.197218967],[4.5625,1,1,1,1,1,1,1,1,.99946892,.990154462,.971086062,.938567968,.899833384,.858463439,.820139381,.785184145,.751350135,.71997927,.691270248,.66451332,.639683893,.616430846,.595008714,.575081247,.556665454,.539490393,.523244414,.507956953,.49322043,.479191822,.465663535,.452939319,.4410164,.429738114,.419110716,.40907956,.39957388,.390306622,.381397254,.37293471,.364867586,.357182157,.349849559,.342860719,.336169363,.32972165,.323481203,.317461857,.311690984,.306145548,.300793452,.295600507,.290598452,.285785855,.281152346,.276688393,.272368721,.268131209,.264016244,.260027805,.256163114,.252425775,.248798678,.245234863,.241749006,.238371023,.235096,.231919352,.228836584,.225843626,.222918299,.220071918,.21730084,.214593309,.211945339,.209359801,.206842656,.204391282,.202003134,.19967573,.197404691],[4.625,1,1,1,1,1,1,1,1,.999591763,.990482043,.971577434,.93919335,.900324756,.858841417,.820420165,.785446209,.751718663,.720383464,.69176162,.66497883,.640126127,.616852022,.595321405,.575380343,.556993035,.539765561,.523508999,.508217968,.493501213,.479530699,.465991116,.45325566,.441297836,.430032935,.419383055,.409332266,.399793875,.390586592,.38165587,.373186695,.365113272,.35742185,.350083545,.343089264,.336415049,.329977154,.323737571,.31771277,.31193667,.306397334,.301055853,.29587028,.290863037,.286045448,.281407132,.276938546,.272630546,.26839938,.264280665,.260277655,.2564088,.252667433,.249036439,.245468849,.241979337,.23859781,.235319351,.23213937,.229053366,.226057266,.223128887,.220276059,.217491929,.214784468,.212144544,.209556349,.207036619,.204582725,.202192123,.199862327,.197588955],[4.6875,1,1,1,1,1,1,1,1,.999714606,.990809624,.972068806,.939809914,.900816127,.859219396,.820700948,.78566582,.752087192,.720730315,.692252991,.6654212,.640568362,.617227514,.595634096,.575679438,.557319798,.540040729,.523742504,.508472753,.493781997,.479838729,.466312065,.453536494,.441555155,.430300956,.419643193,.409572514,.400012263,.390839402,.381914487,.373438681,.365358958,.357661544,.350317532,.343317809,.336638831,.33021738,.323993939,.317963684,.312182356,.306638005,.301311367,.296139868,.291127622,.28630504,.281661917,.277188699,.272876232,.268652679,.264534644,.260527505,.256654486,.252909092,.249274199,.245702836,.242209667,.238824597,.235542701,.232359387,.229270148,.226270906,.223336671,.220469839,.217683018,.21497294,.212334927,.209752898,.207230581,.204774169,.202381112,.200048923,.197773219],[4.75,1,1,1,1,1,1,1,1,.999837449,.991137205,.972560177,.94029578,.901307499,.859597374,.820981732,.785862369,.752455721,.721077165,.692744363,.665834987,.640992433,.617601892,.595946787,.575978534,.557606432,.540312536,.523969291,.508715752,.494062781,.480124848,.466585302,.453790105,.441800841,.430545215,.419903331,.409797141,.400214424,.391078448,.382173104,.373690666,.365604644,.357901237,.350551519,.343546354,.336862182,.330456765,.324240327,.318214597,.312428042,.306878677,.301552817,.296390372,.291392206,.286564633,.281916702,.277438852,.273118027,.268894055,.264771858,.260777355,.256900172,.25315075,.24951196,.245936822,.242439998,.239051384,.235766052,.232579404,.229486929,.226482445,.22353322,.22066362,.217874107,.215161411,.212520851,.209942526,.207424544,.204965612,.202570101,.200231113,.197948765],[4.8125,1,1,1,1,1,1,1,1,.999960292,.991428466,.973051549,.940742481,.901798871,.85994968,.821262516,.786058918,.752770398,.721424016,.693183663,.666248773,.641385531,.617964102,.596259478,.57627763,.557893065,.540548394,.524196078,.508934139,.494323921,.480358367,.466847367,.454043717,.442046526,.430783456,.420136149,.410021768,.400405513,.391280496,.382425534,.373942652,.365850329,.358140931,.350785505,.343774899,.337085533,.330675152,.324475331,.31846551,.312673727,.307119349,.301788675,.296640875,.291649825,.286824225,.282171488,.277686606,.273346163,.26913543,.265009072,.261017625,.257145858,.253392408,.24974972,.246170809,.242670328,.239278171,.235989403,.232799421,.229702337,.226681843,.223729769,.2208574,.218065196,.215349882,.212706776,.210125971,.207613434,.205148864,.202746512,.20040527,.198120745],[4.875,1,1,1,1,1,1,1,1,1,.991541,.973542921,.941189183,.902267615,.860252062,.8215433,.786255466,.753077505,.721770867,.693605488,.66666256,.641776259,.618291683,.596572169,.576576726,.558179699,.540784252,.524422865,.509152527,.494569607,.480561693,.467109432,.454297328,.442292212,.431008456,.420364292,.410225966,.400596602,.39146642,.382658289,.374194637,.366096015,.358380624,.351019492,.344003444,.337308883,.330893539,.324708276,.318704147,.312919413,.307360021,.302024534,.296872394,.291895511,.287083818,.282425429,.27791889,.2735743,.269376806,.265246286,.261250818,.257389253,.253634066,.249987481,.246404795,.242900659,.239504958,.236212754,.233018819,.229904667,.22688124,.223926317,.22105118,.218256285,.215538354,.2128927,.210309417,.207794465,.205327544,.202922902,.200579427,.198292725],[4.9375,1,1,1,1,1,1,1,1,1,.991650193,.974034292,.941635884,.902677091,.860554445,.821824084,.786452015,.753384612,.722117717,.693910095,.667076347,.642120219,.618619265,.59688486,.576875822,.558466332,.541020111,.524649652,.509370914,.494801445,.480765019,.467371497,.454550939,.442537898,.431216917,.420566622,.410422515,.400787691,.391652345,.382891044,.374446623,.366341701,.358620318,.351253478,.344231989,.337532234,.331111927,.324921915,.318934151,.313165099,.307600693,.302260392,.297103628,.292136379,.287329918,.282662015,.278151175,.273802437,.269607123,.2654835,.261484012,.25761856,.253875724,.250225241,.246638782,.243130989,.239731745,.236436104,.233224169,.230106997,.227080637,.224122866,.221244961,.218447374,.215726825,.213078625,.210492862,.207975497,.205506225,.203099292,.200753584,.198464705],[5,1,1,1,1,1,1,1,1,1,.991759387,.974525664,.942082586,.903086567,.860856828,.822104868,.786648564,.753644986,.722432056,.694131155,.667490133,.642464179,.618946846,.597197551,.577174917,.558721205,.541255969,.524876439,.509589301,.495012033,.480968345,.467633561,.45480455,.442754654,.431425378,.420744096,.410619064,.40097878,.391838269,.383123799,.374673494,.366587387,.358860011,.351487465,.344460534,.337755585,.331330314,.325135555,.319160991,.313396796,.307841365,.30249625,.297334862,.292363166,.287553224,.282897026,.27838346,.274030574,.269831258,.265720714,.261717205,.257847867,.254106033,.250463002,.246872768,.24336132,.239958532,.23664473,.233429518,.230309326,.227280034,.224319415,.221438741,.218638463,.215915296,.213264549,.210676308,.208156529,.205684905,.203275682,.200927741,.198636685]],ratio_pv=1,ratio_bat=1,eigen=.25,autark=.25,dir_eigen=.1,dir_autarkie=.1,last_start=4e3,last_min=1e3,last_max=3e4,pv_start=8,pv_min=0,pv_max=20,bat_start=9,bat_min=0,bat_max=20,last=last_start,pv=pv_start,bat=bat_start,dachaus_min=80,dachaus_max=120,dachaus_start=100,dachaus=dachaus_start,dachausrange=["west","südwest","süd","südost","ost"],dachausrangeval=[.8,.9,1,.9,.8],sliderLast=document.getElementById("slider-range-last"),sliderPV=document.getElementById("slider-range-pv"),sliderBat=document.getElementById("slider-range-bat"),sliderDachaus=document.getElementById("slider-range-dachaus"),displaychart=document.getElementById("chart-eigen"),chart_eigen=null,chart_autark=null;function initSlider(){createSlider(sliderLast,last,last_min,last_max,100),createSlider(sliderPV,pv,pv_min,pv_max,.1),createSlider(sliderBat,bat,bat_min,bat_max,.1),createSlider(sliderDachaus,dachaus,dachaus_min,dachaus_max,10),sliderLast.noUiSlider.on("update",(function(){last=sliderLast.noUiSlider.get(),$("#amount-last").val(""+parseInt(last)),SetRatioPV(last,sliderPV.noUiSlider.get()),SetRatioBat(last,sliderBat.noUiSlider.get()),GetResults()})),sliderPV.noUiSlider.on("update",(function(){pv=sliderPV.noUiSlider.get(),$("#amount-pv").val(""+pv),SetRatioPV(sliderLast.noUiSlider.get(),pv),GetResults()})),sliderBat.noUiSlider.on("update",(function(){bat=sliderBat.noUiSlider.get(),$("#amount-bat").val(""+bat),SetRatioBat(sliderLast.noUiSlider.get(),bat),GetResults()})),$("#amount-dachaus").prop("readonly",!0),sliderDachaus.noUiSlider.on("update",(function(){dachaus=sliderDachaus.noUiSlider.get(),$("#amount-dachaus").val(dachausname(dachaus)),SetRatioPV(last,pv),GetResults()}))}function dachausname(e){return dachausrange[(parseInt(e)-80)/10]}function dachausfaktor(e){return dachausrangeval[(parseInt(e)-80)/10]}function createSlider(e,t,r,a,n){noUiSlider.create(e,{start:[t],step:n,range:{min:[r],max:[a]}})}function initHandler(){$("#amount-last").change((function(){var e=$("#amount-last").val().replace(",","."),t=last_min,r=last_max;(!IsNumber(e)||er)&&(alert("Bitte geben Sie einen gültigen Stromverbrauch im Bereich von "+t+" bis "+r+" kWh ein."),e=last_start),last=e,$("#amount-last").val(last),sliderLast.noUiSlider.set(last),SetRatioPV(last,pv),SetRatioBat(last,bat),GetResults()})),$("#amount-pv").change((function(){var e=$("#amount-pv").val().replace(",","."),t=pv_min,r=pv_max;(!IsNumber(e)||er)&&(alert("Bitte geben Sie eine gültige PV-Leistung im Bereich von "+t+" bis "+r+" kWp ein."),e=pv_start),pv=e,$("#amount-pv").val(pv),sliderPV.noUiSlider.set(pv),SetRatioPV(last,pv),GetResults()})),$("#amount-bat").change((function(){var e=$("#amount-bat").val().replace(",","."),t=bat_min,r=bat_max;(!IsNumber(e)||er)&&(alert("Bitte geben Sie eine gültige Batteriekapazität im Bereich von "+t+" bis "+r+" kWh ein."),e=bat_start),bat=e,$("#amount-bat").val(bat),sliderBat.noUiSlider.set(bat),SetRatioBat(last,bat),GetResults()}))}function IsNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function initInput(){var e=getParameterByName("l");IsNumber(e)&&(last=last_start=e,sliderLast.noUiSlider.set(e));var t=getParameterByName("p");IsNumber(t)&&(pv=pv_start=t,sliderPV.noUiSlider.set(t));var r=getParameterByName("b");IsNumber(r)&&(bat=bat_start=r,sliderBat.noUiSlider.set(r)),$("#amount-last").val(""+last),$("#amount-pv").val(""+pv),$("#amount-bat").val(""+bat),SetRatioPV(last,pv),SetRatioBat(last,bat)}function getParameterByName(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null==t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function SetRatioPV(e,t){t*=dachausfaktor(dachaus),ratio_pv=GetProzentLabels(t/e*1e3)}function SetRatioBat(e,t){ratio_bat=GetProzentLabels(t/e*1e3)}function SucheWertAusMatrix(e,t,r){var a=Math.ceil(t/.0625)+1,n=Math.ceil(r/.0625)+1,s=e[n-1][a-1],i=e[n-1][a],o=e[n][a-1],u=e[n][a],l=s+(t-e[0][a-1])*(i-s)/(e[0][a]-e[0][a-1]),m=o+(t-e[0][a-1])*(u-o)/(e[0][a]-e[0][a-1]);return n>1?l+(r-e[n-1][0])*(m-l)/(e[n][0]-e[n-1][0]):m}function GetResults(){GetEigenverbrauch(),GetAutarkie(),GetDirektverbrauchEigen(),GetDirektverbrauchAutarkie(),SetCharts(),localforage.setItem("unabh",{last:last,bat:bat,pv:pv,dachaus:dachaus})}function GetEigenverbrauch(){eigen=ratio_pv<=0?1:SucheWertAusMatrix(tabelleEigenverbrauch,ratio_pv,ratio_bat)}function GetAutarkie(){autark=ratio_pv<=0?0:SucheWertAusMatrix(tabelleAutarkie,ratio_pv,ratio_bat)}function GetDirektverbrauchEigen(){dir_eigen=ratio_pv<=0?0:SucheWertAusMatrix(tabelleEigenverbrauch,ratio_pv,0)}function GetDirektverbrauchAutarkie(){dir_autarkie=ratio_pv<=0?0:SucheWertAusMatrix(tabelleAutarkie,ratio_pv,0)}function GetProzent(e,t){var r=Math.pow(10,t);return Math.round(100*e*r)/r}function GetProzentCharts(e){return GetProzent(e,2)}function GetProzentLabels(e){return GetProzent(e,4)/100}function SetCharts(e){if(e=e||"",displaychart){if(chart_eigen){chart_eigen.load({columns:[["Direktverbrauch",GetProzentCharts(dir_eigen)],["Batterieladung",GetProzentCharts(eigen-dir_eigen)],["Netzeinspeisung",GetProzentCharts(1-eigen)]]});var t=GetProzent(eigen,0);t=isNaN(t)?"":t+"%",d3.select("#chart-eigen .c3-chart-arcs-title").node().innerHTML=t}else chart_eigen=c3.generate({bindto:"#chart-eigen",data:{columns:[["Direktverbrauch",GetProzentCharts(dir_eigen)],["Batterieladung",GetProzentCharts(eigen-dir_eigen)],["Netzeinspeisung",GetProzentCharts(1-eigen)]],type:"donut"},donut:{title:GetProzent(eigen,0)+"%",label:{format:function(t,r,a){return"small"==e?"":parseInt(t)+"%"}}},color:{pattern:["#FFC000","#76B500","#BFBFBF"]},transition:{duration:0}});if(chart_autark){chart_autark.load({columns:[["Direktverbrauch",GetProzentCharts(dir_autarkie)],["Batterieentladung",GetProzentCharts(autark-dir_autarkie)],["Netzbezug",GetProzentCharts(1-autark)]]});t=GetProzent(autark,0);t=isNaN(t)?"":t+"%",d3.select("#chart-autark .c3-chart-arcs-title").node().innerHTML=t}else chart_autark=c3.generate({bindto:"#chart-autark",data:{columns:[["Direktverbrauch",GetProzentCharts(dir_autarkie)],["Batterieentladung",GetProzentCharts(autark-dir_autarkie)],["Netzbezug",GetProzentCharts(1-autark)]],type:"donut"},donut:{title:GetProzent(autark,0)+"%",label:{format:function(t,r,a){return"small"==e?"":parseInt(t)+"%"}}},color:{pattern:["#FFC000","#336600","#595959"]},transition:{duration:0}})}}function initRechner(){localforage.getItem("unabh",(function(e,t){if(t)try{last=t.last,pv=t.pv,bat=t.bat,dachaus=100|t.dachaus}catch(e){}initSlider(),initHandler(),initInput(),GetResults()}))}$((function(){initRechnerWerte()}));var strompreis_min=0,strompreis_max=1,strompreis_start=.25,strompreis=strompreis_start,stromper_min=0,stromper_max=10,stromper_start=3.4,stromper=stromper_start,stromverg_min=0,stromverg_max=1,stromverg_start=.12,stromverg=stromverg_start,laufzeit_min=1,laufzeit_max=50,laufzeit_start=20,laufzeit=laufzeit_start,invest_min=0,invest_max=3e4,invest_start=5e3,invest=invest_start,invest_netto=0,eva_min=0,eva_max=20,eva_start=0,eva=eva_start,kfw_min=0,kfw_max=2e4,kfw_start=0,kfw=kfw_start,sliderStrompreis=document.getElementById("slider-range-strompreis"),sliderStromper=document.getElementById("slider-range-stromper"),sliderStromverg=document.getElementById("slider-range-stromverg"),sliderLaufzeit=document.getElementById("slider-range-laufzeit"),sliderInvest=document.getElementById("slider-range-invest"),sliderEva=document.getElementById("slider-range-eva"),sliderKfw=document.getElementById("slider-range-kfw"),chart_jahr=null,chart_lz=null;function initSliderND(){createSlider(sliderStrompreis,strompreis,strompreis_min,strompreis_max,.01),createSlider(sliderStromper,stromper,stromper_min,stromper_max,.1),createSlider(sliderStromverg,stromverg,stromverg_min,stromverg_max,.01),createSlider(sliderLaufzeit,laufzeit,laufzeit_min,laufzeit_max,1),createSlider(sliderInvest,invest,invest_min,invest_max,100),createSlider(sliderEva,eva,eva_min,eva_max,.5),createSlider(sliderKfw,kfw,kfw_min,kfw_max,100),sliderStrompreis.noUiSlider.on("update",(function(){strompreis=sliderStrompreis.noUiSlider.get(),$("#amount-strompreis").val(""+strompreis),GetResults()})),sliderStromverg.noUiSlider.on("update",(function(){stromverg=sliderStromverg.noUiSlider.get(),$("#amount-stromverg").val(""+stromverg),GetResults()})),sliderLaufzeit.noUiSlider.on("update",(function(){laufzeit=sliderLaufzeit.noUiSlider.get(),$("#amount-laufzeit").val(""+parseInt(laufzeit)),GetResults()})),sliderStromper.noUiSlider.on("update",(function(){stromper=sliderStromper.noUiSlider.get(),$("#amount-stromper").val(""+stromper),GetResults()})),sliderInvest.noUiSlider.on("update",(function(){invest=sliderInvest.noUiSlider.get(),$("#amount-invest").val(""+parseInt(invest)),GetResults()})),sliderEva.noUiSlider.on("update",(function(){eva=sliderEva.noUiSlider.get(),$("#amount-eva").val(""+eva),GetResults()})),sliderKfw.noUiSlider.on("update",(function(){kfw=sliderKfw.noUiSlider.get(),$("#amount-kfw").val(""+parseInt(kfw)),GetResults()}))}function initHandlerND(){$("#amount-strompreis").change((function(){strompreis=checkRange("#amount-strompreis",strompreis_min,strompreis_max,strompreis),sliderStrompreis.noUiSlider.set(strompreis),GetResults()})),$("#amount-stromverg").change((function(){stromverg=checkRange("#amount-stromverg",stromverg_min,stromverg_max,stromverg),sliderStromverg.noUiSlider.set(stromverg),GetResults()})),$("#amount-laufzeit").change((function(){laufzeit=checkRange("#amount-laufzeit",laufzeit_min,laufzeit_max,laufzeit),sliderLaufzeit.noUiSlider.set(laufzeit),GetResults()})),$("#amount-stromper").change((function(){stromper=checkRange("#amount-stromper",stromper_min,stromper_max,stromper),sliderStromper.noUiSlider.set(stromper),GetResults()})),$("#amount-invest").change((function(){invest=checkRange("#amount-invest",invest_min,invest_max,invest),sliderInvest.noUiSlider.set(invest),GetResults()})),$("#amount-eva").change((function(){eva=checkRange("#amount-eva",eva_min,eva_max,eva),sliderEva.noUiSlider.set(eva),GetResults()})),$("#amount-kfw").change((function(){kfw=checkRange("#amount-kfw",kfw_min,kfw_max,kfw),sliderKfw.noUiSlider.set(kfw),GetResults()})),invest_netto?$("#netto").prop("checked",!0):$("#addunit-invest").removeClass("hidden"),$("#netto").change((function(){(invest_netto=$(this).is(":checked")?1:0)?$("#addunit-invest").addClass("hidden"):$("#addunit-invest").removeClass("hidden"),GetResults()}))}function checkRange(e,t,r,a){var n=$(e).val().replace(",",".");return(!IsNumber(n)||nr)&&(alert("Bitte geben Sie einen gültigen Wert im Bereich von "+t+" bis "+r+" ein."),n=a),$(e).val(n),n}function SetBarCharts(){if(chart_jahr?chart_jahr.load({columns:[["ohne PV",parseInt(GetStromkostenOhnePV())],["mit PV",parseInt(GetStromkosten())]]}):(chart_jahr=c3.generate({bindto:"#chart-jahr",data:{columns:[["ohne PV",parseInt(GetStromkostenOhnePV())],["mit PV",parseInt(GetStromkosten())]],type:"bar"},bar:{width:{ratio:.5}},axis:{rotated:!0}}),d3.select("#chart-jahr svg").append("text").attr("x",50).attr("y",10).style("text-anchor","start").text("Stromkosten")),chart_lz){var e=parseInt(GetStromkostenLZ())-kfw+GetInvest();chart_lz.load({columns:[["ohne PV",parseInt(GetStromkostenOhnePVLZ())],["mit PV",e]]})}else{e=parseInt(GetStromkostenLZ())-kfw+GetInvest();chart_lz=c3.generate({bindto:"#chart-lz",data:{columns:[["ohne PV",parseInt(GetStromkostenOhnePVLZ())],["mit PV",e]],type:"bar"},bar:{width:{ratio:.5}},axis:{rotated:!0}}),d3.select("#chart-lz svg").append("text").attr("x",50).attr("y",10).style("text-anchor","start").text("Kosten")}}function toNum(e){return isNaN(e)?"":Math.round(e)}function GetResults(){GetEigenverbrauch(),GetAutarkie(),GetDirektverbrauchEigen(),GetDirektverbrauchAutarkie(),SetBarCharts(),SetCharts("small"),$("#amount-stromkostenohnepv").text(toNum(GetStromkostenOhnePV())),$("#amount-stromkosteneinsparungeinkauf").text(toNum(GetStromkostenEinsparungEinkauf())),$("#amount-stromkostenreststromeinkauf").text(toNum(GetStromkostenReststromeinkauf())),$("#amount-stromkostenverkauf").text(toNum(GetStromkostenVerkauf())),$("#amount-stromkosten").text(toNum(GetStromkosten())),$("#amount-ersparnis").text(toNum(GetErsparnis())),$("#amount-stromkostenohnepvlz").text(toNum(GetStromkostenOhnePVLZ())),$("#amount-stromkostenreststromeinkauflz").text(toNum(GetStromkostenReststromeinkaufLZ())),$("#amount-stromkostenverkauflz").text(toNum(GetStromkostenVerkaufLZ())),$("#amount-stromkostenlz").text(toNum(GetStromkostenLZ())),$("#amount-ersparnislz").text(toNum(GetErsparnisLZ())),$("#amount-gesamtersparnislz").text(toNum(GetGesamtersparnisLZ())),$("#amount-gesamtkostenlz").text(toNum(GetGesamtkostenLZ())),localforage.setItem("unabh",{last:last,bat:bat,pv:pv,dachaus:dachaus}),localforage.setItem("nightday",{strompreis:strompreis,stromverg:stromverg,stromper:stromper,laufzeit:laufzeit,invest:invest,eva:eva,kfw:kfw,invest_netto:invest_netto})}function GetNetzbezugKWH(){return last*(1-autark)}function GetEigenverbrauchKWH(){return last-GetNetzbezugKWH()}function GetNetzeinspeisung(){return GetEigenverbrauchKWH()/(100*eigen)*(100*(1-eigen))}function GetStromkostenOhnePV(){return last*strompreis}function GetStromkostenEinsparungEinkauf(){return autark*last*strompreis}function GetStromkostenReststromeinkauf(){return(1-autark)*last*strompreis}function GetStromkostenVerkauf(){return GetNetzeinspeisung()*stromverg}function GetStromkosten(){return GetStromkostenReststromeinkauf()-GetStromkostenVerkauf()}function GetErsparnis(){return GetStromkostenOhnePV()-GetStromkosten()}function GetStromkostenOhnePVLZ(){return GetSummeLaufzeit(GetStromkostenOhnePV(),stromper,laufzeit)}function GetStromkostenEinsparungEinkaufLZ(){return GetSummeLaufzeit(GetStromkostenEinsparungEinkauf(),stromper,laufzeit)}function GetStromkostenReststromeinkaufLZ(){return GetSummeLaufzeit(GetStromkostenReststromeinkauf(),stromper,laufzeit)}function GetStromkostenVerkaufLZ(){return GetStromkostenVerkauf()*laufzeit}function GetStromkostenLZ(){return GetStromkostenReststromeinkaufLZ()-GetStromkostenVerkaufLZ()+GetEigenverbrauchsabgabeLZ()}function GetEigenverbrauchsabgabeLZ(){return eva/100*(eigen*last)}function GetErsparnisLZ(){return GetStromkostenOhnePVLZ()-GetStromkostenLZ()}function GetInvest(){return parseInt(invest)}function GetGesamtersparnisLZ(){return GetErsparnisLZ()-GetInvest()+parseInt(kfw)}function GetGesamtkostenLZ(){return parseInt(GetStromkostenLZ())-kfw+GetInvest()}function GetSummeLaufzeit(e,t,r){for(var a=e,n=1;n