Socket
Socket
Sign inDemoInstall

@redsift/d3-rs-progress

Package Overview
Dependencies
10
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

yarn-error.log

2

dist/d3-rs-progress.umd-es2015.min.js

@@ -1,2 +0,2 @@

(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?t(exports):'function'==typeof define&&define.amd?define(['exports'],t):t(e.D3RsProgress={})})(this,function(e){'use strict';function t(e){var t=e+='',n=t.indexOf(':');return 0<=n&&'xmlns'!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ua.hasOwnProperty(t)?{space:Ua[t],local:e}:e}function n(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Ya&&t.documentElement.namespaceURI===Ya?t.createElement(e):t.createElementNS(n,e)}}function a(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function i(e){var i=t(e);return(i.local?a:n)(i)}function l(){}function r(e){return null==e?l:function(){return this.querySelector(e)}}function o(e){'function'!=typeof e&&(e=r(e));for(var t=this._groups,a=t.length,l=Array(a),o=0;o<a;++o)for(var d,s,c=t[o],p=c.length,n=l[o]=Array(p),u=0;u<p;++u)(d=c[u])&&(s=e.call(d,d.__data__,u,c))&&('__data__'in d&&(s.__data__=d.__data__),n[u]=s);return new se(l,this._parents)}function d(){return[]}function s(e){return null==e?d:function(){return this.querySelectorAll(e)}}function c(e){return Array(e.length)}function p(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function u(e){return function(){return e}}function _(e,t,n,a,l,r){for(var o,d=0,i=t.length,s=r.length;d<s;++d)(o=t[d])?(o.__data__=r[d],a[d]=o):n[d]=new p(e,r[d]);for(;d<i;++d)(o=t[d])&&(l[d]=o)}function g(e,t,n,a,l,r,o){var d,i,s,c={},u=t.length,_=r.length,g=Array(u);for(d=0;d<u;++d)(i=t[d])&&(g[d]=s=Wa+o.call(i,i.__data__,d,t),s in c?l[d]=i:c[s]=i);for(d=0;d<_;++d)s=Wa+o.call(e,r[d],d,r),(i=c[s])?(a[d]=i,i.__data__=r[d],c[s]=null):n[d]=new p(e,r[d]);for(d=0;d<u;++d)(i=t[d])&&c[g[d]]===i&&(l[d]=i)}function h(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function y(e){return function(){this.removeAttribute(e)}}function m(e){return function(){this.removeAttributeNS(e.space,e.local)}}function f(e,t){return function(){this.setAttribute(e,t)}}function x(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function b(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function w(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function v(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function k(e){return function(){this.style.removeProperty(e)}}function j(e,t,n){return function(){this.style.setProperty(e,t,n)}}function S(e,t,n){return function(){var a=t.apply(this,arguments);null==a?this.style.removeProperty(e):this.style.setProperty(e,a,n)}}function T(e,t){return e.style.getPropertyValue(t)||v(e).getComputedStyle(e,null).getPropertyValue(t)}function N(e){return function(){delete this[e]}}function P(e,t){return function(){this[e]=t}}function q(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function L(e){return e.trim().split(/^|\s+/)}function M(e){return e.classList||new z(e)}function z(e){this._node=e,this._names=L(e.getAttribute('class')||'')}function O(e,t){for(var a=M(e),l=-1,i=t.length;++l<i;)a.add(t[l])}function R(e,t){for(var a=M(e),l=-1,i=t.length;++l<i;)a.remove(t[l])}function V(e){return function(){O(this,e)}}function X(e){return function(){R(this,e)}}function I(e,t){return function(){(t.apply(this,arguments)?O:R)(this,e)}}function H(){this.textContent=''}function Y(e){return function(){this.textContent=e}}function U(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?'':t}}function $(){this.innerHTML=''}function Z(e){return function(){this.innerHTML=e}}function Q(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?'':t}}function F(){this.nextSibling&&this.parentNode.appendChild(this)}function W(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K(){return null}function G(){var e=this.parentNode;e&&e.removeChild(this)}function J(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function ee(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}function te(e,t,n){return e=ne(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function ne(e,t,n){return function(){try{e.call(this,this.__data__,t,n)}finally{}}}function ae(e){return e.trim().split(/^|\s+/).map(function(e){var n='',a=e.indexOf('.');return 0<=a&&(n=e.slice(a+1),e=e.slice(0,a)),{type:e,name:n}})}function ie(e){return function(){var t=this.__on;if(t){for(var n,a=0,l=-1,i=t.length;a<i;++a)(n=t[a],(!e.type||n.type===e.type)&&n.name===e.name)?this.removeEventListener(n.type,n.listener,n.capture):t[++l]=n;++l?t.length=l:delete this.__on}}}function le(e,t,n){var a=Ka.hasOwnProperty(e.type)?te:ne;return function(l,r,i){var d,o=this.__on,s=a(t,r,i);if(o)for(var c=0,p=o.length;c<p;++c)if((d=o[c]).type===e.type&&d.name===e.name)return this.removeEventListener(d.type,d.listener,d.capture),this.addEventListener(d.type,d.listener=s,d.capture=n),void(d.value=t);this.addEventListener(e.type,s,n),d={type:e.type,name:e.name,value:t,listener:s,capture:n},o?o.push(d):this.__on=[d]}}function re(e,t,n){var a=v(e),i=a.CustomEvent;'function'==typeof i?i=new i(t,n):(i=a.document.createEvent('Event'),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function oe(e,t){return function(){return re(this,e,t)}}function de(e,t){return function(){return re(this,e,t.apply(this,arguments))}}function se(e,t){this._groups=e,this._parents=t}function ce(){return new se([[document.documentElement]],Ja)}function pe(e){return'string'==typeof e?new se([[document.querySelector(e)]],[document.documentElement]):new se([[e]],Ja)}function ue(){this._x0=this._y0=this._x1=this._y1=null,this._=''}function _e(){return new ue}function ge(e){return function(){return e}}function he(e){return 1<e?0:-1>e?pi:Da(e)}function ye(e){return 1<=e?ui:-1>=e?-ui:Math.asin(e)}function me(e){return e.innerRadius}function fe(e){return e.outerRadius}function xe(e){return e.startAngle}function be(e){return e.endAngle}function we(e){return e&&e.padAngle}function ve(e,n,a,i,l,r,o,d){var s=a-e,c=i-n,p=o-l,u=d-r,_=(p*(n-r)-u*(e-l))/(u*s-p*c);return[e+_*s,n+_*c]}function ke(e,t,n,a,i,l,o){var s=e-n,c=t-a,p=(o?l:-l)/si(s*s+c*c),u=p*c,_=-p*s,g=e+u,h=t+_,y=n+u,m=a+_,f=(g+y)/2,x=(h+m)/2,b=y-g,w=m-h,v=b*b+w*w,k=i-l,r=g*m-y*h,j=(0>w?-1:1)*si(ri(0,k*k*v-r*r)),d=(r*w-b*j)/v,A=(-r*b-w*j)/v,S=(r*w+b*j)/v,E=(-r*b+w*j)/v,T=d-f,N=A-x,P=S-f,C=E-x;return T*T+N*N>P*P+C*C&&(d=S,A=E),{cx:d,cy:A,x01:-u,y01:-_,x11:d*(i/k-1),y11:A*(i/k-1)}}function je(){function e(){var e,s,c=+t.apply(this,arguments),p=+n.apply(this,arguments),u=l.apply(this,arguments)-ui,_=o.apply(this,arguments)-ui,g=ai(_-u),h=_>u;if(d||(d=e=_e()),p<c&&(s=p,p=c,c=s),!(p>ci))d.moveTo(0,0);else if(g>_i-ci)d.moveTo(p*li(u),p*di(u)),d.arc(0,0,p,u,_,!h),c>ci&&(d.moveTo(c*li(_),c*di(_)),d.arc(0,0,c,_,u,h));else{var y,m,f=u,x=_,b=u,w=_,v=g,k=g,j=r.apply(this,arguments)/2,A=j>ci&&(i?+i.apply(this,arguments):si(c*c+p*p)),S=oi(ai(p-c)/2,+a.apply(this,arguments)),E=S,T=S;if(A>ci){var N=ye(A/c*di(j)),P=ye(A/p*di(j));(v-=2*N)>ci?(N*=h?1:-1,b+=N,w-=N):(v=0,b=w=(u+_)/2),(k-=2*P)>ci?(P*=h?1:-1,f+=P,x-=P):(k=0,f=x=(u+_)/2)}var C=p*li(f),q=p*di(f),L=c*li(w),M=c*di(w);if(S>ci){var z=p*li(x),O=p*di(x),R=c*li(b),V=c*di(b);if(g<pi){var D=v>ci?ve(C,q,R,V,z,O,L,M):[L,M],X=C-D[0],B=q-D[1],I=z-D[0],H=O-D[1],Y=1/di(he((X*I+B*H)/(si(X*X+B*B)*si(I*I+H*H)))/2),U=si(D[0]*D[0]+D[1]*D[1]);E=oi(S,(c-U)/(Y-1)),T=oi(S,(p-U)/(Y+1))}}k>ci?T>ci?(y=ke(R,V,C,q,p,T,h),m=ke(z,O,L,M,p,T,h),d.moveTo(y.cx+y.x01,y.cy+y.y01),T<S?d.arc(y.cx,y.cy,T,ii(y.y01,y.x01),ii(m.y01,m.x01),!h):(d.arc(y.cx,y.cy,T,ii(y.y01,y.x01),ii(y.y11,y.x11),!h),d.arc(0,0,p,ii(y.cy+y.y11,y.cx+y.x11),ii(m.cy+m.y11,m.cx+m.x11),!h),d.arc(m.cx,m.cy,T,ii(m.y11,m.x11),ii(m.y01,m.x01),!h))):(d.moveTo(C,q),d.arc(0,0,p,f,x,!h)):d.moveTo(C,q),c>ci&&v>ci?E>ci?(y=ke(L,M,z,O,c,-E,h),m=ke(C,q,R,V,c,-E,h),d.lineTo(y.cx+y.x01,y.cy+y.y01),E<S?d.arc(y.cx,y.cy,E,ii(y.y01,y.x01),ii(m.y01,m.x01),!h):(d.arc(y.cx,y.cy,E,ii(y.y01,y.x01),ii(y.y11,y.x11),!h),d.arc(0,0,c,ii(y.cy+y.y11,y.cx+y.x11),ii(m.cy+m.y11,m.cx+m.x11),h),d.arc(m.cx,m.cy,E,ii(m.y11,m.x11),ii(m.y01,m.x01),!h))):d.arc(0,0,c,w,b,h):d.lineTo(L,M)}return(d.closePath(),e)?(d=null,e+''||null):void 0}var t=me,n=fe,a=ge(0),i=null,l=xe,o=be,r=we,d=null;return e.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,i=(+l.apply(this,arguments)+ +o.apply(this,arguments))/2-pi/2;return[li(i)*e,di(i)*e]},e.innerRadius=function(n){return arguments.length?(t='function'==typeof n?n:ge(+n),e):t},e.outerRadius=function(t){return arguments.length?(n='function'==typeof t?t:ge(+t),e):n},e.cornerRadius=function(t){return arguments.length?(a='function'==typeof t?t:ge(+t),e):a},e.padRadius=function(t){return arguments.length?(i=null==t?null:'function'==typeof t?t:ge(+t),e):i},e.startAngle=function(t){return arguments.length?(l='function'==typeof t?t:ge(+t),e):l},e.endAngle=function(t){return arguments.length?(o='function'==typeof t?t:ge(+t),e):o},e.padAngle=function(t){return arguments.length?(r='function'==typeof t?t:ge(+t),e):r},e.context=function(t){return arguments.length?(d=null==t?null:t,e):d},e}function Ae(e){return 0>e?-1:1}function Se(e,t,n){var a=e._x1-e._x0,i=t-e._x1,l=(e._y1-e._y0)/(a||0>i&&-0),r=(n-e._y1)/(i||0>a&&-0);return(Ae(l)+Ae(r))*Ha(Ba(l),Ba(r),.5*Ba((l*i+r*a)/(a+i)))||0}function Ee(e,n){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-n)/2:n}function Te(e,t,n){var a=e._x0,i=e._y0,l=e._x1,r=e._y1,o=(l-a)/3;e._context.bezierCurveTo(a+o,i+o*t,l-o,r-o*n,l,r)}function Ne(e){this._context=e}function Pe(e){this._context=e}function Ce(e){var t=e+='',n=t.indexOf(':');return 0<=n&&'xmlns'!==(t=e.slice(0,n))&&(e=e.slice(n+1)),hi.hasOwnProperty(t)?{space:hi[t],local:e}:e}function qe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===gi&&t.documentElement.namespaceURI===gi?t.createElement(e):t.createElementNS(n,e)}}function Le(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Me(e){var t=Ce(e);return(t.local?Le:qe)(t)}function ze(e,t,n){return e=Oe(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Oe(e,t,n){return function(){try{e.call(this,this.__data__,t,n)}finally{}}}function Re(e){return e.trim().split(/^|\s+/).map(function(e){var n='',a=e.indexOf('.');return 0<=a&&(n=e.slice(a+1),e=e.slice(0,a)),{type:e,name:n}})}function Ve(e){return function(){var t=this.__on;if(t){for(var n,a=0,l=-1,i=t.length;a<i;++a)(n=t[a],(!e.type||n.type===e.type)&&n.name===e.name)?this.removeEventListener(n.type,n.listener,n.capture):t[++l]=n;++l?t.length=l:delete this.__on}}}function De(e,t,n){var a=bi.hasOwnProperty(e.type)?ze:Oe;return function(l,r,i){var d,o=this.__on,s=a(t,r,i);if(o)for(var c=0,p=o.length;c<p;++c)if((d=o[c]).type===e.type&&d.name===e.name)return this.removeEventListener(d.type,d.listener,d.capture),this.addEventListener(d.type,d.listener=s,d.capture=n),void(d.value=t);this.addEventListener(e.type,s,n),d={type:e.type,name:e.name,value:t,listener:s,capture:n},o?o.push(d):this.__on=[d]}}function Xe(){}function Be(e){return null==e?Xe:function(){return this.querySelector(e)}}function Ie(e){'function'!=typeof e&&(e=Be(e));for(var t=this._groups,a=t.length,l=Array(a),r=0;r<a;++r)for(var o,d,s=t[r],c=s.length,n=l[r]=Array(c),p=0;p<c;++p)(o=s[p])&&(d=e.call(o,o.__data__,p,s))&&('__data__'in o&&(d.__data__=o.__data__),n[p]=d);return new qt(l,this._parents)}function He(){return[]}function Ye(e){return null==e?He:function(){return this.querySelectorAll(e)}}function Ue(e){return Array(e.length)}function $e(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Ze(e){return function(){return e}}function Qe(e,t,n,a,l,r){for(var o,d=0,i=t.length,s=r.length;d<s;++d)(o=t[d])?(o.__data__=r[d],a[d]=o):n[d]=new $e(e,r[d]);for(;d<i;++d)(o=t[d])&&(l[d]=o)}function Fe(e,t,n,a,l,r,o){var d,i,s,c={},p=t.length,u=r.length,_=Array(p);for(d=0;d<p;++d)(i=t[d])&&(_[d]=s=vi+o.call(i,i.__data__,d,t),s in c?l[d]=i:c[s]=i);for(d=0;d<u;++d)s=vi+o.call(e,r[d],d,r),(i=c[s])?(a[d]=i,i.__data__=r[d],c[s]=null):n[d]=new $e(e,r[d]);for(d=0;d<p;++d)(i=t[d])&&c[_[d]]===i&&(l[d]=i)}function We(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ke(e){return function(){this.removeAttribute(e)}}function Ge(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Je(e,t){return function(){this.setAttribute(e,t)}}function et(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function tt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function nt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function at(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function it(e){return function(){this.style.removeProperty(e)}}function lt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function rt(e,t,n){return function(){var a=t.apply(this,arguments);null==a?this.style.removeProperty(e):this.style.setProperty(e,a,n)}}function ot(e,t){return e.style.getPropertyValue(t)||at(e).getComputedStyle(e,null).getPropertyValue(t)}function dt(e){return function(){delete this[e]}}function st(e,t){return function(){this[e]=t}}function ct(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function pt(e){return e.trim().split(/^|\s+/)}function ut(e){return e.classList||new _t(e)}function _t(e){this._node=e,this._names=pt(e.getAttribute('class')||'')}function gt(e,t){for(var a=ut(e),l=-1,i=t.length;++l<i;)a.add(t[l])}function ht(e,t){for(var a=ut(e),l=-1,i=t.length;++l<i;)a.remove(t[l])}function yt(e){return function(){gt(this,e)}}function mt(e){return function(){ht(this,e)}}function ft(e,t){return function(){(t.apply(this,arguments)?gt:ht)(this,e)}}function xt(){this.textContent=''}function bt(e){return function(){this.textContent=e}}function wt(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?'':t}}function vt(){this.innerHTML=''}function kt(e){return function(){this.innerHTML=e}}function jt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?'':t}}function At(){this.nextSibling&&this.parentNode.appendChild(this)}function St(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Et(){return null}function Tt(){var e=this.parentNode;e&&e.removeChild(this)}function Nt(e,t,n){var a=at(e),i=a.CustomEvent;'function'==typeof i?i=new i(t,n):(i=a.document.createEvent('Event'),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Pt(e,t){return function(){return Nt(this,e,t)}}function Ct(e,t){return function(){return Nt(this,e,t.apply(this,arguments))}}function qt(e,t){this._groups=e,this._parents=t}function Lt(e){return'string'==typeof e?new qt([[document.querySelector(e)]],[document.documentElement]):new qt([[e]],ki)}function Mt(e){function t(){p=i-s-o}function n(){u=l-r-d}function a(t){let n=t.selection?t.selection():t,o=void 0!==t.selection;n.each(function(){let n=Lt(this),d=n.select(a.self());if(d.empty()){let t=(null==e?'':e+'-')+'title',a=(null==e?'':e+'-')+'desc';d=n.append('svg').attr('version','1.1').attr('xmlns','http://www.w3.org/2000/svg').attr('xmlns:xlink','http://www.w3.org/1999/xlink').attr('preserveAspectRatio','xMidYMid meet').attr('aria-labelledby',t).attr('aria-describedby',a).attr('id',e),d.append('title').attr('id',t),d.append('desc').attr('id',a),d.append('defs'),d.append('rect').attr('class','background'),d.append('g').attr('class','svg-child')}d.attr('overflow',b?'visible':'hidden');let p=d.select('defs'),u=p.selectAll('style').data(_?[_]:[]);u.exit().remove(),u=u.enter().append('style').attr('type','text/css').merge(u),u.text(_),d.attr('role',f),d.select('title').text(y),d.select('desc').text(m);let w=d.select('rect.background').attr('width',null==h?null:i*c).attr('height',null==h?null:l*c);d.attr('class',x);let v=d.select(a.child());!0==o&&(d=d.transition(t),v=v.transition(t),w=w.transition(t)),d.attr('width',i*c).attr('height',l*c).attr('viewBox','0 0 '+i+' '+l),v.attr('transform','translate('+s+','+r+')'),w.attr('fill',h)})}let i=300,l=150,r=16,o=16,d=16,s=16,c=1,p=-1,u=-1,_=null,h=null,y=null,m=null,f='img',x='svg-svg',b=!1;return t(),n(),a.self=function(){return'svg'+(e?'#'+e:'')},a.child=function(){return'g.svg-child'},a.childDefs=function(){return'defs'},a.childWidth=function(){return p},a.childHeight=function(){return u},a.id=function(){return e},a.classed=function(e){return arguments.length?(x=e,a):x},a.style=function(e){return arguments.length?(_=e,a):_},a.background=function(e){return arguments.length?(h=e,a):h},a.width=function(e){return arguments.length?(i=e,t(),a):i},a.height=function(e){return arguments.length?(l=e,n(),a):i},a.scale=function(e){return arguments.length?(c=e,a):c},a.title=function(e){return arguments.length?(y=e,a):y},a.desc=function(e){return arguments.length?(m=e,a):m},a.role=function(e){return arguments.length?(f=e,a):f},a.overflow=function(e){return arguments.length?(b=e,a):b},a.margin=function(e){return arguments.length?(void 0===e.top?(r=e,o=e,d=e,s=e):(r=e.top,o=e.right,d=e.bottom,s=e.left),t(),n(),a):{top:r,right:o,bottom:d,left:s}},a}function zt(e){function t(t){var n=t.selection?t.selection():t,f=void 0!==t.selection,x=i||Ma(a*Ai);n.each(function(){var n=pe(this),i=Mt(e?'svg-'+e:null).width(a).height(x).scale(l).margin(Si),b=n;!0==f&&(b=n.transition(t)),b.call(i);var v=n.select(i.self()),k=v.select(i.child()),j=i.childWidth(),w=i.childHeight(),h=Ha(j,w)/2,A=15*(j/ji),S=k.select('g');u&&S.attr('style','isolation: isolate'),S.empty()&&(S=k.append('g').attr('id',e).attr('transform','translate('+-h+','+-h+'), scale('+o+'), translate('+h+','+h+')').attr('style','mix-blend-mode: difference'),S.append('circle').attr('class','bg'),S.append('path').attr('class','fg').attr('d',P).attr('transform','translate('+h+','+h+'), rotate('+s+')'),S.append('g').attr('transform','translate('+h+','+h+'), scale('+A*c+')').append('path').attr('class','icon').attr('d','M0,0l3,1c0,0,0.2,5.4-3,7c-3.2-1.6-3-7-3-7L0,0z').attr('style','mix-blend-mode: '+(u||_?'unset':'difference')).attr('transform','translate(0,-4)'));var g=S.select('circle.bg'),E=S.select('path.fg'),T=S.select('g'),N=S.select('path.icon'),P=je().innerRadius(0).outerRadius(h*d).startAngle(-(p/2)).endAngle(p/2);g.attr('r',h).attr('cx',j/2).attr('cy',w/2).attr('fill',y),E.attr('d',P).attr('fill',m),N.attr('fill',u||_?m:y).attr('stroke',y);var C=E;!0==f&&(S=S.transition(t),C=E.transition(t),T=T.transition(t)),S.attr('transform','translate('+h+','+h+'), scale('+o+'), translate('+-h+','+-h+')'),C.attr('transform','translate('+h+','+h+'), rotate('+s+')'),T.attr('transform','translate('+h+','+h+'), scale('+A*c+')')})}var n='icon-progress',a=ji,i=null,l=1,o=1,d=.8,s=0,c=.55,p=Ia,u=!1,_=!1,y='white',m='black';return t.self=function(){return'g'+(e?'#'+e:'.'+n)},t.id=function(){return e},t.parent=function(){return e?'#svg-'+e:'.svg-svg'},t.classed=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(a=e,i=null,t):a},t.width=function(e){return arguments.length?(a=e,t):a},t.height=function(e){return arguments.length?(i=e,t):i},t.scale=function(e){return arguments.length?(l=e,t):l},t.zoom=function(e){return arguments.length?(o=e,t):o},t.inset=function(e){return arguments.length?(d=e,t):d},t.rotation=function(e){return arguments.length?(s=e,t):s},t.angle=function(e){return arguments.length?(p=e,t):p},t.colors=function(e,n){return 2===arguments.length?(u=!0,y=e,m=n,t):y},t.border=function(e){return arguments.length?(_=e,t):_},t.icon=function(e){return arguments.length?(c=e,t):c},t}function Ot(){for(var e,t=0,a=arguments.length,n={};t<a;++t){if(!(e=arguments[t]+'')||e in n)throw new Error('illegal type: '+e);n[e]=[]}return new Rt(n)}function Rt(e){this._=e}function Vt(e,n){return e.trim().split(/^|\s+/).map(function(e){var a='',l=e.indexOf('.');if(0<=l&&(a=e.slice(l+1),e=e.slice(0,l)),e&&!n.hasOwnProperty(e))throw new Error('unknown type: '+e);return{type:e,name:a}})}function Dt(e,t){for(var a,l=0,i=e.length;l<i;++l)if((a=e[l]).name===t)return a.value}function Xt(e,t,a){for(var l=0,i=e.length;l<i;++l)if(e[l].name===t){e[l]=Ei,e=e.slice(0,l).concat(e.slice(l+1));break}return null!=a&&e.push({name:t,value:a}),e}function Bt(){return zi||(Vi(It),zi=Ri.now()+Oi)}function It(){zi=0}function Ht(){this._call=this._time=this._next=null}function Yt(e,n,a){var i=new Ht;return i.restart(e,n,a),i}function Ut(){Bt(),++Pi;for(var n,e=Ti;e;)0<=(n=zi-e._time)&&e._call.call(null,n),e=e._next;--Pi}function $t(){zi=(Mi=Ri.now())+Oi,Pi=Ci=0;try{Ut()}finally{Pi=0,Qt(),zi=0}}function Zt(){var e=Ri.now(),t=e-Mi;t>Li&&(Oi-=t,Mi=e)}function Qt(){for(var e,t,n=Ti,a=Infinity;n;)n._call?(a>n._time&&(a=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Ti=t);Ni=e,Ft(a)}function Ft(e){if(!Pi){Ci&&(Ci=clearTimeout(Ci));var t=e-zi;24<t?(e<Infinity&&(Ci=setTimeout($t,e-Ri.now()-Oi)),qi&&(qi=clearInterval(qi))):(!qi&&(Mi=Ri.now(),qi=setInterval(Zt,Li)),Pi=1,Vi($t))}}function Wt(e,n,a){var i=new Ht;return n=null==n?0:+n,i.restart(function(t){i.stop(),e(t+n)},n,a),i}function Kt(e,t,n,a,i,l){var r=e.__transition;if(!r)e.__transition={};else if(n in r)return;tn(e,n,{name:t,index:a,group:i,on:Di,tween:Xi,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:Bi})}function Gt(e,t){var n=en(e,t);if(n.state>Bi)throw new Error('too late; already scheduled');return n}function Jt(e,t){var n=en(e,t);if(n.state>Hi)throw new Error('too late; already started');return n}function en(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error('transition not found');return n}function tn(e,t,a){function n(s){var c,p,u,_;if(a.state!==Ii)return l();for(c in d)if(_=d[c],_.name===a.name){if(_.state===Yi)return Wt(n);_.state===Ui?(_.state=Zi,_.timer.stop(),_.on.call('interrupt',e,e.__data__,_.index,_.group),delete d[c]):+c<t&&(_.state=Zi,_.timer.stop(),delete d[c])}if(Wt(function(){a.state===Yi&&(a.state=Ui,a.timer.restart(i,a.delay,a.time),i(s))}),a.state=Hi,a.on.call('start',e,e.__data__,a.index,a.group),a.state===Hi){for(a.state=Yi,r=Array(u=a.tween.length),(c=0,p=-1);c<u;++c)(_=a.tween[c].value.call(e,e.__data__,a.index,a.group))&&(r[++p]=_);r.length=p+1}}function i(o){for(var d=o<a.duration?a.ease.call(null,o/a.duration):(a.timer.restart(l),a.state=$i,1),t=-1,i=r.length;++t<i;)r[t].call(null,d);a.state===$i&&(a.on.call('end',e,e.__data__,a.index,a.group),l())}function l(){for(var n in a.state=Zi,a.timer.stop(),delete d[t],d)return;delete e.__transition}var r,d=e.__transition;d[t]=a,a.timer=Yt(function(e){a.state=Ii,a.timer.restart(n,a.delay,a.time),a.delay<=e&&n(e-a.delay)},0,a.time)}function nn(e,t){var n,a,l,i=e.__transition,r=!0;if(i){for(l in t=null==t?null:t+'',i){if((n=i[l]).name!==t){r=!1;continue}a=n.state>Hi&&n.state<$i,n.state=Zi,n.timer.stop(),a&&n.on.call('interrupt',e,e.__data__,n.index,n.group),delete i[l]}r&&delete e.__transition}}function an(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ln(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function rn(){}function on(e){var t;return e=(e+'').trim().toLowerCase(),(t=Wi.exec(e))?(t=parseInt(t[1],16),new un(15&t>>8|240&t>>4,15&t>>4|240&t,(15&t)<<4|15&t,1)):(t=Ki.exec(e))?dn(parseInt(t[1],16)):(t=Gi.exec(e))?new un(t[1],t[2],t[3],1):(t=Ji.exec(e))?new un(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=el.exec(e))?sn(t[1],t[2],t[3],t[4]):(t=tl.exec(e))?sn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=nl.exec(e))?_n(t[1],t[2]/100,t[3]/100,1):(t=al.exec(e))?_n(t[1],t[2]/100,t[3]/100,t[4]):il.hasOwnProperty(e)?dn(il[e]):'transparent'===e?new un(NaN,NaN,NaN,0):null}function dn(e){return new un(255&e>>16,255&e>>8,255&e,1)}function sn(e,t,n,i){return 0>=i&&(e=t=n=NaN),new un(e,t,n,i)}function cn(e){return(e instanceof rn||(e=on(e)),!e)?new un:(e=e.rgb(),new un(e.r,e.g,e.b,e.opacity))}function pn(e,t,n,a){return 1===arguments.length?cn(e):new un(e,t,n,null==a?1:a)}function un(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}function _n(e,t,n,i){return 0>=i?e=t=n=NaN:0>=n||1<=n?e=t=NaN:0>=t&&(e=NaN),new hn(e,t,n,i)}function gn(e){if(e instanceof hn)return new hn(e.h,e.s,e.l,e.opacity);if(e instanceof rn||(e=on(e)),!e)return new hn;if(e instanceof hn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,a=e.b/255,i=Ha(t,n,a),r=za(t,n,a),d=NaN,c=r-i,s=(r+i)/2;return c?(d=t===r?(n-a)/c+6*(n<a):n===r?(a-t)/c+2:(t-n)/c+4,c/=.5>s?r+i:2-r-i,d*=60):c=0<s&&1>s?0:d,new hn(d,c,s,e.opacity)}function hn(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function yn(e,t,n){return 255*(60>e?t+(n-t)*e/60:180>e?n:240>e?t+(n-t)*(240-e)/60:t)}function mn(e){if(e instanceof fn)return new fn(e.l,e.a,e.b,e.opacity);if(e instanceof jn){var t=e.h*ll;return new fn(e.l,Va(t)*e.c,Ra(t)*e.c,e.opacity)}e instanceof un||(e=cn(e));var n=vn(e.r),i=vn(e.g),a=vn(e.b),l=xn((.4124564*n+.3575761*i+.1804375*a)/Kn),r=xn((.2126729*n+.7151522*i+.072175*a)/Xn),o=xn((.0193339*n+.119192*i+.9503041*a)/Yn);return new fn(116*r-16,500*(l-r),200*(r-o),e.opacity)}function fn(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function xn(e){return e>cl?La(e,1/3):e/sl+Zn}function bn(e){return e>dl?e*e*e:sl*(e-Zn)}function wn(e){return 255*(.0031308>=e?12.92*e:1.055*La(e,1/2.4)-.055)}function vn(e){return .04045>=(e/=255)?e/12.92:La((e+.055)/1.055,2.4)}function kn(e){if(e instanceof jn)return new jn(e.h,e.c,e.l,e.opacity);e instanceof fn||(e=mn(e));var t=Oa(e.b,e.a)*rl;return new jn(0>t?t+360:t,Xa(e.a*e.a+e.b*e.b),e.l,e.opacity)}function jn(e,t,n,a){this.h=+e,this.c=+t,this.l=+n,this.opacity=+a}function An(e){if(e instanceof Sn)return new Sn(e.h,e.s,e.l,e.opacity);e instanceof un||(e=cn(e));var t=e.r/255,n=e.g/255,a=e.b/255,i=(_l*a+E*t-ul*n)/(_l+E-ul),l=a-i,r=(D*(n-i)-B*l)/C,o=Xa(r*r+l*l)/(D*i*(1-i)),d=o?Oa(r,l)*rl-120:NaN;return new Sn(0>d?d+360:d,o,i,e.opacity)}function Sn(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function En(e){return function(){return e}}function Tn(e,n){return function(a){return e+a*n}}function Nn(e,n,a){return e=La(e,a),n=La(n,a)-e,a=1/a,function(i){return La(e+i*n,a)}}function Pn(e){return 1==(e=+e)?Cn:function(t,n){return n-t?Nn(t,n,e):En(isNaN(t)?n:t)}}function Cn(e,t){var n=t-e;return n?Tn(e,n):En(isNaN(e)?t:e)}function qn(e,n){return e=+e,n-=e,function(a){return e+n*a}}function Ln(e){return function(){return e}}function Mn(e){return function(n){return e(n)+''}}function zn(e,n){var t,a,l,r=xl.lastIndex=bl.lastIndex=0,o=-1,d=[],s=[];for(e+='',n+='';(t=xl.exec(e))&&(a=bl.exec(n));)(l=a.index)>r&&(l=n.slice(r,l),d[o]?d[o]+=l:d[++o]=l),(t=t[0])===(a=a[0])?d[o]?d[o]+=a:d[++o]=a:(d[++o]=null,s.push({i:o,x:qn(t,a)})),r=bl.lastIndex;return r<n.length&&(l=n.slice(r),d[o]?d[o]+=l:d[++o]=l),2>d.length?s[0]?Mn(s[0].x):Ln(n):(n=s.length,function(e){for(var t,a=0;a<n;++a)d[(t=s[a]).i]=t.x(e);return d.join('')})}function On(t,n,i,l,r,o){var d,s,c;return(d=Xa(t*t+n*n))&&(t/=d,n/=d),(c=t*i+n*l)&&(i-=t*c,l-=n*c),(s=Xa(i*i+l*l))&&(i/=s,l/=s,c/=s),t*l<n*i&&(t=-t,n=-n,c=-c,d=-d),{translateX:r,translateY:o,rotate:Oa(n,t)*wl,skewX:Math.atan(c)*wl,scaleX:d,scaleY:s}}function Rn(e){return'none'===e?vl:(gl||(gl=document.createElement('DIV'),hl=document.documentElement,yl=document.defaultView),gl.style.transform=e,e=yl.getComputedStyle(hl.appendChild(gl),null).getPropertyValue('transform'),hl.removeChild(gl),e=e.slice(7,-1).split(','),On(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function Vn(e){return null==e?vl:(ml||(ml=document.createElementNS('http://www.w3.org/2000/svg','g')),ml.setAttribute('transform',e),!(e=ml.transform.baseVal.consolidate()))?vl:(e=e.matrix,On(e.a,e.b,e.c,e.d,e.e,e.f))}function Dn(e,t,n,i){function l(e){return e.length?e.pop()+' ':''}function r(e,a,l,r,o,d){if(e!==l||a!==r){var s=o.push('translate(',null,t,null,n);d.push({i:s-4,x:qn(e,l)},{i:s-2,x:qn(a,r)})}else(l||r)&&o.push('translate('+l+t+r+n)}function o(e,t,n,a){e===t?t&&n.push(l(n)+'rotate('+t+i):(180<e-t?t+=360:180<t-e&&(e+=360),a.push({i:n.push(l(n)+'rotate(',null,i)-2,x:qn(e,t)}))}function d(e,t,n,a){e===t?t&&n.push(l(n)+'skewX('+t+i):a.push({i:n.push(l(n)+'skewX(',null,i)-2,x:qn(e,t)})}function c(e,t,n,a,r,o){if(e!==n||t!==a){var d=r.push(l(r)+'scale(',null,',',null,')');o.push({i:d-4,x:qn(e,n)},{i:d-2,x:qn(t,a)})}else(1!==n||1!==a)&&r.push(l(r)+'scale('+n+','+a+')')}return function(t,n){var a=[],l=[];return t=e(t),n=e(n),r(t.translateX,t.translateY,n.translateX,n.translateY,a,l),o(t.rotate,n.rotate,a,l),d(t.skewX,n.skewX,a,l),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,a,l),t=n=null,function(e){for(var t,r=-1,i=l.length;++r<i;)a[(t=l[r]).i]=t.x(e);return a.join('')}}}function Bn(e,t){var a,l;return function(){var r=Jt(this,e),o=r.tween;if(o!==a){l=a=o;for(var d=0,i=l.length;d<i;++d)if(l[d].name===t){l=l.slice(),l.splice(d,1);break}}r.tween=l}}function In(e,a,l){var r,o;if('function'!=typeof l)throw new Error;return function(){var d=Jt(this,e),s=d.tween;if(s!==r){o=(r=s).slice();for(var c={name:a,value:l},t=0,i=o.length;t<i;++t)if(o[t].name===a){o[t]=c;break}t===i&&o.push(c)}d.tween=o}}function Hn(e,a){var l=this._id;if(e+='',2>arguments.length){for(var r,t=en(this.node(),l).tween,o=0,i=t.length;o<i;++o)if((r=t[o]).name===e)return r.value;return null}return this.each((null==a?Bn:In)(l,e,a))}function Un(e,t,n){var a=e._id;return e.each(function(){var e=Jt(this,a);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return en(e,a).value[t]}}function $n(e,t){var n;return('number'==typeof t?qn:t instanceof on?fl:(n=on(t))?(t=n,fl):zn)(e,t)}function Qn(e){return function(){this.removeAttribute(e)}}function Fn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Wn(e,t,n){var a,i;return function(){var l=this.getAttribute(e);return l===n?null:l===a?i:i=t(a=l,n)}}function Gn(e,t,n){var a,i;return function(){var l=this.getAttributeNS(e.space,e.local);return l===n?null:l===a?i:i=t(a=l,n)}}function Jn(e,t,n){var a,i,l;return function(){var r,o=n(this);return null==o?void this.removeAttribute(e):(r=this.getAttribute(e),r===o?null:r===a&&o===i?l:l=t(a=r,i=o))}}function ea(e,t,n){var a,i,l;return function(){var r,o=n(this);return null==o?void this.removeAttributeNS(e.space,e.local):(r=this.getAttributeNS(e.space,e.local),r===o?null:r===a&&o===i?l:l=t(a=r,i=o))}}function ta(e,t){function n(){var n=this,a=t.apply(n,arguments);return a&&function(i){n.setAttributeNS(e.space,e.local,a(i))}}return n._value=t,n}function na(e,t){function n(){var n=this,a=t.apply(n,arguments);return a&&function(i){n.setAttribute(e,a(i))}}return n._value=t,n}function aa(e,t){return function(){Gt(this,e).delay=+t.apply(this,arguments)}}function ia(e,t){return t=+t,function(){Gt(this,e).delay=t}}function la(e){var t=this._id;return arguments.length?this.each(('function'==typeof e?aa:ia)(t,e)):en(this.node(),t).delay}function ra(e,t){return function(){Jt(this,e).duration=+t.apply(this,arguments)}}function oa(e,t){return t=+t,function(){Jt(this,e).duration=t}}function da(e){var t=this._id;return arguments.length?this.each(('function'==typeof e?ra:oa)(t,e)):en(this.node(),t).duration}function sa(e,t){if('function'!=typeof t)throw new Error;return function(){Jt(this,e).ease=t}}function ca(e){var t=this._id;return arguments.length?this.each(sa(t,e)):en(this.node(),t).ease}function pa(e){return(e+'').trim().split(/^|\s+/).every(function(e){var n=e.indexOf('.');return 0<=n&&(e=e.slice(0,n)),!e||'start'===e})}function ua(e,t,n){var a,i,l=pa(t)?Gt:Jt;return function(){var r=l(this,e),o=r.on;o!==a&&(i=(a=o).copy()).on(t,n),r.on=i}}function _a(e,t){var n=this._id;return 2>arguments.length?en(this.node(),n).on.on(e):this.each(ua(n,e,t))}function ga(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ha(e){var t=this._name,a=this._id;'function'!=typeof e&&(e=r(e));for(var l=this._groups,o=l.length,d=Array(o),s=0;s<o;++s)for(var c,p,u=l[s],_=u.length,n=d[s]=Array(_),g=0;g<_;++g)(c=u[g])&&(p=e.call(c,c.__data__,g,u))&&('__data__'in c&&(p.__data__=c.__data__),n[g]=p,Kt(n[g],t,a,g,n,en(c,a)));return new ja(d,this._parents,t,a)}function ya(e){var t=this._name,a=this._id;'function'!=typeof e&&(e=s(e));for(var r=this._groups,o=r.length,d=[],c=[],p=0;p<o;++p)for(var u,_=r[p],g=_.length,n=0;n<g;++n)if(u=_[n]){for(var i,h=e.call(u,u.__data__,n,_),y=en(u,a),m=0,f=h.length;m<f;++m)(i=h[m])&&Kt(i,t,a,m,h,y);d.push(h),c.push(u)}return new ja(d,c,t,a)}function ma(e,t){var n,a,i;return function(){var l=T(this,e),r=(this.style.removeProperty(e),T(this,e));return l===r?null:l===n&&r===a?i:i=t(n=l,a=r)}}function fa(e){return function(){this.style.removeProperty(e)}}function xa(e,t,n){var a,i;return function(){var l=T(this,e);return l===n?null:l===a?i:i=t(a=l,n)}}function ba(e,t,n){var a,i,l;return function(){var r=T(this,e),o=n(this);return null==o&&(o=(this.style.removeProperty(e),T(this,e))),r===o?null:r===a&&o===i?l:l=t(a=r,i=o)}}function wa(e,t,n){function a(){var a=this,l=t.apply(a,arguments);return l&&function(i){a.style.setProperty(e,l(i),n)}}return a._value=t,a}function va(e){return function(){this.textContent=e}}function ka(e){return function(){var t=e(this);this.textContent=null==t?'':t}}function ja(e,t,n,a){this._groups=e,this._parents=t,this._name=n,this._id=a}function Aa(){return++El}function Sa(e){return 1-Va(e*Nl)}function Ea(e){return Ra(e*Nl)}function Ta(e){return(e=+e)<Pl?Dl*e*e:e<ql?Dl*(e-=Cl)*e+Ll:e<zl?Dl*(e-=Ml)*e+Ol:Dl*(e-=Rl)*e+Vl}function Na(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return Xl.time=Bt(),Xl;return n}function Pa(e){var t,a;e instanceof ja?(t=e._id,e=e._name):(t=Aa(),(a=Xl).time=Bt(),e=null==e?null:e+'');for(var l=this._groups,r=l.length,o=0;o<r;++o)for(var d,s=l[o],c=s.length,n=0;n<c;++n)(d=s[n])&&Kt(d,e,t,n,s,a||Na(d,t));return new ja(l,this._parents,e,t)}function Ca(e,t,n,a,i){a=null==a?90:a;var l=0==a%180?Sa:Ea,r=Bl;null==i&&(r=Il,l=Ta,i=1),n.value&&(i=0),e=e.rotation(a).zoom(i),t.transition().duration(r).ease(l).call(e).on('end',function(){n.value&&0==i?(t.select(e.parent()).remove(),n.done('end')):(a+=90,Ca(e,t,n,a,i))})}function qa(e,t){e=e||'body',++Hl,t=t||zt('progress-'+Hl),t.rotation(-90).zoom(0);var n=e;'string'==typeof n&&(n=pe(e)),n.call(t);var a=null,i=new Promise(function(e){a=e}),l={value:!1,done:a};return Ca(t,n,l),function(){return l.value=!0,i}}var La=Math.pow,Ma=Math.round,za=Math.max,Oa=Math.atan2,Ra=Math.sin,Va=Math.cos,Da=Math.acos,Xa=Math.sqrt,Ba=Math.abs,Ia=Math.PI,Ha=Math.min,Ya='http://www.w3.org/1999/xhtml',Ua={svg:'http://www.w3.org/2000/svg',xhtml:Ya,xlink:'http://www.w3.org/1999/xlink',xml:'http://www.w3.org/XML/1998/namespace',xmlns:'http://www.w3.org/2000/xmlns/'},$a=function(e){return function(){return this.matches(e)}};if('undefined'!=typeof document){var Za=document.documentElement;if(!Za.matches){var Qa=Za.webkitMatchesSelector||Za.msMatchesSelector||Za.mozMatchesSelector||Za.oMatchesSelector;$a=function(e){return function(){return Qa.call(this,e)}}}}var Fa=$a;p.prototype={constructor:p,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Wa='$';z.prototype={add:function(e){var t=this._names.indexOf(e);0>t&&(this._names.push(e),this._node.setAttribute('class',this._names.join(' ')))},remove:function(e){var t=this._names.indexOf(e);0<=t&&(this._names.splice(t,1),this._node.setAttribute('class',this._names.join(' ')))},contains:function(e){return 0<=this._names.indexOf(e)}};var Ka={};if('undefined'!=typeof document){var Ga=document.documentElement;'onmouseenter'in Ga||(Ka={mouseenter:'mouseover',mouseleave:'mouseout'})}var Ja=[null];se.prototype=ce.prototype={constructor:se,select:o,selectAll:function(e){'function'!=typeof e&&(e=s(e));for(var t=this._groups,a=t.length,l=[],r=[],o=0;o<a;++o)for(var d,c=t[o],p=c.length,n=0;n<p;++n)(d=c[n])&&(l.push(e.call(d,d.__data__,n,c)),r.push(d));return new se(l,r)},filter:function(e){'function'!=typeof e&&(e=Fa(e));for(var t=this._groups,a=t.length,l=Array(a),r=0;r<a;++r)for(var o,d=t[r],s=d.length,n=l[r]=[],c=0;c<s;++c)(o=d[c])&&e.call(o,o.__data__,c,d)&&n.push(o);return new se(l,this._parents)},data:function(e,t){if(!e)return y=Array(this.size()),s=-1,this.each(function(e){y[++s]=e}),y;var n=t?g:_,a=this._parents,i=this._groups;'function'!=typeof e&&(e=u(e));for(var l=i.length,r=Array(l),o=Array(l),d=Array(l),s=0;s<l;++s){var c=a[s],p=i[s],h=p.length,y=e.call(c,c&&c.__data__,s,a),m=y.length,f=o[s]=Array(m),x=r[s]=Array(m),b=d[s]=Array(h);n(c,p,f,x,b,y,t);for(var w,v,k=0,j=0;k<m;++k)if(w=f[k]){for(k>=j&&(j=k+1);!(v=x[j])&&++j<m;);w._next=v||null}}return r=new se(r,a),r._enter=o,r._exit=d,r},enter:function(){return new se(this._enter||this._groups.map(c),this._parents)},exit:function(){return new se(this._exit||this._groups.map(c),this._parents)},merge:function(e){for(var t=this._groups,a=e._groups,l=t.length,r=a.length,o=Ha(l,r),d=Array(l),s=0;s<o;++s)for(var c,p=t[s],u=a[s],_=p.length,n=d[s]=Array(_),g=0;g<_;++g)(c=p[g]||u[g])&&(n[g]=c);for(;s<l;++s)d[s]=t[s];return new se(d,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var a,l=e[t],r=l.length-1,i=l[r];0<=--r;)(a=l[r])&&(i&&i!==a.nextSibling&&i.parentNode.insertBefore(a,i),i=a);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=h);for(var a=this._groups,l=a.length,r=Array(l),o=0;o<l;++o){for(var d,s=a[o],c=s.length,n=r[o]=Array(c),p=0;p<c;++p)(d=s[p])&&(n[p]=d);n.sort(t)}return new se(r,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},node:function(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var l,r=e[t],o=0,i=r.length;o<i;++o)if(l=r[o],l)return l;return null},size:function(){var e=0;return this.each(function(){++e}),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,a=0,l=t.length;a<l;++a)for(var r,o=t[a],d=0,i=o.length;d<i;++d)(r=o[d])&&e.call(r,r.__data__,d,o);return this},attr:function(e,n){var a=t(e);if(2>arguments.length){var i=this.node();return a.local?i.getAttributeNS(a.space,a.local):i.getAttribute(a)}return this.each((null==n?a.local?m:y:'function'==typeof n?a.local?w:b:a.local?x:f)(a,n))},style:function(e,t,n){return 1<arguments.length?this.each((null==t?k:'function'==typeof t?S:j)(e,t,null==n?'':n)):T(this.node(),e)},property:function(e,t){return 1<arguments.length?this.each((null==t?N:'function'==typeof t?q:P)(e,t)):this.node()[e]},classed:function(e,t){var a=L(e+'');if(2>arguments.length){for(var l=M(this.node()),r=-1,i=a.length;++r<i;)if(!l.contains(a[r]))return!1;return!0}return this.each(('function'==typeof t?I:t?V:X)(a,t))},text:function(e){return arguments.length?this.each(null==e?H:('function'==typeof e?U:Y)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?$:('function'==typeof e?Q:Z)(e)):this.node().innerHTML},raise:function(){return this.each(F)},lower:function(){return this.each(W)},append:function(e){var t='function'==typeof e?e:i(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n='function'==typeof e?e:i(e),a=null==t?K:'function'==typeof t?t:r(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(G)},clone:function(e){return this.select(e?ee:J)},datum:function(e){return arguments.length?this.property('__data__',e):this.node().__data__},on:function(e,a,l){var r,i,t=ae(e+''),d=t.length;if(2>arguments.length){var n=this.node().__on;if(n)for(var s,o=0,c=n.length;o<c;++o)for(r=0,s=n[o];r<d;++r)if((i=t[r]).type===s.type&&i.name===s.name)return s.value;return}for(n=a?le:ie,null==l&&(l=!1),r=0;r<d;++r)this.each(n(t[r],a,l));return this},dispatch:function(e,t){return this.each(('function'==typeof t?de:oe)(e,t))}};var ei=Ia,ti=2*ei,ni=1e-6;ue.prototype=_e.prototype={constructor:ue,moveTo:function(e,t){this._+='M'+(this._x0=this._x1=+e)+','+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+='Z')},lineTo:function(e,t){this._+='L'+(this._x1=+e)+','+(this._y1=+t)},quadraticCurveTo:function(e,t,n,a){this._+='Q'+ +e+','+ +t+','+(this._x1=+n)+','+(this._y1=+a)},bezierCurveTo:function(e,t,n,a,i,l){this._+='C'+ +e+','+ +t+','+ +n+','+ +a+','+(this._x1=+i)+','+(this._y1=+l)},arcTo:function(e,t,n,a,i){e=+e,t=+t,n=+n,a=+a,i=+i;var o=this._x1,d=this._y1,s=n-e,c=a-t,p=o-e,u=d-t,_=p*p+u*u;if(0>i)throw new Error('negative radius: '+i);if(null===this._x1)this._+='M'+(this._x1=e)+','+(this._y1=t);else if(!(_>ni));else if(!(Ba(u*s-c*p)>ni)||!i)this._+='L'+(this._x1=e)+','+(this._y1=t);else{var g=n-o,h=a-d,y=s*s+c*c,m=Xa(y),f=Xa(_),x=i*Math.tan((ei-Da((y+_-(g*g+h*h))/(2*m*f)))/2),l=x/f,b=x/m;Ba(l-1)>ni&&(this._+='L'+(e+l*p)+','+(t+l*u)),this._+='A'+i+','+i+',0,0,'+ +(u*g>p*h)+','+(this._x1=e+b*s)+','+(this._y1=t+b*c)}},arc:function(e,t,n,a,i,l){e=+e,t=+t,n=+n;var o=n*Va(a),d=n*Ra(a),s=e+o,c=t+d,p=1^l,u=l?a-i:i-a;if(0>n)throw new Error('negative radius: '+n);null===this._x1?this._+='M'+s+','+c:(Ba(this._x1-s)>ni||Ba(this._y1-c)>ni)&&(this._+='L'+s+','+c);n&&(0>u&&(u=u%ti+ti),u>ti-ni?this._+='A'+n+','+n+',0,1,'+p+','+(e-o)+','+(t-d)+'A'+n+','+n+',0,1,'+p+','+(this._x1=s)+','+(this._y1=c):u>ni&&(this._+='A'+n+','+n+',0,'+ +(u>=ei)+','+p+','+(this._x1=e+n*Va(i))+','+(this._y1=t+n*Ra(i))))},rect:function(e,t,n,a){this._+='M'+(this._x0=this._x1=+e)+','+(this._y0=this._y1=+t)+'h'+ +n+'v'+ +a+'h'+-n+'Z'},toString:function(){return this._}};var ai=Ba,ii=Oa,li=Va,ri=za,oi=Ha,di=Ra,si=Xa,ci=1e-12,pi=Ia,ui=pi/2,_i=2*pi;Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Te(this,this._t0,Ee(this,this._t0));}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Te(this,Ee(this,n=Se(this,e,t)),n);break;default:Te(this,this._t0,n=Se(this,e,t));}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(function(e){this._context=new Pe(e)}.prototype=Object.create(Ne.prototype)).point=function(e,t){Ne.prototype.point.call(this,t,e)},Pe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,a,i,l){this._context.bezierCurveTo(t,e,a,n,l,i)}};var gi='http://www.w3.org/1999/xhtml',hi={svg:'http://www.w3.org/2000/svg',xhtml:gi,xlink:'http://www.w3.org/1999/xlink',xml:'http://www.w3.org/XML/1998/namespace',xmlns:'http://www.w3.org/2000/xmlns/'},yi=function(e){return function(){return this.matches(e)}};if('undefined'!=typeof document){var mi=document.documentElement;if(!mi.matches){var fi=mi.webkitMatchesSelector||mi.msMatchesSelector||mi.mozMatchesSelector||mi.oMatchesSelector;yi=function(e){return function(){return fi.call(this,e)}}}}var xi=yi,bi={};if('undefined'!=typeof document){var wi=document.documentElement;'onmouseenter'in wi||(bi={mouseenter:'mouseover',mouseleave:'mouseout'})}$e.prototype={constructor:$e,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var vi='$';_t.prototype={add:function(e){var t=this._names.indexOf(e);0>t&&(this._names.push(e),this._node.setAttribute('class',this._names.join(' ')))},remove:function(e){var t=this._names.indexOf(e);0<=t&&(this._names.splice(t,1),this._node.setAttribute('class',this._names.join(' ')))},contains:function(e){return 0<=this._names.indexOf(e)}};var ki=[null];qt.prototype=function(){return new qt([[document.documentElement]],ki)}.prototype={constructor:qt,select:Ie,selectAll:function(e){'function'!=typeof e&&(e=Ye(e));for(var t=this._groups,a=t.length,l=[],r=[],o=0;o<a;++o)for(var d,s=t[o],c=s.length,n=0;n<c;++n)(d=s[n])&&(l.push(e.call(d,d.__data__,n,s)),r.push(d));return new qt(l,r)},filter:function(e){'function'!=typeof e&&(e=xi(e));for(var t=this._groups,a=t.length,l=Array(a),r=0;r<a;++r)for(var o,d=t[r],s=d.length,n=l[r]=[],c=0;c<s;++c)(o=d[c])&&e.call(o,o.__data__,c,d)&&n.push(o);return new qt(l,this._parents)},data:function(e,t){if(!e)return _=Array(this.size()),s=-1,this.each(function(e){_[++s]=e}),_;var n=t?Fe:Qe,a=this._parents,i=this._groups;'function'!=typeof e&&(e=Ze(e));for(var l=i.length,r=Array(l),o=Array(l),d=Array(l),s=0;s<l;++s){var c=a[s],p=i[s],u=p.length,_=e.call(c,c&&c.__data__,s,a),g=_.length,h=o[s]=Array(g),y=r[s]=Array(g),m=d[s]=Array(u);n(c,p,h,y,m,_,t);for(var f,x,b=0,w=0;b<g;++b)if(f=h[b]){for(b>=w&&(w=b+1);!(x=y[w])&&++w<g;);f._next=x||null}}return r=new qt(r,a),r._enter=o,r._exit=d,r},enter:function(){return new qt(this._enter||this._groups.map(Ue),this._parents)},exit:function(){return new qt(this._exit||this._groups.map(Ue),this._parents)},merge:function(e){for(var t=this._groups,a=e._groups,l=t.length,r=a.length,o=Ha(l,r),d=Array(l),s=0;s<o;++s)for(var c,p=t[s],u=a[s],_=p.length,n=d[s]=Array(_),g=0;g<_;++g)(c=p[g]||u[g])&&(n[g]=c);for(;s<l;++s)d[s]=t[s];return new qt(d,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var a,l=e[t],r=l.length-1,i=l[r];0<=--r;)(a=l[r])&&(i&&i!==a.nextSibling&&i.parentNode.insertBefore(a,i),i=a);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=We);for(var a=this._groups,l=a.length,r=Array(l),o=0;o<l;++o){for(var d,s=a[o],c=s.length,n=r[o]=Array(c),p=0;p<c;++p)(d=s[p])&&(n[p]=d);n.sort(t)}return new qt(r,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},node:function(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var l,r=e[t],o=0,i=r.length;o<i;++o)if(l=r[o],l)return l;return null},size:function(){var e=0;return this.each(function(){++e}),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,a=0,l=t.length;a<l;++a)for(var r,o=t[a],d=0,i=o.length;d<i;++d)(r=o[d])&&e.call(r,r.__data__,d,o);return this},attr:function(e,t){var n=Ce(e);if(2>arguments.length){var a=this.node();return n.local?a.getAttributeNS(n.space,n.local):a.getAttribute(n)}return this.each((null==t?n.local?Ge:Ke:'function'==typeof t?n.local?nt:tt:n.local?et:Je)(n,t))},style:function(e,t,n){return 1<arguments.length?this.each((null==t?it:'function'==typeof t?rt:lt)(e,t,null==n?'':n)):ot(this.node(),e)},property:function(e,t){return 1<arguments.length?this.each((null==t?dt:'function'==typeof t?ct:st)(e,t)):this.node()[e]},classed:function(e,t){var a=pt(e+'');if(2>arguments.length){for(var l=ut(this.node()),r=-1,i=a.length;++r<i;)if(!l.contains(a[r]))return!1;return!0}return this.each(('function'==typeof t?ft:t?yt:mt)(a,t))},text:function(e){return arguments.length?this.each(null==e?xt:('function'==typeof e?wt:bt)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?vt:('function'==typeof e?jt:kt)(e)):this.node().innerHTML},raise:function(){return this.each(At)},lower:function(){return this.each(St)},append:function(e){var t='function'==typeof e?e:Me(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n='function'==typeof e?e:Me(e),a=null==t?Et:'function'==typeof t?t:Be(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(Tt)},datum:function(e){return arguments.length?this.property('__data__',e):this.node().__data__},on:function(e,a,l){var r,i,t=Re(e+''),d=t.length;if(2>arguments.length){var n=this.node().__on;if(n)for(var s,o=0,c=n.length;o<c;++o)for(r=0,s=n[o];r<d;++r)if((i=t[r]).type===s.type&&i.name===s.name)return s.value;return}for(n=a?De:Ve,null==l&&(l=!1),r=0;r<d;++r)this.each(n(t[r],a,l));return this},dispatch:function(e,t){return this.each(('function'==typeof t?Ct:Pt)(e,t))}};var ji=128,Ai=1,Si=2,Ei={value:function(){}};Rt.prototype=Ot.prototype={constructor:Rt,on:function(e,a){var l,t=this._,r=Vt(e+'',t),o=-1,i=r.length;if(2>arguments.length){for(;++o<i;)if((l=(e=r[o]).type)&&(l=Dt(t[l],e.name)))return l;return}if(null!=a&&'function'!=typeof a)throw new Error('invalid callback: '+a);for(;++o<i;)if(l=(e=r[o]).type)t[l]=Xt(t[l],e.name,a);else if(null==a)for(l in t)t[l]=Xt(t[l],e.name,null);return this},copy:function(){var e={},n=this._;for(var a in n)e[a]=n[a].slice();return new Rt(e)},call:function(e,a){if(0<(l=arguments.length-2))for(var l,n,t=Array(l),r=0;r<l;++r)t[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error('unknown type: '+e);for(n=this._[e],r=0,l=n.length;r<l;++r)n[r].value.apply(a,t)},apply:function(e,a,l){if(!this._.hasOwnProperty(e))throw new Error('unknown type: '+e);for(var r=this._[e],t=0,i=r.length;t<i;++t)r[t].value.apply(a,l)}};var Ti,Ni,Pi=0,Ci=0,qi=0,Li=1e3,Mi=0,zi=0,Oi=0,Ri='object'==typeof performance&&performance.now?performance:Date,Vi='object'==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};Ht.prototype=Yt.prototype={constructor:Ht,restart:function(e,t,n){if('function'!=typeof e)throw new TypeError('callback is not a function');n=(null==n?Bt():+n)+(null==t?0:+t),this._next||Ni===this||(Ni?Ni._next=this:Ti=this,Ni=this),this._call=e,this._time=n,Ft()},stop:function(){this._call&&(this._call=null,this._time=Infinity,Ft())}};var Di=Ot('start','end','interrupt'),Xi=[],Bi=0,Ii=1,Hi=2,Yi=3,Ui=4,$i=5,Zi=6,Qi=.7,Fi=1/Qi,Wi=/^#([0-9a-f]{3})$/,Ki=/^#([0-9a-f]{6})$/,Gi=/^rgb\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*\)$/,Ji=/^rgb\(\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*\)$/,el=/^rgba\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*\)$/,tl=/^rgba\(\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*\)$/,nl=/^hsl\(\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*\)$/,al=/^hsla\(\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*\)$/,il={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};an(rn,on,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+''}}),an(un,pn,ln(rn,{brighter:function(e){return e=null==e?Fi:La(Fi,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Qi:La(Qi,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&255>=this.r&&0<=this.g&&255>=this.g&&0<=this.b&&255>=this.b&&0<=this.opacity&&1>=this.opacity},toString:function(){var e=this.opacity;return e=isNaN(e)?1:za(0,Ha(1,e)),(1===e?'rgb(':'rgba(')+za(0,Ha(255,Ma(this.r)||0))+', '+za(0,Ha(255,Ma(this.g)||0))+', '+za(0,Ha(255,Ma(this.b)||0))+(1===e?')':', '+e+')')}})),an(hn,function(e,t,n,a){return 1===arguments.length?gn(e):new hn(e,t,n,null==a?1:a)},ln(rn,{brighter:function(e){return e=null==e?Fi:La(Fi,e),new hn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qi:La(Qi,e),new hn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(0>this.h),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,a=n+(.5>n?n:1-n)*t,i=2*n-a;return new un(yn(240<=e?e-240:e+120,i,a),yn(e,i,a),yn(120>e?e+240:e-120,i,a),this.opacity)},displayable:function(){return(0<=this.s&&1>=this.s||isNaN(this.s))&&0<=this.l&&1>=this.l&&0<=this.opacity&&1>=this.opacity}}));var ll=Ia/180,rl=180/Ia,ol=18,Kn=.95047,Xn=1,Yn=1.08883,Zn=4/29,dl=6/29,sl=3*dl*dl,cl=dl*dl*dl;an(fn,function(e,t,n,a){return 1===arguments.length?mn(e):new fn(e,t,n,null==a?1:a)},ln(rn,{brighter:function(e){return new fn(this.l+ol*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new fn(this.l-ol*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=Xn*bn(e),t=Kn*bn(t),n=Yn*bn(n),new un(wn(3.2404542*t-1.5371385*e-.4985314*n),wn(-.969266*t+1.8760108*e+.041556*n),wn(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),an(jn,function(e,t,n,a){return 1===arguments.length?kn(e):new jn(e,t,n,null==a?1:a)},ln(rn,{brighter:function(e){return new jn(this.h,this.c,this.l+ol*(null==e?1:e),this.opacity)},darker:function(e){return new jn(this.h,this.c,this.l-ol*(null==e?1:e),this.opacity)},rgb:function(){return mn(this).rgb()}}));var pl=-.14861,A=+1.78277,B=-.29227,C=-.90649,D=+1.97294,E=D*C,ul=D*A,_l=A*B-C*pl;an(Sn,function(e,t,n,a){return 1===arguments.length?An(e):new Sn(e,t,n,null==a?1:a)},ln(rn,{brighter:function(e){return e=null==e?Fi:La(Fi,e),new Sn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qi:La(Qi,e),new Sn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*ll,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),a=Va(e),i=Ra(e);return new un(255*(t+n*(pl*a+A*i)),255*(t+n*(B*a+C*i)),255*(t+n*(D*a)),this.opacity)}}));var gl,hl,yl,ml,fl=function e(t){function n(e,t){var n=a((e=pn(e)).r,(t=pn(t)).r),i=a(e.g,t.g),l=a(e.b,t.b),r=Cn(e.opacity,t.opacity);return function(a){return e.r=n(a),e.g=i(a),e.b=l(a),e.opacity=r(a),e+''}}var a=Pn(t);return n.gamma=e,n}(1),xl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bl=new RegExp(xl.source,'g'),wl=180/Ia,vl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},kl=Dn(Rn,'px, ','px)','deg)'),jl=Dn(Vn,', ',')',')'),Al=Math.SQRT2,Sl=ce.prototype.constructor,El=0,Tl=ce.prototype;ja.prototype=function(e){return ce().transition(e)}.prototype={constructor:ja,select:ha,selectAll:ya,filter:function(e){'function'!=typeof e&&(e=Fa(e));for(var t=this._groups,a=t.length,l=Array(a),r=0;r<a;++r)for(var o,d=t[r],s=d.length,n=l[r]=[],c=0;c<s;++c)(o=d[c])&&e.call(o,o.__data__,c,d)&&n.push(o);return new ja(l,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,a=e._groups,l=t.length,r=a.length,o=Ha(l,r),d=Array(l),s=0;s<o;++s)for(var c,p=t[s],u=a[s],_=p.length,n=d[s]=Array(_),g=0;g<_;++g)(c=p[g]||u[g])&&(n[g]=c);for(;s<l;++s)d[s]=t[s];return new ja(d,this._parents,this._name,this._id)},selection:function(){return new Sl(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,a=Aa(),l=this._groups,r=l.length,o=0;o<r;++o)for(var d,s=l[o],c=s.length,n=0;n<c;++n)if(d=s[n]){var i=en(d,t);Kt(d,e,a,n,s,{time:i.time+i.delay+i.duration,delay:0,duration:i.duration,ease:i.ease})}return new ja(l,this._parents,e,a)},call:Tl.call,nodes:Tl.nodes,node:Tl.node,size:Tl.size,empty:Tl.empty,each:Tl.each,on:_a,attr:function(e,n){var a=t(e),l='transform'===a?jl:$n;return this.attrTween(e,'function'==typeof n?(a.local?ea:Jn)(a,l,Un(this,'attr.'+e,n)):null==n?(a.local?Fn:Qn)(a):(a.local?Gn:Wn)(a,l,n+''))},attrTween:function(e,n){var a='attr.'+e;if(2>arguments.length)return(a=this.tween(a))&&a._value;if(null==n)return this.tween(a,null);if('function'!=typeof n)throw new Error;var i=t(e);return this.tween(a,(i.local?ta:na)(i,n))},style:function(e,t,n){var a='transform'==(e+='')?kl:$n;return null==t?this.styleTween(e,ma(e,a)).on('end.style.'+e,fa(e)):this.styleTween(e,'function'==typeof t?ba(e,a,Un(this,'style.'+e,t)):xa(e,a,t+''),n)},styleTween:function(e,t,n){var a='style.'+(e+='');if(2>arguments.length)return(a=this.tween(a))&&a._value;if(null==t)return this.tween(a,null);if('function'!=typeof t)throw new Error;return this.tween(a,wa(e,t,null==n?'':n))},text:function(e){return this.tween('text','function'==typeof e?ka(Un(this,'text',e)):va(null==e?'':e+''))},remove:function(){return this.on('end.remove',ga(this._id))},tween:Hn,delay:la,duration:da,ease:ca};var Nl=Ia/2,Pl=4/11,Cl=6/11,ql=8/11,Ll=3/4,Ml=9/11,zl=10/11,Ol=15/16,Rl=21/22,Vl=63/64,Dl=1/Pl/Pl,Xl={time:null,delay:0,duration:250,ease:function(e){return(1>=(e*=2)?e*e*e:(e-=2)*e*e+2)/2}};ce.prototype.interrupt=function(e){return this.each(function(){nn(this,e)})},ce.prototype.transition=Pa;var Bl=333,Il=666,Hl=0;e.version='0.2.1',e.html=zt,e.show=qa,Object.defineProperty(e,'__esModule',{value:!0})});
(function(a,b){'object'==typeof exports&&'undefined'!=typeof module?b(exports,require('d3-selection'),require('d3-shape'),require('d3-transition'),require('d3-ease')):'function'==typeof define&&define.amd?define(['exports','d3-selection','d3-shape','d3-transition','d3-ease'],b):b(a.D3RsProgress={},a.d3,a.d3,a.d3,a.d3)})(this,function(a,b,c,d,e){'use strict';function f(a){function c(){m=f-k-g}function d(){n=h-i-j}function e(c){var d=c.selection?c.selection():c,j=void 0!==c.selection;d.each(function(){var d=b.select(this),m=d.select(e.self());if(m.empty()){var n=(null==a?'':a+'-')+'title',v=(null==a?'':a+'-')+'desc';m=d.append('svg').attr('version','1.1').attr('xmlns','http://www.w3.org/2000/svg').attr('xmlns:xlink','http://www.w3.org/1999/xlink').attr('preserveAspectRatio','xMidYMid meet').attr('aria-labelledby',n).attr('aria-describedby',v).attr('id',a),m.append('title').attr('id',n),m.append('desc').attr('id',v),m.append('defs'),m.append('rect').attr('class','background'),m.append('g').attr('class','svg-child')}m.attr('overflow',u?'visible':'hidden');var w=m.select('defs'),x=w.selectAll('style').data(o?[o]:[]);x.exit().remove(),x=x.enter().append('style').attr('type','text/css').merge(x),x.text(o),m.attr('role',s),m.select('title').text(q),m.select('desc').text(r);var y=m.select('rect.background').attr('width',null==p?null:f*l).attr('height',null==p?null:h*l);m.attr('class',t);var z=m.select(e.child());!0==j&&(m=m.transition(c),z=z.transition(c),y=y.transition(c)),m.attr('width',f*l).attr('height',h*l).attr('viewBox','0 0 '+f+' '+h),z.attr('transform','translate('+k+','+i+')'),y.attr('fill',p)})}var f=300,h=150,i=16,g=16,j=16,k=16,l=1,m=-1,n=-1,o=null,p=null,q=null,r=null,s='img',t='svg-svg',u=!1;return c(),d(),e.self=function(){return'svg'+(a?'#'+a:'')},e.child=function(){return'g.svg-child'},e.childDefs=function(){return'defs'},e.childWidth=function(){return m},e.childHeight=function(){return n},e.id=function(){return a},e.classed=function(a){return arguments.length?(t=a,e):t},e.style=function(a){return arguments.length?(o=a,e):o},e.background=function(a){return arguments.length?(p=a,e):p},e.width=function(a){return arguments.length?(f=a,c(),e):f},e.height=function(a){return arguments.length?(h=a,d(),e):f},e.scale=function(a){return arguments.length?(l=a,e):l},e.title=function(a){return arguments.length?(q=a,e):q},e.desc=function(a){return arguments.length?(r=a,e):r},e.role=function(a){return arguments.length?(s=a,e):s},e.overflow=function(a){return arguments.length?(u=a,e):u},e.margin=function(a){return arguments.length?(void 0===a.top?(i=a,g=a,j=a,k=a):(i=a.top,g=a.right,j=a.bottom,k=a.left),c(),d(),e):{top:i,right:g,bottom:j,left:k}},e}function g(a){function d(d){var e=d.selection?d.selection():d,y=void 0!==d.selection,z=g||Math.round(i*k);e.each(function(){var e=b.select(this),k=f(a?'svg-'+a:null).width(i).height(z).scale(m).margin(l),A=e;!0==y&&(A=e.transition(d)),A.call(k);var B=e.select(k.self()),C=B.select(k.child()),D=k.childWidth(),w=k.childHeight(),h=Math.min(D,w)/2,E=15*(D/j),F=C.select('g');t&&F.attr('style','isolation: isolate'),F.empty()&&(F=C.append('g').attr('id',a).attr('transform','translate('+-h+','+-h+'), scale('+n+'), translate('+h+','+h+')').attr('style','mix-blend-mode: difference'),F.append('circle').attr('class','bg'),F.append('path').attr('class','fg').attr('d',J).attr('transform','translate('+h+','+h+'), rotate('+p+')'),F.append('g').attr('transform','translate('+h+','+h+'), scale('+E*q+')').append('path').attr('class','icon').attr('d','M0,0l3,1c0,0,0.2,5.4-3,7c-3.2-1.6-3-7-3-7L0,0z').attr('style','mix-blend-mode: '+(t||u?'unset':'difference')).attr('transform','translate(0,-4)'));var g=F.select('circle.bg'),G=F.select('path.fg'),H=F.select('g'),I=F.select('path.icon'),J=c.arc().innerRadius(0).outerRadius(h*o).startAngle(-(s/2)).endAngle(s/2);g.attr('r',h).attr('cx',D/2).attr('cy',w/2).attr('fill',v),G.attr('d',J).attr('fill',x),I.attr('fill',t||u?x:v).attr('stroke',v);var K=G;!0==y&&(F=F.transition(d),K=G.transition(d),H=H.transition(d)),F.attr('transform','translate('+h+','+h+'), scale('+n+'), translate('+-h+','+-h+')'),K.attr('transform','translate('+h+','+h+'), rotate('+p+')'),H.attr('transform','translate('+h+','+h+'), scale('+E*q+')')})}var e='icon-progress',i=j,g=null,m=1,n=1,o=.8,p=0,q=.55,s=Math.PI,t=!1,u=!1,v='white',x='black';return d.self=function(){return'g'+(a?'#'+a:'.'+e)},d.id=function(){return a},d.parent=function(){return a?'#svg-'+a:'.svg-svg'},d.classed=function(a){return arguments.length?(e=a,d):e},d.size=function(a){return arguments.length?(i=a,g=null,d):i},d.width=function(a){return arguments.length?(i=a,d):i},d.height=function(a){return arguments.length?(g=a,d):g},d.scale=function(a){return arguments.length?(m=a,d):m},d.zoom=function(a){return arguments.length?(n=a,d):n},d.inset=function(a){return arguments.length?(o=a,d):o},d.rotation=function(a){return arguments.length?(p=a,d):p},d.angle=function(a){return arguments.length?(s=a,d):s},d.colors=function(a,b){return 2===arguments.length?(t=!0,v=a,x=b,d):v},d.border=function(a){return arguments.length?(u=a,d):u},d.icon=function(a){return arguments.length?(q=a,d):q},d}function h(a,b,c,d,f){d=null==d?90:d;var g=0==d%180?e.easeSinIn:e.easeSinOut,i=m;null==f&&(i=n,g=e.easeBounce,f=1),c.value&&(f=0),a=a.rotation(d).zoom(f),b.transition().duration(i).ease(g).call(a).on('end',function(){c.value&&0==f?(b.select(a.parent()).remove(),c.done('end')):(d+=90,h(a,b,c,d,f))})}function i(a,c){a=a||'body',++o,c=c||g('progress-'+o),c.rotation(-90).zoom(0);var d=a;'string'==typeof d&&(d=b.select(a)),d.call(c);var e=null,f=new Promise(function(a){e=a}),i={value:!1,done:e};return h(c,d,i),function(){return i.value=!0,f}}var j=128,k=1,l=2,m=333,n=666,o=0;a.version='0.2.2',a.html=g,a.show=i,Object.defineProperty(a,'__esModule',{value:!0})});
//# sourceMappingURL=d3-rs-progress.umd-es2015.min.js.map

@@ -1,2 +0,2 @@

(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?t(exports):'function'==typeof define&&define.amd?define(['exports'],t):t(e.D3RsProgress={})})(this,function(e){'use strict';function t(e){var t=e+='',n=t.indexOf(':');return 0<=n&&'xmlns'!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ua.hasOwnProperty(t)?{space:Ua[t],local:e}:e}function n(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Ya&&t.documentElement.namespaceURI===Ya?t.createElement(e):t.createElementNS(n,e)}}function a(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function i(e){var i=t(e);return(i.local?a:n)(i)}function l(){}function r(e){return null==e?l:function(){return this.querySelector(e)}}function o(e){'function'!=typeof e&&(e=r(e));for(var t=this._groups,a=t.length,l=Array(a),o=0;o<a;++o)for(var d,s,c=t[o],p=c.length,n=l[o]=Array(p),u=0;u<p;++u)(d=c[u])&&(s=e.call(d,d.__data__,u,c))&&('__data__'in d&&(s.__data__=d.__data__),n[u]=s);return new se(l,this._parents)}function d(){return[]}function s(e){return null==e?d:function(){return this.querySelectorAll(e)}}function c(e){return Array(e.length)}function p(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function u(e){return function(){return e}}function _(e,t,n,a,l,r){for(var o,d=0,i=t.length,s=r.length;d<s;++d)(o=t[d])?(o.__data__=r[d],a[d]=o):n[d]=new p(e,r[d]);for(;d<i;++d)(o=t[d])&&(l[d]=o)}function g(e,t,n,a,l,r,o){var d,i,s,c={},u=t.length,_=r.length,g=Array(u);for(d=0;d<u;++d)(i=t[d])&&(g[d]=s=Wa+o.call(i,i.__data__,d,t),s in c?l[d]=i:c[s]=i);for(d=0;d<_;++d)s=Wa+o.call(e,r[d],d,r),(i=c[s])?(a[d]=i,i.__data__=r[d],c[s]=null):n[d]=new p(e,r[d]);for(d=0;d<u;++d)(i=t[d])&&c[g[d]]===i&&(l[d]=i)}function h(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function y(e){return function(){this.removeAttribute(e)}}function m(e){return function(){this.removeAttributeNS(e.space,e.local)}}function f(e,t){return function(){this.setAttribute(e,t)}}function x(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function b(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function w(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function v(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function k(e){return function(){this.style.removeProperty(e)}}function j(e,t,n){return function(){this.style.setProperty(e,t,n)}}function S(e,t,n){return function(){var a=t.apply(this,arguments);null==a?this.style.removeProperty(e):this.style.setProperty(e,a,n)}}function T(e,t){return e.style.getPropertyValue(t)||v(e).getComputedStyle(e,null).getPropertyValue(t)}function N(e){return function(){delete this[e]}}function P(e,t){return function(){this[e]=t}}function q(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function L(e){return e.trim().split(/^|\s+/)}function M(e){return e.classList||new z(e)}function z(e){this._node=e,this._names=L(e.getAttribute('class')||'')}function O(e,t){for(var a=M(e),l=-1,i=t.length;++l<i;)a.add(t[l])}function R(e,t){for(var a=M(e),l=-1,i=t.length;++l<i;)a.remove(t[l])}function V(e){return function(){O(this,e)}}function X(e){return function(){R(this,e)}}function I(e,t){return function(){(t.apply(this,arguments)?O:R)(this,e)}}function H(){this.textContent=''}function Y(e){return function(){this.textContent=e}}function U(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?'':t}}function $(){this.innerHTML=''}function Z(e){return function(){this.innerHTML=e}}function Q(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?'':t}}function F(){this.nextSibling&&this.parentNode.appendChild(this)}function W(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K(){return null}function G(){var e=this.parentNode;e&&e.removeChild(this)}function J(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function ee(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}function te(e,t,n){return e=ne(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function ne(e,t,n){return function(){try{e.call(this,this.__data__,t,n)}finally{}}}function ae(e){return e.trim().split(/^|\s+/).map(function(e){var n='',a=e.indexOf('.');return 0<=a&&(n=e.slice(a+1),e=e.slice(0,a)),{type:e,name:n}})}function ie(e){return function(){var t=this.__on;if(t){for(var n,a=0,l=-1,i=t.length;a<i;++a)(n=t[a],(!e.type||n.type===e.type)&&n.name===e.name)?this.removeEventListener(n.type,n.listener,n.capture):t[++l]=n;++l?t.length=l:delete this.__on}}}function le(e,t,n){var a=Ka.hasOwnProperty(e.type)?te:ne;return function(l,r,i){var d,o=this.__on,s=a(t,r,i);if(o)for(var c=0,p=o.length;c<p;++c)if((d=o[c]).type===e.type&&d.name===e.name)return this.removeEventListener(d.type,d.listener,d.capture),this.addEventListener(d.type,d.listener=s,d.capture=n),void(d.value=t);this.addEventListener(e.type,s,n),d={type:e.type,name:e.name,value:t,listener:s,capture:n},o?o.push(d):this.__on=[d]}}function re(e,t,n){var a=v(e),i=a.CustomEvent;'function'==typeof i?i=new i(t,n):(i=a.document.createEvent('Event'),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function oe(e,t){return function(){return re(this,e,t)}}function de(e,t){return function(){return re(this,e,t.apply(this,arguments))}}function se(e,t){this._groups=e,this._parents=t}function ce(){return new se([[document.documentElement]],Ja)}function pe(e){return'string'==typeof e?new se([[document.querySelector(e)]],[document.documentElement]):new se([[e]],Ja)}function ue(){this._x0=this._y0=this._x1=this._y1=null,this._=''}function _e(){return new ue}function ge(e){return function(){return e}}function he(e){return 1<e?0:-1>e?pi:Da(e)}function ye(e){return 1<=e?ui:-1>=e?-ui:Math.asin(e)}function me(e){return e.innerRadius}function fe(e){return e.outerRadius}function xe(e){return e.startAngle}function be(e){return e.endAngle}function we(e){return e&&e.padAngle}function ve(e,n,a,i,l,r,o,d){var s=a-e,c=i-n,p=o-l,u=d-r,_=(p*(n-r)-u*(e-l))/(u*s-p*c);return[e+_*s,n+_*c]}function ke(e,t,n,a,i,l,o){var s=e-n,c=t-a,p=(o?l:-l)/si(s*s+c*c),u=p*c,_=-p*s,g=e+u,h=t+_,y=n+u,m=a+_,f=(g+y)/2,x=(h+m)/2,b=y-g,w=m-h,v=b*b+w*w,k=i-l,r=g*m-y*h,j=(0>w?-1:1)*si(ri(0,k*k*v-r*r)),d=(r*w-b*j)/v,A=(-r*b-w*j)/v,S=(r*w+b*j)/v,E=(-r*b+w*j)/v,T=d-f,N=A-x,P=S-f,C=E-x;return T*T+N*N>P*P+C*C&&(d=S,A=E),{cx:d,cy:A,x01:-u,y01:-_,x11:d*(i/k-1),y11:A*(i/k-1)}}function je(){function e(){var e,s,c=+t.apply(this,arguments),p=+n.apply(this,arguments),u=l.apply(this,arguments)-ui,_=o.apply(this,arguments)-ui,g=ai(_-u),h=_>u;if(d||(d=e=_e()),p<c&&(s=p,p=c,c=s),!(p>ci))d.moveTo(0,0);else if(g>_i-ci)d.moveTo(p*li(u),p*di(u)),d.arc(0,0,p,u,_,!h),c>ci&&(d.moveTo(c*li(_),c*di(_)),d.arc(0,0,c,_,u,h));else{var y,m,f=u,x=_,b=u,w=_,v=g,k=g,j=r.apply(this,arguments)/2,A=j>ci&&(i?+i.apply(this,arguments):si(c*c+p*p)),S=oi(ai(p-c)/2,+a.apply(this,arguments)),E=S,T=S;if(A>ci){var N=ye(A/c*di(j)),P=ye(A/p*di(j));(v-=2*N)>ci?(N*=h?1:-1,b+=N,w-=N):(v=0,b=w=(u+_)/2),(k-=2*P)>ci?(P*=h?1:-1,f+=P,x-=P):(k=0,f=x=(u+_)/2)}var C=p*li(f),q=p*di(f),L=c*li(w),M=c*di(w);if(S>ci){var z=p*li(x),O=p*di(x),R=c*li(b),V=c*di(b);if(g<pi){var D=v>ci?ve(C,q,R,V,z,O,L,M):[L,M],X=C-D[0],B=q-D[1],I=z-D[0],H=O-D[1],Y=1/di(he((X*I+B*H)/(si(X*X+B*B)*si(I*I+H*H)))/2),U=si(D[0]*D[0]+D[1]*D[1]);E=oi(S,(c-U)/(Y-1)),T=oi(S,(p-U)/(Y+1))}}k>ci?T>ci?(y=ke(R,V,C,q,p,T,h),m=ke(z,O,L,M,p,T,h),d.moveTo(y.cx+y.x01,y.cy+y.y01),T<S?d.arc(y.cx,y.cy,T,ii(y.y01,y.x01),ii(m.y01,m.x01),!h):(d.arc(y.cx,y.cy,T,ii(y.y01,y.x01),ii(y.y11,y.x11),!h),d.arc(0,0,p,ii(y.cy+y.y11,y.cx+y.x11),ii(m.cy+m.y11,m.cx+m.x11),!h),d.arc(m.cx,m.cy,T,ii(m.y11,m.x11),ii(m.y01,m.x01),!h))):(d.moveTo(C,q),d.arc(0,0,p,f,x,!h)):d.moveTo(C,q),c>ci&&v>ci?E>ci?(y=ke(L,M,z,O,c,-E,h),m=ke(C,q,R,V,c,-E,h),d.lineTo(y.cx+y.x01,y.cy+y.y01),E<S?d.arc(y.cx,y.cy,E,ii(y.y01,y.x01),ii(m.y01,m.x01),!h):(d.arc(y.cx,y.cy,E,ii(y.y01,y.x01),ii(y.y11,y.x11),!h),d.arc(0,0,c,ii(y.cy+y.y11,y.cx+y.x11),ii(m.cy+m.y11,m.cx+m.x11),h),d.arc(m.cx,m.cy,E,ii(m.y11,m.x11),ii(m.y01,m.x01),!h))):d.arc(0,0,c,w,b,h):d.lineTo(L,M)}return(d.closePath(),e)?(d=null,e+''||null):void 0}var t=me,n=fe,a=ge(0),i=null,l=xe,o=be,r=we,d=null;return e.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,i=(+l.apply(this,arguments)+ +o.apply(this,arguments))/2-pi/2;return[li(i)*e,di(i)*e]},e.innerRadius=function(n){return arguments.length?(t='function'==typeof n?n:ge(+n),e):t},e.outerRadius=function(t){return arguments.length?(n='function'==typeof t?t:ge(+t),e):n},e.cornerRadius=function(t){return arguments.length?(a='function'==typeof t?t:ge(+t),e):a},e.padRadius=function(t){return arguments.length?(i=null==t?null:'function'==typeof t?t:ge(+t),e):i},e.startAngle=function(t){return arguments.length?(l='function'==typeof t?t:ge(+t),e):l},e.endAngle=function(t){return arguments.length?(o='function'==typeof t?t:ge(+t),e):o},e.padAngle=function(t){return arguments.length?(r='function'==typeof t?t:ge(+t),e):r},e.context=function(t){return arguments.length?(d=null==t?null:t,e):d},e}function Ae(e){return 0>e?-1:1}function Se(e,t,n){var a=e._x1-e._x0,i=t-e._x1,l=(e._y1-e._y0)/(a||0>i&&-0),r=(n-e._y1)/(i||0>a&&-0);return(Ae(l)+Ae(r))*Ha(Ba(l),Ba(r),.5*Ba((l*i+r*a)/(a+i)))||0}function Ee(e,n){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-n)/2:n}function Te(e,t,n){var a=e._x0,i=e._y0,l=e._x1,r=e._y1,o=(l-a)/3;e._context.bezierCurveTo(a+o,i+o*t,l-o,r-o*n,l,r)}function Ne(e){this._context=e}function Pe(e){this._context=e}function Ce(e){var t=e+='',n=t.indexOf(':');return 0<=n&&'xmlns'!==(t=e.slice(0,n))&&(e=e.slice(n+1)),hi.hasOwnProperty(t)?{space:hi[t],local:e}:e}function qe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===gi&&t.documentElement.namespaceURI===gi?t.createElement(e):t.createElementNS(n,e)}}function Le(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Me(e){var t=Ce(e);return(t.local?Le:qe)(t)}function ze(e,t,n){return e=Oe(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Oe(e,t,n){return function(){try{e.call(this,this.__data__,t,n)}finally{}}}function Re(e){return e.trim().split(/^|\s+/).map(function(e){var n='',a=e.indexOf('.');return 0<=a&&(n=e.slice(a+1),e=e.slice(0,a)),{type:e,name:n}})}function Ve(e){return function(){var t=this.__on;if(t){for(var n,a=0,l=-1,i=t.length;a<i;++a)(n=t[a],(!e.type||n.type===e.type)&&n.name===e.name)?this.removeEventListener(n.type,n.listener,n.capture):t[++l]=n;++l?t.length=l:delete this.__on}}}function De(e,t,n){var a=bi.hasOwnProperty(e.type)?ze:Oe;return function(l,r,i){var d,o=this.__on,s=a(t,r,i);if(o)for(var c=0,p=o.length;c<p;++c)if((d=o[c]).type===e.type&&d.name===e.name)return this.removeEventListener(d.type,d.listener,d.capture),this.addEventListener(d.type,d.listener=s,d.capture=n),void(d.value=t);this.addEventListener(e.type,s,n),d={type:e.type,name:e.name,value:t,listener:s,capture:n},o?o.push(d):this.__on=[d]}}function Xe(){}function Be(e){return null==e?Xe:function(){return this.querySelector(e)}}function Ie(e){'function'!=typeof e&&(e=Be(e));for(var t=this._groups,a=t.length,l=Array(a),r=0;r<a;++r)for(var o,d,s=t[r],c=s.length,n=l[r]=Array(c),p=0;p<c;++p)(o=s[p])&&(d=e.call(o,o.__data__,p,s))&&('__data__'in o&&(d.__data__=o.__data__),n[p]=d);return new qt(l,this._parents)}function He(){return[]}function Ye(e){return null==e?He:function(){return this.querySelectorAll(e)}}function Ue(e){return Array(e.length)}function $e(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Ze(e){return function(){return e}}function Qe(e,t,n,a,l,r){for(var o,d=0,i=t.length,s=r.length;d<s;++d)(o=t[d])?(o.__data__=r[d],a[d]=o):n[d]=new $e(e,r[d]);for(;d<i;++d)(o=t[d])&&(l[d]=o)}function Fe(e,t,n,a,l,r,o){var d,i,s,c={},p=t.length,u=r.length,_=Array(p);for(d=0;d<p;++d)(i=t[d])&&(_[d]=s=vi+o.call(i,i.__data__,d,t),s in c?l[d]=i:c[s]=i);for(d=0;d<u;++d)s=vi+o.call(e,r[d],d,r),(i=c[s])?(a[d]=i,i.__data__=r[d],c[s]=null):n[d]=new $e(e,r[d]);for(d=0;d<p;++d)(i=t[d])&&c[_[d]]===i&&(l[d]=i)}function We(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ke(e){return function(){this.removeAttribute(e)}}function Ge(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Je(e,t){return function(){this.setAttribute(e,t)}}function et(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function tt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function nt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function at(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function it(e){return function(){this.style.removeProperty(e)}}function lt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function rt(e,t,n){return function(){var a=t.apply(this,arguments);null==a?this.style.removeProperty(e):this.style.setProperty(e,a,n)}}function ot(e,t){return e.style.getPropertyValue(t)||at(e).getComputedStyle(e,null).getPropertyValue(t)}function dt(e){return function(){delete this[e]}}function st(e,t){return function(){this[e]=t}}function ct(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function pt(e){return e.trim().split(/^|\s+/)}function ut(e){return e.classList||new _t(e)}function _t(e){this._node=e,this._names=pt(e.getAttribute('class')||'')}function gt(e,t){for(var a=ut(e),l=-1,i=t.length;++l<i;)a.add(t[l])}function ht(e,t){for(var a=ut(e),l=-1,i=t.length;++l<i;)a.remove(t[l])}function yt(e){return function(){gt(this,e)}}function mt(e){return function(){ht(this,e)}}function ft(e,t){return function(){(t.apply(this,arguments)?gt:ht)(this,e)}}function xt(){this.textContent=''}function bt(e){return function(){this.textContent=e}}function wt(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?'':t}}function vt(){this.innerHTML=''}function kt(e){return function(){this.innerHTML=e}}function jt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?'':t}}function At(){this.nextSibling&&this.parentNode.appendChild(this)}function St(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Et(){return null}function Tt(){var e=this.parentNode;e&&e.removeChild(this)}function Nt(e,t,n){var a=at(e),i=a.CustomEvent;'function'==typeof i?i=new i(t,n):(i=a.document.createEvent('Event'),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Pt(e,t){return function(){return Nt(this,e,t)}}function Ct(e,t){return function(){return Nt(this,e,t.apply(this,arguments))}}function qt(e,t){this._groups=e,this._parents=t}function Lt(e){return'string'==typeof e?new qt([[document.querySelector(e)]],[document.documentElement]):new qt([[e]],ki)}function Mt(e){function t(){p=i-s-o}function n(){u=l-r-d}function a(t){let n=t.selection?t.selection():t,o=void 0!==t.selection;n.each(function(){let n=Lt(this),d=n.select(a.self());if(d.empty()){let t=(null==e?'':e+'-')+'title',a=(null==e?'':e+'-')+'desc';d=n.append('svg').attr('version','1.1').attr('xmlns','http://www.w3.org/2000/svg').attr('xmlns:xlink','http://www.w3.org/1999/xlink').attr('preserveAspectRatio','xMidYMid meet').attr('aria-labelledby',t).attr('aria-describedby',a).attr('id',e),d.append('title').attr('id',t),d.append('desc').attr('id',a),d.append('defs'),d.append('rect').attr('class','background'),d.append('g').attr('class','svg-child')}d.attr('overflow',b?'visible':'hidden');let p=d.select('defs'),u=p.selectAll('style').data(_?[_]:[]);u.exit().remove(),u=u.enter().append('style').attr('type','text/css').merge(u),u.text(_),d.attr('role',f),d.select('title').text(y),d.select('desc').text(m);let w=d.select('rect.background').attr('width',null==h?null:i*c).attr('height',null==h?null:l*c);d.attr('class',x);let v=d.select(a.child());!0==o&&(d=d.transition(t),v=v.transition(t),w=w.transition(t)),d.attr('width',i*c).attr('height',l*c).attr('viewBox','0 0 '+i+' '+l),v.attr('transform','translate('+s+','+r+')'),w.attr('fill',h)})}let i=300,l=150,r=16,o=16,d=16,s=16,c=1,p=-1,u=-1,_=null,h=null,y=null,m=null,f='img',x='svg-svg',b=!1;return t(),n(),a.self=function(){return'svg'+(e?'#'+e:'')},a.child=function(){return'g.svg-child'},a.childDefs=function(){return'defs'},a.childWidth=function(){return p},a.childHeight=function(){return u},a.id=function(){return e},a.classed=function(e){return arguments.length?(x=e,a):x},a.style=function(e){return arguments.length?(_=e,a):_},a.background=function(e){return arguments.length?(h=e,a):h},a.width=function(e){return arguments.length?(i=e,t(),a):i},a.height=function(e){return arguments.length?(l=e,n(),a):i},a.scale=function(e){return arguments.length?(c=e,a):c},a.title=function(e){return arguments.length?(y=e,a):y},a.desc=function(e){return arguments.length?(m=e,a):m},a.role=function(e){return arguments.length?(f=e,a):f},a.overflow=function(e){return arguments.length?(b=e,a):b},a.margin=function(e){return arguments.length?(void 0===e.top?(r=e,o=e,d=e,s=e):(r=e.top,o=e.right,d=e.bottom,s=e.left),t(),n(),a):{top:r,right:o,bottom:d,left:s}},a}function zt(e){function t(t){var n=t.selection?t.selection():t,f=void 0!==t.selection,x=i||Ma(a*Ai);n.each(function(){var n=pe(this),i=Mt(e?'svg-'+e:null).width(a).height(x).scale(l).margin(Si),b=n;!0==f&&(b=n.transition(t)),b.call(i);var v=n.select(i.self()),k=v.select(i.child()),j=i.childWidth(),w=i.childHeight(),h=Ha(j,w)/2,A=15*(j/ji),S=k.select('g');u&&S.attr('style','isolation: isolate'),S.empty()&&(S=k.append('g').attr('id',e).attr('transform','translate('+-h+','+-h+'), scale('+o+'), translate('+h+','+h+')').attr('style','mix-blend-mode: difference'),S.append('circle').attr('class','bg'),S.append('path').attr('class','fg').attr('d',P).attr('transform','translate('+h+','+h+'), rotate('+s+')'),S.append('g').attr('transform','translate('+h+','+h+'), scale('+A*c+')').append('path').attr('class','icon').attr('d','M0,0l3,1c0,0,0.2,5.4-3,7c-3.2-1.6-3-7-3-7L0,0z').attr('style','mix-blend-mode: '+(u||_?'unset':'difference')).attr('transform','translate(0,-4)'));var g=S.select('circle.bg'),E=S.select('path.fg'),T=S.select('g'),N=S.select('path.icon'),P=je().innerRadius(0).outerRadius(h*d).startAngle(-(p/2)).endAngle(p/2);g.attr('r',h).attr('cx',j/2).attr('cy',w/2).attr('fill',y),E.attr('d',P).attr('fill',m),N.attr('fill',u||_?m:y).attr('stroke',y);var C=E;!0==f&&(S=S.transition(t),C=E.transition(t),T=T.transition(t)),S.attr('transform','translate('+h+','+h+'), scale('+o+'), translate('+-h+','+-h+')'),C.attr('transform','translate('+h+','+h+'), rotate('+s+')'),T.attr('transform','translate('+h+','+h+'), scale('+A*c+')')})}var n='icon-progress',a=ji,i=null,l=1,o=1,d=.8,s=0,c=.55,p=Ia,u=!1,_=!1,y='white',m='black';return t.self=function(){return'g'+(e?'#'+e:'.'+n)},t.id=function(){return e},t.parent=function(){return e?'#svg-'+e:'.svg-svg'},t.classed=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(a=e,i=null,t):a},t.width=function(e){return arguments.length?(a=e,t):a},t.height=function(e){return arguments.length?(i=e,t):i},t.scale=function(e){return arguments.length?(l=e,t):l},t.zoom=function(e){return arguments.length?(o=e,t):o},t.inset=function(e){return arguments.length?(d=e,t):d},t.rotation=function(e){return arguments.length?(s=e,t):s},t.angle=function(e){return arguments.length?(p=e,t):p},t.colors=function(e,n){return 2===arguments.length?(u=!0,y=e,m=n,t):y},t.border=function(e){return arguments.length?(_=e,t):_},t.icon=function(e){return arguments.length?(c=e,t):c},t}function Ot(){for(var e,t=0,a=arguments.length,n={};t<a;++t){if(!(e=arguments[t]+'')||e in n)throw new Error('illegal type: '+e);n[e]=[]}return new Rt(n)}function Rt(e){this._=e}function Vt(e,n){return e.trim().split(/^|\s+/).map(function(e){var a='',l=e.indexOf('.');if(0<=l&&(a=e.slice(l+1),e=e.slice(0,l)),e&&!n.hasOwnProperty(e))throw new Error('unknown type: '+e);return{type:e,name:a}})}function Dt(e,t){for(var a,l=0,i=e.length;l<i;++l)if((a=e[l]).name===t)return a.value}function Xt(e,t,a){for(var l=0,i=e.length;l<i;++l)if(e[l].name===t){e[l]=Ei,e=e.slice(0,l).concat(e.slice(l+1));break}return null!=a&&e.push({name:t,value:a}),e}function Bt(){return zi||(Vi(It),zi=Ri.now()+Oi)}function It(){zi=0}function Ht(){this._call=this._time=this._next=null}function Yt(e,n,a){var i=new Ht;return i.restart(e,n,a),i}function Ut(){Bt(),++Pi;for(var n,e=Ti;e;)0<=(n=zi-e._time)&&e._call.call(null,n),e=e._next;--Pi}function $t(){zi=(Mi=Ri.now())+Oi,Pi=Ci=0;try{Ut()}finally{Pi=0,Qt(),zi=0}}function Zt(){var e=Ri.now(),t=e-Mi;t>Li&&(Oi-=t,Mi=e)}function Qt(){for(var e,t,n=Ti,a=Infinity;n;)n._call?(a>n._time&&(a=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Ti=t);Ni=e,Ft(a)}function Ft(e){if(!Pi){Ci&&(Ci=clearTimeout(Ci));var t=e-zi;24<t?(e<Infinity&&(Ci=setTimeout($t,e-Ri.now()-Oi)),qi&&(qi=clearInterval(qi))):(!qi&&(Mi=Ri.now(),qi=setInterval(Zt,Li)),Pi=1,Vi($t))}}function Wt(e,n,a){var i=new Ht;return n=null==n?0:+n,i.restart(function(t){i.stop(),e(t+n)},n,a),i}function Kt(e,t,n,a,i,l){var r=e.__transition;if(!r)e.__transition={};else if(n in r)return;tn(e,n,{name:t,index:a,group:i,on:Di,tween:Xi,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:Bi})}function Gt(e,t){var n=en(e,t);if(n.state>Bi)throw new Error('too late; already scheduled');return n}function Jt(e,t){var n=en(e,t);if(n.state>Hi)throw new Error('too late; already started');return n}function en(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error('transition not found');return n}function tn(e,t,a){function n(s){var c,p,u,_;if(a.state!==Ii)return l();for(c in d)if(_=d[c],_.name===a.name){if(_.state===Yi)return Wt(n);_.state===Ui?(_.state=Zi,_.timer.stop(),_.on.call('interrupt',e,e.__data__,_.index,_.group),delete d[c]):+c<t&&(_.state=Zi,_.timer.stop(),delete d[c])}if(Wt(function(){a.state===Yi&&(a.state=Ui,a.timer.restart(i,a.delay,a.time),i(s))}),a.state=Hi,a.on.call('start',e,e.__data__,a.index,a.group),a.state===Hi){for(a.state=Yi,r=Array(u=a.tween.length),(c=0,p=-1);c<u;++c)(_=a.tween[c].value.call(e,e.__data__,a.index,a.group))&&(r[++p]=_);r.length=p+1}}function i(o){for(var d=o<a.duration?a.ease.call(null,o/a.duration):(a.timer.restart(l),a.state=$i,1),t=-1,i=r.length;++t<i;)r[t].call(null,d);a.state===$i&&(a.on.call('end',e,e.__data__,a.index,a.group),l())}function l(){for(var n in a.state=Zi,a.timer.stop(),delete d[t],d)return;delete e.__transition}var r,d=e.__transition;d[t]=a,a.timer=Yt(function(e){a.state=Ii,a.timer.restart(n,a.delay,a.time),a.delay<=e&&n(e-a.delay)},0,a.time)}function nn(e,t){var n,a,l,i=e.__transition,r=!0;if(i){for(l in t=null==t?null:t+'',i){if((n=i[l]).name!==t){r=!1;continue}a=n.state>Hi&&n.state<$i,n.state=Zi,n.timer.stop(),a&&n.on.call('interrupt',e,e.__data__,n.index,n.group),delete i[l]}r&&delete e.__transition}}function an(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ln(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function rn(){}function on(e){var t;return e=(e+'').trim().toLowerCase(),(t=Wi.exec(e))?(t=parseInt(t[1],16),new un(15&t>>8|240&t>>4,15&t>>4|240&t,(15&t)<<4|15&t,1)):(t=Ki.exec(e))?dn(parseInt(t[1],16)):(t=Gi.exec(e))?new un(t[1],t[2],t[3],1):(t=Ji.exec(e))?new un(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=el.exec(e))?sn(t[1],t[2],t[3],t[4]):(t=tl.exec(e))?sn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=nl.exec(e))?_n(t[1],t[2]/100,t[3]/100,1):(t=al.exec(e))?_n(t[1],t[2]/100,t[3]/100,t[4]):il.hasOwnProperty(e)?dn(il[e]):'transparent'===e?new un(NaN,NaN,NaN,0):null}function dn(e){return new un(255&e>>16,255&e>>8,255&e,1)}function sn(e,t,n,i){return 0>=i&&(e=t=n=NaN),new un(e,t,n,i)}function cn(e){return(e instanceof rn||(e=on(e)),!e)?new un:(e=e.rgb(),new un(e.r,e.g,e.b,e.opacity))}function pn(e,t,n,a){return 1===arguments.length?cn(e):new un(e,t,n,null==a?1:a)}function un(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}function _n(e,t,n,i){return 0>=i?e=t=n=NaN:0>=n||1<=n?e=t=NaN:0>=t&&(e=NaN),new hn(e,t,n,i)}function gn(e){if(e instanceof hn)return new hn(e.h,e.s,e.l,e.opacity);if(e instanceof rn||(e=on(e)),!e)return new hn;if(e instanceof hn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,a=e.b/255,i=Ha(t,n,a),r=za(t,n,a),d=NaN,c=r-i,s=(r+i)/2;return c?(d=t===r?(n-a)/c+6*(n<a):n===r?(a-t)/c+2:(t-n)/c+4,c/=.5>s?r+i:2-r-i,d*=60):c=0<s&&1>s?0:d,new hn(d,c,s,e.opacity)}function hn(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function yn(e,t,n){return 255*(60>e?t+(n-t)*e/60:180>e?n:240>e?t+(n-t)*(240-e)/60:t)}function mn(e){if(e instanceof fn)return new fn(e.l,e.a,e.b,e.opacity);if(e instanceof jn){var t=e.h*ll;return new fn(e.l,Va(t)*e.c,Ra(t)*e.c,e.opacity)}e instanceof un||(e=cn(e));var n=vn(e.r),i=vn(e.g),a=vn(e.b),l=xn((.4124564*n+.3575761*i+.1804375*a)/Kn),r=xn((.2126729*n+.7151522*i+.072175*a)/Xn),o=xn((.0193339*n+.119192*i+.9503041*a)/Yn);return new fn(116*r-16,500*(l-r),200*(r-o),e.opacity)}function fn(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function xn(e){return e>cl?La(e,1/3):e/sl+Zn}function bn(e){return e>dl?e*e*e:sl*(e-Zn)}function wn(e){return 255*(.0031308>=e?12.92*e:1.055*La(e,1/2.4)-.055)}function vn(e){return .04045>=(e/=255)?e/12.92:La((e+.055)/1.055,2.4)}function kn(e){if(e instanceof jn)return new jn(e.h,e.c,e.l,e.opacity);e instanceof fn||(e=mn(e));var t=Oa(e.b,e.a)*rl;return new jn(0>t?t+360:t,Xa(e.a*e.a+e.b*e.b),e.l,e.opacity)}function jn(e,t,n,a){this.h=+e,this.c=+t,this.l=+n,this.opacity=+a}function An(e){if(e instanceof Sn)return new Sn(e.h,e.s,e.l,e.opacity);e instanceof un||(e=cn(e));var t=e.r/255,n=e.g/255,a=e.b/255,i=(_l*a+E*t-ul*n)/(_l+E-ul),l=a-i,r=(D*(n-i)-B*l)/C,o=Xa(r*r+l*l)/(D*i*(1-i)),d=o?Oa(r,l)*rl-120:NaN;return new Sn(0>d?d+360:d,o,i,e.opacity)}function Sn(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function En(e){return function(){return e}}function Tn(e,n){return function(a){return e+a*n}}function Nn(e,n,a){return e=La(e,a),n=La(n,a)-e,a=1/a,function(i){return La(e+i*n,a)}}function Pn(e){return 1==(e=+e)?Cn:function(t,n){return n-t?Nn(t,n,e):En(isNaN(t)?n:t)}}function Cn(e,t){var n=t-e;return n?Tn(e,n):En(isNaN(e)?t:e)}function qn(e,n){return e=+e,n-=e,function(a){return e+n*a}}function Ln(e){return function(){return e}}function Mn(e){return function(n){return e(n)+''}}function zn(e,n){var t,a,l,r=xl.lastIndex=bl.lastIndex=0,o=-1,d=[],s=[];for(e+='',n+='';(t=xl.exec(e))&&(a=bl.exec(n));)(l=a.index)>r&&(l=n.slice(r,l),d[o]?d[o]+=l:d[++o]=l),(t=t[0])===(a=a[0])?d[o]?d[o]+=a:d[++o]=a:(d[++o]=null,s.push({i:o,x:qn(t,a)})),r=bl.lastIndex;return r<n.length&&(l=n.slice(r),d[o]?d[o]+=l:d[++o]=l),2>d.length?s[0]?Mn(s[0].x):Ln(n):(n=s.length,function(e){for(var t,a=0;a<n;++a)d[(t=s[a]).i]=t.x(e);return d.join('')})}function On(t,n,i,l,r,o){var d,s,c;return(d=Xa(t*t+n*n))&&(t/=d,n/=d),(c=t*i+n*l)&&(i-=t*c,l-=n*c),(s=Xa(i*i+l*l))&&(i/=s,l/=s,c/=s),t*l<n*i&&(t=-t,n=-n,c=-c,d=-d),{translateX:r,translateY:o,rotate:Oa(n,t)*wl,skewX:Math.atan(c)*wl,scaleX:d,scaleY:s}}function Rn(e){return'none'===e?vl:(gl||(gl=document.createElement('DIV'),hl=document.documentElement,yl=document.defaultView),gl.style.transform=e,e=yl.getComputedStyle(hl.appendChild(gl),null).getPropertyValue('transform'),hl.removeChild(gl),e=e.slice(7,-1).split(','),On(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function Vn(e){return null==e?vl:(ml||(ml=document.createElementNS('http://www.w3.org/2000/svg','g')),ml.setAttribute('transform',e),!(e=ml.transform.baseVal.consolidate()))?vl:(e=e.matrix,On(e.a,e.b,e.c,e.d,e.e,e.f))}function Dn(e,t,n,i){function l(e){return e.length?e.pop()+' ':''}function r(e,a,l,r,o,d){if(e!==l||a!==r){var s=o.push('translate(',null,t,null,n);d.push({i:s-4,x:qn(e,l)},{i:s-2,x:qn(a,r)})}else(l||r)&&o.push('translate('+l+t+r+n)}function o(e,t,n,a){e===t?t&&n.push(l(n)+'rotate('+t+i):(180<e-t?t+=360:180<t-e&&(e+=360),a.push({i:n.push(l(n)+'rotate(',null,i)-2,x:qn(e,t)}))}function d(e,t,n,a){e===t?t&&n.push(l(n)+'skewX('+t+i):a.push({i:n.push(l(n)+'skewX(',null,i)-2,x:qn(e,t)})}function c(e,t,n,a,r,o){if(e!==n||t!==a){var d=r.push(l(r)+'scale(',null,',',null,')');o.push({i:d-4,x:qn(e,n)},{i:d-2,x:qn(t,a)})}else(1!==n||1!==a)&&r.push(l(r)+'scale('+n+','+a+')')}return function(t,n){var a=[],l=[];return t=e(t),n=e(n),r(t.translateX,t.translateY,n.translateX,n.translateY,a,l),o(t.rotate,n.rotate,a,l),d(t.skewX,n.skewX,a,l),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,a,l),t=n=null,function(e){for(var t,r=-1,i=l.length;++r<i;)a[(t=l[r]).i]=t.x(e);return a.join('')}}}function Bn(e,t){var a,l;return function(){var r=Jt(this,e),o=r.tween;if(o!==a){l=a=o;for(var d=0,i=l.length;d<i;++d)if(l[d].name===t){l=l.slice(),l.splice(d,1);break}}r.tween=l}}function In(e,a,l){var r,o;if('function'!=typeof l)throw new Error;return function(){var d=Jt(this,e),s=d.tween;if(s!==r){o=(r=s).slice();for(var c={name:a,value:l},t=0,i=o.length;t<i;++t)if(o[t].name===a){o[t]=c;break}t===i&&o.push(c)}d.tween=o}}function Hn(e,a){var l=this._id;if(e+='',2>arguments.length){for(var r,t=en(this.node(),l).tween,o=0,i=t.length;o<i;++o)if((r=t[o]).name===e)return r.value;return null}return this.each((null==a?Bn:In)(l,e,a))}function Un(e,t,n){var a=e._id;return e.each(function(){var e=Jt(this,a);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return en(e,a).value[t]}}function $n(e,t){var n;return('number'==typeof t?qn:t instanceof on?fl:(n=on(t))?(t=n,fl):zn)(e,t)}function Qn(e){return function(){this.removeAttribute(e)}}function Fn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Wn(e,t,n){var a,i;return function(){var l=this.getAttribute(e);return l===n?null:l===a?i:i=t(a=l,n)}}function Gn(e,t,n){var a,i;return function(){var l=this.getAttributeNS(e.space,e.local);return l===n?null:l===a?i:i=t(a=l,n)}}function Jn(e,t,n){var a,i,l;return function(){var r,o=n(this);return null==o?void this.removeAttribute(e):(r=this.getAttribute(e),r===o?null:r===a&&o===i?l:l=t(a=r,i=o))}}function ea(e,t,n){var a,i,l;return function(){var r,o=n(this);return null==o?void this.removeAttributeNS(e.space,e.local):(r=this.getAttributeNS(e.space,e.local),r===o?null:r===a&&o===i?l:l=t(a=r,i=o))}}function ta(e,t){function n(){var n=this,a=t.apply(n,arguments);return a&&function(i){n.setAttributeNS(e.space,e.local,a(i))}}return n._value=t,n}function na(e,t){function n(){var n=this,a=t.apply(n,arguments);return a&&function(i){n.setAttribute(e,a(i))}}return n._value=t,n}function aa(e,t){return function(){Gt(this,e).delay=+t.apply(this,arguments)}}function ia(e,t){return t=+t,function(){Gt(this,e).delay=t}}function la(e){var t=this._id;return arguments.length?this.each(('function'==typeof e?aa:ia)(t,e)):en(this.node(),t).delay}function ra(e,t){return function(){Jt(this,e).duration=+t.apply(this,arguments)}}function oa(e,t){return t=+t,function(){Jt(this,e).duration=t}}function da(e){var t=this._id;return arguments.length?this.each(('function'==typeof e?ra:oa)(t,e)):en(this.node(),t).duration}function sa(e,t){if('function'!=typeof t)throw new Error;return function(){Jt(this,e).ease=t}}function ca(e){var t=this._id;return arguments.length?this.each(sa(t,e)):en(this.node(),t).ease}function pa(e){return(e+'').trim().split(/^|\s+/).every(function(e){var n=e.indexOf('.');return 0<=n&&(e=e.slice(0,n)),!e||'start'===e})}function ua(e,t,n){var a,i,l=pa(t)?Gt:Jt;return function(){var r=l(this,e),o=r.on;o!==a&&(i=(a=o).copy()).on(t,n),r.on=i}}function _a(e,t){var n=this._id;return 2>arguments.length?en(this.node(),n).on.on(e):this.each(ua(n,e,t))}function ga(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ha(e){var t=this._name,a=this._id;'function'!=typeof e&&(e=r(e));for(var l=this._groups,o=l.length,d=Array(o),s=0;s<o;++s)for(var c,p,u=l[s],_=u.length,n=d[s]=Array(_),g=0;g<_;++g)(c=u[g])&&(p=e.call(c,c.__data__,g,u))&&('__data__'in c&&(p.__data__=c.__data__),n[g]=p,Kt(n[g],t,a,g,n,en(c,a)));return new ja(d,this._parents,t,a)}function ya(e){var t=this._name,a=this._id;'function'!=typeof e&&(e=s(e));for(var r=this._groups,o=r.length,d=[],c=[],p=0;p<o;++p)for(var u,_=r[p],g=_.length,n=0;n<g;++n)if(u=_[n]){for(var i,h=e.call(u,u.__data__,n,_),y=en(u,a),m=0,f=h.length;m<f;++m)(i=h[m])&&Kt(i,t,a,m,h,y);d.push(h),c.push(u)}return new ja(d,c,t,a)}function ma(e,t){var n,a,i;return function(){var l=T(this,e),r=(this.style.removeProperty(e),T(this,e));return l===r?null:l===n&&r===a?i:i=t(n=l,a=r)}}function fa(e){return function(){this.style.removeProperty(e)}}function xa(e,t,n){var a,i;return function(){var l=T(this,e);return l===n?null:l===a?i:i=t(a=l,n)}}function ba(e,t,n){var a,i,l;return function(){var r=T(this,e),o=n(this);return null==o&&(o=(this.style.removeProperty(e),T(this,e))),r===o?null:r===a&&o===i?l:l=t(a=r,i=o)}}function wa(e,t,n){function a(){var a=this,l=t.apply(a,arguments);return l&&function(i){a.style.setProperty(e,l(i),n)}}return a._value=t,a}function va(e){return function(){this.textContent=e}}function ka(e){return function(){var t=e(this);this.textContent=null==t?'':t}}function ja(e,t,n,a){this._groups=e,this._parents=t,this._name=n,this._id=a}function Aa(){return++El}function Sa(e){return 1-Va(e*Nl)}function Ea(e){return Ra(e*Nl)}function Ta(e){return(e=+e)<Pl?Dl*e*e:e<ql?Dl*(e-=Cl)*e+Ll:e<zl?Dl*(e-=Ml)*e+Ol:Dl*(e-=Rl)*e+Vl}function Na(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return Xl.time=Bt(),Xl;return n}function Pa(e){var t,a;e instanceof ja?(t=e._id,e=e._name):(t=Aa(),(a=Xl).time=Bt(),e=null==e?null:e+'');for(var l=this._groups,r=l.length,o=0;o<r;++o)for(var d,s=l[o],c=s.length,n=0;n<c;++n)(d=s[n])&&Kt(d,e,t,n,s,a||Na(d,t));return new ja(l,this._parents,e,t)}function Ca(e,t,n,a,i){a=null==a?90:a;var l=0==a%180?Sa:Ea,r=Bl;null==i&&(r=Il,l=Ta,i=1),n.value&&(i=0),e=e.rotation(a).zoom(i),t.transition().duration(r).ease(l).call(e).on('end',function(){n.value&&0==i?(t.select(e.parent()).remove(),n.done('end')):(a+=90,Ca(e,t,n,a,i))})}function qa(e,t){e=e||'body',++Hl,t=t||zt('progress-'+Hl),t.rotation(-90).zoom(0);var n=e;'string'==typeof n&&(n=pe(e)),n.call(t);var a=null,i=new Promise(function(e){a=e}),l={value:!1,done:a};return Ca(t,n,l),function(){return l.value=!0,i}}var La=Math.pow,Ma=Math.round,za=Math.max,Oa=Math.atan2,Ra=Math.sin,Va=Math.cos,Da=Math.acos,Xa=Math.sqrt,Ba=Math.abs,Ia=Math.PI,Ha=Math.min,Ya='http://www.w3.org/1999/xhtml',Ua={svg:'http://www.w3.org/2000/svg',xhtml:Ya,xlink:'http://www.w3.org/1999/xlink',xml:'http://www.w3.org/XML/1998/namespace',xmlns:'http://www.w3.org/2000/xmlns/'},$a=function(e){return function(){return this.matches(e)}};if('undefined'!=typeof document){var Za=document.documentElement;if(!Za.matches){var Qa=Za.webkitMatchesSelector||Za.msMatchesSelector||Za.mozMatchesSelector||Za.oMatchesSelector;$a=function(e){return function(){return Qa.call(this,e)}}}}var Fa=$a;p.prototype={constructor:p,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Wa='$';z.prototype={add:function(e){var t=this._names.indexOf(e);0>t&&(this._names.push(e),this._node.setAttribute('class',this._names.join(' ')))},remove:function(e){var t=this._names.indexOf(e);0<=t&&(this._names.splice(t,1),this._node.setAttribute('class',this._names.join(' ')))},contains:function(e){return 0<=this._names.indexOf(e)}};var Ka={};if('undefined'!=typeof document){var Ga=document.documentElement;'onmouseenter'in Ga||(Ka={mouseenter:'mouseover',mouseleave:'mouseout'})}var Ja=[null];se.prototype=ce.prototype={constructor:se,select:o,selectAll:function(e){'function'!=typeof e&&(e=s(e));for(var t=this._groups,a=t.length,l=[],r=[],o=0;o<a;++o)for(var d,c=t[o],p=c.length,n=0;n<p;++n)(d=c[n])&&(l.push(e.call(d,d.__data__,n,c)),r.push(d));return new se(l,r)},filter:function(e){'function'!=typeof e&&(e=Fa(e));for(var t=this._groups,a=t.length,l=Array(a),r=0;r<a;++r)for(var o,d=t[r],s=d.length,n=l[r]=[],c=0;c<s;++c)(o=d[c])&&e.call(o,o.__data__,c,d)&&n.push(o);return new se(l,this._parents)},data:function(e,t){if(!e)return y=Array(this.size()),s=-1,this.each(function(e){y[++s]=e}),y;var n=t?g:_,a=this._parents,i=this._groups;'function'!=typeof e&&(e=u(e));for(var l=i.length,r=Array(l),o=Array(l),d=Array(l),s=0;s<l;++s){var c=a[s],p=i[s],h=p.length,y=e.call(c,c&&c.__data__,s,a),m=y.length,f=o[s]=Array(m),x=r[s]=Array(m),b=d[s]=Array(h);n(c,p,f,x,b,y,t);for(var w,v,k=0,j=0;k<m;++k)if(w=f[k]){for(k>=j&&(j=k+1);!(v=x[j])&&++j<m;);w._next=v||null}}return r=new se(r,a),r._enter=o,r._exit=d,r},enter:function(){return new se(this._enter||this._groups.map(c),this._parents)},exit:function(){return new se(this._exit||this._groups.map(c),this._parents)},merge:function(e){for(var t=this._groups,a=e._groups,l=t.length,r=a.length,o=Ha(l,r),d=Array(l),s=0;s<o;++s)for(var c,p=t[s],u=a[s],_=p.length,n=d[s]=Array(_),g=0;g<_;++g)(c=p[g]||u[g])&&(n[g]=c);for(;s<l;++s)d[s]=t[s];return new se(d,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var a,l=e[t],r=l.length-1,i=l[r];0<=--r;)(a=l[r])&&(i&&i!==a.nextSibling&&i.parentNode.insertBefore(a,i),i=a);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=h);for(var a=this._groups,l=a.length,r=Array(l),o=0;o<l;++o){for(var d,s=a[o],c=s.length,n=r[o]=Array(c),p=0;p<c;++p)(d=s[p])&&(n[p]=d);n.sort(t)}return new se(r,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},node:function(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var l,r=e[t],o=0,i=r.length;o<i;++o)if(l=r[o],l)return l;return null},size:function(){var e=0;return this.each(function(){++e}),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,a=0,l=t.length;a<l;++a)for(var r,o=t[a],d=0,i=o.length;d<i;++d)(r=o[d])&&e.call(r,r.__data__,d,o);return this},attr:function(e,n){var a=t(e);if(2>arguments.length){var i=this.node();return a.local?i.getAttributeNS(a.space,a.local):i.getAttribute(a)}return this.each((null==n?a.local?m:y:'function'==typeof n?a.local?w:b:a.local?x:f)(a,n))},style:function(e,t,n){return 1<arguments.length?this.each((null==t?k:'function'==typeof t?S:j)(e,t,null==n?'':n)):T(this.node(),e)},property:function(e,t){return 1<arguments.length?this.each((null==t?N:'function'==typeof t?q:P)(e,t)):this.node()[e]},classed:function(e,t){var a=L(e+'');if(2>arguments.length){for(var l=M(this.node()),r=-1,i=a.length;++r<i;)if(!l.contains(a[r]))return!1;return!0}return this.each(('function'==typeof t?I:t?V:X)(a,t))},text:function(e){return arguments.length?this.each(null==e?H:('function'==typeof e?U:Y)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?$:('function'==typeof e?Q:Z)(e)):this.node().innerHTML},raise:function(){return this.each(F)},lower:function(){return this.each(W)},append:function(e){var t='function'==typeof e?e:i(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n='function'==typeof e?e:i(e),a=null==t?K:'function'==typeof t?t:r(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(G)},clone:function(e){return this.select(e?ee:J)},datum:function(e){return arguments.length?this.property('__data__',e):this.node().__data__},on:function(e,a,l){var r,i,t=ae(e+''),d=t.length;if(2>arguments.length){var n=this.node().__on;if(n)for(var s,o=0,c=n.length;o<c;++o)for(r=0,s=n[o];r<d;++r)if((i=t[r]).type===s.type&&i.name===s.name)return s.value;return}for(n=a?le:ie,null==l&&(l=!1),r=0;r<d;++r)this.each(n(t[r],a,l));return this},dispatch:function(e,t){return this.each(('function'==typeof t?de:oe)(e,t))}};var ei=Ia,ti=2*ei,ni=1e-6;ue.prototype=_e.prototype={constructor:ue,moveTo:function(e,t){this._+='M'+(this._x0=this._x1=+e)+','+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+='Z')},lineTo:function(e,t){this._+='L'+(this._x1=+e)+','+(this._y1=+t)},quadraticCurveTo:function(e,t,n,a){this._+='Q'+ +e+','+ +t+','+(this._x1=+n)+','+(this._y1=+a)},bezierCurveTo:function(e,t,n,a,i,l){this._+='C'+ +e+','+ +t+','+ +n+','+ +a+','+(this._x1=+i)+','+(this._y1=+l)},arcTo:function(e,t,n,a,i){e=+e,t=+t,n=+n,a=+a,i=+i;var o=this._x1,d=this._y1,s=n-e,c=a-t,p=o-e,u=d-t,_=p*p+u*u;if(0>i)throw new Error('negative radius: '+i);if(null===this._x1)this._+='M'+(this._x1=e)+','+(this._y1=t);else if(!(_>ni));else if(!(Ba(u*s-c*p)>ni)||!i)this._+='L'+(this._x1=e)+','+(this._y1=t);else{var g=n-o,h=a-d,y=s*s+c*c,m=Xa(y),f=Xa(_),x=i*Math.tan((ei-Da((y+_-(g*g+h*h))/(2*m*f)))/2),l=x/f,b=x/m;Ba(l-1)>ni&&(this._+='L'+(e+l*p)+','+(t+l*u)),this._+='A'+i+','+i+',0,0,'+ +(u*g>p*h)+','+(this._x1=e+b*s)+','+(this._y1=t+b*c)}},arc:function(e,t,n,a,i,l){e=+e,t=+t,n=+n;var o=n*Va(a),d=n*Ra(a),s=e+o,c=t+d,p=1^l,u=l?a-i:i-a;if(0>n)throw new Error('negative radius: '+n);null===this._x1?this._+='M'+s+','+c:(Ba(this._x1-s)>ni||Ba(this._y1-c)>ni)&&(this._+='L'+s+','+c);n&&(0>u&&(u=u%ti+ti),u>ti-ni?this._+='A'+n+','+n+',0,1,'+p+','+(e-o)+','+(t-d)+'A'+n+','+n+',0,1,'+p+','+(this._x1=s)+','+(this._y1=c):u>ni&&(this._+='A'+n+','+n+',0,'+ +(u>=ei)+','+p+','+(this._x1=e+n*Va(i))+','+(this._y1=t+n*Ra(i))))},rect:function(e,t,n,a){this._+='M'+(this._x0=this._x1=+e)+','+(this._y0=this._y1=+t)+'h'+ +n+'v'+ +a+'h'+-n+'Z'},toString:function(){return this._}};var ai=Ba,ii=Oa,li=Va,ri=za,oi=Ha,di=Ra,si=Xa,ci=1e-12,pi=Ia,ui=pi/2,_i=2*pi;Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Te(this,this._t0,Ee(this,this._t0));}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Te(this,Ee(this,n=Se(this,e,t)),n);break;default:Te(this,this._t0,n=Se(this,e,t));}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(function(e){this._context=new Pe(e)}.prototype=Object.create(Ne.prototype)).point=function(e,t){Ne.prototype.point.call(this,t,e)},Pe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,a,i,l){this._context.bezierCurveTo(t,e,a,n,l,i)}};var gi='http://www.w3.org/1999/xhtml',hi={svg:'http://www.w3.org/2000/svg',xhtml:gi,xlink:'http://www.w3.org/1999/xlink',xml:'http://www.w3.org/XML/1998/namespace',xmlns:'http://www.w3.org/2000/xmlns/'},yi=function(e){return function(){return this.matches(e)}};if('undefined'!=typeof document){var mi=document.documentElement;if(!mi.matches){var fi=mi.webkitMatchesSelector||mi.msMatchesSelector||mi.mozMatchesSelector||mi.oMatchesSelector;yi=function(e){return function(){return fi.call(this,e)}}}}var xi=yi,bi={};if('undefined'!=typeof document){var wi=document.documentElement;'onmouseenter'in wi||(bi={mouseenter:'mouseover',mouseleave:'mouseout'})}$e.prototype={constructor:$e,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var vi='$';_t.prototype={add:function(e){var t=this._names.indexOf(e);0>t&&(this._names.push(e),this._node.setAttribute('class',this._names.join(' ')))},remove:function(e){var t=this._names.indexOf(e);0<=t&&(this._names.splice(t,1),this._node.setAttribute('class',this._names.join(' ')))},contains:function(e){return 0<=this._names.indexOf(e)}};var ki=[null];qt.prototype=function(){return new qt([[document.documentElement]],ki)}.prototype={constructor:qt,select:Ie,selectAll:function(e){'function'!=typeof e&&(e=Ye(e));for(var t=this._groups,a=t.length,l=[],r=[],o=0;o<a;++o)for(var d,s=t[o],c=s.length,n=0;n<c;++n)(d=s[n])&&(l.push(e.call(d,d.__data__,n,s)),r.push(d));return new qt(l,r)},filter:function(e){'function'!=typeof e&&(e=xi(e));for(var t=this._groups,a=t.length,l=Array(a),r=0;r<a;++r)for(var o,d=t[r],s=d.length,n=l[r]=[],c=0;c<s;++c)(o=d[c])&&e.call(o,o.__data__,c,d)&&n.push(o);return new qt(l,this._parents)},data:function(e,t){if(!e)return _=Array(this.size()),s=-1,this.each(function(e){_[++s]=e}),_;var n=t?Fe:Qe,a=this._parents,i=this._groups;'function'!=typeof e&&(e=Ze(e));for(var l=i.length,r=Array(l),o=Array(l),d=Array(l),s=0;s<l;++s){var c=a[s],p=i[s],u=p.length,_=e.call(c,c&&c.__data__,s,a),g=_.length,h=o[s]=Array(g),y=r[s]=Array(g),m=d[s]=Array(u);n(c,p,h,y,m,_,t);for(var f,x,b=0,w=0;b<g;++b)if(f=h[b]){for(b>=w&&(w=b+1);!(x=y[w])&&++w<g;);f._next=x||null}}return r=new qt(r,a),r._enter=o,r._exit=d,r},enter:function(){return new qt(this._enter||this._groups.map(Ue),this._parents)},exit:function(){return new qt(this._exit||this._groups.map(Ue),this._parents)},merge:function(e){for(var t=this._groups,a=e._groups,l=t.length,r=a.length,o=Ha(l,r),d=Array(l),s=0;s<o;++s)for(var c,p=t[s],u=a[s],_=p.length,n=d[s]=Array(_),g=0;g<_;++g)(c=p[g]||u[g])&&(n[g]=c);for(;s<l;++s)d[s]=t[s];return new qt(d,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var a,l=e[t],r=l.length-1,i=l[r];0<=--r;)(a=l[r])&&(i&&i!==a.nextSibling&&i.parentNode.insertBefore(a,i),i=a);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=We);for(var a=this._groups,l=a.length,r=Array(l),o=0;o<l;++o){for(var d,s=a[o],c=s.length,n=r[o]=Array(c),p=0;p<c;++p)(d=s[p])&&(n[p]=d);n.sort(t)}return new qt(r,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},node:function(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var l,r=e[t],o=0,i=r.length;o<i;++o)if(l=r[o],l)return l;return null},size:function(){var e=0;return this.each(function(){++e}),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,a=0,l=t.length;a<l;++a)for(var r,o=t[a],d=0,i=o.length;d<i;++d)(r=o[d])&&e.call(r,r.__data__,d,o);return this},attr:function(e,t){var n=Ce(e);if(2>arguments.length){var a=this.node();return n.local?a.getAttributeNS(n.space,n.local):a.getAttribute(n)}return this.each((null==t?n.local?Ge:Ke:'function'==typeof t?n.local?nt:tt:n.local?et:Je)(n,t))},style:function(e,t,n){return 1<arguments.length?this.each((null==t?it:'function'==typeof t?rt:lt)(e,t,null==n?'':n)):ot(this.node(),e)},property:function(e,t){return 1<arguments.length?this.each((null==t?dt:'function'==typeof t?ct:st)(e,t)):this.node()[e]},classed:function(e,t){var a=pt(e+'');if(2>arguments.length){for(var l=ut(this.node()),r=-1,i=a.length;++r<i;)if(!l.contains(a[r]))return!1;return!0}return this.each(('function'==typeof t?ft:t?yt:mt)(a,t))},text:function(e){return arguments.length?this.each(null==e?xt:('function'==typeof e?wt:bt)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?vt:('function'==typeof e?jt:kt)(e)):this.node().innerHTML},raise:function(){return this.each(At)},lower:function(){return this.each(St)},append:function(e){var t='function'==typeof e?e:Me(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n='function'==typeof e?e:Me(e),a=null==t?Et:'function'==typeof t?t:Be(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(Tt)},datum:function(e){return arguments.length?this.property('__data__',e):this.node().__data__},on:function(e,a,l){var r,i,t=Re(e+''),d=t.length;if(2>arguments.length){var n=this.node().__on;if(n)for(var s,o=0,c=n.length;o<c;++o)for(r=0,s=n[o];r<d;++r)if((i=t[r]).type===s.type&&i.name===s.name)return s.value;return}for(n=a?De:Ve,null==l&&(l=!1),r=0;r<d;++r)this.each(n(t[r],a,l));return this},dispatch:function(e,t){return this.each(('function'==typeof t?Ct:Pt)(e,t))}};var ji=128,Ai=1,Si=2,Ei={value:function(){}};Rt.prototype=Ot.prototype={constructor:Rt,on:function(e,a){var l,t=this._,r=Vt(e+'',t),o=-1,i=r.length;if(2>arguments.length){for(;++o<i;)if((l=(e=r[o]).type)&&(l=Dt(t[l],e.name)))return l;return}if(null!=a&&'function'!=typeof a)throw new Error('invalid callback: '+a);for(;++o<i;)if(l=(e=r[o]).type)t[l]=Xt(t[l],e.name,a);else if(null==a)for(l in t)t[l]=Xt(t[l],e.name,null);return this},copy:function(){var e={},n=this._;for(var a in n)e[a]=n[a].slice();return new Rt(e)},call:function(e,a){if(0<(l=arguments.length-2))for(var l,n,t=Array(l),r=0;r<l;++r)t[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error('unknown type: '+e);for(n=this._[e],r=0,l=n.length;r<l;++r)n[r].value.apply(a,t)},apply:function(e,a,l){if(!this._.hasOwnProperty(e))throw new Error('unknown type: '+e);for(var r=this._[e],t=0,i=r.length;t<i;++t)r[t].value.apply(a,l)}};var Ti,Ni,Pi=0,Ci=0,qi=0,Li=1e3,Mi=0,zi=0,Oi=0,Ri='object'==typeof performance&&performance.now?performance:Date,Vi='object'==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};Ht.prototype=Yt.prototype={constructor:Ht,restart:function(e,t,n){if('function'!=typeof e)throw new TypeError('callback is not a function');n=(null==n?Bt():+n)+(null==t?0:+t),this._next||Ni===this||(Ni?Ni._next=this:Ti=this,Ni=this),this._call=e,this._time=n,Ft()},stop:function(){this._call&&(this._call=null,this._time=Infinity,Ft())}};var Di=Ot('start','end','interrupt'),Xi=[],Bi=0,Ii=1,Hi=2,Yi=3,Ui=4,$i=5,Zi=6,Qi=.7,Fi=1/Qi,Wi=/^#([0-9a-f]{3})$/,Ki=/^#([0-9a-f]{6})$/,Gi=/^rgb\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*\)$/,Ji=/^rgb\(\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*\)$/,el=/^rgba\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*\)$/,tl=/^rgba\(\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*\)$/,nl=/^hsl\(\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*\)$/,al=/^hsla\(\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)%\s*,\s*([+-]?\d*\.?\d+(?:[eE][+-]?\d+)?)\s*\)$/,il={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};an(rn,on,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+''}}),an(un,pn,ln(rn,{brighter:function(e){return e=null==e?Fi:La(Fi,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Qi:La(Qi,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&255>=this.r&&0<=this.g&&255>=this.g&&0<=this.b&&255>=this.b&&0<=this.opacity&&1>=this.opacity},toString:function(){var e=this.opacity;return e=isNaN(e)?1:za(0,Ha(1,e)),(1===e?'rgb(':'rgba(')+za(0,Ha(255,Ma(this.r)||0))+', '+za(0,Ha(255,Ma(this.g)||0))+', '+za(0,Ha(255,Ma(this.b)||0))+(1===e?')':', '+e+')')}})),an(hn,function(e,t,n,a){return 1===arguments.length?gn(e):new hn(e,t,n,null==a?1:a)},ln(rn,{brighter:function(e){return e=null==e?Fi:La(Fi,e),new hn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qi:La(Qi,e),new hn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(0>this.h),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,a=n+(.5>n?n:1-n)*t,i=2*n-a;return new un(yn(240<=e?e-240:e+120,i,a),yn(e,i,a),yn(120>e?e+240:e-120,i,a),this.opacity)},displayable:function(){return(0<=this.s&&1>=this.s||isNaN(this.s))&&0<=this.l&&1>=this.l&&0<=this.opacity&&1>=this.opacity}}));var ll=Ia/180,rl=180/Ia,ol=18,Kn=.95047,Xn=1,Yn=1.08883,Zn=4/29,dl=6/29,sl=3*dl*dl,cl=dl*dl*dl;an(fn,function(e,t,n,a){return 1===arguments.length?mn(e):new fn(e,t,n,null==a?1:a)},ln(rn,{brighter:function(e){return new fn(this.l+ol*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new fn(this.l-ol*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=Xn*bn(e),t=Kn*bn(t),n=Yn*bn(n),new un(wn(3.2404542*t-1.5371385*e-.4985314*n),wn(-.969266*t+1.8760108*e+.041556*n),wn(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),an(jn,function(e,t,n,a){return 1===arguments.length?kn(e):new jn(e,t,n,null==a?1:a)},ln(rn,{brighter:function(e){return new jn(this.h,this.c,this.l+ol*(null==e?1:e),this.opacity)},darker:function(e){return new jn(this.h,this.c,this.l-ol*(null==e?1:e),this.opacity)},rgb:function(){return mn(this).rgb()}}));var pl=-.14861,A=+1.78277,B=-.29227,C=-.90649,D=+1.97294,E=D*C,ul=D*A,_l=A*B-C*pl;an(Sn,function(e,t,n,a){return 1===arguments.length?An(e):new Sn(e,t,n,null==a?1:a)},ln(rn,{brighter:function(e){return e=null==e?Fi:La(Fi,e),new Sn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qi:La(Qi,e),new Sn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*ll,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),a=Va(e),i=Ra(e);return new un(255*(t+n*(pl*a+A*i)),255*(t+n*(B*a+C*i)),255*(t+n*(D*a)),this.opacity)}}));var gl,hl,yl,ml,fl=function e(t){function n(e,t){var n=a((e=pn(e)).r,(t=pn(t)).r),i=a(e.g,t.g),l=a(e.b,t.b),r=Cn(e.opacity,t.opacity);return function(a){return e.r=n(a),e.g=i(a),e.b=l(a),e.opacity=r(a),e+''}}var a=Pn(t);return n.gamma=e,n}(1),xl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bl=new RegExp(xl.source,'g'),wl=180/Ia,vl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},kl=Dn(Rn,'px, ','px)','deg)'),jl=Dn(Vn,', ',')',')'),Al=Math.SQRT2,Sl=ce.prototype.constructor,El=0,Tl=ce.prototype;ja.prototype=function(e){return ce().transition(e)}.prototype={constructor:ja,select:ha,selectAll:ya,filter:function(e){'function'!=typeof e&&(e=Fa(e));for(var t=this._groups,a=t.length,l=Array(a),r=0;r<a;++r)for(var o,d=t[r],s=d.length,n=l[r]=[],c=0;c<s;++c)(o=d[c])&&e.call(o,o.__data__,c,d)&&n.push(o);return new ja(l,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,a=e._groups,l=t.length,r=a.length,o=Ha(l,r),d=Array(l),s=0;s<o;++s)for(var c,p=t[s],u=a[s],_=p.length,n=d[s]=Array(_),g=0;g<_;++g)(c=p[g]||u[g])&&(n[g]=c);for(;s<l;++s)d[s]=t[s];return new ja(d,this._parents,this._name,this._id)},selection:function(){return new Sl(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,a=Aa(),l=this._groups,r=l.length,o=0;o<r;++o)for(var d,s=l[o],c=s.length,n=0;n<c;++n)if(d=s[n]){var i=en(d,t);Kt(d,e,a,n,s,{time:i.time+i.delay+i.duration,delay:0,duration:i.duration,ease:i.ease})}return new ja(l,this._parents,e,a)},call:Tl.call,nodes:Tl.nodes,node:Tl.node,size:Tl.size,empty:Tl.empty,each:Tl.each,on:_a,attr:function(e,n){var a=t(e),l='transform'===a?jl:$n;return this.attrTween(e,'function'==typeof n?(a.local?ea:Jn)(a,l,Un(this,'attr.'+e,n)):null==n?(a.local?Fn:Qn)(a):(a.local?Gn:Wn)(a,l,n+''))},attrTween:function(e,n){var a='attr.'+e;if(2>arguments.length)return(a=this.tween(a))&&a._value;if(null==n)return this.tween(a,null);if('function'!=typeof n)throw new Error;var i=t(e);return this.tween(a,(i.local?ta:na)(i,n))},style:function(e,t,n){var a='transform'==(e+='')?kl:$n;return null==t?this.styleTween(e,ma(e,a)).on('end.style.'+e,fa(e)):this.styleTween(e,'function'==typeof t?ba(e,a,Un(this,'style.'+e,t)):xa(e,a,t+''),n)},styleTween:function(e,t,n){var a='style.'+(e+='');if(2>arguments.length)return(a=this.tween(a))&&a._value;if(null==t)return this.tween(a,null);if('function'!=typeof t)throw new Error;return this.tween(a,wa(e,t,null==n?'':n))},text:function(e){return this.tween('text','function'==typeof e?ka(Un(this,'text',e)):va(null==e?'':e+''))},remove:function(){return this.on('end.remove',ga(this._id))},tween:Hn,delay:la,duration:da,ease:ca};var Nl=Ia/2,Pl=4/11,Cl=6/11,ql=8/11,Ll=3/4,Ml=9/11,zl=10/11,Ol=15/16,Rl=21/22,Vl=63/64,Dl=1/Pl/Pl,Xl={time:null,delay:0,duration:250,ease:function(e){return(1>=(e*=2)?e*e*e:(e-=2)*e*e+2)/2}};ce.prototype.interrupt=function(e){return this.each(function(){nn(this,e)})},ce.prototype.transition=Pa;var Bl=333,Il=666,Hl=0;e.version='0.2.1',e.html=zt,e.show=qa,Object.defineProperty(e,'__esModule',{value:!0})});
(function(a,b){'object'==typeof exports&&'undefined'!=typeof module?b(exports,require('d3-selection'),require('d3-shape'),require('d3-transition'),require('d3-ease')):'function'==typeof define&&define.amd?define(['exports','d3-selection','d3-shape','d3-transition','d3-ease'],b):b(a.D3RsProgress={},a.d3,a.d3,a.d3,a.d3)})(this,function(a,b,c,d,e){'use strict';function f(a){function c(){m=f-k-g}function d(){n=h-i-j}function e(c){var d=c.selection?c.selection():c,j=void 0!==c.selection;d.each(function(){var d=b.select(this),m=d.select(e.self());if(m.empty()){var n=(null==a?'':a+'-')+'title',v=(null==a?'':a+'-')+'desc';m=d.append('svg').attr('version','1.1').attr('xmlns','http://www.w3.org/2000/svg').attr('xmlns:xlink','http://www.w3.org/1999/xlink').attr('preserveAspectRatio','xMidYMid meet').attr('aria-labelledby',n).attr('aria-describedby',v).attr('id',a),m.append('title').attr('id',n),m.append('desc').attr('id',v),m.append('defs'),m.append('rect').attr('class','background'),m.append('g').attr('class','svg-child')}m.attr('overflow',u?'visible':'hidden');var w=m.select('defs'),x=w.selectAll('style').data(o?[o]:[]);x.exit().remove(),x=x.enter().append('style').attr('type','text/css').merge(x),x.text(o),m.attr('role',s),m.select('title').text(q),m.select('desc').text(r);var y=m.select('rect.background').attr('width',null==p?null:f*l).attr('height',null==p?null:h*l);m.attr('class',t);var z=m.select(e.child());!0==j&&(m=m.transition(c),z=z.transition(c),y=y.transition(c)),m.attr('width',f*l).attr('height',h*l).attr('viewBox','0 0 '+f+' '+h),z.attr('transform','translate('+k+','+i+')'),y.attr('fill',p)})}var f=300,h=150,i=16,g=16,j=16,k=16,l=1,m=-1,n=-1,o=null,p=null,q=null,r=null,s='img',t='svg-svg',u=!1;return c(),d(),e.self=function(){return'svg'+(a?'#'+a:'')},e.child=function(){return'g.svg-child'},e.childDefs=function(){return'defs'},e.childWidth=function(){return m},e.childHeight=function(){return n},e.id=function(){return a},e.classed=function(a){return arguments.length?(t=a,e):t},e.style=function(a){return arguments.length?(o=a,e):o},e.background=function(a){return arguments.length?(p=a,e):p},e.width=function(a){return arguments.length?(f=a,c(),e):f},e.height=function(a){return arguments.length?(h=a,d(),e):f},e.scale=function(a){return arguments.length?(l=a,e):l},e.title=function(a){return arguments.length?(q=a,e):q},e.desc=function(a){return arguments.length?(r=a,e):r},e.role=function(a){return arguments.length?(s=a,e):s},e.overflow=function(a){return arguments.length?(u=a,e):u},e.margin=function(a){return arguments.length?(void 0===a.top?(i=a,g=a,j=a,k=a):(i=a.top,g=a.right,j=a.bottom,k=a.left),c(),d(),e):{top:i,right:g,bottom:j,left:k}},e}function g(a){function d(d){var e=d.selection?d.selection():d,y=void 0!==d.selection,z=g||Math.round(i*k);e.each(function(){var e=b.select(this),k=f(a?'svg-'+a:null).width(i).height(z).scale(m).margin(l),A=e;!0==y&&(A=e.transition(d)),A.call(k);var B=e.select(k.self()),C=B.select(k.child()),D=k.childWidth(),w=k.childHeight(),h=Math.min(D,w)/2,E=15*(D/j),F=C.select('g');t&&F.attr('style','isolation: isolate'),F.empty()&&(F=C.append('g').attr('id',a).attr('transform','translate('+-h+','+-h+'), scale('+n+'), translate('+h+','+h+')').attr('style','mix-blend-mode: difference'),F.append('circle').attr('class','bg'),F.append('path').attr('class','fg').attr('d',J).attr('transform','translate('+h+','+h+'), rotate('+p+')'),F.append('g').attr('transform','translate('+h+','+h+'), scale('+E*q+')').append('path').attr('class','icon').attr('d','M0,0l3,1c0,0,0.2,5.4-3,7c-3.2-1.6-3-7-3-7L0,0z').attr('style','mix-blend-mode: '+(t||u?'unset':'difference')).attr('transform','translate(0,-4)'));var g=F.select('circle.bg'),G=F.select('path.fg'),H=F.select('g'),I=F.select('path.icon'),J=c.arc().innerRadius(0).outerRadius(h*o).startAngle(-(s/2)).endAngle(s/2);g.attr('r',h).attr('cx',D/2).attr('cy',w/2).attr('fill',v),G.attr('d',J).attr('fill',x),I.attr('fill',t||u?x:v).attr('stroke',v);var K=G;!0==y&&(F=F.transition(d),K=G.transition(d),H=H.transition(d)),F.attr('transform','translate('+h+','+h+'), scale('+n+'), translate('+-h+','+-h+')'),K.attr('transform','translate('+h+','+h+'), rotate('+p+')'),H.attr('transform','translate('+h+','+h+'), scale('+E*q+')')})}var e='icon-progress',i=j,g=null,m=1,n=1,o=.8,p=0,q=.55,s=Math.PI,t=!1,u=!1,v='white',x='black';return d.self=function(){return'g'+(a?'#'+a:'.'+e)},d.id=function(){return a},d.parent=function(){return a?'#svg-'+a:'.svg-svg'},d.classed=function(a){return arguments.length?(e=a,d):e},d.size=function(a){return arguments.length?(i=a,g=null,d):i},d.width=function(a){return arguments.length?(i=a,d):i},d.height=function(a){return arguments.length?(g=a,d):g},d.scale=function(a){return arguments.length?(m=a,d):m},d.zoom=function(a){return arguments.length?(n=a,d):n},d.inset=function(a){return arguments.length?(o=a,d):o},d.rotation=function(a){return arguments.length?(p=a,d):p},d.angle=function(a){return arguments.length?(s=a,d):s},d.colors=function(a,b){return 2===arguments.length?(t=!0,v=a,x=b,d):v},d.border=function(a){return arguments.length?(u=a,d):u},d.icon=function(a){return arguments.length?(q=a,d):q},d}function h(a,b,c,d,f){d=null==d?90:d;var g=0==d%180?e.easeSinIn:e.easeSinOut,i=m;null==f&&(i=n,g=e.easeBounce,f=1),c.value&&(f=0),a=a.rotation(d).zoom(f),b.transition().duration(i).ease(g).call(a).on('end',function(){c.value&&0==f?(b.select(a.parent()).remove(),c.done('end')):(d+=90,h(a,b,c,d,f))})}function i(a,c){a=a||'body',++o,c=c||g('progress-'+o),c.rotation(-90).zoom(0);var d=a;'string'==typeof d&&(d=b.select(a)),d.call(c);var e=null,f=new Promise(function(a){e=a}),i={value:!1,done:e};return h(c,d,i),function(){return i.value=!0,f}}var j=128,k=1,l=2,m=333,n=666,o=0;a.version='0.2.2',a.html=g,a.show=i,Object.defineProperty(a,'__esModule',{value:!0})});
//# sourceMappingURL=d3-rs-progress.umd.min.js.map
{
"name": "@redsift/d3-rs-progress",
"version": "0.2.1",
"version": "0.2.2",
"description": "Generates an animated D3v4.",

@@ -29,3 +29,3 @@ "keywords": [

"prepublish": "npm run clean; npm run build",
"build": "npm run clean; node ./node_modules/@redsift/rollup-bundler/src/index.js",
"build": "npm run clean; node ./node_modules/@redsift/rollup-bundler/src/index.js bundle.config.js",
"clean": "rm -rf dist",

@@ -37,5 +37,5 @@ "pretest": "npm outdated || true && npm run build",

"dependencies": {
"@redsift/d3-rs-svg": "^0.4.0",
"@redsift/d3-rs-svg": "^0.5.2",
"d3-ease": "^1.0.2",
"d3-selection": "^1.0.2",
"d3-selection": "^1.3.0",
"d3-shape": "^1.0.3",

@@ -42,0 +42,0 @@ "d3-transition": "^1.0.3"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc