@deephaven/embed-grid 0.22.3-beta.10 → 0.22.3-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/index.44c3e5a5.js +33 -0
- package/build/assets/index.44c3e5a5.js.map +1 -0
- package/build/assets/{index.7d562df4.css → index.711a002d.css} +1 -1
- package/build/assets/plotly.feb8abd4.js +7 -0
- package/build/assets/plotly.feb8abd4.js.map +1 -0
- package/build/assets/{vendor.f4457b06.js → vendor.4a3ef775.js} +6 -6
- package/build/assets/vendor.4a3ef775.js.map +1 -0
- package/build/index.html +4 -4
- package/package.json +12 -12
- package/build/assets/index.6dc51751.js +0 -33
- package/build/assets/index.6dc51751.js.map +0 -1
- package/build/assets/plotly.b0044521.js +0 -7
- package/build/assets/plotly.b0044521.js.map +0 -1
- package/build/assets/vendor.f4457b06.js.map +0 -1
|
@@ -917,11 +917,11 @@ License: MIT
|
|
|
917
917
|
*/(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof _r<"u"?_r:_r,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(E){return setImmediate(E)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(E,R,M,D){return Object.defineProperty(E,R,{value:M,writable:!0,configurable:D!==!1})}}catch{r=function(R,M,D){return R[M]=D,R}}i=function(){var E,R,M;function D(z,N){this.fn=z,this.self=N,this.next=void 0}return{add:function(N,L){M=new D(N,L),R?R.next=M:E=M,R=M,M=void 0},drain:function(){var N=E;for(E=R=n=void 0;N;)N.fn.call(N.self),N=N.next}}}();function u(S,E){i.add(S,E),n||(n=o(i.drain))}function s(S){var E,R=typeof S;return S!=null&&(R=="object"||R=="function")&&(E=S.then),typeof E=="function"?E:!1}function f(){for(var S=0;S<this.chain.length;S++)d(this,this.state===1?this.chain[S].success:this.chain[S].failure,this.chain[S]);this.chain.length=0}function d(S,E,R){var M,D;try{E===!1?R.reject(S.msg):(E===!0?M=S.msg:M=E.call(void 0,S.msg),M===R.promise?R.reject(TypeError("Promise-chain cycle")):(D=s(M))?D.call(M,R.resolve,R.reject):R.resolve(M))}catch(z){R.reject(z)}}function v(S){var E,R=this;if(!R.triggered){R.triggered=!0,R.def&&(R=R.def);try{(E=s(S))?u(function(){var M=new _(R);try{E.call(S,function(){v.apply(M,arguments)},function(){h.apply(M,arguments)})}catch(D){h.call(M,D)}}):(R.msg=S,R.state=1,R.chain.length>0&&u(f,R))}catch(M){h.call(new _(R),M)}}}function h(S){var E=this;E.triggered||(E.triggered=!0,E.def&&(E=E.def),E.msg=S,E.state=2,E.chain.length>0&&u(f,E))}function g(S,E,R,M){for(var D=0;D<E.length;D++)(function(N){S.resolve(E[N]).then(function(ee){R(N,ee)},M)})(D)}function _(S){this.def=S,this.triggered=!1}function A(S){this.promise=S,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function b(S){if(typeof S!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var E=new A(this);this.then=function(M,D){var z={success:typeof M=="function"?M:!0,failure:typeof D=="function"?D:!1};return z.promise=new this.constructor(function(L,ee){if(typeof L!="function"||typeof ee!="function")throw TypeError("Not a function");z.resolve=L,z.reject=ee}),E.chain.push(z),E.state!==0&&u(f,E),z.promise},this.catch=function(M){return this.then(void 0,M)};try{S.call(void 0,function(M){v.call(E,M)},function(M){h.call(E,M)})}catch(R){h.call(E,R)}}var w=r({},"constructor",b,!1);return b.prototype=w,r(w,"__NPO__",0,!1),r(b,"resolve",function(E){var R=this;return E&&typeof E=="object"&&E.__NPO__===1?E:new R(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");D(E)})}),r(b,"reject",function(E){return new this(function(M,D){if(typeof M!="function"||typeof D!="function")throw TypeError("Not a function");D(E)})}),r(b,"all",function(E){var R=this;return a.call(E)!="[object Array]"?R.reject(TypeError("Not an array")):E.length===0?R.resolve([]):new R(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");var N=E.length,L=Array(N),ee=0;g(R,E,function(pe,we){L[pe]=we,++ee===N&&D(L)},z)})}),r(b,"race",function(E){var R=this;return a.call(E)!="[object Array]"?R.reject(TypeError("Not an array")):new R(function(D,z){if(typeof D!="function"||typeof z!="function")throw TypeError("Not a function");g(R,E,function(L,ee){D(ee)},z)})}),b})})(are);var ore={exports:{}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(l){return r.call(l)},i=self.document;function a(l){return l&&(l.ownerDocument||l.document||l).documentElement}function o(l){return l&&(l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(c){for(var p=c.length,m=new Array(p);p--;)m[p]=c[p];return m}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var u=this.Element.prototype,s=u.setAttribute,f=u.setAttributeNS,d=this.CSSStyleDeclaration.prototype,v=d.setProperty;u.setAttribute=function(c,p){s.call(this,c,p+"")},u.setAttributeNS=function(c,p,m){f.call(this,c,p,m+"")},d.setProperty=function(c,p,m){v.call(this,c,p+"",m)}}t.ascending=h;function h(l,c){return l<c?-1:l>c?1:l>=c?0:NaN}t.descending=function(l,c){return c<l?-1:c>l?1:c>=l?0:NaN},t.min=function(l,c){var p=-1,m=l.length,y,x;if(arguments.length===1){for(;++p<m;)if((x=l[p])!=null&&x>=x){y=x;break}for(;++p<m;)(x=l[p])!=null&&y>x&&(y=x)}else{for(;++p<m;)if((x=c.call(l,l[p],p))!=null&&x>=x){y=x;break}for(;++p<m;)(x=c.call(l,l[p],p))!=null&&y>x&&(y=x)}return y},t.max=function(l,c){var p=-1,m=l.length,y,x;if(arguments.length===1){for(;++p<m;)if((x=l[p])!=null&&x>=x){y=x;break}for(;++p<m;)(x=l[p])!=null&&x>y&&(y=x)}else{for(;++p<m;)if((x=c.call(l,l[p],p))!=null&&x>=x){y=x;break}for(;++p<m;)(x=c.call(l,l[p],p))!=null&&x>y&&(y=x)}return y},t.extent=function(l,c){var p=-1,m=l.length,y,x,O;if(arguments.length===1){for(;++p<m;)if((x=l[p])!=null&&x>=x){y=O=x;break}for(;++p<m;)(x=l[p])!=null&&(y>x&&(y=x),O<x&&(O=x))}else{for(;++p<m;)if((x=c.call(l,l[p],p))!=null&&x>=x){y=O=x;break}for(;++p<m;)(x=c.call(l,l[p],p))!=null&&(y>x&&(y=x),O<x&&(O=x))}return[y,O]};function g(l){return l===null?NaN:+l}function _(l){return!isNaN(l)}t.sum=function(l,c){var p=0,m=l.length,y,x=-1;if(arguments.length===1)for(;++x<m;)_(y=+l[x])&&(p+=y);else for(;++x<m;)_(y=+c.call(l,l[x],x))&&(p+=y);return p},t.mean=function(l,c){var p=0,m=l.length,y,x=-1,O=m;if(arguments.length===1)for(;++x<m;)_(y=g(l[x]))?p+=y:--O;else for(;++x<m;)_(y=g(c.call(l,l[x],x)))?p+=y:--O;if(O)return p/O},t.quantile=function(l,c){var p=(l.length-1)*c+1,m=Math.floor(p),y=+l[m-1],x=p-m;return x?y+x*(l[m]-y):y},t.median=function(l,c){var p=[],m=l.length,y,x=-1;if(arguments.length===1)for(;++x<m;)_(y=g(l[x]))&&p.push(y);else for(;++x<m;)_(y=g(c.call(l,l[x],x)))&&p.push(y);if(p.length)return t.quantile(p.sort(h),.5)},t.variance=function(l,c){var p=l.length,m=0,y,x,O=0,T=-1,k=0;if(arguments.length===1)for(;++T<p;)_(y=g(l[T]))&&(x=y-m,m+=x/++k,O+=x*(y-m));else for(;++T<p;)_(y=g(c.call(l,l[T],T)))&&(x=y-m,m+=x/++k,O+=x*(y-m));if(k>1)return O/(k-1)},t.deviation=function(){var l=t.variance.apply(this,arguments);return l&&Math.sqrt(l)};function A(l){return{left:function(c,p,m,y){for(arguments.length<3&&(m=0),arguments.length<4&&(y=c.length);m<y;){var x=m+y>>>1;l(c[x],p)<0?m=x+1:y=x}return m},right:function(c,p,m,y){for(arguments.length<3&&(m=0),arguments.length<4&&(y=c.length);m<y;){var x=m+y>>>1;l(c[x],p)>0?y=x:m=x+1}return m}}}var b=A(h);t.bisectLeft=b.left,t.bisect=t.bisectRight=b.right,t.bisector=function(l){return A(l.length===1?function(c,p){return h(l(c),p)}:l)},t.shuffle=function(l,c,p){(m=arguments.length)<3&&(p=l.length,m<2&&(c=0));for(var m=p-c,y,x;m;)x=Math.random()*m--|0,y=l[m+c],l[m+c]=l[x+c],l[x+c]=y;return l},t.permute=function(l,c){for(var p=c.length,m=new Array(p);p--;)m[p]=l[c[p]];return m},t.pairs=function(l){for(var c=0,p=l.length-1,m=l[0],y=new Array(p<0?0:p);c<p;)y[c]=[m,m=l[++c]];return y},t.transpose=function(l){if(!(x=l.length))return[];for(var c=-1,p=t.min(l,w),m=new Array(p);++c<p;)for(var y=-1,x,O=m[c]=new Array(x);++y<x;)O[y]=l[y][c];return m};function w(l){return l.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(l){var c=[];for(var p in l)c.push(p);return c},t.values=function(l){var c=[];for(var p in l)c.push(l[p]);return c},t.entries=function(l){var c=[];for(var p in l)c.push({key:p,value:l[p]});return c},t.merge=function(l){for(var c=l.length,p,m=-1,y=0,x,O;++m<c;)y+=l[m].length;for(x=new Array(y);--c>=0;)for(O=l[c],p=O.length;--p>=0;)x[--y]=O[p];return x};var S=Math.abs;t.range=function(l,c,p){if(arguments.length<3&&(p=1,arguments.length<2&&(c=l,l=0)),(c-l)/p===1/0)throw new Error("infinite range");var m=[],y=E(S(p)),x=-1,O;if(l*=y,c*=y,p*=y,p<0)for(;(O=l+p*++x)>c;)m.push(O/y);else for(;(O=l+p*++x)<c;)m.push(O/y);return m};function E(l){for(var c=1;l*c%1;)c*=10;return c}function R(l,c){for(var p in c)Object.defineProperty(l.prototype,p,{value:c[p],enumerable:!1})}t.map=function(l,c){var p=new M;if(l instanceof M)l.forEach(function(T,k){p.set(T,k)});else if(Array.isArray(l)){var m=-1,y=l.length,x;if(arguments.length===1)for(;++m<y;)p.set(m,l[m]);else for(;++m<y;)p.set(c.call(l,x=l[m],m),x)}else for(var O in l)p.set(O,l[O]);return p};function M(){this._=Object.create(null)}var D="__proto__",z="\0";R(M,{has:ee,get:function(l){return this._[N(l)]},set:function(l,c){return this._[N(l)]=c},remove:ue,keys:pe,values:function(){var l=[];for(var c in this._)l.push(this._[c]);return l},entries:function(){var l=[];for(var c in this._)l.push({key:L(c),value:this._[c]});return l},size:we,empty:Ee,forEach:function(l){for(var c in this._)l.call(this,L(c),this._[c])}});function N(l){return(l+="")===D||l[0]===z?z+l:l}function L(l){return(l+="")[0]===z?l.slice(1):l}function ee(l){return N(l)in this._}function ue(l){return(l=N(l))in this._&&delete this._[l]}function pe(){var l=[];for(var c in this._)l.push(L(c));return l}function we(){var l=0;for(var c in this._)++l;return l}function Ee(){for(var l in this._)return!1;return!0}t.nest=function(){var l={},c=[],p=[],m,y;function x(T,k,B){if(B>=c.length)return y?y.call(l,k):m?k.sort(m):k;for(var $=-1,W=k.length,G=c[B++],oe,se,H,K=new M,re;++$<W;)(re=K.get(oe=G(se=k[$])))?re.push(se):K.set(oe,[se]);return T?(se=T(),H=function(fe,ce){se.set(fe,x(T,ce,B))}):(se={},H=function(fe,ce){se[fe]=x(T,ce,B)}),K.forEach(H),se}function O(T,k){if(k>=c.length)return T;var B=[],$=p[k++];return T.forEach(function(W,G){B.push({key:W,values:O(G,k)})}),$?B.sort(function(W,G){return $(W.key,G.key)}):B}return l.map=function(T,k){return x(k,T,0)},l.entries=function(T){return O(x(t.map,T,0),0)},l.key=function(T){return c.push(T),l},l.sortKeys=function(T){return p[c.length-1]=T,l},l.sortValues=function(T){return m=T,l},l.rollup=function(T){return y=T,l},l},t.set=function(l){var c=new Je;if(l)for(var p=0,m=l.length;p<m;++p)c.add(l[p]);return c};function Je(){this._=Object.create(null)}R(Je,{has:ee,add:function(l){return this._[N(l+="")]=!0,l},remove:ue,values:pe,size:we,empty:Ee,forEach:function(l){for(var c in this._)l.call(this,L(c))}}),t.behavior={};function je(l){return l}t.rebind=function(l,c){for(var p=1,m=arguments.length,y;++p<m;)l[y=arguments[p]]=me(l,c,c[y]);return l};function me(l,c,p){return function(){var m=p.apply(c,arguments);return m===c?l:m}}function Fe(l,c){if(c in l)return c;c=c.charAt(0).toUpperCase()+c.slice(1);for(var p=0,m=qe.length;p<m;++p){var y=qe[p]+c;if(y in l)return y}}var qe=["webkit","ms","moz","Moz","o","O"];function Ue(){}t.dispatch=function(){for(var l=new be,c=-1,p=arguments.length;++c<p;)l[arguments[c]]=ye(l);return l};function be(){}be.prototype.on=function(l,c){var p=l.indexOf("."),m="";if(p>=0&&(m=l.slice(p+1),l=l.slice(0,p)),l)return arguments.length<2?this[l].on(m):this[l].on(m,c);if(arguments.length===2){if(c==null)for(l in this)this.hasOwnProperty(l)&&this[l].on(m,null);return this}};function ye(l){var c=[],p=new M;function m(){for(var y=c,x=-1,O=y.length,T;++x<O;)(T=y[x].on)&&T.apply(this,arguments);return l}return m.on=function(y,x){var O=p.get(y),T;return arguments.length<2?O&&O.on:(O&&(O.on=null,c=c.slice(0,T=c.indexOf(O)).concat(c.slice(T+1)),p.remove(y)),x&&c.push(p.set(y,{on:x})),l)},m}t.event=null;function Ke(){t.event.preventDefault()}function We(){for(var l=t.event,c;c=l.sourceEvent;)l=c;return l}function Ze(l){for(var c=new be,p=0,m=arguments.length;++p<m;)c[arguments[p]]=ye(c);return c.of=function(y,x){return function(O){try{var T=O.sourceEvent=t.event;O.target=l,t.event=O,c[O.type].apply(y,x)}finally{t.event=T}}},c}t.requote=function(l){return l.replace(st,"\\$&")};var st=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Rt={}.__proto__?function(l,c){l.__proto__=c}:function(l,c){for(var p in c)l[p]=c[p]};function kt(l){return Rt(l,_e),l}var Ae=function(l,c){return c.querySelector(l)},nt=function(l,c){return c.querySelectorAll(l)},mt=function(l,c){var p=l.matches||l[Fe(l,"matchesSelector")];return mt=function(m,y){return p.call(m,y)},mt(l,c)};typeof Sizzle=="function"&&(Ae=function(l,c){return Sizzle(l,c)[0]||null},nt=Sizzle,mt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var _e=t.selection.prototype=[];_e.select=function(l){var c=[],p,m,y,x;l=j(l);for(var O=-1,T=this.length;++O<T;){c.push(p=[]),p.parentNode=(y=this[O]).parentNode;for(var k=-1,B=y.length;++k<B;)(x=y[k])?(p.push(m=l.call(x,x.__data__,k,O)),m&&"__data__"in x&&(m.__data__=x.__data__)):p.push(null)}return kt(c)};function j(l){return typeof l=="function"?l:function(){return Ae(l,this)}}_e.selectAll=function(l){var c=[],p,m;l=te(l);for(var y=-1,x=this.length;++y<x;)for(var O=this[y],T=-1,k=O.length;++T<k;)(m=O[T])&&(c.push(p=n(l.call(m,m.__data__,T,y))),p.parentNode=m);return kt(c)};function te(l){return typeof l=="function"?l:function(){return nt(l,this)}}var I="http://www.w3.org/1999/xhtml",C={svg:"http://www.w3.org/2000/svg",xhtml:I,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};t.ns={prefix:C,qualify:function(l){var c=l.indexOf(":"),p=l;return c>=0&&(p=l.slice(0,c))!=="xmlns"&&(l=l.slice(c+1)),C.hasOwnProperty(p)?{space:C[p],local:l}:l}},_e.attr=function(l,c){if(arguments.length<2){if(typeof l=="string"){var p=this.node();return l=t.ns.qualify(l),l.local?p.getAttributeNS(l.space,l.local):p.getAttribute(l)}for(c in l)this.each(P(c,l[c]));return this}return this.each(P(l,c))};function P(l,c){l=t.ns.qualify(l);function p(){this.removeAttribute(l)}function m(){this.removeAttributeNS(l.space,l.local)}function y(){this.setAttribute(l,c)}function x(){this.setAttributeNS(l.space,l.local,c)}function O(){var k=c.apply(this,arguments);k==null?this.removeAttribute(l):this.setAttribute(l,k)}function T(){var k=c.apply(this,arguments);k==null?this.removeAttributeNS(l.space,l.local):this.setAttributeNS(l.space,l.local,k)}return c==null?l.local?m:p:typeof c=="function"?l.local?T:O:l.local?x:y}function U(l){return l.trim().replace(/\s+/g," ")}_e.classed=function(l,c){if(arguments.length<2){if(typeof l=="string"){var p=this.node(),m=(l=Ne(l)).length,y=-1;if(c=p.classList){for(;++y<m;)if(!c.contains(l[y]))return!1}else for(c=p.getAttribute("class");++y<m;)if(!le(l[y]).test(c))return!1;return!0}for(c in l)this.each(ze(c,l[c]));return this}return this.each(ze(l,c))};function le(l){return new RegExp("(?:^|\\s+)"+t.requote(l)+"(?:\\s+|$)","g")}function Ne(l){return(l+"").trim().split(/^|\s+/)}function ze(l,c){l=Ne(l).map(qt);var p=l.length;function m(){for(var x=-1;++x<p;)l[x](this,c)}function y(){for(var x=-1,O=c.apply(this,arguments);++x<p;)l[x](this,O)}return typeof c=="function"?y:m}function qt(l){var c=le(l);return function(p,m){if(y=p.classList)return m?y.add(l):y.remove(l);var y=p.getAttribute("class")||"";m?(c.lastIndex=0,c.test(y)||p.setAttribute("class",U(y+" "+l))):p.setAttribute("class",U(y.replace(c," ")))}}_e.style=function(l,c,p){var m=arguments.length;if(m<3){if(typeof l!="string"){m<2&&(c="");for(p in l)this.each(Qt(p,l[p],c));return this}if(m<2){var y=this.node();return o(y).getComputedStyle(y,null).getPropertyValue(l)}p=""}return this.each(Qt(l,c,p))};function Qt(l,c,p){function m(){this.style.removeProperty(l)}function y(){this.style.setProperty(l,c,p)}function x(){var O=c.apply(this,arguments);O==null?this.style.removeProperty(l):this.style.setProperty(l,O,p)}return c==null?m:typeof c=="function"?x:y}_e.property=function(l,c){if(arguments.length<2){if(typeof l=="string")return this.node()[l];for(c in l)this.each(nr(c,l[c]));return this}return this.each(nr(l,c))};function nr(l,c){function p(){delete this[l]}function m(){this[l]=c}function y(){var x=c.apply(this,arguments);x==null?delete this[l]:this[l]=x}return c==null?p:typeof c=="function"?y:m}_e.text=function(l){return arguments.length?this.each(typeof l=="function"?function(){var c=l.apply(this,arguments);this.textContent=c==null?"":c}:l==null?function(){this.textContent=""}:function(){this.textContent=l}):this.node().textContent},_e.html=function(l){return arguments.length?this.each(typeof l=="function"?function(){var c=l.apply(this,arguments);this.innerHTML=c==null?"":c}:l==null?function(){this.innerHTML=""}:function(){this.innerHTML=l}):this.node().innerHTML},_e.append=function(l){return l=gr(l),this.select(function(){return this.appendChild(l.apply(this,arguments))})};function gr(l){function c(){var m=this.ownerDocument,y=this.namespaceURI;return y===I&&m.documentElement.namespaceURI===I?m.createElement(l):m.createElementNS(y,l)}function p(){return this.ownerDocument.createElementNS(l.space,l.local)}return typeof l=="function"?l:(l=t.ns.qualify(l)).local?p:c}_e.insert=function(l,c){return l=gr(l),c=j(c),this.select(function(){return this.insertBefore(l.apply(this,arguments),c.apply(this,arguments)||null)})},_e.remove=function(){return this.each(Sr)};function Sr(){var l=this.parentNode;l&&l.removeChild(this)}_e.data=function(l,c){var p=-1,m=this.length,y,x;if(!arguments.length){for(l=new Array(m=(y=this[0]).length);++p<m;)(x=y[p])&&(l[p]=x.__data__);return l}function O($,W){var G,oe=$.length,se=W.length,H=Math.min(oe,se),K=new Array(se),re=new Array(se),fe=new Array(oe),ce,ie;if(c){var $e=new M,Ye=new Array(oe),ut;for(G=-1;++G<oe;)(ce=$[G])&&($e.has(ut=c.call(ce,ce.__data__,G))?fe[G]=ce:$e.set(ut,ce),Ye[G]=ut);for(G=-1;++G<se;)(ce=$e.get(ut=c.call(W,ie=W[G],G)))?ce!==!0&&(K[G]=ce,ce.__data__=ie):re[G]=rn(ie),$e.set(ut,!0);for(G=-1;++G<oe;)G in Ye&&$e.get(Ye[G])!==!0&&(fe[G]=$[G])}else{for(G=-1;++G<H;)ce=$[G],ie=W[G],ce?(ce.__data__=ie,K[G]=ce):re[G]=rn(ie);for(;G<se;++G)re[G]=rn(W[G]);for(;G<oe;++G)fe[G]=$[G]}re.update=K,re.parentNode=K.parentNode=fe.parentNode=$.parentNode,T.push(re),k.push(K),B.push(fe)}var T=ma([]),k=kt([]),B=kt([]);if(typeof l=="function")for(;++p<m;)O(y=this[p],l.call(y,y.parentNode.__data__,p));else for(;++p<m;)O(y=this[p],l);return k.enter=function(){return T},k.exit=function(){return B},k};function rn(l){return{__data__:l}}_e.datum=function(l){return arguments.length?this.property("__data__",l):this.property("__data__")},_e.filter=function(l){var c=[],p,m,y;typeof l!="function"&&(l=ga(l));for(var x=0,O=this.length;x<O;x++){c.push(p=[]),p.parentNode=(m=this[x]).parentNode;for(var T=0,k=m.length;T<k;T++)(y=m[T])&&l.call(y,y.__data__,T,x)&&p.push(y)}return kt(c)};function ga(l){return function(){return mt(this,l)}}_e.order=function(){for(var l=-1,c=this.length;++l<c;)for(var p=this[l],m=p.length-1,y=p[m],x;--m>=0;)(x=p[m])&&(y&&y!==x.nextSibling&&y.parentNode.insertBefore(x,y),y=x);return this},_e.sort=function(l){l=Hn.apply(this,arguments);for(var c=-1,p=this.length;++c<p;)this[c].sort(l);return this.order()};function Hn(l){return arguments.length||(l=h),function(c,p){return c&&p?l(c.__data__,p.__data__):!c-!p}}_e.each=function(l){return Tn(this,function(c,p,m){l.call(c,c.__data__,p,m)})};function Tn(l,c){for(var p=0,m=l.length;p<m;p++)for(var y=l[p],x=0,O=y.length,T;x<O;x++)(T=y[x])&&c(T,x,p);return l}_e.call=function(l){var c=n(arguments);return l.apply(c[0]=this,c),this},_e.empty=function(){return!this.node()},_e.node=function(){for(var l=0,c=this.length;l<c;l++)for(var p=this[l],m=0,y=p.length;m<y;m++){var x=p[m];if(x)return x}return null},_e.size=function(){var l=0;return Tn(this,function(){++l}),l};function ma(l){return Rt(l,Yi),l}var Yi=[];t.selection.enter=ma,t.selection.enter.prototype=Yi,Yi.append=_e.append,Yi.empty=_e.empty,Yi.node=_e.node,Yi.call=_e.call,Yi.size=_e.size,Yi.select=function(l){for(var c=[],p,m,y,x,O,T=-1,k=this.length;++T<k;){y=(x=this[T]).update,c.push(p=[]),p.parentNode=x.parentNode;for(var B=-1,$=x.length;++B<$;)(O=x[B])?(p.push(y[B]=m=l.call(x.parentNode,O.__data__,B,T)),m.__data__=O.__data__):p.push(null)}return kt(c)},Yi.insert=function(l,c){return arguments.length<2&&(c=Vu(this)),_e.insert.call(this,l,c)};function Vu(l){var c,p;return function(m,y,x){var O=l[x].update,T=O.length,k;for(x!=p&&(p=x,c=0),y>=c&&(c=y+1);!(k=O[c])&&++c<T;);return k}}t.select=function(l){var c;return typeof l=="string"?(c=[Ae(l,i)],c.parentNode=i.documentElement):(c=[l],c.parentNode=a(l)),kt([c])},t.selectAll=function(l){var c;return typeof l=="string"?(c=n(nt(l,i)),c.parentNode=i.documentElement):(c=n(l),c.parentNode=null),kt([c])},_e.on=function(l,c,p){var m=arguments.length;if(m<3){if(typeof l!="string"){m<2&&(c=!1);for(p in l)this.each(ws(p,l[p],c));return this}if(m<2)return(m=this.node()["__on"+l])&&m._;p=!1}return this.each(ws(l,c,p))};function ws(l,c,p){var m="__on"+l,y=l.indexOf("."),x=_s;y>0&&(l=l.slice(0,y));var O=xs.get(l);O&&(l=O,x=N1);function T(){var $=this[m];$&&(this.removeEventListener(l,$,$.$),delete this[m])}function k(){var $=x(c,n(arguments));T.call(this),this.addEventListener(l,this[m]=$,$.$=p),$._=c}function B(){var $=new RegExp("^__on([^.]+)"+t.requote(l)+"$"),W;for(var G in this)if(W=G.match($)){var oe=this[G];this.removeEventListener(W[1],oe,oe.$),delete this[G]}}return y?c?k:T:c?Ue:B}var xs=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&xs.forEach(function(l){"on"+l in i&&xs.remove(l)});function _s(l,c){return function(p){var m=t.event;t.event=p,c[0]=this.__data__;try{l.apply(this,c)}finally{t.event=m}}}function N1(l,c){var p=_s(l,c);return function(m){var y=this,x=m.relatedTarget;(!x||x!==y&&!(x.compareDocumentPosition(y)&8))&&p.call(y,m)}}var Ga,L1=0;function Ss(l){var c=".dragsuppress-"+ ++L1,p="click"+c,m=t.select(o(l)).on("touchmove"+c,Ke).on("dragstart"+c,Ke).on("selectstart"+c,Ke);if(Ga==null&&(Ga="onselectstart"in l?!1:Fe(l.style,"userSelect")),Ga){var y=a(l).style,x=y[Ga];y[Ga]="none"}return function(O){if(m.on(c,null),Ga&&(y[Ga]=x),O){var T=function(){m.on(p,null)};m.on(p,function(){Ke(),T()},!0),setTimeout(T,0)}}}t.mouse=function(l){return pi(l,We())};var ln=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function pi(l,c){c.changedTouches&&(c=c.changedTouches[0]);var p=l.ownerSVGElement||l;if(p.createSVGPoint){var m=p.createSVGPoint();if(ln<0){var y=o(l);if(y.scrollX||y.scrollY){p=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var x=p[0][0].getScreenCTM();ln=!(x.f||x.e),p.remove()}}return ln?(m.x=c.pageX,m.y=c.pageY):(m.x=c.clientX,m.y=c.clientY),m=m.matrixTransform(l.getScreenCTM().inverse()),[m.x,m.y]}var O=l.getBoundingClientRect();return[c.clientX-O.left-l.clientLeft,c.clientY-O.top-l.clientTop]}t.touch=function(l,c,p){if(arguments.length<3&&(p=c,c=We().changedTouches),c){for(var m=0,y=c.length,x;m<y;++m)if((x=c[m]).identifier===p)return pi(l,x)}},t.behavior.drag=function(){var l=Ze(y,"drag","dragstart","dragend"),c=null,p=x(Ue,t.mouse,o,"mousemove","mouseup"),m=x(Vn,t.touch,je,"touchmove","touchend");function y(){this.on("mousedown.drag",p).on("touchstart.drag",m)}function x(O,T,k,B,$){return function(){var W=this,G=t.event.target.correspondingElement||t.event.target,oe=W.parentNode,se=l.of(W,arguments),H=0,K=O(),re=".drag"+(K==null?"":"-"+K),fe,ce=t.select(k(G)).on(B+re,Ye).on($+re,ut),ie=Ss(G),$e=T(oe,K);c?(fe=c.apply(W,arguments),fe=[fe.x-$e[0],fe.y-$e[1]]):fe=[0,0],se({type:"dragstart"});function Ye(){var Xe=T(oe,K),ct,wt;!Xe||(ct=Xe[0]-$e[0],wt=Xe[1]-$e[1],H|=ct|wt,$e=Xe,se({type:"drag",x:Xe[0]+fe[0],y:Xe[1]+fe[1],dx:ct,dy:wt}))}function ut(){!T(oe,K)||(ce.on(B+re,null).on($+re,null),ie(H),se({type:"dragend"}))}}}return y.origin=function(O){return arguments.length?(c=O,y):c},t.rebind(y,l,"on")};function Vn(){return t.event.changedTouches[0].identifier}t.touches=function(l,c){return arguments.length<2&&(c=We().touches),c?n(c).map(function(p){var m=pi(l,p);return m.identifier=p.identifier,m}):[]};var fr=1e-6,pv=fr*fr,Xi=Math.PI,Po=2*Xi,hv=Po-fr,Oi=Xi/2,vv=Xi/180,Yu=180/Xi;function B1(l,c,p){return(c[0]-l[0])*(p[1]-l[1])-(c[1]-l[1])*(p[0]-l[0])}function gv(l){return l>1?Oi:l<-1?-Oi:Math.asin(l)}function $1(l){return((l=Math.exp(l))-1/l)/2}function mv(l){return((l=Math.exp(l))+1/l)/2}function z1(l){return((l=Math.exp(2*l))-1)/(l+1)}var Xu=Math.SQRT2,Mc=2,yv=4;t.interpolateZoom=function(l,c){var p=l[0],m=l[1],y=l[2],x=c[0],O=c[1],T=c[2],k=x-p,B=O-m,$=k*k+B*B,W,G;if($<pv)G=Math.log(T/y)/Xu,W=function(fe){return[p+fe*k,m+fe*B,y*Math.exp(Xu*fe*G)]};else{var oe=Math.sqrt($),se=(T*T-y*y+yv*$)/(2*y*Mc*oe),H=(T*T-y*y-yv*$)/(2*T*Mc*oe),K=Math.log(Math.sqrt(se*se+1)-se),re=Math.log(Math.sqrt(H*H+1)-H);G=(re-K)/Xu,W=function(fe){var ce=fe*G,ie=mv(K),$e=y/(Mc*oe)*(ie*z1(Xu*ce+K)-$1(K));return[p+$e*k,m+$e*B,y*ie/mv(Xu*ce+K)]}}return W.duration=G*1e3,W},t.behavior.zoom=function(){var l={x:0,y:0,k:1},c,p,m,y=[960,500],x=Ku,O=250,T=0,k="mousedown.zoom",B="mousemove.zoom",$="mouseup.zoom",W,G="touchstart.zoom",oe,se=Ze(ce,"zoomstart","zoom","zoomend"),H,K,re,fe;Dc||(Dc="onwheel"in i?(Es=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Es=function(){return t.event.wheelDelta},"mousewheel"):(Es=function(){return-t.event.detail},"MozMousePixelScroll"));function ce(lt){lt.on(k,Vt).on(Dc+".zoom",Lr).on("dblclick.zoom",br).on(G,cr)}ce.event=function(lt){lt.each(function(){var Xt=se.of(this,arguments),Jt=l;ra?t.select(this).transition().each("start.zoom",function(){l=this.__chart__||{x:0,y:0,k:1},wt(Xt)}).tween("zoom:zoom",function(){var dr=y[0],kr=y[1],qr=p?p[0]:dr/2,Zr=p?p[1]:kr/2,bn=t.interpolateZoom([(qr-l.x)/l.k,(Zr-l.y)/l.k,dr/l.k],[(qr-Jt.x)/Jt.k,(Zr-Jt.y)/Jt.k,dr/Jt.k]);return function(Rn){var cn=bn(Rn),$n=dr/cn[2];this.__chart__=l={x:qr-cn[0]*$n,y:Zr-cn[1]*$n,k:$n},Yt(Xt)}}).each("interrupt.zoom",function(){Et(Xt)}).each("end.zoom",function(){Et(Xt)}):(this.__chart__=l,wt(Xt),Yt(Xt),Et(Xt))})},ce.translate=function(lt){return arguments.length?(l={x:+lt[0],y:+lt[1],k:l.k},ct(),ce):[l.x,l.y]},ce.scale=function(lt){return arguments.length?(l={x:l.x,y:l.y,k:null},Ye(+lt),ct(),ce):l.k},ce.scaleExtent=function(lt){return arguments.length?(x=lt==null?Ku:[+lt[0],+lt[1]],ce):x},ce.center=function(lt){return arguments.length?(m=lt&&[+lt[0],+lt[1]],ce):m},ce.size=function(lt){return arguments.length?(y=lt&&[+lt[0],+lt[1]],ce):y},ce.duration=function(lt){return arguments.length?(O=+lt,ce):O},ce.x=function(lt){return arguments.length?(K=lt,H=lt.copy(),l={x:0,y:0,k:1},ce):K},ce.y=function(lt){return arguments.length?(fe=lt,re=lt.copy(),l={x:0,y:0,k:1},ce):fe};function ie(lt){return[(lt[0]-l.x)/l.k,(lt[1]-l.y)/l.k]}function $e(lt){return[lt[0]*l.k+l.x,lt[1]*l.k+l.y]}function Ye(lt){l.k=Math.max(x[0],Math.min(x[1],lt))}function ut(lt,Xt){Xt=$e(Xt),l.x+=lt[0]-Xt[0],l.y+=lt[1]-Xt[1]}function Xe(lt,Xt,Jt,dr){lt.__chart__={x:l.x,y:l.y,k:l.k},Ye(Math.pow(2,dr)),ut(p=Xt,Jt),lt=t.select(lt),O>0&&(lt=lt.transition().duration(O)),lt.call(ce.event)}function ct(){K&&K.domain(H.range().map(function(lt){return(lt-l.x)/l.k}).map(H.invert)),fe&&fe.domain(re.range().map(function(lt){return(lt-l.y)/l.k}).map(re.invert))}function wt(lt){T++||lt({type:"zoomstart"})}function Yt(lt){ct(),lt({type:"zoom",scale:l.k,translate:[l.x,l.y]})}function Et(lt){--T||(lt({type:"zoomend"}),p=null)}function Vt(){var lt=this,Xt=se.of(lt,arguments),Jt=0,dr=t.select(o(lt)).on(B,Zr).on($,bn),kr=ie(t.mouse(lt)),qr=Ss(lt);rf.call(lt),wt(Xt);function Zr(){Jt=1,ut(t.mouse(lt),kr),Yt(Xt)}function bn(){dr.on(B,null).on($,null),qr(Jt),Et(Xt)}}function cr(){var lt=this,Xt=se.of(lt,arguments),Jt={},dr=0,kr,qr=".zoom-"+t.event.changedTouches[0].identifier,Zr="touchmove"+qr,bn="touchend"+qr,Rn=[],cn=t.select(lt),$n=Ss(lt);V(),wt(Xt),cn.on(k,null).on(G,V);function F(){var Le=t.touches(lt);return kr=l.k,Le.forEach(function(Te){Te.identifier in Jt&&(Jt[Te.identifier]=ie(Te))}),Le}function V(){var Le=t.event.target;t.select(Le).on(Zr,J).on(bn,Pe),Rn.push(Le);for(var Te=t.event.changedTouches,Oe=0,tt=Te.length;Oe<tt;++Oe)Jt[Te[Oe].identifier]=null;var rt=F(),ot=Date.now();if(rt.length===1){if(ot-oe<500){var ht=rt[0];Xe(lt,ht,Jt[ht.identifier],Math.floor(Math.log(l.k)/Math.LN2)+1),Ke()}oe=ot}else if(rt.length>1){var ht=rt[0],Ft=rt[1],Ct=ht[0]-Ft[0],ft=ht[1]-Ft[1];dr=Ct*Ct+ft*ft}}function J(){var Le=t.touches(lt),Te,Oe,tt,rt;rf.call(lt);for(var ot=0,ht=Le.length;ot<ht;++ot,rt=null)if(tt=Le[ot],rt=Jt[tt.identifier]){if(Oe)break;Te=tt,Oe=rt}if(rt){var Ft=(Ft=tt[0]-Te[0])*Ft+(Ft=tt[1]-Te[1])*Ft,Ct=dr&&Math.sqrt(Ft/dr);Te=[(Te[0]+tt[0])/2,(Te[1]+tt[1])/2],Oe=[(Oe[0]+rt[0])/2,(Oe[1]+rt[1])/2],Ye(Ct*kr)}oe=null,ut(Te,Oe),Yt(Xt)}function Pe(){if(t.event.touches.length){for(var Le=t.event.changedTouches,Te=0,Oe=Le.length;Te<Oe;++Te)delete Jt[Le[Te].identifier];for(var tt in Jt)return void F()}t.selectAll(Rn).on(qr,null),cn.on(k,Vt).on(G,cr),$n(),Et(Xt)}}function Lr(){var lt=se.of(this,arguments);W?clearTimeout(W):(rf.call(this),c=ie(p=m||t.mouse(this)),wt(lt)),W=setTimeout(function(){W=null,Et(lt)},50),Ke(),Ye(Math.pow(2,Es()*.002)*l.k),ut(p,c),Yt(lt)}function br(){var lt=t.mouse(this),Xt=Math.log(l.k)/Math.LN2;Xe(this,lt,ie(lt),t.event.shiftKey?Math.ceil(Xt)-1:Math.floor(Xt)+1)}return t.rebind(ce,se,"on")};var Ku=[0,1/0],Es,Dc;t.color=ya;function ya(){}ya.prototype.toString=function(){return this.rgb()+""},t.hsl=ti;function ti(l,c,p){return this instanceof ti?(this.h=+l,this.s=+c,void(this.l=+p)):arguments.length<2?l instanceof ti?new ti(l.h,l.s,l.l):Ha(""+l,Uc,ti):new ti(l,c,p)}var As=ti.prototype=new ya;As.brighter=function(l){return l=Math.pow(.7,arguments.length?l:1),new ti(this.h,this.s,this.l/l)},As.darker=function(l){return l=Math.pow(.7,arguments.length?l:1),new ti(this.h,this.s,l*this.l)},As.rgb=function(){return Cs(this.h,this.s,this.l)};function Cs(l,c,p){var m,y;l=isNaN(l)?0:(l%=360)<0?l+360:l,c=isNaN(c)||c<0?0:c>1?1:c,p=p<0?0:p>1?1:p,y=p<=.5?p*(1+c):p+c-p*c,m=2*p-y;function x(T){return T>360?T-=360:T<0&&(T+=360),T<60?m+(y-m)*T/60:T<180?y:T<240?m+(y-m)*(240-T)/60:m}function O(T){return Math.round(x(T)*255)}return new sn(O(l+120),O(l),O(l-120))}t.hcl=hi;function hi(l,c,p){return this instanceof hi?(this.h=+l,this.c=+c,void(this.l=+p)):arguments.length<2?l instanceof hi?new hi(l.h,l.c,l.l):l instanceof nn?xv(l.l,l.a,l.b):xv((l=Va((l=t.rgb(l)).r,l.g,l.b)).l,l.a,l.b):new hi(l,c,p)}var Qu=hi.prototype=new ya;Qu.brighter=function(l){return new hi(this.h,this.c,Math.min(100,this.l+qa*(arguments.length?l:1)))},Qu.darker=function(l){return new hi(this.h,this.c,Math.max(0,this.l-qa*(arguments.length?l:1)))},Qu.rgb=function(){return Zu(this.h,this.c,this.l).rgb()};function Zu(l,c,p){return isNaN(l)&&(l=0),isNaN(c)&&(c=0),new nn(p,Math.cos(l*=vv)*c,Math.sin(l)*c)}t.lab=nn;function nn(l,c,p){return this instanceof nn?(this.l=+l,this.a=+c,void(this.b=+p)):arguments.length<2?l instanceof nn?new nn(l.l,l.a,l.b):l instanceof hi?Zu(l.h,l.c,l.l):Va((l=sn(l)).r,l.g,l.b):new nn(l,c,p)}var qa=18,Fc=.95047,Nc=1,bv=1.08883,Lc=nn.prototype=new ya;Lc.brighter=function(l){return new nn(Math.min(100,this.l+qa*(arguments.length?l:1)),this.a,this.b)},Lc.darker=function(l){return new nn(Math.max(0,this.l-qa*(arguments.length?l:1)),this.a,this.b)},Lc.rgb=function(){return wv(this.l,this.a,this.b)};function wv(l,c,p){var m=(l+16)/116,y=m+c/500,x=m-p/200;return y=Bc(y)*Fc,m=Bc(m)*Nc,x=Bc(x)*bv,new sn(zc(3.2404542*y-1.5371385*m-.4985314*x),zc(-.969266*y+1.8760108*m+.041556*x),zc(.0556434*y-.2040259*m+1.0572252*x))}function xv(l,c,p){return l>0?new hi(Math.atan2(p,c)*Yu,Math.sqrt(c*c+p*p),l):new hi(NaN,NaN,l)}function Bc(l){return l>.206893034?l*l*l:(l-4/29)/7.787037}function $c(l){return l>.008856?Math.pow(l,1/3):7.787037*l+4/29}function zc(l){return Math.round(255*(l<=.00304?12.92*l:1.055*Math.pow(l,1/2.4)-.055))}t.rgb=sn;function sn(l,c,p){return this instanceof sn?(this.r=~~l,this.g=~~c,void(this.b=~~p)):arguments.length<2?l instanceof sn?new sn(l.r,l.g,l.b):Ha(""+l,sn,Cs):new sn(l,c,p)}function _v(l){return new sn(l>>16,l>>8&255,l&255)}function Ts(l){return _v(l)+""}var ba=sn.prototype=new ya;ba.brighter=function(l){l=Math.pow(.7,arguments.length?l:1);var c=this.r,p=this.g,m=this.b,y=30;return!c&&!p&&!m?new sn(y,y,y):(c&&c<y&&(c=y),p&&p<y&&(p=y),m&&m<y&&(m=y),new sn(Math.min(255,c/l),Math.min(255,p/l),Math.min(255,m/l)))},ba.darker=function(l){return l=Math.pow(.7,arguments.length?l:1),new sn(l*this.r,l*this.g,l*this.b)},ba.hsl=function(){return Uc(this.r,this.g,this.b)},ba.toString=function(){return"#"+ko(this.r)+ko(this.g)+ko(this.b)};function ko(l){return l<16?"0"+Math.max(0,l).toString(16):Math.min(255,l).toString(16)}function Ha(l,c,p){var m=0,y=0,x=0,O,T,k;if(O=/([a-z]+)\((.*)\)/.exec(l=l.toLowerCase()),O)switch(T=O[2].split(","),O[1]){case"hsl":return p(parseFloat(T[0]),parseFloat(T[1])/100,parseFloat(T[2])/100);case"rgb":return c(wa(T[0]),wa(T[1]),wa(T[2]))}return(k=Mo.get(l))?c(k.r,k.g,k.b):(l!=null&&l.charAt(0)==="#"&&!isNaN(k=parseInt(l.slice(1),16))&&(l.length===4?(m=(k&3840)>>4,m=m>>4|m,y=k&240,y=y>>4|y,x=k&15,x=x<<4|x):l.length===7&&(m=(k&16711680)>>16,y=(k&65280)>>8,x=k&255)),c(m,y,x))}function Uc(l,c,p){var m=Math.min(l/=255,c/=255,p/=255),y=Math.max(l,c,p),x=y-m,O,T,k=(y+m)/2;return x?(T=k<.5?x/(y+m):x/(2-y-m),l==y?O=(c-p)/x+(c<p?6:0):c==y?O=(p-l)/x+2:O=(l-c)/x+4,O*=60):(O=NaN,T=k>0&&k<1?0:O),new ti(O,T,k)}function Va(l,c,p){l=Rs(l),c=Rs(c),p=Rs(p);var m=$c((.4124564*l+.3575761*c+.1804375*p)/Fc),y=$c((.2126729*l+.7151522*c+.072175*p)/Nc),x=$c((.0193339*l+.119192*c+.9503041*p)/bv);return nn(116*y-16,500*(m-y),200*(y-x))}function Rs(l){return(l/=255)<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)}function wa(l){var c=parseFloat(l);return l.charAt(l.length-1)==="%"?Math.round(c*2.55):c}var Mo=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Mo.forEach(function(l,c){Mo.set(l,_v(c))});function Er(l){return typeof l=="function"?l:function(){return l}}t.functor=Er,t.xhr=jc(je);function jc(l){return function(c,p,m){return arguments.length===2&&typeof p=="function"&&(m=p,p=null),Os(c,p,l,m)}}function Os(l,c,p,m){var y={},x=t.dispatch("beforesend","progress","load","error"),O={},T=new XMLHttpRequest,k=null;self.XDomainRequest&&!("withCredentials"in T)&&/^(http(s)?:)?\/\//.test(l)&&(T=new XDomainRequest),"onload"in T?T.onload=T.onerror=B:T.onreadystatechange=function(){T.readyState>3&&B()};function B(){var $=T.status,W;if(!$&&U1(T)||$>=200&&$<300||$===304){try{W=p.call(y,T)}catch(G){x.error.call(y,G);return}x.load.call(y,W)}else x.error.call(y,T)}return T.onprogress=function($){var W=t.event;t.event=$;try{x.progress.call(y,T)}finally{t.event=W}},y.header=function($,W){return $=($+"").toLowerCase(),arguments.length<2?O[$]:(W==null?delete O[$]:O[$]=W+"",y)},y.mimeType=function($){return arguments.length?(c=$==null?null:$+"",y):c},y.responseType=function($){return arguments.length?(k=$,y):k},y.response=function($){return p=$,y},["get","post"].forEach(function($){y[$]=function(){return y.send.apply(y,[$].concat(n(arguments)))}}),y.send=function($,W,G){if(arguments.length===2&&typeof W=="function"&&(G=W,W=null),T.open($,l,!0),c!=null&&!("accept"in O)&&(O.accept=c+",*/*"),T.setRequestHeader)for(var oe in O)T.setRequestHeader(oe,O[oe]);return c!=null&&T.overrideMimeType&&T.overrideMimeType(c),k!=null&&(T.responseType=k),G!=null&&y.on("error",G).on("load",function(se){G(null,se)}),x.beforesend.call(y,T),T.send(W==null?null:W),y},y.abort=function(){return T.abort(),y},t.rebind(y,x,"on"),m==null?y:y.get(Sv(m))}function Sv(l){return l.length===1?function(c,p){l(c==null?p:null)}:l}function U1(l){var c=l.responseType;return c&&c!=="text"?l.response:l.responseText}t.dsv=function(l,c){var p=new RegExp('["'+l+`
|
|
918
918
|
]`),m=l.charCodeAt(0);function y(B,$,W){arguments.length<3&&(W=$,$=null);var G=Os(B,c,$==null?x:O($),W);return G.row=function(oe){return arguments.length?G.response(($=oe)==null?x:O(oe)):$},G}function x(B){return y.parse(B.responseText)}function O(B){return function($){return y.parse($.responseText,B)}}y.parse=function(B,$){var W;return y.parseRows(B,function(G,oe){if(W)return W(G,oe-1);var se=function(H){for(var K={},re=G.length,fe=0;fe<re;++fe)K[G[fe]]=H[fe];return K};W=$?function(H,K){return $(se(H),K)}:se})},y.parseRows=function(B,$){var W={},G={},oe=[],se=B.length,H=0,K=0,re,fe;function ce(){if(H>=se)return G;if(fe)return fe=!1,W;var $e=H;if(B.charCodeAt($e)===34){for(var Ye=$e;Ye++<se;)if(B.charCodeAt(Ye)===34){if(B.charCodeAt(Ye+1)!==34)break;++Ye}H=Ye+2;var ut=B.charCodeAt(Ye+1);return ut===13?(fe=!0,B.charCodeAt(Ye+2)===10&&++H):ut===10&&(fe=!0),B.slice($e+1,Ye).replace(/""/g,'"')}for(;H<se;){var ut=B.charCodeAt(H++),Xe=1;if(ut===10)fe=!0;else if(ut===13)fe=!0,B.charCodeAt(H)===10&&(++H,++Xe);else if(ut!==m)continue;return B.slice($e,H-Xe)}return B.slice($e)}for(;(re=ce())!==G;){for(var ie=[];re!==W&&re!==G;)ie.push(re),re=ce();$&&(ie=$(ie,K++))==null||oe.push(ie)}return oe},y.format=function(B){if(Array.isArray(B[0]))return y.formatRows(B);var $=new Je,W=[];return B.forEach(function(G){for(var oe in G)$.has(oe)||W.push($.add(oe))}),[W.map(k).join(l)].concat(B.map(function(G){return W.map(function(oe){return k(G[oe])}).join(l)})).join(`
|
|
919
919
|
`)},y.formatRows=function(B){return B.map(T).join(`
|
|
920
|
-
`)};function T(B){return B.map(k).join(l)}function k(B){return p.test(B)?'"'+B.replace(/\"/g,'""')+'"':B}return y},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var Is,Ju,vi,Ps,gi=this[Fe(this,"requestAnimationFrame")]||function(l){setTimeout(l,17)};t.timer=function(){Do.apply(this,arguments)};function Do(l,c,p){var m=arguments.length;m<2&&(c=0),m<3&&(p=Date.now());var y=p+c,x={c:l,t:y,n:null};return Ju?Ju.n=x:Is=x,Ju=x,vi||(Ps=clearTimeout(Ps),vi=1,gi(Fo)),x}function Fo(){var l=xa(),c=ks()-l;c>24?(isFinite(c)&&(clearTimeout(Ps),Ps=setTimeout(Fo,c)),vi=0):(vi=1,gi(Fo))}t.timer.flush=function(){xa(),ks()};function xa(){for(var l=Date.now(),c=Is;c;)l>=c.t&&c.c(l-c.t)&&(c.c=null),c=c.n;return l}function ks(){for(var l,c=Is,p=1/0;c;)c.c?(c.t<p&&(p=c.t),c=(l=c).n):c=l?l.n=c.n:Is=c.n;return Ju=l,p}t.round=function(l,c){return c?Math.round(l*(c=Math.pow(10,c)))/c:Math.round(l)},t.geom={};function Ki(l){return l[0]}function Qi(l){return l[1]}t.geom.hull=function(l){var c=Ki,p=Qi;if(arguments.length)return m(l);function m(y){if(y.length<3)return[];var x=Er(c),O=Er(p),T,k=y.length,B=[],$=[];for(T=0;T<k;T++)B.push([+x.call(this,y[T],T),+O.call(this,y[T],T),T]);for(B.sort(Ev),T=0;T<k;T++)$.push([B[T][0],-B[T][1]]);var W=el(B),G=el($),oe=G[0]===W[0],se=G[G.length-1]===W[W.length-1],H=[];for(T=W.length-1;T>=0;--T)H.push(y[B[W[T]][2]]);for(T=+oe;T<G.length-se;++T)H.push(y[B[G[T]][2]]);return H}return m.x=function(y){return arguments.length?(c=y,m):c},m.y=function(y){return arguments.length?(p=y,m):p},m};function el(l){for(var c=l.length,p=[0,1],m=2,y=2;y<c;y++){for(;m>1&&B1(l[p[m-2]],l[p[m-1]],l[y])<=0;)--m;p[m++]=y}return p.slice(0,m)}function Ev(l,c){return l[0]-c[0]||l[1]-c[1]}t.geom.polygon=function(l){return Rt(l,No),l};var No=t.geom.polygon.prototype=[];No.area=function(){for(var l=-1,c=this.length,p,m=this[c-1],y=0;++l<c;)p=m,m=this[l],y+=p[1]*m[0]-p[0]*m[1];return y*.5},No.centroid=function(l){var c=-1,p=this.length,m=0,y=0,x,O=this[p-1],T;for(arguments.length||(l=-1/(6*this.area()));++c<p;)x=O,O=this[c],T=x[0]*O[1]-O[0]*x[1],m+=(x[0]+O[0])*T,y+=(x[1]+O[1])*T;return[m*l,y*l]},No.clip=function(l){for(var c,p=Av(l),m=-1,y=this.length-Av(this),x,O,T=this[y-1],k,B,$;++m<y;){for(c=l.slice(),l.length=0,k=this[m],B=c[(O=c.length-p)-1],x=-1;++x<O;)$=c[x],Ms($,T,k)?(Ms(B,T,k)||l.push(Wc(B,$,T,k)),l.push($)):Ms(B,T,k)&&l.push(Wc(B,$,T,k)),B=$;p&&l.push(l[0]),T=k}return l};function Ms(l,c,p){return(p[0]-c[0])*(l[1]-c[1])<(p[1]-c[1])*(l[0]-c[0])}function Wc(l,c,p,m){var y=l[0],x=p[0],O=c[0]-y,T=m[0]-x,k=l[1],B=p[1],$=c[1]-k,W=m[1]-B,G=(T*(k-B)-W*(y-x))/(W*O-T*$);return[y+G*O,k+G*$]}function Av(l){var c=l[0],p=l[l.length-1];return!(c[0]-p[0]||c[1]-p[1])}var Lo,Ya,_a,tl=[],rl,Xa,Ka=[];function Gc(){Ns(this),this.edge=this.site=this.circle=null}function Ds(l){var c=tl.pop()||new Gc;return c.site=l,c}function nl(l){mi(l),_a.remove(l),tl.push(l),Ns(l)}function qc(l){var c=l.circle,p=c.x,m=c.cy,y={x:p,y:m},x=l.P,O=l.N,T=[l];nl(l);for(var k=x;k.circle&&S(p-k.circle.x)<fr&&S(m-k.circle.cy)<fr;)x=k.P,T.unshift(k),nl(k),k=x;T.unshift(k),mi(k);for(var B=O;B.circle&&S(p-B.circle.x)<fr&&S(m-B.circle.cy)<fr;)O=B.N,T.push(B),nl(B),B=O;T.push(B),mi(B);var $=T.length,W;for(W=1;W<$;++W)B=T[W],k=T[W-1],Bo(B.edge,k.site,B.site,y);k=T[0],B=T[$-1],B.edge=al(k.site,B.site,null,y),Qa(k),Qa(B)}function Cv(l){for(var c=l.x,p=l.y,m,y,x,O,T=_a._;T;)if(x=Hc(T,p)-c,x>fr)T=T.L;else if(O=c-Tv(T,p),O>fr){if(!T.R){m=T;break}T=T.R}else{x>-fr?(m=T.P,y=T):O>-fr?(m=T,y=T.N):m=y=T;break}var k=Ds(l);if(_a.insert(m,k),!(!m&&!y)){if(m===y){mi(m),y=Ds(m.site),_a.insert(k,y),k.edge=y.edge=al(m.site,k.site),Qa(m),Qa(y);return}if(!y){k.edge=al(m.site,k.site);return}mi(m),mi(y);var B=m.site,$=B.x,W=B.y,G=l.x-$,oe=l.y-W,se=y.site,H=se.x-$,K=se.y-W,re=2*(G*K-oe*H),fe=G*G+oe*oe,ce=H*H+K*K,ie={x:(K*fe-oe*ce)/re+$,y:(G*ce-H*fe)/re+W};Bo(y.edge,B,se,ie),k.edge=al(B,l,null,ie),y.edge=al(l,se,null,ie),Qa(m),Qa(y)}}function Hc(l,c){var p=l.site,m=p.x,y=p.y,x=y-c;if(!x)return m;var O=l.P;if(!O)return-1/0;p=O.site;var T=p.x,k=p.y,B=k-c;if(!B)return T;var $=T-m,W=1/x-1/B,G=$/B;return W?(-G+Math.sqrt(G*G-2*W*($*$/(-2*B)-k+B/2+y-x/2)))/W+m:(m+T)/2}function Tv(l,c){var p=l.N;if(p)return Hc(p,c);var m=l.site;return m.y===c?m.x:1/0}function Vc(l){this.site=l,this.edges=[]}Vc.prototype.prepare=function(){for(var l=this.edges,c=l.length,p;c--;)p=l[c].edge,(!p.b||!p.a)&&l.splice(c,1);return l.sort(Yc),l.length};function Rv(l){for(var c=l[0][0],p=l[1][0],m=l[0][1],y=l[1][1],x,O,T,k,B=Ya,$=B.length,W,G,oe,se,H,K;$--;)if(W=B[$],!(!W||!W.prepare()))for(oe=W.edges,se=oe.length,G=0;G<se;)K=oe[G].end(),T=K.x,k=K.y,H=oe[++G%se].start(),x=H.x,O=H.y,(S(T-x)>fr||S(k-O)>fr)&&(oe.splice(G,0,new Fs(j1(W.site,K,S(T-c)<fr&&y-k>fr?{x:c,y:S(x-c)<fr?O:y}:S(k-y)<fr&&p-T>fr?{x:S(O-y)<fr?x:p,y}:S(T-p)<fr&&k-m>fr?{x:p,y:S(x-p)<fr?O:m}:S(k-m)<fr&&T-c>fr?{x:S(O-m)<fr?x:c,y:m}:null),W.site,null)),++se)}function Yc(l,c){return c.angle-l.angle}function Ov(){Ns(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qa(l){var c=l.P,p=l.N;if(!(!c||!p)){var m=c.site,y=l.site,x=p.site;if(m!==x){var O=y.x,T=y.y,k=m.x-O,B=m.y-T,$=x.x-O,K=x.y-T,W=2*(k*K-B*$);if(!(W>=-pv)){var G=k*k+B*B,oe=$*$+K*K,se=(K*G-B*oe)/W,H=(k*oe-$*G)/W,K=H+T,re=Ka.pop()||new Ov;re.arc=l,re.site=y,re.x=se+O,re.y=K+Math.sqrt(se*se+H*H),re.cy=K,l.circle=re;for(var fe=null,ce=Xa._;ce;)if(re.y<ce.y||re.y===ce.y&&re.x<=ce.x)if(ce.L)ce=ce.L;else{fe=ce.P;break}else if(ce.R)ce=ce.R;else{fe=ce;break}Xa.insert(fe,re),fe||(rl=re)}}}}function mi(l){var c=l.circle;c&&(c.P||(rl=c.N),Xa.remove(c),Ka.push(c),Ns(c),l.circle=null)}function Xc(l,c,p,m){return function(y){var x=y.a,O=y.b,T=x.x,k=x.y,B=O.x,$=O.y,W=0,G=1,oe=B-T,se=$-k,H;if(H=l-T,!(!oe&&H>0)){if(H/=oe,oe<0){if(H<W)return;H<G&&(G=H)}else if(oe>0){if(H>G)return;H>W&&(W=H)}if(H=p-T,!(!oe&&H<0)){if(H/=oe,oe<0){if(H>G)return;H>W&&(W=H)}else if(oe>0){if(H<W)return;H<G&&(G=H)}if(H=c-k,!(!se&&H>0)){if(H/=se,se<0){if(H<W)return;H<G&&(G=H)}else if(se>0){if(H>G)return;H>W&&(W=H)}if(H=m-k,!(!se&&H<0)){if(H/=se,se<0){if(H>G)return;H>W&&(W=H)}else if(se>0){if(H<W)return;H<G&&(G=H)}return W>0&&(y.a={x:T+W*oe,y:k+W*se}),G<1&&(y.b={x:T+G*oe,y:k+G*se}),y}}}}}}function Kc(l){for(var c=Lo,p=Xc(l[0][0],l[0][1],l[1][0],l[1][1]),m=c.length,y;m--;)y=c[m],(!il(y,l)||!p(y)||S(y.a.x-y.b.x)<fr&&S(y.a.y-y.b.y)<fr)&&(y.a=y.b=null,c.splice(m,1))}function il(l,c){var p=l.b;if(p)return!0;var m=l.a,y=c[0][0],x=c[1][0],O=c[0][1],T=c[1][1],k=l.l,B=l.r,$=k.x,W=k.y,G=B.x,oe=B.y,se=($+G)/2,H=(W+oe)/2,K,re;if(oe===W){if(se<y||se>=x)return;if($>G){if(!m)m={x:se,y:O};else if(m.y>=T)return;p={x:se,y:T}}else{if(!m)m={x:se,y:T};else if(m.y<O)return;p={x:se,y:O}}}else if(K=($-G)/(oe-W),re=H-K*se,K<-1||K>1)if($>G){if(!m)m={x:(O-re)/K,y:O};else if(m.y>=T)return;p={x:(T-re)/K,y:T}}else{if(!m)m={x:(T-re)/K,y:T};else if(m.y<O)return;p={x:(O-re)/K,y:O}}else if(W<oe){if(!m)m={x:y,y:K*y+re};else if(m.x>=x)return;p={x,y:K*x+re}}else{if(!m)m={x,y:K*x+re};else if(m.x<y)return;p={x:y,y:K*y+re}}return l.a=m,l.b=p,!0}function Iv(l,c){this.l=l,this.r=c,this.a=this.b=null}function al(l,c,p,m){var y=new Iv(l,c);return Lo.push(y),p&&Bo(y,l,c,p),m&&Bo(y,c,l,m),Ya[l.i].edges.push(new Fs(y,l,c)),Ya[c.i].edges.push(new Fs(y,c,l)),y}function j1(l,c,p){var m=new Iv(l,null);return m.a=c,m.b=p,Lo.push(m),m}function Bo(l,c,p,m){!l.a&&!l.b?(l.a=m,l.l=c,l.r=p):l.l===p?l.b=m:l.a=m}function Fs(l,c,p){var m=l.a,y=l.b;this.edge=l,this.site=c,this.angle=p?Math.atan2(p.y-c.y,p.x-c.x):l.l===c?Math.atan2(y.x-m.x,m.y-y.y):Math.atan2(m.x-y.x,y.y-m.y)}Fs.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function Qc(){this._=null}function Ns(l){l.U=l.C=l.L=l.R=l.P=l.N=null}Qc.prototype={insert:function(l,c){var p,m,y;if(l){if(c.P=l,c.N=l.N,l.N&&(l.N.P=c),l.N=c,l.R){for(l=l.R;l.L;)l=l.L;l.L=c}else l.R=c;p=l}else this._?(l=Ls(this._),c.P=null,c.N=l,l.P=l.L=c,p=l):(c.P=c.N=null,this._=c,p=null);for(c.L=c.R=null,c.U=p,c.C=!0,l=c;p&&p.C;)m=p.U,p===m.L?(y=m.R,y&&y.C?(p.C=y.C=!1,m.C=!0,l=m):(l===p.R&&(Za(this,p),l=p,p=l.U),p.C=!1,m.C=!0,ol(this,m))):(y=m.L,y&&y.C?(p.C=y.C=!1,m.C=!0,l=m):(l===p.L&&(ol(this,p),l=p,p=l.U),p.C=!1,m.C=!0,Za(this,m))),p=l.U;this._.C=!1},remove:function(l){l.N&&(l.N.P=l.P),l.P&&(l.P.N=l.N),l.N=l.P=null;var c=l.U,p,m=l.L,y=l.R,x,O;if(m?y?x=Ls(y):x=m:x=y,c?c.L===l?c.L=x:c.R=x:this._=x,m&&y?(O=x.C,x.C=l.C,x.L=m,m.U=x,x!==y?(c=x.U,x.U=l.U,l=x.R,c.L=l,x.R=y,y.U=x):(x.U=c,c=x,l=x.R)):(O=l.C,l=x),l&&(l.U=c),!O){if(l&&l.C){l.C=!1;return}do{if(l===this._)break;if(l===c.L){if(p=c.R,p.C&&(p.C=!1,c.C=!0,Za(this,c),p=c.R),p.L&&p.L.C||p.R&&p.R.C){(!p.R||!p.R.C)&&(p.L.C=!1,p.C=!0,ol(this,p),p=c.R),p.C=c.C,c.C=p.R.C=!1,Za(this,c),l=this._;break}}else if(p=c.L,p.C&&(p.C=!1,c.C=!0,ol(this,c),p=c.L),p.L&&p.L.C||p.R&&p.R.C){(!p.L||!p.L.C)&&(p.R.C=!1,p.C=!0,Za(this,p),p=c.L),p.C=c.C,c.C=p.L.C=!1,ol(this,c),l=this._;break}p.C=!0,l=c,c=c.U}while(!l.C);l&&(l.C=!1)}}};function Za(l,c){var p=c,m=c.R,y=p.U;y?y.L===p?y.L=m:y.R=m:l._=m,m.U=y,p.U=m,p.R=m.L,p.R&&(p.R.U=p),m.L=p}function ol(l,c){var p=c,m=c.L,y=p.U;y?y.L===p?y.L=m:y.R=m:l._=m,m.U=y,p.U=m,p.L=m.R,p.L&&(p.L.U=p),m.R=p}function Ls(l){for(;l.L;)l=l.L;return l}function Bs(l,c){var p=l.sort(Pv).pop(),m,y,x;for(Lo=[],Ya=new Array(l.length),_a=new Qc,Xa=new Qc;;)if(x=rl,p&&(!x||p.y<x.y||p.y===x.y&&p.x<x.x))(p.x!==m||p.y!==y)&&(Ya[p.i]=new Vc(p),Cv(p),m=p.x,y=p.y),p=l.pop();else if(x)qc(x.arc);else break;c&&(Kc(c),Rv(c));var O={cells:Ya,edges:Lo};return _a=Xa=Lo=Ya=null,O}function Pv(l,c){return c.y-l.y||c.x-l.x}t.geom.voronoi=function(l){var c=Ki,p=Qi,m=c,y=p,x=$o;if(l)return O(l);function O(k){var B=new Array(k.length),$=x[0][0],W=x[0][1],G=x[1][0],oe=x[1][1];return Bs(T(k),x).cells.forEach(function(se,H){var K=se.edges,re=se.site,fe=B[H]=K.length?K.map(function(ce){var ie=ce.start();return[ie.x,ie.y]}):re.x>=$&&re.x<=G&&re.y>=W&&re.y<=oe?[[$,oe],[G,oe],[G,W],[$,W]]:[];fe.point=k[H]}),B}function T(k){return k.map(function(B,$){return{x:Math.round(m(B,$)/fr)*fr,y:Math.round(y(B,$)/fr)*fr,i:$}})}return O.links=function(k){return Bs(T(k)).edges.filter(function(B){return B.l&&B.r}).map(function(B){return{source:k[B.l.i],target:k[B.r.i]}})},O.triangles=function(k){var B=[];return Bs(T(k)).cells.forEach(function($,W){for(var G=$.site,oe=$.edges.sort(Yc),se=-1,H=oe.length,K,re=oe[H-1].edge,fe=re.l===G?re.r:re.l;++se<H;)K=fe,re=oe[se].edge,fe=re.l===G?re.r:re.l,W<K.i&&W<fe.i&&W1(G,K,fe)<0&&B.push([k[W],k[K.i],k[fe.i]])}),B},O.x=function(k){return arguments.length?(m=Er(c=k),O):c},O.y=function(k){return arguments.length?(y=Er(p=k),O):p},O.clipExtent=function(k){return arguments.length?(x=k==null?$o:k,O):x===$o?null:x},O.size=function(k){return arguments.length?O.clipExtent(k&&[[0,0],k]):x===$o?null:x&&x[1]},O};var $o=[[-1e6,-1e6],[1e6,1e6]];function W1(l,c,p){return(l.x-p.x)*(c.y-l.y)-(l.x-c.x)*(p.y-l.y)}t.geom.delaunay=function(l){return t.geom.voronoi().triangles(l)},t.geom.quadtree=function(l,c,p,m,y){var x=Ki,O=Qi,T;if(T=arguments.length)return x=$s,O=G1,T===3&&(y=p,m=c,p=c=0),k(l);function k(B){var $,W=Er(x),G=Er(O),oe,se,H,K,re,fe,ce,ie;if(c!=null)re=c,fe=p,ce=m,ie=y;else if(ce=ie=-(re=fe=1/0),oe=[],se=[],K=B.length,T)for(H=0;H<K;++H)$=B[H],$.x<re&&(re=$.x),$.y<fe&&(fe=$.y),$.x>ce&&(ce=$.x),$.y>ie&&(ie=$.y),oe.push($.x),se.push($.y);else for(H=0;H<K;++H){var $e=+W($=B[H],H),Ye=+G($,H);$e<re&&(re=$e),Ye<fe&&(fe=Ye),$e>ce&&(ce=$e),Ye>ie&&(ie=Ye),oe.push($e),se.push(Ye)}var ut=ce-re,Xe=ie-fe;ut>Xe?ie=fe+ut:ce=re+Xe;function ct(Et,Vt,cr,Lr,br,lt,Xt,Jt){if(!(isNaN(cr)||isNaN(Lr)))if(Et.leaf){var dr=Et.x,kr=Et.y;if(dr!=null)if(S(dr-cr)+S(kr-Lr)<.01)wt(Et,Vt,cr,Lr,br,lt,Xt,Jt);else{var qr=Et.point;Et.x=Et.y=Et.point=null,wt(Et,qr,dr,kr,br,lt,Xt,Jt),wt(Et,Vt,cr,Lr,br,lt,Xt,Jt)}else Et.x=cr,Et.y=Lr,Et.point=Vt}else wt(Et,Vt,cr,Lr,br,lt,Xt,Jt)}function wt(Et,Vt,cr,Lr,br,lt,Xt,Jt){var dr=(br+Xt)*.5,kr=(lt+Jt)*.5,qr=cr>=dr,Zr=Lr>=kr,bn=Zr<<1|qr;Et.leaf=!1,Et=Et.nodes[bn]||(Et.nodes[bn]=kv()),qr?br=dr:Xt=dr,Zr?lt=kr:Jt=kr,ct(Et,Vt,cr,Lr,br,lt,Xt,Jt)}var Yt=kv();if(Yt.add=function(Et){ct(Yt,Et,+W(Et,++H),+G(Et,H),re,fe,ce,ie)},Yt.visit=function(Et){ul(Et,Yt,re,fe,ce,ie)},Yt.find=function(Et){return q1(Yt,Et[0],Et[1],re,fe,ce,ie)},H=-1,c==null){for(;++H<K;)ct(Yt,B[H],oe[H],se[H],re,fe,ce,ie);--H}else B.forEach(Yt.add);return oe=se=B=$=null,Yt}return k.x=function(B){return arguments.length?(x=B,k):x},k.y=function(B){return arguments.length?(O=B,k):O},k.extent=function(B){return arguments.length?(B==null?c=p=m=y=null:(c=+B[0][0],p=+B[0][1],m=+B[1][0],y=+B[1][1]),k):c==null?null:[[c,p],[m,y]]},k.size=function(B){return arguments.length?(B==null?c=p=m=y=null:(c=p=0,m=+B[0],y=+B[1]),k):c==null?null:[m-c,y-p]},k};function $s(l){return l.x}function G1(l){return l.y}function kv(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function ul(l,c,p,m,y,x){if(!l(c,p,m,y,x)){var O=(p+y)*.5,T=(m+x)*.5,k=c.nodes;k[0]&&ul(l,k[0],p,m,O,T),k[1]&&ul(l,k[1],O,m,y,T),k[2]&&ul(l,k[2],p,T,O,x),k[3]&&ul(l,k[3],O,T,y,x)}}function q1(l,c,p,m,y,x,O){var T=1/0,k;return function B($,W,G,oe,se){if(!(W>x||G>O||oe<m||se<y)){if(H=$.point){var H,K=c-$.x,re=p-$.y,fe=K*K+re*re;if(fe<T){var ce=Math.sqrt(T=fe);m=c-ce,y=p-ce,x=c+ce,O=p+ce,k=H}}for(var ie=$.nodes,$e=(W+oe)*.5,Ye=(G+se)*.5,ut=c>=$e,Xe=p>=Ye,ct=Xe<<1|ut,wt=ct+4;ct<wt;++ct)if($=ie[ct&3])switch(ct&3){case 0:B($,W,G,$e,Ye);break;case 1:B($,$e,G,oe,Ye);break;case 2:B($,W,Ye,$e,se);break;case 3:B($,$e,Ye,oe,se);break}}}(l,m,y,x,O),k}t.interpolateRgb=Zc;function Zc(l,c){l=t.rgb(l),c=t.rgb(c);var p=l.r,m=l.g,y=l.b,x=c.r-p,O=c.g-m,T=c.b-y;return function(k){return"#"+ko(Math.round(p+x*k))+ko(Math.round(m+O*k))+ko(Math.round(y+T*k))}}t.interpolateObject=Mv;function Mv(l,c){var p={},m={},y;for(y in l)y in c?p[y]=Ii(l[y],c[y]):m[y]=l[y];for(y in c)y in l||(m[y]=c[y]);return function(x){for(y in p)m[y]=p[y](x);return m}}t.interpolateNumber=Zi;function Zi(l,c){return l=+l,c=+c,function(p){return l*(1-p)+c*p}}t.interpolateString=Jc;function Jc(l,c){var p=Ja.lastIndex=ed.lastIndex=0,m,y,x,O=-1,T=[],k=[];for(l=l+"",c=c+"";(m=Ja.exec(l))&&(y=ed.exec(c));)(x=y.index)>p&&(x=c.slice(p,x),T[O]?T[O]+=x:T[++O]=x),(m=m[0])===(y=y[0])?T[O]?T[O]+=y:T[++O]=y:(T[++O]=null,k.push({i:O,x:Zi(m,y)})),p=ed.lastIndex;return p<c.length&&(x=c.slice(p),T[O]?T[O]+=x:T[++O]=x),T.length<2?k[0]?(c=k[0].x,function(B){return c(B)+""}):function(){return c}:(c=k.length,function(B){for(var $=0,W;$<c;++$)T[(W=k[$]).i]=W.x(B);return T.join("")})}var Ja=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ed=new RegExp(Ja.source,"g");t.interpolate=Ii;function Ii(l,c){for(var p=t.interpolators.length,m;--p>=0&&!(m=t.interpolators[p](l,c)););return m}t.interpolators=[function(l,c){var p=typeof c;return(p==="string"?Mo.has(c.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(c)?Zc:Jc:c instanceof ya?Zc:Array.isArray(c)?Bn:p==="object"&&isNaN(c)?Mv:Zi)(l,c)}],t.interpolateArray=Bn;function Bn(l,c){var p=[],m=[],y=l.length,x=c.length,O=Math.min(l.length,c.length),T;for(T=0;T<O;++T)p.push(Ii(l[T],c[T]));for(;T<y;++T)m[T]=l[T];for(;T<x;++T)m[T]=c[T];return function(k){for(T=0;T<O;++T)m[T]=p[T](k);return m}}var eo=function(){return je},Dv=t.map({linear:eo,poly:an,quad:function(){return Lv},cubic:function(){return H1},sin:function(){return Bv},exp:function(){return $v},circle:function(){return to},elastic:zv,back:Uv,bounce:function(){return V1}}),Fv=t.map({in:je,out:td,"in-out":rd,"out-in":function(l){return rd(td(l))}});t.ease=function(l){var c=l.indexOf("-"),p=c>=0?l.slice(0,c):l,m=c>=0?l.slice(c+1):"in";return p=Dv.get(p)||eo,m=Fv.get(m)||je,Nv(m(p.apply(null,r.call(arguments,1))))};function Nv(l){return function(c){return c<=0?0:c>=1?1:l(c)}}function td(l){return function(c){return 1-l(1-c)}}function rd(l){return function(c){return .5*(c<.5?l(2*c):2-l(2-2*c))}}function Lv(l){return l*l}function H1(l){return l*l*l}function zo(l){if(l<=0)return 0;if(l>=1)return 1;var c=l*l,p=c*l;return 4*(l<.5?p:3*(l-c)+p-.75)}function an(l){return function(c){return Math.pow(c,l)}}function Bv(l){return 1-Math.cos(l*Oi)}function $v(l){return Math.pow(2,10*(l-1))}function to(l){return 1-Math.sqrt(1-l*l)}function zv(l,c){var p;return arguments.length<2&&(c=.45),arguments.length?p=c/Po*Math.asin(1/l):(l=1,p=c/4),function(m){return 1+l*Math.pow(2,-10*m)*Math.sin((m-p)*Po/c)}}function Uv(l){return l||(l=1.70158),function(c){return c*c*((l+1)*c-l)}}function V1(l){return l<1/2.75?7.5625*l*l:l<2/2.75?7.5625*(l-=1.5/2.75)*l+.75:l<2.5/2.75?7.5625*(l-=2.25/2.75)*l+.9375:7.5625*(l-=2.625/2.75)*l+.984375}t.interpolateHcl=Y1;function Y1(l,c){l=t.hcl(l),c=t.hcl(c);var p=l.h,m=l.c,y=l.l,x=c.h-p,O=c.c-m,T=c.l-y;return isNaN(O)&&(O=0,m=isNaN(m)?c.c:m),isNaN(x)?(x=0,p=isNaN(p)?c.h:p):x>180?x-=360:x<-180&&(x+=360),function(k){return Zu(p+x*k,m+O*k,y+T*k)+""}}t.interpolateHsl=X1;function X1(l,c){l=t.hsl(l),c=t.hsl(c);var p=l.h,m=l.s,y=l.l,x=c.h-p,O=c.s-m,T=c.l-y;return isNaN(O)&&(O=0,m=isNaN(m)?c.s:m),isNaN(x)?(x=0,p=isNaN(p)?c.h:p):x>180?x-=360:x<-180&&(x+=360),function(k){return Cs(p+x*k,m+O*k,y+T*k)+""}}t.interpolateLab=K1;function K1(l,c){l=t.lab(l),c=t.lab(c);var p=l.l,m=l.a,y=l.b,x=c.l-p,O=c.a-m,T=c.b-y;return function(k){return wv(p+x*k,m+O*k,y+T*k)+""}}t.interpolateRound=zs;function zs(l,c){return c-=l,function(p){return Math.round(l+c*p)}}t.transform=function(l){var c=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(p){if(p!=null){c.setAttribute("transform",p);var m=c.transform.baseVal.consolidate()}return new nd(m?m.matrix:Q1)})(l)};function nd(l){var c=[l.a,l.b],p=[l.c,l.d],m=id(c),y=jv(c,p),x=id(Wv(p,c,-y))||0;c[0]*p[1]<p[0]*c[1]&&(c[0]*=-1,c[1]*=-1,m*=-1,y*=-1),this.rotate=(m?Math.atan2(c[1],c[0]):Math.atan2(-p[0],p[1]))*Yu,this.translate=[l.e,l.f],this.scale=[m,x],this.skew=x?Math.atan2(y,x)*Yu:0}nd.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function jv(l,c){return l[0]*c[0]+l[1]*c[1]}function id(l){var c=Math.sqrt(jv(l,l));return c&&(l[0]/=c,l[1]/=c),c}function Wv(l,c,p){return l[0]+=p*c[0],l[1]+=p*c[1],l}var Q1={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=ad;function Ji(l){return l.length?l.pop()+",":""}function Z1(l,c,p,m){if(l[0]!==c[0]||l[1]!==c[1]){var y=p.push("translate(",null,",",null,")");m.push({i:y-4,x:Zi(l[0],c[0])},{i:y-2,x:Zi(l[1],c[1])})}else(c[0]||c[1])&&p.push("translate("+c+")")}function Sa(l,c,p,m){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),m.push({i:p.push(Ji(p)+"rotate(",null,")")-2,x:Zi(l,c)})):c&&p.push(Ji(p)+"rotate("+c+")")}function Us(l,c,p,m){l!==c?m.push({i:p.push(Ji(p)+"skewX(",null,")")-2,x:Zi(l,c)}):c&&p.push(Ji(p)+"skewX("+c+")")}function Gv(l,c,p,m){if(l[0]!==c[0]||l[1]!==c[1]){var y=p.push(Ji(p)+"scale(",null,",",null,")");m.push({i:y-4,x:Zi(l[0],c[0])},{i:y-2,x:Zi(l[1],c[1])})}else(c[0]!==1||c[1]!==1)&&p.push(Ji(p)+"scale("+c+")")}function ad(l,c){var p=[],m=[];return l=t.transform(l),c=t.transform(c),Z1(l.translate,c.translate,p,m),Sa(l.rotate,c.rotate,p,m),Us(l.skew,c.skew,p,m),Gv(l.scale,c.scale,p,m),l=c=null,function(y){for(var x=-1,O=m.length,T;++x<O;)p[(T=m[x]).i]=T.x(y);return p.join("")}}function qv(l,c){return c=(c-=l=+l)||1/c,function(p){return(p-l)/c}}function Hv(l,c){return c=(c-=l=+l)||1/c,function(p){return Math.max(0,Math.min(1,(p-l)/c))}}t.layout={},t.layout.bundle=function(){return function(l){for(var c=[],p=-1,m=l.length;++p<m;)c.push(Vv(l[p]));return c}};function Vv(l){for(var c=l.source,p=l.target,m=Yv(c,p),y=[c];c!==m;)c=c.parent,y.push(c);for(var x=y.length;p!==m;)y.splice(x,0,p),p=p.parent;return y}function od(l){for(var c=[],p=l.parent;p!=null;)c.push(l),l=p,p=p.parent;return c.push(l),c}function Yv(l,c){if(l===c)return l;for(var p=od(l),m=od(c),y=p.pop(),x=m.pop(),O=null;y===x;)O=y,y=p.pop(),x=m.pop();return O}t.layout.chord=function(){var l={},c,p,m,y,x=0,O,T,k;function B(){var W={},G=[],oe=t.range(y),se=[],H,K,re,fe,ce;for(c=[],p=[],H=0,fe=-1;++fe<y;){for(K=0,ce=-1;++ce<y;)K+=m[fe][ce];G.push(K),se.push(t.range(y)),H+=K}for(O&&oe.sort(function(Yt,Et){return O(G[Yt],G[Et])}),T&&se.forEach(function(Yt,Et){Yt.sort(function(Vt,cr){return T(m[Et][Vt],m[Et][cr])})}),H=(Po-x*y)/H,K=0,fe=-1;++fe<y;){for(re=K,ce=-1;++ce<y;){var ie=oe[fe],$e=se[ie][ce],Ye=m[ie][$e],ut=K,Xe=K+=Ye*H;W[ie+"-"+$e]={index:ie,subindex:$e,startAngle:ut,endAngle:Xe,value:Ye}}p[ie]={index:ie,startAngle:re,endAngle:K,value:G[ie]},K+=x}for(fe=-1;++fe<y;)for(ce=fe-1;++ce<y;){var ct=W[fe+"-"+ce],wt=W[ce+"-"+fe];(ct.value||wt.value)&&c.push(ct.value<wt.value?{source:wt,target:ct}:{source:ct,target:wt})}k&&$()}function $(){c.sort(function(W,G){return k((W.source.value+W.target.value)/2,(G.source.value+G.target.value)/2)})}return l.matrix=function(W){return arguments.length?(y=(m=W)&&m.length,c=p=null,l):m},l.padding=function(W){return arguments.length?(x=W,c=p=null,l):x},l.sortGroups=function(W){return arguments.length?(O=W,c=p=null,l):O},l.sortSubgroups=function(W){return arguments.length?(T=W,c=null,l):T},l.sortChords=function(W){return arguments.length?(k=W,c&&$(),l):k},l.chords=function(){return c||B(),c},l.groups=function(){return p||B(),p},l},t.layout.force=function(){var l={},c=t.dispatch("start","tick","end"),p,m=[1,1],y,x,O=.9,T=ea,k=ud,B=-30,$=Uo,W=.1,G=.64,oe=[],se=[],H,K,re;function fe(ie){return function($e,Ye,ut,Xe){if($e.point!==ie){var ct=$e.cx-ie.x,wt=$e.cy-ie.y,Yt=Xe-Ye,Et=ct*ct+wt*wt;if(Yt*Yt/G<Et){if(Et<$){var Vt=$e.charge/Et;ie.px-=ct*Vt,ie.py-=wt*Vt}return!0}if($e.point&&Et&&Et<$){var Vt=$e.pointCharge/Et;ie.px-=ct*Vt,ie.py-=wt*Vt}}return!$e.charge}}l.tick=function(){if((x*=.99)<.005)return p=null,c.end({type:"end",alpha:x=0}),!0;var ie=oe.length,$e=se.length,Ye,ut,Xe,ct,wt,Yt,Et,Vt,cr;for(ut=0;ut<$e;++ut)Xe=se[ut],ct=Xe.source,wt=Xe.target,Vt=wt.x-ct.x,cr=wt.y-ct.y,(Yt=Vt*Vt+cr*cr)&&(Yt=x*K[ut]*((Yt=Math.sqrt(Yt))-H[ut])/Yt,Vt*=Yt,cr*=Yt,wt.x-=Vt*(Et=ct.weight+wt.weight?ct.weight/(ct.weight+wt.weight):.5),wt.y-=cr*Et,ct.x+=Vt*(Et=1-Et),ct.y+=cr*Et);if((Et=x*W)&&(Vt=m[0]/2,cr=m[1]/2,ut=-1,Et))for(;++ut<ie;)Xe=oe[ut],Xe.x+=(Vt-Xe.x)*Et,Xe.y+=(cr-Xe.y)*Et;if(B)for(Zv(Ye=t.geom.quadtree(oe),x,re),ut=-1;++ut<ie;)(Xe=oe[ut]).fixed||Ye.visit(fe(Xe));for(ut=-1;++ut<ie;)Xe=oe[ut],Xe.fixed?(Xe.x=Xe.px,Xe.y=Xe.py):(Xe.x-=(Xe.px-(Xe.px=Xe.x))*O,Xe.y-=(Xe.py-(Xe.py=Xe.y))*O);c.tick({type:"tick",alpha:x})},l.nodes=function(ie){return arguments.length?(oe=ie,l):oe},l.links=function(ie){return arguments.length?(se=ie,l):se},l.size=function(ie){return arguments.length?(m=ie,l):m},l.linkDistance=function(ie){return arguments.length?(T=typeof ie=="function"?ie:+ie,l):T},l.distance=l.linkDistance,l.linkStrength=function(ie){return arguments.length?(k=typeof ie=="function"?ie:+ie,l):k},l.friction=function(ie){return arguments.length?(O=+ie,l):O},l.charge=function(ie){return arguments.length?(B=typeof ie=="function"?ie:+ie,l):B},l.chargeDistance=function(ie){return arguments.length?($=ie*ie,l):Math.sqrt($)},l.gravity=function(ie){return arguments.length?(W=+ie,l):W},l.theta=function(ie){return arguments.length?(G=ie*ie,l):Math.sqrt(G)},l.alpha=function(ie){return arguments.length?(ie=+ie,x?ie>0?x=ie:(p.c=null,p.t=NaN,p=null,c.end({type:"end",alpha:x=0})):ie>0&&(c.start({type:"start",alpha:x=ie}),p=Do(l.tick)),l):x},l.start=function(){var ie,$e=oe.length,Ye=se.length,ut=m[0],Xe=m[1],ct,wt;for(ie=0;ie<$e;++ie)(wt=oe[ie]).index=ie,wt.weight=0;for(ie=0;ie<Ye;++ie)wt=se[ie],typeof wt.source=="number"&&(wt.source=oe[wt.source]),typeof wt.target=="number"&&(wt.target=oe[wt.target]),++wt.source.weight,++wt.target.weight;for(ie=0;ie<$e;++ie)wt=oe[ie],isNaN(wt.x)&&(wt.x=Yt("x",ut)),isNaN(wt.y)&&(wt.y=Yt("y",Xe)),isNaN(wt.px)&&(wt.px=wt.x),isNaN(wt.py)&&(wt.py=wt.y);if(H=[],typeof T=="function")for(ie=0;ie<Ye;++ie)H[ie]=+T.call(this,se[ie],ie);else for(ie=0;ie<Ye;++ie)H[ie]=T;if(K=[],typeof k=="function")for(ie=0;ie<Ye;++ie)K[ie]=+k.call(this,se[ie],ie);else for(ie=0;ie<Ye;++ie)K[ie]=k;if(re=[],typeof B=="function")for(ie=0;ie<$e;++ie)re[ie]=+B.call(this,oe[ie],ie);else for(ie=0;ie<$e;++ie)re[ie]=B;function Yt(Et,Vt){if(!ct){for(ct=new Array($e),br=0;br<$e;++br)ct[br]=[];for(br=0;br<Ye;++br){var cr=se[br];ct[cr.source.index].push(cr.target),ct[cr.target.index].push(cr.source)}}for(var Lr=ct[ie],br=-1,lt=Lr.length,Xt;++br<lt;)if(!isNaN(Xt=Lr[br][Et]))return Xt;return Math.random()*Vt}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(y||(y=t.behavior.drag().origin(je).on("dragstart.force",Xv).on("drag.force",ce).on("dragend.force",Kv)),!arguments.length)return y;this.on("mouseover.force",yi).on("mouseout.force",Qv).call(y)};function ce(ie){ie.px=t.event.x,ie.py=t.event.y,l.resume()}return t.rebind(l,c,"on")};function Xv(l){l.fixed|=2}function Kv(l){l.fixed&=-7}function yi(l){l.fixed|=4,l.px=l.x,l.py=l.y}function Qv(l){l.fixed&=-5}function Zv(l,c,p){var m=0,y=0;if(l.charge=0,!l.leaf)for(var x=l.nodes,O=x.length,T=-1,k;++T<O;)k=x[T],k!=null&&(Zv(k,c,p),l.charge+=k.charge,m+=k.charge*k.cx,y+=k.charge*k.cy);if(l.point){l.leaf||(l.point.x+=Math.random()-.5,l.point.y+=Math.random()-.5);var B=c*p[l.point.index];l.charge+=l.pointCharge=B,m+=B*l.point.x,y+=B*l.point.y}l.cx=m/l.charge,l.cy=y/l.charge}var ea=20,ud=1,Uo=1/0;t.layout.hierarchy=function(){var l=J1,c=Jv,p=eg;function m(y){var x=[y],O=[],T;for(y.depth=0;(T=x.pop())!=null;)if(O.push(T),(B=c.call(m,T,T.depth))&&(k=B.length)){for(var k,B,$;--k>=0;)x.push($=B[k]),$.parent=T,$.depth=T.depth+1;p&&(T.value=0),T.children=B}else p&&(T.value=+p.call(m,T,T.depth)||0),delete T.children;return bi(y,function(W){var G,oe;l&&(G=W.children)&&G.sort(l),p&&(oe=W.parent)&&(oe.value+=W.value)}),O}return m.sort=function(y){return arguments.length?(l=y,m):l},m.children=function(y){return arguments.length?(c=y,m):c},m.value=function(y){return arguments.length?(p=y,m):p},m.revalue=function(y){return p&&(Wo(y,function(x){x.children&&(x.value=0)}),bi(y,function(x){var O;x.children||(x.value=+p.call(m,x,x.depth)||0),(O=x.parent)&&(O.value+=x.value)})),y},m};function jo(l,c){return t.rebind(l,c,"sort","children","value"),l.nodes=l,l.links=eb,l}function Wo(l,c){for(var p=[l];(l=p.pop())!=null;)if(c(l),(y=l.children)&&(m=y.length))for(var m,y;--m>=0;)p.push(y[m])}function bi(l,c){for(var p=[l],m=[];(l=p.pop())!=null;)if(m.push(l),(O=l.children)&&(x=O.length))for(var y=-1,x,O;++y<x;)p.push(O[y]);for(;(l=m.pop())!=null;)c(l)}function Jv(l){return l.children}function eg(l){return l.value}function J1(l,c){return c.value-l.value}function eb(l){return t.merge(l.map(function(c){return(c.children||[]).map(function(p){return{source:c,target:p}})}))}t.layout.partition=function(){var l=t.layout.hierarchy(),c=[1,1];function p(x,O,T,k){var B=x.children;if(x.x=O,x.y=x.depth*k,x.dx=T,x.dy=k,B&&(W=B.length)){var $=-1,W,G,oe;for(T=x.value?T/x.value:0;++$<W;)p(G=B[$],O,oe=G.value*T,k),O+=oe}}function m(x){var O=x.children,T=0;if(O&&(B=O.length))for(var k=-1,B;++k<B;)T=Math.max(T,m(O[k]));return 1+T}function y(x,O){var T=l.call(this,x,O);return p(T[0],0,c[0],c[1]/m(T[0])),T}return y.size=function(x){return arguments.length?(c=x,y):c},jo(y,l)},t.layout.pie=function(){var l=Number,c=tg,p=0,m=Po,y=0;function x(O){var T=O.length,k=O.map(function(fe,ce){return+l.call(x,fe,ce)}),B=+(typeof p=="function"?p.apply(this,arguments):p),$=(typeof m=="function"?m.apply(this,arguments):m)-B,W=Math.min(Math.abs($)/T,+(typeof y=="function"?y.apply(this,arguments):y)),G=W*($<0?-1:1),oe=t.sum(k),se=oe?($-T*G)/oe:0,H=t.range(T),K=[],re;return c!=null&&H.sort(c===tg?function(fe,ce){return k[ce]-k[fe]}:function(fe,ce){return c(O[fe],O[ce])}),H.forEach(function(fe){K[fe]={data:O[fe],value:re=k[fe],startAngle:B,endAngle:B+=re*se+G,padAngle:W}}),K}return x.value=function(O){return arguments.length?(l=O,x):l},x.sort=function(O){return arguments.length?(c=O,x):c},x.startAngle=function(O){return arguments.length?(p=O,x):p},x.endAngle=function(O){return arguments.length?(m=O,x):m},x.padAngle=function(O){return arguments.length?(y=O,x):y},x};var tg={};t.layout.stack=function(){var l=je,c=sd,p=fd,m=nb,y=tb,x=rb;function O(T,k){if(!(se=T.length))return T;var B=T.map(function(fe,ce){return l.call(O,fe,ce)}),$=B.map(function(fe){return fe.map(function(ce,ie){return[y.call(O,ce,ie),x.call(O,ce,ie)]})}),W=c.call(O,$,k);B=t.permute(B,W),$=t.permute($,W);var G=p.call(O,$,k),oe=B[0].length,se,H,K,re;for(K=0;K<oe;++K)for(m.call(O,B[0][K],re=G[K],$[0][K][1]),H=1;H<se;++H)m.call(O,B[H][K],re+=$[H-1][K][1],$[H][K][1]);return T}return O.values=function(T){return arguments.length?(l=T,O):l},O.order=function(T){return arguments.length?(c=typeof T=="function"?T:ld.get(T)||sd,O):c},O.offset=function(T){return arguments.length?(p=typeof T=="function"?T:js.get(T)||fd,O):p},O.x=function(T){return arguments.length?(y=T,O):y},O.y=function(T){return arguments.length?(x=T,O):x},O.out=function(T){return arguments.length?(m=T,O):m},O};function tb(l){return l.x}function rb(l){return l.y}function nb(l,c,p){l.y0=c,l.y=p}var ld=t.map({"inside-out":function(l){var c=l.length,p,m,y=l.map(rg),x=l.map(Ws),O=t.range(c).sort(function(W,G){return y[W]-y[G]}),T=0,k=0,B=[],$=[];for(p=0;p<c;++p)m=O[p],T<k?(T+=x[m],B.push(m)):(k+=x[m],$.push(m));return $.reverse().concat(B)},reverse:function(l){return t.range(l.length).reverse()},default:sd}),js=t.map({silhouette:function(l){var c=l.length,p=l[0].length,m=[],y=0,x,O,T,k=[];for(O=0;O<p;++O){for(x=0,T=0;x<c;x++)T+=l[x][O][1];T>y&&(y=T),m.push(T)}for(O=0;O<p;++O)k[O]=(y-m[O])/2;return k},wiggle:function(l){var c=l.length,p=l[0],m=p.length,y,x,O,T,k,B,$,W,G,oe=[];for(oe[0]=W=G=0,x=1;x<m;++x){for(y=0,T=0;y<c;++y)T+=l[y][x][1];for(y=0,k=0,$=p[x][0]-p[x-1][0];y<c;++y){for(O=0,B=(l[y][x][1]-l[y][x-1][1])/(2*$);O<y;++O)B+=(l[O][x][1]-l[O][x-1][1])/$;k+=B*l[y][x][1]}oe[x]=W-=T?k/T*$:0,W<G&&(G=W)}for(x=0;x<m;++x)oe[x]-=G;return oe},expand:function(l){var c=l.length,p=l[0].length,m=1/c,y,x,O,T=[];for(x=0;x<p;++x){for(y=0,O=0;y<c;y++)O+=l[y][x][1];if(O)for(y=0;y<c;y++)l[y][x][1]/=O;else for(y=0;y<c;y++)l[y][x][1]=m}for(x=0;x<p;++x)T[x]=0;return T},zero:fd});function sd(l){return t.range(l.length)}function fd(l){for(var c=-1,p=l[0].length,m=[];++c<p;)m[c]=0;return m}function rg(l){for(var c=1,p=0,m=l[0][1],y,x=l.length;c<x;++c)(y=l[c][1])>m&&(p=c,m=y);return p}function Ws(l){return l.reduce(cd,0)}function cd(l,c){return l+c[1]}t.layout.histogram=function(){var l=!0,c=Number,p=ab,m=ib;function y(x,G){for(var T=[],k=x.map(c,this),B=p.call(this,k,G),$=m.call(this,B,k,G),W,G=-1,oe=k.length,se=$.length-1,H=l?1:1/oe,K;++G<se;)W=T[G]=[],W.dx=$[G+1]-(W.x=$[G]),W.y=0;if(se>0)for(G=-1;++G<oe;)K=k[G],K>=B[0]&&K<=B[1]&&(W=T[t.bisect($,K,1,se)-1],W.y+=H,W.push(x[G]));return T}return y.value=function(x){return arguments.length?(c=x,y):c},y.range=function(x){return arguments.length?(p=Er(x),y):p},y.bins=function(x){return arguments.length?(m=typeof x=="number"?function(O){return dd(O,x)}:Er(x),y):m},y.frequency=function(x){return arguments.length?(l=!!x,y):l},y};function ib(l,c){return dd(l,Math.ceil(Math.log(c.length)/Math.LN2+1))}function dd(l,c){for(var p=-1,m=+l[0],y=(l[1]-m)/c,x=[];++p<=c;)x[p]=y*p+m;return x}function ab(l){return[t.min(l),t.max(l)]}t.layout.pack=function(){var l=t.layout.hierarchy().sort(ob),c=0,p=[1,1],m;function y(x,O){var T=l.call(this,x,O),k=T[0],B=p[0],$=p[1],W=m==null?Math.sqrt:typeof m=="function"?m:function(){return m};if(k.x=k.y=0,bi(k,function(oe){oe.r=+W(oe.value)}),bi(k,hd),c){var G=c*(m?1:Math.max(2*k.r/B,2*k.r/$))/2;bi(k,function(oe){oe.r+=G}),bi(k,hd),bi(k,function(oe){oe.r-=G})}return ag(k,B/2,$/2,m?1:1/Math.max(2*k.r/B,2*k.r/$)),T}return y.size=function(x){return arguments.length?(p=x,y):p},y.radius=function(x){return arguments.length?(m=x==null||typeof x=="function"?x:+x,y):m},y.padding=function(x){return arguments.length?(c=+x,y):c},jo(y,l)};function ob(l,c){return l.value-c.value}function pd(l,c){var p=l._pack_next;l._pack_next=c,c._pack_prev=l,c._pack_next=p,p._pack_prev=c}function ng(l,c){l._pack_next=c,c._pack_prev=l}function ig(l,c){var p=c.x-l.x,m=c.y-l.y,y=l.r+c.r;return .999*y*y>p*p+m*m}function hd(l){if(!(c=l.children)||!(G=c.length))return;var c,p=1/0,m=-1/0,y=1/0,x=-1/0,O,T,k,B,$,W,G;function oe(ie){p=Math.min(ie.x-ie.r,p),m=Math.max(ie.x+ie.r,m),y=Math.min(ie.y-ie.r,y),x=Math.max(ie.y+ie.r,x)}if(c.forEach(ub),O=c[0],O.x=-O.r,O.y=0,oe(O),G>1&&(T=c[1],T.x=T.r,T.y=0,oe(T),G>2))for(k=c[2],og(O,T,k),oe(k),pd(O,k),O._pack_prev=k,pd(k,T),T=O._pack_next,B=3;B<G;B++){og(O,T,k=c[B]);var se=0,H=1,K=1;for($=T._pack_next;$!==T;$=$._pack_next,H++)if(ig($,k)){se=1;break}if(se==1)for(W=O._pack_prev;W!==$._pack_prev&&!ig(W,k);W=W._pack_prev,K++);se?(H<K||H==K&&T.r<O.r?ng(O,T=$):ng(O=W,T),B--):(pd(O,k),T=k,oe(k))}var re=(p+m)/2,fe=(y+x)/2,ce=0;for(B=0;B<G;B++)k=c[B],k.x-=re,k.y-=fe,ce=Math.max(ce,k.r+Math.sqrt(k.x*k.x+k.y*k.y));l.r=ce,c.forEach(lb)}function ub(l){l._pack_next=l._pack_prev=l}function lb(l){delete l._pack_next,delete l._pack_prev}function ag(l,c,p,m){var y=l.children;if(l.x=c+=m*l.x,l.y=p+=m*l.y,l.r*=m,y)for(var x=-1,O=y.length;++x<O;)ag(y[x],c,p,m)}function og(l,c,p){var m=l.r+p.r,y=c.x-l.x,x=c.y-l.y;if(m&&(y||x)){var O=c.r+p.r,T=y*y+x*x;O*=O,m*=m;var k=.5+(m-O)/(2*T),B=Math.sqrt(Math.max(0,2*O*(m+T)-(m-=T)*m-O*O))/(2*T);p.x=l.x+k*y+B*x,p.y=l.y+k*x-B*y}else p.x=l.x+m,p.y=l.y}t.layout.tree=function(){var l=t.layout.hierarchy().sort(null).value(null),c=ug,p=[1,1],m=null;function y($,W){var G=l.call(this,$,W),oe=G[0],se=x(oe);if(bi(se,O),se.parent.m=-se.z,Wo(se,T),m)Wo(oe,B);else{var H=oe,K=oe,re=oe;Wo(oe,function($e){$e.x<H.x&&(H=$e),$e.x>K.x&&(K=$e),$e.depth>re.depth&&(re=$e)});var fe=c(H,K)/2-H.x,ce=p[0]/(K.x+c(K,H)/2+fe),ie=p[1]/(re.depth||1);Wo(oe,function($e){$e.x=($e.x+fe)*ce,$e.y=$e.depth*ie})}return G}function x($){for(var W={A:null,children:[$]},G=[W],oe;(oe=G.pop())!=null;)for(var se=oe.children,H,K=0,re=se.length;K<re;++K)G.push((se[K]=H={_:se[K],parent:oe,children:(H=se[K].children)&&H.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:K}).a=H);return W.children[0]}function O($){var W=$.children,G=$.parent.children,oe=$.i?G[$.i-1]:null;if(W.length){fb($);var se=(W[0].z+W[W.length-1].z)/2;oe?($.z=oe.z+c($._,oe._),$.m=$.z-se):$.z=se}else oe&&($.z=oe.z+c($._,oe._));$.parent.A=k($,oe,$.parent.A||G[0])}function T($){$._.x=$.z+$.parent.m,$.m+=$.parent.m}function k($,W,G){if(W){for(var oe=$,se=$,H=W,K=oe.parent.children[0],re=oe.m,fe=se.m,ce=H.m,ie=K.m,$e;H=gd(H),oe=vd(oe),H&&oe;)K=vd(K),se=gd(se),se.a=$,$e=H.z+ce-oe.z-re+c(H._,oe._),$e>0&&(sb(Pi(H,$,G),$,$e),re+=$e,fe+=$e),ce+=H.m,re+=oe.m,ie+=K.m,fe+=se.m;H&&!gd(se)&&(se.t=H,se.m+=ce-fe),oe&&!vd(K)&&(K.t=oe,K.m+=re-ie,G=$)}return G}function B($){$.x*=p[0],$.y=$.depth*p[1]}return y.separation=function($){return arguments.length?(c=$,y):c},y.size=function($){return arguments.length?(m=(p=$)==null?B:null,y):m?null:p},y.nodeSize=function($){return arguments.length?(m=(p=$)==null?null:B,y):m?p:null},jo(y,l)};function ug(l,c){return l.parent==c.parent?1:2}function vd(l){var c=l.children;return c.length?c[0]:l.t}function gd(l){var c=l.children,p;return(p=c.length)?c[p-1]:l.t}function sb(l,c,p){var m=p/(c.i-l.i);c.c-=m,c.s+=p,l.c+=m,c.z+=p,c.m+=p}function fb(l){for(var c=0,p=0,m=l.children,y=m.length,x;--y>=0;)x=m[y],x.z+=c,x.m+=c,c+=x.s+(p+=x.c)}function Pi(l,c,p){return l.a.parent===c.parent?l.a:p}t.layout.cluster=function(){var l=t.layout.hierarchy().sort(null).value(null),c=ug,p=[1,1],m=!1;function y(x,O){var T=l.call(this,x,O),k=T[0],B,$=0;bi(k,function(H){var K=H.children;K&&K.length?(H.x=cb(K),H.y=lg(K)):(H.x=B?$+=c(H,B):0,H.y=0,B=H)});var W=sg(k),G=fg(k),oe=W.x-c(W,G)/2,se=G.x+c(G,W)/2;return bi(k,m?function(H){H.x=(H.x-k.x)*p[0],H.y=(k.y-H.y)*p[1]}:function(H){H.x=(H.x-oe)/(se-oe)*p[0],H.y=(1-(k.y?H.y/k.y:1))*p[1]}),T}return y.separation=function(x){return arguments.length?(c=x,y):c},y.size=function(x){return arguments.length?(m=(p=x)==null,y):m?null:p},y.nodeSize=function(x){return arguments.length?(m=(p=x)!=null,y):m?p:null},jo(y,l)};function lg(l){return 1+t.max(l,function(c){return c.y})}function cb(l){return l.reduce(function(c,p){return c+p.x},0)/l.length}function sg(l){var c=l.children;return c&&c.length?sg(c[0]):l}function fg(l){var c=l.children,p;return c&&(p=c.length)?fg(c[p-1]):l}t.layout.treemap=function(){var l=t.layout.hierarchy(),c=Math.round,p=[1,1],m=null,y=md,x=!1,O,T="squarify",k=.5*(1+Math.sqrt(5));function B(H,K){for(var re=-1,fe=H.length,ce,ie;++re<fe;)ie=(ce=H[re]).value*(K<0?0:K),ce.area=isNaN(ie)||ie<=0?0:ie}function $(H){var K=H.children;if(K&&K.length){var re=y(H),fe=[],ce=K.slice(),ie,$e=1/0,Ye,ut=T==="slice"?re.dx:T==="dice"?re.dy:T==="slice-dice"?H.depth&1?re.dy:re.dx:Math.min(re.dx,re.dy),Xe;for(B(ce,re.dx*re.dy/H.value),fe.area=0;(Xe=ce.length)>0;)fe.push(ie=ce[Xe-1]),fe.area+=ie.area,T!=="squarify"||(Ye=G(fe,ut))<=$e?(ce.pop(),$e=Ye):(fe.area-=fe.pop().area,oe(fe,ut,re,!1),ut=Math.min(re.dx,re.dy),fe.length=fe.area=0,$e=1/0);fe.length&&(oe(fe,ut,re,!0),fe.length=fe.area=0),K.forEach($)}}function W(H){var K=H.children;if(K&&K.length){var re=y(H),fe=K.slice(),ce,ie=[];for(B(fe,re.dx*re.dy/H.value),ie.area=0;ce=fe.pop();)ie.push(ce),ie.area+=ce.area,ce.z!=null&&(oe(ie,ce.z?re.dx:re.dy,re,!fe.length),ie.length=ie.area=0);K.forEach(W)}}function G(H,K){for(var re=H.area,fe,ce=0,ie=1/0,$e=-1,Ye=H.length;++$e<Ye;)!(fe=H[$e].area)||(fe<ie&&(ie=fe),fe>ce&&(ce=fe));return re*=re,K*=K,re?Math.max(K*ce*k/re,re/(K*ie*k)):1/0}function oe(H,K,re,fe){var ce=-1,ie=H.length,$e=re.x,Ye=re.y,ut=K?c(H.area/K):0,Xe;if(K==re.dx){for((fe||ut>re.dy)&&(ut=re.dy);++ce<ie;)Xe=H[ce],Xe.x=$e,Xe.y=Ye,Xe.dy=ut,$e+=Xe.dx=Math.min(re.x+re.dx-$e,ut?c(Xe.area/ut):0);Xe.z=!0,Xe.dx+=re.x+re.dx-$e,re.y+=ut,re.dy-=ut}else{for((fe||ut>re.dx)&&(ut=re.dx);++ce<ie;)Xe=H[ce],Xe.x=$e,Xe.y=Ye,Xe.dx=ut,Ye+=Xe.dy=Math.min(re.y+re.dy-Ye,ut?c(Xe.area/ut):0);Xe.z=!1,Xe.dy+=re.y+re.dy-Ye,re.x+=ut,re.dx-=ut}}function se(H){var K=O||l(H),re=K[0];return re.x=re.y=0,re.value?(re.dx=p[0],re.dy=p[1]):re.dx=re.dy=0,O&&l.revalue(re),B([re],re.dx*re.dy/re.value),(O?W:$)(re),x&&(O=K),K}return se.size=function(H){return arguments.length?(p=H,se):p},se.padding=function(H){if(!arguments.length)return m;function K(ce){var ie=H.call(se,ce,ce.depth);return ie==null?md(ce):cg(ce,typeof ie=="number"?[ie,ie,ie,ie]:ie)}function re(ce){return cg(ce,H)}var fe;return y=(m=H)==null?md:(fe=typeof H)=="function"?K:(fe==="number"&&(H=[H,H,H,H]),re),se},se.round=function(H){return arguments.length?(c=H?Math.round:Number,se):c!=Number},se.sticky=function(H){return arguments.length?(x=H,O=null,se):x},se.ratio=function(H){return arguments.length?(k=H,se):k},se.mode=function(H){return arguments.length?(T=H+"",se):T},jo(se,l)};function md(l){return{x:l.x,y:l.y,dx:l.dx,dy:l.dy}}function cg(l,c){var p=l.x+c[3],m=l.y+c[0],y=l.dx-c[1]-c[3],x=l.dy-c[0]-c[2];return y<0&&(p+=y/2,y=0),x<0&&(m+=x/2,x=0),{x:p,y:m,dx:y,dy:x}}t.random={normal:function(l,c){var p=arguments.length;return p<2&&(c=1),p<1&&(l=0),function(){var m,y,x;do m=Math.random()*2-1,y=Math.random()*2-1,x=m*m+y*y;while(!x||x>1);return l+c*m*Math.sqrt(-2*Math.log(x)/x)}},logNormal:function(){var l=t.random.normal.apply(t,arguments);return function(){return Math.exp(l())}},bates:function(l){var c=t.random.irwinHall(l);return function(){return c()/l}},irwinHall:function(l){return function(){for(var c=0,p=0;p<l;p++)c+=Math.random();return c}}},t.scale={};function Gs(l){var c=l[0],p=l[l.length-1];return c<p?[c,p]:[p,c]}function qs(l){return l.rangeExtent?l.rangeExtent():Gs(l.range())}function db(l,c,p,m){var y=p(l[0],l[1]),x=m(c[0],c[1]);return function(O){return x(y(O))}}function Xr(l,c){var p=0,m=l.length-1,y=l[p],x=l[m],O;return x<y&&(O=p,p=m,m=O,O=y,y=x,x=O),l[p]=c.floor(y),l[m]=c.ceil(x),l}function ro(l){return l?{floor:function(c){return Math.floor(c/l)*l},ceil:function(c){return Math.ceil(c/l)*l}}:Go}var Go={floor:je,ceil:je};function pb(l,c,p,m){var y=[],x=[],O=0,T=Math.min(l.length,c.length)-1;for(l[T]<l[0]&&(l=l.slice().reverse(),c=c.slice().reverse());++O<=T;)y.push(p(l[O-1],l[O])),x.push(m(c[O-1],c[O]));return function(k){var B=t.bisect(l,k,1,T)-1;return x[B](y[B](k))}}t.scale.linear=function(){return no([0,1],[0,1],Ii,!1)};function no(l,c,p,m){var y,x;function O(){var k=Math.min(l.length,c.length)>2?pb:db,B=m?Hv:qv;return y=k(l,c,B,p),x=k(c,l,B,Ii),T}function T(k){return y(k)}return T.invert=function(k){return x(k)},T.domain=function(k){return arguments.length?(l=k.map(Number),O()):l},T.range=function(k){return arguments.length?(c=k,O()):c},T.rangeRound=function(k){return T.range(k).interpolate(zs)},T.clamp=function(k){return arguments.length?(m=k,O()):m},T.interpolate=function(k){return arguments.length?(p=k,O()):p},T.ticks=function(k){return sl(l,k)},T.tickFormat=function(k,B){return d3_scale_linearTickFormat(l,k,B)},T.nice=function(k){return io(l,k),O()},T.copy=function(){return no(l,c,p,m)},O()}function yd(l,c){return t.rebind(l,c,"range","rangeRound","interpolate","clamp")}function io(l,c){return Xr(l,ro(ll(l,c)[2])),Xr(l,ro(ll(l,c)[2])),l}function ll(l,c){c==null&&(c=10);var p=Gs(l),m=p[1]-p[0],y=Math.pow(10,Math.floor(Math.log(m/c)/Math.LN10)),x=c/m*y;return x<=.15?y*=10:x<=.35?y*=5:x<=.75&&(y*=2),p[0]=Math.ceil(p[0]/y)*y,p[1]=Math.floor(p[1]/y)*y+y*.5,p[2]=y,p}function sl(l,c){return t.range.apply(t,ll(l,c))}t.scale.log=function(){return Hs(t.scale.linear().domain([0,1]),10,!0,[1,10])};function Hs(l,c,p,m){function y(T){return(p?Math.log(T<0?0:T):-Math.log(T>0?0:-T))/Math.log(c)}function x(T){return p?Math.pow(c,T):-Math.pow(c,-T)}function O(T){return l(y(T))}return O.invert=function(T){return x(l.invert(T))},O.domain=function(T){return arguments.length?(p=T[0]>=0,l.domain((m=T.map(Number)).map(y)),O):m},O.base=function(T){return arguments.length?(c=+T,l.domain(m.map(y)),O):c},O.nice=function(){var T=Xr(m.map(y),p?Math:bd);return l.domain(T),m=T.map(x),O},O.ticks=function(){var T=Gs(m),k=[],B=T[0],$=T[1],W=Math.floor(y(B)),G=Math.ceil(y($)),oe=c%1?2:c;if(isFinite(G-W)){if(p){for(;W<G;W++)for(var se=1;se<oe;se++)k.push(x(W)*se);k.push(x(W))}else for(k.push(x(W));W++<G;)for(var se=oe-1;se>0;se--)k.push(x(W)*se);for(W=0;k[W]<B;W++);for(G=k.length;k[G-1]>$;G--);k=k.slice(W,G)}return k},O.copy=function(){return Hs(l.copy(),c,p,m)},yd(O,l)}var bd={floor:function(l){return-Math.ceil(-l)},ceil:function(l){return-Math.floor(-l)}};t.scale.pow=function(){return Vs(t.scale.linear(),1,[0,1])};function Vs(l,c,p){var m=ao(c),y=ao(1/c);function x(O){return l(m(O))}return x.invert=function(O){return y(l.invert(O))},x.domain=function(O){return arguments.length?(l.domain((p=O.map(Number)).map(m)),x):p},x.ticks=function(O){return sl(p,O)},x.tickFormat=function(O,T){return d3_scale_linearTickFormat(p,O,T)},x.nice=function(O){return x.domain(io(p,O))},x.exponent=function(O){return arguments.length?(m=ao(c=O),y=ao(1/c),l.domain(p.map(m)),x):c},x.copy=function(){return Vs(l.copy(),c,p)},yd(x,l)}function ao(l){return function(c){return c<0?-Math.pow(-c,l):Math.pow(c,l)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return wd([],{t:"range",a:[[]]})};function wd(l,c){var p,m,y;function x(T){return m[((p.get(T)||(c.t==="range"?p.set(T,l.push(T)):NaN))-1)%m.length]}function O(T,k){return t.range(l.length).map(function(B){return T+k*B})}return x.domain=function(T){if(!arguments.length)return l;l=[],p=new M;for(var k=-1,B=T.length,$;++k<B;)p.has($=T[k])||p.set($,l.push($));return x[c.t].apply(x,c.a)},x.range=function(T){return arguments.length?(m=T,y=0,c={t:"range",a:arguments},x):m},x.rangePoints=function(T,k){arguments.length<2&&(k=0);var B=T[0],$=T[1],W=l.length<2?(B=(B+$)/2,0):($-B)/(l.length-1+k);return m=O(B+W*k/2,W),y=0,c={t:"rangePoints",a:arguments},x},x.rangeRoundPoints=function(T,k){arguments.length<2&&(k=0);var B=T[0],$=T[1],W=l.length<2?(B=$=Math.round((B+$)/2),0):($-B)/(l.length-1+k)|0;return m=O(B+Math.round(W*k/2+($-B-(l.length-1+k)*W)/2),W),y=0,c={t:"rangeRoundPoints",a:arguments},x},x.rangeBands=function(T,k,B){arguments.length<2&&(k=0),arguments.length<3&&(B=k);var $=T[1]<T[0],W=T[$-0],G=T[1-$],oe=(G-W)/(l.length-k+2*B);return m=O(W+oe*B,oe),$&&m.reverse(),y=oe*(1-k),c={t:"rangeBands",a:arguments},x},x.rangeRoundBands=function(T,k,B){arguments.length<2&&(k=0),arguments.length<3&&(B=k);var $=T[1]<T[0],W=T[$-0],G=T[1-$],oe=Math.floor((G-W)/(l.length-k+2*B));return m=O(W+Math.round((G-W-(l.length-k)*oe)/2),oe),$&&m.reverse(),y=Math.round(oe*(1-k)),c={t:"rangeRoundBands",a:arguments},x},x.rangeBand=function(){return y},x.rangeExtent=function(){return Gs(c.a[0])},x.copy=function(){return wd(l,c)},x.domain(l)}t.scale.category10=function(){return t.scale.ordinal().range(dg)},t.scale.category20=function(){return t.scale.ordinal().range(pg)},t.scale.category20b=function(){return t.scale.ordinal().range(hg)},t.scale.category20c=function(){return t.scale.ordinal().range(vg)};var dg=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Ts),pg=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Ts),hg=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Ts),vg=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Ts);t.scale.quantile=function(){return Ys([],[])};function Ys(l,c){var p;function m(){var x=0,O=c.length;for(p=[];++x<O;)p[x-1]=t.quantile(l,x/O);return y}function y(x){if(!isNaN(x=+x))return c[t.bisect(p,x)]}return y.domain=function(x){return arguments.length?(l=x.map(g).filter(_).sort(h),m()):l},y.range=function(x){return arguments.length?(c=x,m()):c},y.quantiles=function(){return p},y.invertExtent=function(x){return x=c.indexOf(x),x<0?[NaN,NaN]:[x>0?p[x-1]:l[0],x<p.length?p[x]:l[l.length-1]]},y.copy=function(){return Ys(l,c)},m()}t.scale.quantize=function(){return Xs(0,1,[0,1])};function Xs(l,c,p){var m,y;function x(T){return p[Math.max(0,Math.min(y,Math.floor(m*(T-l))))]}function O(){return m=p.length/(c-l),y=p.length-1,x}return x.domain=function(T){return arguments.length?(l=+T[0],c=+T[T.length-1],O()):[l,c]},x.range=function(T){return arguments.length?(p=T,O()):p},x.invertExtent=function(T){return T=p.indexOf(T),T=T<0?NaN:T/m+l,[T,T+1/m]},x.copy=function(){return Xs(l,c,p)},O()}t.scale.threshold=function(){return xd([.5],[0,1])};function xd(l,c){function p(m){if(m<=m)return c[t.bisect(l,m)]}return p.domain=function(m){return arguments.length?(l=m,p):l},p.range=function(m){return arguments.length?(c=m,p):c},p.invertExtent=function(m){return m=c.indexOf(m),[l[m-1],l[m]]},p.copy=function(){return xd(l,c)},p}t.scale.identity=function(){return _d([0,1])};function _d(l){function c(p){return+p}return c.invert=c,c.domain=c.range=function(p){return arguments.length?(l=p.map(c),c):l},c.ticks=function(p){return sl(l,p)},c.tickFormat=function(p,m){return d3_scale_linearTickFormat(l,p,m)},c.copy=function(){return _d(l)},c}t.svg={};function gg(){return 0}t.svg.arc=function(){var l=Sd,c=mg,p=gg,m=fl,y=Ed,x=Ks,O=Ad;function T(){var B=Math.max(0,+l.apply(this,arguments)),$=Math.max(0,+c.apply(this,arguments)),W=y.apply(this,arguments)-Oi,G=x.apply(this,arguments)-Oi,oe=Math.abs(G-W),se=W>G?0:1;if($<B&&(H=$,$=B,B=H),oe>=hv)return k($,se)+(B?k(B,1-se):"")+"Z";var H,K,re,fe,ce=0,ie=0,$e,Ye,ut,Xe,ct,wt,Yt,Et,Vt=[];if((fe=(+O.apply(this,arguments)||0)/2)&&(re=m===fl?Math.sqrt(B*B+$*$):+m.apply(this,arguments),se||(ie*=-1),$&&(ie=gv(re/$*Math.sin(fe))),B&&(ce=gv(re/B*Math.sin(fe)))),$){$e=$*Math.cos(W+ie),Ye=$*Math.sin(W+ie),ut=$*Math.cos(G-ie),Xe=$*Math.sin(G-ie);var cr=Math.abs(G-W-2*ie)<=Xi?0:1;if(ie&&cl($e,Ye,ut,Xe)===se^cr){var Lr=(W+G)/2;$e=$*Math.cos(Lr),Ye=$*Math.sin(Lr),ut=Xe=null}}else $e=Ye=0;if(B){ct=B*Math.cos(G-ce),wt=B*Math.sin(G-ce),Yt=B*Math.cos(W+ce),Et=B*Math.sin(W+ce);var br=Math.abs(W-G+2*ce)<=Xi?0:1;if(ce&&cl(ct,wt,Yt,Et)===1-se^br){var lt=(W+G)/2;ct=B*Math.cos(lt),wt=B*Math.sin(lt),Yt=Et=null}}else ct=wt=0;if(oe>fr&&(H=Math.min(Math.abs($-B)/2,+p.apply(this,arguments)))>.001){K=B<$^se?0:1;var Xt=H,Jt=H;if(oe<Xi){var dr=Yt==null?[ct,wt]:ut==null?[$e,Ye]:Wc([$e,Ye],[Yt,Et],[ut,Xe],[ct,wt]),kr=$e-dr[0],qr=Ye-dr[1],Zr=ut-dr[0],bn=Xe-dr[1],Rn=1/Math.sin(Math.acos((kr*Zr+qr*bn)/(Math.sqrt(kr*kr+qr*qr)*Math.sqrt(Zr*Zr+bn*bn)))/2),cn=Math.sqrt(dr[0]*dr[0]+dr[1]*dr[1]);Jt=Math.min(H,(B-cn)/(Rn-1)),Xt=Math.min(H,($-cn)/(Rn+1))}if(ut!=null){var $n=qo(Yt==null?[ct,wt]:[Yt,Et],[$e,Ye],$,Xt,se),F=qo([ut,Xe],[ct,wt],$,Xt,se);H===Xt?Vt.push("M",$n[0],"A",Xt,",",Xt," 0 0,",K," ",$n[1],"A",$,",",$," 0 ",1-se^cl($n[1][0],$n[1][1],F[1][0],F[1][1]),",",se," ",F[1],"A",Xt,",",Xt," 0 0,",K," ",F[0]):Vt.push("M",$n[0],"A",Xt,",",Xt," 0 1,",K," ",F[0])}else Vt.push("M",$e,",",Ye);if(Yt!=null){var V=qo([$e,Ye],[Yt,Et],B,-Jt,se),J=qo([ct,wt],ut==null?[$e,Ye]:[ut,Xe],B,-Jt,se);H===Jt?Vt.push("L",J[0],"A",Jt,",",Jt," 0 0,",K," ",J[1],"A",B,",",B," 0 ",se^cl(J[1][0],J[1][1],V[1][0],V[1][1]),",",1-se," ",V[1],"A",Jt,",",Jt," 0 0,",K," ",V[0]):Vt.push("L",J[0],"A",Jt,",",Jt," 0 0,",K," ",V[0])}else Vt.push("L",ct,",",wt)}else Vt.push("M",$e,",",Ye),ut!=null&&Vt.push("A",$,",",$," 0 ",cr,",",se," ",ut,",",Xe),Vt.push("L",ct,",",wt),Yt!=null&&Vt.push("A",B,",",B," 0 ",br,",",1-se," ",Yt,",",Et);return Vt.push("Z"),Vt.join("")}function k(B,$){return"M0,"+B+"A"+B+","+B+" 0 1,"+$+" 0,"+-B+"A"+B+","+B+" 0 1,"+$+" 0,"+B}return T.innerRadius=function(B){return arguments.length?(l=Er(B),T):l},T.outerRadius=function(B){return arguments.length?(c=Er(B),T):c},T.cornerRadius=function(B){return arguments.length?(p=Er(B),T):p},T.padRadius=function(B){return arguments.length?(m=B==fl?fl:Er(B),T):m},T.startAngle=function(B){return arguments.length?(y=Er(B),T):y},T.endAngle=function(B){return arguments.length?(x=Er(B),T):x},T.padAngle=function(B){return arguments.length?(O=Er(B),T):O},T.centroid=function(){var B=(+l.apply(this,arguments)+ +c.apply(this,arguments))/2,$=(+y.apply(this,arguments)+ +x.apply(this,arguments))/2-Oi;return[Math.cos($)*B,Math.sin($)*B]},T};var fl="auto";function Sd(l){return l.innerRadius}function mg(l){return l.outerRadius}function Ed(l){return l.startAngle}function Ks(l){return l.endAngle}function Ad(l){return l&&l.padAngle}function cl(l,c,p,m){return(l-p)*c-(c-m)*l>0?0:1}function qo(l,c,p,m,y){var x=l[0]-c[0],O=l[1]-c[1],T=(y?m:-m)/Math.sqrt(x*x+O*O),k=T*O,B=-T*x,$=l[0]+k,W=l[1]+B,G=c[0]+k,oe=c[1]+B,se=($+G)/2,H=(W+oe)/2,K=G-$,re=oe-W,fe=K*K+re*re,ce=p-m,ie=$*oe-G*W,$e=(re<0?-1:1)*Math.sqrt(Math.max(0,ce*ce*fe-ie*ie)),Ye=(ie*re-K*$e)/fe,ut=(-ie*K-re*$e)/fe,Xe=(ie*re+K*$e)/fe,ct=(-ie*K+re*$e)/fe,wt=Ye-se,Yt=ut-H,Et=Xe-se,Vt=ct-H;return wt*wt+Yt*Yt>Et*Et+Vt*Vt&&(Ye=Xe,ut=ct),[[Ye-k,ut-B],[Ye*p/ce,ut*p/ce]]}function Cd(){return!0}function Td(l){var c=Ki,p=Qi,m=Cd,y=ri,x=y.key,O=.7;function T(k){var B=[],$=[],W=-1,G=k.length,oe,se=Er(c),H=Er(p);function K(){B.push("M",y(l($),O))}for(;++W<G;)m.call(this,oe=k[W],W)?$.push([+se.call(this,oe,W),+H.call(this,oe,W)]):$.length&&(K(),$=[]);return $.length&&K(),B.length?B.join(""):null}return T.x=function(k){return arguments.length?(c=k,T):c},T.y=function(k){return arguments.length?(p=k,T):p},T.defined=function(k){return arguments.length?(m=k,T):m},T.interpolate=function(k){return arguments.length?(typeof k=="function"?x=y=k:x=(y=dl.get(k)||ri).key,T):x},T.tension=function(k){return arguments.length?(O=k,T):O},T}t.svg.line=function(){return Td(je)};var dl=t.map({linear:ri,"linear-closed":Rd,step:Od,"step-before":pl,"step-after":oo,basis:hl,"basis-open":Zs,"basis-closed":Ho,bundle:Vo,cardinal:ta,"cardinal-open":yg,"cardinal-closed":Qs,monotone:hb});dl.forEach(function(l,c){c.key=l,c.closed=/-closed$/.test(l)});function ri(l){return l.length>1?l.join("L"):l+"Z"}function Rd(l){return l.join("L")+"Z"}function Od(l){for(var c=0,p=l.length,m=l[0],y=[m[0],",",m[1]];++c<p;)y.push("H",(m[0]+(m=l[c])[0])/2,"V",m[1]);return p>1&&y.push("H",m[0]),y.join("")}function pl(l){for(var c=0,p=l.length,m=l[0],y=[m[0],",",m[1]];++c<p;)y.push("V",(m=l[c])[1],"H",m[0]);return y.join("")}function oo(l){for(var c=0,p=l.length,m=l[0],y=[m[0],",",m[1]];++c<p;)y.push("H",(m=l[c])[0],"V",m[1]);return y.join("")}function yg(l,c){return l.length<4?ri(l):l[1]+uo(l.slice(1,-1),Ea(l,c))}function Qs(l,c){return l.length<3?Rd(l):l[0]+uo((l.push(l[0]),l),Ea([l[l.length-2]].concat(l,[l[1]]),c))}function ta(l,c){return l.length<3?ri(l):l[0]+uo(l,Ea(l,c))}function uo(l,c){if(c.length<1||l.length!=c.length&&l.length!=c.length+2)return ri(l);var p=l.length!=c.length,m="",y=l[0],x=l[1],O=c[0],T=O,k=1;if(p&&(m+="Q"+(x[0]-O[0]*2/3)+","+(x[1]-O[1]*2/3)+","+x[0]+","+x[1],y=l[1],k=2),c.length>1){T=c[1],x=l[k],k++,m+="C"+(y[0]+O[0])+","+(y[1]+O[1])+","+(x[0]-T[0])+","+(x[1]-T[1])+","+x[0]+","+x[1];for(var B=2;B<c.length;B++,k++)x=l[k],T=c[B],m+="S"+(x[0]-T[0])+","+(x[1]-T[1])+","+x[0]+","+x[1]}if(p){var $=l[k];m+="Q"+(x[0]+T[0]*2/3)+","+(x[1]+T[1]*2/3)+","+$[0]+","+$[1]}return m}function Ea(l,c){for(var p=[],m=(1-c)/2,y,x=l[0],O=l[1],T=1,k=l.length;++T<k;)y=x,x=O,O=l[T],p.push([m*(O[0]-y[0]),m*(O[1]-y[1])]);return p}function hl(l){if(l.length<3)return ri(l);var c=1,p=l.length,m=l[0],y=m[0],x=m[1],O=[y,y,y,(m=l[1])[0]],T=[x,x,x,m[1]],k=[y,",",x,"L",fn(wi,O),",",fn(wi,T)];for(l.push(l[p-1]);++c<=p;)m=l[c],O.shift(),O.push(m[0]),T.shift(),T.push(m[1]),vl(k,O,T);return l.pop(),k.push("L",m),k.join("")}function Zs(l){if(l.length<4)return ri(l);for(var c=[],p=-1,m=l.length,y,x=[0],O=[0];++p<3;)y=l[p],x.push(y[0]),O.push(y[1]);for(c.push(fn(wi,x)+","+fn(wi,O)),--p;++p<m;)y=l[p],x.shift(),x.push(y[0]),O.shift(),O.push(y[1]),vl(c,x,O);return c.join("")}function Ho(l){for(var c,p=-1,m=l.length,y=m+4,x,O=[],T=[];++p<4;)x=l[p%m],O.push(x[0]),T.push(x[1]);for(c=[fn(wi,O),",",fn(wi,T)],--p;++p<y;)x=l[p%m],O.shift(),O.push(x[0]),T.shift(),T.push(x[1]),vl(c,O,T);return c.join("")}function Vo(l,c){var p=l.length-1;if(p)for(var m=l[0][0],y=l[0][1],x=l[p][0]-m,O=l[p][1]-y,T=-1,k,B;++T<=p;)k=l[T],B=T/p,k[0]=c*k[0]+(1-c)*(m+B*x),k[1]=c*k[1]+(1-c)*(y+B*O);return hl(l)}function fn(l,c){return l[0]*c[0]+l[1]*c[1]+l[2]*c[2]+l[3]*c[3]}var Js=[0,2/3,1/3,0],ef=[0,1/3,2/3,0],wi=[0,1/6,2/3,1/6];function vl(l,c,p){l.push("C",fn(Js,c),",",fn(Js,p),",",fn(ef,c),",",fn(ef,p),",",fn(wi,c),",",fn(wi,p))}function gl(l,c){return(c[1]-l[1])/(c[0]-l[0])}function Yo(l){for(var c=0,p=l.length-1,m=[],y=l[0],x=l[1],O=m[0]=gl(y,x);++c<p;)m[c]=(O+(O=gl(y=x,x=l[c+1])))/2;return m[c]=O,m}function Xo(l){for(var c=[],p,m,y,x,O=Yo(l),T=-1,k=l.length-1;++T<k;)p=gl(l[T],l[T+1]),S(p)<fr?O[T]=O[T+1]=0:(m=O[T]/p,y=O[T+1]/p,x=m*m+y*y,x>9&&(x=p*3/Math.sqrt(x),O[T]=x*m,O[T+1]=x*y));for(T=-1;++T<=k;)x=(l[Math.min(k,T+1)][0]-l[Math.max(0,T-1)][0])/(6*(1+O[T]*O[T])),c.push([x||0,O[T]*x||0]);return c}function hb(l){return l.length<3?ri(l):l[0]+uo(l,Xo(l))}t.svg.line.radial=function(){var l=Td(bg);return l.radius=l.x,delete l.x,l.angle=l.y,delete l.y,l};function bg(l){for(var c,p=-1,m=l.length,y,x;++p<m;)c=l[p],y=c[0],x=c[1]-Oi,c[0]=y*Math.cos(x),c[1]=y*Math.sin(x);return l}function Id(l){var c=Ki,p=Ki,m=0,y=Qi,x=Cd,O=ri,T=O.key,k=O,B="L",$=.7;function W(G){var oe=[],se=[],H=[],K=-1,re=G.length,fe,ce=Er(c),ie=Er(m),$e=c===p?function(){return ut}:Er(p),Ye=m===y?function(){return Xe}:Er(y),ut,Xe;function ct(){oe.push("M",O(l(H),$),B,k(l(se.reverse()),$),"Z")}for(;++K<re;)x.call(this,fe=G[K],K)?(se.push([ut=+ce.call(this,fe,K),Xe=+ie.call(this,fe,K)]),H.push([+$e.call(this,fe,K),+Ye.call(this,fe,K)])):se.length&&(ct(),se=[],H=[]);return se.length&&ct(),oe.length?oe.join(""):null}return W.x=function(G){return arguments.length?(c=p=G,W):p},W.x0=function(G){return arguments.length?(c=G,W):c},W.x1=function(G){return arguments.length?(p=G,W):p},W.y=function(G){return arguments.length?(m=y=G,W):y},W.y0=function(G){return arguments.length?(m=G,W):m},W.y1=function(G){return arguments.length?(y=G,W):y},W.defined=function(G){return arguments.length?(x=G,W):x},W.interpolate=function(G){return arguments.length?(typeof G=="function"?T=O=G:T=(O=dl.get(G)||ri).key,k=O.reverse||O,B=O.closed?"M":"L",W):T},W.tension=function(G){return arguments.length?($=G,W):$},W}pl.reverse=oo,oo.reverse=pl,t.svg.area=function(){return Id(je)},t.svg.area.radial=function(){var l=Id(bg);return l.radius=l.x,delete l.x,l.innerRadius=l.x0,delete l.x0,l.outerRadius=l.x1,delete l.x1,l.angle=l.y,delete l.y,l.startAngle=l.y0,delete l.y0,l.endAngle=l.y1,delete l.y1,l};function Pd(l){return l.source}function kd(l){return l.target}t.svg.chord=function(){var l=Pd,c=kd,p=vb,m=Ed,y=Ks;function x($,W){var G=O(this,l,$,W),oe=O(this,c,$,W);return"M"+G.p0+k(G.r,G.p1,G.a1-G.a0)+(T(G,oe)?B(G.r,G.p1,G.r,G.p0):B(G.r,G.p1,oe.r,oe.p0)+k(oe.r,oe.p1,oe.a1-oe.a0)+B(oe.r,oe.p1,G.r,G.p0))+"Z"}function O($,W,G,oe){var se=W.call($,G,oe),H=p.call($,se,oe),K=m.call($,se,oe)-Oi,re=y.call($,se,oe)-Oi;return{r:H,a0:K,a1:re,p0:[H*Math.cos(K),H*Math.sin(K)],p1:[H*Math.cos(re),H*Math.sin(re)]}}function T($,W){return $.a0==W.a0&&$.a1==W.a1}function k($,W,G){return"A"+$+","+$+" 0 "+ +(G>Xi)+",1 "+W}function B($,W,G,oe){return"Q 0,0 "+oe}return x.radius=function($){return arguments.length?(p=Er($),x):p},x.source=function($){return arguments.length?(l=Er($),x):l},x.target=function($){return arguments.length?(c=Er($),x):c},x.startAngle=function($){return arguments.length?(m=Er($),x):m},x.endAngle=function($){return arguments.length?(y=Er($),x):y},x};function vb(l){return l.radius}t.svg.diagonal=function(){var l=Pd,c=kd,p=lo;function m(y,x){var O=l.call(this,y,x),T=c.call(this,y,x),k=(O.y+T.y)/2,B=[O,{x:O.x,y:k},{x:T.x,y:k},T];return B=B.map(p),"M"+B[0]+"C"+B[1]+" "+B[2]+" "+B[3]}return m.source=function(y){return arguments.length?(l=Er(y),m):l},m.target=function(y){return arguments.length?(c=Er(y),m):c},m.projection=function(y){return arguments.length?(p=y,m):p},m};function lo(l){return[l.x,l.y]}t.svg.diagonal.radial=function(){var l=t.svg.diagonal(),c=lo,p=l.projection;return l.projection=function(m){return arguments.length?p(Md(c=m)):c},l};function Md(l){return function(){var c=l.apply(this,arguments),p=c[0],m=c[1]-Oi;return[p*Math.cos(m),p*Math.sin(m)]}}t.svg.symbol=function(){var l=mb,c=gb;function p(m,y){return(xg.get(l.call(this,m,y))||wg)(c.call(this,m,y))}return p.type=function(m){return arguments.length?(l=Er(m),p):l},p.size=function(m){return arguments.length?(c=Er(m),p):c},p};function gb(){return 64}function mb(){return"circle"}function wg(l){var c=Math.sqrt(l/Xi);return"M0,"+c+"A"+c+","+c+" 0 1,1 0,"+-c+"A"+c+","+c+" 0 1,1 0,"+c+"Z"}var xg=t.map({circle:wg,cross:function(l){var c=Math.sqrt(l/5)/2;return"M"+-3*c+","+-c+"H"+-c+"V"+-3*c+"H"+c+"V"+-c+"H"+3*c+"V"+c+"H"+c+"V"+3*c+"H"+-c+"V"+c+"H"+-3*c+"Z"},diamond:function(l){var c=Math.sqrt(l/(2*_g)),p=c*_g;return"M0,"+-c+"L"+p+",0 0,"+c+" "+-p+",0Z"},square:function(l){var c=Math.sqrt(l)/2;return"M"+-c+","+-c+"L"+c+","+-c+" "+c+","+c+" "+-c+","+c+"Z"},"triangle-down":function(l){var c=Math.sqrt(l/tf),p=c*tf/2;return"M0,"+p+"L"+c+","+-p+" "+-c+","+-p+"Z"},"triangle-up":function(l){var c=Math.sqrt(l/tf),p=c*tf/2;return"M0,"+-p+"L"+c+","+p+" "+-c+","+p+"Z"}});t.svg.symbolTypes=xg.keys();var tf=Math.sqrt(3),_g=Math.tan(30*vv);_e.transition=function(l){for(var c=ra||++nf,p=yl(l),m=[],y,x,O=Ko||{time:Date.now(),ease:zo,delay:0,duration:250},T=-1,k=this.length;++T<k;){m.push(y=[]);for(var B=this[T],$=-1,W=B.length;++$<W;)(x=B[$])&&Qo(x,$,p,c,O),y.push(x)}return ml(m,p,c)},_e.interrupt=function(l){return this.each(l==null?rf:Sg(yl(l)))};var rf=Sg(yl());function Sg(l){return function(){var c,p,m;(c=this[l])&&(m=c[p=c.active])&&(m.timer.c=null,m.timer.t=NaN,--c.count?delete c[p]:delete this[l],c.active+=.5,m.event&&m.event.interrupt.call(this,this.__data__,m.index))}}function ml(l,c,p){return Rt(l,Gr),l.namespace=c,l.id=p,l}var Gr=[],nf=0,ra,Ko;Gr.call=_e.call,Gr.empty=_e.empty,Gr.node=_e.node,Gr.size=_e.size,t.transition=function(l,c){return l&&l.transition?ra?l.transition(c):l:t.selection().transition(l)},t.transition.prototype=Gr,Gr.select=function(l){var c=this.id,p=this.namespace,m=[],y,x,O;l=j(l);for(var T=-1,k=this.length;++T<k;){m.push(y=[]);for(var B=this[T],$=-1,W=B.length;++$<W;)(O=B[$])&&(x=l.call(O,O.__data__,$,T))?("__data__"in O&&(x.__data__=O.__data__),Qo(x,$,p,c,O[p][c]),y.push(x)):y.push(null)}return ml(m,p,c)},Gr.selectAll=function(l){var c=this.id,p=this.namespace,m=[],y,x,O,T,k;l=te(l);for(var B=-1,$=this.length;++B<$;)for(var W=this[B],G=-1,oe=W.length;++G<oe;)if(O=W[G]){k=O[p][c],x=l.call(O,O.__data__,G,B),m.push(y=[]);for(var se=-1,H=x.length;++se<H;)(T=x[se])&&Qo(T,se,p,c,k),y.push(T)}return ml(m,p,c)},Gr.filter=function(l){var c=[],p,m,y;typeof l!="function"&&(l=ga(l));for(var x=0,O=this.length;x<O;x++){c.push(p=[]);for(var m=this[x],T=0,k=m.length;T<k;T++)(y=m[T])&&l.call(y,y.__data__,T,x)&&p.push(y)}return ml(c,this.namespace,this.id)},Gr.tween=function(l,c){var p=this.id,m=this.namespace;return arguments.length<2?this.node()[m][p].tween.get(l):Tn(this,c==null?function(y){y[m][p].tween.remove(l)}:function(y){y[m][p].tween.set(l,c)})};function af(l,c,p,m){var y=l.id,x=l.namespace;return Tn(l,typeof p=="function"?function(O,T,k){O[x][y].tween.set(c,m(p.call(O,O.__data__,T,k)))}:(p=m(p),function(O){O[x][y].tween.set(c,p)}))}Gr.attr=function(l,c){if(arguments.length<2){for(c in l)this.attr(c,l[c]);return this}var p=l=="transform"?ad:Ii,m=t.ns.qualify(l);function y(){this.removeAttribute(m)}function x(){this.removeAttributeNS(m.space,m.local)}function O(k){return k==null?y:(k+="",function(){var B=this.getAttribute(m),$;return B!==k&&($=p(B,k),function(W){this.setAttribute(m,$(W))})})}function T(k){return k==null?x:(k+="",function(){var B=this.getAttributeNS(m.space,m.local),$;return B!==k&&($=p(B,k),function(W){this.setAttributeNS(m.space,m.local,$(W))})})}return af(this,"attr."+l,c,m.local?T:O)},Gr.attrTween=function(l,c){var p=t.ns.qualify(l);function m(x,O){var T=c.call(this,x,O,this.getAttribute(p));return T&&function(k){this.setAttribute(p,T(k))}}function y(x,O){var T=c.call(this,x,O,this.getAttributeNS(p.space,p.local));return T&&function(k){this.setAttributeNS(p.space,p.local,T(k))}}return this.tween("attr."+l,p.local?y:m)},Gr.style=function(l,c,p){var m=arguments.length;if(m<3){if(typeof l!="string"){m<2&&(c="");for(p in l)this.style(p,l[p],c);return this}p=""}function y(){this.style.removeProperty(l)}function x(O){return O==null?y:(O+="",function(){var T=o(this).getComputedStyle(this,null).getPropertyValue(l),k;return T!==O&&(k=Ii(T,O),function(B){this.style.setProperty(l,k(B),p)})})}return af(this,"style."+l,c,x)},Gr.styleTween=function(l,c,p){arguments.length<3&&(p="");function m(y,x){var O=c.call(this,y,x,o(this).getComputedStyle(this,null).getPropertyValue(l));return O&&function(T){this.style.setProperty(l,O(T),p)}}return this.tween("style."+l,m)},Gr.text=function(l){return af(this,"text",l,Dd)};function Dd(l){return l==null&&(l=""),function(){this.textContent=l}}Gr.remove=function(){var l=this.namespace;return this.each("end.transition",function(){var c;this[l].count<2&&(c=this.parentNode)&&c.removeChild(this)})},Gr.ease=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].ease:(typeof l!="function"&&(l=t.ease.apply(t,arguments)),Tn(this,function(m){m[p][c].ease=l}))},Gr.delay=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].delay:Tn(this,typeof l=="function"?function(m,y,x){m[p][c].delay=+l.call(m,m.__data__,y,x)}:(l=+l,function(m){m[p][c].delay=l}))},Gr.duration=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].duration:Tn(this,typeof l=="function"?function(m,y,x){m[p][c].duration=Math.max(1,l.call(m,m.__data__,y,x))}:(l=Math.max(1,l),function(m){m[p][c].duration=l}))},Gr.each=function(l,c){var p=this.id,m=this.namespace;if(arguments.length<2){var y=Ko,x=ra;try{ra=p,Tn(this,function(O,T,k){Ko=O[m][p],l.call(O,O.__data__,T,k)})}finally{Ko=y,ra=x}}else Tn(this,function(O){var T=O[m][p];(T.event||(T.event=t.dispatch("start","end","interrupt"))).on(l,c)});return this},Gr.transition=function(){for(var l=this.id,c=++nf,p=this.namespace,m=[],y,x,O,T,k=0,B=this.length;k<B;k++){m.push(y=[]);for(var x=this[k],$=0,W=x.length;$<W;$++)(O=x[$])&&(T=O[p][l],Qo(O,$,p,c,{time:T.time,ease:T.ease,delay:T.delay+T.duration,duration:T.duration})),y.push(O)}return ml(m,p,c)};function yl(l){return l==null?"__transition__":"__transition_"+l+"__"}function Qo(l,c,p,m,y){var x=l[p]||(l[p]={active:0,count:0}),O=x[m],T,k,B,$,W;function G(H){var K=O.delay;if(k.t=K+T,K<=H)return oe(H-K);k.c=oe}function oe(H){var K=x.active,re=x[K];re&&(re.timer.c=null,re.timer.t=NaN,--x.count,delete x[K],re.event&&re.event.interrupt.call(l,l.__data__,re.index));for(var fe in x)if(+fe<m){var ce=x[fe];ce.timer.c=null,ce.timer.t=NaN,--x.count,delete x[fe]}k.c=se,Do(function(){return k.c&&se(H||1)&&(k.c=null,k.t=NaN),1},0,T),x.active=m,O.event&&O.event.start.call(l,l.__data__,c),W=[],O.tween.forEach(function(ie,$e){($e=$e.call(l,l.__data__,c))&&W.push($e)}),$=O.ease,B=O.duration}function se(H){for(var K=H/B,re=$(K),fe=W.length;fe>0;)W[--fe].call(l,re);if(K>=1)return O.event&&O.event.end.call(l,l.__data__,c),--x.count?delete x[m]:delete l[p],1}O||(T=y.time,k=Do(G,0,T),O=x[m]={tween:new M,time:T,timer:k,delay:y.delay,duration:y.duration,ease:y.ease,index:c},y=null,++x.count)}t.svg.axis=function(){var l=t.scale.linear(),c=Fd,p=6,m=6,y=3,x=[10],O=null,T;function k(B){B.each(function(){var $=t.select(this),W=this.__chart__||l,G=this.__chart__=l.copy(),oe=O==null?G.ticks?G.ticks.apply(G,x):G.domain():O,se=T==null?G.tickFormat?G.tickFormat.apply(G,x):je:T,H=$.selectAll(".tick").data(oe,G),K=H.enter().insert("g",".domain").attr("class","tick").style("opacity",fr),re=t.transition(H.exit()).style("opacity",fr).remove(),fe=t.transition(H.order()).style("opacity",1),ce=Math.max(p,0)+y,ie,$e=qs(G),Ye=$.selectAll(".domain").data([0]),ut=(Ye.enter().append("path").attr("class","domain"),t.transition(Ye));K.append("line"),K.append("text");var Xe=K.select("line"),ct=fe.select("line"),wt=H.select("text").text(se),Yt=K.select("text"),Et=fe.select("text"),Vt=c==="top"||c==="left"?-1:1,cr,Lr,br,lt;if(c==="bottom"||c==="top"?(ie=Ld,cr="x",br="y",Lr="x2",lt="y2",wt.attr("dy",Vt<0?"0em":".71em").style("text-anchor","middle"),ut.attr("d","M"+$e[0]+","+Vt*m+"V0H"+$e[1]+"V"+Vt*m)):(ie=Bd,cr="y",br="x",Lr="y2",lt="x2",wt.attr("dy",".32em").style("text-anchor",Vt<0?"end":"start"),ut.attr("d","M"+Vt*m+","+$e[0]+"H0V"+$e[1]+"H"+Vt*m)),Xe.attr(lt,Vt*p),Yt.attr(br,Vt*ce),ct.attr(Lr,0).attr(lt,Vt*p),Et.attr(cr,0).attr(br,Vt*ce),G.rangeBand){var Xt=G,Jt=Xt.rangeBand()/2;W=G=function(dr){return Xt(dr)+Jt}}else W.rangeBand?W=G:re.call(ie,G,W);K.call(ie,W,G),fe.call(ie,G,G)})}return k.scale=function(B){return arguments.length?(l=B,k):l},k.orient=function(B){return arguments.length?(c=B in Nd?B+"":Fd,k):c},k.ticks=function(){return arguments.length?(x=n(arguments),k):x},k.tickValues=function(B){return arguments.length?(O=B,k):O},k.tickFormat=function(B){return arguments.length?(T=B,k):T},k.tickSize=function(B){var $=arguments.length;return $?(p=+B,m=+arguments[$-1],k):p},k.innerTickSize=function(B){return arguments.length?(p=+B,k):p},k.outerTickSize=function(B){return arguments.length?(m=+B,k):m},k.tickPadding=function(B){return arguments.length?(y=+B,k):y},k.tickSubdivide=function(){return arguments.length&&k},k};var Fd="bottom",Nd={top:1,right:1,bottom:1,left:1};function Ld(l,c,p){l.attr("transform",function(m){var y=c(m);return"translate("+(isFinite(y)?y:p(m))+",0)"})}function Bd(l,c,p){l.attr("transform",function(m){var y=c(m);return"translate(0,"+(isFinite(y)?y:p(m))+")"})}t.svg.brush=function(){var l=Ze($,"brushstart","brush","brushend"),c=null,p=null,m=[0,0],y=[0,0],x,O,T=!0,k=!0,B=bl[0];function $(H){H.each(function(){var K=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",se).on("touchstart.brush",se),re=K.selectAll(".background").data([0]);re.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),K.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var fe=K.selectAll(".resize").data(B,je);fe.exit().remove(),fe.enter().append("g").attr("class",function(Ye){return"resize "+Ye}).style("cursor",function(Ye){return $d[Ye]}).append("rect").attr("x",function(Ye){return/[ew]$/.test(Ye)?-3:null}).attr("y",function(Ye){return/^[ns]/.test(Ye)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),fe.style("display",$.empty()?"none":null);var ce=t.transition(K),ie=t.transition(re),$e;c&&($e=qs(c),ie.attr("x",$e[0]).attr("width",$e[1]-$e[0]),G(ce)),p&&($e=qs(p),ie.attr("y",$e[0]).attr("height",$e[1]-$e[0]),oe(ce)),W(ce)})}$.event=function(H){H.each(function(){var K=l.of(this,arguments),re={x:m,y,i:x,j:O},fe=this.__chart__||re;this.__chart__=re,ra?t.select(this).transition().each("start.brush",function(){x=fe.i,O=fe.j,m=fe.x,y=fe.y,K({type:"brushstart"})}).tween("brush:brush",function(){var ce=Bn(m,re.x),ie=Bn(y,re.y);return x=O=null,function($e){m=re.x=ce($e),y=re.y=ie($e),K({type:"brush",mode:"resize"})}}).each("end.brush",function(){x=re.i,O=re.j,K({type:"brush",mode:"resize"}),K({type:"brushend"})}):(K({type:"brushstart"}),K({type:"brush",mode:"resize"}),K({type:"brushend"}))})};function W(H){H.selectAll(".resize").attr("transform",function(K){return"translate("+m[+/e$/.test(K)]+","+y[+/^s/.test(K)]+")"})}function G(H){H.select(".extent").attr("x",m[0]),H.selectAll(".extent,.n>rect,.s>rect").attr("width",m[1]-m[0])}function oe(H){H.select(".extent").attr("y",y[0]),H.selectAll(".extent,.e>rect,.w>rect").attr("height",y[1]-y[0])}function se(){var H=this,K=t.select(t.event.target),re=l.of(H,arguments),fe=t.select(H),ce=K.datum(),ie=!/^(n|s)$/.test(ce)&&c,$e=!/^(e|w)$/.test(ce)&&p,Ye=K.classed("extent"),ut=Ss(H),Xe,ct=t.mouse(H),wt,Yt=t.select(o(H)).on("keydown.brush",cr).on("keyup.brush",Lr);if(t.event.changedTouches?Yt.on("touchmove.brush",br).on("touchend.brush",Xt):Yt.on("mousemove.brush",br).on("mouseup.brush",Xt),fe.interrupt().selectAll("*").interrupt(),Ye)ct[0]=m[0]-ct[0],ct[1]=y[0]-ct[1];else if(ce){var Et=+/w$/.test(ce),Vt=+/^n/.test(ce);wt=[m[1-Et]-ct[0],y[1-Vt]-ct[1]],ct[0]=m[Et],ct[1]=y[Vt]}else t.event.altKey&&(Xe=ct.slice());fe.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",K.style("cursor")),re({type:"brushstart"}),br();function cr(){t.event.keyCode==32&&(Ye||(Xe=null,ct[0]-=m[1],ct[1]-=y[1],Ye=2),Ke())}function Lr(){t.event.keyCode==32&&Ye==2&&(ct[0]+=m[1],ct[1]+=y[1],Ye=0,Ke())}function br(){var Jt=t.mouse(H),dr=!1;wt&&(Jt[0]+=wt[0],Jt[1]+=wt[1]),Ye||(t.event.altKey?(Xe||(Xe=[(m[0]+m[1])/2,(y[0]+y[1])/2]),ct[0]=m[+(Jt[0]<Xe[0])],ct[1]=y[+(Jt[1]<Xe[1])]):Xe=null),ie&<(Jt,c,0)&&(G(fe),dr=!0),$e&<(Jt,p,1)&&(oe(fe),dr=!0),dr&&(W(fe),re({type:"brush",mode:Ye?"move":"resize"}))}function lt(Jt,dr,kr){var qr=qs(dr),Zr=qr[0],bn=qr[1],Rn=ct[kr],cn=kr?y:m,$n=cn[1]-cn[0],F,V;if(Ye&&(Zr-=Rn,bn-=$n+Rn),F=(kr?k:T)?Math.max(Zr,Math.min(bn,Jt[kr])):Jt[kr],Ye?V=(F+=Rn)+$n:(Xe&&(Rn=Math.max(Zr,Math.min(bn,2*Xe[kr]-F))),Rn<F?(V=F,F=Rn):V=Rn),cn[0]!=F||cn[1]!=V)return kr?O=null:x=null,cn[0]=F,cn[1]=V,!0}function Xt(){br(),fe.style("pointer-events","all").selectAll(".resize").style("display",$.empty()?"none":null),t.select("body").style("cursor",null),Yt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),ut(),re({type:"brushend"})}}return $.x=function(H){return arguments.length?(c=H,B=bl[!c<<1|!p],$):c},$.y=function(H){return arguments.length?(p=H,B=bl[!c<<1|!p],$):p},$.clamp=function(H){return arguments.length?(c&&p?(T=!!H[0],k=!!H[1]):c?T=!!H:p&&(k=!!H),$):c&&p?[T,k]:c?T:p?k:null},$.extent=function(H){var K,re,fe,ce,ie;return arguments.length?(c&&(K=H[0],re=H[1],p&&(K=K[0],re=re[0]),x=[K,re],c.invert&&(K=c(K),re=c(re)),re<K&&(ie=K,K=re,re=ie),(K!=m[0]||re!=m[1])&&(m=[K,re])),p&&(fe=H[0],ce=H[1],c&&(fe=fe[1],ce=ce[1]),O=[fe,ce],p.invert&&(fe=p(fe),ce=p(ce)),ce<fe&&(ie=fe,fe=ce,ce=ie),(fe!=y[0]||ce!=y[1])&&(y=[fe,ce])),$):(c&&(x?(K=x[0],re=x[1]):(K=m[0],re=m[1],c.invert&&(K=c.invert(K),re=c.invert(re)),re<K&&(ie=K,K=re,re=ie))),p&&(O?(fe=O[0],ce=O[1]):(fe=y[0],ce=y[1],p.invert&&(fe=p.invert(fe),ce=p.invert(ce)),ce<fe&&(ie=fe,fe=ce,ce=ie))),c&&p?[[K,fe],[re,ce]]:c?[K,re]:p&&[fe,ce])},$.clear=function(){return $.empty()||(m=[0,0],y=[0,0],x=O=null),$},$.empty=function(){return!!c&&m[0]==m[1]||!!p&&y[0]==y[1]},t.rebind($,l,"on")};var $d={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},bl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=jc(function(l){return l.responseText}),t.json=function(l,c){return Os(l,"application/json",zd,c)};function zd(l){return JSON.parse(l.responseText)}t.html=function(l,c){return Os(l,"text/html",Ud,c)};function Ud(l){var c=i.createRange();return c.selectNode(i.body),c.createContextualFragment(l.responseText)}t.xml=jc(function(l){return l.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(ore);var Ux=new Date,jx=new Date;function yn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,u){var s=[],f;if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;do s.push(f=new Date(+a)),t(a,u),e(a);while(f<a&&a<o);return s},i.filter=function(a){return yn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,u){if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return Ux.setTime(+a),jx.setTime(+o),e(Ux),e(jx),Math.floor(r(Ux,jx))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var ty=yn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ty.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):ty};const EI=ty;var AI=ty.range,ry=1e3,Jl=6e4,ny=36e5,GL=864e5,qL=6048e5,HL=yn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*ry)},function(e,t){return(t-e)/ry},function(e){return e.getUTCSeconds()});const CI=HL;var TI=HL.range,VL=yn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ry)},function(e,t){e.setTime(+e+t*Jl)},function(e,t){return(t-e)/Jl},function(e){return e.getMinutes()});const ure=VL;var lre=VL.range,YL=yn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ry-e.getMinutes()*Jl)},function(e,t){e.setTime(+e+t*ny)},function(e,t){return(t-e)/ny},function(e){return e.getHours()});const sre=YL;var fre=YL.range,XL=yn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jl)/GL},function(e){return e.getDate()-1});const _C=XL;var cre=XL.range;function ms(e){return yn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Jl)/qL})}var iy=ms(0),Ch=ms(1),KL=ms(2),QL=ms(3),es=ms(4),ZL=ms(5),JL=ms(6),RI=iy.range,dre=Ch.range,pre=KL.range,hre=QL.range,vre=es.range,gre=ZL.range,mre=JL.range,eB=yn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const yre=eB;var bre=eB.range,SC=yn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});SC.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const cc=SC;var wre=SC.range,tB=yn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Jl)},function(e,t){return(t-e)/Jl},function(e){return e.getUTCMinutes()});const xre=tB;var _re=tB.range,rB=yn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ny)},function(e,t){return(t-e)/ny},function(e){return e.getUTCHours()});const Sre=rB;var Ere=rB.range,nB=yn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/GL},function(e){return e.getUTCDate()-1});const EC=nB;var Are=nB.range;function ys(e){return yn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/qL})}var ay=ys(0),Th=ys(1),iB=ys(2),aB=ys(3),ts=ys(4),oB=ys(5),uB=ys(6),OI=ay.range,Cre=Th.range,Tre=iB.range,Rre=aB.range,Ore=ts.range,Ire=oB.range,Pre=uB.range,lB=yn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const kre=lB;var Mre=lB.range,AC=yn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});AC.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const dc=AC;var Dre=AC.range;const Fre=Object.freeze(Object.defineProperty({__proto__:null,timeInterval:yn,timeMillisecond:EI,timeMilliseconds:AI,utcMillisecond:EI,utcMilliseconds:AI,timeSecond:CI,timeSeconds:TI,utcSecond:CI,utcSeconds:TI,timeMinute:ure,timeMinutes:lre,timeHour:sre,timeHours:fre,timeDay:_C,timeDays:cre,timeWeek:iy,timeWeeks:RI,timeSunday:iy,timeSundays:RI,timeMonday:Ch,timeMondays:dre,timeTuesday:KL,timeTuesdays:pre,timeWednesday:QL,timeWednesdays:hre,timeThursday:es,timeThursdays:vre,timeFriday:ZL,timeFridays:gre,timeSaturday:JL,timeSaturdays:mre,timeMonth:yre,timeMonths:bre,timeYear:cc,timeYears:wre,utcMinute:xre,utcMinutes:_re,utcHour:Sre,utcHours:Ere,utcDay:EC,utcDays:Are,utcWeek:ay,utcWeeks:OI,utcSunday:ay,utcSundays:OI,utcMonday:Th,utcMondays:Cre,utcTuesday:iB,utcTuesdays:Tre,utcWednesday:aB,utcWednesdays:Rre,utcThursday:ts,utcThursdays:Ore,utcFriday:oB,utcFridays:Ire,utcSaturday:uB,utcSaturdays:Pre,utcMonth:kre,utcMonths:Mre,utcYear:dc,utcYears:Dre},Symbol.toStringTag,{value:"Module"}));function Wx(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Gx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function up(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function sB(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,f=lp(i),d=sp(i),v=lp(a),h=sp(a),g=lp(o),_=sp(o),A=lp(u),b=sp(u),w=lp(s),S=sp(s),E={a:me,A:Fe,b:qe,B:Ue,c:null,d:FI,e:FI,f:ine,g:hne,G:gne,H:tne,I:rne,j:nne,L:fB,m:ane,M:one,p:be,q:ye,Q:BI,s:$I,S:une,u:lne,U:sne,V:fne,w:cne,W:dne,x:null,X:null,y:pne,Y:vne,Z:mne,"%":LI},R={a:Ke,A:We,b:Ze,B:st,c:null,d:NI,e:NI,f:xne,g:Pne,G:Mne,H:yne,I:bne,j:wne,L:dB,m:_ne,M:Sne,p:Rt,q:kt,Q:BI,s:$I,S:Ene,u:Ane,U:Cne,V:Tne,w:Rne,W:One,x:null,X:null,y:Ine,Y:kne,Z:Dne,"%":LI},M={a:ee,A:ue,b:pe,B:we,c:Ee,d:MI,e:MI,f:Qre,g:kI,G:PI,H:DI,I:DI,j:Vre,L:Kre,m:Hre,M:Yre,p:L,q:qre,Q:Jre,s:ene,S:Xre,u:zre,U:Ure,V:jre,w:$re,W:Wre,x:Je,X:je,y:kI,Y:PI,Z:Gre,"%":Zre};E.x=D(r,E),E.X=D(n,E),E.c=D(t,E),R.x=D(r,R),R.X=D(n,R),R.c=D(t,R);function D(Ae,nt){return function(mt){var _e=[],j=-1,te=0,I=Ae.length,C,P,U;for(mt instanceof Date||(mt=new Date(+mt));++j<I;)Ae.charCodeAt(j)===37&&(_e.push(Ae.slice(te,j)),(P=II[C=Ae.charAt(++j)])!=null?C=Ae.charAt(++j):P=C==="e"?" ":"0",(U=nt[C])&&(C=U(mt,P)),_e.push(C),te=j+1);return _e.push(Ae.slice(te,j)),_e.join("")}}function z(Ae,nt){return function(mt){var _e=up(1900,void 0,1),j=N(_e,Ae,mt+="",0),te,I;if(j!=mt.length)return null;if("Q"in _e)return new Date(_e.Q);if("s"in _e)return new Date(_e.s*1e3+("L"in _e?_e.L:0));if(nt&&!("Z"in _e)&&(_e.Z=0),"p"in _e&&(_e.H=_e.H%12+_e.p*12),_e.m===void 0&&(_e.m="q"in _e?_e.q:0),"V"in _e){if(_e.V<1||_e.V>53)return null;"w"in _e||(_e.w=1),"Z"in _e?(te=Gx(up(_e.y,0,1)),I=te.getUTCDay(),te=I>4||I===0?Th.ceil(te):Th(te),te=EC.offset(te,(_e.V-1)*7),_e.y=te.getUTCFullYear(),_e.m=te.getUTCMonth(),_e.d=te.getUTCDate()+(_e.w+6)%7):(te=Wx(up(_e.y,0,1)),I=te.getDay(),te=I>4||I===0?Ch.ceil(te):Ch(te),te=_C.offset(te,(_e.V-1)*7),_e.y=te.getFullYear(),_e.m=te.getMonth(),_e.d=te.getDate()+(_e.w+6)%7)}else("W"in _e||"U"in _e)&&("w"in _e||(_e.w="u"in _e?_e.u%7:"W"in _e?1:0),I="Z"in _e?Gx(up(_e.y,0,1)).getUTCDay():Wx(up(_e.y,0,1)).getDay(),_e.m=0,_e.d="W"in _e?(_e.w+6)%7+_e.W*7-(I+5)%7:_e.w+_e.U*7-(I+6)%7);return"Z"in _e?(_e.H+=_e.Z/100|0,_e.M+=_e.Z%100,Gx(_e)):Wx(_e)}}function N(Ae,nt,mt,_e){for(var j=0,te=nt.length,I=mt.length,C,P;j<te;){if(_e>=I)return-1;if(C=nt.charCodeAt(j++),C===37){if(C=nt.charAt(j++),P=M[C in II?nt.charAt(j++):C],!P||(_e=P(Ae,mt,_e))<0)return-1}else if(C!=mt.charCodeAt(_e++))return-1}return _e}function L(Ae,nt,mt){var _e=f.exec(nt.slice(mt));return _e?(Ae.p=d[_e[0].toLowerCase()],mt+_e[0].length):-1}function ee(Ae,nt,mt){var _e=g.exec(nt.slice(mt));return _e?(Ae.w=_[_e[0].toLowerCase()],mt+_e[0].length):-1}function ue(Ae,nt,mt){var _e=v.exec(nt.slice(mt));return _e?(Ae.w=h[_e[0].toLowerCase()],mt+_e[0].length):-1}function pe(Ae,nt,mt){var _e=w.exec(nt.slice(mt));return _e?(Ae.m=S[_e[0].toLowerCase()],mt+_e[0].length):-1}function we(Ae,nt,mt){var _e=A.exec(nt.slice(mt));return _e?(Ae.m=b[_e[0].toLowerCase()],mt+_e[0].length):-1}function Ee(Ae,nt,mt){return N(Ae,t,nt,mt)}function Je(Ae,nt,mt){return N(Ae,r,nt,mt)}function je(Ae,nt,mt){return N(Ae,n,nt,mt)}function me(Ae){return o[Ae.getDay()]}function Fe(Ae){return a[Ae.getDay()]}function qe(Ae){return s[Ae.getMonth()]}function Ue(Ae){return u[Ae.getMonth()]}function be(Ae){return i[+(Ae.getHours()>=12)]}function ye(Ae){return 1+~~(Ae.getMonth()/3)}function Ke(Ae){return o[Ae.getUTCDay()]}function We(Ae){return a[Ae.getUTCDay()]}function Ze(Ae){return s[Ae.getUTCMonth()]}function st(Ae){return u[Ae.getUTCMonth()]}function Rt(Ae){return i[+(Ae.getUTCHours()>=12)]}function kt(Ae){return 1+~~(Ae.getUTCMonth()/3)}return{format:function(Ae){var nt=D(Ae+="",E);return nt.toString=function(){return Ae},nt},parse:function(Ae){var nt=z(Ae+="",!1);return nt.toString=function(){return Ae},nt},utcFormat:function(Ae){var nt=D(Ae+="",R);return nt.toString=function(){return Ae},nt},utcParse:function(Ae){var nt=z(Ae+="",!0);return nt.toString=function(){return Ae},nt}}}var II={"-":"",_:" ",0:"0"},Cn=/^\s*\d+/,Nre=/^%/,Lre=/[\\^$*+?|[\]().{}]/g;function Tr(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Bre(e){return e.replace(Lre,"\\$&")}function lp(e){return new RegExp("^(?:"+e.map(Bre).join("|")+")","i")}function sp(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function $re(e,t,r){var n=Cn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function zre(e,t,r){var n=Cn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Ure(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function jre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Wre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function PI(e,t,r){var n=Cn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function kI(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Gre(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function qre(e,t,r){var n=Cn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Hre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function MI(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Vre(e,t,r){var n=Cn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function DI(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Yre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Xre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Kre(e,t,r){var n=Cn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Qre(e,t,r){var n=Cn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Zre(e,t,r){var n=Nre.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Jre(e,t,r){var n=Cn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function ene(e,t,r){var n=Cn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function FI(e,t){return Tr(e.getDate(),t,2)}function tne(e,t){return Tr(e.getHours(),t,2)}function rne(e,t){return Tr(e.getHours()%12||12,t,2)}function nne(e,t){return Tr(1+_C.count(cc(e),e),t,3)}function fB(e,t){return Tr(e.getMilliseconds(),t,3)}function ine(e,t){return fB(e,t)+"000"}function ane(e,t){return Tr(e.getMonth()+1,t,2)}function one(e,t){return Tr(e.getMinutes(),t,2)}function une(e,t){return Tr(e.getSeconds(),t,2)}function lne(e){var t=e.getDay();return t===0?7:t}function sne(e,t){return Tr(iy.count(cc(e)-1,e),t,2)}function cB(e){var t=e.getDay();return t>=4||t===0?es(e):es.ceil(e)}function fne(e,t){return e=cB(e),Tr(es.count(cc(e),e)+(cc(e).getDay()===4),t,2)}function cne(e){return e.getDay()}function dne(e,t){return Tr(Ch.count(cc(e)-1,e),t,2)}function pne(e,t){return Tr(e.getFullYear()%100,t,2)}function hne(e,t){return e=cB(e),Tr(e.getFullYear()%100,t,2)}function vne(e,t){return Tr(e.getFullYear()%1e4,t,4)}function gne(e,t){var r=e.getDay();return e=r>=4||r===0?es(e):es.ceil(e),Tr(e.getFullYear()%1e4,t,4)}function mne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Tr(t/60|0,"0",2)+Tr(t%60,"0",2)}function NI(e,t){return Tr(e.getUTCDate(),t,2)}function yne(e,t){return Tr(e.getUTCHours(),t,2)}function bne(e,t){return Tr(e.getUTCHours()%12||12,t,2)}function wne(e,t){return Tr(1+EC.count(dc(e),e),t,3)}function dB(e,t){return Tr(e.getUTCMilliseconds(),t,3)}function xne(e,t){return dB(e,t)+"000"}function _ne(e,t){return Tr(e.getUTCMonth()+1,t,2)}function Sne(e,t){return Tr(e.getUTCMinutes(),t,2)}function Ene(e,t){return Tr(e.getUTCSeconds(),t,2)}function Ane(e){var t=e.getUTCDay();return t===0?7:t}function Cne(e,t){return Tr(ay.count(dc(e)-1,e),t,2)}function pB(e){var t=e.getUTCDay();return t>=4||t===0?ts(e):ts.ceil(e)}function Tne(e,t){return e=pB(e),Tr(ts.count(dc(e),e)+(dc(e).getUTCDay()===4),t,2)}function Rne(e){return e.getUTCDay()}function One(e,t){return Tr(Th.count(dc(e)-1,e),t,2)}function Ine(e,t){return Tr(e.getUTCFullYear()%100,t,2)}function Pne(e,t){return e=pB(e),Tr(e.getUTCFullYear()%100,t,2)}function kne(e,t){return Tr(e.getUTCFullYear()%1e4,t,4)}function Mne(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ts(e):ts.ceil(e),Tr(e.getUTCFullYear()%1e4,t,4)}function Dne(){return"+0000"}function LI(){return"%"}function BI(e){return+e}function $I(e){return Math.floor(+e/1e3)}var df,hB,vB,CC,TC;gB({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gB(e){return df=sB(e),hB=df.format,vB=df.parse,CC=df.utcFormat,TC=df.utcParse,df}var mB="%Y-%m-%dT%H:%M:%S.%LZ";function Fne(e){return e.toISOString()}var Nne=Date.prototype.toISOString?Fne:CC(mB);const Lne=Nne;function Bne(e){var t=new Date(e);return isNaN(t)?null:t}var $ne=+new Date("2000-01-01T00:00:00.000Z")?Bne:TC(mB);const zne=$ne,Une=Object.freeze(Object.defineProperty({__proto__:null,timeFormatDefaultLocale:gB,get timeFormat(){return hB},get timeParse(){return vB},get utcFormat(){return CC},get utcParse(){return TC},timeFormatLocale:sB,isoFormat:Lne,isoParse:zne},Symbol.toStringTag,{value:"Module"})),Ade=is(Une);function jne(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function oy(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function pc(e){return e=oy(Math.abs(e)),e?e[1]:NaN}function Wne(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Gne(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var qne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uy(e){if(!(t=qne.exec(e)))throw new Error("invalid format: "+e);var t;return new y1({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}uy.prototype=y1.prototype;function y1(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}y1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Hne(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var yB;function Vne(e,t){var r=oy(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(yB=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+oy(e,Math.max(0,t+a-1))[0]}function zI(e,t){var r=oy(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const UI={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:jne,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return zI(e*100,t)},r:zI,s:Vne,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function jI(e){return e}var WI=Array.prototype.map,GI=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function bB(e){var t=e.grouping===void 0||e.thousands===void 0?jI:Wne(WI.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?jI:Gne(WI.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function f(v){v=uy(v);var h=v.fill,g=v.align,_=v.sign,A=v.symbol,b=v.zero,w=v.width,S=v.comma,E=v.precision,R=v.trim,M=v.type;M==="n"?(S=!0,M="g"):UI[M]||(E===void 0&&(E=12),R=!0,M="g"),(b||h==="0"&&g==="=")&&(b=!0,h="0",g="=");var D=A==="$"?r:A==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",z=A==="$"?n:/[%p]/.test(M)?o:"",N=UI[M],L=/[defgprs%]/.test(M);E=E===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function ee(ue){var pe=D,we=z,Ee,Je,je;if(M==="c")we=N(ue)+we,ue="";else{ue=+ue;var me=ue<0||1/ue<0;if(ue=isNaN(ue)?s:N(Math.abs(ue),E),R&&(ue=Hne(ue)),me&&+ue==0&&_!=="+"&&(me=!1),pe=(me?_==="("?_:u:_==="-"||_==="("?"":_)+pe,we=(M==="s"?GI[8+yB/3]:"")+we+(me&&_==="("?")":""),L){for(Ee=-1,Je=ue.length;++Ee<Je;)if(je=ue.charCodeAt(Ee),48>je||je>57){we=(je===46?i+ue.slice(Ee+1):ue.slice(Ee))+we,ue=ue.slice(0,Ee);break}}}S&&!b&&(ue=t(ue,1/0));var Fe=pe.length+ue.length+we.length,qe=Fe<w?new Array(w-Fe+1).join(h):"";switch(S&&b&&(ue=t(qe+ue,qe.length?w-we.length:1/0),qe=""),g){case"<":ue=pe+ue+we+qe;break;case"=":ue=pe+qe+ue+we;break;case"^":ue=qe.slice(0,Fe=qe.length>>1)+pe+ue+we+qe.slice(Fe);break;default:ue=qe+pe+ue+we;break}return a(ue)}return ee.toString=function(){return v+""},ee}function d(v,h){var g=f((v=uy(v),v.type="f",v)),_=Math.max(-8,Math.min(8,Math.floor(pc(h)/3)))*3,A=Math.pow(10,-_),b=GI[8+_/3];return function(w){return g(A*w)+b}}return{format:f,formatPrefix:d}}var am,wB,xB;_B({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _B(e){return am=bB(e),wB=am.format,xB=am.formatPrefix,am}function Yne(e){return Math.max(0,-pc(Math.abs(e)))}function Xne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pc(t)/3)))*3-pc(Math.abs(e)))}function Kne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pc(t)-pc(e))+1}const Qne=Object.freeze(Object.defineProperty({__proto__:null,formatDefaultLocale:_B,get format(){return wB},get formatPrefix(){return xB},formatLocale:bB,formatSpecifier:uy,FormatSpecifier:y1,precisionFixed:Yne,precisionPrefix:Xne,precisionRound:Kne},Symbol.toStringTag,{value:"Module"})),Cde=is(Qne);var Zne=function(e){for(var t=e.length,r,n=0;n<t;n++)if(r=e.charCodeAt(n),(r<9||r>13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0},Jne=Zne,Tde=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Jne(r))return!1}else if(t!=="number")return!1;return e-e<1},eie={exports:{}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,u=t.max,s=t.random;function f(j,te){if(j=j||"",te=te||{},j instanceof f)return j;if(!(this instanceof f))return new f(j,te);var I=d(j);this._originalInput=j,this._r=I.r,this._g=I.g,this._b=I.b,this._a=I.a,this._roundA=a(100*this._a)/100,this._format=te.format||I.format,this._gradientType=te.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=I.ok,this._tc_id=i++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),te,I,C,P,U,le;return te=j.r/255,I=j.g/255,C=j.b/255,te<=.03928?P=te/12.92:P=t.pow((te+.055)/1.055,2.4),I<=.03928?U=I/12.92:U=t.pow((I+.055)/1.055,2.4),C<=.03928?le=C/12.92:le=t.pow((C+.055)/1.055,2.4),.2126*P+.7152*U+.0722*le},setAlpha:function(j){return this._a=qe(j),this._roundA=a(100*this._a)/100,this},toHsv:function(){var j=_(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=_(this._r,this._g,this._b),te=a(j.h*360),I=a(j.s*100),C=a(j.v*100);return this._a==1?"hsv("+te+", "+I+"%, "+C+"%)":"hsva("+te+", "+I+"%, "+C+"%, "+this._roundA+")"},toHsl:function(){var j=h(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=h(this._r,this._g,this._b),te=a(j.h*360),I=a(j.s*100),C=a(j.l*100);return this._a==1?"hsl("+te+", "+I+"%, "+C+"%)":"hsla("+te+", "+I+"%, "+C+"%, "+this._roundA+")"},toHex:function(j){return b(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return w(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Ue(this._r,255)*100)+"%",g:a(Ue(this._g,255)*100)+"%",b:a(Ue(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Ue(this._r,255)*100)+"%, "+a(Ue(this._g,255)*100)+"%, "+a(Ue(this._b,255)*100)+"%)":"rgba("+a(Ue(this._r,255)*100)+"%, "+a(Ue(this._g,255)*100)+"%, "+a(Ue(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:me[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var te="#"+S(this._r,this._g,this._b,this._a),I=te,C=this._gradientType?"GradientType = 1, ":"";if(j){var P=f(j);I="#"+S(P._r,P._g,P._b,P._a)}return"progid:DXImageTransform.Microsoft.gradient("+C+"startColorstr="+te+",endColorstr="+I+")"},toString:function(j){var te=!!j;j=j||this._format;var I=!1,C=this._a<1&&this._a>=0,P=!te&&C&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return P?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(I=this.toRgbString()),j==="prgb"&&(I=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(I=this.toHexString()),j==="hex3"&&(I=this.toHexString(!0)),j==="hex4"&&(I=this.toHex8String(!0)),j==="hex8"&&(I=this.toHex8String()),j==="name"&&(I=this.toName()),j==="hsl"&&(I=this.toHslString()),j==="hsv"&&(I=this.toHsvString()),I||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(j,te){var I=j.apply(null,[this].concat([].slice.call(te)));return this._r=I._r,this._g=I._g,this._b=I._b,this.setAlpha(I._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(z,arguments)},darken:function(){return this._applyModification(N,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(L,arguments)},_applyCombination:function(j,te){return j.apply(null,[this].concat([].slice.call(te)))},analogous:function(){return this._applyCombination(Ee,arguments)},complement:function(){return this._applyCombination(ee,arguments)},monochromatic:function(){return this._applyCombination(Je,arguments)},splitcomplement:function(){return this._applyCombination(we,arguments)},triad:function(){return this._applyCombination(ue,arguments)},tetrad:function(){return this._applyCombination(pe,arguments)}},f.fromRatio=function(j,te){if(typeof j=="object"){var I={};for(var C in j)j.hasOwnProperty(C)&&(C==="a"?I[C]=j[C]:I[C]=st(j[C]));j=I}return f(j,te)};function d(j){var te={r:0,g:0,b:0},I=1,C=null,P=null,U=null,le=!1,Ne=!1;return typeof j=="string"&&(j=mt(j)),typeof j=="object"&&(nt(j.r)&&nt(j.g)&&nt(j.b)?(te=v(j.r,j.g,j.b),le=!0,Ne=String(j.r).substr(-1)==="%"?"prgb":"rgb"):nt(j.h)&&nt(j.s)&&nt(j.v)?(C=st(j.s),P=st(j.v),te=A(j.h,C,P),le=!0,Ne="hsv"):nt(j.h)&&nt(j.s)&&nt(j.l)&&(C=st(j.s),U=st(j.l),te=g(j.h,C,U),le=!0,Ne="hsl"),j.hasOwnProperty("a")&&(I=j.a)),I=qe(I),{ok:le,format:j.format||Ne,r:o(255,u(te.r,0)),g:o(255,u(te.g,0)),b:o(255,u(te.b,0)),a:I}}function v(j,te,I){return{r:Ue(j,255)*255,g:Ue(te,255)*255,b:Ue(I,255)*255}}function h(j,te,I){j=Ue(j,255),te=Ue(te,255),I=Ue(I,255);var C=u(j,te,I),P=o(j,te,I),U,le,Ne=(C+P)/2;if(C==P)U=le=0;else{var ze=C-P;switch(le=Ne>.5?ze/(2-C-P):ze/(C+P),C){case j:U=(te-I)/ze+(te<I?6:0);break;case te:U=(I-j)/ze+2;break;case I:U=(j-te)/ze+4;break}U/=6}return{h:U,s:le,l:Ne}}function g(j,te,I){var C,P,U;j=Ue(j,360),te=Ue(te,100),I=Ue(I,100);function le(qt,Qt,nr){return nr<0&&(nr+=1),nr>1&&(nr-=1),nr<1/6?qt+(Qt-qt)*6*nr:nr<1/2?Qt:nr<2/3?qt+(Qt-qt)*(2/3-nr)*6:qt}if(te===0)C=P=U=I;else{var Ne=I<.5?I*(1+te):I+te-I*te,ze=2*I-Ne;C=le(ze,Ne,j+1/3),P=le(ze,Ne,j),U=le(ze,Ne,j-1/3)}return{r:C*255,g:P*255,b:U*255}}function _(j,te,I){j=Ue(j,255),te=Ue(te,255),I=Ue(I,255);var C=u(j,te,I),P=o(j,te,I),U,le,Ne=C,ze=C-P;if(le=C===0?0:ze/C,C==P)U=0;else{switch(C){case j:U=(te-I)/ze+(te<I?6:0);break;case te:U=(I-j)/ze+2;break;case I:U=(j-te)/ze+4;break}U/=6}return{h:U,s:le,v:Ne}}function A(j,te,I){j=Ue(j,360)*6,te=Ue(te,100),I=Ue(I,100);var C=t.floor(j),P=j-C,U=I*(1-te),le=I*(1-P*te),Ne=I*(1-(1-P)*te),ze=C%6,qt=[I,le,U,U,Ne,I][ze],Qt=[Ne,I,I,le,U,U][ze],nr=[U,U,Ne,I,I,le][ze];return{r:qt*255,g:Qt*255,b:nr*255}}function b(j,te,I,C){var P=[Ze(a(j).toString(16)),Ze(a(te).toString(16)),Ze(a(I).toString(16))];return C&&P[0].charAt(0)==P[0].charAt(1)&&P[1].charAt(0)==P[1].charAt(1)&&P[2].charAt(0)==P[2].charAt(1)?P[0].charAt(0)+P[1].charAt(0)+P[2].charAt(0):P.join("")}function w(j,te,I,C,P){var U=[Ze(a(j).toString(16)),Ze(a(te).toString(16)),Ze(a(I).toString(16)),Ze(Rt(C))];return P&&U[0].charAt(0)==U[0].charAt(1)&&U[1].charAt(0)==U[1].charAt(1)&&U[2].charAt(0)==U[2].charAt(1)&&U[3].charAt(0)==U[3].charAt(1)?U[0].charAt(0)+U[1].charAt(0)+U[2].charAt(0)+U[3].charAt(0):U.join("")}function S(j,te,I,C){var P=[Ze(Rt(C)),Ze(a(j).toString(16)),Ze(a(te).toString(16)),Ze(a(I).toString(16))];return P.join("")}f.equals=function(j,te){return!j||!te?!1:f(j).toRgbString()==f(te).toRgbString()},f.random=function(){return f.fromRatio({r:s(),g:s(),b:s()})};function E(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.s-=te/100,I.s=be(I.s),f(I)}function R(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.s+=te/100,I.s=be(I.s),f(I)}function M(j){return f(j).desaturate(100)}function D(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.l+=te/100,I.l=be(I.l),f(I)}function z(j,te){te=te===0?0:te||10;var I=f(j).toRgb();return I.r=u(0,o(255,I.r-a(255*-(te/100)))),I.g=u(0,o(255,I.g-a(255*-(te/100)))),I.b=u(0,o(255,I.b-a(255*-(te/100)))),f(I)}function N(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.l-=te/100,I.l=be(I.l),f(I)}function L(j,te){var I=f(j).toHsl(),C=(I.h+te)%360;return I.h=C<0?360+C:C,f(I)}function ee(j){var te=f(j).toHsl();return te.h=(te.h+180)%360,f(te)}function ue(j){var te=f(j).toHsl(),I=te.h;return[f(j),f({h:(I+120)%360,s:te.s,l:te.l}),f({h:(I+240)%360,s:te.s,l:te.l})]}function pe(j){var te=f(j).toHsl(),I=te.h;return[f(j),f({h:(I+90)%360,s:te.s,l:te.l}),f({h:(I+180)%360,s:te.s,l:te.l}),f({h:(I+270)%360,s:te.s,l:te.l})]}function we(j){var te=f(j).toHsl(),I=te.h;return[f(j),f({h:(I+72)%360,s:te.s,l:te.l}),f({h:(I+216)%360,s:te.s,l:te.l})]}function Ee(j,te,I){te=te||6,I=I||30;var C=f(j).toHsl(),P=360/I,U=[f(j)];for(C.h=(C.h-(P*te>>1)+720)%360;--te;)C.h=(C.h+P)%360,U.push(f(C));return U}function Je(j,te){te=te||6;for(var I=f(j).toHsv(),C=I.h,P=I.s,U=I.v,le=[],Ne=1/te;te--;)le.push(f({h:C,s:P,v:U})),U=(U+Ne)%1;return le}f.mix=function(j,te,I){I=I===0?0:I||50;var C=f(j).toRgb(),P=f(te).toRgb(),U=I/100,le={r:(P.r-C.r)*U+C.r,g:(P.g-C.g)*U+C.g,b:(P.b-C.b)*U+C.b,a:(P.a-C.a)*U+C.a};return f(le)},f.readability=function(j,te){var I=f(j),C=f(te);return(t.max(I.getLuminance(),C.getLuminance())+.05)/(t.min(I.getLuminance(),C.getLuminance())+.05)},f.isReadable=function(j,te,I){var C=f.readability(j,te),P,U;switch(U=!1,P=_e(I),P.level+P.size){case"AAsmall":case"AAAlarge":U=C>=4.5;break;case"AAlarge":U=C>=3;break;case"AAAsmall":U=C>=7;break}return U},f.mostReadable=function(j,te,I){var C=null,P=0,U,le,Ne,ze;I=I||{},le=I.includeFallbackColors,Ne=I.level,ze=I.size;for(var qt=0;qt<te.length;qt++)U=f.readability(j,te[qt]),U>P&&(P=U,C=f(te[qt]));return f.isReadable(j,C,{level:Ne,size:ze})||!le?C:(I.includeFallbackColors=!1,f.mostReadable(j,["#fff","#000"],I))};var je=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},me=f.hexNames=Fe(je);function Fe(j){var te={};for(var I in j)j.hasOwnProperty(I)&&(te[j[I]]=I);return te}function qe(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function Ue(j,te){Ke(j)&&(j="100%");var I=We(j);return j=o(te,u(0,parseFloat(j))),I&&(j=parseInt(j*te,10)/100),t.abs(j-te)<1e-6?1:j%te/parseFloat(te)}function be(j){return o(1,u(0,j))}function ye(j){return parseInt(j,16)}function Ke(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function We(j){return typeof j=="string"&&j.indexOf("%")!=-1}function Ze(j){return j.length==1?"0"+j:""+j}function st(j){return j<=1&&(j=j*100+"%"),j}function Rt(j){return t.round(parseFloat(j)*255).toString(16)}function kt(j){return ye(j)/255}var Ae=function(){var j="[-\\+]?\\d+%?",te="[-\\+]?\\d*\\.\\d+%?",I="(?:"+te+")|(?:"+j+")",C="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",P="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?";return{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+C),rgba:new RegExp("rgba"+P),hsl:new RegExp("hsl"+C),hsla:new RegExp("hsla"+P),hsv:new RegExp("hsv"+C),hsva:new RegExp("hsva"+P),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function nt(j){return!!Ae.CSS_UNIT.exec(j)}function mt(j){j=j.replace(r,"").replace(n,"").toLowerCase();var te=!1;if(je[j])j=je[j],te=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var I;return(I=Ae.rgb.exec(j))?{r:I[1],g:I[2],b:I[3]}:(I=Ae.rgba.exec(j))?{r:I[1],g:I[2],b:I[3],a:I[4]}:(I=Ae.hsl.exec(j))?{h:I[1],s:I[2],l:I[3]}:(I=Ae.hsla.exec(j))?{h:I[1],s:I[2],l:I[3],a:I[4]}:(I=Ae.hsv.exec(j))?{h:I[1],s:I[2],v:I[3]}:(I=Ae.hsva.exec(j))?{h:I[1],s:I[2],v:I[3],a:I[4]}:(I=Ae.hex8.exec(j))?{r:ye(I[1]),g:ye(I[2]),b:ye(I[3]),a:kt(I[4]),format:te?"name":"hex8"}:(I=Ae.hex6.exec(j))?{r:ye(I[1]),g:ye(I[2]),b:ye(I[3]),format:te?"name":"hex"}:(I=Ae.hex4.exec(j))?{r:ye(I[1]+""+I[1]),g:ye(I[2]+""+I[2]),b:ye(I[3]+""+I[3]),a:kt(I[4]+""+I[4]),format:te?"name":"hex8"}:(I=Ae.hex3.exec(j))?{r:ye(I[1]+""+I[1]),g:ye(I[2]+""+I[2]),b:ye(I[3]+""+I[3]),format:te?"name":"hex"}:!1}function _e(j){var te,I;return j=j||{level:"AA",size:"small"},te=(j.level||"AA").toUpperCase(),I=(j.size||"small").toLowerCase(),te!=="AA"&&te!=="AAA"&&(te="AA"),I!=="small"&&I!=="large"&&(I="small"),{level:te,size:I}}e.exports?e.exports=f:window.tinycolor=f})(Math)})(eie);var tie=rie;function rie(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var nie=iie;function iie(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}var aie=oie;function oie(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var SB=uie;function uie(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var lie=sie;function sie(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],u=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=u}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var fie=cie;function cie(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],u=t[5],s=t[6],f=t[7],d=t[8],v=t[9],h=t[10],g=t[11],_=t[12],A=t[13],b=t[14],w=t[15],S=r*u-n*o,E=r*s-i*o,R=r*f-a*o,M=n*s-i*u,D=n*f-a*u,z=i*f-a*s,N=d*A-v*_,L=d*b-h*_,ee=d*w-g*_,ue=v*b-h*A,pe=v*w-g*A,we=h*w-g*b,Ee=S*we-E*pe+R*ue+M*ee-D*L+z*N;return Ee?(Ee=1/Ee,e[0]=(u*we-s*pe+f*ue)*Ee,e[1]=(i*pe-n*we-a*ue)*Ee,e[2]=(A*z-b*D+w*M)*Ee,e[3]=(h*D-v*z-g*M)*Ee,e[4]=(s*ee-o*we-f*L)*Ee,e[5]=(r*we-i*ee+a*L)*Ee,e[6]=(b*R-_*z-w*E)*Ee,e[7]=(d*z-h*R+g*E)*Ee,e[8]=(o*pe-u*ee+f*N)*Ee,e[9]=(n*ee-r*pe-a*N)*Ee,e[10]=(_*D-A*R+w*S)*Ee,e[11]=(v*R-d*D-g*S)*Ee,e[12]=(u*L-o*ue-s*N)*Ee,e[13]=(r*ue-n*L+i*N)*Ee,e[14]=(A*E-_*M-b*S)*Ee,e[15]=(d*M-v*E+h*S)*Ee,e):null}var die=pie;function pie(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],u=t[5],s=t[6],f=t[7],d=t[8],v=t[9],h=t[10],g=t[11],_=t[12],A=t[13],b=t[14],w=t[15];return e[0]=u*(h*w-g*b)-v*(s*w-f*b)+A*(s*g-f*h),e[1]=-(n*(h*w-g*b)-v*(i*w-a*b)+A*(i*g-a*h)),e[2]=n*(s*w-f*b)-u*(i*w-a*b)+A*(i*f-a*s),e[3]=-(n*(s*g-f*h)-u*(i*g-a*h)+v*(i*f-a*s)),e[4]=-(o*(h*w-g*b)-d*(s*w-f*b)+_*(s*g-f*h)),e[5]=r*(h*w-g*b)-d*(i*w-a*b)+_*(i*g-a*h),e[6]=-(r*(s*w-f*b)-o*(i*w-a*b)+_*(i*f-a*s)),e[7]=r*(s*g-f*h)-o*(i*g-a*h)+d*(i*f-a*s),e[8]=o*(v*w-g*A)-d*(u*w-f*A)+_*(u*g-f*v),e[9]=-(r*(v*w-g*A)-d*(n*w-a*A)+_*(n*g-a*v)),e[10]=r*(u*w-f*A)-o*(n*w-a*A)+_*(n*f-a*u),e[11]=-(r*(u*g-f*v)-o*(n*g-a*v)+d*(n*f-a*u)),e[12]=-(o*(v*b-h*A)-d*(u*b-s*A)+_*(u*h-s*v)),e[13]=r*(v*b-h*A)-d*(n*b-i*A)+_*(n*h-i*v),e[14]=-(r*(u*b-s*A)-o*(n*b-i*A)+_*(n*s-i*u)),e[15]=r*(u*h-s*v)-o*(n*h-i*v)+d*(n*s-i*u),e}var hie=vie;function vie(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],u=e[6],s=e[7],f=e[8],d=e[9],v=e[10],h=e[11],g=e[12],_=e[13],A=e[14],b=e[15],w=t*o-r*a,S=t*u-n*a,E=t*s-i*a,R=r*u-n*o,M=r*s-i*o,D=n*s-i*u,z=f*_-d*g,N=f*A-v*g,L=f*b-h*g,ee=d*A-v*_,ue=d*b-h*_,pe=v*b-h*A;return w*pe-S*ue+E*ee+R*L-M*N+D*z}var gie=mie;function mie(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],u=t[4],s=t[5],f=t[6],d=t[7],v=t[8],h=t[9],g=t[10],_=t[11],A=t[12],b=t[13],w=t[14],S=t[15],E=r[0],R=r[1],M=r[2],D=r[3];return e[0]=E*n+R*u+M*v+D*A,e[1]=E*i+R*s+M*h+D*b,e[2]=E*a+R*f+M*g+D*w,e[3]=E*o+R*d+M*_+D*S,E=r[4],R=r[5],M=r[6],D=r[7],e[4]=E*n+R*u+M*v+D*A,e[5]=E*i+R*s+M*h+D*b,e[6]=E*a+R*f+M*g+D*w,e[7]=E*o+R*d+M*_+D*S,E=r[8],R=r[9],M=r[10],D=r[11],e[8]=E*n+R*u+M*v+D*A,e[9]=E*i+R*s+M*h+D*b,e[10]=E*a+R*f+M*g+D*w,e[11]=E*o+R*d+M*_+D*S,E=r[12],R=r[13],M=r[14],D=r[15],e[12]=E*n+R*u+M*v+D*A,e[13]=E*i+R*s+M*h+D*b,e[14]=E*a+R*f+M*g+D*w,e[15]=E*o+R*d+M*_+D*S,e}var yie=bie;function bie(e,t,r){var n=r[0],i=r[1],a=r[2],o,u,s,f,d,v,h,g,_,A,b,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],u=t[1],s=t[2],f=t[3],d=t[4],v=t[5],h=t[6],g=t[7],_=t[8],A=t[9],b=t[10],w=t[11],e[0]=o,e[1]=u,e[2]=s,e[3]=f,e[4]=d,e[5]=v,e[6]=h,e[7]=g,e[8]=_,e[9]=A,e[10]=b,e[11]=w,e[12]=o*n+d*i+_*a+t[12],e[13]=u*n+v*i+A*a+t[13],e[14]=s*n+h*i+b*a+t[14],e[15]=f*n+g*i+w*a+t[15]),e}var wie=xie;function xie(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var _ie=Sie;function Sie(e,t,r,n){var i=n[0],a=n[1],o=n[2],u=Math.sqrt(i*i+a*a+o*o),s,f,d,v,h,g,_,A,b,w,S,E,R,M,D,z,N,L,ee,ue,pe,we,Ee,Je;return Math.abs(u)<1e-6?null:(u=1/u,i*=u,a*=u,o*=u,s=Math.sin(r),f=Math.cos(r),d=1-f,v=t[0],h=t[1],g=t[2],_=t[3],A=t[4],b=t[5],w=t[6],S=t[7],E=t[8],R=t[9],M=t[10],D=t[11],z=i*i*d+f,N=a*i*d+o*s,L=o*i*d-a*s,ee=i*a*d-o*s,ue=a*a*d+f,pe=o*a*d+i*s,we=i*o*d+a*s,Ee=a*o*d-i*s,Je=o*o*d+f,e[0]=v*z+A*N+E*L,e[1]=h*z+b*N+R*L,e[2]=g*z+w*N+M*L,e[3]=_*z+S*N+D*L,e[4]=v*ee+A*ue+E*pe,e[5]=h*ee+b*ue+R*pe,e[6]=g*ee+w*ue+M*pe,e[7]=_*ee+S*ue+D*pe,e[8]=v*we+A*Ee+E*Je,e[9]=h*we+b*Ee+R*Je,e[10]=g*we+w*Ee+M*Je,e[11]=_*we+S*Ee+D*Je,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var Eie=Aie;function Aie(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],u=t[6],s=t[7],f=t[8],d=t[9],v=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+f*n,e[5]=o*i+d*n,e[6]=u*i+v*n,e[7]=s*i+h*n,e[8]=f*i-a*n,e[9]=d*i-o*n,e[10]=v*i-u*n,e[11]=h*i-s*n,e}var Cie=Tie;function Tie(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],u=t[2],s=t[3],f=t[8],d=t[9],v=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-f*n,e[1]=o*i-d*n,e[2]=u*i-v*n,e[3]=s*i-h*n,e[8]=a*n+f*i,e[9]=o*n+d*i,e[10]=u*n+v*i,e[11]=s*n+h*i,e}var Rie=Oie;function Oie(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],u=t[2],s=t[3],f=t[4],d=t[5],v=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+f*n,e[1]=o*i+d*n,e[2]=u*i+v*n,e[3]=s*i+h*n,e[4]=f*i-a*n,e[5]=d*i-o*n,e[6]=v*i-u*n,e[7]=h*i-s*n,e}var Iie=Pie;function Pie(e,t,r){var n,i,a,o=r[0],u=r[1],s=r[2],f=Math.sqrt(o*o+u*u+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,u*=f,s*=f,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=u*o*a+s*n,e[2]=s*o*a-u*n,e[3]=0,e[4]=o*u*a-s*n,e[5]=u*u*a+i,e[6]=s*u*a+o*n,e[7]=0,e[8]=o*s*a+u*n,e[9]=u*s*a-o*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var kie=Mie;function Mie(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],u=n+n,s=i+i,f=a+a,d=n*u,v=n*s,h=n*f,g=i*s,_=i*f,A=a*f,b=o*u,w=o*s,S=o*f;return e[0]=1-(g+A),e[1]=v+S,e[2]=h-w,e[3]=0,e[4]=v-S,e[5]=1-(d+A),e[6]=_+b,e[7]=0,e[8]=h+w,e[9]=_-b,e[10]=1-(d+g),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var Die=Fie;function Fie(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Nie=Lie;function Lie(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}var Bie=$ie;function $ie(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var zie=Uie;function Uie(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var jie=Wie;function Wie(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Gie=qie;function qie(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,u=n+n,s=i+i,f=r*o,d=n*o,v=n*u,h=i*o,g=i*u,_=i*s,A=a*o,b=a*u,w=a*s;return e[0]=1-v-_,e[1]=d+w,e[2]=h-b,e[3]=0,e[4]=d-w,e[5]=1-f-_,e[6]=g+A,e[7]=0,e[8]=h+b,e[9]=g-A,e[10]=1-f-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Hie=Vie;function Vie(e,t,r,n,i,a,o){var u=1/(r-t),s=1/(i-n),f=1/(a-o);return e[0]=a*2*u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*u,e[9]=(i+n)*s,e[10]=(o+a)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*f,e[15]=0,e}var Yie=Xie;function Xie(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}var Kie=Qie;function Qie(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),u=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+u),f=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-u)*s*.5),e[9]=(i-a)*f*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}var Zie=Jie;function Jie(e,t,r,n,i,a,o){var u=1/(t-r),s=1/(n-i),f=1/(a-o);return e[0]=-2*u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(t+r)*u,e[13]=(i+n)*s,e[14]=(o+a)*f,e[15]=1,e}var eae=SB,tae=rae;function rae(e,t,r,n){var i,a,o,u,s,f,d,v,h,g,_=t[0],A=t[1],b=t[2],w=n[0],S=n[1],E=n[2],R=r[0],M=r[1],D=r[2];return Math.abs(_-R)<1e-6&&Math.abs(A-M)<1e-6&&Math.abs(b-D)<1e-6?eae(e):(d=_-R,v=A-M,h=b-D,g=1/Math.sqrt(d*d+v*v+h*h),d*=g,v*=g,h*=g,i=S*h-E*v,a=E*d-w*h,o=w*v-S*d,g=Math.sqrt(i*i+a*a+o*o),g?(g=1/g,i*=g,a*=g,o*=g):(i=0,a=0,o=0),u=v*o-h*a,s=h*i-d*o,f=d*a-v*i,g=Math.sqrt(u*u+s*s+f*f),g?(g=1/g,u*=g,s*=g,f*=g):(u=0,s=0,f=0),e[0]=i,e[1]=u,e[2]=d,e[3]=0,e[4]=a,e[5]=s,e[6]=v,e[7]=0,e[8]=o,e[9]=f,e[10]=h,e[11]=0,e[12]=-(i*_+a*A+o*b),e[13]=-(u*_+s*A+f*b),e[14]=-(d*_+v*A+h*b),e[15]=1,e)}var nae=iae;function iae(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}var Rde={create:tie,clone:nie,copy:aie,identity:SB,transpose:lie,invert:fie,adjoint:die,determinant:hie,multiply:gie,translate:yie,scale:wie,rotate:_ie,rotateX:Eie,rotateY:Cie,rotateZ:Rie,fromRotation:Iie,fromRotationTranslation:kie,fromScaling:Die,fromTranslation:Nie,fromXRotation:Bie,fromYRotation:zie,fromZRotation:jie,fromQuat:Gie,frustum:Hie,perspective:Yie,perspectiveFromFieldOfView:Kie,ortho:Zie,lookAt:tae,str:nae},RC={exports:{}};RC.exports=OC;RC.exports.isMobile=OC;RC.exports.default=OC;var aae=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,oae=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function OC(e){e||(e={});var t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;var r=e.tablet?oae.test(t):aae.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var uae=!0,lae=uae,SS;typeof _r.matchMedia=="function"?SS=!_r.matchMedia("(hover: none)").matches:SS=lae;var Ode=SS,EB={exports:{}},Yf=typeof Reflect=="object"?Reflect:null,qI=Yf&&typeof Yf.apply=="function"?Yf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Wm;Yf&&typeof Yf.ownKeys=="function"?Wm=Yf.ownKeys:Object.getOwnPropertySymbols?Wm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Wm=function(t){return Object.getOwnPropertyNames(t)};function sae(e){console&&console.warn&&console.warn(e)}var AB=Number.isNaN||function(t){return t!==t};function Dr(){Dr.init.call(this)}EB.exports=Dr;EB.exports.once=pae;Dr.EventEmitter=Dr;Dr.prototype._events=void 0;Dr.prototype._eventsCount=0;Dr.prototype._maxListeners=void 0;var HI=10;function b1(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Dr,"defaultMaxListeners",{enumerable:!0,get:function(){return HI},set:function(e){if(typeof e!="number"||e<0||AB(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");HI=e}});Dr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Dr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||AB(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function CB(e){return e._maxListeners===void 0?Dr.defaultMaxListeners:e._maxListeners}Dr.prototype.getMaxListeners=function(){return CB(this)};Dr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var u=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw u.context=o,u}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")qI(s,this,r);else for(var f=s.length,d=PB(s,f),n=0;n<f;++n)qI(d[n],this,r);return!0};function TB(e,t,r,n){var i,a,o;if(b1(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=CB(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,sae(u)}return e}Dr.prototype.addListener=function(t,r){return TB(this,t,r,!1)};Dr.prototype.on=Dr.prototype.addListener;Dr.prototype.prependListener=function(t,r){return TB(this,t,r,!0)};function fae(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function RB(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=fae.bind(n);return i.listener=r,n.wrapFn=i,i}Dr.prototype.once=function(t,r){return b1(r),this.on(t,RB(this,t,r)),this};Dr.prototype.prependOnceListener=function(t,r){return b1(r),this.prependListener(t,RB(this,t,r)),this};Dr.prototype.removeListener=function(t,r){var n,i,a,o,u;if(b1(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){u=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():cae(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,u||r)}return this};Dr.prototype.off=Dr.prototype.removeListener;Dr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function OB(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?dae(i):PB(i,i.length)}Dr.prototype.listeners=function(t){return OB(this,t,!0)};Dr.prototype.rawListeners=function(t){return OB(this,t,!1)};Dr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):IB.call(e,t)};Dr.prototype.listenerCount=IB;function IB(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Dr.prototype.eventNames=function(){return this._eventsCount>0?Wm(this._events):[]};function PB(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function cae(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function dae(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function pae(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}kB(e,t,a,{once:!0}),t!=="error"&&hae(e,i,{once:!0})})}function hae(e,t,r){typeof e.on=="function"&&kB(e,"error",t,r)}function kB(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var vae={left:0,top:0},Ide=gae;function gae(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=mae(t);return r[0]=n-a.left,r[1]=i-a.top,r}function mae(e){return e===window||e===document||e===document.body?vae:e.getBoundingClientRect()}function yae(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}var Pde=yae(),MB=wae,qx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},bae=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function wae(e){var t=[];return e.replace(bae,function(r,n,i){var a=n.toLowerCase();for(i=_ae(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==qx[a])return i.unshift(n),t.push(i);if(i.length<qx[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,qx[a])))}}),t}var xae=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function _ae(e){var t=e.match(xae);return t?t.map(Number):[]}function Sae(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var Eae=Sae;function Aae(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],u=i[0],s=i[1],f=r[0],d=r[1];return(u-a)*(d-o)-(s-o)*(f-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],u=r[0]-n[0],s=i[1]-n[1],f=u*o+a*s;if(f<e)return!1;var d=o*o+s*s;return!(f-d>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],o=r[1]-n[1],u=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-u*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],u=n[1]-r[1],s=a[0]-i[0],f=a[1]-i[1],d=o*f-u*s;if(Math.abs(d)<e)return!1;var v=r[0]-i[0],h=r[1]-i[1],g=(s*h-f*v)/d,_=(o*h-u*v)/d,A={alongA:0,alongB:0,pt:[r[0]+g*o,r[1]+g*u]};return g<=-e?A.alongA=-2:g<e?A.alongA=-1:g-1<=-e?A.alongA=0:g-1<e?A.alongA=1:A.alongA=2,_<=-e?A.alongB=-2:_<e?A.alongB=-1:_-1<=-e?A.alongB=0:_-1<e?A.alongB=1:A.alongB=2,A},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],u=n[n.length-1][1],s=!1,f=0;f<n.length;f++){var d=n[f][0],v=n[f][1];v-a>e!=u-a>e&&(o-d)*(a-v)/(u-v)+d-i>e&&(s=!s),o=d,u=v}return s}};return t}var Cae=Aae,Tae={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}},Rae=Tae,fp=Rae;function Oae(e,t,r){function n(_,A){return{id:r?r.segmentId():-1,start:_,end:A,myFill:{above:null,below:null},otherFill:null}}function i(_,A,b){return{id:r?r.segmentId():-1,start:_,end:A,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=fp.create();function o(_,A,b,w,S,E){var R=t.pointsCompare(A,S);return R!==0?R:t.pointsSame(b,E)?0:_!==w?_?1:-1:t.pointAboveOrOnLine(b,w?S:E,w?E:S)?1:-1}function u(_,A){a.insertBefore(_,function(b){var w=o(_.isStart,_.pt,A,b.isStart,b.pt,b.other.pt);return w<0})}function s(_,A){var b=fp.node({isStart:!0,pt:_.start,seg:_,primary:A,other:null,status:null});return u(b,_.end),b}function f(_,A,b){var w=fp.node({isStart:!1,pt:A.end,seg:A,primary:b,other:_,status:null});_.other=w,u(w,_.pt)}function d(_,A){var b=s(_,A);return f(b,_,A),b}function v(_,A){r&&r.segmentChop(_.seg,A),_.other.remove(),_.seg.end=A,_.other.pt=A,u(_.other,_.pt)}function h(_,A){var b=i(A,_.seg.end,_.seg);return v(_,A),d(b,_.primary)}function g(_,A){var b=fp.create();function w(Ee,Je){var je=Ee.seg.start,me=Ee.seg.end,Fe=Je.seg.start,qe=Je.seg.end;return t.pointsCollinear(je,Fe,qe)?t.pointsCollinear(me,Fe,qe)||t.pointAboveOrOnLine(me,Fe,qe)?1:-1:t.pointAboveOrOnLine(je,Fe,qe)?1:-1}function S(Ee){return b.findTransition(function(Je){var je=w(Ee,Je.ev);return je>0})}function E(Ee,Je){var je=Ee.seg,me=Je.seg,Fe=je.start,qe=je.end,Ue=me.start,be=me.end;r&&r.checkIntersection(je,me);var ye=t.linesIntersect(Fe,qe,Ue,be);if(ye===!1){if(!t.pointsCollinear(Fe,qe,Ue)||t.pointsSame(Fe,be)||t.pointsSame(qe,Ue))return!1;var Ke=t.pointsSame(Fe,Ue),We=t.pointsSame(qe,be);if(Ke&&We)return Je;var Ze=!Ke&&t.pointBetween(Fe,Ue,be),st=!We&&t.pointBetween(qe,Ue,be);if(Ke)return st?h(Je,qe):h(Ee,be),Je;Ze&&(We||(st?h(Je,qe):h(Ee,be)),h(Je,Fe))}else ye.alongA===0&&(ye.alongB===-1?h(Ee,Ue):ye.alongB===0?h(Ee,ye.pt):ye.alongB===1&&h(Ee,be)),ye.alongB===0&&(ye.alongA===-1?h(Je,Fe):ye.alongA===0?h(Je,ye.pt):ye.alongA===1&&h(Je,qe));return!1}for(var R=[];!a.isEmpty();){var M=a.getHead();if(r&&r.vert(M.pt[0]),M.isStart){let Ee=function(){if(z){var Je=E(M,z);if(Je)return Je}return N?E(M,N):!1};r&&r.segmentNew(M.seg,M.primary);var D=S(M),z=D.before?D.before.ev:null,N=D.after?D.after.ev:null;r&&r.tempStatus(M.seg,z?z.seg:!1,N?N.seg:!1);var L=Ee();if(L){if(e){var ee;M.seg.myFill.below===null?ee=!0:ee=M.seg.myFill.above!==M.seg.myFill.below,ee&&(L.seg.myFill.above=!L.seg.myFill.above)}else L.seg.otherFill=M.seg.myFill;r&&r.segmentUpdate(L.seg),M.other.remove(),M.remove()}if(a.getHead()!==M){r&&r.rewind(M.seg);continue}if(e){var ee;M.seg.myFill.below===null?ee=!0:ee=M.seg.myFill.above!==M.seg.myFill.below,N?M.seg.myFill.below=N.seg.myFill.above:M.seg.myFill.below=_,ee?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var ue;N?M.primary===N.primary?ue=N.seg.otherFill.above:ue=N.seg.myFill.above:ue=M.primary?A:_,M.seg.otherFill={above:ue,below:ue}}r&&r.status(M.seg,z?z.seg:!1,N?N.seg:!1),M.other.status=D.insert(fp.node({ev:M}))}else{var pe=M.status;if(pe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(pe.prev)&&b.exists(pe.next)&&E(pe.prev.ev,pe.next.ev),r&&r.statusRemove(pe.ev.seg),pe.remove(),!M.primary){var we=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=we}R.push(M.seg)}a.getHead().remove()}return r&&r.done(),R}return e?{addRegion:function(_){for(var A,b=_[_.length-1],w=0;w<_.length;w++){A=b,b=_[w];var S=t.pointsCompare(A,b);S!==0&&d(n(S<0?A:b,S<0?b:A),!0)}},calculate:function(_){return g(_,!1)}}:{calculate:function(_,A,b,w){return _.forEach(function(S){d(i(S.start,S.end,S),!0)}),b.forEach(function(S){d(i(S.start,S.end,S),!1)}),g(A,w)}}}var Iae=Oae;function Pae(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,u=a.end;if(t.pointsSame(o,u)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},d=s;function v(pe,we,Ee){return d.index=pe,d.matches_head=we,d.matches_pt1=Ee,d===s?(d=f,!1):(d=null,!0)}for(var h=0;h<n.length;h++){var g=n[h],_=g[0];g[1];var A=g[g.length-1];if(g[g.length-2],t.pointsSame(_,o)){if(v(h,!0,!0))break}else if(t.pointsSame(_,u)){if(v(h,!0,!1))break}else if(t.pointsSame(A,o)){if(v(h,!1,!0))break}else if(t.pointsSame(A,u)&&v(h,!1,!1))break}if(d===s){n.push([o,u]),r&&r.chainNew(o,u);return}if(d===f){r&&r.chainMatch(s.index);var b=s.index,w=s.matches_pt1?u:o,S=s.matches_head,g=n[b],E=S?g[0]:g[g.length-1],R=S?g[1]:g[g.length-2],M=S?g[g.length-1]:g[0],D=S?g[g.length-2]:g[1];if(t.pointsCollinear(R,E,w)&&(S?(r&&r.chainRemoveHead(s.index,w),g.shift()):(r&&r.chainRemoveTail(s.index,w),g.pop()),E=R),t.pointsSame(M,w)){n.splice(b,1),t.pointsCollinear(D,M,E)&&(S?(r&&r.chainRemoveTail(s.index,E),g.pop()):(r&&r.chainRemoveHead(s.index,E),g.shift())),r&&r.chainClose(s.index),i.push(g);return}S?(r&&r.chainAddHead(s.index,w),g.unshift(w)):(r&&r.chainAddTail(s.index,w),g.push(w));return}function z(pe){r&&r.chainReverse(pe),n[pe].reverse()}function N(pe,we){var Ee=n[pe],Je=n[we],je=Ee[Ee.length-1],me=Ee[Ee.length-2],Fe=Je[0],qe=Je[1];t.pointsCollinear(me,je,Fe)&&(r&&r.chainRemoveTail(pe,je),Ee.pop(),je=me),t.pointsCollinear(je,Fe,qe)&&(r&&r.chainRemoveHead(we,Fe),Je.shift()),r&&r.chainJoin(pe,we),n[pe]=Ee.concat(Je),n.splice(we,1)}var L=s.index,ee=f.index;r&&r.chainConnect(L,ee);var ue=n[L].length<n[ee].length;s.matches_head?f.matches_head?ue?(z(L),N(L,ee)):(z(ee),N(ee,L)):N(ee,L):f.matches_head?N(L,ee):ue?(z(L),N(ee,L)):(z(ee),N(L,ee))}),i}var kae=Pae;function cp(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var Mae={union:function(e,t){return cp(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return cp(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return cp(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return cp(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return cp(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},Dae=Mae,Fae={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var d=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[d]})}for(var u=o(a[0]),s=1;s<a.length;s++)u=e.selectDifference(e.combine(u,o(a[s])));return u}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(g,_){return t.pointInsideRegion([(g[0][0]+g[1][0])*.5,(g[0][1]+g[1][1])*.5],_)}function i(g){return{region:g,children:[]}}var a=i(null);function o(g,_){for(var A=0;A<g.children.length;A++){var b=g.children[A];if(n(_,b.region)){o(b,_);return}}for(var w=i(_),A=0;A<g.children.length;A++){var b=g.children[A];n(b.region,_)&&(w.children.push(b),g.children.splice(A,1),A--)}g.children.push(w)}for(var u=0;u<r.regions.length;u++){var s=r.regions[u];s.length<3||o(a,s)}function f(g,_){for(var A=0,b=g[g.length-1][0],w=g[g.length-1][1],S=[],E=0;E<g.length;E++){var R=g[E][0],M=g[E][1];S.push([R,M]),A+=M*b-R*w,b=R,w=M}var D=A<0;return D!==_&&S.reverse(),S.push([S[0][0],S[0][1]]),S}var d=[];function v(g){var _=[f(g.region,!1)];d.push(_);for(var A=0;A<g.children.length;A++)_.push(h(g.children[A]))}function h(g){for(var _=0;_<g.children.length;_++)v(g.children[_]);return f(g.region,!0)}for(var u=0;u<a.children.length;u++)v(a.children[u]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},Nae=Fae;/*
|
|
920
|
+
`)};function T(B){return B.map(k).join(l)}function k(B){return p.test(B)?'"'+B.replace(/\"/g,'""')+'"':B}return y},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var Is,Ju,vi,Ps,gi=this[Fe(this,"requestAnimationFrame")]||function(l){setTimeout(l,17)};t.timer=function(){Do.apply(this,arguments)};function Do(l,c,p){var m=arguments.length;m<2&&(c=0),m<3&&(p=Date.now());var y=p+c,x={c:l,t:y,n:null};return Ju?Ju.n=x:Is=x,Ju=x,vi||(Ps=clearTimeout(Ps),vi=1,gi(Fo)),x}function Fo(){var l=xa(),c=ks()-l;c>24?(isFinite(c)&&(clearTimeout(Ps),Ps=setTimeout(Fo,c)),vi=0):(vi=1,gi(Fo))}t.timer.flush=function(){xa(),ks()};function xa(){for(var l=Date.now(),c=Is;c;)l>=c.t&&c.c(l-c.t)&&(c.c=null),c=c.n;return l}function ks(){for(var l,c=Is,p=1/0;c;)c.c?(c.t<p&&(p=c.t),c=(l=c).n):c=l?l.n=c.n:Is=c.n;return Ju=l,p}t.round=function(l,c){return c?Math.round(l*(c=Math.pow(10,c)))/c:Math.round(l)},t.geom={};function Ki(l){return l[0]}function Qi(l){return l[1]}t.geom.hull=function(l){var c=Ki,p=Qi;if(arguments.length)return m(l);function m(y){if(y.length<3)return[];var x=Er(c),O=Er(p),T,k=y.length,B=[],$=[];for(T=0;T<k;T++)B.push([+x.call(this,y[T],T),+O.call(this,y[T],T),T]);for(B.sort(Ev),T=0;T<k;T++)$.push([B[T][0],-B[T][1]]);var W=el(B),G=el($),oe=G[0]===W[0],se=G[G.length-1]===W[W.length-1],H=[];for(T=W.length-1;T>=0;--T)H.push(y[B[W[T]][2]]);for(T=+oe;T<G.length-se;++T)H.push(y[B[G[T]][2]]);return H}return m.x=function(y){return arguments.length?(c=y,m):c},m.y=function(y){return arguments.length?(p=y,m):p},m};function el(l){for(var c=l.length,p=[0,1],m=2,y=2;y<c;y++){for(;m>1&&B1(l[p[m-2]],l[p[m-1]],l[y])<=0;)--m;p[m++]=y}return p.slice(0,m)}function Ev(l,c){return l[0]-c[0]||l[1]-c[1]}t.geom.polygon=function(l){return Rt(l,No),l};var No=t.geom.polygon.prototype=[];No.area=function(){for(var l=-1,c=this.length,p,m=this[c-1],y=0;++l<c;)p=m,m=this[l],y+=p[1]*m[0]-p[0]*m[1];return y*.5},No.centroid=function(l){var c=-1,p=this.length,m=0,y=0,x,O=this[p-1],T;for(arguments.length||(l=-1/(6*this.area()));++c<p;)x=O,O=this[c],T=x[0]*O[1]-O[0]*x[1],m+=(x[0]+O[0])*T,y+=(x[1]+O[1])*T;return[m*l,y*l]},No.clip=function(l){for(var c,p=Av(l),m=-1,y=this.length-Av(this),x,O,T=this[y-1],k,B,$;++m<y;){for(c=l.slice(),l.length=0,k=this[m],B=c[(O=c.length-p)-1],x=-1;++x<O;)$=c[x],Ms($,T,k)?(Ms(B,T,k)||l.push(Wc(B,$,T,k)),l.push($)):Ms(B,T,k)&&l.push(Wc(B,$,T,k)),B=$;p&&l.push(l[0]),T=k}return l};function Ms(l,c,p){return(p[0]-c[0])*(l[1]-c[1])<(p[1]-c[1])*(l[0]-c[0])}function Wc(l,c,p,m){var y=l[0],x=p[0],O=c[0]-y,T=m[0]-x,k=l[1],B=p[1],$=c[1]-k,W=m[1]-B,G=(T*(k-B)-W*(y-x))/(W*O-T*$);return[y+G*O,k+G*$]}function Av(l){var c=l[0],p=l[l.length-1];return!(c[0]-p[0]||c[1]-p[1])}var Lo,Ya,_a,tl=[],rl,Xa,Ka=[];function Gc(){Ns(this),this.edge=this.site=this.circle=null}function Ds(l){var c=tl.pop()||new Gc;return c.site=l,c}function nl(l){mi(l),_a.remove(l),tl.push(l),Ns(l)}function qc(l){var c=l.circle,p=c.x,m=c.cy,y={x:p,y:m},x=l.P,O=l.N,T=[l];nl(l);for(var k=x;k.circle&&S(p-k.circle.x)<fr&&S(m-k.circle.cy)<fr;)x=k.P,T.unshift(k),nl(k),k=x;T.unshift(k),mi(k);for(var B=O;B.circle&&S(p-B.circle.x)<fr&&S(m-B.circle.cy)<fr;)O=B.N,T.push(B),nl(B),B=O;T.push(B),mi(B);var $=T.length,W;for(W=1;W<$;++W)B=T[W],k=T[W-1],Bo(B.edge,k.site,B.site,y);k=T[0],B=T[$-1],B.edge=al(k.site,B.site,null,y),Qa(k),Qa(B)}function Cv(l){for(var c=l.x,p=l.y,m,y,x,O,T=_a._;T;)if(x=Hc(T,p)-c,x>fr)T=T.L;else if(O=c-Tv(T,p),O>fr){if(!T.R){m=T;break}T=T.R}else{x>-fr?(m=T.P,y=T):O>-fr?(m=T,y=T.N):m=y=T;break}var k=Ds(l);if(_a.insert(m,k),!(!m&&!y)){if(m===y){mi(m),y=Ds(m.site),_a.insert(k,y),k.edge=y.edge=al(m.site,k.site),Qa(m),Qa(y);return}if(!y){k.edge=al(m.site,k.site);return}mi(m),mi(y);var B=m.site,$=B.x,W=B.y,G=l.x-$,oe=l.y-W,se=y.site,H=se.x-$,K=se.y-W,re=2*(G*K-oe*H),fe=G*G+oe*oe,ce=H*H+K*K,ie={x:(K*fe-oe*ce)/re+$,y:(G*ce-H*fe)/re+W};Bo(y.edge,B,se,ie),k.edge=al(B,l,null,ie),y.edge=al(l,se,null,ie),Qa(m),Qa(y)}}function Hc(l,c){var p=l.site,m=p.x,y=p.y,x=y-c;if(!x)return m;var O=l.P;if(!O)return-1/0;p=O.site;var T=p.x,k=p.y,B=k-c;if(!B)return T;var $=T-m,W=1/x-1/B,G=$/B;return W?(-G+Math.sqrt(G*G-2*W*($*$/(-2*B)-k+B/2+y-x/2)))/W+m:(m+T)/2}function Tv(l,c){var p=l.N;if(p)return Hc(p,c);var m=l.site;return m.y===c?m.x:1/0}function Vc(l){this.site=l,this.edges=[]}Vc.prototype.prepare=function(){for(var l=this.edges,c=l.length,p;c--;)p=l[c].edge,(!p.b||!p.a)&&l.splice(c,1);return l.sort(Yc),l.length};function Rv(l){for(var c=l[0][0],p=l[1][0],m=l[0][1],y=l[1][1],x,O,T,k,B=Ya,$=B.length,W,G,oe,se,H,K;$--;)if(W=B[$],!(!W||!W.prepare()))for(oe=W.edges,se=oe.length,G=0;G<se;)K=oe[G].end(),T=K.x,k=K.y,H=oe[++G%se].start(),x=H.x,O=H.y,(S(T-x)>fr||S(k-O)>fr)&&(oe.splice(G,0,new Fs(j1(W.site,K,S(T-c)<fr&&y-k>fr?{x:c,y:S(x-c)<fr?O:y}:S(k-y)<fr&&p-T>fr?{x:S(O-y)<fr?x:p,y}:S(T-p)<fr&&k-m>fr?{x:p,y:S(x-p)<fr?O:m}:S(k-m)<fr&&T-c>fr?{x:S(O-m)<fr?x:c,y:m}:null),W.site,null)),++se)}function Yc(l,c){return c.angle-l.angle}function Ov(){Ns(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qa(l){var c=l.P,p=l.N;if(!(!c||!p)){var m=c.site,y=l.site,x=p.site;if(m!==x){var O=y.x,T=y.y,k=m.x-O,B=m.y-T,$=x.x-O,K=x.y-T,W=2*(k*K-B*$);if(!(W>=-pv)){var G=k*k+B*B,oe=$*$+K*K,se=(K*G-B*oe)/W,H=(k*oe-$*G)/W,K=H+T,re=Ka.pop()||new Ov;re.arc=l,re.site=y,re.x=se+O,re.y=K+Math.sqrt(se*se+H*H),re.cy=K,l.circle=re;for(var fe=null,ce=Xa._;ce;)if(re.y<ce.y||re.y===ce.y&&re.x<=ce.x)if(ce.L)ce=ce.L;else{fe=ce.P;break}else if(ce.R)ce=ce.R;else{fe=ce;break}Xa.insert(fe,re),fe||(rl=re)}}}}function mi(l){var c=l.circle;c&&(c.P||(rl=c.N),Xa.remove(c),Ka.push(c),Ns(c),l.circle=null)}function Xc(l,c,p,m){return function(y){var x=y.a,O=y.b,T=x.x,k=x.y,B=O.x,$=O.y,W=0,G=1,oe=B-T,se=$-k,H;if(H=l-T,!(!oe&&H>0)){if(H/=oe,oe<0){if(H<W)return;H<G&&(G=H)}else if(oe>0){if(H>G)return;H>W&&(W=H)}if(H=p-T,!(!oe&&H<0)){if(H/=oe,oe<0){if(H>G)return;H>W&&(W=H)}else if(oe>0){if(H<W)return;H<G&&(G=H)}if(H=c-k,!(!se&&H>0)){if(H/=se,se<0){if(H<W)return;H<G&&(G=H)}else if(se>0){if(H>G)return;H>W&&(W=H)}if(H=m-k,!(!se&&H<0)){if(H/=se,se<0){if(H>G)return;H>W&&(W=H)}else if(se>0){if(H<W)return;H<G&&(G=H)}return W>0&&(y.a={x:T+W*oe,y:k+W*se}),G<1&&(y.b={x:T+G*oe,y:k+G*se}),y}}}}}}function Kc(l){for(var c=Lo,p=Xc(l[0][0],l[0][1],l[1][0],l[1][1]),m=c.length,y;m--;)y=c[m],(!il(y,l)||!p(y)||S(y.a.x-y.b.x)<fr&&S(y.a.y-y.b.y)<fr)&&(y.a=y.b=null,c.splice(m,1))}function il(l,c){var p=l.b;if(p)return!0;var m=l.a,y=c[0][0],x=c[1][0],O=c[0][1],T=c[1][1],k=l.l,B=l.r,$=k.x,W=k.y,G=B.x,oe=B.y,se=($+G)/2,H=(W+oe)/2,K,re;if(oe===W){if(se<y||se>=x)return;if($>G){if(!m)m={x:se,y:O};else if(m.y>=T)return;p={x:se,y:T}}else{if(!m)m={x:se,y:T};else if(m.y<O)return;p={x:se,y:O}}}else if(K=($-G)/(oe-W),re=H-K*se,K<-1||K>1)if($>G){if(!m)m={x:(O-re)/K,y:O};else if(m.y>=T)return;p={x:(T-re)/K,y:T}}else{if(!m)m={x:(T-re)/K,y:T};else if(m.y<O)return;p={x:(O-re)/K,y:O}}else if(W<oe){if(!m)m={x:y,y:K*y+re};else if(m.x>=x)return;p={x,y:K*x+re}}else{if(!m)m={x,y:K*x+re};else if(m.x<y)return;p={x:y,y:K*y+re}}return l.a=m,l.b=p,!0}function Iv(l,c){this.l=l,this.r=c,this.a=this.b=null}function al(l,c,p,m){var y=new Iv(l,c);return Lo.push(y),p&&Bo(y,l,c,p),m&&Bo(y,c,l,m),Ya[l.i].edges.push(new Fs(y,l,c)),Ya[c.i].edges.push(new Fs(y,c,l)),y}function j1(l,c,p){var m=new Iv(l,null);return m.a=c,m.b=p,Lo.push(m),m}function Bo(l,c,p,m){!l.a&&!l.b?(l.a=m,l.l=c,l.r=p):l.l===p?l.b=m:l.a=m}function Fs(l,c,p){var m=l.a,y=l.b;this.edge=l,this.site=c,this.angle=p?Math.atan2(p.y-c.y,p.x-c.x):l.l===c?Math.atan2(y.x-m.x,m.y-y.y):Math.atan2(m.x-y.x,y.y-m.y)}Fs.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function Qc(){this._=null}function Ns(l){l.U=l.C=l.L=l.R=l.P=l.N=null}Qc.prototype={insert:function(l,c){var p,m,y;if(l){if(c.P=l,c.N=l.N,l.N&&(l.N.P=c),l.N=c,l.R){for(l=l.R;l.L;)l=l.L;l.L=c}else l.R=c;p=l}else this._?(l=Ls(this._),c.P=null,c.N=l,l.P=l.L=c,p=l):(c.P=c.N=null,this._=c,p=null);for(c.L=c.R=null,c.U=p,c.C=!0,l=c;p&&p.C;)m=p.U,p===m.L?(y=m.R,y&&y.C?(p.C=y.C=!1,m.C=!0,l=m):(l===p.R&&(Za(this,p),l=p,p=l.U),p.C=!1,m.C=!0,ol(this,m))):(y=m.L,y&&y.C?(p.C=y.C=!1,m.C=!0,l=m):(l===p.L&&(ol(this,p),l=p,p=l.U),p.C=!1,m.C=!0,Za(this,m))),p=l.U;this._.C=!1},remove:function(l){l.N&&(l.N.P=l.P),l.P&&(l.P.N=l.N),l.N=l.P=null;var c=l.U,p,m=l.L,y=l.R,x,O;if(m?y?x=Ls(y):x=m:x=y,c?c.L===l?c.L=x:c.R=x:this._=x,m&&y?(O=x.C,x.C=l.C,x.L=m,m.U=x,x!==y?(c=x.U,x.U=l.U,l=x.R,c.L=l,x.R=y,y.U=x):(x.U=c,c=x,l=x.R)):(O=l.C,l=x),l&&(l.U=c),!O){if(l&&l.C){l.C=!1;return}do{if(l===this._)break;if(l===c.L){if(p=c.R,p.C&&(p.C=!1,c.C=!0,Za(this,c),p=c.R),p.L&&p.L.C||p.R&&p.R.C){(!p.R||!p.R.C)&&(p.L.C=!1,p.C=!0,ol(this,p),p=c.R),p.C=c.C,c.C=p.R.C=!1,Za(this,c),l=this._;break}}else if(p=c.L,p.C&&(p.C=!1,c.C=!0,ol(this,c),p=c.L),p.L&&p.L.C||p.R&&p.R.C){(!p.L||!p.L.C)&&(p.R.C=!1,p.C=!0,Za(this,p),p=c.L),p.C=c.C,c.C=p.L.C=!1,ol(this,c),l=this._;break}p.C=!0,l=c,c=c.U}while(!l.C);l&&(l.C=!1)}}};function Za(l,c){var p=c,m=c.R,y=p.U;y?y.L===p?y.L=m:y.R=m:l._=m,m.U=y,p.U=m,p.R=m.L,p.R&&(p.R.U=p),m.L=p}function ol(l,c){var p=c,m=c.L,y=p.U;y?y.L===p?y.L=m:y.R=m:l._=m,m.U=y,p.U=m,p.L=m.R,p.L&&(p.L.U=p),m.R=p}function Ls(l){for(;l.L;)l=l.L;return l}function Bs(l,c){var p=l.sort(Pv).pop(),m,y,x;for(Lo=[],Ya=new Array(l.length),_a=new Qc,Xa=new Qc;;)if(x=rl,p&&(!x||p.y<x.y||p.y===x.y&&p.x<x.x))(p.x!==m||p.y!==y)&&(Ya[p.i]=new Vc(p),Cv(p),m=p.x,y=p.y),p=l.pop();else if(x)qc(x.arc);else break;c&&(Kc(c),Rv(c));var O={cells:Ya,edges:Lo};return _a=Xa=Lo=Ya=null,O}function Pv(l,c){return c.y-l.y||c.x-l.x}t.geom.voronoi=function(l){var c=Ki,p=Qi,m=c,y=p,x=$o;if(l)return O(l);function O(k){var B=new Array(k.length),$=x[0][0],W=x[0][1],G=x[1][0],oe=x[1][1];return Bs(T(k),x).cells.forEach(function(se,H){var K=se.edges,re=se.site,fe=B[H]=K.length?K.map(function(ce){var ie=ce.start();return[ie.x,ie.y]}):re.x>=$&&re.x<=G&&re.y>=W&&re.y<=oe?[[$,oe],[G,oe],[G,W],[$,W]]:[];fe.point=k[H]}),B}function T(k){return k.map(function(B,$){return{x:Math.round(m(B,$)/fr)*fr,y:Math.round(y(B,$)/fr)*fr,i:$}})}return O.links=function(k){return Bs(T(k)).edges.filter(function(B){return B.l&&B.r}).map(function(B){return{source:k[B.l.i],target:k[B.r.i]}})},O.triangles=function(k){var B=[];return Bs(T(k)).cells.forEach(function($,W){for(var G=$.site,oe=$.edges.sort(Yc),se=-1,H=oe.length,K,re=oe[H-1].edge,fe=re.l===G?re.r:re.l;++se<H;)K=fe,re=oe[se].edge,fe=re.l===G?re.r:re.l,W<K.i&&W<fe.i&&W1(G,K,fe)<0&&B.push([k[W],k[K.i],k[fe.i]])}),B},O.x=function(k){return arguments.length?(m=Er(c=k),O):c},O.y=function(k){return arguments.length?(y=Er(p=k),O):p},O.clipExtent=function(k){return arguments.length?(x=k==null?$o:k,O):x===$o?null:x},O.size=function(k){return arguments.length?O.clipExtent(k&&[[0,0],k]):x===$o?null:x&&x[1]},O};var $o=[[-1e6,-1e6],[1e6,1e6]];function W1(l,c,p){return(l.x-p.x)*(c.y-l.y)-(l.x-c.x)*(p.y-l.y)}t.geom.delaunay=function(l){return t.geom.voronoi().triangles(l)},t.geom.quadtree=function(l,c,p,m,y){var x=Ki,O=Qi,T;if(T=arguments.length)return x=$s,O=G1,T===3&&(y=p,m=c,p=c=0),k(l);function k(B){var $,W=Er(x),G=Er(O),oe,se,H,K,re,fe,ce,ie;if(c!=null)re=c,fe=p,ce=m,ie=y;else if(ce=ie=-(re=fe=1/0),oe=[],se=[],K=B.length,T)for(H=0;H<K;++H)$=B[H],$.x<re&&(re=$.x),$.y<fe&&(fe=$.y),$.x>ce&&(ce=$.x),$.y>ie&&(ie=$.y),oe.push($.x),se.push($.y);else for(H=0;H<K;++H){var $e=+W($=B[H],H),Ye=+G($,H);$e<re&&(re=$e),Ye<fe&&(fe=Ye),$e>ce&&(ce=$e),Ye>ie&&(ie=Ye),oe.push($e),se.push(Ye)}var ut=ce-re,Xe=ie-fe;ut>Xe?ie=fe+ut:ce=re+Xe;function ct(Et,Vt,cr,Lr,br,lt,Xt,Jt){if(!(isNaN(cr)||isNaN(Lr)))if(Et.leaf){var dr=Et.x,kr=Et.y;if(dr!=null)if(S(dr-cr)+S(kr-Lr)<.01)wt(Et,Vt,cr,Lr,br,lt,Xt,Jt);else{var qr=Et.point;Et.x=Et.y=Et.point=null,wt(Et,qr,dr,kr,br,lt,Xt,Jt),wt(Et,Vt,cr,Lr,br,lt,Xt,Jt)}else Et.x=cr,Et.y=Lr,Et.point=Vt}else wt(Et,Vt,cr,Lr,br,lt,Xt,Jt)}function wt(Et,Vt,cr,Lr,br,lt,Xt,Jt){var dr=(br+Xt)*.5,kr=(lt+Jt)*.5,qr=cr>=dr,Zr=Lr>=kr,bn=Zr<<1|qr;Et.leaf=!1,Et=Et.nodes[bn]||(Et.nodes[bn]=kv()),qr?br=dr:Xt=dr,Zr?lt=kr:Jt=kr,ct(Et,Vt,cr,Lr,br,lt,Xt,Jt)}var Yt=kv();if(Yt.add=function(Et){ct(Yt,Et,+W(Et,++H),+G(Et,H),re,fe,ce,ie)},Yt.visit=function(Et){ul(Et,Yt,re,fe,ce,ie)},Yt.find=function(Et){return q1(Yt,Et[0],Et[1],re,fe,ce,ie)},H=-1,c==null){for(;++H<K;)ct(Yt,B[H],oe[H],se[H],re,fe,ce,ie);--H}else B.forEach(Yt.add);return oe=se=B=$=null,Yt}return k.x=function(B){return arguments.length?(x=B,k):x},k.y=function(B){return arguments.length?(O=B,k):O},k.extent=function(B){return arguments.length?(B==null?c=p=m=y=null:(c=+B[0][0],p=+B[0][1],m=+B[1][0],y=+B[1][1]),k):c==null?null:[[c,p],[m,y]]},k.size=function(B){return arguments.length?(B==null?c=p=m=y=null:(c=p=0,m=+B[0],y=+B[1]),k):c==null?null:[m-c,y-p]},k};function $s(l){return l.x}function G1(l){return l.y}function kv(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function ul(l,c,p,m,y,x){if(!l(c,p,m,y,x)){var O=(p+y)*.5,T=(m+x)*.5,k=c.nodes;k[0]&&ul(l,k[0],p,m,O,T),k[1]&&ul(l,k[1],O,m,y,T),k[2]&&ul(l,k[2],p,T,O,x),k[3]&&ul(l,k[3],O,T,y,x)}}function q1(l,c,p,m,y,x,O){var T=1/0,k;return function B($,W,G,oe,se){if(!(W>x||G>O||oe<m||se<y)){if(H=$.point){var H,K=c-$.x,re=p-$.y,fe=K*K+re*re;if(fe<T){var ce=Math.sqrt(T=fe);m=c-ce,y=p-ce,x=c+ce,O=p+ce,k=H}}for(var ie=$.nodes,$e=(W+oe)*.5,Ye=(G+se)*.5,ut=c>=$e,Xe=p>=Ye,ct=Xe<<1|ut,wt=ct+4;ct<wt;++ct)if($=ie[ct&3])switch(ct&3){case 0:B($,W,G,$e,Ye);break;case 1:B($,$e,G,oe,Ye);break;case 2:B($,W,Ye,$e,se);break;case 3:B($,$e,Ye,oe,se);break}}}(l,m,y,x,O),k}t.interpolateRgb=Zc;function Zc(l,c){l=t.rgb(l),c=t.rgb(c);var p=l.r,m=l.g,y=l.b,x=c.r-p,O=c.g-m,T=c.b-y;return function(k){return"#"+ko(Math.round(p+x*k))+ko(Math.round(m+O*k))+ko(Math.round(y+T*k))}}t.interpolateObject=Mv;function Mv(l,c){var p={},m={},y;for(y in l)y in c?p[y]=Ii(l[y],c[y]):m[y]=l[y];for(y in c)y in l||(m[y]=c[y]);return function(x){for(y in p)m[y]=p[y](x);return m}}t.interpolateNumber=Zi;function Zi(l,c){return l=+l,c=+c,function(p){return l*(1-p)+c*p}}t.interpolateString=Jc;function Jc(l,c){var p=Ja.lastIndex=ed.lastIndex=0,m,y,x,O=-1,T=[],k=[];for(l=l+"",c=c+"";(m=Ja.exec(l))&&(y=ed.exec(c));)(x=y.index)>p&&(x=c.slice(p,x),T[O]?T[O]+=x:T[++O]=x),(m=m[0])===(y=y[0])?T[O]?T[O]+=y:T[++O]=y:(T[++O]=null,k.push({i:O,x:Zi(m,y)})),p=ed.lastIndex;return p<c.length&&(x=c.slice(p),T[O]?T[O]+=x:T[++O]=x),T.length<2?k[0]?(c=k[0].x,function(B){return c(B)+""}):function(){return c}:(c=k.length,function(B){for(var $=0,W;$<c;++$)T[(W=k[$]).i]=W.x(B);return T.join("")})}var Ja=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ed=new RegExp(Ja.source,"g");t.interpolate=Ii;function Ii(l,c){for(var p=t.interpolators.length,m;--p>=0&&!(m=t.interpolators[p](l,c)););return m}t.interpolators=[function(l,c){var p=typeof c;return(p==="string"?Mo.has(c.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(c)?Zc:Jc:c instanceof ya?Zc:Array.isArray(c)?Bn:p==="object"&&isNaN(c)?Mv:Zi)(l,c)}],t.interpolateArray=Bn;function Bn(l,c){var p=[],m=[],y=l.length,x=c.length,O=Math.min(l.length,c.length),T;for(T=0;T<O;++T)p.push(Ii(l[T],c[T]));for(;T<y;++T)m[T]=l[T];for(;T<x;++T)m[T]=c[T];return function(k){for(T=0;T<O;++T)m[T]=p[T](k);return m}}var eo=function(){return je},Dv=t.map({linear:eo,poly:an,quad:function(){return Lv},cubic:function(){return H1},sin:function(){return Bv},exp:function(){return $v},circle:function(){return to},elastic:zv,back:Uv,bounce:function(){return V1}}),Fv=t.map({in:je,out:td,"in-out":rd,"out-in":function(l){return rd(td(l))}});t.ease=function(l){var c=l.indexOf("-"),p=c>=0?l.slice(0,c):l,m=c>=0?l.slice(c+1):"in";return p=Dv.get(p)||eo,m=Fv.get(m)||je,Nv(m(p.apply(null,r.call(arguments,1))))};function Nv(l){return function(c){return c<=0?0:c>=1?1:l(c)}}function td(l){return function(c){return 1-l(1-c)}}function rd(l){return function(c){return .5*(c<.5?l(2*c):2-l(2-2*c))}}function Lv(l){return l*l}function H1(l){return l*l*l}function zo(l){if(l<=0)return 0;if(l>=1)return 1;var c=l*l,p=c*l;return 4*(l<.5?p:3*(l-c)+p-.75)}function an(l){return function(c){return Math.pow(c,l)}}function Bv(l){return 1-Math.cos(l*Oi)}function $v(l){return Math.pow(2,10*(l-1))}function to(l){return 1-Math.sqrt(1-l*l)}function zv(l,c){var p;return arguments.length<2&&(c=.45),arguments.length?p=c/Po*Math.asin(1/l):(l=1,p=c/4),function(m){return 1+l*Math.pow(2,-10*m)*Math.sin((m-p)*Po/c)}}function Uv(l){return l||(l=1.70158),function(c){return c*c*((l+1)*c-l)}}function V1(l){return l<1/2.75?7.5625*l*l:l<2/2.75?7.5625*(l-=1.5/2.75)*l+.75:l<2.5/2.75?7.5625*(l-=2.25/2.75)*l+.9375:7.5625*(l-=2.625/2.75)*l+.984375}t.interpolateHcl=Y1;function Y1(l,c){l=t.hcl(l),c=t.hcl(c);var p=l.h,m=l.c,y=l.l,x=c.h-p,O=c.c-m,T=c.l-y;return isNaN(O)&&(O=0,m=isNaN(m)?c.c:m),isNaN(x)?(x=0,p=isNaN(p)?c.h:p):x>180?x-=360:x<-180&&(x+=360),function(k){return Zu(p+x*k,m+O*k,y+T*k)+""}}t.interpolateHsl=X1;function X1(l,c){l=t.hsl(l),c=t.hsl(c);var p=l.h,m=l.s,y=l.l,x=c.h-p,O=c.s-m,T=c.l-y;return isNaN(O)&&(O=0,m=isNaN(m)?c.s:m),isNaN(x)?(x=0,p=isNaN(p)?c.h:p):x>180?x-=360:x<-180&&(x+=360),function(k){return Cs(p+x*k,m+O*k,y+T*k)+""}}t.interpolateLab=K1;function K1(l,c){l=t.lab(l),c=t.lab(c);var p=l.l,m=l.a,y=l.b,x=c.l-p,O=c.a-m,T=c.b-y;return function(k){return wv(p+x*k,m+O*k,y+T*k)+""}}t.interpolateRound=zs;function zs(l,c){return c-=l,function(p){return Math.round(l+c*p)}}t.transform=function(l){var c=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(p){if(p!=null){c.setAttribute("transform",p);var m=c.transform.baseVal.consolidate()}return new nd(m?m.matrix:Q1)})(l)};function nd(l){var c=[l.a,l.b],p=[l.c,l.d],m=id(c),y=jv(c,p),x=id(Wv(p,c,-y))||0;c[0]*p[1]<p[0]*c[1]&&(c[0]*=-1,c[1]*=-1,m*=-1,y*=-1),this.rotate=(m?Math.atan2(c[1],c[0]):Math.atan2(-p[0],p[1]))*Yu,this.translate=[l.e,l.f],this.scale=[m,x],this.skew=x?Math.atan2(y,x)*Yu:0}nd.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function jv(l,c){return l[0]*c[0]+l[1]*c[1]}function id(l){var c=Math.sqrt(jv(l,l));return c&&(l[0]/=c,l[1]/=c),c}function Wv(l,c,p){return l[0]+=p*c[0],l[1]+=p*c[1],l}var Q1={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=ad;function Ji(l){return l.length?l.pop()+",":""}function Z1(l,c,p,m){if(l[0]!==c[0]||l[1]!==c[1]){var y=p.push("translate(",null,",",null,")");m.push({i:y-4,x:Zi(l[0],c[0])},{i:y-2,x:Zi(l[1],c[1])})}else(c[0]||c[1])&&p.push("translate("+c+")")}function Sa(l,c,p,m){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),m.push({i:p.push(Ji(p)+"rotate(",null,")")-2,x:Zi(l,c)})):c&&p.push(Ji(p)+"rotate("+c+")")}function Us(l,c,p,m){l!==c?m.push({i:p.push(Ji(p)+"skewX(",null,")")-2,x:Zi(l,c)}):c&&p.push(Ji(p)+"skewX("+c+")")}function Gv(l,c,p,m){if(l[0]!==c[0]||l[1]!==c[1]){var y=p.push(Ji(p)+"scale(",null,",",null,")");m.push({i:y-4,x:Zi(l[0],c[0])},{i:y-2,x:Zi(l[1],c[1])})}else(c[0]!==1||c[1]!==1)&&p.push(Ji(p)+"scale("+c+")")}function ad(l,c){var p=[],m=[];return l=t.transform(l),c=t.transform(c),Z1(l.translate,c.translate,p,m),Sa(l.rotate,c.rotate,p,m),Us(l.skew,c.skew,p,m),Gv(l.scale,c.scale,p,m),l=c=null,function(y){for(var x=-1,O=m.length,T;++x<O;)p[(T=m[x]).i]=T.x(y);return p.join("")}}function qv(l,c){return c=(c-=l=+l)||1/c,function(p){return(p-l)/c}}function Hv(l,c){return c=(c-=l=+l)||1/c,function(p){return Math.max(0,Math.min(1,(p-l)/c))}}t.layout={},t.layout.bundle=function(){return function(l){for(var c=[],p=-1,m=l.length;++p<m;)c.push(Vv(l[p]));return c}};function Vv(l){for(var c=l.source,p=l.target,m=Yv(c,p),y=[c];c!==m;)c=c.parent,y.push(c);for(var x=y.length;p!==m;)y.splice(x,0,p),p=p.parent;return y}function od(l){for(var c=[],p=l.parent;p!=null;)c.push(l),l=p,p=p.parent;return c.push(l),c}function Yv(l,c){if(l===c)return l;for(var p=od(l),m=od(c),y=p.pop(),x=m.pop(),O=null;y===x;)O=y,y=p.pop(),x=m.pop();return O}t.layout.chord=function(){var l={},c,p,m,y,x=0,O,T,k;function B(){var W={},G=[],oe=t.range(y),se=[],H,K,re,fe,ce;for(c=[],p=[],H=0,fe=-1;++fe<y;){for(K=0,ce=-1;++ce<y;)K+=m[fe][ce];G.push(K),se.push(t.range(y)),H+=K}for(O&&oe.sort(function(Yt,Et){return O(G[Yt],G[Et])}),T&&se.forEach(function(Yt,Et){Yt.sort(function(Vt,cr){return T(m[Et][Vt],m[Et][cr])})}),H=(Po-x*y)/H,K=0,fe=-1;++fe<y;){for(re=K,ce=-1;++ce<y;){var ie=oe[fe],$e=se[ie][ce],Ye=m[ie][$e],ut=K,Xe=K+=Ye*H;W[ie+"-"+$e]={index:ie,subindex:$e,startAngle:ut,endAngle:Xe,value:Ye}}p[ie]={index:ie,startAngle:re,endAngle:K,value:G[ie]},K+=x}for(fe=-1;++fe<y;)for(ce=fe-1;++ce<y;){var ct=W[fe+"-"+ce],wt=W[ce+"-"+fe];(ct.value||wt.value)&&c.push(ct.value<wt.value?{source:wt,target:ct}:{source:ct,target:wt})}k&&$()}function $(){c.sort(function(W,G){return k((W.source.value+W.target.value)/2,(G.source.value+G.target.value)/2)})}return l.matrix=function(W){return arguments.length?(y=(m=W)&&m.length,c=p=null,l):m},l.padding=function(W){return arguments.length?(x=W,c=p=null,l):x},l.sortGroups=function(W){return arguments.length?(O=W,c=p=null,l):O},l.sortSubgroups=function(W){return arguments.length?(T=W,c=null,l):T},l.sortChords=function(W){return arguments.length?(k=W,c&&$(),l):k},l.chords=function(){return c||B(),c},l.groups=function(){return p||B(),p},l},t.layout.force=function(){var l={},c=t.dispatch("start","tick","end"),p,m=[1,1],y,x,O=.9,T=ea,k=ud,B=-30,$=Uo,W=.1,G=.64,oe=[],se=[],H,K,re;function fe(ie){return function($e,Ye,ut,Xe){if($e.point!==ie){var ct=$e.cx-ie.x,wt=$e.cy-ie.y,Yt=Xe-Ye,Et=ct*ct+wt*wt;if(Yt*Yt/G<Et){if(Et<$){var Vt=$e.charge/Et;ie.px-=ct*Vt,ie.py-=wt*Vt}return!0}if($e.point&&Et&&Et<$){var Vt=$e.pointCharge/Et;ie.px-=ct*Vt,ie.py-=wt*Vt}}return!$e.charge}}l.tick=function(){if((x*=.99)<.005)return p=null,c.end({type:"end",alpha:x=0}),!0;var ie=oe.length,$e=se.length,Ye,ut,Xe,ct,wt,Yt,Et,Vt,cr;for(ut=0;ut<$e;++ut)Xe=se[ut],ct=Xe.source,wt=Xe.target,Vt=wt.x-ct.x,cr=wt.y-ct.y,(Yt=Vt*Vt+cr*cr)&&(Yt=x*K[ut]*((Yt=Math.sqrt(Yt))-H[ut])/Yt,Vt*=Yt,cr*=Yt,wt.x-=Vt*(Et=ct.weight+wt.weight?ct.weight/(ct.weight+wt.weight):.5),wt.y-=cr*Et,ct.x+=Vt*(Et=1-Et),ct.y+=cr*Et);if((Et=x*W)&&(Vt=m[0]/2,cr=m[1]/2,ut=-1,Et))for(;++ut<ie;)Xe=oe[ut],Xe.x+=(Vt-Xe.x)*Et,Xe.y+=(cr-Xe.y)*Et;if(B)for(Zv(Ye=t.geom.quadtree(oe),x,re),ut=-1;++ut<ie;)(Xe=oe[ut]).fixed||Ye.visit(fe(Xe));for(ut=-1;++ut<ie;)Xe=oe[ut],Xe.fixed?(Xe.x=Xe.px,Xe.y=Xe.py):(Xe.x-=(Xe.px-(Xe.px=Xe.x))*O,Xe.y-=(Xe.py-(Xe.py=Xe.y))*O);c.tick({type:"tick",alpha:x})},l.nodes=function(ie){return arguments.length?(oe=ie,l):oe},l.links=function(ie){return arguments.length?(se=ie,l):se},l.size=function(ie){return arguments.length?(m=ie,l):m},l.linkDistance=function(ie){return arguments.length?(T=typeof ie=="function"?ie:+ie,l):T},l.distance=l.linkDistance,l.linkStrength=function(ie){return arguments.length?(k=typeof ie=="function"?ie:+ie,l):k},l.friction=function(ie){return arguments.length?(O=+ie,l):O},l.charge=function(ie){return arguments.length?(B=typeof ie=="function"?ie:+ie,l):B},l.chargeDistance=function(ie){return arguments.length?($=ie*ie,l):Math.sqrt($)},l.gravity=function(ie){return arguments.length?(W=+ie,l):W},l.theta=function(ie){return arguments.length?(G=ie*ie,l):Math.sqrt(G)},l.alpha=function(ie){return arguments.length?(ie=+ie,x?ie>0?x=ie:(p.c=null,p.t=NaN,p=null,c.end({type:"end",alpha:x=0})):ie>0&&(c.start({type:"start",alpha:x=ie}),p=Do(l.tick)),l):x},l.start=function(){var ie,$e=oe.length,Ye=se.length,ut=m[0],Xe=m[1],ct,wt;for(ie=0;ie<$e;++ie)(wt=oe[ie]).index=ie,wt.weight=0;for(ie=0;ie<Ye;++ie)wt=se[ie],typeof wt.source=="number"&&(wt.source=oe[wt.source]),typeof wt.target=="number"&&(wt.target=oe[wt.target]),++wt.source.weight,++wt.target.weight;for(ie=0;ie<$e;++ie)wt=oe[ie],isNaN(wt.x)&&(wt.x=Yt("x",ut)),isNaN(wt.y)&&(wt.y=Yt("y",Xe)),isNaN(wt.px)&&(wt.px=wt.x),isNaN(wt.py)&&(wt.py=wt.y);if(H=[],typeof T=="function")for(ie=0;ie<Ye;++ie)H[ie]=+T.call(this,se[ie],ie);else for(ie=0;ie<Ye;++ie)H[ie]=T;if(K=[],typeof k=="function")for(ie=0;ie<Ye;++ie)K[ie]=+k.call(this,se[ie],ie);else for(ie=0;ie<Ye;++ie)K[ie]=k;if(re=[],typeof B=="function")for(ie=0;ie<$e;++ie)re[ie]=+B.call(this,oe[ie],ie);else for(ie=0;ie<$e;++ie)re[ie]=B;function Yt(Et,Vt){if(!ct){for(ct=new Array($e),br=0;br<$e;++br)ct[br]=[];for(br=0;br<Ye;++br){var cr=se[br];ct[cr.source.index].push(cr.target),ct[cr.target.index].push(cr.source)}}for(var Lr=ct[ie],br=-1,lt=Lr.length,Xt;++br<lt;)if(!isNaN(Xt=Lr[br][Et]))return Xt;return Math.random()*Vt}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(y||(y=t.behavior.drag().origin(je).on("dragstart.force",Xv).on("drag.force",ce).on("dragend.force",Kv)),!arguments.length)return y;this.on("mouseover.force",yi).on("mouseout.force",Qv).call(y)};function ce(ie){ie.px=t.event.x,ie.py=t.event.y,l.resume()}return t.rebind(l,c,"on")};function Xv(l){l.fixed|=2}function Kv(l){l.fixed&=-7}function yi(l){l.fixed|=4,l.px=l.x,l.py=l.y}function Qv(l){l.fixed&=-5}function Zv(l,c,p){var m=0,y=0;if(l.charge=0,!l.leaf)for(var x=l.nodes,O=x.length,T=-1,k;++T<O;)k=x[T],k!=null&&(Zv(k,c,p),l.charge+=k.charge,m+=k.charge*k.cx,y+=k.charge*k.cy);if(l.point){l.leaf||(l.point.x+=Math.random()-.5,l.point.y+=Math.random()-.5);var B=c*p[l.point.index];l.charge+=l.pointCharge=B,m+=B*l.point.x,y+=B*l.point.y}l.cx=m/l.charge,l.cy=y/l.charge}var ea=20,ud=1,Uo=1/0;t.layout.hierarchy=function(){var l=J1,c=Jv,p=eg;function m(y){var x=[y],O=[],T;for(y.depth=0;(T=x.pop())!=null;)if(O.push(T),(B=c.call(m,T,T.depth))&&(k=B.length)){for(var k,B,$;--k>=0;)x.push($=B[k]),$.parent=T,$.depth=T.depth+1;p&&(T.value=0),T.children=B}else p&&(T.value=+p.call(m,T,T.depth)||0),delete T.children;return bi(y,function(W){var G,oe;l&&(G=W.children)&&G.sort(l),p&&(oe=W.parent)&&(oe.value+=W.value)}),O}return m.sort=function(y){return arguments.length?(l=y,m):l},m.children=function(y){return arguments.length?(c=y,m):c},m.value=function(y){return arguments.length?(p=y,m):p},m.revalue=function(y){return p&&(Wo(y,function(x){x.children&&(x.value=0)}),bi(y,function(x){var O;x.children||(x.value=+p.call(m,x,x.depth)||0),(O=x.parent)&&(O.value+=x.value)})),y},m};function jo(l,c){return t.rebind(l,c,"sort","children","value"),l.nodes=l,l.links=eb,l}function Wo(l,c){for(var p=[l];(l=p.pop())!=null;)if(c(l),(y=l.children)&&(m=y.length))for(var m,y;--m>=0;)p.push(y[m])}function bi(l,c){for(var p=[l],m=[];(l=p.pop())!=null;)if(m.push(l),(O=l.children)&&(x=O.length))for(var y=-1,x,O;++y<x;)p.push(O[y]);for(;(l=m.pop())!=null;)c(l)}function Jv(l){return l.children}function eg(l){return l.value}function J1(l,c){return c.value-l.value}function eb(l){return t.merge(l.map(function(c){return(c.children||[]).map(function(p){return{source:c,target:p}})}))}t.layout.partition=function(){var l=t.layout.hierarchy(),c=[1,1];function p(x,O,T,k){var B=x.children;if(x.x=O,x.y=x.depth*k,x.dx=T,x.dy=k,B&&(W=B.length)){var $=-1,W,G,oe;for(T=x.value?T/x.value:0;++$<W;)p(G=B[$],O,oe=G.value*T,k),O+=oe}}function m(x){var O=x.children,T=0;if(O&&(B=O.length))for(var k=-1,B;++k<B;)T=Math.max(T,m(O[k]));return 1+T}function y(x,O){var T=l.call(this,x,O);return p(T[0],0,c[0],c[1]/m(T[0])),T}return y.size=function(x){return arguments.length?(c=x,y):c},jo(y,l)},t.layout.pie=function(){var l=Number,c=tg,p=0,m=Po,y=0;function x(O){var T=O.length,k=O.map(function(fe,ce){return+l.call(x,fe,ce)}),B=+(typeof p=="function"?p.apply(this,arguments):p),$=(typeof m=="function"?m.apply(this,arguments):m)-B,W=Math.min(Math.abs($)/T,+(typeof y=="function"?y.apply(this,arguments):y)),G=W*($<0?-1:1),oe=t.sum(k),se=oe?($-T*G)/oe:0,H=t.range(T),K=[],re;return c!=null&&H.sort(c===tg?function(fe,ce){return k[ce]-k[fe]}:function(fe,ce){return c(O[fe],O[ce])}),H.forEach(function(fe){K[fe]={data:O[fe],value:re=k[fe],startAngle:B,endAngle:B+=re*se+G,padAngle:W}}),K}return x.value=function(O){return arguments.length?(l=O,x):l},x.sort=function(O){return arguments.length?(c=O,x):c},x.startAngle=function(O){return arguments.length?(p=O,x):p},x.endAngle=function(O){return arguments.length?(m=O,x):m},x.padAngle=function(O){return arguments.length?(y=O,x):y},x};var tg={};t.layout.stack=function(){var l=je,c=sd,p=fd,m=nb,y=tb,x=rb;function O(T,k){if(!(se=T.length))return T;var B=T.map(function(fe,ce){return l.call(O,fe,ce)}),$=B.map(function(fe){return fe.map(function(ce,ie){return[y.call(O,ce,ie),x.call(O,ce,ie)]})}),W=c.call(O,$,k);B=t.permute(B,W),$=t.permute($,W);var G=p.call(O,$,k),oe=B[0].length,se,H,K,re;for(K=0;K<oe;++K)for(m.call(O,B[0][K],re=G[K],$[0][K][1]),H=1;H<se;++H)m.call(O,B[H][K],re+=$[H-1][K][1],$[H][K][1]);return T}return O.values=function(T){return arguments.length?(l=T,O):l},O.order=function(T){return arguments.length?(c=typeof T=="function"?T:ld.get(T)||sd,O):c},O.offset=function(T){return arguments.length?(p=typeof T=="function"?T:js.get(T)||fd,O):p},O.x=function(T){return arguments.length?(y=T,O):y},O.y=function(T){return arguments.length?(x=T,O):x},O.out=function(T){return arguments.length?(m=T,O):m},O};function tb(l){return l.x}function rb(l){return l.y}function nb(l,c,p){l.y0=c,l.y=p}var ld=t.map({"inside-out":function(l){var c=l.length,p,m,y=l.map(rg),x=l.map(Ws),O=t.range(c).sort(function(W,G){return y[W]-y[G]}),T=0,k=0,B=[],$=[];for(p=0;p<c;++p)m=O[p],T<k?(T+=x[m],B.push(m)):(k+=x[m],$.push(m));return $.reverse().concat(B)},reverse:function(l){return t.range(l.length).reverse()},default:sd}),js=t.map({silhouette:function(l){var c=l.length,p=l[0].length,m=[],y=0,x,O,T,k=[];for(O=0;O<p;++O){for(x=0,T=0;x<c;x++)T+=l[x][O][1];T>y&&(y=T),m.push(T)}for(O=0;O<p;++O)k[O]=(y-m[O])/2;return k},wiggle:function(l){var c=l.length,p=l[0],m=p.length,y,x,O,T,k,B,$,W,G,oe=[];for(oe[0]=W=G=0,x=1;x<m;++x){for(y=0,T=0;y<c;++y)T+=l[y][x][1];for(y=0,k=0,$=p[x][0]-p[x-1][0];y<c;++y){for(O=0,B=(l[y][x][1]-l[y][x-1][1])/(2*$);O<y;++O)B+=(l[O][x][1]-l[O][x-1][1])/$;k+=B*l[y][x][1]}oe[x]=W-=T?k/T*$:0,W<G&&(G=W)}for(x=0;x<m;++x)oe[x]-=G;return oe},expand:function(l){var c=l.length,p=l[0].length,m=1/c,y,x,O,T=[];for(x=0;x<p;++x){for(y=0,O=0;y<c;y++)O+=l[y][x][1];if(O)for(y=0;y<c;y++)l[y][x][1]/=O;else for(y=0;y<c;y++)l[y][x][1]=m}for(x=0;x<p;++x)T[x]=0;return T},zero:fd});function sd(l){return t.range(l.length)}function fd(l){for(var c=-1,p=l[0].length,m=[];++c<p;)m[c]=0;return m}function rg(l){for(var c=1,p=0,m=l[0][1],y,x=l.length;c<x;++c)(y=l[c][1])>m&&(p=c,m=y);return p}function Ws(l){return l.reduce(cd,0)}function cd(l,c){return l+c[1]}t.layout.histogram=function(){var l=!0,c=Number,p=ab,m=ib;function y(x,G){for(var T=[],k=x.map(c,this),B=p.call(this,k,G),$=m.call(this,B,k,G),W,G=-1,oe=k.length,se=$.length-1,H=l?1:1/oe,K;++G<se;)W=T[G]=[],W.dx=$[G+1]-(W.x=$[G]),W.y=0;if(se>0)for(G=-1;++G<oe;)K=k[G],K>=B[0]&&K<=B[1]&&(W=T[t.bisect($,K,1,se)-1],W.y+=H,W.push(x[G]));return T}return y.value=function(x){return arguments.length?(c=x,y):c},y.range=function(x){return arguments.length?(p=Er(x),y):p},y.bins=function(x){return arguments.length?(m=typeof x=="number"?function(O){return dd(O,x)}:Er(x),y):m},y.frequency=function(x){return arguments.length?(l=!!x,y):l},y};function ib(l,c){return dd(l,Math.ceil(Math.log(c.length)/Math.LN2+1))}function dd(l,c){for(var p=-1,m=+l[0],y=(l[1]-m)/c,x=[];++p<=c;)x[p]=y*p+m;return x}function ab(l){return[t.min(l),t.max(l)]}t.layout.pack=function(){var l=t.layout.hierarchy().sort(ob),c=0,p=[1,1],m;function y(x,O){var T=l.call(this,x,O),k=T[0],B=p[0],$=p[1],W=m==null?Math.sqrt:typeof m=="function"?m:function(){return m};if(k.x=k.y=0,bi(k,function(oe){oe.r=+W(oe.value)}),bi(k,hd),c){var G=c*(m?1:Math.max(2*k.r/B,2*k.r/$))/2;bi(k,function(oe){oe.r+=G}),bi(k,hd),bi(k,function(oe){oe.r-=G})}return ag(k,B/2,$/2,m?1:1/Math.max(2*k.r/B,2*k.r/$)),T}return y.size=function(x){return arguments.length?(p=x,y):p},y.radius=function(x){return arguments.length?(m=x==null||typeof x=="function"?x:+x,y):m},y.padding=function(x){return arguments.length?(c=+x,y):c},jo(y,l)};function ob(l,c){return l.value-c.value}function pd(l,c){var p=l._pack_next;l._pack_next=c,c._pack_prev=l,c._pack_next=p,p._pack_prev=c}function ng(l,c){l._pack_next=c,c._pack_prev=l}function ig(l,c){var p=c.x-l.x,m=c.y-l.y,y=l.r+c.r;return .999*y*y>p*p+m*m}function hd(l){if(!(c=l.children)||!(G=c.length))return;var c,p=1/0,m=-1/0,y=1/0,x=-1/0,O,T,k,B,$,W,G;function oe(ie){p=Math.min(ie.x-ie.r,p),m=Math.max(ie.x+ie.r,m),y=Math.min(ie.y-ie.r,y),x=Math.max(ie.y+ie.r,x)}if(c.forEach(ub),O=c[0],O.x=-O.r,O.y=0,oe(O),G>1&&(T=c[1],T.x=T.r,T.y=0,oe(T),G>2))for(k=c[2],og(O,T,k),oe(k),pd(O,k),O._pack_prev=k,pd(k,T),T=O._pack_next,B=3;B<G;B++){og(O,T,k=c[B]);var se=0,H=1,K=1;for($=T._pack_next;$!==T;$=$._pack_next,H++)if(ig($,k)){se=1;break}if(se==1)for(W=O._pack_prev;W!==$._pack_prev&&!ig(W,k);W=W._pack_prev,K++);se?(H<K||H==K&&T.r<O.r?ng(O,T=$):ng(O=W,T),B--):(pd(O,k),T=k,oe(k))}var re=(p+m)/2,fe=(y+x)/2,ce=0;for(B=0;B<G;B++)k=c[B],k.x-=re,k.y-=fe,ce=Math.max(ce,k.r+Math.sqrt(k.x*k.x+k.y*k.y));l.r=ce,c.forEach(lb)}function ub(l){l._pack_next=l._pack_prev=l}function lb(l){delete l._pack_next,delete l._pack_prev}function ag(l,c,p,m){var y=l.children;if(l.x=c+=m*l.x,l.y=p+=m*l.y,l.r*=m,y)for(var x=-1,O=y.length;++x<O;)ag(y[x],c,p,m)}function og(l,c,p){var m=l.r+p.r,y=c.x-l.x,x=c.y-l.y;if(m&&(y||x)){var O=c.r+p.r,T=y*y+x*x;O*=O,m*=m;var k=.5+(m-O)/(2*T),B=Math.sqrt(Math.max(0,2*O*(m+T)-(m-=T)*m-O*O))/(2*T);p.x=l.x+k*y+B*x,p.y=l.y+k*x-B*y}else p.x=l.x+m,p.y=l.y}t.layout.tree=function(){var l=t.layout.hierarchy().sort(null).value(null),c=ug,p=[1,1],m=null;function y($,W){var G=l.call(this,$,W),oe=G[0],se=x(oe);if(bi(se,O),se.parent.m=-se.z,Wo(se,T),m)Wo(oe,B);else{var H=oe,K=oe,re=oe;Wo(oe,function($e){$e.x<H.x&&(H=$e),$e.x>K.x&&(K=$e),$e.depth>re.depth&&(re=$e)});var fe=c(H,K)/2-H.x,ce=p[0]/(K.x+c(K,H)/2+fe),ie=p[1]/(re.depth||1);Wo(oe,function($e){$e.x=($e.x+fe)*ce,$e.y=$e.depth*ie})}return G}function x($){for(var W={A:null,children:[$]},G=[W],oe;(oe=G.pop())!=null;)for(var se=oe.children,H,K=0,re=se.length;K<re;++K)G.push((se[K]=H={_:se[K],parent:oe,children:(H=se[K].children)&&H.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:K}).a=H);return W.children[0]}function O($){var W=$.children,G=$.parent.children,oe=$.i?G[$.i-1]:null;if(W.length){fb($);var se=(W[0].z+W[W.length-1].z)/2;oe?($.z=oe.z+c($._,oe._),$.m=$.z-se):$.z=se}else oe&&($.z=oe.z+c($._,oe._));$.parent.A=k($,oe,$.parent.A||G[0])}function T($){$._.x=$.z+$.parent.m,$.m+=$.parent.m}function k($,W,G){if(W){for(var oe=$,se=$,H=W,K=oe.parent.children[0],re=oe.m,fe=se.m,ce=H.m,ie=K.m,$e;H=gd(H),oe=vd(oe),H&&oe;)K=vd(K),se=gd(se),se.a=$,$e=H.z+ce-oe.z-re+c(H._,oe._),$e>0&&(sb(Pi(H,$,G),$,$e),re+=$e,fe+=$e),ce+=H.m,re+=oe.m,ie+=K.m,fe+=se.m;H&&!gd(se)&&(se.t=H,se.m+=ce-fe),oe&&!vd(K)&&(K.t=oe,K.m+=re-ie,G=$)}return G}function B($){$.x*=p[0],$.y=$.depth*p[1]}return y.separation=function($){return arguments.length?(c=$,y):c},y.size=function($){return arguments.length?(m=(p=$)==null?B:null,y):m?null:p},y.nodeSize=function($){return arguments.length?(m=(p=$)==null?null:B,y):m?p:null},jo(y,l)};function ug(l,c){return l.parent==c.parent?1:2}function vd(l){var c=l.children;return c.length?c[0]:l.t}function gd(l){var c=l.children,p;return(p=c.length)?c[p-1]:l.t}function sb(l,c,p){var m=p/(c.i-l.i);c.c-=m,c.s+=p,l.c+=m,c.z+=p,c.m+=p}function fb(l){for(var c=0,p=0,m=l.children,y=m.length,x;--y>=0;)x=m[y],x.z+=c,x.m+=c,c+=x.s+(p+=x.c)}function Pi(l,c,p){return l.a.parent===c.parent?l.a:p}t.layout.cluster=function(){var l=t.layout.hierarchy().sort(null).value(null),c=ug,p=[1,1],m=!1;function y(x,O){var T=l.call(this,x,O),k=T[0],B,$=0;bi(k,function(H){var K=H.children;K&&K.length?(H.x=cb(K),H.y=lg(K)):(H.x=B?$+=c(H,B):0,H.y=0,B=H)});var W=sg(k),G=fg(k),oe=W.x-c(W,G)/2,se=G.x+c(G,W)/2;return bi(k,m?function(H){H.x=(H.x-k.x)*p[0],H.y=(k.y-H.y)*p[1]}:function(H){H.x=(H.x-oe)/(se-oe)*p[0],H.y=(1-(k.y?H.y/k.y:1))*p[1]}),T}return y.separation=function(x){return arguments.length?(c=x,y):c},y.size=function(x){return arguments.length?(m=(p=x)==null,y):m?null:p},y.nodeSize=function(x){return arguments.length?(m=(p=x)!=null,y):m?p:null},jo(y,l)};function lg(l){return 1+t.max(l,function(c){return c.y})}function cb(l){return l.reduce(function(c,p){return c+p.x},0)/l.length}function sg(l){var c=l.children;return c&&c.length?sg(c[0]):l}function fg(l){var c=l.children,p;return c&&(p=c.length)?fg(c[p-1]):l}t.layout.treemap=function(){var l=t.layout.hierarchy(),c=Math.round,p=[1,1],m=null,y=md,x=!1,O,T="squarify",k=.5*(1+Math.sqrt(5));function B(H,K){for(var re=-1,fe=H.length,ce,ie;++re<fe;)ie=(ce=H[re]).value*(K<0?0:K),ce.area=isNaN(ie)||ie<=0?0:ie}function $(H){var K=H.children;if(K&&K.length){var re=y(H),fe=[],ce=K.slice(),ie,$e=1/0,Ye,ut=T==="slice"?re.dx:T==="dice"?re.dy:T==="slice-dice"?H.depth&1?re.dy:re.dx:Math.min(re.dx,re.dy),Xe;for(B(ce,re.dx*re.dy/H.value),fe.area=0;(Xe=ce.length)>0;)fe.push(ie=ce[Xe-1]),fe.area+=ie.area,T!=="squarify"||(Ye=G(fe,ut))<=$e?(ce.pop(),$e=Ye):(fe.area-=fe.pop().area,oe(fe,ut,re,!1),ut=Math.min(re.dx,re.dy),fe.length=fe.area=0,$e=1/0);fe.length&&(oe(fe,ut,re,!0),fe.length=fe.area=0),K.forEach($)}}function W(H){var K=H.children;if(K&&K.length){var re=y(H),fe=K.slice(),ce,ie=[];for(B(fe,re.dx*re.dy/H.value),ie.area=0;ce=fe.pop();)ie.push(ce),ie.area+=ce.area,ce.z!=null&&(oe(ie,ce.z?re.dx:re.dy,re,!fe.length),ie.length=ie.area=0);K.forEach(W)}}function G(H,K){for(var re=H.area,fe,ce=0,ie=1/0,$e=-1,Ye=H.length;++$e<Ye;)!(fe=H[$e].area)||(fe<ie&&(ie=fe),fe>ce&&(ce=fe));return re*=re,K*=K,re?Math.max(K*ce*k/re,re/(K*ie*k)):1/0}function oe(H,K,re,fe){var ce=-1,ie=H.length,$e=re.x,Ye=re.y,ut=K?c(H.area/K):0,Xe;if(K==re.dx){for((fe||ut>re.dy)&&(ut=re.dy);++ce<ie;)Xe=H[ce],Xe.x=$e,Xe.y=Ye,Xe.dy=ut,$e+=Xe.dx=Math.min(re.x+re.dx-$e,ut?c(Xe.area/ut):0);Xe.z=!0,Xe.dx+=re.x+re.dx-$e,re.y+=ut,re.dy-=ut}else{for((fe||ut>re.dx)&&(ut=re.dx);++ce<ie;)Xe=H[ce],Xe.x=$e,Xe.y=Ye,Xe.dx=ut,Ye+=Xe.dy=Math.min(re.y+re.dy-Ye,ut?c(Xe.area/ut):0);Xe.z=!1,Xe.dy+=re.y+re.dy-Ye,re.x+=ut,re.dx-=ut}}function se(H){var K=O||l(H),re=K[0];return re.x=re.y=0,re.value?(re.dx=p[0],re.dy=p[1]):re.dx=re.dy=0,O&&l.revalue(re),B([re],re.dx*re.dy/re.value),(O?W:$)(re),x&&(O=K),K}return se.size=function(H){return arguments.length?(p=H,se):p},se.padding=function(H){if(!arguments.length)return m;function K(ce){var ie=H.call(se,ce,ce.depth);return ie==null?md(ce):cg(ce,typeof ie=="number"?[ie,ie,ie,ie]:ie)}function re(ce){return cg(ce,H)}var fe;return y=(m=H)==null?md:(fe=typeof H)=="function"?K:(fe==="number"&&(H=[H,H,H,H]),re),se},se.round=function(H){return arguments.length?(c=H?Math.round:Number,se):c!=Number},se.sticky=function(H){return arguments.length?(x=H,O=null,se):x},se.ratio=function(H){return arguments.length?(k=H,se):k},se.mode=function(H){return arguments.length?(T=H+"",se):T},jo(se,l)};function md(l){return{x:l.x,y:l.y,dx:l.dx,dy:l.dy}}function cg(l,c){var p=l.x+c[3],m=l.y+c[0],y=l.dx-c[1]-c[3],x=l.dy-c[0]-c[2];return y<0&&(p+=y/2,y=0),x<0&&(m+=x/2,x=0),{x:p,y:m,dx:y,dy:x}}t.random={normal:function(l,c){var p=arguments.length;return p<2&&(c=1),p<1&&(l=0),function(){var m,y,x;do m=Math.random()*2-1,y=Math.random()*2-1,x=m*m+y*y;while(!x||x>1);return l+c*m*Math.sqrt(-2*Math.log(x)/x)}},logNormal:function(){var l=t.random.normal.apply(t,arguments);return function(){return Math.exp(l())}},bates:function(l){var c=t.random.irwinHall(l);return function(){return c()/l}},irwinHall:function(l){return function(){for(var c=0,p=0;p<l;p++)c+=Math.random();return c}}},t.scale={};function Gs(l){var c=l[0],p=l[l.length-1];return c<p?[c,p]:[p,c]}function qs(l){return l.rangeExtent?l.rangeExtent():Gs(l.range())}function db(l,c,p,m){var y=p(l[0],l[1]),x=m(c[0],c[1]);return function(O){return x(y(O))}}function Xr(l,c){var p=0,m=l.length-1,y=l[p],x=l[m],O;return x<y&&(O=p,p=m,m=O,O=y,y=x,x=O),l[p]=c.floor(y),l[m]=c.ceil(x),l}function ro(l){return l?{floor:function(c){return Math.floor(c/l)*l},ceil:function(c){return Math.ceil(c/l)*l}}:Go}var Go={floor:je,ceil:je};function pb(l,c,p,m){var y=[],x=[],O=0,T=Math.min(l.length,c.length)-1;for(l[T]<l[0]&&(l=l.slice().reverse(),c=c.slice().reverse());++O<=T;)y.push(p(l[O-1],l[O])),x.push(m(c[O-1],c[O]));return function(k){var B=t.bisect(l,k,1,T)-1;return x[B](y[B](k))}}t.scale.linear=function(){return no([0,1],[0,1],Ii,!1)};function no(l,c,p,m){var y,x;function O(){var k=Math.min(l.length,c.length)>2?pb:db,B=m?Hv:qv;return y=k(l,c,B,p),x=k(c,l,B,Ii),T}function T(k){return y(k)}return T.invert=function(k){return x(k)},T.domain=function(k){return arguments.length?(l=k.map(Number),O()):l},T.range=function(k){return arguments.length?(c=k,O()):c},T.rangeRound=function(k){return T.range(k).interpolate(zs)},T.clamp=function(k){return arguments.length?(m=k,O()):m},T.interpolate=function(k){return arguments.length?(p=k,O()):p},T.ticks=function(k){return sl(l,k)},T.tickFormat=function(k,B){return d3_scale_linearTickFormat(l,k,B)},T.nice=function(k){return io(l,k),O()},T.copy=function(){return no(l,c,p,m)},O()}function yd(l,c){return t.rebind(l,c,"range","rangeRound","interpolate","clamp")}function io(l,c){return Xr(l,ro(ll(l,c)[2])),Xr(l,ro(ll(l,c)[2])),l}function ll(l,c){c==null&&(c=10);var p=Gs(l),m=p[1]-p[0],y=Math.pow(10,Math.floor(Math.log(m/c)/Math.LN10)),x=c/m*y;return x<=.15?y*=10:x<=.35?y*=5:x<=.75&&(y*=2),p[0]=Math.ceil(p[0]/y)*y,p[1]=Math.floor(p[1]/y)*y+y*.5,p[2]=y,p}function sl(l,c){return t.range.apply(t,ll(l,c))}t.scale.log=function(){return Hs(t.scale.linear().domain([0,1]),10,!0,[1,10])};function Hs(l,c,p,m){function y(T){return(p?Math.log(T<0?0:T):-Math.log(T>0?0:-T))/Math.log(c)}function x(T){return p?Math.pow(c,T):-Math.pow(c,-T)}function O(T){return l(y(T))}return O.invert=function(T){return x(l.invert(T))},O.domain=function(T){return arguments.length?(p=T[0]>=0,l.domain((m=T.map(Number)).map(y)),O):m},O.base=function(T){return arguments.length?(c=+T,l.domain(m.map(y)),O):c},O.nice=function(){var T=Xr(m.map(y),p?Math:bd);return l.domain(T),m=T.map(x),O},O.ticks=function(){var T=Gs(m),k=[],B=T[0],$=T[1],W=Math.floor(y(B)),G=Math.ceil(y($)),oe=c%1?2:c;if(isFinite(G-W)){if(p){for(;W<G;W++)for(var se=1;se<oe;se++)k.push(x(W)*se);k.push(x(W))}else for(k.push(x(W));W++<G;)for(var se=oe-1;se>0;se--)k.push(x(W)*se);for(W=0;k[W]<B;W++);for(G=k.length;k[G-1]>$;G--);k=k.slice(W,G)}return k},O.copy=function(){return Hs(l.copy(),c,p,m)},yd(O,l)}var bd={floor:function(l){return-Math.ceil(-l)},ceil:function(l){return-Math.floor(-l)}};t.scale.pow=function(){return Vs(t.scale.linear(),1,[0,1])};function Vs(l,c,p){var m=ao(c),y=ao(1/c);function x(O){return l(m(O))}return x.invert=function(O){return y(l.invert(O))},x.domain=function(O){return arguments.length?(l.domain((p=O.map(Number)).map(m)),x):p},x.ticks=function(O){return sl(p,O)},x.tickFormat=function(O,T){return d3_scale_linearTickFormat(p,O,T)},x.nice=function(O){return x.domain(io(p,O))},x.exponent=function(O){return arguments.length?(m=ao(c=O),y=ao(1/c),l.domain(p.map(m)),x):c},x.copy=function(){return Vs(l.copy(),c,p)},yd(x,l)}function ao(l){return function(c){return c<0?-Math.pow(-c,l):Math.pow(c,l)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return wd([],{t:"range",a:[[]]})};function wd(l,c){var p,m,y;function x(T){return m[((p.get(T)||(c.t==="range"?p.set(T,l.push(T)):NaN))-1)%m.length]}function O(T,k){return t.range(l.length).map(function(B){return T+k*B})}return x.domain=function(T){if(!arguments.length)return l;l=[],p=new M;for(var k=-1,B=T.length,$;++k<B;)p.has($=T[k])||p.set($,l.push($));return x[c.t].apply(x,c.a)},x.range=function(T){return arguments.length?(m=T,y=0,c={t:"range",a:arguments},x):m},x.rangePoints=function(T,k){arguments.length<2&&(k=0);var B=T[0],$=T[1],W=l.length<2?(B=(B+$)/2,0):($-B)/(l.length-1+k);return m=O(B+W*k/2,W),y=0,c={t:"rangePoints",a:arguments},x},x.rangeRoundPoints=function(T,k){arguments.length<2&&(k=0);var B=T[0],$=T[1],W=l.length<2?(B=$=Math.round((B+$)/2),0):($-B)/(l.length-1+k)|0;return m=O(B+Math.round(W*k/2+($-B-(l.length-1+k)*W)/2),W),y=0,c={t:"rangeRoundPoints",a:arguments},x},x.rangeBands=function(T,k,B){arguments.length<2&&(k=0),arguments.length<3&&(B=k);var $=T[1]<T[0],W=T[$-0],G=T[1-$],oe=(G-W)/(l.length-k+2*B);return m=O(W+oe*B,oe),$&&m.reverse(),y=oe*(1-k),c={t:"rangeBands",a:arguments},x},x.rangeRoundBands=function(T,k,B){arguments.length<2&&(k=0),arguments.length<3&&(B=k);var $=T[1]<T[0],W=T[$-0],G=T[1-$],oe=Math.floor((G-W)/(l.length-k+2*B));return m=O(W+Math.round((G-W-(l.length-k)*oe)/2),oe),$&&m.reverse(),y=Math.round(oe*(1-k)),c={t:"rangeRoundBands",a:arguments},x},x.rangeBand=function(){return y},x.rangeExtent=function(){return Gs(c.a[0])},x.copy=function(){return wd(l,c)},x.domain(l)}t.scale.category10=function(){return t.scale.ordinal().range(dg)},t.scale.category20=function(){return t.scale.ordinal().range(pg)},t.scale.category20b=function(){return t.scale.ordinal().range(hg)},t.scale.category20c=function(){return t.scale.ordinal().range(vg)};var dg=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Ts),pg=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Ts),hg=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Ts),vg=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Ts);t.scale.quantile=function(){return Ys([],[])};function Ys(l,c){var p;function m(){var x=0,O=c.length;for(p=[];++x<O;)p[x-1]=t.quantile(l,x/O);return y}function y(x){if(!isNaN(x=+x))return c[t.bisect(p,x)]}return y.domain=function(x){return arguments.length?(l=x.map(g).filter(_).sort(h),m()):l},y.range=function(x){return arguments.length?(c=x,m()):c},y.quantiles=function(){return p},y.invertExtent=function(x){return x=c.indexOf(x),x<0?[NaN,NaN]:[x>0?p[x-1]:l[0],x<p.length?p[x]:l[l.length-1]]},y.copy=function(){return Ys(l,c)},m()}t.scale.quantize=function(){return Xs(0,1,[0,1])};function Xs(l,c,p){var m,y;function x(T){return p[Math.max(0,Math.min(y,Math.floor(m*(T-l))))]}function O(){return m=p.length/(c-l),y=p.length-1,x}return x.domain=function(T){return arguments.length?(l=+T[0],c=+T[T.length-1],O()):[l,c]},x.range=function(T){return arguments.length?(p=T,O()):p},x.invertExtent=function(T){return T=p.indexOf(T),T=T<0?NaN:T/m+l,[T,T+1/m]},x.copy=function(){return Xs(l,c,p)},O()}t.scale.threshold=function(){return xd([.5],[0,1])};function xd(l,c){function p(m){if(m<=m)return c[t.bisect(l,m)]}return p.domain=function(m){return arguments.length?(l=m,p):l},p.range=function(m){return arguments.length?(c=m,p):c},p.invertExtent=function(m){return m=c.indexOf(m),[l[m-1],l[m]]},p.copy=function(){return xd(l,c)},p}t.scale.identity=function(){return _d([0,1])};function _d(l){function c(p){return+p}return c.invert=c,c.domain=c.range=function(p){return arguments.length?(l=p.map(c),c):l},c.ticks=function(p){return sl(l,p)},c.tickFormat=function(p,m){return d3_scale_linearTickFormat(l,p,m)},c.copy=function(){return _d(l)},c}t.svg={};function gg(){return 0}t.svg.arc=function(){var l=Sd,c=mg,p=gg,m=fl,y=Ed,x=Ks,O=Ad;function T(){var B=Math.max(0,+l.apply(this,arguments)),$=Math.max(0,+c.apply(this,arguments)),W=y.apply(this,arguments)-Oi,G=x.apply(this,arguments)-Oi,oe=Math.abs(G-W),se=W>G?0:1;if($<B&&(H=$,$=B,B=H),oe>=hv)return k($,se)+(B?k(B,1-se):"")+"Z";var H,K,re,fe,ce=0,ie=0,$e,Ye,ut,Xe,ct,wt,Yt,Et,Vt=[];if((fe=(+O.apply(this,arguments)||0)/2)&&(re=m===fl?Math.sqrt(B*B+$*$):+m.apply(this,arguments),se||(ie*=-1),$&&(ie=gv(re/$*Math.sin(fe))),B&&(ce=gv(re/B*Math.sin(fe)))),$){$e=$*Math.cos(W+ie),Ye=$*Math.sin(W+ie),ut=$*Math.cos(G-ie),Xe=$*Math.sin(G-ie);var cr=Math.abs(G-W-2*ie)<=Xi?0:1;if(ie&&cl($e,Ye,ut,Xe)===se^cr){var Lr=(W+G)/2;$e=$*Math.cos(Lr),Ye=$*Math.sin(Lr),ut=Xe=null}}else $e=Ye=0;if(B){ct=B*Math.cos(G-ce),wt=B*Math.sin(G-ce),Yt=B*Math.cos(W+ce),Et=B*Math.sin(W+ce);var br=Math.abs(W-G+2*ce)<=Xi?0:1;if(ce&&cl(ct,wt,Yt,Et)===1-se^br){var lt=(W+G)/2;ct=B*Math.cos(lt),wt=B*Math.sin(lt),Yt=Et=null}}else ct=wt=0;if(oe>fr&&(H=Math.min(Math.abs($-B)/2,+p.apply(this,arguments)))>.001){K=B<$^se?0:1;var Xt=H,Jt=H;if(oe<Xi){var dr=Yt==null?[ct,wt]:ut==null?[$e,Ye]:Wc([$e,Ye],[Yt,Et],[ut,Xe],[ct,wt]),kr=$e-dr[0],qr=Ye-dr[1],Zr=ut-dr[0],bn=Xe-dr[1],Rn=1/Math.sin(Math.acos((kr*Zr+qr*bn)/(Math.sqrt(kr*kr+qr*qr)*Math.sqrt(Zr*Zr+bn*bn)))/2),cn=Math.sqrt(dr[0]*dr[0]+dr[1]*dr[1]);Jt=Math.min(H,(B-cn)/(Rn-1)),Xt=Math.min(H,($-cn)/(Rn+1))}if(ut!=null){var $n=qo(Yt==null?[ct,wt]:[Yt,Et],[$e,Ye],$,Xt,se),F=qo([ut,Xe],[ct,wt],$,Xt,se);H===Xt?Vt.push("M",$n[0],"A",Xt,",",Xt," 0 0,",K," ",$n[1],"A",$,",",$," 0 ",1-se^cl($n[1][0],$n[1][1],F[1][0],F[1][1]),",",se," ",F[1],"A",Xt,",",Xt," 0 0,",K," ",F[0]):Vt.push("M",$n[0],"A",Xt,",",Xt," 0 1,",K," ",F[0])}else Vt.push("M",$e,",",Ye);if(Yt!=null){var V=qo([$e,Ye],[Yt,Et],B,-Jt,se),J=qo([ct,wt],ut==null?[$e,Ye]:[ut,Xe],B,-Jt,se);H===Jt?Vt.push("L",J[0],"A",Jt,",",Jt," 0 0,",K," ",J[1],"A",B,",",B," 0 ",se^cl(J[1][0],J[1][1],V[1][0],V[1][1]),",",1-se," ",V[1],"A",Jt,",",Jt," 0 0,",K," ",V[0]):Vt.push("L",J[0],"A",Jt,",",Jt," 0 0,",K," ",V[0])}else Vt.push("L",ct,",",wt)}else Vt.push("M",$e,",",Ye),ut!=null&&Vt.push("A",$,",",$," 0 ",cr,",",se," ",ut,",",Xe),Vt.push("L",ct,",",wt),Yt!=null&&Vt.push("A",B,",",B," 0 ",br,",",1-se," ",Yt,",",Et);return Vt.push("Z"),Vt.join("")}function k(B,$){return"M0,"+B+"A"+B+","+B+" 0 1,"+$+" 0,"+-B+"A"+B+","+B+" 0 1,"+$+" 0,"+B}return T.innerRadius=function(B){return arguments.length?(l=Er(B),T):l},T.outerRadius=function(B){return arguments.length?(c=Er(B),T):c},T.cornerRadius=function(B){return arguments.length?(p=Er(B),T):p},T.padRadius=function(B){return arguments.length?(m=B==fl?fl:Er(B),T):m},T.startAngle=function(B){return arguments.length?(y=Er(B),T):y},T.endAngle=function(B){return arguments.length?(x=Er(B),T):x},T.padAngle=function(B){return arguments.length?(O=Er(B),T):O},T.centroid=function(){var B=(+l.apply(this,arguments)+ +c.apply(this,arguments))/2,$=(+y.apply(this,arguments)+ +x.apply(this,arguments))/2-Oi;return[Math.cos($)*B,Math.sin($)*B]},T};var fl="auto";function Sd(l){return l.innerRadius}function mg(l){return l.outerRadius}function Ed(l){return l.startAngle}function Ks(l){return l.endAngle}function Ad(l){return l&&l.padAngle}function cl(l,c,p,m){return(l-p)*c-(c-m)*l>0?0:1}function qo(l,c,p,m,y){var x=l[0]-c[0],O=l[1]-c[1],T=(y?m:-m)/Math.sqrt(x*x+O*O),k=T*O,B=-T*x,$=l[0]+k,W=l[1]+B,G=c[0]+k,oe=c[1]+B,se=($+G)/2,H=(W+oe)/2,K=G-$,re=oe-W,fe=K*K+re*re,ce=p-m,ie=$*oe-G*W,$e=(re<0?-1:1)*Math.sqrt(Math.max(0,ce*ce*fe-ie*ie)),Ye=(ie*re-K*$e)/fe,ut=(-ie*K-re*$e)/fe,Xe=(ie*re+K*$e)/fe,ct=(-ie*K+re*$e)/fe,wt=Ye-se,Yt=ut-H,Et=Xe-se,Vt=ct-H;return wt*wt+Yt*Yt>Et*Et+Vt*Vt&&(Ye=Xe,ut=ct),[[Ye-k,ut-B],[Ye*p/ce,ut*p/ce]]}function Cd(){return!0}function Td(l){var c=Ki,p=Qi,m=Cd,y=ri,x=y.key,O=.7;function T(k){var B=[],$=[],W=-1,G=k.length,oe,se=Er(c),H=Er(p);function K(){B.push("M",y(l($),O))}for(;++W<G;)m.call(this,oe=k[W],W)?$.push([+se.call(this,oe,W),+H.call(this,oe,W)]):$.length&&(K(),$=[]);return $.length&&K(),B.length?B.join(""):null}return T.x=function(k){return arguments.length?(c=k,T):c},T.y=function(k){return arguments.length?(p=k,T):p},T.defined=function(k){return arguments.length?(m=k,T):m},T.interpolate=function(k){return arguments.length?(typeof k=="function"?x=y=k:x=(y=dl.get(k)||ri).key,T):x},T.tension=function(k){return arguments.length?(O=k,T):O},T}t.svg.line=function(){return Td(je)};var dl=t.map({linear:ri,"linear-closed":Rd,step:Od,"step-before":pl,"step-after":oo,basis:hl,"basis-open":Zs,"basis-closed":Ho,bundle:Vo,cardinal:ta,"cardinal-open":yg,"cardinal-closed":Qs,monotone:hb});dl.forEach(function(l,c){c.key=l,c.closed=/-closed$/.test(l)});function ri(l){return l.length>1?l.join("L"):l+"Z"}function Rd(l){return l.join("L")+"Z"}function Od(l){for(var c=0,p=l.length,m=l[0],y=[m[0],",",m[1]];++c<p;)y.push("H",(m[0]+(m=l[c])[0])/2,"V",m[1]);return p>1&&y.push("H",m[0]),y.join("")}function pl(l){for(var c=0,p=l.length,m=l[0],y=[m[0],",",m[1]];++c<p;)y.push("V",(m=l[c])[1],"H",m[0]);return y.join("")}function oo(l){for(var c=0,p=l.length,m=l[0],y=[m[0],",",m[1]];++c<p;)y.push("H",(m=l[c])[0],"V",m[1]);return y.join("")}function yg(l,c){return l.length<4?ri(l):l[1]+uo(l.slice(1,-1),Ea(l,c))}function Qs(l,c){return l.length<3?Rd(l):l[0]+uo((l.push(l[0]),l),Ea([l[l.length-2]].concat(l,[l[1]]),c))}function ta(l,c){return l.length<3?ri(l):l[0]+uo(l,Ea(l,c))}function uo(l,c){if(c.length<1||l.length!=c.length&&l.length!=c.length+2)return ri(l);var p=l.length!=c.length,m="",y=l[0],x=l[1],O=c[0],T=O,k=1;if(p&&(m+="Q"+(x[0]-O[0]*2/3)+","+(x[1]-O[1]*2/3)+","+x[0]+","+x[1],y=l[1],k=2),c.length>1){T=c[1],x=l[k],k++,m+="C"+(y[0]+O[0])+","+(y[1]+O[1])+","+(x[0]-T[0])+","+(x[1]-T[1])+","+x[0]+","+x[1];for(var B=2;B<c.length;B++,k++)x=l[k],T=c[B],m+="S"+(x[0]-T[0])+","+(x[1]-T[1])+","+x[0]+","+x[1]}if(p){var $=l[k];m+="Q"+(x[0]+T[0]*2/3)+","+(x[1]+T[1]*2/3)+","+$[0]+","+$[1]}return m}function Ea(l,c){for(var p=[],m=(1-c)/2,y,x=l[0],O=l[1],T=1,k=l.length;++T<k;)y=x,x=O,O=l[T],p.push([m*(O[0]-y[0]),m*(O[1]-y[1])]);return p}function hl(l){if(l.length<3)return ri(l);var c=1,p=l.length,m=l[0],y=m[0],x=m[1],O=[y,y,y,(m=l[1])[0]],T=[x,x,x,m[1]],k=[y,",",x,"L",fn(wi,O),",",fn(wi,T)];for(l.push(l[p-1]);++c<=p;)m=l[c],O.shift(),O.push(m[0]),T.shift(),T.push(m[1]),vl(k,O,T);return l.pop(),k.push("L",m),k.join("")}function Zs(l){if(l.length<4)return ri(l);for(var c=[],p=-1,m=l.length,y,x=[0],O=[0];++p<3;)y=l[p],x.push(y[0]),O.push(y[1]);for(c.push(fn(wi,x)+","+fn(wi,O)),--p;++p<m;)y=l[p],x.shift(),x.push(y[0]),O.shift(),O.push(y[1]),vl(c,x,O);return c.join("")}function Ho(l){for(var c,p=-1,m=l.length,y=m+4,x,O=[],T=[];++p<4;)x=l[p%m],O.push(x[0]),T.push(x[1]);for(c=[fn(wi,O),",",fn(wi,T)],--p;++p<y;)x=l[p%m],O.shift(),O.push(x[0]),T.shift(),T.push(x[1]),vl(c,O,T);return c.join("")}function Vo(l,c){var p=l.length-1;if(p)for(var m=l[0][0],y=l[0][1],x=l[p][0]-m,O=l[p][1]-y,T=-1,k,B;++T<=p;)k=l[T],B=T/p,k[0]=c*k[0]+(1-c)*(m+B*x),k[1]=c*k[1]+(1-c)*(y+B*O);return hl(l)}function fn(l,c){return l[0]*c[0]+l[1]*c[1]+l[2]*c[2]+l[3]*c[3]}var Js=[0,2/3,1/3,0],ef=[0,1/3,2/3,0],wi=[0,1/6,2/3,1/6];function vl(l,c,p){l.push("C",fn(Js,c),",",fn(Js,p),",",fn(ef,c),",",fn(ef,p),",",fn(wi,c),",",fn(wi,p))}function gl(l,c){return(c[1]-l[1])/(c[0]-l[0])}function Yo(l){for(var c=0,p=l.length-1,m=[],y=l[0],x=l[1],O=m[0]=gl(y,x);++c<p;)m[c]=(O+(O=gl(y=x,x=l[c+1])))/2;return m[c]=O,m}function Xo(l){for(var c=[],p,m,y,x,O=Yo(l),T=-1,k=l.length-1;++T<k;)p=gl(l[T],l[T+1]),S(p)<fr?O[T]=O[T+1]=0:(m=O[T]/p,y=O[T+1]/p,x=m*m+y*y,x>9&&(x=p*3/Math.sqrt(x),O[T]=x*m,O[T+1]=x*y));for(T=-1;++T<=k;)x=(l[Math.min(k,T+1)][0]-l[Math.max(0,T-1)][0])/(6*(1+O[T]*O[T])),c.push([x||0,O[T]*x||0]);return c}function hb(l){return l.length<3?ri(l):l[0]+uo(l,Xo(l))}t.svg.line.radial=function(){var l=Td(bg);return l.radius=l.x,delete l.x,l.angle=l.y,delete l.y,l};function bg(l){for(var c,p=-1,m=l.length,y,x;++p<m;)c=l[p],y=c[0],x=c[1]-Oi,c[0]=y*Math.cos(x),c[1]=y*Math.sin(x);return l}function Id(l){var c=Ki,p=Ki,m=0,y=Qi,x=Cd,O=ri,T=O.key,k=O,B="L",$=.7;function W(G){var oe=[],se=[],H=[],K=-1,re=G.length,fe,ce=Er(c),ie=Er(m),$e=c===p?function(){return ut}:Er(p),Ye=m===y?function(){return Xe}:Er(y),ut,Xe;function ct(){oe.push("M",O(l(H),$),B,k(l(se.reverse()),$),"Z")}for(;++K<re;)x.call(this,fe=G[K],K)?(se.push([ut=+ce.call(this,fe,K),Xe=+ie.call(this,fe,K)]),H.push([+$e.call(this,fe,K),+Ye.call(this,fe,K)])):se.length&&(ct(),se=[],H=[]);return se.length&&ct(),oe.length?oe.join(""):null}return W.x=function(G){return arguments.length?(c=p=G,W):p},W.x0=function(G){return arguments.length?(c=G,W):c},W.x1=function(G){return arguments.length?(p=G,W):p},W.y=function(G){return arguments.length?(m=y=G,W):y},W.y0=function(G){return arguments.length?(m=G,W):m},W.y1=function(G){return arguments.length?(y=G,W):y},W.defined=function(G){return arguments.length?(x=G,W):x},W.interpolate=function(G){return arguments.length?(typeof G=="function"?T=O=G:T=(O=dl.get(G)||ri).key,k=O.reverse||O,B=O.closed?"M":"L",W):T},W.tension=function(G){return arguments.length?($=G,W):$},W}pl.reverse=oo,oo.reverse=pl,t.svg.area=function(){return Id(je)},t.svg.area.radial=function(){var l=Id(bg);return l.radius=l.x,delete l.x,l.innerRadius=l.x0,delete l.x0,l.outerRadius=l.x1,delete l.x1,l.angle=l.y,delete l.y,l.startAngle=l.y0,delete l.y0,l.endAngle=l.y1,delete l.y1,l};function Pd(l){return l.source}function kd(l){return l.target}t.svg.chord=function(){var l=Pd,c=kd,p=vb,m=Ed,y=Ks;function x($,W){var G=O(this,l,$,W),oe=O(this,c,$,W);return"M"+G.p0+k(G.r,G.p1,G.a1-G.a0)+(T(G,oe)?B(G.r,G.p1,G.r,G.p0):B(G.r,G.p1,oe.r,oe.p0)+k(oe.r,oe.p1,oe.a1-oe.a0)+B(oe.r,oe.p1,G.r,G.p0))+"Z"}function O($,W,G,oe){var se=W.call($,G,oe),H=p.call($,se,oe),K=m.call($,se,oe)-Oi,re=y.call($,se,oe)-Oi;return{r:H,a0:K,a1:re,p0:[H*Math.cos(K),H*Math.sin(K)],p1:[H*Math.cos(re),H*Math.sin(re)]}}function T($,W){return $.a0==W.a0&&$.a1==W.a1}function k($,W,G){return"A"+$+","+$+" 0 "+ +(G>Xi)+",1 "+W}function B($,W,G,oe){return"Q 0,0 "+oe}return x.radius=function($){return arguments.length?(p=Er($),x):p},x.source=function($){return arguments.length?(l=Er($),x):l},x.target=function($){return arguments.length?(c=Er($),x):c},x.startAngle=function($){return arguments.length?(m=Er($),x):m},x.endAngle=function($){return arguments.length?(y=Er($),x):y},x};function vb(l){return l.radius}t.svg.diagonal=function(){var l=Pd,c=kd,p=lo;function m(y,x){var O=l.call(this,y,x),T=c.call(this,y,x),k=(O.y+T.y)/2,B=[O,{x:O.x,y:k},{x:T.x,y:k},T];return B=B.map(p),"M"+B[0]+"C"+B[1]+" "+B[2]+" "+B[3]}return m.source=function(y){return arguments.length?(l=Er(y),m):l},m.target=function(y){return arguments.length?(c=Er(y),m):c},m.projection=function(y){return arguments.length?(p=y,m):p},m};function lo(l){return[l.x,l.y]}t.svg.diagonal.radial=function(){var l=t.svg.diagonal(),c=lo,p=l.projection;return l.projection=function(m){return arguments.length?p(Md(c=m)):c},l};function Md(l){return function(){var c=l.apply(this,arguments),p=c[0],m=c[1]-Oi;return[p*Math.cos(m),p*Math.sin(m)]}}t.svg.symbol=function(){var l=mb,c=gb;function p(m,y){return(xg.get(l.call(this,m,y))||wg)(c.call(this,m,y))}return p.type=function(m){return arguments.length?(l=Er(m),p):l},p.size=function(m){return arguments.length?(c=Er(m),p):c},p};function gb(){return 64}function mb(){return"circle"}function wg(l){var c=Math.sqrt(l/Xi);return"M0,"+c+"A"+c+","+c+" 0 1,1 0,"+-c+"A"+c+","+c+" 0 1,1 0,"+c+"Z"}var xg=t.map({circle:wg,cross:function(l){var c=Math.sqrt(l/5)/2;return"M"+-3*c+","+-c+"H"+-c+"V"+-3*c+"H"+c+"V"+-c+"H"+3*c+"V"+c+"H"+c+"V"+3*c+"H"+-c+"V"+c+"H"+-3*c+"Z"},diamond:function(l){var c=Math.sqrt(l/(2*_g)),p=c*_g;return"M0,"+-c+"L"+p+",0 0,"+c+" "+-p+",0Z"},square:function(l){var c=Math.sqrt(l)/2;return"M"+-c+","+-c+"L"+c+","+-c+" "+c+","+c+" "+-c+","+c+"Z"},"triangle-down":function(l){var c=Math.sqrt(l/tf),p=c*tf/2;return"M0,"+p+"L"+c+","+-p+" "+-c+","+-p+"Z"},"triangle-up":function(l){var c=Math.sqrt(l/tf),p=c*tf/2;return"M0,"+-p+"L"+c+","+p+" "+-c+","+p+"Z"}});t.svg.symbolTypes=xg.keys();var tf=Math.sqrt(3),_g=Math.tan(30*vv);_e.transition=function(l){for(var c=ra||++nf,p=yl(l),m=[],y,x,O=Ko||{time:Date.now(),ease:zo,delay:0,duration:250},T=-1,k=this.length;++T<k;){m.push(y=[]);for(var B=this[T],$=-1,W=B.length;++$<W;)(x=B[$])&&Qo(x,$,p,c,O),y.push(x)}return ml(m,p,c)},_e.interrupt=function(l){return this.each(l==null?rf:Sg(yl(l)))};var rf=Sg(yl());function Sg(l){return function(){var c,p,m;(c=this[l])&&(m=c[p=c.active])&&(m.timer.c=null,m.timer.t=NaN,--c.count?delete c[p]:delete this[l],c.active+=.5,m.event&&m.event.interrupt.call(this,this.__data__,m.index))}}function ml(l,c,p){return Rt(l,Gr),l.namespace=c,l.id=p,l}var Gr=[],nf=0,ra,Ko;Gr.call=_e.call,Gr.empty=_e.empty,Gr.node=_e.node,Gr.size=_e.size,t.transition=function(l,c){return l&&l.transition?ra?l.transition(c):l:t.selection().transition(l)},t.transition.prototype=Gr,Gr.select=function(l){var c=this.id,p=this.namespace,m=[],y,x,O;l=j(l);for(var T=-1,k=this.length;++T<k;){m.push(y=[]);for(var B=this[T],$=-1,W=B.length;++$<W;)(O=B[$])&&(x=l.call(O,O.__data__,$,T))?("__data__"in O&&(x.__data__=O.__data__),Qo(x,$,p,c,O[p][c]),y.push(x)):y.push(null)}return ml(m,p,c)},Gr.selectAll=function(l){var c=this.id,p=this.namespace,m=[],y,x,O,T,k;l=te(l);for(var B=-1,$=this.length;++B<$;)for(var W=this[B],G=-1,oe=W.length;++G<oe;)if(O=W[G]){k=O[p][c],x=l.call(O,O.__data__,G,B),m.push(y=[]);for(var se=-1,H=x.length;++se<H;)(T=x[se])&&Qo(T,se,p,c,k),y.push(T)}return ml(m,p,c)},Gr.filter=function(l){var c=[],p,m,y;typeof l!="function"&&(l=ga(l));for(var x=0,O=this.length;x<O;x++){c.push(p=[]);for(var m=this[x],T=0,k=m.length;T<k;T++)(y=m[T])&&l.call(y,y.__data__,T,x)&&p.push(y)}return ml(c,this.namespace,this.id)},Gr.tween=function(l,c){var p=this.id,m=this.namespace;return arguments.length<2?this.node()[m][p].tween.get(l):Tn(this,c==null?function(y){y[m][p].tween.remove(l)}:function(y){y[m][p].tween.set(l,c)})};function af(l,c,p,m){var y=l.id,x=l.namespace;return Tn(l,typeof p=="function"?function(O,T,k){O[x][y].tween.set(c,m(p.call(O,O.__data__,T,k)))}:(p=m(p),function(O){O[x][y].tween.set(c,p)}))}Gr.attr=function(l,c){if(arguments.length<2){for(c in l)this.attr(c,l[c]);return this}var p=l=="transform"?ad:Ii,m=t.ns.qualify(l);function y(){this.removeAttribute(m)}function x(){this.removeAttributeNS(m.space,m.local)}function O(k){return k==null?y:(k+="",function(){var B=this.getAttribute(m),$;return B!==k&&($=p(B,k),function(W){this.setAttribute(m,$(W))})})}function T(k){return k==null?x:(k+="",function(){var B=this.getAttributeNS(m.space,m.local),$;return B!==k&&($=p(B,k),function(W){this.setAttributeNS(m.space,m.local,$(W))})})}return af(this,"attr."+l,c,m.local?T:O)},Gr.attrTween=function(l,c){var p=t.ns.qualify(l);function m(x,O){var T=c.call(this,x,O,this.getAttribute(p));return T&&function(k){this.setAttribute(p,T(k))}}function y(x,O){var T=c.call(this,x,O,this.getAttributeNS(p.space,p.local));return T&&function(k){this.setAttributeNS(p.space,p.local,T(k))}}return this.tween("attr."+l,p.local?y:m)},Gr.style=function(l,c,p){var m=arguments.length;if(m<3){if(typeof l!="string"){m<2&&(c="");for(p in l)this.style(p,l[p],c);return this}p=""}function y(){this.style.removeProperty(l)}function x(O){return O==null?y:(O+="",function(){var T=o(this).getComputedStyle(this,null).getPropertyValue(l),k;return T!==O&&(k=Ii(T,O),function(B){this.style.setProperty(l,k(B),p)})})}return af(this,"style."+l,c,x)},Gr.styleTween=function(l,c,p){arguments.length<3&&(p="");function m(y,x){var O=c.call(this,y,x,o(this).getComputedStyle(this,null).getPropertyValue(l));return O&&function(T){this.style.setProperty(l,O(T),p)}}return this.tween("style."+l,m)},Gr.text=function(l){return af(this,"text",l,Dd)};function Dd(l){return l==null&&(l=""),function(){this.textContent=l}}Gr.remove=function(){var l=this.namespace;return this.each("end.transition",function(){var c;this[l].count<2&&(c=this.parentNode)&&c.removeChild(this)})},Gr.ease=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].ease:(typeof l!="function"&&(l=t.ease.apply(t,arguments)),Tn(this,function(m){m[p][c].ease=l}))},Gr.delay=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].delay:Tn(this,typeof l=="function"?function(m,y,x){m[p][c].delay=+l.call(m,m.__data__,y,x)}:(l=+l,function(m){m[p][c].delay=l}))},Gr.duration=function(l){var c=this.id,p=this.namespace;return arguments.length<1?this.node()[p][c].duration:Tn(this,typeof l=="function"?function(m,y,x){m[p][c].duration=Math.max(1,l.call(m,m.__data__,y,x))}:(l=Math.max(1,l),function(m){m[p][c].duration=l}))},Gr.each=function(l,c){var p=this.id,m=this.namespace;if(arguments.length<2){var y=Ko,x=ra;try{ra=p,Tn(this,function(O,T,k){Ko=O[m][p],l.call(O,O.__data__,T,k)})}finally{Ko=y,ra=x}}else Tn(this,function(O){var T=O[m][p];(T.event||(T.event=t.dispatch("start","end","interrupt"))).on(l,c)});return this},Gr.transition=function(){for(var l=this.id,c=++nf,p=this.namespace,m=[],y,x,O,T,k=0,B=this.length;k<B;k++){m.push(y=[]);for(var x=this[k],$=0,W=x.length;$<W;$++)(O=x[$])&&(T=O[p][l],Qo(O,$,p,c,{time:T.time,ease:T.ease,delay:T.delay+T.duration,duration:T.duration})),y.push(O)}return ml(m,p,c)};function yl(l){return l==null?"__transition__":"__transition_"+l+"__"}function Qo(l,c,p,m,y){var x=l[p]||(l[p]={active:0,count:0}),O=x[m],T,k,B,$,W;function G(H){var K=O.delay;if(k.t=K+T,K<=H)return oe(H-K);k.c=oe}function oe(H){var K=x.active,re=x[K];re&&(re.timer.c=null,re.timer.t=NaN,--x.count,delete x[K],re.event&&re.event.interrupt.call(l,l.__data__,re.index));for(var fe in x)if(+fe<m){var ce=x[fe];ce.timer.c=null,ce.timer.t=NaN,--x.count,delete x[fe]}k.c=se,Do(function(){return k.c&&se(H||1)&&(k.c=null,k.t=NaN),1},0,T),x.active=m,O.event&&O.event.start.call(l,l.__data__,c),W=[],O.tween.forEach(function(ie,$e){($e=$e.call(l,l.__data__,c))&&W.push($e)}),$=O.ease,B=O.duration}function se(H){for(var K=H/B,re=$(K),fe=W.length;fe>0;)W[--fe].call(l,re);if(K>=1)return O.event&&O.event.end.call(l,l.__data__,c),--x.count?delete x[m]:delete l[p],1}O||(T=y.time,k=Do(G,0,T),O=x[m]={tween:new M,time:T,timer:k,delay:y.delay,duration:y.duration,ease:y.ease,index:c},y=null,++x.count)}t.svg.axis=function(){var l=t.scale.linear(),c=Fd,p=6,m=6,y=3,x=[10],O=null,T;function k(B){B.each(function(){var $=t.select(this),W=this.__chart__||l,G=this.__chart__=l.copy(),oe=O==null?G.ticks?G.ticks.apply(G,x):G.domain():O,se=T==null?G.tickFormat?G.tickFormat.apply(G,x):je:T,H=$.selectAll(".tick").data(oe,G),K=H.enter().insert("g",".domain").attr("class","tick").style("opacity",fr),re=t.transition(H.exit()).style("opacity",fr).remove(),fe=t.transition(H.order()).style("opacity",1),ce=Math.max(p,0)+y,ie,$e=qs(G),Ye=$.selectAll(".domain").data([0]),ut=(Ye.enter().append("path").attr("class","domain"),t.transition(Ye));K.append("line"),K.append("text");var Xe=K.select("line"),ct=fe.select("line"),wt=H.select("text").text(se),Yt=K.select("text"),Et=fe.select("text"),Vt=c==="top"||c==="left"?-1:1,cr,Lr,br,lt;if(c==="bottom"||c==="top"?(ie=Ld,cr="x",br="y",Lr="x2",lt="y2",wt.attr("dy",Vt<0?"0em":".71em").style("text-anchor","middle"),ut.attr("d","M"+$e[0]+","+Vt*m+"V0H"+$e[1]+"V"+Vt*m)):(ie=Bd,cr="y",br="x",Lr="y2",lt="x2",wt.attr("dy",".32em").style("text-anchor",Vt<0?"end":"start"),ut.attr("d","M"+Vt*m+","+$e[0]+"H0V"+$e[1]+"H"+Vt*m)),Xe.attr(lt,Vt*p),Yt.attr(br,Vt*ce),ct.attr(Lr,0).attr(lt,Vt*p),Et.attr(cr,0).attr(br,Vt*ce),G.rangeBand){var Xt=G,Jt=Xt.rangeBand()/2;W=G=function(dr){return Xt(dr)+Jt}}else W.rangeBand?W=G:re.call(ie,G,W);K.call(ie,W,G),fe.call(ie,G,G)})}return k.scale=function(B){return arguments.length?(l=B,k):l},k.orient=function(B){return arguments.length?(c=B in Nd?B+"":Fd,k):c},k.ticks=function(){return arguments.length?(x=n(arguments),k):x},k.tickValues=function(B){return arguments.length?(O=B,k):O},k.tickFormat=function(B){return arguments.length?(T=B,k):T},k.tickSize=function(B){var $=arguments.length;return $?(p=+B,m=+arguments[$-1],k):p},k.innerTickSize=function(B){return arguments.length?(p=+B,k):p},k.outerTickSize=function(B){return arguments.length?(m=+B,k):m},k.tickPadding=function(B){return arguments.length?(y=+B,k):y},k.tickSubdivide=function(){return arguments.length&&k},k};var Fd="bottom",Nd={top:1,right:1,bottom:1,left:1};function Ld(l,c,p){l.attr("transform",function(m){var y=c(m);return"translate("+(isFinite(y)?y:p(m))+",0)"})}function Bd(l,c,p){l.attr("transform",function(m){var y=c(m);return"translate(0,"+(isFinite(y)?y:p(m))+")"})}t.svg.brush=function(){var l=Ze($,"brushstart","brush","brushend"),c=null,p=null,m=[0,0],y=[0,0],x,O,T=!0,k=!0,B=bl[0];function $(H){H.each(function(){var K=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",se).on("touchstart.brush",se),re=K.selectAll(".background").data([0]);re.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),K.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var fe=K.selectAll(".resize").data(B,je);fe.exit().remove(),fe.enter().append("g").attr("class",function(Ye){return"resize "+Ye}).style("cursor",function(Ye){return $d[Ye]}).append("rect").attr("x",function(Ye){return/[ew]$/.test(Ye)?-3:null}).attr("y",function(Ye){return/^[ns]/.test(Ye)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),fe.style("display",$.empty()?"none":null);var ce=t.transition(K),ie=t.transition(re),$e;c&&($e=qs(c),ie.attr("x",$e[0]).attr("width",$e[1]-$e[0]),G(ce)),p&&($e=qs(p),ie.attr("y",$e[0]).attr("height",$e[1]-$e[0]),oe(ce)),W(ce)})}$.event=function(H){H.each(function(){var K=l.of(this,arguments),re={x:m,y,i:x,j:O},fe=this.__chart__||re;this.__chart__=re,ra?t.select(this).transition().each("start.brush",function(){x=fe.i,O=fe.j,m=fe.x,y=fe.y,K({type:"brushstart"})}).tween("brush:brush",function(){var ce=Bn(m,re.x),ie=Bn(y,re.y);return x=O=null,function($e){m=re.x=ce($e),y=re.y=ie($e),K({type:"brush",mode:"resize"})}}).each("end.brush",function(){x=re.i,O=re.j,K({type:"brush",mode:"resize"}),K({type:"brushend"})}):(K({type:"brushstart"}),K({type:"brush",mode:"resize"}),K({type:"brushend"}))})};function W(H){H.selectAll(".resize").attr("transform",function(K){return"translate("+m[+/e$/.test(K)]+","+y[+/^s/.test(K)]+")"})}function G(H){H.select(".extent").attr("x",m[0]),H.selectAll(".extent,.n>rect,.s>rect").attr("width",m[1]-m[0])}function oe(H){H.select(".extent").attr("y",y[0]),H.selectAll(".extent,.e>rect,.w>rect").attr("height",y[1]-y[0])}function se(){var H=this,K=t.select(t.event.target),re=l.of(H,arguments),fe=t.select(H),ce=K.datum(),ie=!/^(n|s)$/.test(ce)&&c,$e=!/^(e|w)$/.test(ce)&&p,Ye=K.classed("extent"),ut=Ss(H),Xe,ct=t.mouse(H),wt,Yt=t.select(o(H)).on("keydown.brush",cr).on("keyup.brush",Lr);if(t.event.changedTouches?Yt.on("touchmove.brush",br).on("touchend.brush",Xt):Yt.on("mousemove.brush",br).on("mouseup.brush",Xt),fe.interrupt().selectAll("*").interrupt(),Ye)ct[0]=m[0]-ct[0],ct[1]=y[0]-ct[1];else if(ce){var Et=+/w$/.test(ce),Vt=+/^n/.test(ce);wt=[m[1-Et]-ct[0],y[1-Vt]-ct[1]],ct[0]=m[Et],ct[1]=y[Vt]}else t.event.altKey&&(Xe=ct.slice());fe.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",K.style("cursor")),re({type:"brushstart"}),br();function cr(){t.event.keyCode==32&&(Ye||(Xe=null,ct[0]-=m[1],ct[1]-=y[1],Ye=2),Ke())}function Lr(){t.event.keyCode==32&&Ye==2&&(ct[0]+=m[1],ct[1]+=y[1],Ye=0,Ke())}function br(){var Jt=t.mouse(H),dr=!1;wt&&(Jt[0]+=wt[0],Jt[1]+=wt[1]),Ye||(t.event.altKey?(Xe||(Xe=[(m[0]+m[1])/2,(y[0]+y[1])/2]),ct[0]=m[+(Jt[0]<Xe[0])],ct[1]=y[+(Jt[1]<Xe[1])]):Xe=null),ie&<(Jt,c,0)&&(G(fe),dr=!0),$e&<(Jt,p,1)&&(oe(fe),dr=!0),dr&&(W(fe),re({type:"brush",mode:Ye?"move":"resize"}))}function lt(Jt,dr,kr){var qr=qs(dr),Zr=qr[0],bn=qr[1],Rn=ct[kr],cn=kr?y:m,$n=cn[1]-cn[0],F,V;if(Ye&&(Zr-=Rn,bn-=$n+Rn),F=(kr?k:T)?Math.max(Zr,Math.min(bn,Jt[kr])):Jt[kr],Ye?V=(F+=Rn)+$n:(Xe&&(Rn=Math.max(Zr,Math.min(bn,2*Xe[kr]-F))),Rn<F?(V=F,F=Rn):V=Rn),cn[0]!=F||cn[1]!=V)return kr?O=null:x=null,cn[0]=F,cn[1]=V,!0}function Xt(){br(),fe.style("pointer-events","all").selectAll(".resize").style("display",$.empty()?"none":null),t.select("body").style("cursor",null),Yt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),ut(),re({type:"brushend"})}}return $.x=function(H){return arguments.length?(c=H,B=bl[!c<<1|!p],$):c},$.y=function(H){return arguments.length?(p=H,B=bl[!c<<1|!p],$):p},$.clamp=function(H){return arguments.length?(c&&p?(T=!!H[0],k=!!H[1]):c?T=!!H:p&&(k=!!H),$):c&&p?[T,k]:c?T:p?k:null},$.extent=function(H){var K,re,fe,ce,ie;return arguments.length?(c&&(K=H[0],re=H[1],p&&(K=K[0],re=re[0]),x=[K,re],c.invert&&(K=c(K),re=c(re)),re<K&&(ie=K,K=re,re=ie),(K!=m[0]||re!=m[1])&&(m=[K,re])),p&&(fe=H[0],ce=H[1],c&&(fe=fe[1],ce=ce[1]),O=[fe,ce],p.invert&&(fe=p(fe),ce=p(ce)),ce<fe&&(ie=fe,fe=ce,ce=ie),(fe!=y[0]||ce!=y[1])&&(y=[fe,ce])),$):(c&&(x?(K=x[0],re=x[1]):(K=m[0],re=m[1],c.invert&&(K=c.invert(K),re=c.invert(re)),re<K&&(ie=K,K=re,re=ie))),p&&(O?(fe=O[0],ce=O[1]):(fe=y[0],ce=y[1],p.invert&&(fe=p.invert(fe),ce=p.invert(ce)),ce<fe&&(ie=fe,fe=ce,ce=ie))),c&&p?[[K,fe],[re,ce]]:c?[K,re]:p&&[fe,ce])},$.clear=function(){return $.empty()||(m=[0,0],y=[0,0],x=O=null),$},$.empty=function(){return!!c&&m[0]==m[1]||!!p&&y[0]==y[1]},t.rebind($,l,"on")};var $d={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},bl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=jc(function(l){return l.responseText}),t.json=function(l,c){return Os(l,"application/json",zd,c)};function zd(l){return JSON.parse(l.responseText)}t.html=function(l,c){return Os(l,"text/html",Ud,c)};function Ud(l){var c=i.createRange();return c.selectNode(i.body),c.createContextualFragment(l.responseText)}t.xml=jc(function(l){return l.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(ore);var Ux=new Date,jx=new Date;function yn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,u){var s=[],f;if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;do s.push(f=new Date(+a)),t(a,u),e(a);while(f<a&&a<o);return s},i.filter=function(a){return yn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,u){if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return Ux.setTime(+a),jx.setTime(+o),e(Ux),e(jx),Math.floor(r(Ux,jx))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var ty=yn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ty.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):ty};const EI=ty;var AI=ty.range,ry=1e3,Jl=6e4,ny=36e5,GL=864e5,qL=6048e5,HL=yn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*ry)},function(e,t){return(t-e)/ry},function(e){return e.getUTCSeconds()});const CI=HL;var TI=HL.range,VL=yn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ry)},function(e,t){e.setTime(+e+t*Jl)},function(e,t){return(t-e)/Jl},function(e){return e.getMinutes()});const ure=VL;var lre=VL.range,YL=yn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ry-e.getMinutes()*Jl)},function(e,t){e.setTime(+e+t*ny)},function(e,t){return(t-e)/ny},function(e){return e.getHours()});const sre=YL;var fre=YL.range,XL=yn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jl)/GL},function(e){return e.getDate()-1});const _C=XL;var cre=XL.range;function ms(e){return yn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Jl)/qL})}var iy=ms(0),Ch=ms(1),KL=ms(2),QL=ms(3),es=ms(4),ZL=ms(5),JL=ms(6),RI=iy.range,dre=Ch.range,pre=KL.range,hre=QL.range,vre=es.range,gre=ZL.range,mre=JL.range,eB=yn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const yre=eB;var bre=eB.range,SC=yn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});SC.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const cc=SC;var wre=SC.range,tB=yn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Jl)},function(e,t){return(t-e)/Jl},function(e){return e.getUTCMinutes()});const xre=tB;var _re=tB.range,rB=yn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ny)},function(e,t){return(t-e)/ny},function(e){return e.getUTCHours()});const Sre=rB;var Ere=rB.range,nB=yn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/GL},function(e){return e.getUTCDate()-1});const EC=nB;var Are=nB.range;function ys(e){return yn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/qL})}var ay=ys(0),Th=ys(1),iB=ys(2),aB=ys(3),ts=ys(4),oB=ys(5),uB=ys(6),OI=ay.range,Cre=Th.range,Tre=iB.range,Rre=aB.range,Ore=ts.range,Ire=oB.range,Pre=uB.range,lB=yn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const kre=lB;var Mre=lB.range,AC=yn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});AC.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const dc=AC;var Dre=AC.range;const Fre=Object.freeze(Object.defineProperty({__proto__:null,timeInterval:yn,timeMillisecond:EI,timeMilliseconds:AI,utcMillisecond:EI,utcMilliseconds:AI,timeSecond:CI,timeSeconds:TI,utcSecond:CI,utcSeconds:TI,timeMinute:ure,timeMinutes:lre,timeHour:sre,timeHours:fre,timeDay:_C,timeDays:cre,timeWeek:iy,timeWeeks:RI,timeSunday:iy,timeSundays:RI,timeMonday:Ch,timeMondays:dre,timeTuesday:KL,timeTuesdays:pre,timeWednesday:QL,timeWednesdays:hre,timeThursday:es,timeThursdays:vre,timeFriday:ZL,timeFridays:gre,timeSaturday:JL,timeSaturdays:mre,timeMonth:yre,timeMonths:bre,timeYear:cc,timeYears:wre,utcMinute:xre,utcMinutes:_re,utcHour:Sre,utcHours:Ere,utcDay:EC,utcDays:Are,utcWeek:ay,utcWeeks:OI,utcSunday:ay,utcSundays:OI,utcMonday:Th,utcMondays:Cre,utcTuesday:iB,utcTuesdays:Tre,utcWednesday:aB,utcWednesdays:Rre,utcThursday:ts,utcThursdays:Ore,utcFriday:oB,utcFridays:Ire,utcSaturday:uB,utcSaturdays:Pre,utcMonth:kre,utcMonths:Mre,utcYear:dc,utcYears:Dre},Symbol.toStringTag,{value:"Module"}));function Wx(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Gx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function up(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function sB(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,f=lp(i),d=sp(i),v=lp(a),h=sp(a),g=lp(o),_=sp(o),A=lp(u),b=sp(u),w=lp(s),S=sp(s),E={a:me,A:Fe,b:qe,B:Ue,c:null,d:FI,e:FI,f:ine,g:hne,G:gne,H:tne,I:rne,j:nne,L:fB,m:ane,M:one,p:be,q:ye,Q:BI,s:$I,S:une,u:lne,U:sne,V:fne,w:cne,W:dne,x:null,X:null,y:pne,Y:vne,Z:mne,"%":LI},R={a:Ke,A:We,b:Ze,B:st,c:null,d:NI,e:NI,f:xne,g:Pne,G:Mne,H:yne,I:bne,j:wne,L:dB,m:_ne,M:Sne,p:Rt,q:kt,Q:BI,s:$I,S:Ene,u:Ane,U:Cne,V:Tne,w:Rne,W:One,x:null,X:null,y:Ine,Y:kne,Z:Dne,"%":LI},M={a:ee,A:ue,b:pe,B:we,c:Ee,d:MI,e:MI,f:Qre,g:kI,G:PI,H:DI,I:DI,j:Vre,L:Kre,m:Hre,M:Yre,p:L,q:qre,Q:Jre,s:ene,S:Xre,u:zre,U:Ure,V:jre,w:$re,W:Wre,x:Je,X:je,y:kI,Y:PI,Z:Gre,"%":Zre};E.x=D(r,E),E.X=D(n,E),E.c=D(t,E),R.x=D(r,R),R.X=D(n,R),R.c=D(t,R);function D(Ae,nt){return function(mt){var _e=[],j=-1,te=0,I=Ae.length,C,P,U;for(mt instanceof Date||(mt=new Date(+mt));++j<I;)Ae.charCodeAt(j)===37&&(_e.push(Ae.slice(te,j)),(P=II[C=Ae.charAt(++j)])!=null?C=Ae.charAt(++j):P=C==="e"?" ":"0",(U=nt[C])&&(C=U(mt,P)),_e.push(C),te=j+1);return _e.push(Ae.slice(te,j)),_e.join("")}}function z(Ae,nt){return function(mt){var _e=up(1900,void 0,1),j=N(_e,Ae,mt+="",0),te,I;if(j!=mt.length)return null;if("Q"in _e)return new Date(_e.Q);if("s"in _e)return new Date(_e.s*1e3+("L"in _e?_e.L:0));if(nt&&!("Z"in _e)&&(_e.Z=0),"p"in _e&&(_e.H=_e.H%12+_e.p*12),_e.m===void 0&&(_e.m="q"in _e?_e.q:0),"V"in _e){if(_e.V<1||_e.V>53)return null;"w"in _e||(_e.w=1),"Z"in _e?(te=Gx(up(_e.y,0,1)),I=te.getUTCDay(),te=I>4||I===0?Th.ceil(te):Th(te),te=EC.offset(te,(_e.V-1)*7),_e.y=te.getUTCFullYear(),_e.m=te.getUTCMonth(),_e.d=te.getUTCDate()+(_e.w+6)%7):(te=Wx(up(_e.y,0,1)),I=te.getDay(),te=I>4||I===0?Ch.ceil(te):Ch(te),te=_C.offset(te,(_e.V-1)*7),_e.y=te.getFullYear(),_e.m=te.getMonth(),_e.d=te.getDate()+(_e.w+6)%7)}else("W"in _e||"U"in _e)&&("w"in _e||(_e.w="u"in _e?_e.u%7:"W"in _e?1:0),I="Z"in _e?Gx(up(_e.y,0,1)).getUTCDay():Wx(up(_e.y,0,1)).getDay(),_e.m=0,_e.d="W"in _e?(_e.w+6)%7+_e.W*7-(I+5)%7:_e.w+_e.U*7-(I+6)%7);return"Z"in _e?(_e.H+=_e.Z/100|0,_e.M+=_e.Z%100,Gx(_e)):Wx(_e)}}function N(Ae,nt,mt,_e){for(var j=0,te=nt.length,I=mt.length,C,P;j<te;){if(_e>=I)return-1;if(C=nt.charCodeAt(j++),C===37){if(C=nt.charAt(j++),P=M[C in II?nt.charAt(j++):C],!P||(_e=P(Ae,mt,_e))<0)return-1}else if(C!=mt.charCodeAt(_e++))return-1}return _e}function L(Ae,nt,mt){var _e=f.exec(nt.slice(mt));return _e?(Ae.p=d[_e[0].toLowerCase()],mt+_e[0].length):-1}function ee(Ae,nt,mt){var _e=g.exec(nt.slice(mt));return _e?(Ae.w=_[_e[0].toLowerCase()],mt+_e[0].length):-1}function ue(Ae,nt,mt){var _e=v.exec(nt.slice(mt));return _e?(Ae.w=h[_e[0].toLowerCase()],mt+_e[0].length):-1}function pe(Ae,nt,mt){var _e=w.exec(nt.slice(mt));return _e?(Ae.m=S[_e[0].toLowerCase()],mt+_e[0].length):-1}function we(Ae,nt,mt){var _e=A.exec(nt.slice(mt));return _e?(Ae.m=b[_e[0].toLowerCase()],mt+_e[0].length):-1}function Ee(Ae,nt,mt){return N(Ae,t,nt,mt)}function Je(Ae,nt,mt){return N(Ae,r,nt,mt)}function je(Ae,nt,mt){return N(Ae,n,nt,mt)}function me(Ae){return o[Ae.getDay()]}function Fe(Ae){return a[Ae.getDay()]}function qe(Ae){return s[Ae.getMonth()]}function Ue(Ae){return u[Ae.getMonth()]}function be(Ae){return i[+(Ae.getHours()>=12)]}function ye(Ae){return 1+~~(Ae.getMonth()/3)}function Ke(Ae){return o[Ae.getUTCDay()]}function We(Ae){return a[Ae.getUTCDay()]}function Ze(Ae){return s[Ae.getUTCMonth()]}function st(Ae){return u[Ae.getUTCMonth()]}function Rt(Ae){return i[+(Ae.getUTCHours()>=12)]}function kt(Ae){return 1+~~(Ae.getUTCMonth()/3)}return{format:function(Ae){var nt=D(Ae+="",E);return nt.toString=function(){return Ae},nt},parse:function(Ae){var nt=z(Ae+="",!1);return nt.toString=function(){return Ae},nt},utcFormat:function(Ae){var nt=D(Ae+="",R);return nt.toString=function(){return Ae},nt},utcParse:function(Ae){var nt=z(Ae+="",!0);return nt.toString=function(){return Ae},nt}}}var II={"-":"",_:" ",0:"0"},Cn=/^\s*\d+/,Nre=/^%/,Lre=/[\\^$*+?|[\]().{}]/g;function Tr(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Bre(e){return e.replace(Lre,"\\$&")}function lp(e){return new RegExp("^(?:"+e.map(Bre).join("|")+")","i")}function sp(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function $re(e,t,r){var n=Cn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function zre(e,t,r){var n=Cn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Ure(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function jre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Wre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function PI(e,t,r){var n=Cn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function kI(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Gre(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function qre(e,t,r){var n=Cn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Hre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function MI(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Vre(e,t,r){var n=Cn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function DI(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Yre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Xre(e,t,r){var n=Cn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Kre(e,t,r){var n=Cn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Qre(e,t,r){var n=Cn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Zre(e,t,r){var n=Nre.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Jre(e,t,r){var n=Cn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function ene(e,t,r){var n=Cn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function FI(e,t){return Tr(e.getDate(),t,2)}function tne(e,t){return Tr(e.getHours(),t,2)}function rne(e,t){return Tr(e.getHours()%12||12,t,2)}function nne(e,t){return Tr(1+_C.count(cc(e),e),t,3)}function fB(e,t){return Tr(e.getMilliseconds(),t,3)}function ine(e,t){return fB(e,t)+"000"}function ane(e,t){return Tr(e.getMonth()+1,t,2)}function one(e,t){return Tr(e.getMinutes(),t,2)}function une(e,t){return Tr(e.getSeconds(),t,2)}function lne(e){var t=e.getDay();return t===0?7:t}function sne(e,t){return Tr(iy.count(cc(e)-1,e),t,2)}function cB(e){var t=e.getDay();return t>=4||t===0?es(e):es.ceil(e)}function fne(e,t){return e=cB(e),Tr(es.count(cc(e),e)+(cc(e).getDay()===4),t,2)}function cne(e){return e.getDay()}function dne(e,t){return Tr(Ch.count(cc(e)-1,e),t,2)}function pne(e,t){return Tr(e.getFullYear()%100,t,2)}function hne(e,t){return e=cB(e),Tr(e.getFullYear()%100,t,2)}function vne(e,t){return Tr(e.getFullYear()%1e4,t,4)}function gne(e,t){var r=e.getDay();return e=r>=4||r===0?es(e):es.ceil(e),Tr(e.getFullYear()%1e4,t,4)}function mne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Tr(t/60|0,"0",2)+Tr(t%60,"0",2)}function NI(e,t){return Tr(e.getUTCDate(),t,2)}function yne(e,t){return Tr(e.getUTCHours(),t,2)}function bne(e,t){return Tr(e.getUTCHours()%12||12,t,2)}function wne(e,t){return Tr(1+EC.count(dc(e),e),t,3)}function dB(e,t){return Tr(e.getUTCMilliseconds(),t,3)}function xne(e,t){return dB(e,t)+"000"}function _ne(e,t){return Tr(e.getUTCMonth()+1,t,2)}function Sne(e,t){return Tr(e.getUTCMinutes(),t,2)}function Ene(e,t){return Tr(e.getUTCSeconds(),t,2)}function Ane(e){var t=e.getUTCDay();return t===0?7:t}function Cne(e,t){return Tr(ay.count(dc(e)-1,e),t,2)}function pB(e){var t=e.getUTCDay();return t>=4||t===0?ts(e):ts.ceil(e)}function Tne(e,t){return e=pB(e),Tr(ts.count(dc(e),e)+(dc(e).getUTCDay()===4),t,2)}function Rne(e){return e.getUTCDay()}function One(e,t){return Tr(Th.count(dc(e)-1,e),t,2)}function Ine(e,t){return Tr(e.getUTCFullYear()%100,t,2)}function Pne(e,t){return e=pB(e),Tr(e.getUTCFullYear()%100,t,2)}function kne(e,t){return Tr(e.getUTCFullYear()%1e4,t,4)}function Mne(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ts(e):ts.ceil(e),Tr(e.getUTCFullYear()%1e4,t,4)}function Dne(){return"+0000"}function LI(){return"%"}function BI(e){return+e}function $I(e){return Math.floor(+e/1e3)}var df,hB,vB,CC,TC;gB({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gB(e){return df=sB(e),hB=df.format,vB=df.parse,CC=df.utcFormat,TC=df.utcParse,df}var mB="%Y-%m-%dT%H:%M:%S.%LZ";function Fne(e){return e.toISOString()}var Nne=Date.prototype.toISOString?Fne:CC(mB);const Lne=Nne;function Bne(e){var t=new Date(e);return isNaN(t)?null:t}var $ne=+new Date("2000-01-01T00:00:00.000Z")?Bne:TC(mB);const zne=$ne,Une=Object.freeze(Object.defineProperty({__proto__:null,timeFormatDefaultLocale:gB,get timeFormat(){return hB},get timeParse(){return vB},get utcFormat(){return CC},get utcParse(){return TC},timeFormatLocale:sB,isoFormat:Lne,isoParse:zne},Symbol.toStringTag,{value:"Module"})),Ade=is(Une);function jne(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function oy(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function pc(e){return e=oy(Math.abs(e)),e?e[1]:NaN}function Wne(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Gne(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var qne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uy(e){if(!(t=qne.exec(e)))throw new Error("invalid format: "+e);var t;return new y1({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}uy.prototype=y1.prototype;function y1(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}y1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Hne(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var yB;function Vne(e,t){var r=oy(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(yB=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+oy(e,Math.max(0,t+a-1))[0]}function zI(e,t){var r=oy(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const UI={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:jne,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return zI(e*100,t)},r:zI,s:Vne,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function jI(e){return e}var WI=Array.prototype.map,GI=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function bB(e){var t=e.grouping===void 0||e.thousands===void 0?jI:Wne(WI.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?jI:Gne(WI.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function f(v){v=uy(v);var h=v.fill,g=v.align,_=v.sign,A=v.symbol,b=v.zero,w=v.width,S=v.comma,E=v.precision,R=v.trim,M=v.type;M==="n"?(S=!0,M="g"):UI[M]||(E===void 0&&(E=12),R=!0,M="g"),(b||h==="0"&&g==="=")&&(b=!0,h="0",g="=");var D=A==="$"?r:A==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",z=A==="$"?n:/[%p]/.test(M)?o:"",N=UI[M],L=/[defgprs%]/.test(M);E=E===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function ee(ue){var pe=D,we=z,Ee,Je,je;if(M==="c")we=N(ue)+we,ue="";else{ue=+ue;var me=ue<0||1/ue<0;if(ue=isNaN(ue)?s:N(Math.abs(ue),E),R&&(ue=Hne(ue)),me&&+ue==0&&_!=="+"&&(me=!1),pe=(me?_==="("?_:u:_==="-"||_==="("?"":_)+pe,we=(M==="s"?GI[8+yB/3]:"")+we+(me&&_==="("?")":""),L){for(Ee=-1,Je=ue.length;++Ee<Je;)if(je=ue.charCodeAt(Ee),48>je||je>57){we=(je===46?i+ue.slice(Ee+1):ue.slice(Ee))+we,ue=ue.slice(0,Ee);break}}}S&&!b&&(ue=t(ue,1/0));var Fe=pe.length+ue.length+we.length,qe=Fe<w?new Array(w-Fe+1).join(h):"";switch(S&&b&&(ue=t(qe+ue,qe.length?w-we.length:1/0),qe=""),g){case"<":ue=pe+ue+we+qe;break;case"=":ue=pe+qe+ue+we;break;case"^":ue=qe.slice(0,Fe=qe.length>>1)+pe+ue+we+qe.slice(Fe);break;default:ue=qe+pe+ue+we;break}return a(ue)}return ee.toString=function(){return v+""},ee}function d(v,h){var g=f((v=uy(v),v.type="f",v)),_=Math.max(-8,Math.min(8,Math.floor(pc(h)/3)))*3,A=Math.pow(10,-_),b=GI[8+_/3];return function(w){return g(A*w)+b}}return{format:f,formatPrefix:d}}var am,wB,xB;_B({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _B(e){return am=bB(e),wB=am.format,xB=am.formatPrefix,am}function Yne(e){return Math.max(0,-pc(Math.abs(e)))}function Xne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pc(t)/3)))*3-pc(Math.abs(e)))}function Kne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pc(t)-pc(e))+1}const Qne=Object.freeze(Object.defineProperty({__proto__:null,formatDefaultLocale:_B,get format(){return wB},get formatPrefix(){return xB},formatLocale:bB,formatSpecifier:uy,FormatSpecifier:y1,precisionFixed:Yne,precisionPrefix:Xne,precisionRound:Kne},Symbol.toStringTag,{value:"Module"})),Cde=is(Qne);var Zne=function(e){for(var t=e.length,r,n=0;n<t;n++)if(r=e.charCodeAt(n),(r<9||r>13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0},Jne=Zne,Tde=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Jne(r))return!1}else if(t!=="number")return!1;return e-e<1},eie={exports:{}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,u=t.max,s=t.random;function f(j,te){if(j=j||"",te=te||{},j instanceof f)return j;if(!(this instanceof f))return new f(j,te);var I=d(j);this._originalInput=j,this._r=I.r,this._g=I.g,this._b=I.b,this._a=I.a,this._roundA=a(100*this._a)/100,this._format=te.format||I.format,this._gradientType=te.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=I.ok,this._tc_id=i++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),te,I,C,P,U,le;return te=j.r/255,I=j.g/255,C=j.b/255,te<=.03928?P=te/12.92:P=t.pow((te+.055)/1.055,2.4),I<=.03928?U=I/12.92:U=t.pow((I+.055)/1.055,2.4),C<=.03928?le=C/12.92:le=t.pow((C+.055)/1.055,2.4),.2126*P+.7152*U+.0722*le},setAlpha:function(j){return this._a=qe(j),this._roundA=a(100*this._a)/100,this},toHsv:function(){var j=_(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=_(this._r,this._g,this._b),te=a(j.h*360),I=a(j.s*100),C=a(j.v*100);return this._a==1?"hsv("+te+", "+I+"%, "+C+"%)":"hsva("+te+", "+I+"%, "+C+"%, "+this._roundA+")"},toHsl:function(){var j=h(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=h(this._r,this._g,this._b),te=a(j.h*360),I=a(j.s*100),C=a(j.l*100);return this._a==1?"hsl("+te+", "+I+"%, "+C+"%)":"hsla("+te+", "+I+"%, "+C+"%, "+this._roundA+")"},toHex:function(j){return b(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return w(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Ue(this._r,255)*100)+"%",g:a(Ue(this._g,255)*100)+"%",b:a(Ue(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Ue(this._r,255)*100)+"%, "+a(Ue(this._g,255)*100)+"%, "+a(Ue(this._b,255)*100)+"%)":"rgba("+a(Ue(this._r,255)*100)+"%, "+a(Ue(this._g,255)*100)+"%, "+a(Ue(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:me[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var te="#"+S(this._r,this._g,this._b,this._a),I=te,C=this._gradientType?"GradientType = 1, ":"";if(j){var P=f(j);I="#"+S(P._r,P._g,P._b,P._a)}return"progid:DXImageTransform.Microsoft.gradient("+C+"startColorstr="+te+",endColorstr="+I+")"},toString:function(j){var te=!!j;j=j||this._format;var I=!1,C=this._a<1&&this._a>=0,P=!te&&C&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return P?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(I=this.toRgbString()),j==="prgb"&&(I=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(I=this.toHexString()),j==="hex3"&&(I=this.toHexString(!0)),j==="hex4"&&(I=this.toHex8String(!0)),j==="hex8"&&(I=this.toHex8String()),j==="name"&&(I=this.toName()),j==="hsl"&&(I=this.toHslString()),j==="hsv"&&(I=this.toHsvString()),I||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(j,te){var I=j.apply(null,[this].concat([].slice.call(te)));return this._r=I._r,this._g=I._g,this._b=I._b,this.setAlpha(I._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(z,arguments)},darken:function(){return this._applyModification(N,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(L,arguments)},_applyCombination:function(j,te){return j.apply(null,[this].concat([].slice.call(te)))},analogous:function(){return this._applyCombination(Ee,arguments)},complement:function(){return this._applyCombination(ee,arguments)},monochromatic:function(){return this._applyCombination(Je,arguments)},splitcomplement:function(){return this._applyCombination(we,arguments)},triad:function(){return this._applyCombination(ue,arguments)},tetrad:function(){return this._applyCombination(pe,arguments)}},f.fromRatio=function(j,te){if(typeof j=="object"){var I={};for(var C in j)j.hasOwnProperty(C)&&(C==="a"?I[C]=j[C]:I[C]=st(j[C]));j=I}return f(j,te)};function d(j){var te={r:0,g:0,b:0},I=1,C=null,P=null,U=null,le=!1,Ne=!1;return typeof j=="string"&&(j=mt(j)),typeof j=="object"&&(nt(j.r)&&nt(j.g)&&nt(j.b)?(te=v(j.r,j.g,j.b),le=!0,Ne=String(j.r).substr(-1)==="%"?"prgb":"rgb"):nt(j.h)&&nt(j.s)&&nt(j.v)?(C=st(j.s),P=st(j.v),te=A(j.h,C,P),le=!0,Ne="hsv"):nt(j.h)&&nt(j.s)&&nt(j.l)&&(C=st(j.s),U=st(j.l),te=g(j.h,C,U),le=!0,Ne="hsl"),j.hasOwnProperty("a")&&(I=j.a)),I=qe(I),{ok:le,format:j.format||Ne,r:o(255,u(te.r,0)),g:o(255,u(te.g,0)),b:o(255,u(te.b,0)),a:I}}function v(j,te,I){return{r:Ue(j,255)*255,g:Ue(te,255)*255,b:Ue(I,255)*255}}function h(j,te,I){j=Ue(j,255),te=Ue(te,255),I=Ue(I,255);var C=u(j,te,I),P=o(j,te,I),U,le,Ne=(C+P)/2;if(C==P)U=le=0;else{var ze=C-P;switch(le=Ne>.5?ze/(2-C-P):ze/(C+P),C){case j:U=(te-I)/ze+(te<I?6:0);break;case te:U=(I-j)/ze+2;break;case I:U=(j-te)/ze+4;break}U/=6}return{h:U,s:le,l:Ne}}function g(j,te,I){var C,P,U;j=Ue(j,360),te=Ue(te,100),I=Ue(I,100);function le(qt,Qt,nr){return nr<0&&(nr+=1),nr>1&&(nr-=1),nr<1/6?qt+(Qt-qt)*6*nr:nr<1/2?Qt:nr<2/3?qt+(Qt-qt)*(2/3-nr)*6:qt}if(te===0)C=P=U=I;else{var Ne=I<.5?I*(1+te):I+te-I*te,ze=2*I-Ne;C=le(ze,Ne,j+1/3),P=le(ze,Ne,j),U=le(ze,Ne,j-1/3)}return{r:C*255,g:P*255,b:U*255}}function _(j,te,I){j=Ue(j,255),te=Ue(te,255),I=Ue(I,255);var C=u(j,te,I),P=o(j,te,I),U,le,Ne=C,ze=C-P;if(le=C===0?0:ze/C,C==P)U=0;else{switch(C){case j:U=(te-I)/ze+(te<I?6:0);break;case te:U=(I-j)/ze+2;break;case I:U=(j-te)/ze+4;break}U/=6}return{h:U,s:le,v:Ne}}function A(j,te,I){j=Ue(j,360)*6,te=Ue(te,100),I=Ue(I,100);var C=t.floor(j),P=j-C,U=I*(1-te),le=I*(1-P*te),Ne=I*(1-(1-P)*te),ze=C%6,qt=[I,le,U,U,Ne,I][ze],Qt=[Ne,I,I,le,U,U][ze],nr=[U,U,Ne,I,I,le][ze];return{r:qt*255,g:Qt*255,b:nr*255}}function b(j,te,I,C){var P=[Ze(a(j).toString(16)),Ze(a(te).toString(16)),Ze(a(I).toString(16))];return C&&P[0].charAt(0)==P[0].charAt(1)&&P[1].charAt(0)==P[1].charAt(1)&&P[2].charAt(0)==P[2].charAt(1)?P[0].charAt(0)+P[1].charAt(0)+P[2].charAt(0):P.join("")}function w(j,te,I,C,P){var U=[Ze(a(j).toString(16)),Ze(a(te).toString(16)),Ze(a(I).toString(16)),Ze(Rt(C))];return P&&U[0].charAt(0)==U[0].charAt(1)&&U[1].charAt(0)==U[1].charAt(1)&&U[2].charAt(0)==U[2].charAt(1)&&U[3].charAt(0)==U[3].charAt(1)?U[0].charAt(0)+U[1].charAt(0)+U[2].charAt(0)+U[3].charAt(0):U.join("")}function S(j,te,I,C){var P=[Ze(Rt(C)),Ze(a(j).toString(16)),Ze(a(te).toString(16)),Ze(a(I).toString(16))];return P.join("")}f.equals=function(j,te){return!j||!te?!1:f(j).toRgbString()==f(te).toRgbString()},f.random=function(){return f.fromRatio({r:s(),g:s(),b:s()})};function E(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.s-=te/100,I.s=be(I.s),f(I)}function R(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.s+=te/100,I.s=be(I.s),f(I)}function M(j){return f(j).desaturate(100)}function D(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.l+=te/100,I.l=be(I.l),f(I)}function z(j,te){te=te===0?0:te||10;var I=f(j).toRgb();return I.r=u(0,o(255,I.r-a(255*-(te/100)))),I.g=u(0,o(255,I.g-a(255*-(te/100)))),I.b=u(0,o(255,I.b-a(255*-(te/100)))),f(I)}function N(j,te){te=te===0?0:te||10;var I=f(j).toHsl();return I.l-=te/100,I.l=be(I.l),f(I)}function L(j,te){var I=f(j).toHsl(),C=(I.h+te)%360;return I.h=C<0?360+C:C,f(I)}function ee(j){var te=f(j).toHsl();return te.h=(te.h+180)%360,f(te)}function ue(j){var te=f(j).toHsl(),I=te.h;return[f(j),f({h:(I+120)%360,s:te.s,l:te.l}),f({h:(I+240)%360,s:te.s,l:te.l})]}function pe(j){var te=f(j).toHsl(),I=te.h;return[f(j),f({h:(I+90)%360,s:te.s,l:te.l}),f({h:(I+180)%360,s:te.s,l:te.l}),f({h:(I+270)%360,s:te.s,l:te.l})]}function we(j){var te=f(j).toHsl(),I=te.h;return[f(j),f({h:(I+72)%360,s:te.s,l:te.l}),f({h:(I+216)%360,s:te.s,l:te.l})]}function Ee(j,te,I){te=te||6,I=I||30;var C=f(j).toHsl(),P=360/I,U=[f(j)];for(C.h=(C.h-(P*te>>1)+720)%360;--te;)C.h=(C.h+P)%360,U.push(f(C));return U}function Je(j,te){te=te||6;for(var I=f(j).toHsv(),C=I.h,P=I.s,U=I.v,le=[],Ne=1/te;te--;)le.push(f({h:C,s:P,v:U})),U=(U+Ne)%1;return le}f.mix=function(j,te,I){I=I===0?0:I||50;var C=f(j).toRgb(),P=f(te).toRgb(),U=I/100,le={r:(P.r-C.r)*U+C.r,g:(P.g-C.g)*U+C.g,b:(P.b-C.b)*U+C.b,a:(P.a-C.a)*U+C.a};return f(le)},f.readability=function(j,te){var I=f(j),C=f(te);return(t.max(I.getLuminance(),C.getLuminance())+.05)/(t.min(I.getLuminance(),C.getLuminance())+.05)},f.isReadable=function(j,te,I){var C=f.readability(j,te),P,U;switch(U=!1,P=_e(I),P.level+P.size){case"AAsmall":case"AAAlarge":U=C>=4.5;break;case"AAlarge":U=C>=3;break;case"AAAsmall":U=C>=7;break}return U},f.mostReadable=function(j,te,I){var C=null,P=0,U,le,Ne,ze;I=I||{},le=I.includeFallbackColors,Ne=I.level,ze=I.size;for(var qt=0;qt<te.length;qt++)U=f.readability(j,te[qt]),U>P&&(P=U,C=f(te[qt]));return f.isReadable(j,C,{level:Ne,size:ze})||!le?C:(I.includeFallbackColors=!1,f.mostReadable(j,["#fff","#000"],I))};var je=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},me=f.hexNames=Fe(je);function Fe(j){var te={};for(var I in j)j.hasOwnProperty(I)&&(te[j[I]]=I);return te}function qe(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function Ue(j,te){Ke(j)&&(j="100%");var I=We(j);return j=o(te,u(0,parseFloat(j))),I&&(j=parseInt(j*te,10)/100),t.abs(j-te)<1e-6?1:j%te/parseFloat(te)}function be(j){return o(1,u(0,j))}function ye(j){return parseInt(j,16)}function Ke(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function We(j){return typeof j=="string"&&j.indexOf("%")!=-1}function Ze(j){return j.length==1?"0"+j:""+j}function st(j){return j<=1&&(j=j*100+"%"),j}function Rt(j){return t.round(parseFloat(j)*255).toString(16)}function kt(j){return ye(j)/255}var Ae=function(){var j="[-\\+]?\\d+%?",te="[-\\+]?\\d*\\.\\d+%?",I="(?:"+te+")|(?:"+j+")",C="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",P="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?";return{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+C),rgba:new RegExp("rgba"+P),hsl:new RegExp("hsl"+C),hsla:new RegExp("hsla"+P),hsv:new RegExp("hsv"+C),hsva:new RegExp("hsva"+P),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function nt(j){return!!Ae.CSS_UNIT.exec(j)}function mt(j){j=j.replace(r,"").replace(n,"").toLowerCase();var te=!1;if(je[j])j=je[j],te=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var I;return(I=Ae.rgb.exec(j))?{r:I[1],g:I[2],b:I[3]}:(I=Ae.rgba.exec(j))?{r:I[1],g:I[2],b:I[3],a:I[4]}:(I=Ae.hsl.exec(j))?{h:I[1],s:I[2],l:I[3]}:(I=Ae.hsla.exec(j))?{h:I[1],s:I[2],l:I[3],a:I[4]}:(I=Ae.hsv.exec(j))?{h:I[1],s:I[2],v:I[3]}:(I=Ae.hsva.exec(j))?{h:I[1],s:I[2],v:I[3],a:I[4]}:(I=Ae.hex8.exec(j))?{r:ye(I[1]),g:ye(I[2]),b:ye(I[3]),a:kt(I[4]),format:te?"name":"hex8"}:(I=Ae.hex6.exec(j))?{r:ye(I[1]),g:ye(I[2]),b:ye(I[3]),format:te?"name":"hex"}:(I=Ae.hex4.exec(j))?{r:ye(I[1]+""+I[1]),g:ye(I[2]+""+I[2]),b:ye(I[3]+""+I[3]),a:kt(I[4]+""+I[4]),format:te?"name":"hex8"}:(I=Ae.hex3.exec(j))?{r:ye(I[1]+""+I[1]),g:ye(I[2]+""+I[2]),b:ye(I[3]+""+I[3]),format:te?"name":"hex"}:!1}function _e(j){var te,I;return j=j||{level:"AA",size:"small"},te=(j.level||"AA").toUpperCase(),I=(j.size||"small").toLowerCase(),te!=="AA"&&te!=="AAA"&&(te="AA"),I!=="small"&&I!=="large"&&(I="small"),{level:te,size:I}}e.exports?e.exports=f:window.tinycolor=f})(Math)})(eie);var tie=rie;function rie(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var nie=iie;function iie(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}var aie=oie;function oie(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var SB=uie;function uie(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var lie=sie;function sie(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],u=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=u}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var fie=cie;function cie(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],u=t[5],s=t[6],f=t[7],d=t[8],v=t[9],h=t[10],g=t[11],_=t[12],A=t[13],b=t[14],w=t[15],S=r*u-n*o,E=r*s-i*o,R=r*f-a*o,M=n*s-i*u,D=n*f-a*u,z=i*f-a*s,N=d*A-v*_,L=d*b-h*_,ee=d*w-g*_,ue=v*b-h*A,pe=v*w-g*A,we=h*w-g*b,Ee=S*we-E*pe+R*ue+M*ee-D*L+z*N;return Ee?(Ee=1/Ee,e[0]=(u*we-s*pe+f*ue)*Ee,e[1]=(i*pe-n*we-a*ue)*Ee,e[2]=(A*z-b*D+w*M)*Ee,e[3]=(h*D-v*z-g*M)*Ee,e[4]=(s*ee-o*we-f*L)*Ee,e[5]=(r*we-i*ee+a*L)*Ee,e[6]=(b*R-_*z-w*E)*Ee,e[7]=(d*z-h*R+g*E)*Ee,e[8]=(o*pe-u*ee+f*N)*Ee,e[9]=(n*ee-r*pe-a*N)*Ee,e[10]=(_*D-A*R+w*S)*Ee,e[11]=(v*R-d*D-g*S)*Ee,e[12]=(u*L-o*ue-s*N)*Ee,e[13]=(r*ue-n*L+i*N)*Ee,e[14]=(A*E-_*M-b*S)*Ee,e[15]=(d*M-v*E+h*S)*Ee,e):null}var die=pie;function pie(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],u=t[5],s=t[6],f=t[7],d=t[8],v=t[9],h=t[10],g=t[11],_=t[12],A=t[13],b=t[14],w=t[15];return e[0]=u*(h*w-g*b)-v*(s*w-f*b)+A*(s*g-f*h),e[1]=-(n*(h*w-g*b)-v*(i*w-a*b)+A*(i*g-a*h)),e[2]=n*(s*w-f*b)-u*(i*w-a*b)+A*(i*f-a*s),e[3]=-(n*(s*g-f*h)-u*(i*g-a*h)+v*(i*f-a*s)),e[4]=-(o*(h*w-g*b)-d*(s*w-f*b)+_*(s*g-f*h)),e[5]=r*(h*w-g*b)-d*(i*w-a*b)+_*(i*g-a*h),e[6]=-(r*(s*w-f*b)-o*(i*w-a*b)+_*(i*f-a*s)),e[7]=r*(s*g-f*h)-o*(i*g-a*h)+d*(i*f-a*s),e[8]=o*(v*w-g*A)-d*(u*w-f*A)+_*(u*g-f*v),e[9]=-(r*(v*w-g*A)-d*(n*w-a*A)+_*(n*g-a*v)),e[10]=r*(u*w-f*A)-o*(n*w-a*A)+_*(n*f-a*u),e[11]=-(r*(u*g-f*v)-o*(n*g-a*v)+d*(n*f-a*u)),e[12]=-(o*(v*b-h*A)-d*(u*b-s*A)+_*(u*h-s*v)),e[13]=r*(v*b-h*A)-d*(n*b-i*A)+_*(n*h-i*v),e[14]=-(r*(u*b-s*A)-o*(n*b-i*A)+_*(n*s-i*u)),e[15]=r*(u*h-s*v)-o*(n*h-i*v)+d*(n*s-i*u),e}var hie=vie;function vie(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],u=e[6],s=e[7],f=e[8],d=e[9],v=e[10],h=e[11],g=e[12],_=e[13],A=e[14],b=e[15],w=t*o-r*a,S=t*u-n*a,E=t*s-i*a,R=r*u-n*o,M=r*s-i*o,D=n*s-i*u,z=f*_-d*g,N=f*A-v*g,L=f*b-h*g,ee=d*A-v*_,ue=d*b-h*_,pe=v*b-h*A;return w*pe-S*ue+E*ee+R*L-M*N+D*z}var gie=mie;function mie(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],u=t[4],s=t[5],f=t[6],d=t[7],v=t[8],h=t[9],g=t[10],_=t[11],A=t[12],b=t[13],w=t[14],S=t[15],E=r[0],R=r[1],M=r[2],D=r[3];return e[0]=E*n+R*u+M*v+D*A,e[1]=E*i+R*s+M*h+D*b,e[2]=E*a+R*f+M*g+D*w,e[3]=E*o+R*d+M*_+D*S,E=r[4],R=r[5],M=r[6],D=r[7],e[4]=E*n+R*u+M*v+D*A,e[5]=E*i+R*s+M*h+D*b,e[6]=E*a+R*f+M*g+D*w,e[7]=E*o+R*d+M*_+D*S,E=r[8],R=r[9],M=r[10],D=r[11],e[8]=E*n+R*u+M*v+D*A,e[9]=E*i+R*s+M*h+D*b,e[10]=E*a+R*f+M*g+D*w,e[11]=E*o+R*d+M*_+D*S,E=r[12],R=r[13],M=r[14],D=r[15],e[12]=E*n+R*u+M*v+D*A,e[13]=E*i+R*s+M*h+D*b,e[14]=E*a+R*f+M*g+D*w,e[15]=E*o+R*d+M*_+D*S,e}var yie=bie;function bie(e,t,r){var n=r[0],i=r[1],a=r[2],o,u,s,f,d,v,h,g,_,A,b,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],u=t[1],s=t[2],f=t[3],d=t[4],v=t[5],h=t[6],g=t[7],_=t[8],A=t[9],b=t[10],w=t[11],e[0]=o,e[1]=u,e[2]=s,e[3]=f,e[4]=d,e[5]=v,e[6]=h,e[7]=g,e[8]=_,e[9]=A,e[10]=b,e[11]=w,e[12]=o*n+d*i+_*a+t[12],e[13]=u*n+v*i+A*a+t[13],e[14]=s*n+h*i+b*a+t[14],e[15]=f*n+g*i+w*a+t[15]),e}var wie=xie;function xie(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var _ie=Sie;function Sie(e,t,r,n){var i=n[0],a=n[1],o=n[2],u=Math.sqrt(i*i+a*a+o*o),s,f,d,v,h,g,_,A,b,w,S,E,R,M,D,z,N,L,ee,ue,pe,we,Ee,Je;return Math.abs(u)<1e-6?null:(u=1/u,i*=u,a*=u,o*=u,s=Math.sin(r),f=Math.cos(r),d=1-f,v=t[0],h=t[1],g=t[2],_=t[3],A=t[4],b=t[5],w=t[6],S=t[7],E=t[8],R=t[9],M=t[10],D=t[11],z=i*i*d+f,N=a*i*d+o*s,L=o*i*d-a*s,ee=i*a*d-o*s,ue=a*a*d+f,pe=o*a*d+i*s,we=i*o*d+a*s,Ee=a*o*d-i*s,Je=o*o*d+f,e[0]=v*z+A*N+E*L,e[1]=h*z+b*N+R*L,e[2]=g*z+w*N+M*L,e[3]=_*z+S*N+D*L,e[4]=v*ee+A*ue+E*pe,e[5]=h*ee+b*ue+R*pe,e[6]=g*ee+w*ue+M*pe,e[7]=_*ee+S*ue+D*pe,e[8]=v*we+A*Ee+E*Je,e[9]=h*we+b*Ee+R*Je,e[10]=g*we+w*Ee+M*Je,e[11]=_*we+S*Ee+D*Je,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var Eie=Aie;function Aie(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],u=t[6],s=t[7],f=t[8],d=t[9],v=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+f*n,e[5]=o*i+d*n,e[6]=u*i+v*n,e[7]=s*i+h*n,e[8]=f*i-a*n,e[9]=d*i-o*n,e[10]=v*i-u*n,e[11]=h*i-s*n,e}var Cie=Tie;function Tie(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],u=t[2],s=t[3],f=t[8],d=t[9],v=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-f*n,e[1]=o*i-d*n,e[2]=u*i-v*n,e[3]=s*i-h*n,e[8]=a*n+f*i,e[9]=o*n+d*i,e[10]=u*n+v*i,e[11]=s*n+h*i,e}var Rie=Oie;function Oie(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],u=t[2],s=t[3],f=t[4],d=t[5],v=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+f*n,e[1]=o*i+d*n,e[2]=u*i+v*n,e[3]=s*i+h*n,e[4]=f*i-a*n,e[5]=d*i-o*n,e[6]=v*i-u*n,e[7]=h*i-s*n,e}var Iie=Pie;function Pie(e,t,r){var n,i,a,o=r[0],u=r[1],s=r[2],f=Math.sqrt(o*o+u*u+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,u*=f,s*=f,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=u*o*a+s*n,e[2]=s*o*a-u*n,e[3]=0,e[4]=o*u*a-s*n,e[5]=u*u*a+i,e[6]=s*u*a+o*n,e[7]=0,e[8]=o*s*a+u*n,e[9]=u*s*a-o*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var kie=Mie;function Mie(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],u=n+n,s=i+i,f=a+a,d=n*u,v=n*s,h=n*f,g=i*s,_=i*f,A=a*f,b=o*u,w=o*s,S=o*f;return e[0]=1-(g+A),e[1]=v+S,e[2]=h-w,e[3]=0,e[4]=v-S,e[5]=1-(d+A),e[6]=_+b,e[7]=0,e[8]=h+w,e[9]=_-b,e[10]=1-(d+g),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var Die=Fie;function Fie(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Nie=Lie;function Lie(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}var Bie=$ie;function $ie(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var zie=Uie;function Uie(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var jie=Wie;function Wie(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Gie=qie;function qie(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,u=n+n,s=i+i,f=r*o,d=n*o,v=n*u,h=i*o,g=i*u,_=i*s,A=a*o,b=a*u,w=a*s;return e[0]=1-v-_,e[1]=d+w,e[2]=h-b,e[3]=0,e[4]=d-w,e[5]=1-f-_,e[6]=g+A,e[7]=0,e[8]=h+b,e[9]=g-A,e[10]=1-f-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Hie=Vie;function Vie(e,t,r,n,i,a,o){var u=1/(r-t),s=1/(i-n),f=1/(a-o);return e[0]=a*2*u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*u,e[9]=(i+n)*s,e[10]=(o+a)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*f,e[15]=0,e}var Yie=Xie;function Xie(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}var Kie=Qie;function Qie(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),u=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+u),f=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-u)*s*.5),e[9]=(i-a)*f*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}var Zie=Jie;function Jie(e,t,r,n,i,a,o){var u=1/(t-r),s=1/(n-i),f=1/(a-o);return e[0]=-2*u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(t+r)*u,e[13]=(i+n)*s,e[14]=(o+a)*f,e[15]=1,e}var eae=SB,tae=rae;function rae(e,t,r,n){var i,a,o,u,s,f,d,v,h,g,_=t[0],A=t[1],b=t[2],w=n[0],S=n[1],E=n[2],R=r[0],M=r[1],D=r[2];return Math.abs(_-R)<1e-6&&Math.abs(A-M)<1e-6&&Math.abs(b-D)<1e-6?eae(e):(d=_-R,v=A-M,h=b-D,g=1/Math.sqrt(d*d+v*v+h*h),d*=g,v*=g,h*=g,i=S*h-E*v,a=E*d-w*h,o=w*v-S*d,g=Math.sqrt(i*i+a*a+o*o),g?(g=1/g,i*=g,a*=g,o*=g):(i=0,a=0,o=0),u=v*o-h*a,s=h*i-d*o,f=d*a-v*i,g=Math.sqrt(u*u+s*s+f*f),g?(g=1/g,u*=g,s*=g,f*=g):(u=0,s=0,f=0),e[0]=i,e[1]=u,e[2]=d,e[3]=0,e[4]=a,e[5]=s,e[6]=v,e[7]=0,e[8]=o,e[9]=f,e[10]=h,e[11]=0,e[12]=-(i*_+a*A+o*b),e[13]=-(u*_+s*A+f*b),e[14]=-(d*_+v*A+h*b),e[15]=1,e)}var nae=iae;function iae(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}var Rde={create:tie,clone:nie,copy:aie,identity:SB,transpose:lie,invert:fie,adjoint:die,determinant:hie,multiply:gie,translate:yie,scale:wie,rotate:_ie,rotateX:Eie,rotateY:Cie,rotateZ:Rie,fromRotation:Iie,fromRotationTranslation:kie,fromScaling:Die,fromTranslation:Nie,fromXRotation:Bie,fromYRotation:zie,fromZRotation:jie,fromQuat:Gie,frustum:Hie,perspective:Yie,perspectiveFromFieldOfView:Kie,ortho:Zie,lookAt:tae,str:nae},RC={exports:{}};RC.exports=OC;RC.exports.isMobile=OC;RC.exports.default=OC;var aae=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,oae=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function OC(e){e||(e={});var t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;var r=e.tablet?oae.test(t):aae.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var uae=!0,lae=uae,SS;typeof _r.matchMedia=="function"?SS=!_r.matchMedia("(hover: none)").matches:SS=lae;var Ode=SS,EB={exports:{}},Yf=typeof Reflect=="object"?Reflect:null,qI=Yf&&typeof Yf.apply=="function"?Yf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Wm;Yf&&typeof Yf.ownKeys=="function"?Wm=Yf.ownKeys:Object.getOwnPropertySymbols?Wm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Wm=function(t){return Object.getOwnPropertyNames(t)};function sae(e){console&&console.warn&&console.warn(e)}var AB=Number.isNaN||function(t){return t!==t};function Dr(){Dr.init.call(this)}EB.exports=Dr;EB.exports.once=pae;Dr.EventEmitter=Dr;Dr.prototype._events=void 0;Dr.prototype._eventsCount=0;Dr.prototype._maxListeners=void 0;var HI=10;function b1(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Dr,"defaultMaxListeners",{enumerable:!0,get:function(){return HI},set:function(e){if(typeof e!="number"||e<0||AB(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");HI=e}});Dr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Dr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||AB(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function CB(e){return e._maxListeners===void 0?Dr.defaultMaxListeners:e._maxListeners}Dr.prototype.getMaxListeners=function(){return CB(this)};Dr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var u=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw u.context=o,u}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")qI(s,this,r);else for(var f=s.length,d=PB(s,f),n=0;n<f;++n)qI(d[n],this,r);return!0};function TB(e,t,r,n){var i,a,o;if(b1(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=CB(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,sae(u)}return e}Dr.prototype.addListener=function(t,r){return TB(this,t,r,!1)};Dr.prototype.on=Dr.prototype.addListener;Dr.prototype.prependListener=function(t,r){return TB(this,t,r,!0)};function fae(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function RB(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=fae.bind(n);return i.listener=r,n.wrapFn=i,i}Dr.prototype.once=function(t,r){return b1(r),this.on(t,RB(this,t,r)),this};Dr.prototype.prependOnceListener=function(t,r){return b1(r),this.prependListener(t,RB(this,t,r)),this};Dr.prototype.removeListener=function(t,r){var n,i,a,o,u;if(b1(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){u=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():cae(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,u||r)}return this};Dr.prototype.off=Dr.prototype.removeListener;Dr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function OB(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?dae(i):PB(i,i.length)}Dr.prototype.listeners=function(t){return OB(this,t,!0)};Dr.prototype.rawListeners=function(t){return OB(this,t,!1)};Dr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):IB.call(e,t)};Dr.prototype.listenerCount=IB;function IB(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Dr.prototype.eventNames=function(){return this._eventsCount>0?Wm(this._events):[]};function PB(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function cae(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function dae(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function pae(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}kB(e,t,a,{once:!0}),t!=="error"&&hae(e,i,{once:!0})})}function hae(e,t,r){typeof e.on=="function"&&kB(e,"error",t,r)}function kB(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var MB=gae,qx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},vae=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function gae(e){var t=[];return e.replace(vae,function(r,n,i){var a=n.toLowerCase();for(i=yae(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==qx[a])return i.unshift(n),t.push(i);if(i.length<qx[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,qx[a])))}}),t}var mae=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function yae(e){var t=e.match(mae);return t?t.map(Number):[]}var bae={left:0,top:0},Ide=wae;function wae(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=xae(t);return r[0]=n-a.left,r[1]=i-a.top,r}function xae(e){return e===window||e===document||e===document.body?bae:e.getBoundingClientRect()}function _ae(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}var Pde=_ae();function Sae(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var Eae=Sae;function Aae(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],u=i[0],s=i[1],f=r[0],d=r[1];return(u-a)*(d-o)-(s-o)*(f-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],u=r[0]-n[0],s=i[1]-n[1],f=u*o+a*s;if(f<e)return!1;var d=o*o+s*s;return!(f-d>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],o=r[1]-n[1],u=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-u*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],u=n[1]-r[1],s=a[0]-i[0],f=a[1]-i[1],d=o*f-u*s;if(Math.abs(d)<e)return!1;var v=r[0]-i[0],h=r[1]-i[1],g=(s*h-f*v)/d,_=(o*h-u*v)/d,A={alongA:0,alongB:0,pt:[r[0]+g*o,r[1]+g*u]};return g<=-e?A.alongA=-2:g<e?A.alongA=-1:g-1<=-e?A.alongA=0:g-1<e?A.alongA=1:A.alongA=2,_<=-e?A.alongB=-2:_<e?A.alongB=-1:_-1<=-e?A.alongB=0:_-1<e?A.alongB=1:A.alongB=2,A},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],u=n[n.length-1][1],s=!1,f=0;f<n.length;f++){var d=n[f][0],v=n[f][1];v-a>e!=u-a>e&&(o-d)*(a-v)/(u-v)+d-i>e&&(s=!s),o=d,u=v}return s}};return t}var Cae=Aae,Tae={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}},Rae=Tae,fp=Rae;function Oae(e,t,r){function n(_,A){return{id:r?r.segmentId():-1,start:_,end:A,myFill:{above:null,below:null},otherFill:null}}function i(_,A,b){return{id:r?r.segmentId():-1,start:_,end:A,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=fp.create();function o(_,A,b,w,S,E){var R=t.pointsCompare(A,S);return R!==0?R:t.pointsSame(b,E)?0:_!==w?_?1:-1:t.pointAboveOrOnLine(b,w?S:E,w?E:S)?1:-1}function u(_,A){a.insertBefore(_,function(b){var w=o(_.isStart,_.pt,A,b.isStart,b.pt,b.other.pt);return w<0})}function s(_,A){var b=fp.node({isStart:!0,pt:_.start,seg:_,primary:A,other:null,status:null});return u(b,_.end),b}function f(_,A,b){var w=fp.node({isStart:!1,pt:A.end,seg:A,primary:b,other:_,status:null});_.other=w,u(w,_.pt)}function d(_,A){var b=s(_,A);return f(b,_,A),b}function v(_,A){r&&r.segmentChop(_.seg,A),_.other.remove(),_.seg.end=A,_.other.pt=A,u(_.other,_.pt)}function h(_,A){var b=i(A,_.seg.end,_.seg);return v(_,A),d(b,_.primary)}function g(_,A){var b=fp.create();function w(Ee,Je){var je=Ee.seg.start,me=Ee.seg.end,Fe=Je.seg.start,qe=Je.seg.end;return t.pointsCollinear(je,Fe,qe)?t.pointsCollinear(me,Fe,qe)||t.pointAboveOrOnLine(me,Fe,qe)?1:-1:t.pointAboveOrOnLine(je,Fe,qe)?1:-1}function S(Ee){return b.findTransition(function(Je){var je=w(Ee,Je.ev);return je>0})}function E(Ee,Je){var je=Ee.seg,me=Je.seg,Fe=je.start,qe=je.end,Ue=me.start,be=me.end;r&&r.checkIntersection(je,me);var ye=t.linesIntersect(Fe,qe,Ue,be);if(ye===!1){if(!t.pointsCollinear(Fe,qe,Ue)||t.pointsSame(Fe,be)||t.pointsSame(qe,Ue))return!1;var Ke=t.pointsSame(Fe,Ue),We=t.pointsSame(qe,be);if(Ke&&We)return Je;var Ze=!Ke&&t.pointBetween(Fe,Ue,be),st=!We&&t.pointBetween(qe,Ue,be);if(Ke)return st?h(Je,qe):h(Ee,be),Je;Ze&&(We||(st?h(Je,qe):h(Ee,be)),h(Je,Fe))}else ye.alongA===0&&(ye.alongB===-1?h(Ee,Ue):ye.alongB===0?h(Ee,ye.pt):ye.alongB===1&&h(Ee,be)),ye.alongB===0&&(ye.alongA===-1?h(Je,Fe):ye.alongA===0?h(Je,ye.pt):ye.alongA===1&&h(Je,qe));return!1}for(var R=[];!a.isEmpty();){var M=a.getHead();if(r&&r.vert(M.pt[0]),M.isStart){let Ee=function(){if(z){var Je=E(M,z);if(Je)return Je}return N?E(M,N):!1};r&&r.segmentNew(M.seg,M.primary);var D=S(M),z=D.before?D.before.ev:null,N=D.after?D.after.ev:null;r&&r.tempStatus(M.seg,z?z.seg:!1,N?N.seg:!1);var L=Ee();if(L){if(e){var ee;M.seg.myFill.below===null?ee=!0:ee=M.seg.myFill.above!==M.seg.myFill.below,ee&&(L.seg.myFill.above=!L.seg.myFill.above)}else L.seg.otherFill=M.seg.myFill;r&&r.segmentUpdate(L.seg),M.other.remove(),M.remove()}if(a.getHead()!==M){r&&r.rewind(M.seg);continue}if(e){var ee;M.seg.myFill.below===null?ee=!0:ee=M.seg.myFill.above!==M.seg.myFill.below,N?M.seg.myFill.below=N.seg.myFill.above:M.seg.myFill.below=_,ee?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var ue;N?M.primary===N.primary?ue=N.seg.otherFill.above:ue=N.seg.myFill.above:ue=M.primary?A:_,M.seg.otherFill={above:ue,below:ue}}r&&r.status(M.seg,z?z.seg:!1,N?N.seg:!1),M.other.status=D.insert(fp.node({ev:M}))}else{var pe=M.status;if(pe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(pe.prev)&&b.exists(pe.next)&&E(pe.prev.ev,pe.next.ev),r&&r.statusRemove(pe.ev.seg),pe.remove(),!M.primary){var we=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=we}R.push(M.seg)}a.getHead().remove()}return r&&r.done(),R}return e?{addRegion:function(_){for(var A,b=_[_.length-1],w=0;w<_.length;w++){A=b,b=_[w];var S=t.pointsCompare(A,b);S!==0&&d(n(S<0?A:b,S<0?b:A),!0)}},calculate:function(_){return g(_,!1)}}:{calculate:function(_,A,b,w){return _.forEach(function(S){d(i(S.start,S.end,S),!0)}),b.forEach(function(S){d(i(S.start,S.end,S),!1)}),g(A,w)}}}var Iae=Oae;function Pae(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,u=a.end;if(t.pointsSame(o,u)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},d=s;function v(pe,we,Ee){return d.index=pe,d.matches_head=we,d.matches_pt1=Ee,d===s?(d=f,!1):(d=null,!0)}for(var h=0;h<n.length;h++){var g=n[h],_=g[0];g[1];var A=g[g.length-1];if(g[g.length-2],t.pointsSame(_,o)){if(v(h,!0,!0))break}else if(t.pointsSame(_,u)){if(v(h,!0,!1))break}else if(t.pointsSame(A,o)){if(v(h,!1,!0))break}else if(t.pointsSame(A,u)&&v(h,!1,!1))break}if(d===s){n.push([o,u]),r&&r.chainNew(o,u);return}if(d===f){r&&r.chainMatch(s.index);var b=s.index,w=s.matches_pt1?u:o,S=s.matches_head,g=n[b],E=S?g[0]:g[g.length-1],R=S?g[1]:g[g.length-2],M=S?g[g.length-1]:g[0],D=S?g[g.length-2]:g[1];if(t.pointsCollinear(R,E,w)&&(S?(r&&r.chainRemoveHead(s.index,w),g.shift()):(r&&r.chainRemoveTail(s.index,w),g.pop()),E=R),t.pointsSame(M,w)){n.splice(b,1),t.pointsCollinear(D,M,E)&&(S?(r&&r.chainRemoveTail(s.index,E),g.pop()):(r&&r.chainRemoveHead(s.index,E),g.shift())),r&&r.chainClose(s.index),i.push(g);return}S?(r&&r.chainAddHead(s.index,w),g.unshift(w)):(r&&r.chainAddTail(s.index,w),g.push(w));return}function z(pe){r&&r.chainReverse(pe),n[pe].reverse()}function N(pe,we){var Ee=n[pe],Je=n[we],je=Ee[Ee.length-1],me=Ee[Ee.length-2],Fe=Je[0],qe=Je[1];t.pointsCollinear(me,je,Fe)&&(r&&r.chainRemoveTail(pe,je),Ee.pop(),je=me),t.pointsCollinear(je,Fe,qe)&&(r&&r.chainRemoveHead(we,Fe),Je.shift()),r&&r.chainJoin(pe,we),n[pe]=Ee.concat(Je),n.splice(we,1)}var L=s.index,ee=f.index;r&&r.chainConnect(L,ee);var ue=n[L].length<n[ee].length;s.matches_head?f.matches_head?ue?(z(L),N(L,ee)):(z(ee),N(ee,L)):N(ee,L):f.matches_head?N(L,ee):ue?(z(L),N(ee,L)):(z(ee),N(L,ee))}),i}var kae=Pae;function cp(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var Mae={union:function(e,t){return cp(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return cp(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return cp(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return cp(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return cp(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},Dae=Mae,Fae={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var d=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[d]})}for(var u=o(a[0]),s=1;s<a.length;s++)u=e.selectDifference(e.combine(u,o(a[s])));return u}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(g,_){return t.pointInsideRegion([(g[0][0]+g[1][0])*.5,(g[0][1]+g[1][1])*.5],_)}function i(g){return{region:g,children:[]}}var a=i(null);function o(g,_){for(var A=0;A<g.children.length;A++){var b=g.children[A];if(n(_,b.region)){o(b,_);return}}for(var w=i(_),A=0;A<g.children.length;A++){var b=g.children[A];n(b.region,_)&&(w.children.push(b),g.children.splice(A,1),A--)}g.children.push(w)}for(var u=0;u<r.regions.length;u++){var s=r.regions[u];s.length<3||o(a,s)}function f(g,_){for(var A=0,b=g[g.length-1][0],w=g[g.length-1][1],S=[],E=0;E<g.length;E++){var R=g[E][0],M=g[E][1];S.push([R,M]),A+=M*b-R*w,b=R,w=M}var D=A<0;return D!==_&&S.reverse(),S.push([S[0][0],S[0][1]]),S}var d=[];function v(g){var _=[f(g.region,!1)];d.push(_);for(var A=0;A<g.children.length;A++)_.push(h(g.children[A]))}function h(g){for(var _=0;_<g.children.length;_++)v(g.children[_]);return f(g.region,!0)}for(var u=0;u<a.children.length;u++)v(a.children[u]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},Nae=Fae;/*
|
|
921
921
|
* @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
|
|
922
922
|
* @license MIT
|
|
923
923
|
* @preserve Project Home: https://github.com/voidqk/polybooljs
|
|
924
|
-
*/var Lae=Eae,Bae=Cae,VI=Iae,$ae=kae,dp=Dae,YI=Nae,Di=!1,pp=Bae(),si;si={buildLog:function(e){return e===!0?Di=Lae():e===!1&&(Di=!1),Di===!1?!1:Di.list},epsilon:function(e){return pp.epsilon(e)},segments:function(e){var t=VI(!0,pp,Di);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=VI(!1,pp,Di);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:dp.union(e.combined,Di),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:dp.intersect(e.combined,Di),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:dp.difference(e.combined,Di),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:dp.differenceRev(e.combined,Di),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:dp.xor(e.combined,Di),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:$ae(e.segments,pp,Di),inverted:e.inverted}},polygonFromGeoJSON:function(e){return YI.toPolygon(si,e)},polygonToGeoJSON:function(e){return YI.fromPolygon(si,pp,e)},union:function(e,t){return hp(e,t,si.selectUnion)},intersect:function(e,t){return hp(e,t,si.selectIntersect)},difference:function(e,t){return hp(e,t,si.selectDifference)},differenceRev:function(e,t){return hp(e,t,si.selectDifferenceRev)},xor:function(e,t){return hp(e,t,si.selectXor)}};function hp(e,t,r){var n=si.segments(e),i=si.segments(t),a=si.combine(n,i),o=r(a);return si.polygon(o)}typeof window=="object"&&(window.PolyBool=si);var kde=si;const Mde=is(Fre);var DB={exports:{}};function zae(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s>=0?(a=o,i=o-1):n=o+1}return a}function Uae(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s>0?(a=o,i=o-1):n=o+1}return a}function jae(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s<0?(a=o,n=o+1):i=o-1}return a}function Wae(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s<=0?(a=o,n=o+1):i=o-1}return a}function Gae(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],u=r!==void 0?r(o,t):o-t;if(u===0)return a;u<=0?n=a+1:i=a-1}return-1}function vp(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}var qae={ge:function(e,t,r,n,i){return vp(e,t,r,n,i,zae)},gt:function(e,t,r,n,i){return vp(e,t,r,n,i,Uae)},lt:function(e,t,r,n,i){return vp(e,t,r,n,i,jae)},le:function(e,t,r,n,i){return vp(e,t,r,n,i,Wae)},eq:function(e,t,r,n,i){return vp(e,t,r,n,i,Gae)}},uv=Hae;function Hae(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var qu=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=XI(r)),Array.isArray(r)){var u={};for(o=0;o<r.length;o++)u[r[o]]=!0;r=u}for(a in r)r[a]=XI(r[a]);var s={};for(a in r){var f=r[a];if(Array.isArray(f))for(o=0;o<f.length;o++){var d=f[o];if(n&&(s[d]=!0),d in t){if(i[a]=t[d],n)for(var v=o;v<f.length;v++)s[f[v]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(s[a]=!0))}if(n)for(a in t)s[a]||(i[a]=t[a]);return i},Hx={};function XI(e){return Hx[e]?Hx[e]:(typeof e=="string"&&(e=Hx[e]=e.split(/\s*,\s*|\s+/)),e)}var Vae=qu,w1=Yae;function Yae(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=Vae(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}var lv=Xae;function Xae(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,o=n,u=e.length;o<u;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var FB=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},IC=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}},KI=IC,sv=Kae;function Kae(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,u,s;(!t||typeof t=="string")&&(t=new(KI(t||"float32"))(i+r));var f=t.length-r;if(i!==f)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+f);for(a=0,u=r;a<e.length;a++)for(o=0;o<n;o++)t[u++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var d=KI(t||"float32");if(Array.isArray(e)||t==="array")for(t=new d(e.length+r),a=0,u=r,s=t.length;u<s;u++,a++)t[u]=e[a]===null?NaN:e[a];else r===0?t=new d(e):(t=new d(e.length+r),t.set(e,r))}else t.set(e,r);return t}var Qae=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},Zae=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const QI=qae,ZI=uv,Jae=w1,eoe=lv,JI=qu,Vx=FB,toe=sv,roe=Qae,noe=IC,eP=Zae,ioe=1073741824;var aoe=function(t,r){r||(r={}),t=toe(t,"float64"),r=JI(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=Vx(r.maxDepth,255),i=Vx(r.bounds,eoe(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=tP(t,i),o=t.length>>>1,u;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?u=new(noe(r.dtype))(o):r.dtype&&(u=r.dtype,Array.isArray(u)&&(u.length=o));for(let w=0;w<o;++w)u[w]=w;let s=[],f=[],d=[],v=[];g(0,0,1,u,0,1);let h=0;for(let w=0;w<s.length;w++){let S=s[w];if(u.set)u.set(S,h);else for(let R=0,M=S.length;R<M;R++)u[R+h]=S[R];let E=h+s[w].length;v[w]=[h,E],h=E}return u.range=_,u;function g(w,S,E,R,M,D){if(!R.length)return null;let z=s[M]||(s[M]=[]),N=d[M]||(d[M]=[]),L=f[M]||(f[M]=[]),ee=z.length;if(M++,M>n||D>ioe){for(let Fe=0;Fe<R.length;Fe++)z.push(R[Fe]),N.push(D),L.push(null,null,null,null);return ee}if(z.push(R[0]),N.push(D),R.length<=1)return L.push(null,null,null,null),ee;let ue=E*.5,pe=w+ue,we=S+ue,Ee=[],Je=[],je=[],me=[];for(let Fe=1,qe=R.length;Fe<qe;Fe++){let Ue=R[Fe],be=a[Ue*2],ye=a[Ue*2+1];be<pe?ye<we?Ee.push(Ue):Je.push(Ue):ye<we?je.push(Ue):me.push(Ue)}return D<<=2,L.push(g(w,S,ue,Ee,M,D),g(w,we,ue,Je,M,D+1),g(pe,S,ue,je,M,D+2),g(pe,we,ue,me,M,D+3)),ee}function _(...w){let S;if(roe(w[w.length-1])){let je=w.pop();!w.length&&(je.x!=null||je.l!=null||je.left!=null)&&(w=[je],S={}),S=JI(je,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else S={};w.length||(w=i);let E=Jae(...w),[R,M,D,z]=[Math.min(E.x,E.x+E.width),Math.min(E.y,E.y+E.height),Math.max(E.x,E.x+E.width),Math.max(E.y,E.y+E.height)],[N,L,ee,ue]=tP([R,M,D,z],i),pe=Vx(S.level,s.length);if(S.d!=null){let je;typeof S.d=="number"?je=[S.d,S.d]:S.d.length&&(je=S.d),pe=Math.min(Math.max(Math.ceil(-eP(Math.abs(je[0])/(i[2]-i[0]))),Math.ceil(-eP(Math.abs(je[1])/(i[3]-i[1])))),pe)}if(pe=Math.min(pe,s.length),S.lod)return A(N,L,ee,ue,pe);let we=[];Ee(0,0,1,0,0,1);function Ee(je,me,Fe,qe,Ue,be){if(Ue===null||be===null)return;let ye=je+Fe,Ke=me+Fe;if(N>ye||L>Ke||ee<je||ue<me||qe>=pe||Ue===be)return;let We=s[qe];be===void 0&&(be=We.length);for(let j=Ue;j<be;j++){let te=We[j],I=t[te*2],C=t[te*2+1];I>=R&&I<=D&&C>=M&&C<=z&&we.push(te)}let Ze=f[qe],st=Ze[Ue*4+0],Rt=Ze[Ue*4+1],kt=Ze[Ue*4+2],Ae=Ze[Ue*4+3],nt=Je(Ze,Ue+1),mt=Fe*.5,_e=qe+1;Ee(je,me,mt,_e,st,Rt||kt||Ae||nt),Ee(je,me+mt,mt,_e,Rt,kt||Ae||nt),Ee(je+mt,me,mt,_e,kt,Ae||nt),Ee(je+mt,me+mt,mt,_e,Ae,nt)}function Je(je,me){let Fe=null,qe=0;for(;Fe===null;)if(Fe=je[me*4+qe],qe++,qe>je.length)return null;return Fe}return we}function A(w,S,E,R,M){let D=[];for(let z=0;z<M;z++){let N=d[z],L=v[z][0],ee=b(w,S,z),ue=b(E,R,z),pe=QI.ge(N,ee),we=QI.gt(N,ue,pe,N.length-1);D[z]=[pe+L,we+L]}return D}function b(w,S,E){let R=1,M=.5,D=.5,z=.5;for(let N=0;N<E;N++)R<<=2,R+=w<M?S<D?0:1:S<D?2:3,z*=.5,M+=w<M?-z:z,D+=S<D?-z:z;return R}};function tP(e,t){let[r,n,i,a]=t,o=1/(i-r),u=1/(a-n),s=new Array(e.length);for(let f=0,d=e.length/2;f<d;f++)s[2*f]=ZI((e[2*f]-r)*o,0,1),s[2*f+1]=ZI((e[2*f+1]-n)*u,0,1);return s}(function(e){e.exports=aoe})(DB);var NB=ooe;function ooe(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],u=o.toUpperCase();if(o!=u)switch(a[0]=u,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(u){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var uoe=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var u=t[Symbol.iterator](),s;!(i=(s=u.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&u.return&&u.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Jp=Math.PI*2,Yx=function(t,r,n,i,a,o,u){var s=t.x,f=t.y;s*=r,f*=n;var d=i*s-a*f,v=a*s+i*f;return{x:d+o,y:v+u}},loe=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),u=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+u*n,y:u-o*n},{x:o,y:u}]},rP=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},soe=function(t,r,n,i,a,o,u,s,f,d,v,h){var g=Math.pow(a,2),_=Math.pow(o,2),A=Math.pow(v,2),b=Math.pow(h,2),w=g*_-g*b-_*A;w<0&&(w=0),w/=g*b+_*A,w=Math.sqrt(w)*(u===s?-1:1);var S=w*a/o*h,E=w*-o/a*v,R=d*S-f*E+(t+n)/2,M=f*S+d*E+(r+i)/2,D=(v-S)/a,z=(h-E)/o,N=(-v-S)/a,L=(-h-E)/o,ee=rP(1,0,D,z),ue=rP(D,z,N,L);return s===0&&ue>0&&(ue-=Jp),s===1&&ue<0&&(ue+=Jp),[R,M,ee,ue]},foe=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,u=t.ry,s=t.xAxisRotation,f=s===void 0?0:s,d=t.largeArcFlag,v=d===void 0?0:d,h=t.sweepFlag,g=h===void 0?0:h,_=[];if(o===0||u===0)return[];var A=Math.sin(f*Jp/360),b=Math.cos(f*Jp/360),w=b*(r-i)/2+A*(n-a)/2,S=-A*(r-i)/2+b*(n-a)/2;if(w===0&&S===0)return[];o=Math.abs(o),u=Math.abs(u);var E=Math.pow(w,2)/Math.pow(o,2)+Math.pow(S,2)/Math.pow(u,2);E>1&&(o*=Math.sqrt(E),u*=Math.sqrt(E));var R=soe(r,n,i,a,o,u,v,g,A,b,w,S),M=uoe(R,4),D=M[0],z=M[1],N=M[2],L=M[3],ee=Math.abs(L)/(Jp/4);Math.abs(1-ee)<1e-7&&(ee=1);var ue=Math.max(Math.ceil(ee),1);L/=ue;for(var pe=0;pe<ue;pe++)_.push(loe(N,L)),N+=L;return _.map(function(we){var Ee=Yx(we[0],o,u,b,A,D,z),Je=Ee.x,je=Ee.y,me=Yx(we[1],o,u,b,A,D,z),Fe=me.x,qe=me.y,Ue=Yx(we[2],o,u,b,A,D,z),be=Ue.x,ye=Ue.y;return{x1:Je,y1:je,x2:Fe,y2:qe,x:be,y:ye}})};const coe=Object.freeze(Object.defineProperty({__proto__:null,default:foe},Symbol.toStringTag,{value:"Module"})),doe=is(coe);var poe=voe,hoe=doe;function voe(e){for(var t,r=[],n=0,i=0,a=0,o=0,u=null,s=null,f=0,d=0,v=0,h=e.length;v<h;v++){var g=e[v],_=g[0];switch(_){case"M":a=g[1],o=g[2];break;case"A":var A=hoe({px:f,py:d,cx:g[6],cy:g[7],rx:g[1],ry:g[2],xAxisRotation:g[3],largeArcFlag:g[4],sweepFlag:g[5]});if(!A.length)continue;for(var b=0,w;b<A.length;b++)w=A[b],g=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],b<A.length-1&&r.push(g);break;case"S":var S=f,E=d;(t=="C"||t=="S")&&(S+=S-n,E+=E-i),g=["C",S,E,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(u=f*2-u,s=d*2-s):(u=f,s=d),g=nP(f,d,u,s,g[1],g[2]);break;case"Q":u=g[1],s=g[2],g=nP(f,d,g[1],g[2],g[3],g[4]);break;case"L":g=om(f,d,g[1],g[2]);break;case"H":g=om(f,d,g[1],d);break;case"V":g=om(f,d,f,g[1]);break;case"Z":g=om(f,d,a,o);break}t=_,f=g[g.length-2],d=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=f,i=d),r.push(g)}return r}function om(e,t,r,n){return["C",e,t,r,n,r,n]}function nP(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}var LB=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))},goe=MB,moe=NB,yoe=poe,boe=LB,woe=xoe;function xoe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!boe(e))throw Error("String is not an SVG path.");e=goe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=moe(e),e=yoe(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;r<n;r++)for(var i=e[r].slice(1),a=0;a<i.length;a+=2)i[a+0]<t[0]&&(t[0]=i[a+0]),i[a+1]<t[1]&&(t[1]=i[a+1]),i[a+0]>t[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}var Ol=Math.PI,iP=$B(120),_oe=Soe;function Soe(e){for(var t,r=[],n=0,i=0,a=0,o=0,u=null,s=null,f=0,d=0,v=0,h=e.length;v<h;v++){var g=e[v],_=g[0];switch(_){case"M":a=g[1],o=g[2];break;case"A":g=BB(f,d,g[1],g[2],$B(g[3]),g[4],g[5],g[6],g[7]),g.unshift("C"),g.length>7&&(r.push(g.splice(0,7)),g.unshift("C"));break;case"S":var A=f,b=d;(t=="C"||t=="S")&&(A+=A-n,b+=b-i),g=["C",A,b,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(u=f*2-u,s=d*2-s):(u=f,s=d),g=aP(f,d,u,s,g[1],g[2]);break;case"Q":u=g[1],s=g[2],g=aP(f,d,g[1],g[2],g[3],g[4]);break;case"L":g=um(f,d,g[1],g[2]);break;case"H":g=um(f,d,g[1],d);break;case"V":g=um(f,d,f,g[1]);break;case"Z":g=um(f,d,a,o);break}t=_,f=g[g.length-2],d=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=f,i=d),r.push(g)}return r}function um(e,t,r,n){return["C",e,t,r,n,r,n]}function aP(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function BB(e,t,r,n,i,a,o,u,s,f){if(f)E=f[0],R=f[1],w=f[2],S=f[3];else{var d=Xx(e,t,-i);e=d.x,t=d.y,d=Xx(u,s,-i),u=d.x,s=d.y;var v=(e-u)/2,h=(t-s)/2,g=v*v/(r*r)+h*h/(n*n);g>1&&(g=Math.sqrt(g),r=g*r,n=g*n);var _=r*r,A=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((_*A-_*h*h-A*v*v)/(_*h*h+A*v*v)));b==1/0&&(b=1);var w=b*r*h/n+(e+u)/2,S=b*-n*v/r+(t+s)/2,E=Math.asin(((t-S)/n).toFixed(9)),R=Math.asin(((s-S)/n).toFixed(9));E=e<w?Ol-E:E,R=u<w?Ol-R:R,E<0&&(E=Ol*2+E),R<0&&(R=Ol*2+R),o&&E>R&&(E=E-Ol*2),!o&&R>E&&(R=R-Ol*2)}if(Math.abs(R-E)>iP){var M=R,D=u,z=s;R=E+iP*(o&&R>E?1:-1),u=w+r*Math.cos(R),s=S+n*Math.sin(R);var N=BB(u,s,r,n,i,0,o,D,z,[R,M,w,S])}var L=Math.tan((R-E)/4),ee=4/3*r*L,ue=4/3*n*L,pe=[2*e-(e+ee*Math.sin(E)),2*t-(t-ue*Math.cos(E)),u+ee*Math.sin(R),s-ue*Math.cos(R),u,s];if(f)return pe;N&&(pe=pe.concat(N));for(var we=0;we<pe.length;){var Ee=Xx(pe[we],pe[we+1],i);pe[we++]=Ee.x,pe[we++]=Ee.y}return pe}function Xx(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function $B(e){return e*(Ol/180)}var Eoe=NB,Aoe=_oe,Coe={M:"moveTo",C:"bezierCurveTo"},Toe=function(e,t){e.beginPath(),Aoe(Eoe(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[Coe[n]].apply(e,i)}),e.closePath()},Roe=uv,Ooe=Ioe,eh=1e20;function Ioe(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,u,s,f,d,v,h,g,_,A;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,s=e,t.stride?d=t.stride:d=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,v=h.getContext("2d"),a=h.width,o=h.height,g=v.getImageData(0,0,a,o),s=g.data,d=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,v=e,a=h.width,o=h.height,g=v.getImageData(0,0,a,o),s=g.data,d=4):window.ImageData&&e instanceof window.ImageData&&(g=e,a=e.width,o=e.height,s=g.data,d=4);if(u=Math.max(a,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(a*o),_=0,A=f.length;_<A;_++)s[_]=f[_*d+i]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),w=Array(a*o),S=Array(u),E=Array(u),R=Array(u+1),M=Array(u);for(_=0,A=a*o;_<A;_++){var D=s[_];b[_]=D===1?0:D===0?eh:Math.pow(Math.max(0,.5-D),2),w[_]=D===1?eh:D===0?0:Math.pow(Math.max(0,D-.5),2)}oP(b,a,o,S,E,M,R),oP(w,a,o,S,E,M,R);var z=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(_=0,A=a*o;_<A;_++)z[_]=Roe(1-((b[_]-w[_])/n+r),0,1);return z}function oP(e,t,r,n,i,a,o){for(var u=0;u<t;u++){for(var s=0;s<r;s++)n[s]=e[s*t+u];for(uP(n,i,a,o,r),s=0;s<r;s++)e[s*t+u]=i[s]}for(s=0;s<r;s++){for(u=0;u<t;u++)n[u]=e[s*t+u];for(uP(n,i,a,o,t),u=0;u<t;u++)e[s*t+u]=Math.sqrt(i[u])}}function uP(e,t,r,n,i){r[0]=0,n[0]=-eh,n[1]=+eh;for(var a=1,o=0;a<i;a++){for(var u=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);u<=n[o];)o--,u=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=u,n[o+1]=+eh}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;t[a]=(a-r[o])*(a-r[o])+e[r[o]]}}var Poe=woe,koe=MB,Moe=Toe,Doe=LB,Foe=Ooe,ES=document.createElement("canvas"),Qn=ES.getContext("2d"),Dde=Noe;function Noe(e,t){if(!Doe(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=ES.width=t.w||t.width||200,n=ES.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||Poe(e),u=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(u[0]||0,u[1]||0)/2;if(Qn.fillStyle="black",Qn.fillRect(0,0,r,n),Qn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?Qn.strokeStyle="white":Qn.strokeStyle="black",Qn.lineWidth=Math.abs(a)),Qn.translate(r*.5,n*.5),Qn.scale(s,s),Loe()){var f=new Path2D(e);Qn.fill(f),a&&Qn.stroke(f)}else{var d=koe(e);Moe(Qn,d),Qn.fill(),a&&Qn.stroke()}Qn.setTransform(1,0,0,1,0,0);var v=Foe(Qn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return v}var lm;function Loe(){if(lm!=null)return lm;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return lm=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return lm=r&&r.data&&r.data[3]===255}var Boe={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},$oe=Object.prototype.toString,zB=function(e){var t;return $oe.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},lP=Boe,zoe=zB,El=FB,Uoe=joe,sP={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function joe(e){var t,r=[],n=1,i;if(typeof e=="string")if(lP[e])r=lP[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,u=o<=4;n=1,u?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],f=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(g,_){if(/%$/.test(g))return _===o?parseFloat(g)/100:a==="rgb"?parseFloat(g)*255/100:parseFloat(g);if(a[_]==="h"){if(/deg$/.test(g))return parseFloat(g);if(sP[g]!==void 0)return sP[g]}return parseFloat(g)}),s===a&&r.push(1),n=f||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(v){return parseFloat(v)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(zoe(e)){var d=El(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,El(e.g,e.green,e.G),El(e.b,e.blue,e.B)]):(i="hsl",r=[El(e.h,e.hue,e.H),El(e.s,e.saturation,e.S),El(e.l,e.lightness,e.L,e.b,e.brightness)]),n=El(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||_r.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1);return{space:i,values:r,alpha:n}}var Woe={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,u,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,u=[0,0,0];for(var f=0;f<3;f++)o=t+1/3*-(f-1),o<0?o++:o>1&&o--,6*o<1?s=i+(a-i)*6*o:2*o<1?s=a:3*o<2?s=i+(a-i)*(2/3-o)*6:s=i,u[f]=s*255;return u}},Goe=Uoe,qoe=Woe,sm=uv,Hoe=function(t){var r,n=Goe(t);return n.space?(r=Array(3),r[0]=sm(n.values[0],0,255),r[1]=sm(n.values[1],0,255),r[2]=sm(n.values[2],0,255),n.space[0]==="h"&&(r=qoe.rgb(r)),r.push(sm(n.alpha,0,1)),r):[]},Voe=Hoe,fm=uv,Yoe=IC,x1=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=Yoe(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=Voe(t),t[0]/=255,t[1]/=255,t[2]/=255),Xoe(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=fm(Math.floor(t[0]*255),0,255),i[1]=fm(Math.floor(t[1]*255),0,255),i[2]=fm(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:fm(Math.floor(t[3]*255),0,255)),i)};function Xoe(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}var _1={exports:{}},cm=uv;_1.exports=UB;_1.exports.to=UB;_1.exports.from=Koe;function UB(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=cm(r,0,255)&255,n=cm(n,0,255)&255,i=cm(i,0,255)&255,a=cm(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function Koe(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var jB=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")},WB=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var o=n[i];for(var u in o)if(!(r[u]!==void 0&&!Array.isArray(r[u])&&t[u]===r[u])&&u in r){var s;if(o[u]===!0)s=r[u];else{if(o[u]===!1)continue;if(typeof o[u]=="function"&&(s=o[u](r[u],t,r),s===void 0))continue}t[u]=s}}return t},Qoe=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Nu={exports:{}};Nu.exports=th;Nu.exports.float32=Nu.exports.float=th;Nu.exports.fract32=Nu.exports.fract=Zoe;var fP=new Float32Array(1);function Zoe(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=th(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return th(e-th(e))}function th(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(fP[0]=e,fP[0])}function Joe(e,t){return rue(e)||iue(e,t)||GB(e,t)||oue()}function eue(e){return tue(e)||nue(e)||GB(e)||aue()}function tue(e){if(Array.isArray(e))return AS(e)}function rue(e){if(Array.isArray(e))return e}function nue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iue(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,u;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,u=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw u}}return n}}function GB(e,t){if(!!e){if(typeof e=="string")return AS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return AS(e,t)}}function AS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
924
|
+
*/var Lae=Eae,Bae=Cae,VI=Iae,$ae=kae,dp=Dae,YI=Nae,Di=!1,pp=Bae(),si;si={buildLog:function(e){return e===!0?Di=Lae():e===!1&&(Di=!1),Di===!1?!1:Di.list},epsilon:function(e){return pp.epsilon(e)},segments:function(e){var t=VI(!0,pp,Di);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=VI(!1,pp,Di);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:dp.union(e.combined,Di),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:dp.intersect(e.combined,Di),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:dp.difference(e.combined,Di),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:dp.differenceRev(e.combined,Di),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:dp.xor(e.combined,Di),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:$ae(e.segments,pp,Di),inverted:e.inverted}},polygonFromGeoJSON:function(e){return YI.toPolygon(si,e)},polygonToGeoJSON:function(e){return YI.fromPolygon(si,pp,e)},union:function(e,t){return hp(e,t,si.selectUnion)},intersect:function(e,t){return hp(e,t,si.selectIntersect)},difference:function(e,t){return hp(e,t,si.selectDifference)},differenceRev:function(e,t){return hp(e,t,si.selectDifferenceRev)},xor:function(e,t){return hp(e,t,si.selectXor)}};function hp(e,t,r){var n=si.segments(e),i=si.segments(t),a=si.combine(n,i),o=r(a);return si.polygon(o)}typeof window=="object"&&(window.PolyBool=si);var kde=si,Mde=function(t,r,n,i){var a=t[0],o=t[1],u=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,f=0,d=s-1;f<s;d=f++){var v=r[f+n][0],h=r[f+n][1],g=r[d+n][0],_=r[d+n][1],A=h>o!=_>o&&a<(g-v)*(o-h)/(_-h)+v;A&&(u=!u)}return u};const Dde=is(Fre);var DB={exports:{}};function zae(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s>=0?(a=o,i=o-1):n=o+1}return a}function Uae(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s>0?(a=o,i=o-1):n=o+1}return a}function jae(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s<0?(a=o,n=o+1):i=o-1}return a}function Wae(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,u=e[o],s=r!==void 0?r(u,t):u-t;s<=0?(a=o,n=o+1):i=o-1}return a}function Gae(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],u=r!==void 0?r(o,t):o-t;if(u===0)return a;u<=0?n=a+1:i=a-1}return-1}function vp(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}var qae={ge:function(e,t,r,n,i){return vp(e,t,r,n,i,zae)},gt:function(e,t,r,n,i){return vp(e,t,r,n,i,Uae)},lt:function(e,t,r,n,i){return vp(e,t,r,n,i,jae)},le:function(e,t,r,n,i){return vp(e,t,r,n,i,Wae)},eq:function(e,t,r,n,i){return vp(e,t,r,n,i,Gae)}},uv=Hae;function Hae(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var qu=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=XI(r)),Array.isArray(r)){var u={};for(o=0;o<r.length;o++)u[r[o]]=!0;r=u}for(a in r)r[a]=XI(r[a]);var s={};for(a in r){var f=r[a];if(Array.isArray(f))for(o=0;o<f.length;o++){var d=f[o];if(n&&(s[d]=!0),d in t){if(i[a]=t[d],n)for(var v=o;v<f.length;v++)s[f[v]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(s[a]=!0))}if(n)for(a in t)s[a]||(i[a]=t[a]);return i},Hx={};function XI(e){return Hx[e]?Hx[e]:(typeof e=="string"&&(e=Hx[e]=e.split(/\s*,\s*|\s+/)),e)}var Vae=qu,w1=Yae;function Yae(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=Vae(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}var lv=Xae;function Xae(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,o=n,u=e.length;o<u;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var FB=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},IC=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}},KI=IC,sv=Kae;function Kae(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,u,s;(!t||typeof t=="string")&&(t=new(KI(t||"float32"))(i+r));var f=t.length-r;if(i!==f)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+f);for(a=0,u=r;a<e.length;a++)for(o=0;o<n;o++)t[u++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var d=KI(t||"float32");if(Array.isArray(e)||t==="array")for(t=new d(e.length+r),a=0,u=r,s=t.length;u<s;u++,a++)t[u]=e[a]===null?NaN:e[a];else r===0?t=new d(e):(t=new d(e.length+r),t.set(e,r))}else t.set(e,r);return t}var Qae=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},Zae=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const QI=qae,ZI=uv,Jae=w1,eoe=lv,JI=qu,Vx=FB,toe=sv,roe=Qae,noe=IC,eP=Zae,ioe=1073741824;var aoe=function(t,r){r||(r={}),t=toe(t,"float64"),r=JI(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=Vx(r.maxDepth,255),i=Vx(r.bounds,eoe(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=tP(t,i),o=t.length>>>1,u;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?u=new(noe(r.dtype))(o):r.dtype&&(u=r.dtype,Array.isArray(u)&&(u.length=o));for(let w=0;w<o;++w)u[w]=w;let s=[],f=[],d=[],v=[];g(0,0,1,u,0,1);let h=0;for(let w=0;w<s.length;w++){let S=s[w];if(u.set)u.set(S,h);else for(let R=0,M=S.length;R<M;R++)u[R+h]=S[R];let E=h+s[w].length;v[w]=[h,E],h=E}return u.range=_,u;function g(w,S,E,R,M,D){if(!R.length)return null;let z=s[M]||(s[M]=[]),N=d[M]||(d[M]=[]),L=f[M]||(f[M]=[]),ee=z.length;if(M++,M>n||D>ioe){for(let Fe=0;Fe<R.length;Fe++)z.push(R[Fe]),N.push(D),L.push(null,null,null,null);return ee}if(z.push(R[0]),N.push(D),R.length<=1)return L.push(null,null,null,null),ee;let ue=E*.5,pe=w+ue,we=S+ue,Ee=[],Je=[],je=[],me=[];for(let Fe=1,qe=R.length;Fe<qe;Fe++){let Ue=R[Fe],be=a[Ue*2],ye=a[Ue*2+1];be<pe?ye<we?Ee.push(Ue):Je.push(Ue):ye<we?je.push(Ue):me.push(Ue)}return D<<=2,L.push(g(w,S,ue,Ee,M,D),g(w,we,ue,Je,M,D+1),g(pe,S,ue,je,M,D+2),g(pe,we,ue,me,M,D+3)),ee}function _(...w){let S;if(roe(w[w.length-1])){let je=w.pop();!w.length&&(je.x!=null||je.l!=null||je.left!=null)&&(w=[je],S={}),S=JI(je,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else S={};w.length||(w=i);let E=Jae(...w),[R,M,D,z]=[Math.min(E.x,E.x+E.width),Math.min(E.y,E.y+E.height),Math.max(E.x,E.x+E.width),Math.max(E.y,E.y+E.height)],[N,L,ee,ue]=tP([R,M,D,z],i),pe=Vx(S.level,s.length);if(S.d!=null){let je;typeof S.d=="number"?je=[S.d,S.d]:S.d.length&&(je=S.d),pe=Math.min(Math.max(Math.ceil(-eP(Math.abs(je[0])/(i[2]-i[0]))),Math.ceil(-eP(Math.abs(je[1])/(i[3]-i[1])))),pe)}if(pe=Math.min(pe,s.length),S.lod)return A(N,L,ee,ue,pe);let we=[];Ee(0,0,1,0,0,1);function Ee(je,me,Fe,qe,Ue,be){if(Ue===null||be===null)return;let ye=je+Fe,Ke=me+Fe;if(N>ye||L>Ke||ee<je||ue<me||qe>=pe||Ue===be)return;let We=s[qe];be===void 0&&(be=We.length);for(let j=Ue;j<be;j++){let te=We[j],I=t[te*2],C=t[te*2+1];I>=R&&I<=D&&C>=M&&C<=z&&we.push(te)}let Ze=f[qe],st=Ze[Ue*4+0],Rt=Ze[Ue*4+1],kt=Ze[Ue*4+2],Ae=Ze[Ue*4+3],nt=Je(Ze,Ue+1),mt=Fe*.5,_e=qe+1;Ee(je,me,mt,_e,st,Rt||kt||Ae||nt),Ee(je,me+mt,mt,_e,Rt,kt||Ae||nt),Ee(je+mt,me,mt,_e,kt,Ae||nt),Ee(je+mt,me+mt,mt,_e,Ae,nt)}function Je(je,me){let Fe=null,qe=0;for(;Fe===null;)if(Fe=je[me*4+qe],qe++,qe>je.length)return null;return Fe}return we}function A(w,S,E,R,M){let D=[];for(let z=0;z<M;z++){let N=d[z],L=v[z][0],ee=b(w,S,z),ue=b(E,R,z),pe=QI.ge(N,ee),we=QI.gt(N,ue,pe,N.length-1);D[z]=[pe+L,we+L]}return D}function b(w,S,E){let R=1,M=.5,D=.5,z=.5;for(let N=0;N<E;N++)R<<=2,R+=w<M?S<D?0:1:S<D?2:3,z*=.5,M+=w<M?-z:z,D+=S<D?-z:z;return R}};function tP(e,t){let[r,n,i,a]=t,o=1/(i-r),u=1/(a-n),s=new Array(e.length);for(let f=0,d=e.length/2;f<d;f++)s[2*f]=ZI((e[2*f]-r)*o,0,1),s[2*f+1]=ZI((e[2*f+1]-n)*u,0,1);return s}(function(e){e.exports=aoe})(DB);var NB=ooe;function ooe(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],u=o.toUpperCase();if(o!=u)switch(a[0]=u,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(u){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var uoe=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var u=t[Symbol.iterator](),s;!(i=(s=u.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&u.return&&u.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Jp=Math.PI*2,Yx=function(t,r,n,i,a,o,u){var s=t.x,f=t.y;s*=r,f*=n;var d=i*s-a*f,v=a*s+i*f;return{x:d+o,y:v+u}},loe=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),u=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+u*n,y:u-o*n},{x:o,y:u}]},rP=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},soe=function(t,r,n,i,a,o,u,s,f,d,v,h){var g=Math.pow(a,2),_=Math.pow(o,2),A=Math.pow(v,2),b=Math.pow(h,2),w=g*_-g*b-_*A;w<0&&(w=0),w/=g*b+_*A,w=Math.sqrt(w)*(u===s?-1:1);var S=w*a/o*h,E=w*-o/a*v,R=d*S-f*E+(t+n)/2,M=f*S+d*E+(r+i)/2,D=(v-S)/a,z=(h-E)/o,N=(-v-S)/a,L=(-h-E)/o,ee=rP(1,0,D,z),ue=rP(D,z,N,L);return s===0&&ue>0&&(ue-=Jp),s===1&&ue<0&&(ue+=Jp),[R,M,ee,ue]},foe=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,u=t.ry,s=t.xAxisRotation,f=s===void 0?0:s,d=t.largeArcFlag,v=d===void 0?0:d,h=t.sweepFlag,g=h===void 0?0:h,_=[];if(o===0||u===0)return[];var A=Math.sin(f*Jp/360),b=Math.cos(f*Jp/360),w=b*(r-i)/2+A*(n-a)/2,S=-A*(r-i)/2+b*(n-a)/2;if(w===0&&S===0)return[];o=Math.abs(o),u=Math.abs(u);var E=Math.pow(w,2)/Math.pow(o,2)+Math.pow(S,2)/Math.pow(u,2);E>1&&(o*=Math.sqrt(E),u*=Math.sqrt(E));var R=soe(r,n,i,a,o,u,v,g,A,b,w,S),M=uoe(R,4),D=M[0],z=M[1],N=M[2],L=M[3],ee=Math.abs(L)/(Jp/4);Math.abs(1-ee)<1e-7&&(ee=1);var ue=Math.max(Math.ceil(ee),1);L/=ue;for(var pe=0;pe<ue;pe++)_.push(loe(N,L)),N+=L;return _.map(function(we){var Ee=Yx(we[0],o,u,b,A,D,z),Je=Ee.x,je=Ee.y,me=Yx(we[1],o,u,b,A,D,z),Fe=me.x,qe=me.y,Ue=Yx(we[2],o,u,b,A,D,z),be=Ue.x,ye=Ue.y;return{x1:Je,y1:je,x2:Fe,y2:qe,x:be,y:ye}})};const coe=Object.freeze(Object.defineProperty({__proto__:null,default:foe},Symbol.toStringTag,{value:"Module"})),doe=is(coe);var poe=voe,hoe=doe;function voe(e){for(var t,r=[],n=0,i=0,a=0,o=0,u=null,s=null,f=0,d=0,v=0,h=e.length;v<h;v++){var g=e[v],_=g[0];switch(_){case"M":a=g[1],o=g[2];break;case"A":var A=hoe({px:f,py:d,cx:g[6],cy:g[7],rx:g[1],ry:g[2],xAxisRotation:g[3],largeArcFlag:g[4],sweepFlag:g[5]});if(!A.length)continue;for(var b=0,w;b<A.length;b++)w=A[b],g=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],b<A.length-1&&r.push(g);break;case"S":var S=f,E=d;(t=="C"||t=="S")&&(S+=S-n,E+=E-i),g=["C",S,E,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(u=f*2-u,s=d*2-s):(u=f,s=d),g=nP(f,d,u,s,g[1],g[2]);break;case"Q":u=g[1],s=g[2],g=nP(f,d,g[1],g[2],g[3],g[4]);break;case"L":g=om(f,d,g[1],g[2]);break;case"H":g=om(f,d,g[1],d);break;case"V":g=om(f,d,f,g[1]);break;case"Z":g=om(f,d,a,o);break}t=_,f=g[g.length-2],d=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=f,i=d),r.push(g)}return r}function om(e,t,r,n){return["C",e,t,r,n,r,n]}function nP(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}var LB=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))},goe=MB,moe=NB,yoe=poe,boe=LB,woe=xoe;function xoe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!boe(e))throw Error("String is not an SVG path.");e=goe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=moe(e),e=yoe(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;r<n;r++)for(var i=e[r].slice(1),a=0;a<i.length;a+=2)i[a+0]<t[0]&&(t[0]=i[a+0]),i[a+1]<t[1]&&(t[1]=i[a+1]),i[a+0]>t[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}var Ol=Math.PI,iP=$B(120),_oe=Soe;function Soe(e){for(var t,r=[],n=0,i=0,a=0,o=0,u=null,s=null,f=0,d=0,v=0,h=e.length;v<h;v++){var g=e[v],_=g[0];switch(_){case"M":a=g[1],o=g[2];break;case"A":g=BB(f,d,g[1],g[2],$B(g[3]),g[4],g[5],g[6],g[7]),g.unshift("C"),g.length>7&&(r.push(g.splice(0,7)),g.unshift("C"));break;case"S":var A=f,b=d;(t=="C"||t=="S")&&(A+=A-n,b+=b-i),g=["C",A,b,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(u=f*2-u,s=d*2-s):(u=f,s=d),g=aP(f,d,u,s,g[1],g[2]);break;case"Q":u=g[1],s=g[2],g=aP(f,d,g[1],g[2],g[3],g[4]);break;case"L":g=um(f,d,g[1],g[2]);break;case"H":g=um(f,d,g[1],d);break;case"V":g=um(f,d,f,g[1]);break;case"Z":g=um(f,d,a,o);break}t=_,f=g[g.length-2],d=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=f,i=d),r.push(g)}return r}function um(e,t,r,n){return["C",e,t,r,n,r,n]}function aP(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function BB(e,t,r,n,i,a,o,u,s,f){if(f)E=f[0],R=f[1],w=f[2],S=f[3];else{var d=Xx(e,t,-i);e=d.x,t=d.y,d=Xx(u,s,-i),u=d.x,s=d.y;var v=(e-u)/2,h=(t-s)/2,g=v*v/(r*r)+h*h/(n*n);g>1&&(g=Math.sqrt(g),r=g*r,n=g*n);var _=r*r,A=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((_*A-_*h*h-A*v*v)/(_*h*h+A*v*v)));b==1/0&&(b=1);var w=b*r*h/n+(e+u)/2,S=b*-n*v/r+(t+s)/2,E=Math.asin(((t-S)/n).toFixed(9)),R=Math.asin(((s-S)/n).toFixed(9));E=e<w?Ol-E:E,R=u<w?Ol-R:R,E<0&&(E=Ol*2+E),R<0&&(R=Ol*2+R),o&&E>R&&(E=E-Ol*2),!o&&R>E&&(R=R-Ol*2)}if(Math.abs(R-E)>iP){var M=R,D=u,z=s;R=E+iP*(o&&R>E?1:-1),u=w+r*Math.cos(R),s=S+n*Math.sin(R);var N=BB(u,s,r,n,i,0,o,D,z,[R,M,w,S])}var L=Math.tan((R-E)/4),ee=4/3*r*L,ue=4/3*n*L,pe=[2*e-(e+ee*Math.sin(E)),2*t-(t-ue*Math.cos(E)),u+ee*Math.sin(R),s-ue*Math.cos(R),u,s];if(f)return pe;N&&(pe=pe.concat(N));for(var we=0;we<pe.length;){var Ee=Xx(pe[we],pe[we+1],i);pe[we++]=Ee.x,pe[we++]=Ee.y}return pe}function Xx(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function $B(e){return e*(Ol/180)}var Eoe=NB,Aoe=_oe,Coe={M:"moveTo",C:"bezierCurveTo"},Toe=function(e,t){e.beginPath(),Aoe(Eoe(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[Coe[n]].apply(e,i)}),e.closePath()},Roe=uv,Ooe=Ioe,eh=1e20;function Ioe(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,u,s,f,d,v,h,g,_,A;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,s=e,t.stride?d=t.stride:d=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,v=h.getContext("2d"),a=h.width,o=h.height,g=v.getImageData(0,0,a,o),s=g.data,d=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,v=e,a=h.width,o=h.height,g=v.getImageData(0,0,a,o),s=g.data,d=4):window.ImageData&&e instanceof window.ImageData&&(g=e,a=e.width,o=e.height,s=g.data,d=4);if(u=Math.max(a,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(a*o),_=0,A=f.length;_<A;_++)s[_]=f[_*d+i]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),w=Array(a*o),S=Array(u),E=Array(u),R=Array(u+1),M=Array(u);for(_=0,A=a*o;_<A;_++){var D=s[_];b[_]=D===1?0:D===0?eh:Math.pow(Math.max(0,.5-D),2),w[_]=D===1?eh:D===0?0:Math.pow(Math.max(0,D-.5),2)}oP(b,a,o,S,E,M,R),oP(w,a,o,S,E,M,R);var z=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(_=0,A=a*o;_<A;_++)z[_]=Roe(1-((b[_]-w[_])/n+r),0,1);return z}function oP(e,t,r,n,i,a,o){for(var u=0;u<t;u++){for(var s=0;s<r;s++)n[s]=e[s*t+u];for(uP(n,i,a,o,r),s=0;s<r;s++)e[s*t+u]=i[s]}for(s=0;s<r;s++){for(u=0;u<t;u++)n[u]=e[s*t+u];for(uP(n,i,a,o,t),u=0;u<t;u++)e[s*t+u]=Math.sqrt(i[u])}}function uP(e,t,r,n,i){r[0]=0,n[0]=-eh,n[1]=+eh;for(var a=1,o=0;a<i;a++){for(var u=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);u<=n[o];)o--,u=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=u,n[o+1]=+eh}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;t[a]=(a-r[o])*(a-r[o])+e[r[o]]}}var Poe=woe,koe=MB,Moe=Toe,Doe=LB,Foe=Ooe,ES=document.createElement("canvas"),Qn=ES.getContext("2d"),Fde=Noe;function Noe(e,t){if(!Doe(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=ES.width=t.w||t.width||200,n=ES.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||Poe(e),u=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(u[0]||0,u[1]||0)/2;if(Qn.fillStyle="black",Qn.fillRect(0,0,r,n),Qn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?Qn.strokeStyle="white":Qn.strokeStyle="black",Qn.lineWidth=Math.abs(a)),Qn.translate(r*.5,n*.5),Qn.scale(s,s),Loe()){var f=new Path2D(e);Qn.fill(f),a&&Qn.stroke(f)}else{var d=koe(e);Moe(Qn,d),Qn.fill(),a&&Qn.stroke()}Qn.setTransform(1,0,0,1,0,0);var v=Foe(Qn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return v}var lm;function Loe(){if(lm!=null)return lm;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return lm=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return lm=r&&r.data&&r.data[3]===255}var Boe={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},$oe=Object.prototype.toString,zB=function(e){var t;return $oe.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},lP=Boe,zoe=zB,El=FB,Uoe=joe,sP={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function joe(e){var t,r=[],n=1,i;if(typeof e=="string")if(lP[e])r=lP[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,u=o<=4;n=1,u?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],f=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(g,_){if(/%$/.test(g))return _===o?parseFloat(g)/100:a==="rgb"?parseFloat(g)*255/100:parseFloat(g);if(a[_]==="h"){if(/deg$/.test(g))return parseFloat(g);if(sP[g]!==void 0)return sP[g]}return parseFloat(g)}),s===a&&r.push(1),n=f||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(v){return parseFloat(v)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(zoe(e)){var d=El(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,El(e.g,e.green,e.G),El(e.b,e.blue,e.B)]):(i="hsl",r=[El(e.h,e.hue,e.H),El(e.s,e.saturation,e.S),El(e.l,e.lightness,e.L,e.b,e.brightness)]),n=El(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||_r.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1);return{space:i,values:r,alpha:n}}var Woe={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,u,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,u=[0,0,0];for(var f=0;f<3;f++)o=t+1/3*-(f-1),o<0?o++:o>1&&o--,6*o<1?s=i+(a-i)*6*o:2*o<1?s=a:3*o<2?s=i+(a-i)*(2/3-o)*6:s=i,u[f]=s*255;return u}},Goe=Uoe,qoe=Woe,sm=uv,Hoe=function(t){var r,n=Goe(t);return n.space?(r=Array(3),r[0]=sm(n.values[0],0,255),r[1]=sm(n.values[1],0,255),r[2]=sm(n.values[2],0,255),n.space[0]==="h"&&(r=qoe.rgb(r)),r.push(sm(n.alpha,0,1)),r):[]},Voe=Hoe,fm=uv,Yoe=IC,x1=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=Yoe(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=Voe(t),t[0]/=255,t[1]/=255,t[2]/=255),Xoe(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=fm(Math.floor(t[0]*255),0,255),i[1]=fm(Math.floor(t[1]*255),0,255),i[2]=fm(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:fm(Math.floor(t[3]*255),0,255)),i)};function Xoe(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}var _1={exports:{}},cm=uv;_1.exports=UB;_1.exports.to=UB;_1.exports.from=Koe;function UB(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=cm(r,0,255)&255,n=cm(n,0,255)&255,i=cm(i,0,255)&255,a=cm(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function Koe(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var jB=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")},WB=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var o=n[i];for(var u in o)if(!(r[u]!==void 0&&!Array.isArray(r[u])&&t[u]===r[u])&&u in r){var s;if(o[u]===!0)s=r[u];else{if(o[u]===!1)continue;if(typeof o[u]=="function"&&(s=o[u](r[u],t,r),s===void 0))continue}t[u]=s}}return t},Qoe=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Nu={exports:{}};Nu.exports=th;Nu.exports.float32=Nu.exports.float=th;Nu.exports.fract32=Nu.exports.fract=Zoe;var fP=new Float32Array(1);function Zoe(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=th(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return th(e-th(e))}function th(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(fP[0]=e,fP[0])}function Joe(e,t){return rue(e)||iue(e,t)||GB(e,t)||oue()}function eue(e){return tue(e)||nue(e)||GB(e)||aue()}function tue(e){if(Array.isArray(e))return AS(e)}function rue(e){if(Array.isArray(e))return e}function nue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iue(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,u;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,u=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw u}}return n}}function GB(e,t){if(!!e){if(typeof e=="string")return AS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return AS(e,t)}}function AS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
925
925
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
926
926
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var uue=x1,lue=lv,sue=_1.exports,fue=DB.exports,ql=as,dm=jB,cue=qu,due=WB,pue=sv,cP=Qoe,pm=Nu.exports,hue=w1,vue=xn;function xn(e,t){var r=this;if(!(this instanceof xn))return new xn(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var n=e._gl,i,a=[],o={},u=[],s=[null],f=[null],d=255,v=100;this.tooManyColors=cP,i=e.texture({data:new Uint8Array(d*4),width:d,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),ql(this,{regl:e,gl:n,groups:u,markerCache:f,markerTextures:s,palette:a,paletteIds:o,paletteTexture:i,maxColors:d,maxSize:v,canvas:n.canvas}),this.update(t);var h={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(b,w){return[r.tooManyColors?0:d,i.height]},pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:function(b,w){return w.xAttr||{buffer:w.positionBuffer,stride:8,offset:0}},y:function(b,w){return w.yAttr||{buffer:w.positionBuffer,stride:8,offset:4}},xFract:function(b,w){return w.xAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:0}},yFract:function(b,w){return w.yAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:4}},size:function(b,w){return w.size.length?{buffer:w.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(w.size*255/r.maxSize)]}},borderSize:function(b,w){return w.borderSize.length?{buffer:w.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(w.borderSize*255/r.maxSize)]}},colorId:function(b,w){return w.color.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(w.color*4,w.color*4+4):[w.color]}},borderColorId:function(b,w){return w.borderColor.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(w.borderColor*4,w.borderColor*4+4):[w.borderColor]}},isActive:function(b,w){return w.activation===!0?{constant:[1]}:w.activation?w.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},g=ql({},h);g.frag=dm([`precision highp float;
|
|
927
927
|
#define GLSLIFY 1
|
|
@@ -1110,8 +1110,8 @@ void main() {
|
|
|
1110
1110
|
fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
|
|
1111
1111
|
fragWidth = 1. / gl_PointSize;
|
|
1112
1112
|
}
|
|
1113
|
-
`]),cP&&(_.frag=_.frag.replace("smoothstep","smoothStep"),g.frag=g.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(_)}xn.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};xn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};xn.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=this.groups;if(r.length===1&&Array.isArray(r[0])&&(r[0][0]===null||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a<r.length;a++)this.drawItem(a,r[a]);else i.forEach(function(o,u){e.drawItem(u)});return this};xn.prototype.drawItem=function(e,t){var r=this.groups,n=r[e];if(typeof t=="number"&&(e=t,n=r[t],t=null),!!(n&&n.count&&n.opacity)){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,t));for(var i=[],a=1;a<n.activation.length;a++)!n.activation[a]||n.activation[a]!==!0&&!n.activation[a].data.length||i.push.apply(i,eue(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};xn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,u=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[ql({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[ql({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var f=[],d=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var v=o[e],h=v.data,g=new Uint8Array(s),_=0;_<r.length;_++){var A=r[_];g[A]=h?h[A]:1}u.subdata(g)}for(var b=d.length;b--;){var w=Joe(d[b],2),S=w[0],E=w[1];f.push(ql({},t,{markerTexture:this.markerTextures[e],activation:r?u:o[e],offset:S,count:E-S}))}return f};xn.prototype.update=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!!r.length){r.length===1&&Array.isArray(r[0])&&(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,u=this.maxSize,s=this.maxColors,f=this.palette;this.groups=i=r.map(function(d,v){var h=i[v];if(d===void 0)return h;d===null?d={positions:null}:typeof d=="function"?d={ondraw:d}:typeof d[0]=="number"&&(d={positions:d}),d=cue(d,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),d.positions===null&&(d.positions=[]),d.tooManyColors!=null&&(e.tooManyColors=d.tooManyColors),h||(i[v]=h={id:v,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},d=ql({},xn.defaults,d)),d.positions&&!("marker"in d)&&(d.marker=h.marker,delete h.marker),d.marker&&!("positions"in d)&&(d.positions=h.positions,delete h.positions);var g=0,_=0;if(due(h,d,[{snap:!0,size:function(me,Fe){return me==null&&(me=xn.defaults.size),g+=me&&me.length?1:0,me},borderSize:function(me,Fe){return me==null&&(me=xn.defaults.borderSize),g+=me&&me.length?1:0,me},opacity:parseFloat,color:function(me,Fe){return me==null&&(me=xn.defaults.color),me=e.updateColor(me),_++,me},borderColor:function(me,Fe){return me==null&&(me=xn.defaults.borderColor),me=e.updateColor(me),_++,me},bounds:function(me,Fe,qe){return"range"in qe||(qe.range=null),me},positions:function(me,Fe,qe){var Ue=Fe.snap,be=Fe.positionBuffer,ye=Fe.positionFractBuffer,Ke=Fe.selectionBuffer;if(me.x||me.y)return me.x.length?Fe.xAttr={buffer:o.buffer(me.x),offset:0,stride:4,count:me.x.length}:Fe.xAttr={buffer:me.x.buffer,offset:me.x.offset*4||0,stride:(me.x.stride||1)*4,count:me.x.count},me.y.length?Fe.yAttr={buffer:o.buffer(me.y),offset:0,stride:4,count:me.y.length}:Fe.yAttr={buffer:me.y.buffer,offset:me.y.offset*4||0,stride:(me.y.stride||1)*4,count:me.y.count},Fe.count=Math.max(Fe.xAttr.count,Fe.yAttr.count),me;me=pue(me,"float64");var We=Fe.count=Math.floor(me.length/2),Ze=Fe.bounds=We?lue(me,2):null;if(!qe.range&&!Fe.range&&(delete Fe.range,qe.range=Ze),!qe.marker&&!Fe.marker&&(delete Fe.marker,qe.marker=null),Ue&&(Ue===!0||We>Ue)?Fe.tree=fue(me,{bounds:Ze}):Ue&&Ue.length&&(Fe.tree=Ue),Fe.tree){var st={primitive:"points",usage:"static",data:Fe.tree,type:"uint32"};Fe.elements?Fe.elements(st):Fe.elements=o.elements(st)}var Rt=pm.float32(me);be({data:Rt,usage:"dynamic"});var kt=pm.fract32(me,Rt);return ye({data:kt,usage:"dynamic"}),Ke({data:new Uint8Array(We),type:"uint8",usage:"stream"}),me}},{marker:function(me,Fe,qe){var Ue=Fe.activation;if(Ue.forEach(function(kt){return kt&&kt.destroy&&kt.destroy()}),Ue.length=0,!me||typeof me[0]=="number"){var be=e.addMarker(me);Ue[be]=!0}else{for(var ye=[],Ke=0,We=Math.min(me.length,Fe.count);Ke<We;Ke++){var Ze=e.addMarker(me[Ke]);ye[Ze]||(ye[Ze]=new Uint8Array(Fe.count)),ye[Ze][Ke]=1}for(var st=0;st<ye.length;st++)if(!!ye[st]){var Rt={data:ye[st],type:"uint8",usage:"static"};Ue[st]?Ue[st](Rt):Ue[st]=o.buffer(Rt),Ue[st].data=ye[st]}}return me},range:function(me,Fe,qe){var Ue=Fe.bounds;if(!!Ue)return me||(me=Ue),Fe.scale=[1/(me[2]-me[0]),1/(me[3]-me[1])],Fe.translate=[-me[0],-me[1]],Fe.scaleFract=pm.fract(Fe.scale),Fe.translateFract=pm.fract(Fe.translate),me},viewport:function(me){var Fe=hue(me||[a.drawingBufferWidth,a.drawingBufferHeight]);return Fe}}]),g){var A=h,b=A.count,w=A.size,S=A.borderSize,E=A.sizeBuffer,R=new Uint8Array(b*2);if(w.length||S.length)for(var M=0;M<b;M++)R[M*2]=Math.round((w[M]==null?w:w[M])*255/u),R[M*2+1]=Math.round((S[M]==null?S:S[M])*255/u);E({data:R,usage:"dynamic"})}if(_){var D=h,z=D.count,N=D.color,L=D.borderColor,ee=D.colorBuffer,ue;if(e.tooManyColors){if(N.length||L.length){ue=new Uint8Array(z*8);for(var pe=0;pe<z;pe++){var we=N[pe];ue[pe*8]=f[we*4],ue[pe*8+1]=f[we*4+1],ue[pe*8+2]=f[we*4+2],ue[pe*8+3]=f[we*4+3];var Ee=L[pe];ue[pe*8+4]=f[Ee*4],ue[pe*8+5]=f[Ee*4+1],ue[pe*8+6]=f[Ee*4+2],ue[pe*8+7]=f[Ee*4+3]}}}else if(N.length||L.length){ue=new Uint8Array(z*4+2);for(var Je=0;Je<z;Je++)N[Je]!=null&&(ue[Je*4]=N[Je]%s,ue[Je*4+1]=Math.floor(N[Je]/s)),L[Je]!=null&&(ue[Je*4+2]=L[Je]%s,ue[Je*4+3]=Math.floor(L[Je]/s))}ee({data:ue||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return h})}};xn.prototype.addMarker=function(e){var t=this.markerTextures,r=this.regl,n=this.markerCache,i=e==null?0:n.indexOf(e);if(i>=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,u=e.length;o<u;o++)a[o]=e[o]*255}var s=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:s,mag:"linear",min:"linear"})),i};xn.prototype.updateColor=function(e){var t=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(e)||(e=[e]);var i=[];if(typeof e[0]=="number"){var a=[];if(Array.isArray(e))for(var o=0;o<e.length;o+=4)a.push(e.slice(o,o+4));else for(var u=0;u<e.length;u+=4)a.push(e.subarray(u,u+4));e=a}for(var s=0;s<e.length;s++){var f=e[s];f=uue(f,"uint8");var d=sue(f,!1);if(t[d]==null){var v=r.length;t[d]=Math.floor(v/4),r[v]=f[0],r[v+1]=f[1],r[v+2]=f[2],r[v+3]=f[3]}i[s]=t[d]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};xn.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i<n*t;i++)e.push(0,0,0,0)}r.height<n&&r.resize(t,n),r.subimage({width:Math.min(e.length*.25,t),height:n,data:e},0,0)}};xn.prototype.destroy=function(){return this.groups.forEach(function(e){e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(function(t){return t&&t.destroy&&t.destroy()}),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(function(e){return e&&e.destroy&&e.destroy()}),this};var gue=as,mue=function(t,r){var n=new vue(t,r),i=n.render.bind(n);return gue(i,{render:i,update:n.update.bind(n),draw:n.draw.bind(n),destroy:n.destroy.bind(n),regl:n.regl,gl:n.gl,canvas:n.gl.canvas,groups:n.groups,markers:n.markerCache,palette:n.palette}),i},Fde=mue,PC={exports:{}};PC.exports=S1;PC.exports.default=S1;function S1(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=qB(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var u,s,f,d,v,h,g;if(n&&(a=_ue(e,t,a,r)),e.length>80*r){u=f=e[0],s=d=e[1];for(var _=r;_<i;_+=r)v=e[_],h=e[_+1],v<u&&(u=v),h<s&&(s=h),v>f&&(f=v),h>d&&(d=h);g=Math.max(f-u,d-s),g=g!==0?1/g:0}return Rh(a,o,r,u,s,g),o}function qB(e,t,r,n,i){var a,o;if(i===RS(e,t,r,n)>0)for(a=t;a<r;a+=n)o=dP(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=dP(a,e[a],e[a+1],o);return o&&E1(o,o.next)&&(Ih(o),o=o.next),o}function Lu(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(E1(r,r.next)||Vr(r.prev,r,r.next)===0)){if(Ih(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Rh(e,t,r,n,i,a,o){if(!!e){!o&&a&&Tue(e,n,i,a);for(var u=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,a?bue(e,n,i,a):yue(e)){t.push(s.i/r),t.push(e.i/r),t.push(f.i/r),Ih(e),e=f.next,u=f.next;continue}if(e=f,e===u){o?o===1?(e=wue(Lu(e),t,r),Rh(e,t,r,n,i,a,2)):o===2&&xue(e,t,r,n,i,a):Rh(Lu(e),t,r,n,i,a,1);break}}}}function yue(e){var t=e.prev,r=e,n=e.next;if(Vr(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(kf(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Vr(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function bue(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Vr(i,a,o)>=0)return!1;for(var u=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,s=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,f=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,d=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,v=CS(u,s,t,r,n),h=CS(f,d,t,r,n),g=e.prevZ,_=e.nextZ;g&&g.z>=v&&_&&_.z<=h;){if(g!==e.prev&&g!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&Vr(g.prev,g,g.next)>=0||(g=g.prevZ,_!==e.prev&&_!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,_.x,_.y)&&Vr(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;g&&g.z>=v;){if(g!==e.prev&&g!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&Vr(g.prev,g,g.next)>=0)return!1;g=g.prevZ}for(;_&&_.z<=h;){if(_!==e.prev&&_!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,_.x,_.y)&&Vr(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function wue(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!E1(i,a)&&HB(i,n,n.next,a)&&Oh(i,a)&&Oh(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),Ih(n),Ih(n.next),n=e=a),n=n.next}while(n!==e);return Lu(n)}function xue(e,t,r,n,i,a){var o=e;do{for(var u=o.next.next;u!==o.prev;){if(o.i!==u.i&&Iue(o,u)){var s=VB(o,u);o=Lu(o,o.next),s=Lu(s,s.next),Rh(o,t,r,n,i,a),Rh(s,t,r,n,i,a);return}u=u.next}o=o.next}while(o!==e)}function _ue(e,t,r,n){var i=[],a,o,u,s,f;for(a=0,o=t.length;a<o;a++)u=t[a]*n,s=a<o-1?t[a+1]*n:e.length,f=qB(e,u,s,n,!1),f===f.next&&(f.steiner=!0),i.push(Oue(f));for(i.sort(Sue),a=0;a<i.length;a++)r=Eue(i[a],r),r=Lu(r,r.next);return r}function Sue(e,t){return e.x-t.x}function Eue(e,t){var r=Aue(e,t);if(!r)return t;var n=VB(r,e),i=Lu(r,r.next);return Lu(n,n.next),t===r?i:t}function Aue(e,t){var r=t,n=e.x,i=e.y,a=-1/0,o;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>a){if(a=u,u===n){if(i===r.y)return r;if(i===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===a)return o;var s=o,f=o.x,d=o.y,v=1/0,h;r=o;do n>=r.x&&r.x>=f&&n!==r.x&&kf(i<d?n:a,i,f,d,i<d?a:n,i,r.x,r.y)&&(h=Math.abs(i-r.y)/(n-r.x),Oh(r,e)&&(h<v||h===v&&(r.x>o.x||r.x===o.x&&Cue(o,r)))&&(o=r,v=h)),r=r.next;while(r!==s);return o}function Cue(e,t){return Vr(e.prev,e,t.prev)<0&&Vr(t.next,e,e.next)<0}function Tue(e,t,r,n){var i=e;do i.z===null&&(i.z=CS(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Rue(i)}function Rue(e){var t,r,n,i,a,o,u,s,f=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,u=0,t=0;t<f&&(u++,n=n.nextZ,!!n);t++);for(s=f;u>0||s>0&&n;)u!==0&&(s===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,s--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,f*=2}while(o>1);return e}function CS(e,t,r,n,i){return e=32767*(e-r)*i,t=32767*(t-n)*i,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Oue(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function kf(e,t,r,n,i,a,o,u){return(i-o)*(t-u)-(e-o)*(a-u)>=0&&(e-o)*(n-u)-(r-o)*(t-u)>=0&&(r-o)*(a-u)-(i-o)*(n-u)>=0}function Iue(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Pue(e,t)&&(Oh(e,t)&&Oh(t,e)&&kue(e,t)&&(Vr(e.prev,e,t.prev)||Vr(e,t.prev,t))||E1(e,t)&&Vr(e.prev,e,e.next)>0&&Vr(t.prev,t,t.next)>0)}function Vr(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function E1(e,t){return e.x===t.x&&e.y===t.y}function HB(e,t,r,n){var i=vm(Vr(e,t,r)),a=vm(Vr(e,t,n)),o=vm(Vr(r,n,e)),u=vm(Vr(r,n,t));return!!(i!==a&&o!==u||i===0&&hm(e,r,t)||a===0&&hm(e,n,t)||o===0&&hm(r,e,n)||u===0&&hm(r,t,n))}function hm(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function vm(e){return e>0?1:e<0?-1:0}function Pue(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&HB(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Oh(e,t){return Vr(e.prev,e,e.next)<0?Vr(e,t,e.next)>=0&&Vr(e,e.prev,t)>=0:Vr(e,t,e.prev)<0||Vr(e,e.next,t)<0}function kue(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function VB(e,t){var r=new TS(e.i,e.x,e.y),n=new TS(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function dP(e,t,r,n){var i=new TS(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ih(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function TS(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}S1.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(RS(e,0,a,r));if(i)for(var u=0,s=t.length;u<s;u++){var f=t[u]*r,d=u<s-1?t[u+1]*r:e.length;o-=Math.abs(RS(e,f,d,r))}var v=0;for(u=0;u<n.length;u+=3){var h=n[u]*r,g=n[u+1]*r,_=n[u+2]*r;v+=Math.abs((e[h]-e[_])*(e[g+1]-e[h+1])-(e[h]-e[g])*(e[_+1]-e[h+1]))}return o===0&&v===0?0:Math.abs((v-o)/o)};function RS(e,t,r,n){for(var i=0,a=t,o=r-n;a<r;a+=n)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}S1.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var o=0;o<t;o++)r.vertices.push(e[i][a][o]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var Mue=lv,Due=Fue;function Fue(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=Mue(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,u=e.length;if(i===1/0&&a===-1/0)for(o=n;o<u;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<u;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<u;o+=t)e[o]=e[o]===a?0:1;else{var s=i-a;for(o=n;o<u;o+=t)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-a)/s)}}return e}var Nue=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch{return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")},Kx,pP;function YB(){if(pP)return Kx;pP=1;var e=Object.create,t=Object.getPrototypeOf,r={};return Kx=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},Kx}var Qx,hP;function Lue(){if(hP)return Qx;hP=1;var e=Object.create,t;return YB()()||(t=XB()),Qx=function(){var r,n,i;return!t||t.level!==1?e:(r={},n={},i={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){n[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}n[a]=i}),Object.defineProperties(r,n),Object.defineProperty(t,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:r}),function(a,o){return e(a===null?r:a,o)})}(),Qx}var Zx,vP;function XB(){if(vP)return Zx;vP=1;var e=LE,t=da,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,u){if(t(o),u===null||e(u))return o;throw new TypeError("Prototype must be null or an object")},Zx=function(o){var u,s;return o?(o.level===2?o.set?(s=o.set,u=function(f,d){return s.call(a(f,d),d),f}):u=function(f,d){return a(f,d).__proto__=d,f}:u=function f(d,v){var h;return a(d,v),h=r.call(f.nullPolyfill,d),h&&delete f.nullPolyfill.__proto__,v===null&&(v=f.nullPolyfill),d.__proto__=v,h&&n(f.nullPolyfill,"__proto__",i),d},Object.defineProperty(u,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),u={},s,f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(f){try{s=f.set,s.call(o,u)}catch{}if(Object.getPrototypeOf(o)===u)return{set:s,level:2}}return o.__proto__=u,Object.getPrototypeOf(o)===u?{level:2}:(o={},o.__proto__=u,Object.getPrototypeOf(o)===u?{level:1}:!1)}()),Lue(),Zx}var Jx,gP;function kC(){return gP||(gP=1,Jx=YB()()?Object.setPrototypeOf:XB()),Jx}var e_,mP;function Bue(){if(mP)return e_;mP=1;var e=LE;return e_=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},e_}var t_,yP;function $ue(){if(yP)return t_;yP=1;var e=Object.create(null),t=Math.random;return t_=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},t_}var r_={exports:{}},n_,bP;function zue(){if(bP)return n_;bP=1;var e=da;return n_=function(){return e(this).length=0,this},n_}var i_,wP;function Uue(){if(wP)return i_;wP=1;var e=Sc,t=BE,r=Object.prototype.toString;return i_=function(n){if(!e(n))return null;if(t(n)){var i=n.toString;if(typeof i!="function"||i===r)return null}try{return""+n}catch{return null}},i_}var a_,xP;function jue(){return xP||(xP=1,a_=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),a_}var o_,_P;function Wue(){if(_P)return o_;_P=1;var e=jue(),t=/[\n\r\u2028\u2029]/g;return o_=function(r){var n=e(r);return n===null?"<Non-coercible to string value>":(n.length>100&&(n=n.slice(0,99)+"\u2026"),n=n.replace(t,function(i){switch(i){case`
|
|
1114
|
-
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},o_}var u_,SP;function KB(){if(SP)return u_;SP=1;var e=Sc,t=BE,r=Uue(),n=Wue(),i=function(a,o){return a.replace("%v",n(o))};return u_=function(a,o,u){if(!t(u))throw new TypeError(i(o,a));if(!e(a)){if("default"in u)return u.default;if(u.isOptional)return null}var s=r(u.errorMessage);throw e(s)||(s=o),new TypeError(i(s,a))},u_}var l_,EP;function Gue(){if(EP)return l_;EP=1;var e=KB(),t=Sc;return l_=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},l_}var s_,AP;function que(){if(AP)return s_;AP=1;var e=KB(),t=mD;return s_=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},s_}var f_,CP;function Hue(){if(CP)return f_;CP=1;var e=ky(),t=Ry,r=da;return f_=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var u={};return a?e(a,function(s){(o.ensure||s in n)&&(u[s]=n[s])}):t(u,n),u},f_}var c_,TP;function Vue(){if(TP)return c_;TP=1;var e=Sc,t=Gue(),r=que(),n=Hue(),i=NE,a=zE(),o=Function.prototype.bind,u=Object.defineProperty,s=Object.prototype.hasOwnProperty,f;return f=function(d,v,h){var g=t(v)&&r(v.value),_;return _=n(v),delete _.writable,delete _.value,_.get=function(){return!h.overwriteDefinition&&s.call(this,d)?g:(v.value=o.call(g,h.resolveContext?h.resolveContext(this):this),u(this,d,v),this[d])},_},c_=function(d){var v=i(arguments[1]);return e(v.resolveContext)&&r(v.resolveContext),a(d,function(h,g){return f(g,h,v)})},c_}var d_,RP;function QB(){if(RP)return d_;RP=1;var e=zue(),t=Ry,r=ja,n=da,i=Vi.exports,a=Vue(),o=ds(),u=Object.defineProperty,s=Object.defineProperties,f;return d_=f=function(d,v){if(!(this instanceof f))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(d)),__context__:i("w",v),__nextIndex__:i("w",0)}),v&&(r(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete f.prototype.constructor,s(f.prototype,t({_next:i(function(){var d;if(!!this.__list__){if(this.__redo__&&(d=this.__redo__.shift(),d!==void 0))return d;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:i(function(){return this._createResult(this._next())}),_createResult:i(function(d){return d===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(d)}}),_resolve:i(function(d){return this.__list__[d]}),_unBind:i(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:i(function(){return"[object "+(this[o.toStringTag]||"Object")+"]"})},a({_onAdd:i(function(d){if(!(d>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){u(this,"__redo__",i("c",[d]));return}this.__redo__.forEach(function(v,h){v>=d&&(this.__redo__[h]=++v)},this),this.__redo__.push(d)}}),_onDelete:i(function(d){var v;d>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(v=this.__redo__.indexOf(d),v!==-1&&this.__redo__.splice(v,1),this.__redo__.forEach(function(h,g){h>d&&(this.__redo__[g]=--h)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),u(f.prototype,o.iterator,i(function(){return this})),d_}var OP;function Yue(){if(OP)return r_.exports;OP=1;var e=kC(),t=yD,r=Vi.exports,n=ds(),i=QB(),a=Object.defineProperty,o;return o=r_.exports=function(u,s){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,u),s?t.call(s,"key+value")?s="key+value":t.call(s,"key")?s="key":s="value":s="value",a(this,"__kind__",r("",s))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(u){return this.__kind__==="value"?this.__list__[u]:this.__kind__==="key+value"?[u,this.__list__[u]]:u})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),r_.exports}var p_={exports:{}},IP;function Xue(){if(IP)return p_.exports;IP=1;var e=kC(),t=Vi.exports,r=ds(),n=QB(),i=Object.defineProperty,a;return a=p_.exports=function(o){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");o=String(o),n.call(this,o),i(this,"__length__",t("",o.length))},e&&e(a,n),delete a.prototype.constructor,a.prototype=Object.create(n.prototype,{_next:t(function(){if(!!this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:t(function(o){var u=this.__list__[o],s;return this.__nextIndex__===this.__length__?u:(s=u.charCodeAt(0),s>=55296&&s<=56319?u+this.__list__[this.__nextIndex__++]:u)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),p_.exports}var h_,PP;function Kue(){if(PP)return h_;PP=1;var e=Iy(),t=Ao,r=Py(),n=ds().iterator,i=Array.isArray;return h_=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},h_}var v_,kP;function Que(){if(kP)return v_;kP=1;var e=Kue();return v_=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},v_}var g_,MP;function ZB(){if(MP)return g_;MP=1;var e=Iy(),t=Py(),r=Yue(),n=Xue(),i=Que(),a=ds().iterator;return g_=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},g_}var m_,DP;function Zue(){if(DP)return m_;DP=1;var e=Iy(),t=ja,r=Py(),n=ZB(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return m_=function(u,s){var f,d=arguments[2],v,h,g,_,A,b,w;if(i(u)||e(u)?f="array":r(u)?f="string":u=n(u),t(s),h=function(){g=!0},f==="array"){o.call(u,function(S){return a.call(s,d,S,h),g});return}if(f==="string"){for(A=u.length,_=0;_<A&&(b=u[_],_+1<A&&(w=b.charCodeAt(0),w>=55296&&w<=56319&&(b+=u[++_])),a.call(s,d,b,h),!g);++_);return}for(v=u.next();!v.done;){if(a.call(s,d,v.value,h),g)return;v=u.next()}},m_}var y_,FP;function Jue(){return FP||(FP=1,y_=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),y_}var b_,NP;function ele(){if(NP)return b_;NP=1;var e=Ao,t=kC(),r=Bue(),n=da,i=$ue(),a=Vi.exports,o=ZB(),u=Zue(),s=ds().toStringTag,f=Jue(),d=Array.isArray,v=Object.defineProperty,h=Object.prototype.hasOwnProperty,g=Object.getPrototypeOf,_;return b_=_=function(){var A=arguments[0],b;if(!(this instanceof _))throw new TypeError("Constructor requires 'new'");return b=f&&t&&WeakMap!==_?t(new WeakMap,g(this)):this,e(A)&&(d(A)||(A=o(A))),v(b,"__weakMapData__",a("c","$weakMap$"+i())),A&&u(A,function(w){n(w),b.set(w[0],w[1])}),b},f&&(t&&t(_,WeakMap),_.prototype=Object.create(WeakMap.prototype,{constructor:a(_)})),Object.defineProperties(_.prototype,{delete:a(function(A){return h.call(r(A),this.__weakMapData__)?(delete A[this.__weakMapData__],!0):!1}),get:a(function(A){if(!!h.call(r(A),this.__weakMapData__))return A[this.__weakMapData__]}),has:a(function(A){return h.call(r(A),this.__weakMapData__)}),set:a(function(A,b){return v(r(A),this.__weakMapData__,a("c",b)),this}),toString:a(function(){return"[object WeakMap]"})}),v(_.prototype,s,a("c","WeakMap")),b_}var JB=Nue()?WeakMap:ele(),tle=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a<i;a++)if(t.call(r,n[a],a,n))return a;return-1};const gm=x1,rle=lv,OS=as,pf=jB,nle=qu,ile=sv,LP=PC.exports,ale=Due,{float32:ole,fract32:w_}=Nu.exports,ule=JB,BP=w1,lle=tle;var Nde=Ir;function Ir(e,t){if(!(this instanceof Ir))return new Ir(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Ir.shaders.has(e)?Ir.shaders.get(e):Ir.shaders.set(e,Ir.createShaders(e)).get(e),this.update(t)}Ir.dashMult=2;Ir.maxPatternLength=256;Ir.precisionThreshold=3e6;Ir.maxPoints=1e4;Ir.maxLines=2048;Ir.shaders=new ule;Ir.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,u)=>u.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,u)=>[u.viewport.x,u.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,u)=>!u.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(OS({vert:pf("./rect-vert.glsl"),frag:pf("./rect-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(OS({cull:{enable:!0,face:"back"},vert:pf("./miter-vert.glsl"),frag:pf("./miter-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch{i=n}return{fill:e({primitive:"triangle",elements:(o,u)=>u.triangles,offset:0,vert:pf("./fill-vert.glsl"),frag:pf("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,u)=>[u.viewport.x,u.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Ir.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Ir.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Ir.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Ir.precisionThreshold||t.scale[1]*t.viewport.height>Ir.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Ir.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Ir.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=nle(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=OS({},Ir.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,a<Ir.maxLines&&(o.depth=2*(Ir.maxLines-1-a%Ir.maxLines)/Ir.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?gm(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=BP(i.viewport)),o.viewport||(o.viewport=BP([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let f,d;if(i.positions.x&&i.positions.y){let _=i.positions.x,A=i.positions.y;d=o.count=Math.max(_.length,A.length),f=new Float64Array(d*2);for(let b=0;b<d;b++)f[b*2]=_[b],f[b*2+1]=A[b]}else f=ile(i.positions,"float64"),d=o.count=Math.floor(f.length/2);let v=o.bounds=rle(f,2);if(o.fill){let _=[],A={},b=0;for(let w=0,S=0,E=o.count;w<E;w++){let R=f[w*2],M=f[w*2+1];isNaN(R)||isNaN(M)||R==null||M==null?(R=f[b*2],M=f[b*2+1],A[w]=b):b=w,_[S++]=R,_[S++]=M}if(i.splitNull){o.count-1 in A||(A[o.count]=o.count-1);let w=Object.keys(A).map(Number).sort((M,D)=>M-D),S=[],E=0,R=o.hole!=null?o.hole[0]:null;if(R!=null){let M=lle(w,D=>D>=R);w=w.slice(0,M),w.push(R)}for(let M=0;M<w.length;M++){let D=_.slice(E*2,w[M]*2).concat(R?_.slice(R*2):[]),z=(o.hole||[]).map(L=>L-R+(w[M]-E)),N=LP(D,z);N=N.map(L=>L+E+(L+E<w[M]?0:R-w[M])),S.push(...N),E=w[M]+1}for(let M=0,D=S.length;M<D;M++)A[S[M]]!=null&&(S[M]=A[S[M]]);o.triangles=S}else{let w=LP(_,o.hole||[]);for(let S=0,E=w.length;S<E;S++)A[w[S]]!=null&&(w[S]=A[w[S]]);o.triangles=w}}let h=new Float64Array(f);ale(h,2,v);let g=new Float64Array(d*2+6);o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(g[0]=h[d*2-4],g[1]=h[d*2-3]):(g[0]=h[d*2-2],g[1]=h[d*2-1]):(g[0]=h[0],g[1]=h[1]),g.set(h,2),o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(g[d*2+2]=h[2],g[d*2+3]=h[3],o.count-=1):(g[d*2+2]=h[0],g[d*2+3]=h[1],g[d*2+4]=h[2],g[d*2+5]=h[3]):(g[d*2+2]=h[d*2-2],g[d*2+3]=h[d*2-1],g[d*2+4]=h[d*2-2],g[d*2+5]=h[d*2-1]);var u=ole(g);o.positionBuffer(u);var s=w_(g,u);o.positionFractBuffer(s)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let f=o.bounds,d=f[2]-f[0],v=f[3]-f[1],h=o.range[2]-o.range[0],g=o.range[3]-o.range[1];o.scale=[d/h,v/g],o.translate=[-o.range[0]/h+f[0]/h||0,-o.range[1]/g+f[1]/g||0],o.scaleFract=w_(o.scale),o.translateFract=w_(o.translate)}if(i.dashes){let f=0,d;if(!i.dashes||i.dashes.length<2)f=1,d=new Uint8Array([255,255,255,255,255,255,255,255]);else{f=0;for(let g=0;g<i.dashes.length;++g)f+=i.dashes[g];d=new Uint8Array(f*Ir.dashMult);let v=0,h=255;for(let g=0;g<2;g++)for(let _=0;_<i.dashes.length;++_){for(let A=0,b=i.dashes[_]*Ir.dashMult*.5;A<b;++A)d[v++]=h;h^=255}}o.dashLength=f,o.dashTexture({channels:1,data:d,width:d.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let f=o.count,d=i.color;d||(d="transparent");let v=new Uint8Array(f*4+4);if(!Array.isArray(d)||typeof d[0]=="number"){let h=gm(d,"uint8");for(let g=0;g<f+1;g++)v.set(h,g*4)}else{for(let h=0;h<f;h++){let g=gm(d[h],"uint8");v.set(g,h*4)}v.set(gm(d[0],"uint8"),f*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:v})}}}),e.length<this.passes.length){for(let i=e.length;i<this.passes.length;i++){let a=this.passes[i];!a||(a.colorBuffer.destroy(),a.positionBuffer.destroy(),a.dashTexture.destroy())}this.passes.length=e.length}let n=[];for(let i=0;i<this.passes.length;i++)this.passes[i]!==null&&n.push(this.passes[i]);return this.passes=n,this};Ir.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const sle=lv,fle=x1,cle=WB,dle=qu,$P=as,zP=sv,{float32:ple,fract32:x_}=Nu.exports;var Lde=hle;const UP=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function hle(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,u,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},d=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),u=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:UP}),_(t),n=e({vert:`
|
|
1113
|
+
`]),cP&&(_.frag=_.frag.replace("smoothstep","smoothStep"),g.frag=g.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(_)}xn.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};xn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};xn.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=this.groups;if(r.length===1&&Array.isArray(r[0])&&(r[0][0]===null||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a<r.length;a++)this.drawItem(a,r[a]);else i.forEach(function(o,u){e.drawItem(u)});return this};xn.prototype.drawItem=function(e,t){var r=this.groups,n=r[e];if(typeof t=="number"&&(e=t,n=r[t],t=null),!!(n&&n.count&&n.opacity)){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,t));for(var i=[],a=1;a<n.activation.length;a++)!n.activation[a]||n.activation[a]!==!0&&!n.activation[a].data.length||i.push.apply(i,eue(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};xn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,u=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[ql({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[ql({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var f=[],d=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var v=o[e],h=v.data,g=new Uint8Array(s),_=0;_<r.length;_++){var A=r[_];g[A]=h?h[A]:1}u.subdata(g)}for(var b=d.length;b--;){var w=Joe(d[b],2),S=w[0],E=w[1];f.push(ql({},t,{markerTexture:this.markerTextures[e],activation:r?u:o[e],offset:S,count:E-S}))}return f};xn.prototype.update=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!!r.length){r.length===1&&Array.isArray(r[0])&&(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,u=this.maxSize,s=this.maxColors,f=this.palette;this.groups=i=r.map(function(d,v){var h=i[v];if(d===void 0)return h;d===null?d={positions:null}:typeof d=="function"?d={ondraw:d}:typeof d[0]=="number"&&(d={positions:d}),d=cue(d,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),d.positions===null&&(d.positions=[]),d.tooManyColors!=null&&(e.tooManyColors=d.tooManyColors),h||(i[v]=h={id:v,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},d=ql({},xn.defaults,d)),d.positions&&!("marker"in d)&&(d.marker=h.marker,delete h.marker),d.marker&&!("positions"in d)&&(d.positions=h.positions,delete h.positions);var g=0,_=0;if(due(h,d,[{snap:!0,size:function(me,Fe){return me==null&&(me=xn.defaults.size),g+=me&&me.length?1:0,me},borderSize:function(me,Fe){return me==null&&(me=xn.defaults.borderSize),g+=me&&me.length?1:0,me},opacity:parseFloat,color:function(me,Fe){return me==null&&(me=xn.defaults.color),me=e.updateColor(me),_++,me},borderColor:function(me,Fe){return me==null&&(me=xn.defaults.borderColor),me=e.updateColor(me),_++,me},bounds:function(me,Fe,qe){return"range"in qe||(qe.range=null),me},positions:function(me,Fe,qe){var Ue=Fe.snap,be=Fe.positionBuffer,ye=Fe.positionFractBuffer,Ke=Fe.selectionBuffer;if(me.x||me.y)return me.x.length?Fe.xAttr={buffer:o.buffer(me.x),offset:0,stride:4,count:me.x.length}:Fe.xAttr={buffer:me.x.buffer,offset:me.x.offset*4||0,stride:(me.x.stride||1)*4,count:me.x.count},me.y.length?Fe.yAttr={buffer:o.buffer(me.y),offset:0,stride:4,count:me.y.length}:Fe.yAttr={buffer:me.y.buffer,offset:me.y.offset*4||0,stride:(me.y.stride||1)*4,count:me.y.count},Fe.count=Math.max(Fe.xAttr.count,Fe.yAttr.count),me;me=pue(me,"float64");var We=Fe.count=Math.floor(me.length/2),Ze=Fe.bounds=We?lue(me,2):null;if(!qe.range&&!Fe.range&&(delete Fe.range,qe.range=Ze),!qe.marker&&!Fe.marker&&(delete Fe.marker,qe.marker=null),Ue&&(Ue===!0||We>Ue)?Fe.tree=fue(me,{bounds:Ze}):Ue&&Ue.length&&(Fe.tree=Ue),Fe.tree){var st={primitive:"points",usage:"static",data:Fe.tree,type:"uint32"};Fe.elements?Fe.elements(st):Fe.elements=o.elements(st)}var Rt=pm.float32(me);be({data:Rt,usage:"dynamic"});var kt=pm.fract32(me,Rt);return ye({data:kt,usage:"dynamic"}),Ke({data:new Uint8Array(We),type:"uint8",usage:"stream"}),me}},{marker:function(me,Fe,qe){var Ue=Fe.activation;if(Ue.forEach(function(kt){return kt&&kt.destroy&&kt.destroy()}),Ue.length=0,!me||typeof me[0]=="number"){var be=e.addMarker(me);Ue[be]=!0}else{for(var ye=[],Ke=0,We=Math.min(me.length,Fe.count);Ke<We;Ke++){var Ze=e.addMarker(me[Ke]);ye[Ze]||(ye[Ze]=new Uint8Array(Fe.count)),ye[Ze][Ke]=1}for(var st=0;st<ye.length;st++)if(!!ye[st]){var Rt={data:ye[st],type:"uint8",usage:"static"};Ue[st]?Ue[st](Rt):Ue[st]=o.buffer(Rt),Ue[st].data=ye[st]}}return me},range:function(me,Fe,qe){var Ue=Fe.bounds;if(!!Ue)return me||(me=Ue),Fe.scale=[1/(me[2]-me[0]),1/(me[3]-me[1])],Fe.translate=[-me[0],-me[1]],Fe.scaleFract=pm.fract(Fe.scale),Fe.translateFract=pm.fract(Fe.translate),me},viewport:function(me){var Fe=hue(me||[a.drawingBufferWidth,a.drawingBufferHeight]);return Fe}}]),g){var A=h,b=A.count,w=A.size,S=A.borderSize,E=A.sizeBuffer,R=new Uint8Array(b*2);if(w.length||S.length)for(var M=0;M<b;M++)R[M*2]=Math.round((w[M]==null?w:w[M])*255/u),R[M*2+1]=Math.round((S[M]==null?S:S[M])*255/u);E({data:R,usage:"dynamic"})}if(_){var D=h,z=D.count,N=D.color,L=D.borderColor,ee=D.colorBuffer,ue;if(e.tooManyColors){if(N.length||L.length){ue=new Uint8Array(z*8);for(var pe=0;pe<z;pe++){var we=N[pe];ue[pe*8]=f[we*4],ue[pe*8+1]=f[we*4+1],ue[pe*8+2]=f[we*4+2],ue[pe*8+3]=f[we*4+3];var Ee=L[pe];ue[pe*8+4]=f[Ee*4],ue[pe*8+5]=f[Ee*4+1],ue[pe*8+6]=f[Ee*4+2],ue[pe*8+7]=f[Ee*4+3]}}}else if(N.length||L.length){ue=new Uint8Array(z*4+2);for(var Je=0;Je<z;Je++)N[Je]!=null&&(ue[Je*4]=N[Je]%s,ue[Je*4+1]=Math.floor(N[Je]/s)),L[Je]!=null&&(ue[Je*4+2]=L[Je]%s,ue[Je*4+3]=Math.floor(L[Je]/s))}ee({data:ue||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return h})}};xn.prototype.addMarker=function(e){var t=this.markerTextures,r=this.regl,n=this.markerCache,i=e==null?0:n.indexOf(e);if(i>=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,u=e.length;o<u;o++)a[o]=e[o]*255}var s=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:s,mag:"linear",min:"linear"})),i};xn.prototype.updateColor=function(e){var t=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(e)||(e=[e]);var i=[];if(typeof e[0]=="number"){var a=[];if(Array.isArray(e))for(var o=0;o<e.length;o+=4)a.push(e.slice(o,o+4));else for(var u=0;u<e.length;u+=4)a.push(e.subarray(u,u+4));e=a}for(var s=0;s<e.length;s++){var f=e[s];f=uue(f,"uint8");var d=sue(f,!1);if(t[d]==null){var v=r.length;t[d]=Math.floor(v/4),r[v]=f[0],r[v+1]=f[1],r[v+2]=f[2],r[v+3]=f[3]}i[s]=t[d]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};xn.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i<n*t;i++)e.push(0,0,0,0)}r.height<n&&r.resize(t,n),r.subimage({width:Math.min(e.length*.25,t),height:n,data:e},0,0)}};xn.prototype.destroy=function(){return this.groups.forEach(function(e){e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(function(t){return t&&t.destroy&&t.destroy()}),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(function(e){return e&&e.destroy&&e.destroy()}),this};var gue=as,mue=function(t,r){var n=new vue(t,r),i=n.render.bind(n);return gue(i,{render:i,update:n.update.bind(n),draw:n.draw.bind(n),destroy:n.destroy.bind(n),regl:n.regl,gl:n.gl,canvas:n.gl.canvas,groups:n.groups,markers:n.markerCache,palette:n.palette}),i},Nde=mue,PC={exports:{}};PC.exports=S1;PC.exports.default=S1;function S1(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=qB(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var u,s,f,d,v,h,g;if(n&&(a=_ue(e,t,a,r)),e.length>80*r){u=f=e[0],s=d=e[1];for(var _=r;_<i;_+=r)v=e[_],h=e[_+1],v<u&&(u=v),h<s&&(s=h),v>f&&(f=v),h>d&&(d=h);g=Math.max(f-u,d-s),g=g!==0?1/g:0}return Rh(a,o,r,u,s,g),o}function qB(e,t,r,n,i){var a,o;if(i===RS(e,t,r,n)>0)for(a=t;a<r;a+=n)o=dP(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=dP(a,e[a],e[a+1],o);return o&&E1(o,o.next)&&(Ih(o),o=o.next),o}function Lu(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(E1(r,r.next)||Vr(r.prev,r,r.next)===0)){if(Ih(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Rh(e,t,r,n,i,a,o){if(!!e){!o&&a&&Tue(e,n,i,a);for(var u=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,a?bue(e,n,i,a):yue(e)){t.push(s.i/r),t.push(e.i/r),t.push(f.i/r),Ih(e),e=f.next,u=f.next;continue}if(e=f,e===u){o?o===1?(e=wue(Lu(e),t,r),Rh(e,t,r,n,i,a,2)):o===2&&xue(e,t,r,n,i,a):Rh(Lu(e),t,r,n,i,a,1);break}}}}function yue(e){var t=e.prev,r=e,n=e.next;if(Vr(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(kf(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Vr(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function bue(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Vr(i,a,o)>=0)return!1;for(var u=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,s=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,f=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,d=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,v=CS(u,s,t,r,n),h=CS(f,d,t,r,n),g=e.prevZ,_=e.nextZ;g&&g.z>=v&&_&&_.z<=h;){if(g!==e.prev&&g!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&Vr(g.prev,g,g.next)>=0||(g=g.prevZ,_!==e.prev&&_!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,_.x,_.y)&&Vr(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;g&&g.z>=v;){if(g!==e.prev&&g!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&&Vr(g.prev,g,g.next)>=0)return!1;g=g.prevZ}for(;_&&_.z<=h;){if(_!==e.prev&&_!==e.next&&kf(i.x,i.y,a.x,a.y,o.x,o.y,_.x,_.y)&&Vr(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function wue(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!E1(i,a)&&HB(i,n,n.next,a)&&Oh(i,a)&&Oh(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),Ih(n),Ih(n.next),n=e=a),n=n.next}while(n!==e);return Lu(n)}function xue(e,t,r,n,i,a){var o=e;do{for(var u=o.next.next;u!==o.prev;){if(o.i!==u.i&&Iue(o,u)){var s=VB(o,u);o=Lu(o,o.next),s=Lu(s,s.next),Rh(o,t,r,n,i,a),Rh(s,t,r,n,i,a);return}u=u.next}o=o.next}while(o!==e)}function _ue(e,t,r,n){var i=[],a,o,u,s,f;for(a=0,o=t.length;a<o;a++)u=t[a]*n,s=a<o-1?t[a+1]*n:e.length,f=qB(e,u,s,n,!1),f===f.next&&(f.steiner=!0),i.push(Oue(f));for(i.sort(Sue),a=0;a<i.length;a++)r=Eue(i[a],r),r=Lu(r,r.next);return r}function Sue(e,t){return e.x-t.x}function Eue(e,t){var r=Aue(e,t);if(!r)return t;var n=VB(r,e),i=Lu(r,r.next);return Lu(n,n.next),t===r?i:t}function Aue(e,t){var r=t,n=e.x,i=e.y,a=-1/0,o;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>a){if(a=u,u===n){if(i===r.y)return r;if(i===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===a)return o;var s=o,f=o.x,d=o.y,v=1/0,h;r=o;do n>=r.x&&r.x>=f&&n!==r.x&&kf(i<d?n:a,i,f,d,i<d?a:n,i,r.x,r.y)&&(h=Math.abs(i-r.y)/(n-r.x),Oh(r,e)&&(h<v||h===v&&(r.x>o.x||r.x===o.x&&Cue(o,r)))&&(o=r,v=h)),r=r.next;while(r!==s);return o}function Cue(e,t){return Vr(e.prev,e,t.prev)<0&&Vr(t.next,e,e.next)<0}function Tue(e,t,r,n){var i=e;do i.z===null&&(i.z=CS(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Rue(i)}function Rue(e){var t,r,n,i,a,o,u,s,f=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,u=0,t=0;t<f&&(u++,n=n.nextZ,!!n);t++);for(s=f;u>0||s>0&&n;)u!==0&&(s===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,s--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,f*=2}while(o>1);return e}function CS(e,t,r,n,i){return e=32767*(e-r)*i,t=32767*(t-n)*i,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Oue(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function kf(e,t,r,n,i,a,o,u){return(i-o)*(t-u)-(e-o)*(a-u)>=0&&(e-o)*(n-u)-(r-o)*(t-u)>=0&&(r-o)*(a-u)-(i-o)*(n-u)>=0}function Iue(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Pue(e,t)&&(Oh(e,t)&&Oh(t,e)&&kue(e,t)&&(Vr(e.prev,e,t.prev)||Vr(e,t.prev,t))||E1(e,t)&&Vr(e.prev,e,e.next)>0&&Vr(t.prev,t,t.next)>0)}function Vr(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function E1(e,t){return e.x===t.x&&e.y===t.y}function HB(e,t,r,n){var i=vm(Vr(e,t,r)),a=vm(Vr(e,t,n)),o=vm(Vr(r,n,e)),u=vm(Vr(r,n,t));return!!(i!==a&&o!==u||i===0&&hm(e,r,t)||a===0&&hm(e,n,t)||o===0&&hm(r,e,n)||u===0&&hm(r,t,n))}function hm(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function vm(e){return e>0?1:e<0?-1:0}function Pue(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&HB(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Oh(e,t){return Vr(e.prev,e,e.next)<0?Vr(e,t,e.next)>=0&&Vr(e,e.prev,t)>=0:Vr(e,t,e.prev)<0||Vr(e,e.next,t)<0}function kue(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function VB(e,t){var r=new TS(e.i,e.x,e.y),n=new TS(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function dP(e,t,r,n){var i=new TS(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ih(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function TS(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}S1.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(RS(e,0,a,r));if(i)for(var u=0,s=t.length;u<s;u++){var f=t[u]*r,d=u<s-1?t[u+1]*r:e.length;o-=Math.abs(RS(e,f,d,r))}var v=0;for(u=0;u<n.length;u+=3){var h=n[u]*r,g=n[u+1]*r,_=n[u+2]*r;v+=Math.abs((e[h]-e[_])*(e[g+1]-e[h+1])-(e[h]-e[g])*(e[_+1]-e[h+1]))}return o===0&&v===0?0:Math.abs((v-o)/o)};function RS(e,t,r,n){for(var i=0,a=t,o=r-n;a<r;a+=n)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}S1.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var o=0;o<t;o++)r.vertices.push(e[i][a][o]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var Mue=lv,Due=Fue;function Fue(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=Mue(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,u=e.length;if(i===1/0&&a===-1/0)for(o=n;o<u;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<u;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<u;o+=t)e[o]=e[o]===a?0:1;else{var s=i-a;for(o=n;o<u;o+=t)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-a)/s)}}return e}var Nue=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch{return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")},Kx,pP;function YB(){if(pP)return Kx;pP=1;var e=Object.create,t=Object.getPrototypeOf,r={};return Kx=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},Kx}var Qx,hP;function Lue(){if(hP)return Qx;hP=1;var e=Object.create,t;return YB()()||(t=XB()),Qx=function(){var r,n,i;return!t||t.level!==1?e:(r={},n={},i={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){n[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}n[a]=i}),Object.defineProperties(r,n),Object.defineProperty(t,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:r}),function(a,o){return e(a===null?r:a,o)})}(),Qx}var Zx,vP;function XB(){if(vP)return Zx;vP=1;var e=LE,t=da,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,u){if(t(o),u===null||e(u))return o;throw new TypeError("Prototype must be null or an object")},Zx=function(o){var u,s;return o?(o.level===2?o.set?(s=o.set,u=function(f,d){return s.call(a(f,d),d),f}):u=function(f,d){return a(f,d).__proto__=d,f}:u=function f(d,v){var h;return a(d,v),h=r.call(f.nullPolyfill,d),h&&delete f.nullPolyfill.__proto__,v===null&&(v=f.nullPolyfill),d.__proto__=v,h&&n(f.nullPolyfill,"__proto__",i),d},Object.defineProperty(u,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),u={},s,f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(f){try{s=f.set,s.call(o,u)}catch{}if(Object.getPrototypeOf(o)===u)return{set:s,level:2}}return o.__proto__=u,Object.getPrototypeOf(o)===u?{level:2}:(o={},o.__proto__=u,Object.getPrototypeOf(o)===u?{level:1}:!1)}()),Lue(),Zx}var Jx,gP;function kC(){return gP||(gP=1,Jx=YB()()?Object.setPrototypeOf:XB()),Jx}var e_,mP;function Bue(){if(mP)return e_;mP=1;var e=LE;return e_=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},e_}var t_,yP;function $ue(){if(yP)return t_;yP=1;var e=Object.create(null),t=Math.random;return t_=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},t_}var r_={exports:{}},n_,bP;function zue(){if(bP)return n_;bP=1;var e=da;return n_=function(){return e(this).length=0,this},n_}var i_,wP;function Uue(){if(wP)return i_;wP=1;var e=Sc,t=BE,r=Object.prototype.toString;return i_=function(n){if(!e(n))return null;if(t(n)){var i=n.toString;if(typeof i!="function"||i===r)return null}try{return""+n}catch{return null}},i_}var a_,xP;function jue(){return xP||(xP=1,a_=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),a_}var o_,_P;function Wue(){if(_P)return o_;_P=1;var e=jue(),t=/[\n\r\u2028\u2029]/g;return o_=function(r){var n=e(r);return n===null?"<Non-coercible to string value>":(n.length>100&&(n=n.slice(0,99)+"\u2026"),n=n.replace(t,function(i){switch(i){case`
|
|
1114
|
+
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},o_}var u_,SP;function KB(){if(SP)return u_;SP=1;var e=Sc,t=BE,r=Uue(),n=Wue(),i=function(a,o){return a.replace("%v",n(o))};return u_=function(a,o,u){if(!t(u))throw new TypeError(i(o,a));if(!e(a)){if("default"in u)return u.default;if(u.isOptional)return null}var s=r(u.errorMessage);throw e(s)||(s=o),new TypeError(i(s,a))},u_}var l_,EP;function Gue(){if(EP)return l_;EP=1;var e=KB(),t=Sc;return l_=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},l_}var s_,AP;function que(){if(AP)return s_;AP=1;var e=KB(),t=mD;return s_=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},s_}var f_,CP;function Hue(){if(CP)return f_;CP=1;var e=ky(),t=Ry,r=da;return f_=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var u={};return a?e(a,function(s){(o.ensure||s in n)&&(u[s]=n[s])}):t(u,n),u},f_}var c_,TP;function Vue(){if(TP)return c_;TP=1;var e=Sc,t=Gue(),r=que(),n=Hue(),i=NE,a=zE(),o=Function.prototype.bind,u=Object.defineProperty,s=Object.prototype.hasOwnProperty,f;return f=function(d,v,h){var g=t(v)&&r(v.value),_;return _=n(v),delete _.writable,delete _.value,_.get=function(){return!h.overwriteDefinition&&s.call(this,d)?g:(v.value=o.call(g,h.resolveContext?h.resolveContext(this):this),u(this,d,v),this[d])},_},c_=function(d){var v=i(arguments[1]);return e(v.resolveContext)&&r(v.resolveContext),a(d,function(h,g){return f(g,h,v)})},c_}var d_,RP;function QB(){if(RP)return d_;RP=1;var e=zue(),t=Ry,r=ja,n=da,i=Vi.exports,a=Vue(),o=ds(),u=Object.defineProperty,s=Object.defineProperties,f;return d_=f=function(d,v){if(!(this instanceof f))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(d)),__context__:i("w",v),__nextIndex__:i("w",0)}),v&&(r(v.on),v.on("_add",this._onAdd),v.on("_delete",this._onDelete),v.on("_clear",this._onClear))},delete f.prototype.constructor,s(f.prototype,t({_next:i(function(){var d;if(!!this.__list__){if(this.__redo__&&(d=this.__redo__.shift(),d!==void 0))return d;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:i(function(){return this._createResult(this._next())}),_createResult:i(function(d){return d===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(d)}}),_resolve:i(function(d){return this.__list__[d]}),_unBind:i(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:i(function(){return"[object "+(this[o.toStringTag]||"Object")+"]"})},a({_onAdd:i(function(d){if(!(d>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){u(this,"__redo__",i("c",[d]));return}this.__redo__.forEach(function(v,h){v>=d&&(this.__redo__[h]=++v)},this),this.__redo__.push(d)}}),_onDelete:i(function(d){var v;d>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(v=this.__redo__.indexOf(d),v!==-1&&this.__redo__.splice(v,1),this.__redo__.forEach(function(h,g){h>d&&(this.__redo__[g]=--h)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),u(f.prototype,o.iterator,i(function(){return this})),d_}var OP;function Yue(){if(OP)return r_.exports;OP=1;var e=kC(),t=yD,r=Vi.exports,n=ds(),i=QB(),a=Object.defineProperty,o;return o=r_.exports=function(u,s){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,u),s?t.call(s,"key+value")?s="key+value":t.call(s,"key")?s="key":s="value":s="value",a(this,"__kind__",r("",s))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(u){return this.__kind__==="value"?this.__list__[u]:this.__kind__==="key+value"?[u,this.__list__[u]]:u})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),r_.exports}var p_={exports:{}},IP;function Xue(){if(IP)return p_.exports;IP=1;var e=kC(),t=Vi.exports,r=ds(),n=QB(),i=Object.defineProperty,a;return a=p_.exports=function(o){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");o=String(o),n.call(this,o),i(this,"__length__",t("",o.length))},e&&e(a,n),delete a.prototype.constructor,a.prototype=Object.create(n.prototype,{_next:t(function(){if(!!this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:t(function(o){var u=this.__list__[o],s;return this.__nextIndex__===this.__length__?u:(s=u.charCodeAt(0),s>=55296&&s<=56319?u+this.__list__[this.__nextIndex__++]:u)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),p_.exports}var h_,PP;function Kue(){if(PP)return h_;PP=1;var e=Iy(),t=Ao,r=Py(),n=ds().iterator,i=Array.isArray;return h_=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},h_}var v_,kP;function Que(){if(kP)return v_;kP=1;var e=Kue();return v_=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},v_}var g_,MP;function ZB(){if(MP)return g_;MP=1;var e=Iy(),t=Py(),r=Yue(),n=Xue(),i=Que(),a=ds().iterator;return g_=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},g_}var m_,DP;function Zue(){if(DP)return m_;DP=1;var e=Iy(),t=ja,r=Py(),n=ZB(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return m_=function(u,s){var f,d=arguments[2],v,h,g,_,A,b,w;if(i(u)||e(u)?f="array":r(u)?f="string":u=n(u),t(s),h=function(){g=!0},f==="array"){o.call(u,function(S){return a.call(s,d,S,h),g});return}if(f==="string"){for(A=u.length,_=0;_<A&&(b=u[_],_+1<A&&(w=b.charCodeAt(0),w>=55296&&w<=56319&&(b+=u[++_])),a.call(s,d,b,h),!g);++_);return}for(v=u.next();!v.done;){if(a.call(s,d,v.value,h),g)return;v=u.next()}},m_}var y_,FP;function Jue(){return FP||(FP=1,y_=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),y_}var b_,NP;function ele(){if(NP)return b_;NP=1;var e=Ao,t=kC(),r=Bue(),n=da,i=$ue(),a=Vi.exports,o=ZB(),u=Zue(),s=ds().toStringTag,f=Jue(),d=Array.isArray,v=Object.defineProperty,h=Object.prototype.hasOwnProperty,g=Object.getPrototypeOf,_;return b_=_=function(){var A=arguments[0],b;if(!(this instanceof _))throw new TypeError("Constructor requires 'new'");return b=f&&t&&WeakMap!==_?t(new WeakMap,g(this)):this,e(A)&&(d(A)||(A=o(A))),v(b,"__weakMapData__",a("c","$weakMap$"+i())),A&&u(A,function(w){n(w),b.set(w[0],w[1])}),b},f&&(t&&t(_,WeakMap),_.prototype=Object.create(WeakMap.prototype,{constructor:a(_)})),Object.defineProperties(_.prototype,{delete:a(function(A){return h.call(r(A),this.__weakMapData__)?(delete A[this.__weakMapData__],!0):!1}),get:a(function(A){if(!!h.call(r(A),this.__weakMapData__))return A[this.__weakMapData__]}),has:a(function(A){return h.call(r(A),this.__weakMapData__)}),set:a(function(A,b){return v(r(A),this.__weakMapData__,a("c",b)),this}),toString:a(function(){return"[object WeakMap]"})}),v(_.prototype,s,a("c","WeakMap")),b_}var JB=Nue()?WeakMap:ele(),tle=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a<i;a++)if(t.call(r,n[a],a,n))return a;return-1};const gm=x1,rle=lv,OS=as,pf=jB,nle=qu,ile=sv,LP=PC.exports,ale=Due,{float32:ole,fract32:w_}=Nu.exports,ule=JB,BP=w1,lle=tle;var Lde=Ir;function Ir(e,t){if(!(this instanceof Ir))return new Ir(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Ir.shaders.has(e)?Ir.shaders.get(e):Ir.shaders.set(e,Ir.createShaders(e)).get(e),this.update(t)}Ir.dashMult=2;Ir.maxPatternLength=256;Ir.precisionThreshold=3e6;Ir.maxPoints=1e4;Ir.maxLines=2048;Ir.shaders=new ule;Ir.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,u)=>u.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,u)=>[u.viewport.x,u.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,u)=>!u.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(OS({vert:pf("./rect-vert.glsl"),frag:pf("./rect-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(OS({cull:{enable:!0,face:"back"},vert:pf("./miter-vert.glsl"),frag:pf("./miter-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch{i=n}return{fill:e({primitive:"triangle",elements:(o,u)=>u.triangles,offset:0,vert:pf("./fill-vert.glsl"),frag:pf("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,u)=>[u.viewport.x,u.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Ir.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Ir.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Ir.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Ir.precisionThreshold||t.scale[1]*t.viewport.height>Ir.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Ir.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Ir.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=nle(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=OS({},Ir.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,a<Ir.maxLines&&(o.depth=2*(Ir.maxLines-1-a%Ir.maxLines)/Ir.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?gm(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=BP(i.viewport)),o.viewport||(o.viewport=BP([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let f,d;if(i.positions.x&&i.positions.y){let _=i.positions.x,A=i.positions.y;d=o.count=Math.max(_.length,A.length),f=new Float64Array(d*2);for(let b=0;b<d;b++)f[b*2]=_[b],f[b*2+1]=A[b]}else f=ile(i.positions,"float64"),d=o.count=Math.floor(f.length/2);let v=o.bounds=rle(f,2);if(o.fill){let _=[],A={},b=0;for(let w=0,S=0,E=o.count;w<E;w++){let R=f[w*2],M=f[w*2+1];isNaN(R)||isNaN(M)||R==null||M==null?(R=f[b*2],M=f[b*2+1],A[w]=b):b=w,_[S++]=R,_[S++]=M}if(i.splitNull){o.count-1 in A||(A[o.count]=o.count-1);let w=Object.keys(A).map(Number).sort((M,D)=>M-D),S=[],E=0,R=o.hole!=null?o.hole[0]:null;if(R!=null){let M=lle(w,D=>D>=R);w=w.slice(0,M),w.push(R)}for(let M=0;M<w.length;M++){let D=_.slice(E*2,w[M]*2).concat(R?_.slice(R*2):[]),z=(o.hole||[]).map(L=>L-R+(w[M]-E)),N=LP(D,z);N=N.map(L=>L+E+(L+E<w[M]?0:R-w[M])),S.push(...N),E=w[M]+1}for(let M=0,D=S.length;M<D;M++)A[S[M]]!=null&&(S[M]=A[S[M]]);o.triangles=S}else{let w=LP(_,o.hole||[]);for(let S=0,E=w.length;S<E;S++)A[w[S]]!=null&&(w[S]=A[w[S]]);o.triangles=w}}let h=new Float64Array(f);ale(h,2,v);let g=new Float64Array(d*2+6);o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(g[0]=h[d*2-4],g[1]=h[d*2-3]):(g[0]=h[d*2-2],g[1]=h[d*2-1]):(g[0]=h[0],g[1]=h[1]),g.set(h,2),o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(g[d*2+2]=h[2],g[d*2+3]=h[3],o.count-=1):(g[d*2+2]=h[0],g[d*2+3]=h[1],g[d*2+4]=h[2],g[d*2+5]=h[3]):(g[d*2+2]=h[d*2-2],g[d*2+3]=h[d*2-1],g[d*2+4]=h[d*2-2],g[d*2+5]=h[d*2-1]);var u=ole(g);o.positionBuffer(u);var s=w_(g,u);o.positionFractBuffer(s)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let f=o.bounds,d=f[2]-f[0],v=f[3]-f[1],h=o.range[2]-o.range[0],g=o.range[3]-o.range[1];o.scale=[d/h,v/g],o.translate=[-o.range[0]/h+f[0]/h||0,-o.range[1]/g+f[1]/g||0],o.scaleFract=w_(o.scale),o.translateFract=w_(o.translate)}if(i.dashes){let f=0,d;if(!i.dashes||i.dashes.length<2)f=1,d=new Uint8Array([255,255,255,255,255,255,255,255]);else{f=0;for(let g=0;g<i.dashes.length;++g)f+=i.dashes[g];d=new Uint8Array(f*Ir.dashMult);let v=0,h=255;for(let g=0;g<2;g++)for(let _=0;_<i.dashes.length;++_){for(let A=0,b=i.dashes[_]*Ir.dashMult*.5;A<b;++A)d[v++]=h;h^=255}}o.dashLength=f,o.dashTexture({channels:1,data:d,width:d.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let f=o.count,d=i.color;d||(d="transparent");let v=new Uint8Array(f*4+4);if(!Array.isArray(d)||typeof d[0]=="number"){let h=gm(d,"uint8");for(let g=0;g<f+1;g++)v.set(h,g*4)}else{for(let h=0;h<f;h++){let g=gm(d[h],"uint8");v.set(g,h*4)}v.set(gm(d[0],"uint8"),f*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:v})}}}),e.length<this.passes.length){for(let i=e.length;i<this.passes.length;i++){let a=this.passes[i];!a||(a.colorBuffer.destroy(),a.positionBuffer.destroy(),a.dashTexture.destroy())}this.passes.length=e.length}let n=[];for(let i=0;i<this.passes.length;i++)this.passes[i]!==null&&n.push(this.passes[i]);return this.passes=n,this};Ir.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const sle=lv,fle=x1,cle=WB,dle=qu,$P=as,zP=sv,{float32:ple,fract32:x_}=Nu.exports;var Bde=hle;const UP=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function hle(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,u,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},d=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),u=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:UP}),_(t),n=e({vert:`
|
|
1115
1115
|
precision highp float;
|
|
1116
1116
|
|
|
1117
1117
|
attribute vec2 position, positionFract;
|
|
@@ -1237,5 +1237,5 @@ void main() {
|
|
|
1237
1237
|
// color.rgb += (1. - color.rgb) * (1. - mask.rgb);
|
|
1238
1238
|
|
|
1239
1239
|
gl_FragColor = color;
|
|
1240
|
-
}`}),n={};return{regl:t,draw:r,atlas:n}};Rr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=pse(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(We){return parseFloat(We)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=yse(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Ase(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=Rr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(We,Ze){if(typeof We=="string")try{We=vf.parse(We)}catch{We=vf.parse(Rr.baseFontSize+"px "+We)}else We=vf.parse(vf.stringify(We));var st=vf.stringify({size:Rr.baseFontSize,family:We.family,stretch:Gm?We.stretch:void 0,variant:We.variant,weight:We.weight,style:We.style}),Rt=wse(We.size),kt=Math.round(Rt[0]*xse(Rt[1]));if(kt!==r.fontSize[Ze]&&(i=!0,r.fontSize[Ze]=kt),(!r.font[Ze]||st!=r.font[Ze].baseString)&&(n=!0,r.font[Ze]=Rr.fonts[st],!r.font[Ze])){var Ae=We.family.join(", "),nt=[We.style];We.style!=We.variant&&nt.push(We.variant),We.variant!=We.weight&&nt.push(We.weight),Gm&&We.weight!=We.stretch&&nt.push(We.stretch),r.font[Ze]={baseString:st,family:Ae,weight:We.weight,stretch:We.stretch,style:We.style,variant:We.variant,width:{},kerning:{},metrics:Ese(Ae,{origin:"top",fontSize:Rr.baseFontSize,fontStyle:nt.join(" ")})},Rr.fonts[st]=r.font[Ze]}}),(n||i)&&this.font.forEach(function(We,Ze){var st=vf.stringify({size:r.fontSize[Ze],family:We.family,stretch:Gm?We.stretch:void 0,variant:We.variant,weight:We.weight,style:We.style});if(r.fontAtlas[Ze]=r.shader.atlas[st],!r.fontAtlas[Ze]){var Rt=We.metrics;r.shader.atlas[st]=r.fontAtlas[Ze]={fontString:st,step:Math.ceil(r.fontSize[Ze]*Rt.bottom*.5)*2,em:r.fontSize[Ze],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var u;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];u=[],this.font.forEach(function(We,Ze){Rr.atlasContext.font=We.baseString;for(var st=r.fontAtlas[Ze],Rt=0;Rt<r.text.length;Rt++){var kt=r.text.charAt(Rt);if(st.ids[kt]==null&&(st.ids[kt]=st.chars.length,st.chars.push(kt),u.push(kt)),We.width[kt]==null&&(We.width[kt]=Rr.atlasContext.measureText(kt).width/Rr.baseFontSize,r.kerning)){var Ae=[];for(var nt in We.width)Ae.push(nt+kt,kt+nt);Sse(We.kerning,_se(We.family,{pairs:Ae}))}}})}if(t.position)if(t.position.length>2){for(var f=!t.position[0].length,d=tu.mallocFloat(this.count*2),v=0,h=0;v<this.counts.length;v++){var g=this.counts[v];if(f)for(var _=0;_<g;_++)d[h++]=t.position[v*2],d[h++]=t.position[v*2+1];else for(var A=0;A<g;A++)d[h++]=t.position[v][0],d[h++]=t.position[v][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),tu.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=tu.mallocUint8(this.count),w=tu.mallocFloat(this.count*2);this.textWidth=[];for(var S=0,E=0;S<this.counts.length;S++){for(var R=this.counts[S],M=this.font[S]||this.font[0],D=this.fontAtlas[S]||this.fontAtlas[0],z=0;z<R;z++){var N=this.text.charAt(E),L=this.text.charAt(E-1);if(b[E]=D.ids[N],w[E*2]=M.width[N],z){var ee=w[E*2-2],ue=w[E*2],pe=w[E*2-1],we=pe+ee*.5+ue*.5;if(this.kerning){var Ee=M.kerning[L+N];Ee&&(we+=Ee*.001)}w[E*2+1]=we}else w[E*2+1]=w[E*2]*.5;E++}this.textWidth.push(w.length?w[E*2-2]*.5+w[E*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:b,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),tu.freeUint8(b),tu.freeFloat(w),u.length&&this.font.forEach(function(We,Ze){var st=r.fontAtlas[Ze],Rt=st.step,kt=Math.floor(Rr.maxAtlasSize/Rt),Ae=Math.min(kt,st.chars.length),nt=Math.ceil(st.chars.length/Ae),mt=KP(Ae*Rt),_e=KP(nt*Rt);st.width=mt,st.height=_e,st.rows=nt,st.cols=Ae,st.em&&st.texture({data:mse({canvas:Rr.atlasCanvas,font:st.fontString,chars:st.chars,shape:[mt,_e],step:[Rt,Rt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(We,Ze){var st=Array.isArray(r.align)?r.align.length>1?r.align[Ze]:r.align[0]:r.align;if(typeof st=="number")return st;switch(st){case"right":case"end":return-We;case"center":case"centre":case"middle":return-We*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(We,Ze){var st=(r.font[Ze]||r.font[0]).metrics,Rt=0;return Rt+=st.bottom*.5,typeof We=="number"?Rt+=We-st.baseline:Rt+=-st[We],Rt*=-1,Rt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=A_(t.color,"uint8");else{var Je;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var je=t.color.length;Je=tu.mallocUint8(je);for(var me=(t.color.subarray||t.color.slice).bind(t.color),Fe=0;Fe<je;Fe+=4)Je.set(A_(me(Fe,Fe+4),"uint8"),Fe)}else{var qe=t.color.length;Je=tu.mallocUint8(qe*4);for(var Ue=0;Ue<qe;Ue++)Je.set(A_(t.color[Ue]||0,"uint8"),Ue*4)}this.color=Je}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var be=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(be){var ye=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(ye);for(var Ke=0;Ke<this.batch.length;Ke++)this.batch[Ke]={count:this.counts.length>1?this.counts[Ke]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ke]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ke*4,Ke*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ke]:this.opacity,baseline:this.baselineOffset[Ke]!=null?this.baselineOffset[Ke]:this.baselineOffset[0],align:this.align?this.alignOffset[Ke]!=null?this.alignOffset[Ke]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ke]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ke*2,Ke*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};Rr.prototype.destroy=function(){};Rr.prototype.kerning=!0;Rr.prototype.position={constant:new Float32Array(2)};Rr.prototype.translate=null;Rr.prototype.scale=null;Rr.prototype.font=null;Rr.prototype.text="";Rr.prototype.positionOffset=[0,0];Rr.prototype.opacity=1;Rr.prototype.color=new Uint8Array([0,0,0,255]);Rr.prototype.alignOffset=[0,0];Rr.maxAtlasSize=1024;Rr.atlasCanvas=document.createElement("canvas");Rr.atlasContext=Rr.atlasCanvas.getContext("2d",{alpha:!1});Rr.baseFontSize=64;Rr.fonts={};function Tse(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var Bde=Rr;function Rse(e,t){return e.parent===t.parent?1:2}function Ose(e){return e.reduce(Ise,0)/e.length}function Ise(e,t){return e+t.x}function Pse(e){return 1+e.reduce(kse,0)}function kse(e,t){return Math.max(e,t.y)}function Mse(e){for(var t;t=e.children;)e=t[0];return e}function Dse(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Fse(){var e=Rse,t=1,r=1,n=!1;function i(a){var o,u=0;a.eachAfter(function(h){var g=h.children;g?(h.x=Ose(g),h.y=Pse(g)):(h.x=o?u+=e(h,o):0,h.y=0,o=h)});var s=Mse(a),f=Dse(a),d=s.x-e(s,f)/2,v=f.x+e(f,s)/2;return a.eachAfter(n?function(h){h.x=(h.x-a.x)*t,h.y=(a.y-h.y)*r}:function(h){h.x=(h.x-d)/(v-d)*t,h.y=(1-(a.y?h.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function Nse(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function Lse(){return this.eachAfter(Nse)}function Bse(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function $se(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function zse(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function Use(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function jse(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Wse(e){for(var t=this,r=Gse(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function Gse(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function qse(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Hse(){var e=[];return this.each(function(t){e.push(t)}),e}function Vse(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Yse(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function LC(e,t){var r=new hc(e),n=+e.value&&(r.value=e.value),i,a=[r],o,u,s,f;for(t==null&&(t=Kse);i=a.pop();)if(n&&(i.value=+i.data.value),(u=t(i.data))&&(f=u.length))for(i.children=new Array(f),s=f-1;s>=0;--s)a.push(o=i.children[s]=new hc(u[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(k6)}function Xse(){return LC(this).eachBefore(Qse)}function Kse(e){return e.children}function Qse(e){e.data=e.data.data}function k6(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function hc(e){this.data=e,this.depth=this.height=0,this.parent=null}hc.prototype=LC.prototype={constructor:hc,count:Lse,each:Bse,eachAfter:zse,eachBefore:$se,sum:Use,sort:jse,path:Wse,ancestors:qse,descendants:Hse,leaves:Vse,links:Yse,copy:Xse};var Zse=Array.prototype.slice;function Jse(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function M6(e){for(var t=0,r=(e=Jse(Zse.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&D6(a,i)?++t:(a=tfe(n=efe(n,i)),t=0);return a}function efe(e,t){var r,n;if(T_(t,e))return[t];for(r=0;r<e.length;++r)if(ym(t,e[r])&&T_(Mp(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(ym(Mp(e[r],e[n]),t)&&ym(Mp(e[r],t),e[n])&&ym(Mp(e[n],t),e[r])&&T_(F6(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function ym(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function D6(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function T_(e,t){for(var r=0;r<t.length;++r)if(!D6(e,t[r]))return!1;return!0}function tfe(e){switch(e.length){case 1:return rfe(e[0]);case 2:return Mp(e[0],e[1]);case 3:return F6(e[0],e[1],e[2])}}function rfe(e){return{x:e.x,y:e.y,r:e.r}}function Mp(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,u=t.r,s=a-r,f=o-n,d=u-i,v=Math.sqrt(s*s+f*f);return{x:(r+a+s/v*d)/2,y:(n+o+f/v*d)/2,r:(v+i+u)/2}}function F6(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,u=t.y,s=t.r,f=r.x,d=r.y,v=r.r,h=n-o,g=n-f,_=i-u,A=i-d,b=s-a,w=v-a,S=n*n+i*i-a*a,E=S-o*o-u*u+s*s,R=S-f*f-d*d+v*v,M=g*_-h*A,D=(_*R-A*E)/(M*2)-n,z=(A*b-_*w)/M,N=(g*E-h*R)/(M*2)-i,L=(h*w-g*b)/M,ee=z*z+L*L-1,ue=2*(a+D*z+N*L),pe=D*D+N*N-a*a,we=-(ee?(ue+Math.sqrt(ue*ue-4*ee*pe))/(2*ee):pe/ue);return{x:n+D+z*we,y:i+N+L*we,r:we}}function ZP(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,u,s,f=n*n+o*o;f?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(f+s-a)/(2*f),u=Math.sqrt(Math.max(0,s/f-i*i)),r.x=e.x-i*n-u*o,r.y=e.y-i*o+u*n):(i=(f+a-s)/(2*f),u=Math.sqrt(Math.max(0,a/f-i*i)),r.x=t.x+i*n-u*o,r.y=t.y+i*o+u*n)):(r.x=t.x+r.r,r.y=t.y)}function JP(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function ek(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function bm(e){this._=e,this.next=null,this.previous=null}function N6(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,u,s,f,d,v;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;ZP(r,t,n=e[2]),t=new bm(t),r=new bm(r),n=new bm(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(u=3;u<i;++u){ZP(t._,r._,n=e[u]),n=new bm(n),s=r.next,f=t.previous,d=r._.r,v=t._.r;do if(d<=v){if(JP(s._,n._)){r=s,t.next=r,r.previous=t,--u;continue e}d+=s._.r,s=s.next}else{if(JP(f._,n._)){t=f,t.next=r,r.previous=t,--u;continue e}v+=f._.r,f=f.previous}while(s!==f.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=ek(t);(n=n.next)!==r;)(o=ek(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=M6(t),u=0;u<i;++u)t=e[u],t.x-=n.x,t.y-=n.y;return n.r}function nfe(e){return N6(e),e}function ife(e){return e==null?null:sy(e)}function sy(e){if(typeof e!="function")throw new Error;return e}function Pl(){return 0}function _f(e){return function(){return e}}function afe(e){return Math.sqrt(e.value)}function ofe(){var e=null,t=1,r=1,n=Pl;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(tk(e)).eachAfter(R_(n,.5)).eachBefore(rk(1)):a.eachBefore(tk(afe)).eachAfter(R_(Pl,1)).eachAfter(R_(n,a.r/Math.min(t,r))).eachBefore(rk(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=ife(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:_f(+a),i):n},i}function tk(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function R_(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,u;if(o)for(i=0;i<a;++i)n[i].r+=o;if(u=N6(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=u+o}}}function rk(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function L6(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function cv(e,t,r,n,i){for(var a=e.children,o,u=-1,s=a.length,f=e.value&&(n-t)/e.value;++u<s;)o=a[u],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*f}function ufe(){var e=1,t=1,r=0,n=!1;function i(o){var u=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/u,o.eachBefore(a(t,u)),n&&o.eachBefore(L6),o}function a(o,u){return function(s){s.children&&cv(s,s.x0,o*(s.depth+1)/u,s.x1,o*(s.depth+2)/u);var f=s.x0,d=s.y0,v=s.x1-r,h=s.y1-r;v<f&&(f=v=(f+v)/2),h<d&&(d=h=(d+h)/2),s.x0=f,s.y0=d,s.x1=v,s.y1=h}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var nk="$",lfe={depth:-1},ik={};function sfe(e){return e.id}function ffe(e){return e.parentId}function cfe(){var e=sfe,t=ffe;function r(n){var i,a,o=n.length,u,s,f,d=new Array(o),v,h,g={};for(a=0;a<o;++a)i=n[a],f=d[a]=new hc(i),(v=e(i,a,n))!=null&&(v+="")&&(h=nk+(f.id=v),g[h]=h in g?ik:f);for(a=0;a<o;++a)if(f=d[a],v=t(n[a],a,n),v==null||!(v+="")){if(u)throw new Error("multiple roots");u=f}else{if(s=g[nk+v],!s)throw new Error("missing: "+v);if(s===ik)throw new Error("ambiguous: "+v);s.children?s.children.push(f):s.children=[f],f.parent=s}if(!u)throw new Error("no root");if(u.parent=lfe,u.eachBefore(function(_){_.depth=_.parent.depth+1,--o}).eachBefore(k6),u.parent=null,o>0)throw new Error("cycle");return u}return r.id=function(n){return arguments.length?(e=sy(n),r):e},r.parentId=function(n){return arguments.length?(t=sy(n),r):t},r}function dfe(e,t){return e.parent===t.parent?1:2}function O_(e){var t=e.children;return t?t[0]:e.t}function I_(e){var t=e.children;return t?t[t.length-1]:e.t}function pfe(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function hfe(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function vfe(e,t,r){return e.a.parent===t.parent?e.a:r}function qm(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}qm.prototype=Object.create(hc.prototype);function gfe(e){for(var t=new qm(e,0),r,n=[t],i,a,o,u;r=n.pop();)if(a=r._.children)for(r.children=new Array(u=a.length),o=u-1;o>=0;--o)n.push(i=r.children[o]=new qm(a[o],o)),i.parent=r;return(t.parent=new qm(null,0)).children=[t],t}function mfe(){var e=dfe,t=1,r=1,n=null;function i(f){var d=gfe(f);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)f.eachBefore(s);else{var v=f,h=f,g=f;f.eachBefore(function(S){S.x<v.x&&(v=S),S.x>h.x&&(h=S),S.depth>g.depth&&(g=S)});var _=v===h?1:e(v,h)/2,A=_-v.x,b=t/(h.x+_+A),w=r/(g.depth||1);f.eachBefore(function(S){S.x=(S.x+A)*b,S.y=S.depth*w})}return f}function a(f){var d=f.children,v=f.parent.children,h=f.i?v[f.i-1]:null;if(d){hfe(f);var g=(d[0].z+d[d.length-1].z)/2;h?(f.z=h.z+e(f._,h._),f.m=f.z-g):f.z=g}else h&&(f.z=h.z+e(f._,h._));f.parent.A=u(f,h,f.parent.A||v[0])}function o(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function u(f,d,v){if(d){for(var h=f,g=f,_=d,A=h.parent.children[0],b=h.m,w=g.m,S=_.m,E=A.m,R;_=I_(_),h=O_(h),_&&h;)A=O_(A),g=I_(g),g.a=f,R=_.z+S-h.z-b+e(_._,h._),R>0&&(pfe(vfe(_,f,v),f,R),b+=R,w+=R),S+=_.m,b+=h.m,E+=A.m,w+=g.m;_&&!I_(g)&&(g.t=_,g.m+=S-w),h&&!O_(A)&&(A.t=h,A.m+=b-E,v=f)}return v}function s(f){f.x*=t,f.y=f.depth*r}return i.separation=function(f){return arguments.length?(e=f,i):e},i.size=function(f){return arguments.length?(n=!1,t=+f[0],r=+f[1],i):n?null:[t,r]},i.nodeSize=function(f){return arguments.length?(n=!0,t=+f[0],r=+f[1],i):n?[t,r]:null},i}function O1(e,t,r,n,i){for(var a=e.children,o,u=-1,s=a.length,f=e.value&&(i-r)/e.value;++u<s;)o=a[u],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*f}var B6=(1+Math.sqrt(5))/2;function $6(e,t,r,n,i,a){for(var o=[],u=t.children,s,f,d=0,v=0,h=u.length,g,_,A=t.value,b,w,S,E,R,M,D;d<h;){g=i-r,_=a-n;do b=u[v++].value;while(!b&&v<h);for(w=S=b,M=Math.max(_/g,g/_)/(A*e),D=b*b*M,R=Math.max(S/D,D/w);v<h;++v){if(b+=f=u[v].value,f<w&&(w=f),f>S&&(S=f),D=b*b*M,E=Math.max(S/D,D/w),E>R){b-=f;break}R=E}o.push(s={value:b,dice:g<_,children:u.slice(d,v)}),s.dice?cv(s,r,n,i,A?n+=_*b/A:a):O1(s,r,n,A?r+=g*b/A:i,a),A-=b,d=v}return o}const z6=function e(t){function r(n,i,a,o,u){$6(t,n,i,a,o,u)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(B6);function yfe(){var e=z6,t=!1,r=1,n=1,i=[0],a=Pl,o=Pl,u=Pl,s=Pl,f=Pl;function d(h){return h.x0=h.y0=0,h.x1=r,h.y1=n,h.eachBefore(v),i=[0],t&&h.eachBefore(L6),h}function v(h){var g=i[h.depth],_=h.x0+g,A=h.y0+g,b=h.x1-g,w=h.y1-g;b<_&&(_=b=(_+b)/2),w<A&&(A=w=(A+w)/2),h.x0=_,h.y0=A,h.x1=b,h.y1=w,h.children&&(g=i[h.depth+1]=a(h)/2,_+=f(h)-g,A+=o(h)-g,b-=u(h)-g,w-=s(h)-g,b<_&&(_=b=(_+b)/2),w<A&&(A=w=(A+w)/2),e(h,_,A,b,w))}return d.round=function(h){return arguments.length?(t=!!h,d):t},d.size=function(h){return arguments.length?(r=+h[0],n=+h[1],d):[r,n]},d.tile=function(h){return arguments.length?(e=sy(h),d):e},d.padding=function(h){return arguments.length?d.paddingInner(h).paddingOuter(h):d.paddingInner()},d.paddingInner=function(h){return arguments.length?(a=typeof h=="function"?h:_f(+h),d):a},d.paddingOuter=function(h){return arguments.length?d.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):d.paddingTop()},d.paddingTop=function(h){return arguments.length?(o=typeof h=="function"?h:_f(+h),d):o},d.paddingRight=function(h){return arguments.length?(u=typeof h=="function"?h:_f(+h),d):u},d.paddingBottom=function(h){return arguments.length?(s=typeof h=="function"?h:_f(+h),d):s},d.paddingLeft=function(h){return arguments.length?(f=typeof h=="function"?h:_f(+h),d):f},d}function bfe(e,t,r,n,i){var a=e.children,o,u=a.length,s,f=new Array(u+1);for(f[0]=s=o=0;o<u;++o)f[o+1]=s+=a[o].value;d(0,u,e.value,t,r,n,i);function d(v,h,g,_,A,b,w){if(v>=h-1){var S=a[v];S.x0=_,S.y0=A,S.x1=b,S.y1=w;return}for(var E=f[v],R=g/2+E,M=v+1,D=h-1;M<D;){var z=M+D>>>1;f[z]<R?M=z+1:D=z}R-f[M-1]<f[M]-R&&v+1<M&&--M;var N=f[M]-E,L=g-N;if(b-_>w-A){var ee=(_*L+b*N)/g;d(v,M,N,_,A,ee,w),d(M,h,L,ee,A,b,w)}else{var ue=(A*L+w*N)/g;d(v,M,N,_,A,b,ue),d(M,h,L,_,ue,b,w)}}}function wfe(e,t,r,n,i){(e.depth&1?O1:cv)(e,t,r,n,i)}const xfe=function e(t){function r(n,i,a,o,u){if((s=n._squarify)&&s.ratio===t)for(var s,f,d,v,h=-1,g,_=s.length,A=n.value;++h<_;){for(f=s[h],d=f.children,v=f.value=0,g=d.length;v<g;++v)f.value+=d[v].value;f.dice?cv(f,i,a,o,a+=(u-a)*f.value/A):O1(f,i,a,i+=(o-i)*f.value/A,u),A-=f.value}else n._squarify=s=$6(t,n,i,a,o,u),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(B6),_fe=Object.freeze(Object.defineProperty({__proto__:null,cluster:Fse,hierarchy:LC,pack:ofe,packSiblings:nfe,packEnclose:M6,partition:ufe,stratify:cfe,tree:mfe,treemap:yfe,treemapBinary:bfe,treemapDice:cv,treemapSlice:O1,treemapSliceDice:wfe,treemapSquarify:z6,treemapResquarify:xfe},Symbol.toStringTag,{value:"Module"})),$de=is(_fe);function Pc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Hu(){}var rs=.7,vc=1/rs,Xf="\\s*([+-]?\\d+)\\s*",Ph="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ba="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sfe=/^#([0-9a-f]{3,8})$/,Efe=new RegExp("^rgb\\("+[Xf,Xf,Xf]+"\\)$"),Afe=new RegExp("^rgb\\("+[Ba,Ba,Ba]+"\\)$"),Cfe=new RegExp("^rgba\\("+[Xf,Xf,Xf,Ph]+"\\)$"),Tfe=new RegExp("^rgba\\("+[Ba,Ba,Ba,Ph]+"\\)$"),Rfe=new RegExp("^hsl\\("+[Ph,Ba,Ba]+"\\)$"),Ofe=new RegExp("^hsla\\("+[Ph,Ba,Ba,Ph]+"\\)$"),ak={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};Pc(Hu,kh,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ok,formatHex:ok,formatHsl:Ife,formatRgb:uk,toString:uk});function ok(){return this.rgb().formatHex()}function Ife(){return U6(this).formatHsl()}function uk(){return this.rgb().formatRgb()}function kh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Sfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?lk(t):r===3?new Fn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Efe.exec(e))?new Fn(t[1],t[2],t[3],1):(t=Afe.exec(e))?new Fn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Cfe.exec(e))?wm(t[1],t[2],t[3],t[4]):(t=Tfe.exec(e))?wm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Rfe.exec(e))?ck(t[1],t[2]/100,t[3]/100,1):(t=Ofe.exec(e))?ck(t[1],t[2]/100,t[3]/100,t[4]):ak.hasOwnProperty(e)?lk(ak[e]):e==="transparent"?new Fn(NaN,NaN,NaN,0):null}function lk(e){return new Fn(e>>16&255,e>>8&255,e&255,1)}function wm(e,t,r,n){return n<=0&&(e=t=r=NaN),new Fn(e,t,r,n)}function BC(e){return e instanceof Hu||(e=kh(e)),e?(e=e.rgb(),new Fn(e.r,e.g,e.b,e.opacity)):new Fn}function fy(e,t,r,n){return arguments.length===1?BC(e):new Fn(e,t,r,n==null?1:n)}function Fn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Pc(Fn,fy,dv(Hu,{brighter:function(e){return e=e==null?vc:Math.pow(vc,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?rs:Math.pow(rs,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sk,formatHex:sk,formatRgb:fk,toString:fk}));function sk(){return"#"+P_(this.r)+P_(this.g)+P_(this.b)}function fk(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function P_(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function ck(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ia(e,t,r,n)}function U6(e){if(e instanceof Ia)return new Ia(e.h,e.s,e.l,e.opacity);if(e instanceof Hu||(e=kh(e)),!e)return new Ia;if(e instanceof Ia)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Ia(o,u,s,e.opacity)}function PS(e,t,r,n){return arguments.length===1?U6(e):new Ia(e,t,r,n==null?1:n)}function Ia(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Pc(Ia,PS,dv(Hu,{brighter:function(e){return e=e==null?vc:Math.pow(vc,e),new Ia(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?rs:Math.pow(rs,e),new Ia(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Fn(k_(e>=240?e-240:e+120,i,n),k_(e,i,n),k_(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function k_(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var j6=Math.PI/180,W6=180/Math.PI,cy=18,G6=.96422,q6=1,H6=.82521,V6=4/29,Kf=6/29,Y6=3*Kf*Kf,Pfe=Kf*Kf*Kf;function X6(e){if(e instanceof $a)return new $a(e.l,e.a,e.b,e.opacity);if(e instanceof go)return K6(e);e instanceof Fn||(e=BC(e));var t=N_(e.r),r=N_(e.g),n=N_(e.b),i=M_((.2225045*t+.7168786*r+.0606169*n)/q6),a,o;return t===r&&r===n?a=o=i:(a=M_((.4360747*t+.3850649*r+.1430804*n)/G6),o=M_((.0139322*t+.0971045*r+.7141733*n)/H6)),new $a(116*i-16,500*(a-i),200*(i-o),e.opacity)}function kS(e,t,r,n){return arguments.length===1?X6(e):new $a(e,t,r,n==null?1:n)}function $a(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}Pc($a,kS,dv(Hu,{brighter:function(e){return new $a(this.l+cy*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new $a(this.l-cy*(e==null?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,r=isNaN(this.b)?e:e-this.b/200;return t=G6*D_(t),e=q6*D_(e),r=H6*D_(r),new Fn(F_(3.1338561*t-1.6168667*e-.4906146*r),F_(-.9787684*t+1.9161415*e+.033454*r),F_(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function M_(e){return e>Pfe?Math.pow(e,1/3):e/Y6+V6}function D_(e){return e>Kf?e*e*e:Y6*(e-V6)}function F_(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function N_(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kfe(e){if(e instanceof go)return new go(e.h,e.c,e.l,e.opacity);if(e instanceof $a||(e=X6(e)),e.a===0&&e.b===0)return new go(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*W6;return new go(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function MS(e,t,r,n){return arguments.length===1?kfe(e):new go(e,t,r,n==null?1:n)}function go(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function K6(e){if(isNaN(e.h))return new $a(e.l,0,0,e.opacity);var t=e.h*j6;return new $a(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Pc(go,MS,dv(Hu,{brighter:function(e){return new go(this.h,this.c,this.l+cy*(e==null?1:e),this.opacity)},darker:function(e){return new go(this.h,this.c,this.l-cy*(e==null?1:e),this.opacity)},rgb:function(){return K6(this).rgb()}}));var Q6=-.14861,$C=1.78277,zC=-.29227,I1=-.90649,Mh=1.97294,dk=Mh*I1,pk=Mh*$C,hk=$C*zC-I1*Q6;function Mfe(e){if(e instanceof Hl)return new Hl(e.h,e.s,e.l,e.opacity);e instanceof Fn||(e=BC(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(hk*n+dk*t-pk*r)/(hk+dk-pk),a=n-i,o=(Mh*(r-i)-zC*a)/I1,u=Math.sqrt(o*o+a*a)/(Mh*i*(1-i)),s=u?Math.atan2(o,a)*W6-120:NaN;return new Hl(s<0?s+360:s,u,i,e.opacity)}function DS(e,t,r,n){return arguments.length===1?Mfe(e):new Hl(e,t,r,n==null?1:n)}function Hl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Pc(Hl,DS,dv(Hu,{brighter:function(e){return e=e==null?vc:Math.pow(vc,e),new Hl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?rs:Math.pow(rs,e),new Hl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*j6,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new Fn(255*(t+r*(Q6*n+$C*i)),255*(t+r*(zC*n+I1*i)),255*(t+r*(Mh*n)),this.opacity)}}));function Z6(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function J6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,u=n<t-1?e[n+2]:2*a-i;return Z6((r-n/t)*t,o,i,a,u)}}function e8(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],u=e[(n+2)%t];return Z6((r-n/t)*t,i,a,o,u)}}function P1(e){return function(){return e}}function t8(e,t){return function(r){return e+r*t}}function Dfe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function k1(e,t){var r=t-e;return r?t8(e,r>180||r<-180?r-360*Math.round(r/360):r):P1(isNaN(e)?t:e)}function Ffe(e){return(e=+e)==1?_n:function(t,r){return r-t?Dfe(t,r,e):P1(isNaN(t)?r:t)}}function _n(e,t){var r=t-e;return r?t8(e,r):P1(isNaN(e)?t:e)}const FS=function e(t){var r=Ffe(t);function n(i,a){var o=r((i=fy(i)).r,(a=fy(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),f=_n(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=u(d),i.b=s(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function r8(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,u;for(o=0;o<r;++o)u=fy(t[o]),n[o]=u.r||0,i[o]=u.g||0,a[o]=u.b||0;return n=e(n),i=e(i),a=e(a),u.opacity=1,function(s){return u.r=n(s),u.g=i(s),u.b=a(s),u+""}}}var Nfe=r8(J6),Lfe=r8(e8);function UC(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function n8(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Bfe(e,t){return(n8(t)?UC:i8)(e,t)}function i8(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=jC(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function a8(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ra(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function o8(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=jC(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var NS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,L_=new RegExp(NS.source,"g");function $fe(e){return function(){return e}}function zfe(e){return function(t){return e(t)+""}}function u8(e,t){var r=NS.lastIndex=L_.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=NS.exec(e))&&(i=L_.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:Ra(n,i)})),r=L_.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?zfe(s[0].x):$fe(t):(t=s.length,function(f){for(var d=0,v;d<t;++d)u[(v=s[d]).i]=v.x(f);return u.join("")})}function jC(e,t){var r=typeof t,n;return t==null||r==="boolean"?P1(t):(r==="number"?Ra:r==="string"?(n=kh(t))?(t=n,FS):u8:t instanceof kh?FS:t instanceof Date?a8:n8(t)?UC:Array.isArray(t)?i8:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?o8:Ra)(e,t)}function Ufe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function jfe(e,t){var r=k1(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function Wfe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var vk=180/Math.PI,LS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function l8(e,t,r,n,i,a){var o,u,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(u=Math.sqrt(r*r+n*n))&&(r/=u,n/=u,s/=u),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*vk,skewX:Math.atan(s)*vk,scaleX:o,scaleY:u}}var bp,B_,gk,xm;function Gfe(e){return e==="none"?LS:(bp||(bp=document.createElement("DIV"),B_=document.documentElement,gk=document.defaultView),bp.style.transform=e,e=gk.getComputedStyle(B_.appendChild(bp),null).getPropertyValue("transform"),B_.removeChild(bp),e=e.slice(7,-1).split(","),l8(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function qfe(e){return e==null||(xm||(xm=document.createElementNS("http://www.w3.org/2000/svg","g")),xm.setAttribute("transform",e),!(e=xm.transform.baseVal.consolidate()))?LS:(e=e.matrix,l8(e.a,e.b,e.c,e.d,e.e,e.f))}function s8(e,t,r,n){function i(f){return f.length?f.pop()+" ":""}function a(f,d,v,h,g,_){if(f!==v||d!==h){var A=g.push("translate(",null,t,null,r);_.push({i:A-4,x:Ra(f,v)},{i:A-2,x:Ra(d,h)})}else(v||h)&&g.push("translate("+v+t+h+r)}function o(f,d,v,h){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),h.push({i:v.push(i(v)+"rotate(",null,n)-2,x:Ra(f,d)})):d&&v.push(i(v)+"rotate("+d+n)}function u(f,d,v,h){f!==d?h.push({i:v.push(i(v)+"skewX(",null,n)-2,x:Ra(f,d)}):d&&v.push(i(v)+"skewX("+d+n)}function s(f,d,v,h,g,_){if(f!==v||d!==h){var A=g.push(i(g)+"scale(",null,",",null,")");_.push({i:A-4,x:Ra(f,v)},{i:A-2,x:Ra(d,h)})}else(v!==1||h!==1)&&g.push(i(g)+"scale("+v+","+h+")")}return function(f,d){var v=[],h=[];return f=e(f),d=e(d),a(f.translateX,f.translateY,d.translateX,d.translateY,v,h),o(f.rotate,d.rotate,v,h),u(f.skewX,d.skewX,v,h),s(f.scaleX,f.scaleY,d.scaleX,d.scaleY,v,h),f=d=null,function(g){for(var _=-1,A=h.length,b;++_<A;)v[(b=h[_]).i]=b.x(g);return v.join("")}}}var Hfe=s8(Gfe,"px, ","px)","deg)"),Vfe=s8(qfe,", ",")",")"),wp=Math.SQRT2,$_=2,mk=4,Yfe=1e-12;function yk(e){return((e=Math.exp(e))+1/e)/2}function Xfe(e){return((e=Math.exp(e))-1/e)/2}function Kfe(e){return((e=Math.exp(2*e))-1)/(e+1)}function Qfe(e,t){var r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],u=t[2],s=a-r,f=o-n,d=s*s+f*f,v,h;if(d<Yfe)h=Math.log(u/i)/wp,v=function(S){return[r+S*s,n+S*f,i*Math.exp(wp*S*h)]};else{var g=Math.sqrt(d),_=(u*u-i*i+mk*d)/(2*i*$_*g),A=(u*u-i*i-mk*d)/(2*u*$_*g),b=Math.log(Math.sqrt(_*_+1)-_),w=Math.log(Math.sqrt(A*A+1)-A);h=(w-b)/wp,v=function(S){var E=S*h,R=yk(b),M=i/($_*g)*(R*Kfe(wp*E+b)-Xfe(b));return[r+M*s,n+M*f,i*R/yk(wp*E+b)]}}return v.duration=h*1e3,v}function f8(e){return function(t,r){var n=e((t=PS(t)).h,(r=PS(r)).h),i=_n(t.s,r.s),a=_n(t.l,r.l),o=_n(t.opacity,r.opacity);return function(u){return t.h=n(u),t.s=i(u),t.l=a(u),t.opacity=o(u),t+""}}}const Zfe=f8(k1);var Jfe=f8(_n);function ece(e,t){var r=_n((e=kS(e)).l,(t=kS(t)).l),n=_n(e.a,t.a),i=_n(e.b,t.b),a=_n(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function c8(e){return function(t,r){var n=e((t=MS(t)).h,(r=MS(r)).h),i=_n(t.c,r.c),a=_n(t.l,r.l),o=_n(t.opacity,r.opacity);return function(u){return t.h=n(u),t.c=i(u),t.l=a(u),t.opacity=o(u),t+""}}}const tce=c8(k1);var rce=c8(_n);function d8(e){return function t(r){r=+r;function n(i,a){var o=e((i=DS(i)).h,(a=DS(a)).h),u=_n(i.s,a.s),s=_n(i.l,a.l),f=_n(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=u(d),i.l=s(Math.pow(d,r)),i.opacity=f(d),i+""}}return n.gamma=t,n}(1)}const nce=d8(k1);var ice=d8(_n);function ace(e,t){for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function oce(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const uce=Object.freeze(Object.defineProperty({__proto__:null,interpolate:jC,interpolateArray:Bfe,interpolateBasis:J6,interpolateBasisClosed:e8,interpolateDate:a8,interpolateDiscrete:Ufe,interpolateHue:jfe,interpolateNumber:Ra,interpolateNumberArray:UC,interpolateObject:o8,interpolateRound:Wfe,interpolateString:u8,interpolateTransformCss:Hfe,interpolateTransformSvg:Vfe,interpolateZoom:Qfe,interpolateRgb:FS,interpolateRgbBasis:Nfe,interpolateRgbBasisClosed:Lfe,interpolateHsl:Zfe,interpolateHslLong:Jfe,interpolateLab:ece,interpolateHcl:tce,interpolateHclLong:rce,interpolateCubehelix:nce,interpolateCubehelixLong:ice,piecewise:ace,quantize:oce},Symbol.toStringTag,{value:"Module"})),zde=is(uce);var lce="Expected a function",p8="__lodash_hash_undefined__",h8=1/0,sce=9007199254740991,fce="[object Function]",cce="[object GeneratorFunction]",dce="[object Symbol]",pce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hce=/^\w*$/,vce=/^\./,gce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mce=/[\\^$.*+?()[\]{}|]/g,yce=/\\(\\)?/g,bce=/^\[object .+?Constructor\]$/,wce=/^(?:0|[1-9]\d*)$/,xce=typeof _r=="object"&&_r&&_r.Object===Object&&_r,_ce=typeof self=="object"&&self&&self.Object===Object&&self,WC=xce||_ce||Function("return this")();function Sce(e,t){return e==null?void 0:e[t]}function Ece(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Ace=Array.prototype,Cce=Function.prototype,v8=Object.prototype,z_=WC["__core-js_shared__"],bk=function(){var e=/[^.]+$/.exec(z_&&z_.keys&&z_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),g8=Cce.toString,M1=v8.hasOwnProperty,m8=v8.toString,Tce=RegExp("^"+g8.call(M1).replace(mce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wk=WC.Symbol,Rce=Ace.splice,Oce=y8(WC,"Map"),Dh=y8(Object,"create"),xk=wk?wk.prototype:void 0,_k=xk?xk.toString:void 0;function ns(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ice(){this.__data__=Dh?Dh(null):{}}function Pce(e){return this.has(e)&&delete this.__data__[e]}function kce(e){var t=this.__data__;if(Dh){var r=t[e];return r===p8?void 0:r}return M1.call(t,e)?t[e]:void 0}function Mce(e){var t=this.__data__;return Dh?t[e]!==void 0:M1.call(t,e)}function Dce(e,t){var r=this.__data__;return r[e]=Dh&&t===void 0?p8:t,this}ns.prototype.clear=Ice;ns.prototype.delete=Pce;ns.prototype.get=kce;ns.prototype.has=Mce;ns.prototype.set=Dce;function kc(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Fce(){this.__data__=[]}function Nce(e){var t=this.__data__,r=D1(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Rce.call(t,r,1),!0}function Lce(e){var t=this.__data__,r=D1(t,e);return r<0?void 0:t[r][1]}function Bce(e){return D1(this.__data__,e)>-1}function $ce(e,t){var r=this.__data__,n=D1(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}kc.prototype.clear=Fce;kc.prototype.delete=Nce;kc.prototype.get=Lce;kc.prototype.has=Bce;kc.prototype.set=$ce;function bs(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function zce(){this.__data__={hash:new ns,map:new(Oce||kc),string:new ns}}function Uce(e){return F1(this,e).delete(e)}function jce(e){return F1(this,e).get(e)}function Wce(e){return F1(this,e).has(e)}function Gce(e,t){return F1(this,e).set(e,t),this}bs.prototype.clear=zce;bs.prototype.delete=Uce;bs.prototype.get=jce;bs.prototype.has=Wce;bs.prototype.set=Gce;function qce(e,t,r){var n=e[t];(!(M1.call(e,t)&&b8(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function D1(e,t){for(var r=e.length;r--;)if(b8(e[r][0],t))return r;return-1}function Hce(e){if(!dy(e)||Jce(e))return!1;var t=nde(e)||Ece(e)?Tce:bce;return t.test(rde(e))}function Vce(e,t,r,n){if(!dy(e))return e;t=Qce(t,e)?[t]:Xce(t);for(var i=-1,a=t.length,o=a-1,u=e;u!=null&&++i<a;){var s=tde(t[i]),f=r;if(i!=o){var d=u[s];f=n?n(d,s,u):void 0,f===void 0&&(f=dy(d)?d:Kce(t[i+1])?[]:{})}qce(u,s,f),u=u[s]}return e}function Yce(e){if(typeof e=="string")return e;if(qC(e))return _k?_k.call(e):"";var t=e+"";return t=="0"&&1/e==-h8?"-0":t}function Xce(e){return w8(e)?e:ede(e)}function F1(e,t){var r=e.__data__;return Zce(t)?r[typeof t=="string"?"string":"hash"]:r.map}function y8(e,t){var r=Sce(e,t);return Hce(r)?r:void 0}function Kce(e,t){return t=t==null?sce:t,!!t&&(typeof e=="number"||wce.test(e))&&e>-1&&e%1==0&&e<t}function Qce(e,t){if(w8(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qC(e)?!0:hce.test(e)||!pce.test(e)||t!=null&&e in Object(t)}function Zce(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Jce(e){return!!bk&&bk in e}var ede=GC(function(e){e=ade(e);var t=[];return vce.test(e)&&t.push(""),e.replace(gce,function(r,n,i,a){t.push(i?a.replace(yce,"$1"):n||r)}),t});function tde(e){if(typeof e=="string"||qC(e))return e;var t=e+"";return t=="0"&&1/e==-h8?"-0":t}function rde(e){if(e!=null){try{return g8.call(e)}catch{}try{return e+""}catch{}}return""}function GC(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(lce);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(GC.Cache||bs),r}GC.Cache=bs;function b8(e,t){return e===t||e!==e&&t!==t}var w8=Array.isArray;function nde(e){var t=dy(e)?m8.call(e):"";return t==fce||t==cce}function dy(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ide(e){return!!e&&typeof e=="object"}function qC(e){return typeof e=="symbol"||ide(e)&&m8.call(e)==dce}function ade(e){return e==null?"":Yce(e)}function ode(e,t,r){return e==null?e:Vce(e,t,r)}var Ude=ode;export{Sde as $,yr as A,Jn as B,dde as C,sde as D,WU as E,Cp as F,lde as G,fde as H,Uy as I,cde as J,hde as K,ZX as L,mde as M,gde as N,$X as O,pde as P,yde as Q,Nn as R,XE as S,vde as T,bde as U,wde as V,tn as W,xde as X,_de as Y,jL as Z,Ede as _,Cde as a,Ude as a0,Pde as b,kde as c,ore as d,EB as e,Tde as f,Rde as g,Ode as h,RC as i,Gie as j,Mde as k,x1 as l,Ide as m,DB as n,f6 as o,MB as p,Fde as q,Ade as r,Dde as s,eie as t,Nde as u,Lde as v,Bde as w,$de as x,zde as y,Ut as z};
|
|
1241
|
-
//# sourceMappingURL=vendor.
|
|
1240
|
+
}`}),n={};return{regl:t,draw:r,atlas:n}};Rr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=pse(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(We){return parseFloat(We)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=yse(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Ase(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=Rr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(We,Ze){if(typeof We=="string")try{We=vf.parse(We)}catch{We=vf.parse(Rr.baseFontSize+"px "+We)}else We=vf.parse(vf.stringify(We));var st=vf.stringify({size:Rr.baseFontSize,family:We.family,stretch:Gm?We.stretch:void 0,variant:We.variant,weight:We.weight,style:We.style}),Rt=wse(We.size),kt=Math.round(Rt[0]*xse(Rt[1]));if(kt!==r.fontSize[Ze]&&(i=!0,r.fontSize[Ze]=kt),(!r.font[Ze]||st!=r.font[Ze].baseString)&&(n=!0,r.font[Ze]=Rr.fonts[st],!r.font[Ze])){var Ae=We.family.join(", "),nt=[We.style];We.style!=We.variant&&nt.push(We.variant),We.variant!=We.weight&&nt.push(We.weight),Gm&&We.weight!=We.stretch&&nt.push(We.stretch),r.font[Ze]={baseString:st,family:Ae,weight:We.weight,stretch:We.stretch,style:We.style,variant:We.variant,width:{},kerning:{},metrics:Ese(Ae,{origin:"top",fontSize:Rr.baseFontSize,fontStyle:nt.join(" ")})},Rr.fonts[st]=r.font[Ze]}}),(n||i)&&this.font.forEach(function(We,Ze){var st=vf.stringify({size:r.fontSize[Ze],family:We.family,stretch:Gm?We.stretch:void 0,variant:We.variant,weight:We.weight,style:We.style});if(r.fontAtlas[Ze]=r.shader.atlas[st],!r.fontAtlas[Ze]){var Rt=We.metrics;r.shader.atlas[st]=r.fontAtlas[Ze]={fontString:st,step:Math.ceil(r.fontSize[Ze]*Rt.bottom*.5)*2,em:r.fontSize[Ze],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var u;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];u=[],this.font.forEach(function(We,Ze){Rr.atlasContext.font=We.baseString;for(var st=r.fontAtlas[Ze],Rt=0;Rt<r.text.length;Rt++){var kt=r.text.charAt(Rt);if(st.ids[kt]==null&&(st.ids[kt]=st.chars.length,st.chars.push(kt),u.push(kt)),We.width[kt]==null&&(We.width[kt]=Rr.atlasContext.measureText(kt).width/Rr.baseFontSize,r.kerning)){var Ae=[];for(var nt in We.width)Ae.push(nt+kt,kt+nt);Sse(We.kerning,_se(We.family,{pairs:Ae}))}}})}if(t.position)if(t.position.length>2){for(var f=!t.position[0].length,d=tu.mallocFloat(this.count*2),v=0,h=0;v<this.counts.length;v++){var g=this.counts[v];if(f)for(var _=0;_<g;_++)d[h++]=t.position[v*2],d[h++]=t.position[v*2+1];else for(var A=0;A<g;A++)d[h++]=t.position[v][0],d[h++]=t.position[v][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),tu.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=tu.mallocUint8(this.count),w=tu.mallocFloat(this.count*2);this.textWidth=[];for(var S=0,E=0;S<this.counts.length;S++){for(var R=this.counts[S],M=this.font[S]||this.font[0],D=this.fontAtlas[S]||this.fontAtlas[0],z=0;z<R;z++){var N=this.text.charAt(E),L=this.text.charAt(E-1);if(b[E]=D.ids[N],w[E*2]=M.width[N],z){var ee=w[E*2-2],ue=w[E*2],pe=w[E*2-1],we=pe+ee*.5+ue*.5;if(this.kerning){var Ee=M.kerning[L+N];Ee&&(we+=Ee*.001)}w[E*2+1]=we}else w[E*2+1]=w[E*2]*.5;E++}this.textWidth.push(w.length?w[E*2-2]*.5+w[E*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:b,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),tu.freeUint8(b),tu.freeFloat(w),u.length&&this.font.forEach(function(We,Ze){var st=r.fontAtlas[Ze],Rt=st.step,kt=Math.floor(Rr.maxAtlasSize/Rt),Ae=Math.min(kt,st.chars.length),nt=Math.ceil(st.chars.length/Ae),mt=KP(Ae*Rt),_e=KP(nt*Rt);st.width=mt,st.height=_e,st.rows=nt,st.cols=Ae,st.em&&st.texture({data:mse({canvas:Rr.atlasCanvas,font:st.fontString,chars:st.chars,shape:[mt,_e],step:[Rt,Rt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(We,Ze){var st=Array.isArray(r.align)?r.align.length>1?r.align[Ze]:r.align[0]:r.align;if(typeof st=="number")return st;switch(st){case"right":case"end":return-We;case"center":case"centre":case"middle":return-We*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(We,Ze){var st=(r.font[Ze]||r.font[0]).metrics,Rt=0;return Rt+=st.bottom*.5,typeof We=="number"?Rt+=We-st.baseline:Rt+=-st[We],Rt*=-1,Rt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=A_(t.color,"uint8");else{var Je;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var je=t.color.length;Je=tu.mallocUint8(je);for(var me=(t.color.subarray||t.color.slice).bind(t.color),Fe=0;Fe<je;Fe+=4)Je.set(A_(me(Fe,Fe+4),"uint8"),Fe)}else{var qe=t.color.length;Je=tu.mallocUint8(qe*4);for(var Ue=0;Ue<qe;Ue++)Je.set(A_(t.color[Ue]||0,"uint8"),Ue*4)}this.color=Je}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var be=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(be){var ye=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(ye);for(var Ke=0;Ke<this.batch.length;Ke++)this.batch[Ke]={count:this.counts.length>1?this.counts[Ke]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ke]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ke*4,Ke*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ke]:this.opacity,baseline:this.baselineOffset[Ke]!=null?this.baselineOffset[Ke]:this.baselineOffset[0],align:this.align?this.alignOffset[Ke]!=null?this.alignOffset[Ke]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ke]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ke*2,Ke*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};Rr.prototype.destroy=function(){};Rr.prototype.kerning=!0;Rr.prototype.position={constant:new Float32Array(2)};Rr.prototype.translate=null;Rr.prototype.scale=null;Rr.prototype.font=null;Rr.prototype.text="";Rr.prototype.positionOffset=[0,0];Rr.prototype.opacity=1;Rr.prototype.color=new Uint8Array([0,0,0,255]);Rr.prototype.alignOffset=[0,0];Rr.maxAtlasSize=1024;Rr.atlasCanvas=document.createElement("canvas");Rr.atlasContext=Rr.atlasCanvas.getContext("2d",{alpha:!1});Rr.baseFontSize=64;Rr.fonts={};function Tse(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var $de=Rr;function Rse(e,t){return e.parent===t.parent?1:2}function Ose(e){return e.reduce(Ise,0)/e.length}function Ise(e,t){return e+t.x}function Pse(e){return 1+e.reduce(kse,0)}function kse(e,t){return Math.max(e,t.y)}function Mse(e){for(var t;t=e.children;)e=t[0];return e}function Dse(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Fse(){var e=Rse,t=1,r=1,n=!1;function i(a){var o,u=0;a.eachAfter(function(h){var g=h.children;g?(h.x=Ose(g),h.y=Pse(g)):(h.x=o?u+=e(h,o):0,h.y=0,o=h)});var s=Mse(a),f=Dse(a),d=s.x-e(s,f)/2,v=f.x+e(f,s)/2;return a.eachAfter(n?function(h){h.x=(h.x-a.x)*t,h.y=(a.y-h.y)*r}:function(h){h.x=(h.x-d)/(v-d)*t,h.y=(1-(a.y?h.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function Nse(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function Lse(){return this.eachAfter(Nse)}function Bse(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function $se(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function zse(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function Use(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function jse(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Wse(e){for(var t=this,r=Gse(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function Gse(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function qse(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Hse(){var e=[];return this.each(function(t){e.push(t)}),e}function Vse(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Yse(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function LC(e,t){var r=new hc(e),n=+e.value&&(r.value=e.value),i,a=[r],o,u,s,f;for(t==null&&(t=Kse);i=a.pop();)if(n&&(i.value=+i.data.value),(u=t(i.data))&&(f=u.length))for(i.children=new Array(f),s=f-1;s>=0;--s)a.push(o=i.children[s]=new hc(u[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(k6)}function Xse(){return LC(this).eachBefore(Qse)}function Kse(e){return e.children}function Qse(e){e.data=e.data.data}function k6(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function hc(e){this.data=e,this.depth=this.height=0,this.parent=null}hc.prototype=LC.prototype={constructor:hc,count:Lse,each:Bse,eachAfter:zse,eachBefore:$se,sum:Use,sort:jse,path:Wse,ancestors:qse,descendants:Hse,leaves:Vse,links:Yse,copy:Xse};var Zse=Array.prototype.slice;function Jse(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function M6(e){for(var t=0,r=(e=Jse(Zse.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&D6(a,i)?++t:(a=tfe(n=efe(n,i)),t=0);return a}function efe(e,t){var r,n;if(T_(t,e))return[t];for(r=0;r<e.length;++r)if(ym(t,e[r])&&T_(Mp(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(ym(Mp(e[r],e[n]),t)&&ym(Mp(e[r],t),e[n])&&ym(Mp(e[n],t),e[r])&&T_(F6(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function ym(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function D6(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function T_(e,t){for(var r=0;r<t.length;++r)if(!D6(e,t[r]))return!1;return!0}function tfe(e){switch(e.length){case 1:return rfe(e[0]);case 2:return Mp(e[0],e[1]);case 3:return F6(e[0],e[1],e[2])}}function rfe(e){return{x:e.x,y:e.y,r:e.r}}function Mp(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,u=t.r,s=a-r,f=o-n,d=u-i,v=Math.sqrt(s*s+f*f);return{x:(r+a+s/v*d)/2,y:(n+o+f/v*d)/2,r:(v+i+u)/2}}function F6(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,u=t.y,s=t.r,f=r.x,d=r.y,v=r.r,h=n-o,g=n-f,_=i-u,A=i-d,b=s-a,w=v-a,S=n*n+i*i-a*a,E=S-o*o-u*u+s*s,R=S-f*f-d*d+v*v,M=g*_-h*A,D=(_*R-A*E)/(M*2)-n,z=(A*b-_*w)/M,N=(g*E-h*R)/(M*2)-i,L=(h*w-g*b)/M,ee=z*z+L*L-1,ue=2*(a+D*z+N*L),pe=D*D+N*N-a*a,we=-(ee?(ue+Math.sqrt(ue*ue-4*ee*pe))/(2*ee):pe/ue);return{x:n+D+z*we,y:i+N+L*we,r:we}}function ZP(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,u,s,f=n*n+o*o;f?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(f+s-a)/(2*f),u=Math.sqrt(Math.max(0,s/f-i*i)),r.x=e.x-i*n-u*o,r.y=e.y-i*o+u*n):(i=(f+a-s)/(2*f),u=Math.sqrt(Math.max(0,a/f-i*i)),r.x=t.x+i*n-u*o,r.y=t.y+i*o+u*n)):(r.x=t.x+r.r,r.y=t.y)}function JP(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function ek(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function bm(e){this._=e,this.next=null,this.previous=null}function N6(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,u,s,f,d,v;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;ZP(r,t,n=e[2]),t=new bm(t),r=new bm(r),n=new bm(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(u=3;u<i;++u){ZP(t._,r._,n=e[u]),n=new bm(n),s=r.next,f=t.previous,d=r._.r,v=t._.r;do if(d<=v){if(JP(s._,n._)){r=s,t.next=r,r.previous=t,--u;continue e}d+=s._.r,s=s.next}else{if(JP(f._,n._)){t=f,t.next=r,r.previous=t,--u;continue e}v+=f._.r,f=f.previous}while(s!==f.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=ek(t);(n=n.next)!==r;)(o=ek(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=M6(t),u=0;u<i;++u)t=e[u],t.x-=n.x,t.y-=n.y;return n.r}function nfe(e){return N6(e),e}function ife(e){return e==null?null:sy(e)}function sy(e){if(typeof e!="function")throw new Error;return e}function Pl(){return 0}function _f(e){return function(){return e}}function afe(e){return Math.sqrt(e.value)}function ofe(){var e=null,t=1,r=1,n=Pl;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(tk(e)).eachAfter(R_(n,.5)).eachBefore(rk(1)):a.eachBefore(tk(afe)).eachAfter(R_(Pl,1)).eachAfter(R_(n,a.r/Math.min(t,r))).eachBefore(rk(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=ife(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:_f(+a),i):n},i}function tk(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function R_(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,u;if(o)for(i=0;i<a;++i)n[i].r+=o;if(u=N6(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=u+o}}}function rk(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function L6(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function cv(e,t,r,n,i){for(var a=e.children,o,u=-1,s=a.length,f=e.value&&(n-t)/e.value;++u<s;)o=a[u],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*f}function ufe(){var e=1,t=1,r=0,n=!1;function i(o){var u=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/u,o.eachBefore(a(t,u)),n&&o.eachBefore(L6),o}function a(o,u){return function(s){s.children&&cv(s,s.x0,o*(s.depth+1)/u,s.x1,o*(s.depth+2)/u);var f=s.x0,d=s.y0,v=s.x1-r,h=s.y1-r;v<f&&(f=v=(f+v)/2),h<d&&(d=h=(d+h)/2),s.x0=f,s.y0=d,s.x1=v,s.y1=h}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var nk="$",lfe={depth:-1},ik={};function sfe(e){return e.id}function ffe(e){return e.parentId}function cfe(){var e=sfe,t=ffe;function r(n){var i,a,o=n.length,u,s,f,d=new Array(o),v,h,g={};for(a=0;a<o;++a)i=n[a],f=d[a]=new hc(i),(v=e(i,a,n))!=null&&(v+="")&&(h=nk+(f.id=v),g[h]=h in g?ik:f);for(a=0;a<o;++a)if(f=d[a],v=t(n[a],a,n),v==null||!(v+="")){if(u)throw new Error("multiple roots");u=f}else{if(s=g[nk+v],!s)throw new Error("missing: "+v);if(s===ik)throw new Error("ambiguous: "+v);s.children?s.children.push(f):s.children=[f],f.parent=s}if(!u)throw new Error("no root");if(u.parent=lfe,u.eachBefore(function(_){_.depth=_.parent.depth+1,--o}).eachBefore(k6),u.parent=null,o>0)throw new Error("cycle");return u}return r.id=function(n){return arguments.length?(e=sy(n),r):e},r.parentId=function(n){return arguments.length?(t=sy(n),r):t},r}function dfe(e,t){return e.parent===t.parent?1:2}function O_(e){var t=e.children;return t?t[0]:e.t}function I_(e){var t=e.children;return t?t[t.length-1]:e.t}function pfe(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function hfe(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function vfe(e,t,r){return e.a.parent===t.parent?e.a:r}function qm(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}qm.prototype=Object.create(hc.prototype);function gfe(e){for(var t=new qm(e,0),r,n=[t],i,a,o,u;r=n.pop();)if(a=r._.children)for(r.children=new Array(u=a.length),o=u-1;o>=0;--o)n.push(i=r.children[o]=new qm(a[o],o)),i.parent=r;return(t.parent=new qm(null,0)).children=[t],t}function mfe(){var e=dfe,t=1,r=1,n=null;function i(f){var d=gfe(f);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)f.eachBefore(s);else{var v=f,h=f,g=f;f.eachBefore(function(S){S.x<v.x&&(v=S),S.x>h.x&&(h=S),S.depth>g.depth&&(g=S)});var _=v===h?1:e(v,h)/2,A=_-v.x,b=t/(h.x+_+A),w=r/(g.depth||1);f.eachBefore(function(S){S.x=(S.x+A)*b,S.y=S.depth*w})}return f}function a(f){var d=f.children,v=f.parent.children,h=f.i?v[f.i-1]:null;if(d){hfe(f);var g=(d[0].z+d[d.length-1].z)/2;h?(f.z=h.z+e(f._,h._),f.m=f.z-g):f.z=g}else h&&(f.z=h.z+e(f._,h._));f.parent.A=u(f,h,f.parent.A||v[0])}function o(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function u(f,d,v){if(d){for(var h=f,g=f,_=d,A=h.parent.children[0],b=h.m,w=g.m,S=_.m,E=A.m,R;_=I_(_),h=O_(h),_&&h;)A=O_(A),g=I_(g),g.a=f,R=_.z+S-h.z-b+e(_._,h._),R>0&&(pfe(vfe(_,f,v),f,R),b+=R,w+=R),S+=_.m,b+=h.m,E+=A.m,w+=g.m;_&&!I_(g)&&(g.t=_,g.m+=S-w),h&&!O_(A)&&(A.t=h,A.m+=b-E,v=f)}return v}function s(f){f.x*=t,f.y=f.depth*r}return i.separation=function(f){return arguments.length?(e=f,i):e},i.size=function(f){return arguments.length?(n=!1,t=+f[0],r=+f[1],i):n?null:[t,r]},i.nodeSize=function(f){return arguments.length?(n=!0,t=+f[0],r=+f[1],i):n?[t,r]:null},i}function O1(e,t,r,n,i){for(var a=e.children,o,u=-1,s=a.length,f=e.value&&(i-r)/e.value;++u<s;)o=a[u],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*f}var B6=(1+Math.sqrt(5))/2;function $6(e,t,r,n,i,a){for(var o=[],u=t.children,s,f,d=0,v=0,h=u.length,g,_,A=t.value,b,w,S,E,R,M,D;d<h;){g=i-r,_=a-n;do b=u[v++].value;while(!b&&v<h);for(w=S=b,M=Math.max(_/g,g/_)/(A*e),D=b*b*M,R=Math.max(S/D,D/w);v<h;++v){if(b+=f=u[v].value,f<w&&(w=f),f>S&&(S=f),D=b*b*M,E=Math.max(S/D,D/w),E>R){b-=f;break}R=E}o.push(s={value:b,dice:g<_,children:u.slice(d,v)}),s.dice?cv(s,r,n,i,A?n+=_*b/A:a):O1(s,r,n,A?r+=g*b/A:i,a),A-=b,d=v}return o}const z6=function e(t){function r(n,i,a,o,u){$6(t,n,i,a,o,u)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(B6);function yfe(){var e=z6,t=!1,r=1,n=1,i=[0],a=Pl,o=Pl,u=Pl,s=Pl,f=Pl;function d(h){return h.x0=h.y0=0,h.x1=r,h.y1=n,h.eachBefore(v),i=[0],t&&h.eachBefore(L6),h}function v(h){var g=i[h.depth],_=h.x0+g,A=h.y0+g,b=h.x1-g,w=h.y1-g;b<_&&(_=b=(_+b)/2),w<A&&(A=w=(A+w)/2),h.x0=_,h.y0=A,h.x1=b,h.y1=w,h.children&&(g=i[h.depth+1]=a(h)/2,_+=f(h)-g,A+=o(h)-g,b-=u(h)-g,w-=s(h)-g,b<_&&(_=b=(_+b)/2),w<A&&(A=w=(A+w)/2),e(h,_,A,b,w))}return d.round=function(h){return arguments.length?(t=!!h,d):t},d.size=function(h){return arguments.length?(r=+h[0],n=+h[1],d):[r,n]},d.tile=function(h){return arguments.length?(e=sy(h),d):e},d.padding=function(h){return arguments.length?d.paddingInner(h).paddingOuter(h):d.paddingInner()},d.paddingInner=function(h){return arguments.length?(a=typeof h=="function"?h:_f(+h),d):a},d.paddingOuter=function(h){return arguments.length?d.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):d.paddingTop()},d.paddingTop=function(h){return arguments.length?(o=typeof h=="function"?h:_f(+h),d):o},d.paddingRight=function(h){return arguments.length?(u=typeof h=="function"?h:_f(+h),d):u},d.paddingBottom=function(h){return arguments.length?(s=typeof h=="function"?h:_f(+h),d):s},d.paddingLeft=function(h){return arguments.length?(f=typeof h=="function"?h:_f(+h),d):f},d}function bfe(e,t,r,n,i){var a=e.children,o,u=a.length,s,f=new Array(u+1);for(f[0]=s=o=0;o<u;++o)f[o+1]=s+=a[o].value;d(0,u,e.value,t,r,n,i);function d(v,h,g,_,A,b,w){if(v>=h-1){var S=a[v];S.x0=_,S.y0=A,S.x1=b,S.y1=w;return}for(var E=f[v],R=g/2+E,M=v+1,D=h-1;M<D;){var z=M+D>>>1;f[z]<R?M=z+1:D=z}R-f[M-1]<f[M]-R&&v+1<M&&--M;var N=f[M]-E,L=g-N;if(b-_>w-A){var ee=(_*L+b*N)/g;d(v,M,N,_,A,ee,w),d(M,h,L,ee,A,b,w)}else{var ue=(A*L+w*N)/g;d(v,M,N,_,A,b,ue),d(M,h,L,_,ue,b,w)}}}function wfe(e,t,r,n,i){(e.depth&1?O1:cv)(e,t,r,n,i)}const xfe=function e(t){function r(n,i,a,o,u){if((s=n._squarify)&&s.ratio===t)for(var s,f,d,v,h=-1,g,_=s.length,A=n.value;++h<_;){for(f=s[h],d=f.children,v=f.value=0,g=d.length;v<g;++v)f.value+=d[v].value;f.dice?cv(f,i,a,o,a+=(u-a)*f.value/A):O1(f,i,a,i+=(o-i)*f.value/A,u),A-=f.value}else n._squarify=s=$6(t,n,i,a,o,u),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(B6),_fe=Object.freeze(Object.defineProperty({__proto__:null,cluster:Fse,hierarchy:LC,pack:ofe,packSiblings:nfe,packEnclose:M6,partition:ufe,stratify:cfe,tree:mfe,treemap:yfe,treemapBinary:bfe,treemapDice:cv,treemapSlice:O1,treemapSliceDice:wfe,treemapSquarify:z6,treemapResquarify:xfe},Symbol.toStringTag,{value:"Module"})),zde=is(_fe);function Pc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Hu(){}var rs=.7,vc=1/rs,Xf="\\s*([+-]?\\d+)\\s*",Ph="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ba="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sfe=/^#([0-9a-f]{3,8})$/,Efe=new RegExp("^rgb\\("+[Xf,Xf,Xf]+"\\)$"),Afe=new RegExp("^rgb\\("+[Ba,Ba,Ba]+"\\)$"),Cfe=new RegExp("^rgba\\("+[Xf,Xf,Xf,Ph]+"\\)$"),Tfe=new RegExp("^rgba\\("+[Ba,Ba,Ba,Ph]+"\\)$"),Rfe=new RegExp("^hsl\\("+[Ph,Ba,Ba]+"\\)$"),Ofe=new RegExp("^hsla\\("+[Ph,Ba,Ba,Ph]+"\\)$"),ak={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};Pc(Hu,kh,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ok,formatHex:ok,formatHsl:Ife,formatRgb:uk,toString:uk});function ok(){return this.rgb().formatHex()}function Ife(){return U6(this).formatHsl()}function uk(){return this.rgb().formatRgb()}function kh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Sfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?lk(t):r===3?new Fn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Efe.exec(e))?new Fn(t[1],t[2],t[3],1):(t=Afe.exec(e))?new Fn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Cfe.exec(e))?wm(t[1],t[2],t[3],t[4]):(t=Tfe.exec(e))?wm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Rfe.exec(e))?ck(t[1],t[2]/100,t[3]/100,1):(t=Ofe.exec(e))?ck(t[1],t[2]/100,t[3]/100,t[4]):ak.hasOwnProperty(e)?lk(ak[e]):e==="transparent"?new Fn(NaN,NaN,NaN,0):null}function lk(e){return new Fn(e>>16&255,e>>8&255,e&255,1)}function wm(e,t,r,n){return n<=0&&(e=t=r=NaN),new Fn(e,t,r,n)}function BC(e){return e instanceof Hu||(e=kh(e)),e?(e=e.rgb(),new Fn(e.r,e.g,e.b,e.opacity)):new Fn}function fy(e,t,r,n){return arguments.length===1?BC(e):new Fn(e,t,r,n==null?1:n)}function Fn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Pc(Fn,fy,dv(Hu,{brighter:function(e){return e=e==null?vc:Math.pow(vc,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?rs:Math.pow(rs,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sk,formatHex:sk,formatRgb:fk,toString:fk}));function sk(){return"#"+P_(this.r)+P_(this.g)+P_(this.b)}function fk(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function P_(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function ck(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ia(e,t,r,n)}function U6(e){if(e instanceof Ia)return new Ia(e.h,e.s,e.l,e.opacity);if(e instanceof Hu||(e=kh(e)),!e)return new Ia;if(e instanceof Ia)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Ia(o,u,s,e.opacity)}function PS(e,t,r,n){return arguments.length===1?U6(e):new Ia(e,t,r,n==null?1:n)}function Ia(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Pc(Ia,PS,dv(Hu,{brighter:function(e){return e=e==null?vc:Math.pow(vc,e),new Ia(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?rs:Math.pow(rs,e),new Ia(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Fn(k_(e>=240?e-240:e+120,i,n),k_(e,i,n),k_(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function k_(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var j6=Math.PI/180,W6=180/Math.PI,cy=18,G6=.96422,q6=1,H6=.82521,V6=4/29,Kf=6/29,Y6=3*Kf*Kf,Pfe=Kf*Kf*Kf;function X6(e){if(e instanceof $a)return new $a(e.l,e.a,e.b,e.opacity);if(e instanceof go)return K6(e);e instanceof Fn||(e=BC(e));var t=N_(e.r),r=N_(e.g),n=N_(e.b),i=M_((.2225045*t+.7168786*r+.0606169*n)/q6),a,o;return t===r&&r===n?a=o=i:(a=M_((.4360747*t+.3850649*r+.1430804*n)/G6),o=M_((.0139322*t+.0971045*r+.7141733*n)/H6)),new $a(116*i-16,500*(a-i),200*(i-o),e.opacity)}function kS(e,t,r,n){return arguments.length===1?X6(e):new $a(e,t,r,n==null?1:n)}function $a(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}Pc($a,kS,dv(Hu,{brighter:function(e){return new $a(this.l+cy*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new $a(this.l-cy*(e==null?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,r=isNaN(this.b)?e:e-this.b/200;return t=G6*D_(t),e=q6*D_(e),r=H6*D_(r),new Fn(F_(3.1338561*t-1.6168667*e-.4906146*r),F_(-.9787684*t+1.9161415*e+.033454*r),F_(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function M_(e){return e>Pfe?Math.pow(e,1/3):e/Y6+V6}function D_(e){return e>Kf?e*e*e:Y6*(e-V6)}function F_(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function N_(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kfe(e){if(e instanceof go)return new go(e.h,e.c,e.l,e.opacity);if(e instanceof $a||(e=X6(e)),e.a===0&&e.b===0)return new go(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*W6;return new go(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function MS(e,t,r,n){return arguments.length===1?kfe(e):new go(e,t,r,n==null?1:n)}function go(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function K6(e){if(isNaN(e.h))return new $a(e.l,0,0,e.opacity);var t=e.h*j6;return new $a(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Pc(go,MS,dv(Hu,{brighter:function(e){return new go(this.h,this.c,this.l+cy*(e==null?1:e),this.opacity)},darker:function(e){return new go(this.h,this.c,this.l-cy*(e==null?1:e),this.opacity)},rgb:function(){return K6(this).rgb()}}));var Q6=-.14861,$C=1.78277,zC=-.29227,I1=-.90649,Mh=1.97294,dk=Mh*I1,pk=Mh*$C,hk=$C*zC-I1*Q6;function Mfe(e){if(e instanceof Hl)return new Hl(e.h,e.s,e.l,e.opacity);e instanceof Fn||(e=BC(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(hk*n+dk*t-pk*r)/(hk+dk-pk),a=n-i,o=(Mh*(r-i)-zC*a)/I1,u=Math.sqrt(o*o+a*a)/(Mh*i*(1-i)),s=u?Math.atan2(o,a)*W6-120:NaN;return new Hl(s<0?s+360:s,u,i,e.opacity)}function DS(e,t,r,n){return arguments.length===1?Mfe(e):new Hl(e,t,r,n==null?1:n)}function Hl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Pc(Hl,DS,dv(Hu,{brighter:function(e){return e=e==null?vc:Math.pow(vc,e),new Hl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?rs:Math.pow(rs,e),new Hl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*j6,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new Fn(255*(t+r*(Q6*n+$C*i)),255*(t+r*(zC*n+I1*i)),255*(t+r*(Mh*n)),this.opacity)}}));function Z6(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function J6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,u=n<t-1?e[n+2]:2*a-i;return Z6((r-n/t)*t,o,i,a,u)}}function e8(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],u=e[(n+2)%t];return Z6((r-n/t)*t,i,a,o,u)}}function P1(e){return function(){return e}}function t8(e,t){return function(r){return e+r*t}}function Dfe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function k1(e,t){var r=t-e;return r?t8(e,r>180||r<-180?r-360*Math.round(r/360):r):P1(isNaN(e)?t:e)}function Ffe(e){return(e=+e)==1?_n:function(t,r){return r-t?Dfe(t,r,e):P1(isNaN(t)?r:t)}}function _n(e,t){var r=t-e;return r?t8(e,r):P1(isNaN(e)?t:e)}const FS=function e(t){var r=Ffe(t);function n(i,a){var o=r((i=fy(i)).r,(a=fy(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),f=_n(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=u(d),i.b=s(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function r8(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,u;for(o=0;o<r;++o)u=fy(t[o]),n[o]=u.r||0,i[o]=u.g||0,a[o]=u.b||0;return n=e(n),i=e(i),a=e(a),u.opacity=1,function(s){return u.r=n(s),u.g=i(s),u.b=a(s),u+""}}}var Nfe=r8(J6),Lfe=r8(e8);function UC(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function n8(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Bfe(e,t){return(n8(t)?UC:i8)(e,t)}function i8(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=jC(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function a8(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ra(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function o8(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=jC(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var NS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,L_=new RegExp(NS.source,"g");function $fe(e){return function(){return e}}function zfe(e){return function(t){return e(t)+""}}function u8(e,t){var r=NS.lastIndex=L_.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=NS.exec(e))&&(i=L_.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:Ra(n,i)})),r=L_.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?zfe(s[0].x):$fe(t):(t=s.length,function(f){for(var d=0,v;d<t;++d)u[(v=s[d]).i]=v.x(f);return u.join("")})}function jC(e,t){var r=typeof t,n;return t==null||r==="boolean"?P1(t):(r==="number"?Ra:r==="string"?(n=kh(t))?(t=n,FS):u8:t instanceof kh?FS:t instanceof Date?a8:n8(t)?UC:Array.isArray(t)?i8:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?o8:Ra)(e,t)}function Ufe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function jfe(e,t){var r=k1(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function Wfe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var vk=180/Math.PI,LS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function l8(e,t,r,n,i,a){var o,u,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(u=Math.sqrt(r*r+n*n))&&(r/=u,n/=u,s/=u),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*vk,skewX:Math.atan(s)*vk,scaleX:o,scaleY:u}}var bp,B_,gk,xm;function Gfe(e){return e==="none"?LS:(bp||(bp=document.createElement("DIV"),B_=document.documentElement,gk=document.defaultView),bp.style.transform=e,e=gk.getComputedStyle(B_.appendChild(bp),null).getPropertyValue("transform"),B_.removeChild(bp),e=e.slice(7,-1).split(","),l8(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function qfe(e){return e==null||(xm||(xm=document.createElementNS("http://www.w3.org/2000/svg","g")),xm.setAttribute("transform",e),!(e=xm.transform.baseVal.consolidate()))?LS:(e=e.matrix,l8(e.a,e.b,e.c,e.d,e.e,e.f))}function s8(e,t,r,n){function i(f){return f.length?f.pop()+" ":""}function a(f,d,v,h,g,_){if(f!==v||d!==h){var A=g.push("translate(",null,t,null,r);_.push({i:A-4,x:Ra(f,v)},{i:A-2,x:Ra(d,h)})}else(v||h)&&g.push("translate("+v+t+h+r)}function o(f,d,v,h){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),h.push({i:v.push(i(v)+"rotate(",null,n)-2,x:Ra(f,d)})):d&&v.push(i(v)+"rotate("+d+n)}function u(f,d,v,h){f!==d?h.push({i:v.push(i(v)+"skewX(",null,n)-2,x:Ra(f,d)}):d&&v.push(i(v)+"skewX("+d+n)}function s(f,d,v,h,g,_){if(f!==v||d!==h){var A=g.push(i(g)+"scale(",null,",",null,")");_.push({i:A-4,x:Ra(f,v)},{i:A-2,x:Ra(d,h)})}else(v!==1||h!==1)&&g.push(i(g)+"scale("+v+","+h+")")}return function(f,d){var v=[],h=[];return f=e(f),d=e(d),a(f.translateX,f.translateY,d.translateX,d.translateY,v,h),o(f.rotate,d.rotate,v,h),u(f.skewX,d.skewX,v,h),s(f.scaleX,f.scaleY,d.scaleX,d.scaleY,v,h),f=d=null,function(g){for(var _=-1,A=h.length,b;++_<A;)v[(b=h[_]).i]=b.x(g);return v.join("")}}}var Hfe=s8(Gfe,"px, ","px)","deg)"),Vfe=s8(qfe,", ",")",")"),wp=Math.SQRT2,$_=2,mk=4,Yfe=1e-12;function yk(e){return((e=Math.exp(e))+1/e)/2}function Xfe(e){return((e=Math.exp(e))-1/e)/2}function Kfe(e){return((e=Math.exp(2*e))-1)/(e+1)}function Qfe(e,t){var r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],u=t[2],s=a-r,f=o-n,d=s*s+f*f,v,h;if(d<Yfe)h=Math.log(u/i)/wp,v=function(S){return[r+S*s,n+S*f,i*Math.exp(wp*S*h)]};else{var g=Math.sqrt(d),_=(u*u-i*i+mk*d)/(2*i*$_*g),A=(u*u-i*i-mk*d)/(2*u*$_*g),b=Math.log(Math.sqrt(_*_+1)-_),w=Math.log(Math.sqrt(A*A+1)-A);h=(w-b)/wp,v=function(S){var E=S*h,R=yk(b),M=i/($_*g)*(R*Kfe(wp*E+b)-Xfe(b));return[r+M*s,n+M*f,i*R/yk(wp*E+b)]}}return v.duration=h*1e3,v}function f8(e){return function(t,r){var n=e((t=PS(t)).h,(r=PS(r)).h),i=_n(t.s,r.s),a=_n(t.l,r.l),o=_n(t.opacity,r.opacity);return function(u){return t.h=n(u),t.s=i(u),t.l=a(u),t.opacity=o(u),t+""}}}const Zfe=f8(k1);var Jfe=f8(_n);function ece(e,t){var r=_n((e=kS(e)).l,(t=kS(t)).l),n=_n(e.a,t.a),i=_n(e.b,t.b),a=_n(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function c8(e){return function(t,r){var n=e((t=MS(t)).h,(r=MS(r)).h),i=_n(t.c,r.c),a=_n(t.l,r.l),o=_n(t.opacity,r.opacity);return function(u){return t.h=n(u),t.c=i(u),t.l=a(u),t.opacity=o(u),t+""}}}const tce=c8(k1);var rce=c8(_n);function d8(e){return function t(r){r=+r;function n(i,a){var o=e((i=DS(i)).h,(a=DS(a)).h),u=_n(i.s,a.s),s=_n(i.l,a.l),f=_n(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=u(d),i.l=s(Math.pow(d,r)),i.opacity=f(d),i+""}}return n.gamma=t,n}(1)}const nce=d8(k1);var ice=d8(_n);function ace(e,t){for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function oce(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const uce=Object.freeze(Object.defineProperty({__proto__:null,interpolate:jC,interpolateArray:Bfe,interpolateBasis:J6,interpolateBasisClosed:e8,interpolateDate:a8,interpolateDiscrete:Ufe,interpolateHue:jfe,interpolateNumber:Ra,interpolateNumberArray:UC,interpolateObject:o8,interpolateRound:Wfe,interpolateString:u8,interpolateTransformCss:Hfe,interpolateTransformSvg:Vfe,interpolateZoom:Qfe,interpolateRgb:FS,interpolateRgbBasis:Nfe,interpolateRgbBasisClosed:Lfe,interpolateHsl:Zfe,interpolateHslLong:Jfe,interpolateLab:ece,interpolateHcl:tce,interpolateHclLong:rce,interpolateCubehelix:nce,interpolateCubehelixLong:ice,piecewise:ace,quantize:oce},Symbol.toStringTag,{value:"Module"})),Ude=is(uce);var lce="Expected a function",p8="__lodash_hash_undefined__",h8=1/0,sce=9007199254740991,fce="[object Function]",cce="[object GeneratorFunction]",dce="[object Symbol]",pce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hce=/^\w*$/,vce=/^\./,gce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mce=/[\\^$.*+?()[\]{}|]/g,yce=/\\(\\)?/g,bce=/^\[object .+?Constructor\]$/,wce=/^(?:0|[1-9]\d*)$/,xce=typeof _r=="object"&&_r&&_r.Object===Object&&_r,_ce=typeof self=="object"&&self&&self.Object===Object&&self,WC=xce||_ce||Function("return this")();function Sce(e,t){return e==null?void 0:e[t]}function Ece(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Ace=Array.prototype,Cce=Function.prototype,v8=Object.prototype,z_=WC["__core-js_shared__"],bk=function(){var e=/[^.]+$/.exec(z_&&z_.keys&&z_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),g8=Cce.toString,M1=v8.hasOwnProperty,m8=v8.toString,Tce=RegExp("^"+g8.call(M1).replace(mce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wk=WC.Symbol,Rce=Ace.splice,Oce=y8(WC,"Map"),Dh=y8(Object,"create"),xk=wk?wk.prototype:void 0,_k=xk?xk.toString:void 0;function ns(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ice(){this.__data__=Dh?Dh(null):{}}function Pce(e){return this.has(e)&&delete this.__data__[e]}function kce(e){var t=this.__data__;if(Dh){var r=t[e];return r===p8?void 0:r}return M1.call(t,e)?t[e]:void 0}function Mce(e){var t=this.__data__;return Dh?t[e]!==void 0:M1.call(t,e)}function Dce(e,t){var r=this.__data__;return r[e]=Dh&&t===void 0?p8:t,this}ns.prototype.clear=Ice;ns.prototype.delete=Pce;ns.prototype.get=kce;ns.prototype.has=Mce;ns.prototype.set=Dce;function kc(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Fce(){this.__data__=[]}function Nce(e){var t=this.__data__,r=D1(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Rce.call(t,r,1),!0}function Lce(e){var t=this.__data__,r=D1(t,e);return r<0?void 0:t[r][1]}function Bce(e){return D1(this.__data__,e)>-1}function $ce(e,t){var r=this.__data__,n=D1(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}kc.prototype.clear=Fce;kc.prototype.delete=Nce;kc.prototype.get=Lce;kc.prototype.has=Bce;kc.prototype.set=$ce;function bs(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function zce(){this.__data__={hash:new ns,map:new(Oce||kc),string:new ns}}function Uce(e){return F1(this,e).delete(e)}function jce(e){return F1(this,e).get(e)}function Wce(e){return F1(this,e).has(e)}function Gce(e,t){return F1(this,e).set(e,t),this}bs.prototype.clear=zce;bs.prototype.delete=Uce;bs.prototype.get=jce;bs.prototype.has=Wce;bs.prototype.set=Gce;function qce(e,t,r){var n=e[t];(!(M1.call(e,t)&&b8(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function D1(e,t){for(var r=e.length;r--;)if(b8(e[r][0],t))return r;return-1}function Hce(e){if(!dy(e)||Jce(e))return!1;var t=nde(e)||Ece(e)?Tce:bce;return t.test(rde(e))}function Vce(e,t,r,n){if(!dy(e))return e;t=Qce(t,e)?[t]:Xce(t);for(var i=-1,a=t.length,o=a-1,u=e;u!=null&&++i<a;){var s=tde(t[i]),f=r;if(i!=o){var d=u[s];f=n?n(d,s,u):void 0,f===void 0&&(f=dy(d)?d:Kce(t[i+1])?[]:{})}qce(u,s,f),u=u[s]}return e}function Yce(e){if(typeof e=="string")return e;if(qC(e))return _k?_k.call(e):"";var t=e+"";return t=="0"&&1/e==-h8?"-0":t}function Xce(e){return w8(e)?e:ede(e)}function F1(e,t){var r=e.__data__;return Zce(t)?r[typeof t=="string"?"string":"hash"]:r.map}function y8(e,t){var r=Sce(e,t);return Hce(r)?r:void 0}function Kce(e,t){return t=t==null?sce:t,!!t&&(typeof e=="number"||wce.test(e))&&e>-1&&e%1==0&&e<t}function Qce(e,t){if(w8(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||qC(e)?!0:hce.test(e)||!pce.test(e)||t!=null&&e in Object(t)}function Zce(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Jce(e){return!!bk&&bk in e}var ede=GC(function(e){e=ade(e);var t=[];return vce.test(e)&&t.push(""),e.replace(gce,function(r,n,i,a){t.push(i?a.replace(yce,"$1"):n||r)}),t});function tde(e){if(typeof e=="string"||qC(e))return e;var t=e+"";return t=="0"&&1/e==-h8?"-0":t}function rde(e){if(e!=null){try{return g8.call(e)}catch{}try{return e+""}catch{}}return""}function GC(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(lce);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(GC.Cache||bs),r}GC.Cache=bs;function b8(e,t){return e===t||e!==e&&t!==t}var w8=Array.isArray;function nde(e){var t=dy(e)?m8.call(e):"";return t==fce||t==cce}function dy(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ide(e){return!!e&&typeof e=="object"}function qC(e){return typeof e=="symbol"||ide(e)&&m8.call(e)==dce}function ade(e){return e==null?"":Yce(e)}function ode(e,t,r){return e==null?e:Vce(e,t,r)}var jde=ode;export{Ede as $,Ut as A,yr as B,Jn as C,dde as D,sde as E,WU as F,Cp as G,lde as H,fde as I,Uy as J,cde as K,hde as L,ZX as M,mde as N,gde as O,pde as P,$X as Q,Nn as R,yde as S,XE as T,vde as U,bde as V,wde as W,tn as X,xde as Y,_de as Z,jL as _,Cde as a,Sde as a0,jde as a1,Pde as b,kde as c,ore as d,EB as e,Tde as f,Rde as g,Ode as h,RC as i,Gie as j,Dde as k,x1 as l,Ide as m,Mde as n,DB as o,MB as p,f6 as q,Ade as r,Fde as s,eie as t,Nde as u,Lde as v,Bde as w,$de as x,zde as y,Ude as z};
|
|
1241
|
+
//# sourceMappingURL=vendor.4a3ef775.js.map
|