UNPKG

iobroker.roborock

Version:
1 lines 127 kB
var oo={value:()=>{}};function sn(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Jt(n)}function Jt(t){this._=t}function ao(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Jt.prototype=sn.prototype={constructor:Jt,on:function(t,e){var n=this._,r=ao(t+"",n),o,a=-1,i=r.length;if(arguments.length<2){for(;++a<i;)if((o=(t=r[a]).type)&&(o=so(n[o],t.name)))return o;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<i;)if(o=(t=r[a]).type)n[o]=an(n[o],t.name,e);else if(e==null)for(o in n)n[o]=an(n[o],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Jt(t)},call:function(t,e){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,a;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],r=0,o=a.length;r<o;++r)a[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],o=0,a=r.length;o<a;++o)r[o].value.apply(e,n)}};function so(t,e){for(var n=0,r=t.length,o;n<r;++n)if((o=t[n]).name===e)return o.value}function an(t,e,n){for(var r=0,o=t.length;r<o;++r)if(t[r].name===e){t[r]=oo,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var At=sn;var $t="http://www.w3.org/1999/xhtml",Ge={svg:"http://www.w3.org/2000/svg",xhtml:$t,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function st(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Ge.hasOwnProperty(e)?{space:Ge[e],local:t}:t}function lo(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===$t&&e.documentElement.namespaceURI===$t?e.createElement(t):e.createElementNS(n,t)}}function uo(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function te(t){var e=st(t);return(e.local?uo:lo)(e)}function co(){}function It(t){return t==null?co:function(){return this.querySelector(t)}}function ln(t){typeof t!="function"&&(t=It(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var a=e[o],i=a.length,s=r[o]=new Array(i),l,c,u=0;u<i;++u)(l=a[u])&&(c=t.call(l,l.__data__,u,a))&&("__data__"in l&&(c.__data__=l.__data__),s[u]=c);return new N(r,this._parents)}function De(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function ho(){return[]}function Ot(t){return t==null?ho:function(){return this.querySelectorAll(t)}}function po(t){return function(){return De(t.apply(this,arguments))}}function un(t){typeof t=="function"?t=po(t):t=Ot(t);for(var e=this._groups,n=e.length,r=[],o=[],a=0;a<n;++a)for(var i=e[a],s=i.length,l,c=0;c<s;++c)(l=i[c])&&(r.push(t.call(l,l.__data__,c,i)),o.push(l));return new N(r,o)}function Tt(t){return function(){return this.matches(t)}}function ee(t){return function(e){return e.matches(t)}}var mo=Array.prototype.find;function fo(t){return function(){return mo.call(this.children,t)}}function go(){return this.firstElementChild}function cn(t){return this.select(t==null?go:fo(typeof t=="function"?t:ee(t)))}var Ao=Array.prototype.filter;function Io(){return Array.from(this.children)}function yo(t){return function(){return Ao.call(this.children,t)}}function hn(t){return this.selectAll(t==null?Io:yo(typeof t=="function"?t:ee(t)))}function pn(t){typeof t!="function"&&(t=Tt(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var a=e[o],i=a.length,s=r[o]=[],l,c=0;c<i;++c)(l=a[c])&&t.call(l,l.__data__,c,a)&&s.push(l);return new N(r,this._parents)}function ne(t){return new Array(t.length)}function mn(){return new N(this._enter||this._groups.map(ne),this._parents)}function Rt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Rt.prototype={constructor:Rt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function fn(t){return function(){return t}}function bo(t,e,n,r,o,a){for(var i=0,s,l=e.length,c=a.length;i<c;++i)(s=e[i])?(s.__data__=a[i],r[i]=s):n[i]=new Rt(t,a[i]);for(;i<l;++i)(s=e[i])&&(o[i]=s)}function Co(t,e,n,r,o,a,i){var s,l,c=new Map,u=e.length,m=a.length,p=new Array(u),g;for(s=0;s<u;++s)(l=e[s])&&(p[s]=g=i.call(l,l.__data__,s,e)+"",c.has(g)?o[s]=l:c.set(g,l));for(s=0;s<m;++s)g=i.call(t,a[s],s,a)+"",(l=c.get(g))?(r[s]=l,l.__data__=a[s],c.delete(g)):n[s]=new Rt(t,a[s]);for(s=0;s<u;++s)(l=e[s])&&c.get(p[s])===l&&(o[s]=l)}function xo(t){return t.__data__}function gn(t,e){if(!arguments.length)return Array.from(this,xo);var n=e?Co:bo,r=this._parents,o=this._groups;typeof t!="function"&&(t=fn(t));for(var a=o.length,i=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var u=r[c],m=o[c],p=m.length,g=vo(t.call(u,u&&u.__data__,c,r)),C=g.length,x=s[c]=new Array(C),E=i[c]=new Array(C),b=l[c]=new Array(p);n(u,m,x,E,b,g,e);for(var T=0,B=0,A,k;T<C;++T)if(A=x[T]){for(T>=B&&(B=T+1);!(k=E[B])&&++B<C;);A._next=k||null}}return i=new N(i,r),i._enter=s,i._exit=l,i}function vo(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function dn(){return new N(this._exit||this._groups.map(ne),this._parents)}function An(t,e,n){var r=this.enter(),o=this,a=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),n==null?a.remove():n(a),r&&o?r.merge(o).order():o}function In(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,o=n.length,a=r.length,i=Math.min(o,a),s=new Array(o),l=0;l<i;++l)for(var c=n[l],u=r[l],m=c.length,p=s[l]=new Array(m),g,C=0;C<m;++C)(g=c[C]||u[C])&&(p[C]=g);for(;l<o;++l)s[l]=n[l];return new N(s,this._parents)}function yn(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],o=r.length-1,a=r[o],i;--o>=0;)(i=r[o])&&(a&&i.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(i,a),a=i);return this}function bn(t){t||(t=wo);function e(m,p){return m&&p?t(m.__data__,p.__data__):!m-!p}for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a){for(var i=n[a],s=i.length,l=o[a]=new Array(s),c,u=0;u<s;++u)(c=i[u])&&(l[u]=c);l.sort(e)}return new N(o,this._parents).order()}function wo(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Cn(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function xn(){return Array.from(this)}function vn(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null}function wn(){let t=0;for(let e of this)++t;return t}function Sn(){return!this.node()}function En(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var o=e[n],a=0,i=o.length,s;a<i;++a)(s=o[a])&&t.call(s,s.__data__,a,o);return this}function So(t){return function(){this.removeAttribute(t)}}function Eo(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mo(t,e){return function(){this.setAttribute(t,e)}}function ko(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _o(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Po(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Mn(t,e){var n=st(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Eo:So:typeof e=="function"?n.local?Po:_o:n.local?ko:Mo)(n,e))}function re(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Oo(t){return function(){this.style.removeProperty(t)}}function To(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ro(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function kn(t,e,n){return arguments.length>1?this.each((e==null?Oo:typeof e=="function"?Ro:To)(t,e,n??"")):ht(this.node(),t)}function ht(t,e){return t.style.getPropertyValue(e)||re(t).getComputedStyle(t,null).getPropertyValue(e)}function Bo(t){return function(){delete this[t]}}function Go(t,e){return function(){this[t]=e}}function Do(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function _n(t,e){return arguments.length>1?this.each((e==null?Bo:typeof e=="function"?Do:Go)(t,e)):this.node()[t]}function Pn(t){return t.trim().split(/^|\s+/)}function Ne(t){return t.classList||new On(t)}function On(t){this._node=t,this._names=Pn(t.getAttribute("class")||"")}On.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Tn(t,e){for(var n=Ne(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function Rn(t,e){for(var n=Ne(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function No(t){return function(){Tn(this,t)}}function zo(t){return function(){Rn(this,t)}}function Lo(t,e){return function(){(e.apply(this,arguments)?Tn:Rn)(this,t)}}function Bn(t,e){var n=Pn(t+"");if(arguments.length<2){for(var r=Ne(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof e=="function"?Lo:e?No:zo)(n,e))}function Ho(){this.textContent=""}function Yo(t){return function(){this.textContent=t}}function Fo(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Gn(t){return arguments.length?this.each(t==null?Ho:(typeof t=="function"?Fo:Yo)(t)):this.node().textContent}function Qo(){this.innerHTML=""}function Wo(t){return function(){this.innerHTML=t}}function Xo(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Dn(t){return arguments.length?this.each(t==null?Qo:(typeof t=="function"?Xo:Wo)(t)):this.node().innerHTML}function Vo(){this.nextSibling&&this.parentNode.appendChild(this)}function Nn(){return this.each(Vo)}function Zo(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zn(){return this.each(Zo)}function Ln(t){var e=typeof t=="function"?t:te(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Uo(){return null}function Hn(t,e){var n=typeof t=="function"?t:te(t),r=e==null?Uo:typeof e=="function"?e:It(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function qo(){var t=this.parentNode;t&&t.removeChild(this)}function Yn(){return this.each(qo)}function Ko(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function jo(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Fn(t){return this.select(t?jo:Ko)}function Qn(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Jo(t){return function(e){t.call(this,e,this.__data__)}}function $o(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function ti(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,o=e.length,a;n<o;++n)a=e[n],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++r]=a;++r?e.length=r:delete this.__on}}}function ei(t,e,n){return function(){var r=this.__on,o,a=Jo(e);if(r){for(var i=0,s=r.length;i<s;++i)if((o=r[i]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=n),o.value=e;return}}this.addEventListener(t.type,a,n),o={type:t.type,name:t.name,value:e,listener:a,options:n},r?r.push(o):this.__on=[o]}}function Wn(t,e,n){var r=$o(t+""),o,a=r.length,i;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,u;l<c;++l)for(o=0,u=s[l];o<a;++o)if((i=r[o]).type===u.type&&i.name===u.name)return u.value}return}for(s=e?ei:ti,o=0;o<a;++o)this.each(s(r[o],e,n));return this}function Xn(t,e,n){var r=re(t),o=r.CustomEvent;typeof o=="function"?o=new o(e,n):(o=r.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function ni(t,e){return function(){return Xn(this,t,e)}}function ri(t,e){return function(){return Xn(this,t,e.apply(this,arguments))}}function Vn(t,e){return this.each((typeof e=="function"?ri:ni)(t,e))}function*Zn(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],o=0,a=r.length,i;o<a;++o)(i=r[o])&&(yield i)}var ze=[null];function N(t,e){this._groups=t,this._parents=e}function Un(){return new N([[document.documentElement]],ze)}function oi(){return this}N.prototype=Un.prototype={constructor:N,select:ln,selectAll:un,selectChild:cn,selectChildren:hn,filter:pn,data:gn,enter:mn,exit:dn,join:An,merge:In,selection:oi,order:yn,sort:bn,call:Cn,nodes:xn,node:vn,size:wn,empty:Sn,each:En,attr:Mn,style:kn,property:_n,classed:Bn,text:Gn,html:Dn,raise:Nn,lower:zn,append:Ln,insert:Hn,remove:Yn,clone:Fn,datum:Qn,on:Wn,dispatch:Vn,[Symbol.iterator]:Zn};var lt=Un;function S(t){return typeof t=="string"?new N([[document.querySelector(t)]],[document.documentElement]):new N([[t]],ze)}function qn(t){let e;for(;e=t.sourceEvent;)t=e;return t}function W(t,e){if(t=qn(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}var Kn={passive:!1},yt={capture:!0,passive:!1};function oe(t){t.stopImmediatePropagation()}function pt(t){t.preventDefault(),t.stopImmediatePropagation()}function Bt(t){var e=t.document.documentElement,n=S(t).on("dragstart.drag",pt,yt);"onselectstart"in e?n.on("selectstart.drag",pt,yt):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Gt(t,e){var n=t.document.documentElement,r=S(t).on("dragstart.drag",null);e&&(r.on("click.drag",pt,yt),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Dt=t=>()=>t;function Nt(t,{sourceEvent:e,subject:n,target:r,identifier:o,active:a,x:i,y:s,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}Nt.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function ii(t){return!t.ctrlKey&&!t.button}function ai(){return this.parentNode}function si(t,e){return e??{x:t.x,y:t.y}}function li(){return navigator.maxTouchPoints||"ontouchstart"in this}function ie(){var t=ii,e=ai,n=si,r=li,o={},a=At("start","drag","end"),i=0,s,l,c,u,m=0;function p(A){A.on("mousedown.drag",g).filter(r).on("touchstart.drag",E).on("touchmove.drag",b,Kn).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(A,k){if(!(u||!t.call(this,A,k))){var _=B(this,e.call(this,A,k),A,k,"mouse");_&&(S(A.view).on("mousemove.drag",C,yt).on("mouseup.drag",x,yt),Bt(A.view),oe(A),c=!1,s=A.clientX,l=A.clientY,_("start",A))}}function C(A){if(pt(A),!c){var k=A.clientX-s,_=A.clientY-l;c=k*k+_*_>m}o.mouse("drag",A)}function x(A){S(A.view).on("mousemove.drag mouseup.drag",null),Gt(A.view,c),pt(A),o.mouse("end",A)}function E(A,k){if(t.call(this,A,k)){var _=A.changedTouches,P=e.call(this,A,k),G=_.length,z,Q;for(z=0;z<G;++z)(Q=B(this,P,A,k,_[z].identifier,_[z]))&&(oe(A),Q("start",A,_[z]))}}function b(A){var k=A.changedTouches,_=k.length,P,G;for(P=0;P<_;++P)(G=o[k[P].identifier])&&(pt(A),G("drag",A,k[P]))}function T(A){var k=A.changedTouches,_=k.length,P,G;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),P=0;P<_;++P)(G=o[k[P].identifier])&&(oe(A),G("end",A,k[P]))}function B(A,k,_,P,G,z){var Q=a.copy(),L=W(z||_,k),Z,y,h;if((h=n.call(A,new Nt("beforestart",{sourceEvent:_,target:p,identifier:G,active:i,x:L[0],y:L[1],dx:0,dy:0,dispatch:Q}),P))!=null)return Z=h.x-L[0]||0,y=h.y-L[1]||0,function d(f,I,w){var v=L,M;switch(f){case"start":o[G]=d,M=i++;break;case"end":delete o[G],--i;case"drag":L=W(w||I,k),M=i;break}Q.call(f,A,new Nt(f,{sourceEvent:I,subject:h,target:p,identifier:G,active:M,x:L[0]+Z,y:L[1]+y,dx:L[0]-v[0],dy:L[1]-v[1],dispatch:Q}),P)}}return p.filter=function(A){return arguments.length?(t=typeof A=="function"?A:Dt(!!A),p):t},p.container=function(A){return arguments.length?(e=typeof A=="function"?A:Dt(A),p):e},p.subject=function(A){return arguments.length?(n=typeof A=="function"?A:Dt(A),p):n},p.touchable=function(A){return arguments.length?(r=typeof A=="function"?A:Dt(!!A),p):r},p.on=function(){var A=a.on.apply(a,arguments);return A===a?p:A},p.clickDistance=function(A){return arguments.length?(m=(A=+A)*A,p):Math.sqrt(m)},p}function ae(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Le(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ht(){}var zt=.7,ue=1/zt,St="\\s*([+-]?\\d+)\\s*",Lt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",it="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ui=/^#([0-9a-f]{3,8})$/,ci=new RegExp(`^rgb\\(${St},${St},${St}\\)$`),hi=new RegExp(`^rgb\\(${it},${it},${it}\\)$`),pi=new RegExp(`^rgba\\(${St},${St},${St},${Lt}\\)$`),mi=new RegExp(`^rgba\\(${it},${it},${it},${Lt}\\)$`),fi=new RegExp(`^hsl\\(${Lt},${it},${it}\\)$`),gi=new RegExp(`^hsla\\(${Lt},${it},${it},${Lt}\\)$`),jn={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};ae(Ht,mt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jn,formatHex:Jn,formatHex8:di,formatHsl:Ai,formatRgb:$n,toString:$n});function Jn(){return this.rgb().formatHex()}function di(){return this.rgb().formatHex8()}function Ai(){return ir(this).formatHsl()}function $n(){return this.rgb().formatRgb()}function mt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ui.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?tr(e):n===3?new V(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?se(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=ci.exec(t))?new V(e[1],e[2],e[3],1):(e=hi.exec(t))?new V(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=pi.exec(t))?se(e[1],e[2],e[3],e[4]):(e=mi.exec(t))?se(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=fi.exec(t))?rr(e[1],e[2]/100,e[3]/100,1):(e=gi.exec(t))?rr(e[1],e[2]/100,e[3]/100,e[4]):jn.hasOwnProperty(t)?tr(jn[t]):t==="transparent"?new V(NaN,NaN,NaN,0):null}function tr(t){return new V(t>>16&255,t>>8&255,t&255,1)}function se(t,e,n,r){return r<=0&&(t=e=n=NaN),new V(t,e,n,r)}function Ii(t){return t instanceof Ht||(t=mt(t)),t?(t=t.rgb(),new V(t.r,t.g,t.b,t.opacity)):new V}function Et(t,e,n,r){return arguments.length===1?Ii(t):new V(t,e,n,r??1)}function V(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}ae(V,Et,Le(Ht,{brighter(t){return t=t==null?ue:Math.pow(ue,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?zt:Math.pow(zt,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new V(Ct(this.r),Ct(this.g),Ct(this.b),ce(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:er,formatHex:er,formatHex8:yi,formatRgb:nr,toString:nr}));function er(){return`#${bt(this.r)}${bt(this.g)}${bt(this.b)}`}function yi(){return`#${bt(this.r)}${bt(this.g)}${bt(this.b)}${bt((isNaN(this.opacity)?1:this.opacity)*255)}`}function nr(){let t=ce(this.opacity);return`${t===1?"rgb(":"rgba("}${Ct(this.r)}, ${Ct(this.g)}, ${Ct(this.b)}${t===1?")":`, ${t})`}`}function ce(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ct(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function bt(t){return t=Ct(t),(t<16?"0":"")+t.toString(16)}function rr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new rt(t,e,n,r)}function ir(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);if(t instanceof Ht||(t=mt(t)),!t)return new rt;if(t instanceof rt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(e===a?i=(n-r)/s+(n<r)*6:n===a?i=(r-e)/s+2:i=(e-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new rt(i,s,l,t.opacity)}function ar(t,e,n,r){return arguments.length===1?ir(t):new rt(t,e,n,r??1)}function rt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}ae(rt,ar,Le(Ht,{brighter(t){return t=t==null?ue:Math.pow(ue,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?zt:Math.pow(zt,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new V(He(t>=240?t-240:t+120,o,r),He(t,o,r),He(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new rt(or(this.h),le(this.s),le(this.l),ce(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=ce(this.opacity);return`${t===1?"hsl(":"hsla("}${or(this.h)}, ${le(this.s)*100}%, ${le(this.l)*100}%${t===1?")":`, ${t})`}`}}));function or(t){return t=(t||0)%360,t<0?t+360:t}function le(t){return Math.max(0,Math.min(1,t||0))}function He(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function Ye(t,e,n,r,o){var a=t*t,i=a*t;return((1-3*t+3*a-i)*e+(4-6*a+3*i)*n+(1+3*t+3*a-3*i)*r+i*o)/6}function sr(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],a=t[r+1],i=r>0?t[r-1]:2*o-a,s=r<e-1?t[r+2]:2*a-o;return Ye((n-r/e)*e,i,o,a,s)}}function lr(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],a=t[r%e],i=t[(r+1)%e],s=t[(r+2)%e];return Ye((n-r/e)*e,o,a,i,s)}}var Fe=t=>()=>t;function bi(t,e){return function(n){return t+n*e}}function Ci(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function ur(t){return(t=+t)==1?he:function(e,n){return n-e?Ci(e,n,t):Fe(isNaN(e)?n:e)}}function he(t,e){var n=e-t;return n?bi(t,n):Fe(isNaN(t)?e:t)}var pe=(function t(e){var n=ur(e);function r(o,a){var i=n((o=Et(o)).r,(a=Et(a)).r),s=n(o.g,a.g),l=n(o.b,a.b),c=he(o.opacity,a.opacity);return function(u){return o.r=i(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=t,r})(1);function cr(t){return function(e){var n=e.length,r=new Array(n),o=new Array(n),a=new Array(n),i,s;for(i=0;i<n;++i)s=Et(e[i]),r[i]=s.r||0,o[i]=s.g||0,a[i]=s.b||0;return r=t(r),o=t(o),a=t(a),s.opacity=1,function(l){return s.r=r(l),s.g=o(l),s.b=a(l),s+""}}}var xi=cr(sr),vi=cr(lr);function j(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var We=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qe=new RegExp(We.source,"g");function wi(t){return function(){return t}}function Si(t){return function(e){return t(e)+""}}function Xe(t,e){var n=We.lastIndex=Qe.lastIndex=0,r,o,a,i=-1,s=[],l=[];for(t=t+"",e=e+"";(r=We.exec(t))&&(o=Qe.exec(e));)(a=o.index)>n&&(a=e.slice(n,a),s[i]?s[i]+=a:s[++i]=a),(r=r[0])===(o=o[0])?s[i]?s[i]+=o:s[++i]=o:(s[++i]=null,l.push({i,x:j(r,o)})),n=Qe.lastIndex;return n<e.length&&(a=e.slice(n),s[i]?s[i]+=a:s[++i]=a),s.length<2?l[0]?Si(l[0].x):wi(e):(e=l.length,function(c){for(var u=0,m;u<e;++u)s[(m=l[u]).i]=m.x(c);return s.join("")})}var hr=180/Math.PI,me={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ve(t,e,n,r,o,a){var i,s,l;return(i=Math.sqrt(t*t+e*e))&&(t/=i,e/=i),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,i=-i),{translateX:o,translateY:a,rotate:Math.atan2(e,t)*hr,skewX:Math.atan(l)*hr,scaleX:i,scaleY:s}}var fe;function pr(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?me:Ve(e.a,e.b,e.c,e.d,e.e,e.f)}function mr(t){return t==null?me:(fe||(fe=document.createElementNS("http://www.w3.org/2000/svg","g")),fe.setAttribute("transform",t),(t=fe.transform.baseVal.consolidate())?(t=t.matrix,Ve(t.a,t.b,t.c,t.d,t.e,t.f)):me)}function fr(t,e,n,r){function o(c){return c.length?c.pop()+" ":""}function a(c,u,m,p,g,C){if(c!==m||u!==p){var x=g.push("translate(",null,e,null,n);C.push({i:x-4,x:j(c,m)},{i:x-2,x:j(u,p)})}else(m||p)&&g.push("translate("+m+e+p+n)}function i(c,u,m,p){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),p.push({i:m.push(o(m)+"rotate(",null,r)-2,x:j(c,u)})):u&&m.push(o(m)+"rotate("+u+r)}function s(c,u,m,p){c!==u?p.push({i:m.push(o(m)+"skewX(",null,r)-2,x:j(c,u)}):u&&m.push(o(m)+"skewX("+u+r)}function l(c,u,m,p,g,C){if(c!==m||u!==p){var x=g.push(o(g)+"scale(",null,",",null,")");C.push({i:x-4,x:j(c,m)},{i:x-2,x:j(u,p)})}else(m!==1||p!==1)&&g.push(o(g)+"scale("+m+","+p+")")}return function(c,u){var m=[],p=[];return c=t(c),u=t(u),a(c.translateX,c.translateY,u.translateX,u.translateY,m,p),i(c.rotate,u.rotate,m,p),s(c.skewX,u.skewX,m,p),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,m,p),c=u=null,function(g){for(var C=-1,x=p.length,E;++C<x;)m[(E=p[C]).i]=E.x(g);return m.join("")}}}var Ze=fr(pr,"px, ","px)","deg)"),Ue=fr(mr,", ",")",")");var Ei=1e-12;function gr(t){return((t=Math.exp(t))+1/t)/2}function Mi(t){return((t=Math.exp(t))-1/t)/2}function ki(t){return((t=Math.exp(2*t))-1)/(t+1)}var qe=(function t(e,n,r){function o(a,i){var s=a[0],l=a[1],c=a[2],u=i[0],m=i[1],p=i[2],g=u-s,C=m-l,x=g*g+C*C,E,b;if(x<Ei)b=Math.log(p/c)/e,E=function(P){return[s+P*g,l+P*C,c*Math.exp(e*P*b)]};else{var T=Math.sqrt(x),B=(p*p-c*c+r*x)/(2*c*n*T),A=(p*p-c*c-r*x)/(2*p*n*T),k=Math.log(Math.sqrt(B*B+1)-B),_=Math.log(Math.sqrt(A*A+1)-A);b=(_-k)/e,E=function(P){var G=P*b,z=gr(k),Q=c/(n*T)*(z*ki(e*G+k)-Mi(k));return[s+Q*g,l+Q*C,c*z/gr(e*G+k)]}}return E.duration=b*1e3*e/Math.SQRT2,E}return o.rho=function(a){var i=Math.max(.001,+a),s=i*i,l=s*s;return t(i,s,l)},o})(Math.SQRT2,2,4);var Mt=0,Ft=0,Yt=0,Ar=1e3,ge,Qt,de=0,xt=0,Ae=0,Wt=typeof performance=="object"&&performance.now?performance:Date,Ir=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Vt(){return xt||(Ir(_i),xt=Wt.now()+Ae)}function _i(){xt=0}function Xt(){this._call=this._time=this._next=null}Xt.prototype=Ie.prototype={constructor:Xt,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Vt():+n)+(e==null?0:+e),!this._next&&Qt!==this&&(Qt?Qt._next=this:ge=this,Qt=this),this._call=t,this._time=n,Ke()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ke())}};function Ie(t,e,n){var r=new Xt;return r.restart(t,e,n),r}function yr(){Vt(),++Mt;for(var t=ge,e;t;)(e=xt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Mt}function dr(){xt=(de=Wt.now())+Ae,Mt=Ft=0;try{yr()}finally{Mt=0,Oi(),xt=0}}function Pi(){var t=Wt.now(),e=t-de;e>Ar&&(Ae-=e,de=t)}function Oi(){for(var t,e=ge,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ge=n);Qt=t,Ke(r)}function Ke(t){if(!Mt){Ft&&(Ft=clearTimeout(Ft));var e=t-xt;e>24?(t<1/0&&(Ft=setTimeout(dr,t-Wt.now()-Ae)),Yt&&(Yt=clearInterval(Yt))):(Yt||(de=Wt.now(),Yt=setInterval(Pi,Ar)),Mt=1,Ir(dr))}}function ye(t,e,n){var r=new Xt;return e=e==null?0:+e,r.restart(o=>{r.stop(),t(o+e)},e,n),r}var Ti=At("start","end","cancel","interrupt"),Ri=[],xr=0,br=1,Ce=2,be=3,Cr=4,xe=5,Zt=6;function ft(t,e,n,r,o,a){var i=t.__transition;if(!i)t.__transition={};else if(n in i)return;Bi(t,n,{name:e,index:r,group:o,on:Ti,tween:Ri,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:xr})}function Ut(t,e){var n=Y(t,e);if(n.state>xr)throw new Error("too late; already scheduled");return n}function F(t,e){var n=Y(t,e);if(n.state>be)throw new Error("too late; already running");return n}function Y(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Bi(t,e,n){var r=t.__transition,o;r[e]=n,n.timer=Ie(a,0,n.time);function a(c){n.state=br,n.timer.restart(i,n.delay,n.time),n.delay<=c&&i(c-n.delay)}function i(c){var u,m,p,g;if(n.state!==br)return l();for(u in r)if(g=r[u],g.name===n.name){if(g.state===be)return ye(i);g.state===Cr?(g.state=Zt,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete r[u]):+u<e&&(g.state=Zt,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete r[u])}if(ye(function(){n.state===be&&(n.state=Cr,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=Ce,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ce){for(n.state=be,o=new Array(p=n.tween.length),u=0,m=-1;u<p;++u)(g=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(o[++m]=g);o.length=m+1}}function s(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=xe,1),m=-1,p=o.length;++m<p;)o[m].call(t,u);n.state===xe&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=Zt,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function gt(t,e){var n=t.__transition,r,o,a=!0,i;if(n){e=e==null?null:e+"";for(i in n){if((r=n[i]).name!==e){a=!1;continue}o=r.state>Ce&&r.state<xe,r.state=Zt,r.timer.stop(),r.on.call(o?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[i]}a&&delete t.__transition}}function vr(t){return this.each(function(){gt(this,t)})}function Gi(t,e){var n,r;return function(){var o=F(this,t),a=o.tween;if(a!==n){r=n=a;for(var i=0,s=r.length;i<s;++i)if(r[i].name===e){r=r.slice(),r.splice(i,1);break}}o.tween=r}}function Di(t,e,n){var r,o;if(typeof n!="function")throw new Error;return function(){var a=F(this,t),i=a.tween;if(i!==r){o=(r=i).slice();for(var s={name:e,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===e){o[l]=s;break}l===c&&o.push(s)}a.tween=o}}function wr(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=Y(this.node(),n).tween,o=0,a=r.length,i;o<a;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((e==null?Gi:Di)(n,t,e))}function kt(t,e,n){var r=t._id;return t.each(function(){var o=F(this,r);(o.value||(o.value={}))[e]=n.apply(this,arguments)}),function(o){return Y(o,r).value[e]}}function ve(t,e){var n;return(typeof e=="number"?j:e instanceof mt?pe:(n=mt(e))?(e=n,pe):Xe)(t,e)}function Ni(t){return function(){this.removeAttribute(t)}}function zi(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Li(t,e,n){var r,o=n+"",a;return function(){var i=this.getAttribute(t);return i===o?null:i===r?a:a=e(r=i,n)}}function Hi(t,e,n){var r,o=n+"",a;return function(){var i=this.getAttributeNS(t.space,t.local);return i===o?null:i===r?a:a=e(r=i,n)}}function Yi(t,e,n){var r,o,a;return function(){var i,s=n(this),l;return s==null?void this.removeAttribute(t):(i=this.getAttribute(t),l=s+"",i===l?null:i===r&&l===o?a:(o=l,a=e(r=i,s)))}}function Fi(t,e,n){var r,o,a;return function(){var i,s=n(this),l;return s==null?void this.removeAttributeNS(t.space,t.local):(i=this.getAttributeNS(t.space,t.local),l=s+"",i===l?null:i===r&&l===o?a:(o=l,a=e(r=i,s)))}}function Sr(t,e){var n=st(t),r=n==="transform"?Ue:ve;return this.attrTween(t,typeof e=="function"?(n.local?Fi:Yi)(n,r,kt(this,"attr."+t,e)):e==null?(n.local?zi:Ni)(n):(n.local?Hi:Li)(n,r,e))}function Qi(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Wi(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Xi(t,e){var n,r;function o(){var a=e.apply(this,arguments);return a!==r&&(n=(r=a)&&Wi(t,a)),n}return o._value=e,o}function Vi(t,e){var n,r;function o(){var a=e.apply(this,arguments);return a!==r&&(n=(r=a)&&Qi(t,a)),n}return o._value=e,o}function Er(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=st(t);return this.tween(n,(r.local?Xi:Vi)(r,e))}function Zi(t,e){return function(){Ut(this,t).delay=+e.apply(this,arguments)}}function Ui(t,e){return e=+e,function(){Ut(this,t).delay=e}}function Mr(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Zi:Ui)(e,t)):Y(this.node(),e).delay}function qi(t,e){return function(){F(this,t).duration=+e.apply(this,arguments)}}function Ki(t,e){return e=+e,function(){F(this,t).duration=e}}function kr(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?qi:Ki)(e,t)):Y(this.node(),e).duration}function ji(t,e){if(typeof e!="function")throw new Error;return function(){F(this,t).ease=e}}function _r(t){var e=this._id;return arguments.length?this.each(ji(e,t)):Y(this.node(),e).ease}function Ji(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;F(this,t).ease=n}}function Pr(t){if(typeof t!="function")throw new Error;return this.each(Ji(this._id,t))}function Or(t){typeof t!="function"&&(t=Tt(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o<n;++o)for(var a=e[o],i=a.length,s=r[o]=[],l,c=0;c<i;++c)(l=a[c])&&t.call(l,l.__data__,c,a)&&s.push(l);return new X(r,this._parents,this._name,this._id)}function Tr(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,o=n.length,a=Math.min(r,o),i=new Array(r),s=0;s<a;++s)for(var l=e[s],c=n[s],u=l.length,m=i[s]=new Array(u),p,g=0;g<u;++g)(p=l[g]||c[g])&&(m[g]=p);for(;s<r;++s)i[s]=e[s];return new X(i,this._parents,this._name,this._id)}function $i(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function ta(t,e,n){var r,o,a=$i(e)?Ut:F;return function(){var i=a(this,t),s=i.on;s!==r&&(o=(r=s).copy()).on(e,n),i.on=o}}function Rr(t,e){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(t):this.each(ta(n,t,e))}function ea(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Br(){return this.on("end.remove",ea(this._id))}function Gr(t){var e=this._name,n=this._id;typeof t!="function"&&(t=It(t));for(var r=this._groups,o=r.length,a=new Array(o),i=0;i<o;++i)for(var s=r[i],l=s.length,c=a[i]=new Array(l),u,m,p=0;p<l;++p)(u=s[p])&&(m=t.call(u,u.__data__,p,s))&&("__data__"in u&&(m.__data__=u.__data__),c[p]=m,ft(c[p],e,n,p,c,Y(u,n)));return new X(a,this._parents,e,n)}function Dr(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ot(t));for(var r=this._groups,o=r.length,a=[],i=[],s=0;s<o;++s)for(var l=r[s],c=l.length,u,m=0;m<c;++m)if(u=l[m]){for(var p=t.call(u,u.__data__,m,l),g,C=Y(u,n),x=0,E=p.length;x<E;++x)(g=p[x])&&ft(g,e,n,x,p,C);a.push(p),i.push(u)}return new X(a,i,e,n)}var na=lt.prototype.constructor;function Nr(){return new na(this._groups,this._parents)}function ra(t,e){var n,r,o;return function(){var a=ht(this,t),i=(this.style.removeProperty(t),ht(this,t));return a===i?null:a===n&&i===r?o:o=e(n=a,r=i)}}function zr(t){return function(){this.style.removeProperty(t)}}function oa(t,e,n){var r,o=n+"",a;return function(){var i=ht(this,t);return i===o?null:i===r?a:a=e(r=i,n)}}function ia(t,e,n){var r,o,a;return function(){var i=ht(this,t),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(t),ht(this,t))),i===l?null:i===r&&l===o?a:(o=l,a=e(r=i,s))}}function aa(t,e){var n,r,o,a="style."+e,i="end."+a,s;return function(){var l=F(this,t),c=l.on,u=l.value[a]==null?s||(s=zr(e)):void 0;(c!==n||o!==u)&&(r=(n=c).copy()).on(i,o=u),l.on=r}}function Lr(t,e,n){var r=(t+="")=="transform"?Ze:ve;return e==null?this.styleTween(t,ra(t,r)).on("end.style."+t,zr(t)):typeof e=="function"?this.styleTween(t,ia(t,r,kt(this,"style."+t,e))).each(aa(this._id,t)):this.styleTween(t,oa(t,r,e),n).on("end.style."+t,null)}function sa(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function la(t,e,n){var r,o;function a(){var i=e.apply(this,arguments);return i!==o&&(r=(o=i)&&sa(t,i,n)),r}return a._value=e,a}function Hr(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,la(t,e,n??""))}function ua(t){return function(){this.textContent=t}}function ca(t){return function(){var e=t(this);this.textContent=e??""}}function Yr(t){return this.tween("text",typeof t=="function"?ca(kt(this,"text",t)):ua(t==null?"":t+""))}function ha(t){return function(e){this.textContent=t.call(this,e)}}function pa(t){var e,n;function r(){var o=t.apply(this,arguments);return o!==n&&(e=(n=o)&&ha(o)),e}return r._value=t,r}function Fr(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,pa(t))}function Qr(){for(var t=this._name,e=this._id,n=we(),r=this._groups,o=r.length,a=0;a<o;++a)for(var i=r[a],s=i.length,l,c=0;c<s;++c)if(l=i[c]){var u=Y(l,e);ft(l,t,n,c,i,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,t,n)}function Wr(){var t,e,n=this,r=n._id,o=n.size();return new Promise(function(a,i){var s={value:i},l={value:function(){--o===0&&a()}};n.each(function(){var c=F(this,r),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),c.on=e}),o===0&&a()})}var ma=0;function X(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Xr(t){return lt().transition(t)}function we(){return++ma}var ut=lt.prototype;X.prototype=Xr.prototype={constructor:X,select:Gr,selectAll:Dr,selectChild:ut.selectChild,selectChildren:ut.selectChildren,filter:Or,merge:Tr,selection:Nr,transition:Qr,call:ut.call,nodes:ut.nodes,node:ut.node,size:ut.size,empty:ut.empty,each:ut.each,on:Rr,attr:Sr,attrTween:Er,style:Lr,styleTween:Hr,text:Yr,textTween:Fr,remove:Br,tween:wr,delay:Mr,duration:kr,ease:_r,easeVarying:Pr,end:Wr,[Symbol.iterator]:ut[Symbol.iterator]};function Se(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var fa={time:null,delay:0,duration:250,ease:Se};function ga(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Vr(t){var e,n;t instanceof X?(e=t._id,t=t._name):(e=we(),(n=fa).time=Vt(),t=t==null?null:t+"");for(var r=this._groups,o=r.length,a=0;a<o;++a)for(var i=r[a],s=i.length,l,c=0;c<s;++c)(l=i[c])&&ft(l,t,e,c,i,n||ga(l,e));return new X(r,this._parents,t,e)}lt.prototype.interrupt=vr;lt.prototype.transition=Vr;var{abs:$h,max:tp,min:ep}=Math;function Zr(t){return[+t[0],+t[1]]}function da(t){return[Zr(t[0]),Zr(t[1])]}var np={name:"x",handles:["w","e"].map(je),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},rp={name:"y",handles:["n","s"].map(je),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},op={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(je),input:function(t){return t==null?null:da(t)},output:function(t){return t}};function je(t){return{type:t}}var qt=t=>()=>t;function Je(t,{sourceEvent:e,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function ot(t,e,n){this.k=t,this.x=e,this.y=n}ot.prototype={constructor:ot,scale:function(t){return t===1?this:new ot(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ot(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var vt=new ot(1,0,0);wt.prototype=ot.prototype;function wt(t){for(;!t.__zoom;)if(!(t=t.parentNode))return vt;return t.__zoom}function Ee(t){t.stopImmediatePropagation()}function _t(t){t.preventDefault(),t.stopImmediatePropagation()}function Aa(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Ia(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Ur(){return this.__zoom||vt}function ya(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function ba(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ca(t,e,n){var r=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],i=t.invertY(e[1][1])-n[1][1];return t.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i))}function Me(){var t=Aa,e=Ia,n=Ca,r=ya,o=ba,a=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],s=250,l=qe,c=At("start","zoom","end"),u,m,p,g=500,C=150,x=0,E=10;function b(h){h.property("__zoom",Ur).on("wheel.zoom",G,{passive:!1}).on("mousedown.zoom",z).on("dblclick.zoom",Q).filter(o).on("touchstart.zoom",L).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}b.transform=function(h,d,f,I){var w=h.selection?h.selection():h;w.property("__zoom",Ur),h!==w?k(h,d,f,I):w.interrupt().each(function(){_(this,arguments).event(I).start().zoom(null,typeof d=="function"?d.apply(this,arguments):d).end()})},b.scaleBy=function(h,d,f,I){b.scaleTo(h,function(){var w=this.__zoom.k,v=typeof d=="function"?d.apply(this,arguments):d;return w*v},f,I)},b.scaleTo=function(h,d,f,I){b.transform(h,function(){var w=e.apply(this,arguments),v=this.__zoom,M=f==null?A(w):typeof f=="function"?f.apply(this,arguments):f,R=v.invert(M),D=typeof d=="function"?d.apply(this,arguments):d;return n(B(T(v,D),M,R),w,i)},f,I)},b.translateBy=function(h,d,f,I){b.transform(h,function(){return n(this.__zoom.translate(typeof d=="function"?d.apply(this,arguments):d,typeof f=="function"?f.apply(this,arguments):f),e.apply(this,arguments),i)},null,I)},b.translateTo=function(h,d,f,I,w){b.transform(h,function(){var v=e.apply(this,arguments),M=this.__zoom,R=I==null?A(v):typeof I=="function"?I.apply(this,arguments):I;return n(vt.translate(R[0],R[1]).scale(M.k).translate(typeof d=="function"?-d.apply(this,arguments):-d,typeof f=="function"?-f.apply(this,arguments):-f),v,i)},I,w)};function T(h,d){return d=Math.max(a[0],Math.min(a[1],d)),d===h.k?h:new ot(d,h.x,h.y)}function B(h,d,f){var I=d[0]-f[0]*h.k,w=d[1]-f[1]*h.k;return I===h.x&&w===h.y?h:new ot(h.k,I,w)}function A(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function k(h,d,f,I){h.on("start.zoom",function(){_(this,arguments).event(I).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(I).end()}).tween("zoom",function(){var w=this,v=arguments,M=_(w,v).event(I),R=e.apply(w,v),D=f==null?A(R):typeof f=="function"?f.apply(w,v):f,K=Math.max(R[1][0]-R[0][0],R[1][1]-R[0][1]),H=w.__zoom,U=typeof d=="function"?d.apply(w,v):d,et=l(H.invert(D).concat(K/H.k),U.invert(D).concat(K/U.k));return function(nt){if(nt===1)nt=U;else{var at=et(nt),Be=K/at[2];nt=new ot(Be,D[0]-at[0]*Be,D[1]-at[1]*Be)}M.zoom(null,nt)}})}function _(h,d,f){return!f&&h.__zooming||new P(h,d)}function P(h,d){this.that=h,this.args=d,this.active=0,this.sourceEvent=null,this.extent=e.apply(h,d),this.taps=0}P.prototype={event:function(h){return h&&(this.sourceEvent=h),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(h,d){return this.mouse&&h!=="mouse"&&(this.mouse[1]=d.invert(this.mouse[0])),this.touch0&&h!=="touch"&&(this.touch0[1]=d.invert(this.touch0[0])),this.touch1&&h!=="touch"&&(this.touch1[1]=d.invert(this.touch1[0])),this.that.__zoom=d,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(h){var d=S(this.that).datum();c.call(h,this.that,new Je(h,{sourceEvent:this.sourceEvent,target:b,type:h,transform:this.that.__zoom,dispatch:c}),d)}};function G(h,...d){if(!t.apply(this,arguments))return;var f=_(this,d).event(h),I=this.__zoom,w=Math.max(a[0],Math.min(a[1],I.k*Math.pow(2,r.apply(this,arguments)))),v=W(h);if(f.wheel)(f.mouse[0][0]!==v[0]||f.mouse[0][1]!==v[1])&&(f.mouse[1]=I.invert(f.mouse[0]=v)),clearTimeout(f.wheel);else{if(I.k===w)return;f.mouse=[v,I.invert(v)],gt(this),f.start()}_t(h),f.wheel=setTimeout(M,C),f.zoom("mouse",n(B(T(I,w),f.mouse[0],f.mouse[1]),f.extent,i));function M(){f.wheel=null,f.end()}}function z(h,...d){if(p||!t.apply(this,arguments))return;var f=h.currentTarget,I=_(this,d,!0).event(h),w=S(h.view).on("mousemove.zoom",D,!0).on("mouseup.zoom",K,!0),v=W(h,f),M=h.clientX,R=h.clientY;Bt(h.view),Ee(h),I.mouse=[v,this.__zoom.invert(v)],gt(this),I.start();function D(H){if(_t(H),!I.moved){var U=H.clientX-M,et=H.clientY-R;I.moved=U*U+et*et>x}I.event(H).zoom("mouse",n(B(I.that.__zoom,I.mouse[0]=W(H,f),I.mouse[1]),I.extent,i))}function K(H){w.on("mousemove.zoom mouseup.zoom",null),Gt(H.view,I.moved),_t(H),I.event(H).end()}}function Q(h,...d){if(t.apply(this,arguments)){var f=this.__zoom,I=W(h.changedTouches?h.changedTouches[0]:h,this),w=f.invert(I),v=f.k*(h.shiftKey?.5:2),M=n(B(T(f,v),I,w),e.apply(this,d),i);_t(h),s>0?S(this).transition().duration(s).call(k,M,I,h):S(this).call(b.transform,M,I,h)}}function L(h,...d){if(t.apply(this,arguments)){var f=h.touches,I=f.length,w=_(this,d,h.changedTouches.length===I).event(h),v,M,R,D;for(Ee(h),M=0;M<I;++M)R=f[M],D=W(R,this),D=[D,this.__zoom.invert(D),R.identifier],w.touch0?!w.touch1&&w.touch0[2]!==D[2]&&(w.touch1=D,w.taps=0):(w.touch0=D,v=!0,w.taps=1+!!u);u&&(u=clearTimeout(u)),v&&(w.taps<2&&(m=D[0],u=setTimeout(function(){u=null},g)),gt(this),w.start())}}function Z(h,...d){if(this.__zooming){var f=_(this,d).event(h),I=h.changedTouches,w=I.length,v,M,R,D;for(_t(h),v=0;v<w;++v)M=I[v],R=W(M,this),f.touch0&&f.touch0[2]===M.identifier?f.touch0[0]=R:f.touch1&&f.touch1[2]===M.identifier&&(f.touch1[0]=R);if(M=f.that.__zoom,f.touch1){var K=f.touch0[0],H=f.touch0[1],U=f.touch1[0],et=f.touch1[1],nt=(nt=U[0]-K[0