summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/5623.d08ebc475a57a44d926c.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/5623.d08ebc475a57a44d926c.js')
-rw-r--r--web/gui/v2/5623.d08ebc475a57a44d926c.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/gui/v2/5623.d08ebc475a57a44d926c.js b/web/gui/v2/5623.d08ebc475a57a44d926c.js
new file mode 100644
index 00000000..548abe14
--- /dev/null
+++ b/web/gui/v2/5623.d08ebc475a57a44d926c.js
@@ -0,0 +1 @@
+!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="22ad6806-4873-4f3a-b2ad-88efa3449f2a",t._sentryDebugIdIdentifier="sentry-dbid-22ad6806-4873-4f3a-b2ad-88efa3449f2a")}catch(t){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"6845f9ce010d5a446e5d4a40f17204cb8341a07a"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[5623],{71012:function(t){!function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(t,n){return t<<n|t>>>32-n},rotr:function(t,n){return t<<32-n|t>>>n},endian:function(t){if(t.constructor==Number)return 16711935&e.rotl(t,8)|4278255360&e.rotl(t,24);for(var n=0;n<t.length;n++)t[n]=e.endian(t[n]);return t},randomBytes:function(t){for(var n=[];t>0;t--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(t){for(var n=[],e=0,r=0;e<t.length;e++,r+=8)n[r>>>5]|=t[e]<<24-r%32;return n},wordsToBytes:function(t){for(var n=[],e=0;e<32*t.length;e+=8)n.push(t[e>>>5]>>>24-e%32&255);return n},bytesToHex:function(t){for(var n=[],e=0;e<t.length;e++)n.push((t[e]>>>4).toString(16)),n.push((15&t[e]).toString(16));return n.join("")},hexToBytes:function(t){for(var n=[],e=0;e<t.length;e+=2)n.push(parseInt(t.substr(e,2),16));return n},bytesToBase64:function(t){for(var e=[],r=0;r<t.length;r+=3)for(var i=t[r]<<16|t[r+1]<<8|t[r+2],o=0;o<4;o++)8*r+6*o<=8*t.length?e.push(n.charAt(i>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],r=0,i=0;r<t.length;i=++r%4)0!=i&&e.push((n.indexOf(t.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|n.indexOf(t.charAt(r))>>>6-2*i);return e}};t.exports=e}()},27642:function(t,n,e){"use strict";e.d(n,{Dz:function(){return i},Oq:function(){return h},cv:function(){return s},dO:function(){return c},iz:function(){return d},jn:function(){return o},oc:function(){return l}});var r=e(38776),i=function(t){var n=t.top,e=t.right,r=t.bottom,i=t.left;return{top:n,right:e,bottom:r,left:i,width:e-i,height:r-n,x:i,y:n,center:{x:(e+i)/2,y:(r+n)/2}}},o=function(t,n){return{top:t.top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right}},u=function(t,n){return{top:t.top+n.top,left:t.left+n.left,bottom:t.bottom-n.bottom,right:t.right-n.right}},a={top:0,right:0,bottom:0,left:0},c=function(t){var n=t.borderBox,e=t.margin,r=void 0===e?a:e,c=t.border,f=void 0===c?a:c,s=t.padding,l=void 0===s?a:s,h=i(o(n,r)),d=i(u(n,f)),p=i(u(d,l));return{marginBox:h,borderBox:i(n),paddingBox:d,contentBox:p,margin:r,border:f,padding:l}},f=function(t){var n=t.slice(0,-2);if("px"!==t.slice(-2))return 0;var e=Number(n);return isNaN(e)&&(0,r.Z)(!1),e},s=function(t,n){var e,r,i=t.borderBox,o=t.border,u=t.margin,a=t.padding,f=(r=n,{top:(e=i).top+r.y,left:e.left+r.x,bottom:e.bottom+r.y,right:e.right+r.x});return c({borderBox:f,border:o,margin:u,padding:a})},l=function(t,n){return void 0===n&&(n={x:window.pageXOffset,y:window.pageYOffset}),s(t,n)},h=function(t,n){var e={top:f(n.marginTop),right:f(n.marginRight),bottom:f(n.marginBottom),left:f(n.marginLeft)},r={top:f(n.paddingTop),right:f(n.paddingRight),bottom:f(n.paddingBottom),left:f(n.paddingLeft)},i={top:f(n.borderTopWidth),right:f(n.borderRightWidth),bottom:f(n.borderBottomWidth),left:f(n.borderLeftWidth)};return c({borderBox:t,margin:e,padding:r,border:i})},d=function(t){var n=t.getBoundingClientRect(),e=window.getComputedStyle(t);return h(n,e)}},44020:function(t){"use strict";var n="%[a-f0-9]{2}",e=new RegExp("("+n+")|([^%]+?)","gi"),r=new RegExp("("+n+")+","gi");function i(t,n){try{return[decodeURIComponent(t.join(""))]}catch(o){}if(1===t.length)return t;n=n||1;var e=t.slice(0,n),r=t.slice(n);return Array.prototype.concat.call([],i(e),i(r))}function o(t){try{return decodeURIComponent(t)}catch(o){for(var n=t.match(e)||[],r=1;r<n.length;r++)n=(t=i(n,r).join("")).match(e)||[];return t}}t.exports=function(t){if("string"!==typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(n){return function(t){for(var e={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},i=r.exec(t);i;){try{e[i[0]]=decodeURIComponent(i[0])}catch(n){var u=o(i[0]);u!==i[0]&&(e[i[0]]=u)}i=r.exec(t)}e["%C2"]="\ufffd";for(var a=Object.keys(e),c=0;c<a.length;c++){var f=a[c];t=t.replace(new RegExp(f,"g"),e[f])}return t}(t)}}},4447:function(t,n,e){"use strict";e.d(n,{B8:function(){return T},Il:function(){return i},J5:function(){return u},SU:function(){return M},Ss:function(){return A},Ym:function(){return D},ZP:function(){return m},xV:function(){return o}});var r=e(49531);function i(){}var o=.7,u=1/o,a="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",f="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,l=new RegExp(`^rgb\\(${a},${a},${a}\\)$`),h=new RegExp(`^rgb\\(${f},${f},${f}\\)$`),d=new RegExp(`^rgba\\(${a},${a},${a},${c}\\)$`),p=new RegExp(`^rgba\\(${f},${f},${f},${c}\\)$`),g=new RegExp(`^hsl\\(${c},${f},${f}\\)$`),y=new RegExp(`^hsla\\(${c},${f},${f},${c}\\)$`),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function m(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=s.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?x(n):3===e?new A(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?w(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?w(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=l.exec(t))?new A(n[1],n[2],n[3],1):(n=h.exec(t))?new A(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=d.exec(t))?w(n[1],n[2],n[3],n[4]):(n=p.exec(t))?w(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=g.exec(t))?P(n[1],n[2]/100,n[3]/100,1):(n=y.exec(t))?P(n[1],n[2]/100,n[3]/100,n[4]):v.hasOwnProperty(t)?x(v[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function x(t){return new A(t>>16&255,t>>8&255,255&t,1)}function w(t,n,e,r){return r<=0&&(t=n=e=NaN),new A(t,n,e,r)}function M(t){return t instanceof i||(t=m(t)),t?new A((t=t.rgb()).r,t.g,t.b,t.opacity):new A}function T(t,n,e,r){return 1===arguments.length?M(t):new A(t,n,e,null==r?1:r)}function A(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function S(){return`#${C(this.r)}${C(this.g)}${C(this.b)}`}function N(){const t=E(this.opacity);return`${1===t?"rgb(":"rgba("}${k(this.r)}, ${k(this.g)}, ${k(this.b)}${1===t?")":`, ${t})`}`}function E(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function k(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function C(t){return((t=k(t))<16?"0":"")+t.toString(16)}function P(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new z(t,n,e,r)}function Z(t){if(t instanceof z)return new z(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=m(t)),!t)return new z;if(t instanceof z)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,o=Math.min(n,e,r),u=Math.max(n,e,r),a=NaN,c=u-o,f=(u+o)/2;return c?(a=n===u?(e-r)/c+6*(e<r):e===u?(r-n)/c+2:(n-e)/c+4,c/=f<.5?u+o:2-u-o,a*=60):c=f>0&&f<1?0:a,new z(a,c,f,t.opacity)}function D(t,n,e,r){return 1===arguments.length?Z(t):new z(t,n,e,null==r?1:r)}function z(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function U(t){return(t=(t||0)%360)<0?t+360:t}function F(t){return Math.max(0,Math.min(1,t||0))}function R(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}(0,r.Z)(i,m,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:_,formatHex:_,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Z(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(A,T,(0,r.l)(i,{brighter(t){return t=null==t?u:Math.pow(u,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new A(k(this.r),k(this.g),k(this.b),E(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatHex8:function(){return`#${C(this.r)}${C(this.g)}${C(this.b)}${C(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:N,toString:N})),(0,r.Z)(z,D,(0,r.l)(i,{brighter(t){return t=null==t?u:Math.pow(u,t),new z(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?o:Math.pow(o,t),new z(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new A(R(t>=240?t-240:t+120,i,r),R(t,i,r),R(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new z(U(this.h),F(this.s),F(this.l),E(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=E(this.opacity);return`${1===t?"hsl(":"hsla("}${U(this.h)}, ${100*F(this.s)}%, ${100*F(this.l)}%${1===t?")":`, ${t})`}`}}))},49531:function(t,n,e){"use strict";function r(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function i(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}e.d(n,{Z:function(){return r},l:function(){return i}})},65386:function(t,n,e){"use strict";e.d(n,{WU:function(){return i},ZP:function(){return a},jH:function(){return o}});var r,i,o,u=e(80028);function a(t){return r=(0,u.Z)(t),i=r.format,o=r.formatPrefix,r}a({thousands:",",grouping:[3],currency:["$",""]})},65368:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(78613);function i(t){return(t=(0,r.V)(Math.abs(t)))?t[1]:NaN}},78613:function(t,n,e){"use strict";function r(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function i(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}e.d(n,{V:function(){return i},Z:function(){return r}})},42035:function(t,n,e){"use strict";e.d(n,{Z:function(){return i},v:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(n=r.exec(t)))throw new Error("invalid format: "+t);var n;return new o({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},80028:function(t,n,e){"use strict";e.d(n,{Z:function(){return h}});var r=e(65368);var i=e(42035);var o,u=e(78613);function a(t,n){var e=(0,u.V)(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var c={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:u.Z,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>a(100*t,n),r:a,s:function(t,n){var e=(0,u.V)(t,n);if(!e)return t+"";var r=e[0],i=e[1],a=i-(o=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,c=r.length;return a===c?r:a>c?r+new Array(a-c+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+(0,u.V)(t,Math.max(0,n+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function f(t){return t}var s=Array.prototype.map,l=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function h(t){var n,e,u=void 0===t.grouping||void 0===t.thousands?f:(n=s.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],u=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(t.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[u=(u+1)%n.length];return o.reverse().join(e)}),a=void 0===t.currency?"":t.currency[0]+"",h=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?f:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(s.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",y=void 0===t.minus?"\u2212":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function _(t){var n=(t=(0,i.Z)(t)).fill,e=t.align,r=t.sign,f=t.symbol,s=t.zero,_=t.width,b=t.comma,m=t.precision,x=t.trim,w=t.type;"n"===w?(b=!0,w="g"):c[w]||(void 0===m&&(m=12),x=!0,w="g"),(s||"0"===n&&"="===e)&&(s=!0,n="0",e="=");var M="$"===f?a:"#"===f&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",T="$"===f?h:/[%p]/.test(w)?g:"",A=c[w],S=/[defgprs%]/.test(w);function N(t){var i,a,c,f=M,h=T;if("c"===w)h=A(t)+h,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:A(Math.abs(t),m),x&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),g&&0===+t&&"+"!==r&&(g=!1),f=(g?"("===r?r:y:"-"===r||"("===r?"":r)+f,h=("s"===w?l[8+o/3]:"")+h+(g&&"("===r?")":""),S)for(i=-1,a=t.length;++i<a;)if(48>(c=t.charCodeAt(i))||c>57){h=(46===c?d+t.slice(i+1):t.slice(i))+h,t=t.slice(0,i);break}}b&&!s&&(t=u(t,1/0));var N=f.length+t.length+h.length,E=N<_?new Array(_-N+1).join(n):"";switch(b&&s&&(t=u(E+t,E.length?_-h.length:1/0),E=""),e){case"<":t=f+t+h+E;break;case"=":t=f+E+t+h;break;case"^":t=E.slice(0,N=E.length>>1)+f+t+h+E.slice(N);break;default:t=E+f+t+h}return p(t)}return m=void 0===m?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),N.toString=function(){return t+""},N}return{format:_,formatPrefix:function(t,n){var e=_(((t=(0,i.Z)(t)).type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(n)/3))),u=Math.pow(10,-o),a=l[8+o/3];return function(t){return e(u*t)+a}}}}},96909:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(65368);function i(t){return Math.max(0,-(0,r.Z)(Math.abs(t)))}},87017:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(65368);function i(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(n)/3)))-(0,r.Z)(Math.abs(t)))}},63482:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(65368);function i(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,(0,r.Z)(n)-(0,r.Z)(t))+1}},51606:function(t,n,e){"use strict";e.d(n,{M:function(){return u},Z:function(){return o}});var r=e(45326),i=e(45401);function o(t,n){return((0,i.v)(n)?i.Z:u)(t,n)}function u(t,n){var e,i=n?n.length:0,o=t?Math.min(i,t.length):0,u=new Array(o),a=new Array(i);for(e=0;e<o;++e)u[e]=(0,r.Z)(t[e],n[e]);for(;e<i;++e)a[e]=n[e];return function(t){for(e=0;e<o;++e)a[e]=u[e](t);return a}}},27265:function(t,n,e){"use strict";function r(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}function i(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),o=t[i],u=t[i+1],a=i>0?t[i-1]:2*o-u,c=i<n-1?t[i+2]:2*u-o;return r((e-i/n)*n,a,o,u,c)}}e.d(n,{Z:function(){return i},t:function(){return r}})},76068:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(27265);function i(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n),o=t[(i+n-1)%n],u=t[i%n],a=t[(i+1)%n],c=t[(i+2)%n];return(0,r.t)((e-i/n)*n,o,u,a,c)}}},98280:function(t,n,e){"use strict";e.d(n,{ZP:function(){return a},wx:function(){return o},yi:function(){return u}});var r=e(22954);function i(t,n){return function(e){return t+e*n}}function o(t,n){var e=n-t;return e?i(t,e>180||e<-180?e-360*Math.round(e/360):e):(0,r.Z)(isNaN(t)?n:t)}function u(t){return 1===(t=+t)?a:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):(0,r.Z)(isNaN(n)?e:n)}}function a(t,n){var e=n-t;return e?i(t,e):(0,r.Z)(isNaN(t)?n:t)}},22954:function(t,n){"use strict";n.Z=t=>()=>t},56246:function(t,n,e){"use strict";function r(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}e.d(n,{Z:function(){return r}})},68063:function(t,n,e){"use strict";function r(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}e.d(n,{Z:function(){return r}})},45401:function(t,n,e){"use strict";function r(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}e.d(n,{Z:function(){return r},v:function(){return i}})},58296:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(45326);function i(t,n){var e,i={},o={};for(e in null!==t&&"object"===typeof t||(t={}),null!==n&&"object"===typeof n||(n={}),n)e in t?i[e]=(0,r.Z)(t[e],n[e]):o[e]=n[e];return function(t){for(e in i)o[e]=i[e](t);return o}}},19640:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(45326);function i(t,n){void 0===n&&(n=t,t=r.Z);for(var e=0,i=n.length-1,o=n[0],u=new Array(i<0?0:i);e<i;)u[e]=t(o,o=n[++e]);return function(t){var n=Math.max(0,Math.min(i-1,Math.floor(t*=i)));return u[n](t-n)}}},6354:function(t,n,e){"use strict";e.d(n,{YD:function(){return f},hD:function(){return c}});var r=e(4447),i=e(27265),o=e(76068),u=e(98280);function a(t){return function(n){var e,i,o=n.length,u=new Array(o),a=new Array(o),c=new Array(o);for(e=0;e<o;++e)i=(0,r.B8)(n[e]),u[e]=i.r||0,a[e]=i.g||0,c[e]=i.b||0;return u=t(u),a=t(a),c=t(c),i.opacity=1,function(t){return i.r=u(t),i.g=a(t),i.b=c(t),i+""}}}n.ZP=function t(n){var e=(0,u.yi)(n);function i(t,n){var i=e((t=(0,r.B8)(t)).r,(n=(0,r.B8)(n)).r),o=e(t.g,n.g),a=e(t.b,n.b),c=(0,u.ZP)(t.opacity,n.opacity);return function(n){return t.r=i(n),t.g=o(n),t.b=a(n),t.opacity=c(n),t+""}}return i.gamma=t,i}(1);var c=a(i.Z),f=a(o.Z)},64635:function(t,n,e){"use strict";function r(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}e.d(n,{Z:function(){return r}})},16773:function(t,n,e){"use strict";e.d(n,{Z:function(){return u}});var r=e(68063),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function u(t,n){var e,u,a,c=i.lastIndex=o.lastIndex=0,f=-1,s=[],l=[];for(t+="",n+="";(e=i.exec(t))&&(u=o.exec(n));)(a=u.index)>c&&(a=n.slice(c,a),s[f]?s[f]+=a:s[++f]=a),(e=e[0])===(u=u[0])?s[f]?s[f]+=u:s[++f]=u:(s[++f]=null,l.push({i:f,x:(0,r.Z)(e,u)})),c=o.lastIndex;return c<n.length&&(a=n.slice(c),s[f]?s[f]+=a:s[++f]=a),s.length<2?l[0]?function(t){return function(n){return t(n)+""}}(l[0].x):function(t){return function(){return t}}(n):(n=l.length,function(t){for(var e,r=0;r<n;++r)s[(e=l[r]).i]=e.x(t);return s.join("")})}},45326:function(t,n,e){"use strict";e.d(n,{Z:function(){return h}});var r=e(4447),i=e(6354),o=e(51606),u=e(56246),a=e(68063),c=e(58296),f=e(16773),s=e(22954),l=e(45401);function h(t,n){var e,h=typeof n;return null==n||"boolean"===h?(0,s.Z)(n):("number"===h?a.Z:"string"===h?(e=(0,r.ZP)(n))?(n=e,i.ZP):f.Z:n instanceof r.ZP?i.ZP:n instanceof Date?u.Z:(0,l.v)(n)?l.Z:Array.isArray(n)?o.M:"function"!==typeof n.valueOf&&"function"!==typeof n.toString||isNaN(n)?c.Z:a.Z)(t,n)}},69032:function(t,n,e){"use strict";function r(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function i(t,n){switch(arguments.length){case 0:break;case 1:"function"===typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"===typeof n?this.interpolator(n):this.range(n)}return this}e.r(n),e.d(n,{scaleBand:function(){return c},scaleDiverging:function(){return yn},scaleDivergingLog:function(){return vn},scaleDivergingPow:function(){return bn},scaleDivergingSqrt:function(){return mn},scaleDivergingSymlog:function(){return _n},scaleIdentity:function(){return H},scaleImplicit:function(){return u},scaleLinear:function(){return L},scaleLog:function(){return tt},scaleOrdinal:function(){return a},scalePoint:function(){return s},scalePow:function(){return ft},scaleQuantile:function(){return xt},scaleQuantize:function(){return wt},scaleRadial:function(){return ht},scaleSequential:function(){return cn},scaleSequentialLog:function(){return fn},scaleSequentialPow:function(){return ln},scaleSequentialQuantile:function(){return dn},scaleSequentialSqrt:function(){return hn},scaleSequentialSymlog:function(){return sn},scaleSqrt:function(){return st},scaleSymlog:function(){return it},scaleThreshold:function(){return Mt},scaleTime:function(){return rn},scaleUtc:function(){return on},tickFormat:function(){return I}});var o=e(909);const u=Symbol("implicit");function a(){var t=new o.L,n=[],e=[],i=u;function c(r){let o=t.get(r);if(void 0===o){if(i!==u)return i;t.set(r,o=n.push(r)-1)}return e[o%e.length]}return c.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new o.L;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return c},c.range=function(t){return arguments.length?(e=Array.from(t),c):e.slice()},c.unknown=function(t){return arguments.length?(i=t,c):i},c.copy=function(){return a(n,e).unknown(i)},r.apply(c,arguments),c}function c(){var t,n,e=a().unknown(void 0),i=e.domain,o=e.range,u=0,f=1,s=!1,l=0,h=0,d=.5;function p(){var e=i().length,r=f<u,a=r?f:u,c=r?u:f;t=(c-a)/Math.max(1,e-l+2*h),s&&(t=Math.floor(t)),a+=(c-a-t*(e-l))*d,n=t*(1-l),s&&(a=Math.round(a),n=Math.round(n));var p=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}(e).map((function(n){return a+t*n}));return o(r?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(i(t),p()):i()},e.range=function(t){return arguments.length?([u,f]=t,u=+u,f=+f,p()):[u,f]},e.rangeRound=function(t){return[u,f]=t,u=+u,f=+f,s=!0,p()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(s=!!t,p()):s},e.padding=function(t){return arguments.length?(l=Math.min(1,h=+t),p()):l},e.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),p()):l},e.paddingOuter=function(t){return arguments.length?(h=+t,p()):h},e.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),p()):d},e.copy=function(){return c(i(),[u,f]).round(s).paddingInner(l).paddingOuter(h).align(d)},r.apply(p(),arguments)}function f(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return f(n())},t}function s(){return f(c.apply(null,arguments).paddingInner(1))}var l=Math.sqrt(50),h=Math.sqrt(10),d=Math.sqrt(2);function p(t,n,e){var r,i,o,u,a=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(u=g(t,n,e))||!isFinite(u))return[];if(u>0){let e=Math.round(t/u),r=Math.round(n/u);for(e*u<t&&++e,r*u>n&&--r,o=new Array(i=r-e+1);++a<i;)o[a]=(e+a)*u}else{u=-u;let e=Math.round(t*u),r=Math.round(n*u);for(e/u<t&&++e,r/u>n&&--r,o=new Array(i=r-e+1);++a<i;)o[a]=(e+a)/u}return r&&o.reverse(),o}function g(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=l?10:o>=h?5:o>=d?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=l?10:o>=h?5:o>=d?2:1)}function y(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=l?i*=10:o>=h?i*=5:o>=d&&(i*=2),n<t?-i:i}function v(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function b(t){let n,e,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<0?i=n+1:o=n}while(i<o)}return i}return 2!==t.length?(n=v,e=(n,e)=>v(t(n),e),r=(n,e)=>t(n)-e):(n=t===v||t===_?t:m,e=t,r=t),{left:i,center:function(t,n,e=0,o=t.length){const u=i(t,n,e,o-1);return u>e&&r(t[u-1],n)>-r(t[u],n)?u-1:u},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<=0?i=n+1:o=n}while(i<o)}return i}}}function m(){return 0}function x(t){return null===t?NaN:+t}const w=b(v),M=w.right;w.left,b(x).center;var T=M,A=e(45326),S=e(68063),N=e(64635);function E(t){return+t}var k=[0,1];function C(t){return t}function P(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Z(t,n,e){var r=t[0],i=t[1],o=n[0],u=n[1];return i<r?(r=P(i,r),o=e(u,o)):(r=P(r,i),o=e(o,u)),function(t){return o(r(t))}}function D(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),u=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<r;)i[u]=P(t[u],t[u+1]),o[u]=e(n[u],n[u+1]);return function(n){var e=T(t,n,1,r)-1;return o[e](i[e](n))}}function z(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function U(){var t,n,e,r,i,o,u=k,a=k,c=A.Z,f=C;function s(){var t=Math.min(u.length,a.length);return f!==C&&(f=function(t,n){var e;return t>n&&(e=t,t=n,n=e),function(e){return Math.max(t,Math.min(n,e))}}(u[0],u[t-1])),r=t>2?D:Z,i=o=null,l}function l(n){return null==n||isNaN(n=+n)?e:(i||(i=r(u.map(t),a,c)))(t(f(n)))}return l.invert=function(e){return f(n((o||(o=r(a,u.map(t),S.Z)))(e)))},l.domain=function(t){return arguments.length?(u=Array.from(t,E),s()):u.slice()},l.range=function(t){return arguments.length?(a=Array.from(t),s()):a.slice()},l.rangeRound=function(t){return a=Array.from(t),c=N.Z,s()},l.clamp=function(t){return arguments.length?(f=!!t||C,s()):f!==C},l.interpolate=function(t){return arguments.length?(c=t,s()):c},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,s()}}function F(){return U()(C,C)}var R=e(42035),$=e(87017),q=e(65386),B=e(63482),Y=e(96909);function I(t,n,e,r){var i,o=y(t,n,e);switch((r=(0,R.Z)(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=(0,$.Z)(o,u))||(r.precision=i),(0,q.jH)(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=(0,B.Z)(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=(0,Y.Z)(o))||(r.precision=i-2*("%"===r.type))}return(0,q.WU)(r)}function O(t){var n=t.domain;return t.ticks=function(t){var e=n();return p(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return I(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),u=0,a=o.length-1,c=o[u],f=o[a],s=10;for(f<c&&(i=c,c=f,f=i,i=u,u=a,a=i);s-- >0;){if((i=g(c,f,e))===r)return o[u]=c,o[a]=f,n(o);if(i>0)c=Math.floor(c/i)*i,f=Math.ceil(f/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,f=Math.floor(f*i)/i}r=i}return t},t}function L(){var t=F();return t.copy=function(){return z(t,L())},r.apply(t,arguments),O(t)}function H(t){var n;function e(t){return null==t||isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,E),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return H(t).unknown(n)},t=arguments.length?Array.from(t,E):[0,1],O(e)}function j(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],u=t[i];return u<o&&(e=r,r=i,i=e,e=o,o=u,u=e),t[r]=n.floor(o),t[i]=n.ceil(u),t}function V(t){return Math.log(t)}function X(t){return Math.exp(t)}function G(t){return-Math.log(-t)}function W(t){return-Math.exp(-t)}function Q(t){return isFinite(t)?+("1e"+t):t<0?0:t}function K(t){return(n,e)=>-t(-n,e)}function J(t){const n=t(V,X),e=n.domain;let r,i,o=10;function u(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(o),i=function(t){return 10===t?Q:t===Math.E?Math.exp:n=>Math.pow(t,n)}(o),e()[0]<0?(r=K(r),i=K(i),t(G,W)):t(V,X),n}return n.base=function(t){return arguments.length?(o=+t,u()):o},n.domain=function(t){return arguments.length?(e(t),u()):e()},n.ticks=t=>{const n=e();let u=n[0],a=n[n.length-1];const c=a<u;c&&([u,a]=[a,u]);let f,s,l=r(u),h=r(a);const d=null==t?10:+t;let g=[];if(!(o%1)&&h-l<d){if(l=Math.floor(l),h=Math.ceil(h),u>0){for(;l<=h;++l)for(f=1;f<o;++f)if(s=l<0?f/i(-l):f*i(l),!(s<u)){if(s>a)break;g.push(s)}}else for(;l<=h;++l)for(f=o-1;f>=1;--f)if(s=l>0?f/i(-l):f*i(l),!(s<u)){if(s>a)break;g.push(s)}2*g.length<d&&(g=p(u,a,d))}else g=p(l,h,Math.min(h-l,d)).map(i);return c?g.reverse():g},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===o?"s":","),"function"!==typeof e&&(o%1||null!=(e=(0,R.Z)(e)).precision||(e.trim=!0),e=(0,q.WU)(e)),t===1/0)return e;const u=Math.max(1,o*t/n.ticks().length);return t=>{let n=t/i(Math.round(r(t)));return n*o<o-.5&&(n*=o),n<=u?e(t):""}},n.nice=()=>e(j(e(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),n}function tt(){const t=J(U()).domain([1,10]);return t.copy=()=>z(t,tt()).base(t.base()),r.apply(t,arguments),t}function nt(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function et(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function rt(t){var n=1,e=t(nt(n),et(n));return e.constant=function(e){return arguments.length?t(nt(n=+e),et(n)):n},O(e)}function it(){var t=rt(U());return t.copy=function(){return z(t,it()).constant(t.constant())},r.apply(t,arguments)}function ot(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function ut(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function at(t){return t<0?-t*t:t*t}function ct(t){var n=t(C,C),e=1;return n.exponent=function(n){return arguments.length?1===(e=+n)?t(C,C):.5===e?t(ut,at):t(ot(e),ot(1/e)):e},O(n)}function ft(){var t=ct(U());return t.copy=function(){return z(t,ft()).exponent(t.exponent())},r.apply(t,arguments),t}function st(){return ft.apply(null,arguments).exponent(.5)}function lt(t){return Math.sign(t)*t*t}function ht(){var t,n=F(),e=[0,1],i=!1;function o(e){var r=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(t){return n.invert(lt(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((e=Array.from(t,E)).map(lt)),o):e.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return ht(n.domain(),e).round(i).clamp(n.clamp()).unknown(t)},r.apply(o,arguments),O(o)}function dt(t,n){let e;if(void 0===n)for(const r of t)null!=r&&(e<r||void 0===e&&r>=r)&&(e=r);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function pt(t,n){let e;if(void 0===n)for(const r of t)null!=r&&(e>r||void 0===e&&r>=r)&&(e=r);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function gt(t=v){if(t===v)return yt;if("function"!==typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function yt(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function vt(t,n,e=0,r=t.length-1,i){for(i=void 0===i?yt:gt(i);r>e;){if(r-e>600){const o=r-e+1,u=n-e+1,a=Math.log(o),c=.5*Math.exp(2*a/3),f=.5*Math.sqrt(a*c*(o-c)/o)*(u-o/2<0?-1:1);vt(t,n,Math.max(e,Math.floor(n-u*c/o+f)),Math.min(r,Math.floor(n+(o-u)*c/o+f)),i)}const o=t[n];let u=e,a=r;for(_t(t,e,n),i(t[r],o)>0&&_t(t,e,r);u<a;){for(_t(t,u,a),++u,--a;i(t[u],o)<0;)++u;for(;i(t[a],o)>0;)--a}0===i(t[e],o)?_t(t,e,a):(++a,_t(t,a,r)),a<=n&&(e=a+1),n<=a&&(r=a-1)}return t}function _t(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function bt(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return pt(t);if(n>=1)return dt(t);var r,i=(r-1)*n,o=Math.floor(i),u=dt(vt(t,o).subarray(0,o+1));return u+(pt(t.subarray(o+1))-u)*(i-o)}}function mt(t,n,e=x){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t);return u+(+e(t[o+1],o+1,t)-u)*(i-o)}}function xt(){var t,n=[],e=[],i=[];function o(){var t=0,r=Math.max(1,e.length);for(i=new Array(r-1);++t<r;)i[t-1]=mt(n,t/r);return u}function u(n){return null==n||isNaN(n=+n)?t:e[T(i,n)]}return u.invertExtent=function(t){var r=e.indexOf(t);return r<0?[NaN,NaN]:[r>0?i[r-1]:n[0],r<i.length?i[r]:n[n.length-1]]},u.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(v),o()},u.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},u.unknown=function(n){return arguments.length?(t=n,u):t},u.quantiles=function(){return i.slice()},u.copy=function(){return xt().domain(n).range(e).unknown(t)},r.apply(u,arguments)}function wt(){var t,n=0,e=1,i=1,o=[.5],u=[0,1];function a(n){return null!=n&&n<=n?u[T(o,n,0,i)]:t}function c(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*e-(t-i)*n)/(i+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,c()):[n,e]},a.range=function(t){return arguments.length?(i=(u=Array.from(t)).length-1,c()):u.slice()},a.invertExtent=function(t){var r=u.indexOf(t);return r<0?[NaN,NaN]:r<1?[n,o[0]]:r>=i?[o[i-1],e]:[o[r-1],o[r]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return wt().domain([n,e]).range(u).unknown(t)},r.apply(O(a),arguments)}function Mt(){var t,n=[.5],e=[0,1],i=1;function o(r){return null!=r&&r<=r?e[T(n,r,0,i)]:t}return o.domain=function(t){return arguments.length?(n=Array.from(t),i=Math.min(n.length,e.length-1),o):n.slice()},o.range=function(t){return arguments.length?(e=Array.from(t),i=Math.min(n.length,e.length-1),o):e.slice()},o.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return Mt().domain(n).range(e).unknown(t)},r.apply(o,arguments)}var Tt=e(11262),At=e(52576),St=(0,At.Z)((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));St.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?(0,At.Z)((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):St:null};var Nt=St,Et=(St.range,(0,At.Z)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Tt.Ym)}),(function(t,n){return(n-t)/Tt.Ym}),(function(t){return t.getUTCSeconds()}))),kt=Et,Ct=(Et.range,(0,At.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Tt.Ym)}),(function(t,n){t.setTime(+t+n*Tt.yB)}),(function(t,n){return(n-t)/Tt.yB}),(function(t){return t.getMinutes()}))),Pt=Ct,Zt=(Ct.range,(0,At.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Tt.Ym-t.getMinutes()*Tt.yB)}),(function(t,n){t.setTime(+t+n*Tt.Y2)}),(function(t,n){return(n-t)/Tt.Y2}),(function(t){return t.getHours()}))),Dt=Zt,zt=(Zt.range,e(96199)),Ut=e(85235),Ft=(0,At.Z)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),Rt=Ft,$t=(Ft.range,e(38887)),qt=(0,At.Z)((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Tt.yB)}),(function(t,n){return(n-t)/Tt.yB}),(function(t){return t.getUTCMinutes()})),Bt=qt,Yt=(qt.range,(0,At.Z)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Tt.Y2)}),(function(t,n){return(n-t)/Tt.Y2}),(function(t){return t.getUTCHours()}))),It=Yt,Ot=(Yt.range,e(74834)),Lt=e(81416),Ht=(0,At.Z)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),jt=Ht,Vt=(Ht.range,e(69935));function Xt(t,n,e,r,i,o){const u=[[kt,1,Tt.Ym],[kt,5,5*Tt.Ym],[kt,15,15*Tt.Ym],[kt,30,30*Tt.Ym],[o,1,Tt.yB],[o,5,5*Tt.yB],[o,15,15*Tt.yB],[o,30,30*Tt.yB],[i,1,Tt.Y2],[i,3,3*Tt.Y2],[i,6,6*Tt.Y2],[i,12,12*Tt.Y2],[r,1,Tt.UD],[r,2,2*Tt.UD],[e,1,Tt.iM],[n,1,Tt.jz],[n,3,3*Tt.jz],[t,1,Tt.qz]];function a(n,e,r){const i=Math.abs(e-n)/r,o=b((([,,t])=>t)).right(u,i);if(o===u.length)return t.every(y(n/Tt.qz,e/Tt.qz,r));if(0===o)return Nt.every(Math.max(y(n,e,r),1));const[a,c]=u[i/u[o-1][2]<u[o][2]/i?o-1:o];return a.every(c)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"===typeof e.range?e:a(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},a]}const[Gt,Wt]=Xt(Vt.Z,jt,Lt.Ox,Ot.Z,It,Bt),[Qt,Kt]=Xt($t.Z,Rt,Ut.OM,zt.Z,Dt,Pt);var Jt=e(82138);function tn(t){return new Date(t)}function nn(t){return t instanceof Date?+t:+new Date(+t)}function en(t,n,e,r,i,o,u,a,c,f){var s=F(),l=s.invert,h=s.domain,d=f(".%L"),p=f(":%S"),g=f("%I:%M"),y=f("%I %p"),v=f("%a %d"),_=f("%b %d"),b=f("%B"),m=f("%Y");function x(t){return(c(t)<t?d:a(t)<t?p:u(t)<t?g:o(t)<t?y:r(t)<t?i(t)<t?v:_:e(t)<t?b:m)(t)}return s.invert=function(t){return new Date(l(t))},s.domain=function(t){return arguments.length?h(Array.from(t,nn)):h().map(tn)},s.ticks=function(n){var e=h();return t(e[0],e[e.length-1],null==n?10:n)},s.tickFormat=function(t,n){return null==n?x:f(n)},s.nice=function(t){var e=h();return t&&"function"===typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?h(j(e,t)):s},s.copy=function(){return z(s,en(t,n,e,r,i,o,u,a,c,f))},s}function rn(){return r.apply(en(Qt,Kt,$t.Z,Rt,Ut.OM,zt.Z,Dt,Pt,kt,Jt.i$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function on(){return r.apply(en(Gt,Wt,Vt.Z,jt,Lt.Ox,Ot.Z,It,Bt,kt,Jt.g0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function un(){var t,n,e,r,i,o=0,u=1,a=C,c=!1;function f(n){return null==n||isNaN(n=+n)?i:a(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}function s(t){return function(n){var e,r;return arguments.length?([e,r]=n,a=t(e,r),f):[a(0),a(1)]}}return f.domain=function(i){return arguments.length?([o,u]=i,t=r(o=+o),n=r(u=+u),e=t===n?0:1/(n-t),f):[o,u]},f.clamp=function(t){return arguments.length?(c=!!t,f):c},f.interpolator=function(t){return arguments.length?(a=t,f):a},f.range=s(A.Z),f.rangeRound=s(N.Z),f.unknown=function(t){return arguments.length?(i=t,f):i},function(i){return r=i,t=i(o),n=i(u),e=t===n?0:1/(n-t),f}}function an(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function cn(){var t=O(un()(C));return t.copy=function(){return an(t,cn())},i.apply(t,arguments)}function fn(){var t=J(un()).domain([1,10]);return t.copy=function(){return an(t,fn()).base(t.base())},i.apply(t,arguments)}function sn(){var t=rt(un());return t.copy=function(){return an(t,sn()).constant(t.constant())},i.apply(t,arguments)}function ln(){var t=ct(un());return t.copy=function(){return an(t,ln()).exponent(t.exponent())},i.apply(t,arguments)}function hn(){return ln.apply(null,arguments).exponent(.5)}function dn(){var t=[],n=C;function e(e){if(null!=e&&!isNaN(e=+e))return n((T(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(v),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},e.quantiles=function(n){return Array.from({length:n+1},((e,r)=>bt(t,r/n)))},e.copy=function(){return dn(n).domain(t)},i.apply(e,arguments)}var pn=e(19640);function gn(){var t,n,e,r,i,o,u,a=0,c=.5,f=1,s=1,l=C,h=!1;function d(t){return isNaN(t=+t)?u:(t=.5+((t=+o(t))-n)*(s*t<s*n?r:i),l(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,l=(0,pn.Z)(t,[e,r,i]),d):[l(0),l(.5),l(1)]}}return d.domain=function(u){return arguments.length?([a,c,f]=u,t=o(a=+a),n=o(c=+c),e=o(f=+f),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),s=n<t?-1:1,d):[a,c,f]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(l=t,d):l},d.range=p(A.Z),d.rangeRound=p(N.Z),d.unknown=function(t){return arguments.length?(u=t,d):u},function(u){return o=u,t=u(a),n=u(c),e=u(f),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),s=n<t?-1:1,d}}function yn(){var t=O(gn()(C));return t.copy=function(){return an(t,yn())},i.apply(t,arguments)}function vn(){var t=J(gn()).domain([.1,1,10]);return t.copy=function(){return an(t,vn()).base(t.base())},i.apply(t,arguments)}function _n(){var t=rt(gn());return t.copy=function(){return an(t,_n()).constant(t.constant())},i.apply(t,arguments)}function bn(){var t=ct(gn());return t.copy=function(){return an(t,bn()).exponent(t.exponent())},i.apply(t,arguments)}function mn(){return bn.apply(null,arguments).exponent(.5)}},82138:function(t,n,e){"use strict";e.d(n,{Z1:function(){return o},ZP:function(){return f},g0:function(){return u},i$:function(){return i},wp:function(){return a}});var r,i,o,u,a,c=e(47238);function f(t){return r=(0,c.Z)(t),i=r.format,o=r.parse,u=r.utcFormat,a=r.utcParse,r}f({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"]})},47238:function(t,n,e){"use strict";e.d(n,{Z:function(){return h}});var r=e(81416),i=e(74834),o=e(85235),u=e(96199),a=e(38887),c=e(69935);function f(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function s(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function l(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function h(t){var n=t.dateTime,e=t.date,a=t.time,c=t.periods,h=t.days,p=t.shortDays,g=t.months,y=t.shortMonths,v=b(c),_=m(c),K=b(h),_t=m(h),Ct=b(p),Pt=m(p),Zt=b(g),Dt=m(g),zt=b(y),Ut=m(y),Ft={a:function(t){return p[t.getDay()]},A:function(t){return h[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return g[t.getMonth()]},c:null,d:Y,e:Y,f:j,g:rt,G:ot,H:I,I:O,j:L,L:H,m:V,M:X,p:function(t){return c[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Et,s:kt,S:G,u:W,U:Q,V:J,w:tt,W:nt,x:null,X:null,y:et,Y:it,Z:ut,"%":Nt},Rt={a:function(t){return p[t.getUTCDay()]},A:function(t){return h[t.getUTCDay()]},b:function(t){return y[t.getUTCMonth()]},B:function(t){return g[t.getUTCMonth()]},c:null,d:at,e:at,f:ht,g:Mt,G:At,H:ct,I:ft,j:st,L:lt,m:dt,M:pt,p:function(t){return c[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Et,s:kt,S:gt,u:yt,U:vt,V:bt,w:mt,W:xt,x:null,X:null,y:wt,Y:Tt,Z:St,"%":Nt},$t={a:function(t,n,e){var r=Ct.exec(n.slice(e));return r?(t.w=Pt.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=K.exec(n.slice(e));return r?(t.w=_t.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=zt.exec(n.slice(e));return r?(t.m=Ut.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=Zt.exec(n.slice(e));return r?(t.m=Dt.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return Yt(t,n,e,r)},d:P,e:P,f:R,g:N,G:S,H:D,I:D,j:Z,L:F,m:C,M:z,p:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.p=_.get(r[0].toLowerCase()),e+r[0].length):-1},q:k,Q:q,s:B,S:U,u:w,U:M,V:T,w:x,W:A,x:function(t,n,r){return Yt(t,e,n,r)},X:function(t,n,e){return Yt(t,a,n,e)},y:N,Y:S,Z:E,"%":$};function qt(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,f=t.length;for(e instanceof Date||(e=new Date(+e));++a<f;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=d[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function Bt(t,n){return function(e){var a,c,h=l(1900,void 0,1);if(Yt(h,t,e+="",0)!=e.length)return null;if("Q"in h)return new Date(h.Q);if("s"in h)return new Date(1e3*h.s+("L"in h?h.L:0));if(n&&!("Z"in h)&&(h.Z=0),"p"in h&&(h.H=h.H%12+12*h.p),void 0===h.m&&(h.m="q"in h?h.q:0),"V"in h){if(h.V<1||h.V>53)return null;"w"in h||(h.w=1),"Z"in h?(c=(a=s(l(h.y,0,1))).getUTCDay(),a=c>4||0===c?r.l6.ceil(a):(0,r.l6)(a),a=i.Z.offset(a,7*(h.V-1)),h.y=a.getUTCFullYear(),h.m=a.getUTCMonth(),h.d=a.getUTCDate()+(h.w+6)%7):(c=(a=f(l(h.y,0,1))).getDay(),a=c>4||0===c?o.wA.ceil(a):(0,o.wA)(a),a=u.Z.offset(a,7*(h.V-1)),h.y=a.getFullYear(),h.m=a.getMonth(),h.d=a.getDate()+(h.w+6)%7)}else("W"in h||"U"in h)&&("w"in h||(h.w="u"in h?h.u%7:"W"in h?1:0),c="Z"in h?s(l(h.y,0,1)).getUTCDay():f(l(h.y,0,1)).getDay(),h.m=0,h.d="W"in h?(h.w+6)%7+7*h.W-(c+5)%7:h.w+7*h.U-(c+6)%7);return"Z"in h?(h.H+=h.Z/100|0,h.M+=h.Z%100,s(h)):f(h)}}function Yt(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=$t[i in d?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return Ft.x=qt(e,Ft),Ft.X=qt(a,Ft),Ft.c=qt(n,Ft),Rt.x=qt(e,Rt),Rt.X=qt(a,Rt),Rt.c=qt(n,Rt),{format:function(t){var n=qt(t+="",Ft);return n.toString=function(){return t},n},parse:function(t){var n=Bt(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=qt(t+="",Rt);return n.toString=function(){return t},n},utcParse:function(t){var n=Bt(t+="",!0);return n.toString=function(){return t},n}}}var d={"-":"",_:" ",0:"0"},p=/^\s*\d+/,g=/^%/,y=/[\\^$*+?|[\]().{}]/g;function v(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function _(t){return t.replace(y,"\\$&")}function b(t){return new RegExp("^(?:"+t.map(_).join("|")+")","i")}function m(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function x(t,n,e){var r=p.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function w(t,n,e){var r=p.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function M(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function T(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function A(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function S(t,n,e){var r=p.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function N(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function E(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function k(t,n,e){var r=p.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function C(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function P(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Z(t,n,e){var r=p.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function D(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function z(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function U(t,n,e){var r=p.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function F(t,n,e){var r=p.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function R(t,n,e){var r=p.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function $(t,n,e){var r=g.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function q(t,n,e){var r=p.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function B(t,n,e){var r=p.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Y(t,n){return v(t.getDate(),n,2)}function I(t,n){return v(t.getHours(),n,2)}function O(t,n){return v(t.getHours()%12||12,n,2)}function L(t,n){return v(1+u.Z.count((0,a.Z)(t),t),n,3)}function H(t,n){return v(t.getMilliseconds(),n,3)}function j(t,n){return H(t,n)+"000"}function V(t,n){return v(t.getMonth()+1,n,2)}function X(t,n){return v(t.getMinutes(),n,2)}function G(t,n){return v(t.getSeconds(),n,2)}function W(t){var n=t.getDay();return 0===n?7:n}function Q(t,n){return v(o.OM.count((0,a.Z)(t)-1,t),n,2)}function K(t){var n=t.getDay();return n>=4||0===n?(0,o.bL)(t):o.bL.ceil(t)}function J(t,n){return t=K(t),v(o.bL.count((0,a.Z)(t),t)+(4===(0,a.Z)(t).getDay()),n,2)}function tt(t){return t.getDay()}function nt(t,n){return v(o.wA.count((0,a.Z)(t)-1,t),n,2)}function et(t,n){return v(t.getFullYear()%100,n,2)}function rt(t,n){return v((t=K(t)).getFullYear()%100,n,2)}function it(t,n){return v(t.getFullYear()%1e4,n,4)}function ot(t,n){var e=t.getDay();return v((t=e>=4||0===e?(0,o.bL)(t):o.bL.ceil(t)).getFullYear()%1e4,n,4)}function ut(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+v(n/60|0,"0",2)+v(n%60,"0",2)}function at(t,n){return v(t.getUTCDate(),n,2)}function ct(t,n){return v(t.getUTCHours(),n,2)}function ft(t,n){return v(t.getUTCHours()%12||12,n,2)}function st(t,n){return v(1+i.Z.count((0,c.Z)(t),t),n,3)}function lt(t,n){return v(t.getUTCMilliseconds(),n,3)}function ht(t,n){return lt(t,n)+"000"}function dt(t,n){return v(t.getUTCMonth()+1,n,2)}function pt(t,n){return v(t.getUTCMinutes(),n,2)}function gt(t,n){return v(t.getUTCSeconds(),n,2)}function yt(t){var n=t.getUTCDay();return 0===n?7:n}function vt(t,n){return v(r.Ox.count((0,c.Z)(t)-1,t),n,2)}function _t(t){var n=t.getUTCDay();return n>=4||0===n?(0,r.hB)(t):r.hB.ceil(t)}function bt(t,n){return t=_t(t),v(r.hB.count((0,c.Z)(t),t)+(4===(0,c.Z)(t).getUTCDay()),n,2)}function mt(t){return t.getUTCDay()}function xt(t,n){return v(r.l6.count((0,c.Z)(t)-1,t),n,2)}function wt(t,n){return v(t.getUTCFullYear()%100,n,2)}function Mt(t,n){return v((t=_t(t)).getUTCFullYear()%100,n,2)}function Tt(t,n){return v(t.getUTCFullYear()%1e4,n,4)}function At(t,n){var e=t.getUTCDay();return v((t=e>=4||0===e?(0,r.hB)(t):r.hB.ceil(t)).getUTCFullYear()%1e4,n,4)}function St(){return"+0000"}function Nt(){return"%"}function Et(t){return+t}function kt(t){return Math.floor(+t/1e3)}},96199:function(t,n,e){"use strict";var r=e(52576),i=e(11262),o=(0,r.Z)((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.UD),(t=>t.getDate()-1));n.Z=o;o.range},11262:function(t,n,e){"use strict";e.d(n,{UD:function(){return u},Y2:function(){return o},Ym:function(){return r},iM:function(){return a},jz:function(){return c},qz:function(){return f},yB:function(){return i}});const r=1e3,i=60*r,o=60*i,u=24*o,a=7*u,c=30*u,f=365*u},52576:function(t,n,e){"use strict";e.d(n,{Z:function(){return o}});var r=new Date,i=new Date;function o(t,n,e,u){function a(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return a.floor=function(n){return t(n=new Date(+n)),n},a.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},a.round=function(t){var n=a(t),e=a.ceil(t);return t-n<e-t?n:e},a.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},a.range=function(e,r,i){var o,u=[];if(e=a.ceil(e),i=null==i?1:Math.floor(i),!(e<r)||!(i>0))return u;do{u.push(o=new Date(+e)),n(e,i),t(e)}while(o<e&&e<r);return u},a.filter=function(e){return o((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(a.count=function(n,o){return r.setTime(+n),i.setTime(+o),t(r),t(i),Math.floor(e(r,i))},a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?a.filter(u?function(n){return u(n)%t===0}:function(n){return a.count(0,n)%t===0}):a:null}),a}},74834:function(t,n,e){"use strict";var r=e(52576),i=e(11262),o=(0,r.Z)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/i.UD}),(function(t){return t.getUTCDate()-1}));n.Z=o;o.range},81416:function(t,n,e){"use strict";e.d(n,{Ox:function(){return u},hB:function(){return s},l6:function(){return a}});var r=e(52576),i=e(11262);function o(t){return(0,r.Z)((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/i.iM}))}var u=o(0),a=o(1),c=o(2),f=o(3),s=o(4),l=o(5),h=o(6);u.range,a.range,c.range,f.range,s.range,l.range,h.range},69935:function(t,n,e){"use strict";var r=e(52576),i=(0,r.Z)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null},n.Z=i;i.range},85235:function(t,n,e){"use strict";e.d(n,{OM:function(){return u},bL:function(){return s},wA:function(){return a}});var r=e(52576),i=e(11262);function o(t){return(0,r.Z)((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.iM}))}var u=o(0),a=o(1),c=o(2),f=o(3),s=o(4),l=o(5),h=o(6);u.range,a.range,c.range,f.range,s.range,l.range,h.range},38887:function(t,n,e){"use strict";var r=e(52576),i=(0,r.Z)((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null},n.Z=i;i.range},36358:function(t,n,e){"use strict";function r(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function i(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function o(t){let n,e,o;function a(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<0?i=n+1:o=n}while(i<o)}return i}return 2!==t.length?(n=r,e=(n,e)=>r(t(n),e),o=(n,e)=>t(n)-e):(n=t===r||t===i?t:u,e=t,o=t),{left:a,center:function(t,n,e=0,r=t.length){const i=a(t,n,e,r-1);return i>e&&o(t[i-1],n)>-o(t[i],n)?i-1:i},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<=0?i=n+1:o=n}while(i<o)}return i}}}function u(){return 0}function a(t){return null===t?NaN:+t}function*c(t,n){if(void 0===n)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}e.r(n),e.d(n,{Adder:function(){return C},Delaunay:function(){return Ju},FormatSpecifier:function(){return yf.v},InternMap:function(){return D.L},InternSet:function(){return D.H},Node:function(){return Dp},Path:function(){return co},Voronoi:function(){return Vu},ZoomTransform:function(){return Mw},active:function(){return di},arc:function(){return U_},area:function(){return O_},areaRadial:function(){return K_},ascending:function(){return r},autoType:function(){return Da},axisBottom:function(){return yn},axisLeft:function(){return vn},axisRight:function(){return gn},axisTop:function(){return pn},bin:function(){return ft},bisect:function(){return d},bisectCenter:function(){return h},bisectLeft:function(){return l},bisectRight:function(){return s},bisector:function(){return o},blob:function(){return wc},blur:function(){return p},blur2:function(){return g},blurImage:function(){return y},brush:function(){return Ii},brushSelection:function(){return qi},brushX:function(){return Bi},brushY:function(){return Yi},buffer:function(){return Tc},chord:function(){return Ji},chordDirected:function(){return no},chordTranspose:function(){return to},cluster:function(){return Sp},color:function(){return $r.ZP},contourDensity:function(){return Zu},contours:function(){return _u},count:function(){return x},create:function(){return f_},creator:function(){return Me},cross:function(){return A},csv:function(){return kc},csvFormat:function(){return ma},csvFormatBody:function(){return xa},csvFormatRow:function(){return Ma},csvFormatRows:function(){return wa},csvFormatValue:function(){return Ta},csvParse:function(){return _a},csvParseRows:function(){return ba},cubehelix:function(){return nu},cumsum:function(){return S},curveBasis:function(){return Ib},curveBasisClosed:function(){return Lb},curveBasisOpen:function(){return jb},curveBumpX:function(){return eb},curveBumpY:function(){return rb},curveBundle:function(){return Xb},curveCardinal:function(){return Qb},curveCardinalClosed:function(){return Jb},curveCardinalOpen:function(){return nm},curveCatmullRom:function(){return im},curveCatmullRomClosed:function(){return um},curveCatmullRomOpen:function(){return cm},curveLinear:function(){return q_},curveLinearClosed:function(){return sm},curveMonotoneX:function(){return _m},curveMonotoneY:function(){return bm},curveNatural:function(){return wm},curveStep:function(){return Tm},curveStepAfter:function(){return Sm},curveStepBefore:function(){return Am},descending:function(){return i},deviation:function(){return E},difference:function(){return Vt},disjoint:function(){return Xt},dispatch:function(){return Mn},drag:function(){return ua},dragDisable:function(){return Ie},dragEnable:function(){return Oe},dsv:function(){return Ec},dsvFormat:function(){return ya},easeBack:function(){return yc},easeBackIn:function(){return pc},easeBackInOut:function(){return yc},easeBackOut:function(){return gc},easeBounce:function(){return lc},easeBounceIn:function(){return sc},easeBounceInOut:function(){return hc},easeBounceOut:function(){return lc},easeCircle:function(){return Ja},easeCircleIn:function(){return Qa},easeCircleInOut:function(){return Ja},easeCircleOut:function(){return Ka},easeCubic:function(){return fi},easeCubicIn:function(){return ai},easeCubicInOut:function(){return fi},easeCubicOut:function(){return ci},easeElastic:function(){return bc},easeElasticIn:function(){return _c},easeElasticInOut:function(){return mc},easeElasticOut:function(){return bc},easeExp:function(){return Wa},easeExpIn:function(){return Xa},easeExpInOut:function(){return Wa},easeExpOut:function(){return Ga},easeLinear:function(){return Ua},easePoly:function(){return Ya},easePolyIn:function(){return qa},easePolyInOut:function(){return Ya},easePolyOut:function(){return Ba},easeQuad:function(){return $a},easeQuadIn:function(){return Fa},easeQuadInOut:function(){return $a},easeQuadOut:function(){return Ra},easeSin:function(){return ja},easeSinIn:function(){return La},easeSinInOut:function(){return ja},easeSinOut:function(){return Ha},every:function(){return Yt},extent:function(){return k},fcumsum:function(){return Z},filter:function(){return Ot},flatGroup:function(){return $},flatRollup:function(){return q},forceCenter:function(){return $c},forceCollide:function(){return Qc},forceLink:function(){return tf},forceManyBody:function(){return sf},forceRadial:function(){return lf},forceSimulation:function(){return ff},forceX:function(){return hf},forceY:function(){return df},format:function(){return pf.WU},formatDefaultLocale:function(){return pf.ZP},formatLocale:function(){return gf.Z},formatPrefix:function(){return pf.jH},formatSpecifier:function(){return yf.Z},fsum:function(){return P},geoAlbers:function(){return Yd},geoAlbersUsa:function(){return Id},geoArea:function(){return xs},geoAzimuthalEqualArea:function(){return jd},geoAzimuthalEqualAreaRaw:function(){return Hd},geoAzimuthalEquidistant:function(){return Xd},geoAzimuthalEquidistantRaw:function(){return Vd},geoBounds:function(){return el},geoCentroid:function(){return pl},geoCircle:function(){return Al},geoClipAntimeridian:function(){return Rl},geoClipCircle:function(){return $l},geoClipExtent:function(){return jl},geoClipRectangle:function(){return Hl},geoConicConformal:function(){return tp},geoConicConformalRaw:function(){return Jd},geoConicEqualArea:function(){return Bd},geoConicEqualAreaRaw:function(){return qd},geoConicEquidistant:function(){return ip},geoConicEquidistantRaw:function(){return rp},geoContains:function(){return fh},geoDistance:function(){return th},geoEqualEarth:function(){return lp},geoEqualEarthRaw:function(){return sp},geoEquirectangular:function(){return ep},geoEquirectangularRaw:function(){return np},geoGnomonic:function(){return dp},geoGnomonicRaw:function(){return hp},geoGraticule:function(){return dh},geoGraticule10:function(){return ph},geoIdentity:function(){return pp},geoInterpolate:function(){return gh},geoLength:function(){return Ql},geoMercator:function(){return Wd},geoMercatorRaw:function(){return Gd},geoNaturalEarth1:function(){return yp},geoNaturalEarth1Raw:function(){return gp},geoOrthographic:function(){return _p},geoOrthographicRaw:function(){return vp},geoPath:function(){return wd},geoProjection:function(){return Fd},geoProjectionMutator:function(){return Rd},geoRotation:function(){return wl},geoStereographic:function(){return mp},geoStereographicRaw:function(){return bp},geoStream:function(){return Qf},geoTransform:function(){return Md},geoTransverseMercator:function(){return wp},geoTransverseMercatorRaw:function(){return xp},gray:function(){return Uo},greatest:function(){return yt},greatestIndex:function(){return Dt},group:function(){return U},groupSort:function(){return W},groups:function(){return F},hcl:function(){return Lo},hierarchy:function(){return Ep},histogram:function(){return ft},hsl:function(){return $r.Ym},html:function(){return Fc},image:function(){return Pc},index:function(){return I},indexes:function(){return O},interpolate:function(){return Le.Z},interpolateArray:function(){return zg.Z},interpolateBasis:function(){return Ug.Z},interpolateBasisClosed:function(){return Fg.Z},interpolateBlues:function(){return Fv},interpolateBrBG:function(){return Xy},interpolateBuGn:function(){return hv},interpolateBuPu:function(){return pv},interpolateCividis:function(){return Vv},interpolateCool:function(){return Wv},interpolateCubehelix:function(){return ty},interpolateCubehelixDefault:function(){return Xv},interpolateCubehelixLong:function(){return ny},interpolateDate:function(){return Rg.Z},interpolateDiscrete:function(){return $g},interpolateGnBu:function(){return yv},interpolateGreens:function(){return $v},interpolateGreys:function(){return Bv},interpolateHcl:function(){return Qg},interpolateHclLong:function(){return Kg},interpolateHsl:function(){return Vg},interpolateHslLong:function(){return Xg},interpolateHue:function(){return Bg},interpolateInferno:function(){return a_},interpolateLab:function(){return Gg},interpolateMagma:function(){return u_},interpolateNumber:function(){return Er.Z},interpolateNumberArray:function(){return Yg.Z},interpolateObject:function(){return Ig.Z},interpolateOrRd:function(){return _v},interpolateOranges:function(){return jv},interpolatePRGn:function(){return Wy},interpolatePiYG:function(){return Ky},interpolatePlasma:function(){return c_},interpolatePuBu:function(){return wv},interpolatePuBuGn:function(){return mv},interpolatePuOr:function(){return tv},interpolatePuRd:function(){return Tv},interpolatePurples:function(){return Iv},interpolateRainbow:function(){return Kv},interpolateRdBu:function(){return ev},interpolateRdGy:function(){return iv},interpolateRdPu:function(){return Sv},interpolateRdYlBu:function(){return uv},interpolateRdYlGn:function(){return cv},interpolateReds:function(){return Lv},interpolateRgb:function(){return qr.ZP},interpolateRgbBasis:function(){return qr.hD},interpolateRgbBasisClosed:function(){return qr.YD},interpolateRound:function(){return Og.Z},interpolateSinebow:function(){return e_},interpolateSpectral:function(){return sv},interpolateString:function(){return Br.Z},interpolateTransformCss:function(){return Dr},interpolateTransformSvg:function(){return zr},interpolateTurbo:function(){return r_},interpolateViridis:function(){return o_},interpolateWarm:function(){return Gv},interpolateYlGn:function(){return Cv},interpolateYlGnBu:function(){return Ev},interpolateYlOrBr:function(){return Zv},interpolateYlOrRd:function(){return zv},interpolateZoom:function(){return Hg},interrupt:function(){return Sr},intersection:function(){return Gt},interval:function(){return mw},isoFormat:function(){return vw},isoParse:function(){return bw},json:function(){return Dc},lab:function(){return Fo},lch:function(){return Oo},least:function(){return Pt},leastIndex:function(){return Zt},line:function(){return I_},lineRadial:function(){return Q_},link:function(){return ab},linkHorizontal:function(){return cb},linkRadial:function(){return sb},linkVertical:function(){return fb},local:function(){return l_},map:function(){return Lt},matcher:function(){return kn},max:function(){return st},maxIndex:function(){return lt},mean:function(){return wt},median:function(){return Mt},medianIndex:function(){return Tt},merge:function(){return At},min:function(){return ht},minIndex:function(){return dt},mode:function(){return St},namespace:function(){return Ln},namespaces:function(){return On},nice:function(){return at},now:function(){return ir},pack:function(){return ig},packEnclose:function(){return Ip},packSiblings:function(){return eg},pairs:function(){return Nt},partition:function(){return sg},path:function(){return fo},pathRound:function(){return so},permute:function(){return j},pie:function(){return j_},piecewise:function(){return ey.Z},pointRadial:function(){return J_},pointer:function(){return je},pointers:function(){return d_},polygonArea:function(){return iy},polygonCentroid:function(){return oy},polygonContains:function(){return sy},polygonHull:function(){return fy},polygonLength:function(){return ly},precisionFixed:function(){return vf.Z},precisionPrefix:function(){return _f.Z},precisionRound:function(){return bf.Z},quadtree:function(){return Oc},quantile:function(){return vt},quantileIndex:function(){return bt},quantileSorted:function(){return _t},quantize:function(){return ry},quickselect:function(){return pt},radialArea:function(){return K_},radialLine:function(){return Q_},randomBates:function(){return _y},randomBernoulli:function(){return xy},randomBeta:function(){return Ty},randomBinomial:function(){return Ay},randomCauchy:function(){return Ny},randomExponential:function(){return by},randomGamma:function(){return My},randomGeometric:function(){return wy},randomInt:function(){return py},randomIrwinHall:function(){return vy},randomLcg:function(){return Dy},randomLogNormal:function(){return yy},randomLogistic:function(){return Ey},randomNormal:function(){return gy},randomPareto:function(){return my},randomPoisson:function(){return ky},randomUniform:function(){return dy},randomWeibull:function(){return Sy},range:function(){return kt},rank:function(){return Ct},reduce:function(){return Ht},reverse:function(){return jt},rgb:function(){return $r.B8},ribbon:function(){return wo},ribbonArrow:function(){return Mo},rollup:function(){return B},rollups:function(){return Y},scaleBand:function(){return zy.scaleBand},scaleDiverging:function(){return zy.scaleDiverging},scaleDivergingLog:function(){return zy.scaleDivergingLog},scaleDivergingPow:function(){return zy.scaleDivergingPow},scaleDivergingSqrt:function(){return zy.scaleDivergingSqrt},scaleDivergingSymlog:function(){return zy.scaleDivergingSymlog},scaleIdentity:function(){return zy.scaleIdentity},scaleImplicit:function(){return zy.scaleImplicit},scaleLinear:function(){return zy.scaleLinear},scaleLog:function(){return zy.scaleLog},scaleOrdinal:function(){return zy.scaleOrdinal},scalePoint:function(){return zy.scalePoint},scalePow:function(){return zy.scalePow},scaleQuantile:function(){return zy.scaleQuantile},scaleQuantize:function(){return zy.scaleQuantize},scaleRadial:function(){return zy.scaleRadial},scaleSequential:function(){return zy.scaleSequential},scaleSequentialLog:function(){return zy.scaleSequentialLog},scaleSequentialPow:function(){return zy.scaleSequentialPow},scaleSequentialQuantile:function(){return zy.scaleSequentialQuantile},scaleSequentialSqrt:function(){return zy.scaleSequentialSqrt},scaleSequentialSymlog:function(){return zy.scaleSequentialSymlog},scaleSqrt:function(){return zy.scaleSqrt},scaleSymlog:function(){return zy.scaleSymlog},scaleThreshold:function(){return zy.scaleThreshold},scaleTime:function(){return zy.scaleTime},scaleUtc:function(){return zy.scaleUtc},scan:function(){return zt},schemeAccent:function(){return Ry},schemeBlues:function(){return Uv},schemeBrBG:function(){return Vy},schemeBuGn:function(){return lv},schemeBuPu:function(){return dv},schemeCategory10:function(){return Fy},schemeDark2:function(){return $y},schemeGnBu:function(){return gv},schemeGreens:function(){return Rv},schemeGreys:function(){return qv},schemeOrRd:function(){return vv},schemeOranges:function(){return Hv},schemePRGn:function(){return Gy},schemePaired:function(){return qy},schemePastel1:function(){return By},schemePastel2:function(){return Yy},schemePiYG:function(){return Qy},schemePuBu:function(){return xv},schemePuBuGn:function(){return bv},schemePuOr:function(){return Jy},schemePuRd:function(){return Mv},schemePurples:function(){return Yv},schemeRdBu:function(){return nv},schemeRdGy:function(){return rv},schemeRdPu:function(){return Av},schemeRdYlBu:function(){return ov},schemeRdYlGn:function(){return av},schemeReds:function(){return Ov},schemeSet1:function(){return Iy},schemeSet2:function(){return Oy},schemeSet3:function(){return Ly},schemeSpectral:function(){return fv},schemeTableau10:function(){return Hy},schemeYlGn:function(){return kv},schemeYlGnBu:function(){return Nv},schemeYlOrBr:function(){return Pv},schemeYlOrRd:function(){return Dv},select:function(){return Re},selectAll:function(){return p_},selection:function(){return Fe},selector:function(){return An},selectorAll:function(){return En},shuffle:function(){return Ut},shuffler:function(){return Ft},some:function(){return It},sort:function(){return V},stack:function(){return Pm},stackOffsetDiverging:function(){return Dm},stackOffsetExpand:function(){return Zm},stackOffsetNone:function(){return Nm},stackOffsetSilhouette:function(){return zm},stackOffsetWiggle:function(){return Um},stackOrderAppearance:function(){return Fm},stackOrderAscending:function(){return $m},stackOrderDescending:function(){return Bm},stackOrderInsideOut:function(){return Ym},stackOrderNone:function(){return Em},stackOrderReverse:function(){return Im},stratify:function(){return yg},style:function(){return ne},subset:function(){return Jt},sum:function(){return Rt},superset:function(){return Qt},svg:function(){return Rc},symbol:function(){return $b},symbolAsterisk:function(){return hb},symbolCircle:function(){return db},symbolCross:function(){return pb},symbolDiamond:function(){return vb},symbolDiamond2:function(){return _b},symbolPlus:function(){return bb},symbolSquare:function(){return mb},symbolSquare2:function(){return xb},symbolStar:function(){return Ab},symbolTimes:function(){return Ub},symbolTriangle:function(){return Nb},symbolTriangle2:function(){return kb},symbolWye:function(){return zb},symbolX:function(){return Ub},symbols:function(){return Fb},symbolsFill:function(){return Fb},symbolsStroke:function(){return Rb},text:function(){return Sc},thresholdFreedmanDiaconis:function(){return mt},thresholdScott:function(){return xt},thresholdSturges:function(){return ct},tickFormat:function(){return zy.tickFormat},tickIncrement:function(){return ot},tickStep:function(){return ut},ticks:function(){return it},timeDay:function(){return lx},timeDays:function(){return hx},timeFormat:function(){return dw.i$},timeFormatDefaultLocale:function(){return dw.ZP},timeFormatLocale:function(){return pw.Z},timeFriday:function(){return Mx},timeFridays:function(){return Cx},timeHour:function(){return ax},timeHours:function(){return cx},timeInterval:function(){return Hm},timeMillisecond:function(){return jm},timeMilliseconds:function(){return Vm},timeMinute:function(){return rx},timeMinutes:function(){return ix},timeMonday:function(){return bx},timeMondays:function(){return Sx},timeMonth:function(){return Vx},timeMonths:function(){return Xx},timeParse:function(){return dw.Z1},timeSaturday:function(){return Tx},timeSaturdays:function(){return Px},timeSecond:function(){return nx},timeSeconds:function(){return ex},timeSunday:function(){return _x},timeSundays:function(){return Ax},timeThursday:function(){return wx},timeThursdays:function(){return kx},timeTickInterval:function(){return hw},timeTicks:function(){return lw},timeTuesday:function(){return mx},timeTuesdays:function(){return Nx},timeWednesday:function(){return xx},timeWednesdays:function(){return Ex},timeWeek:function(){return _x},timeWeeks:function(){return Ax},timeYear:function(){return Qx},timeYears:function(){return Kx},timeout:function(){return hr},timer:function(){return ar},timerFlush:function(){return cr},transition:function(){return ii},transpose:function(){return $t},tree:function(){return Ag},treemap:function(){return Cg},treemapBinary:function(){return Pg},treemapDice:function(){return fg},treemapResquarify:function(){return Dg},treemapSlice:function(){return Sg},treemapSliceDice:function(){return Zg},treemapSquarify:function(){return kg},tsv:function(){return Cc},tsvFormat:function(){return Ea},tsvFormatBody:function(){return ka},tsvFormatRow:function(){return Pa},tsvFormatRows:function(){return Ca},tsvFormatValue:function(){return Za},tsvParse:function(){return Sa},tsvParseRows:function(){return Na},union:function(){return tn},unixDay:function(){return gx},unixDays:function(){return yx},utcDay:function(){return dx},utcDays:function(){return px},utcFormat:function(){return dw.g0},utcFriday:function(){return $x},utcFridays:function(){return Hx},utcHour:function(){return fx},utcHours:function(){return sx},utcMillisecond:function(){return jm},utcMilliseconds:function(){return Vm},utcMinute:function(){return ox},utcMinutes:function(){return ux},utcMonday:function(){return zx},utcMondays:function(){return Yx},utcMonth:function(){return Gx},utcMonths:function(){return Wx},utcParse:function(){return dw.wp},utcSaturday:function(){return qx},utcSaturdays:function(){return jx},utcSecond:function(){return nx},utcSeconds:function(){return ex},utcSunday:function(){return Dx},utcSundays:function(){return Bx},utcThursday:function(){return Rx},utcThursdays:function(){return Lx},utcTickInterval:function(){return sw},utcTicks:function(){return fw},utcTuesday:function(){return Ux},utcTuesdays:function(){return Ix},utcWednesday:function(){return Fx},utcWednesdays:function(){return Ox},utcWeek:function(){return Dx},utcWeeks:function(){return Bx},utcYear:function(){return Jx},utcYears:function(){return tw},variance:function(){return N},window:function(){return Qn},xml:function(){return Uc},zip:function(){return Bt},zoom:function(){return zw},zoomIdentity:function(){return Tw},zoomTransform:function(){return Aw}});const f=o(r),s=f.right,l=f.left,h=o(a).center;var d=s;function p(t,n){if(!((n=+n)>=0))throw new RangeError("invalid r");let e=t.length;if(!((e=Math.floor(e))>=0))throw new RangeError("invalid length");if(!e||!n)return t;const r=m(n),i=t.slice();return r(t,i,0,e,1),r(i,t,0,e,1),r(t,i,0,e,1),t}const g=v(m),y=v((function(t){const n=m(t);return(t,e,r,i,o)=>{n(t,e,(r<<=2)+0,(i<<=2)+0,o<<=2),n(t,e,r+1,i+1,o),n(t,e,r+2,i+2,o),n(t,e,r+3,i+3,o)}}));function v(t){return function(n,e,r=e){if(!((e=+e)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:u}=n;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((u=Math.floor(void 0!==u?u:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!u||!e&&!r)return n;const a=e&&t(e),c=r&&t(r),f=i.slice();return a&&c?(_(a,f,i,o,u),_(a,i,f,o,u),_(a,f,i,o,u),b(c,i,f,o,u),b(c,f,i,o,u),b(c,i,f,o,u)):a?(_(a,i,f,o,u),_(a,f,i,o,u),_(a,i,f,o,u)):c&&(b(c,i,f,o,u),b(c,f,i,o,u),b(c,i,f,o,u)),n}}function _(t,n,e,r,i){for(let o=0,u=r*i;o<u;)t(n,e,o,o+=r,1)}function b(t,n,e,r,i){for(let o=0,u=r*i;o<r;++o)t(n,e,o,o+u,r)}function m(t){const n=Math.floor(t);if(n===t)return function(t){const n=2*t+1;return(e,r,i,o,u)=>{if(!((o-=u)>=i))return;let a=t*r[i];const c=u*t;for(let t=i,n=i+c;t<n;t+=u)a+=r[Math.min(o,t)];for(let t=i,f=o;t<=f;t+=u)a+=r[Math.min(o,t+c)],e[t]=a/n,a-=r[Math.max(i,t-c)]}}(t);const e=t-n,r=2*t+1;return(t,i,o,u,a)=>{if(!((u-=a)>=o))return;let c=n*i[o];const f=a*n,s=f+a;for(let n=o,e=o+f;n<e;n+=a)c+=i[Math.min(u,n)];for(let n=o,l=u;n<=l;n+=a)c+=i[Math.min(u,n+f)],t[n]=(c+e*(i[Math.max(o,n-s)]+i[Math.min(u,n+s)]))/r,c-=i[Math.max(o,n-f)]}}function x(t,n){let e=0;if(void 0===n)for(let r of t)null!=r&&(r=+r)>=r&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function w(t){return 0|t.length}function M(t){return!(t>0)}function T(t){return"object"!==typeof t||"length"in t?t:Array.from(t)}function A(...t){const n="function"===typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),e=(t=t.map(T)).map(w),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||e.some(M))return o;for(;;){o.push(i.map(((n,e)=>t[e][n])));let u=r;for(;++i[u]===e[u];){if(0===u)return n?o.map(n):o;i[u--]=0}}}function S(t,n){var e=0,r=0;return Float64Array.from(t,void 0===n?t=>e+=+t||0:i=>e+=+n(i,r++,t)||0)}function N(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let u of t)null!=u&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i));else{let u=-1;for(let a of t)null!=(a=n(a,++u,t))&&(a=+a)>=a&&(e=a-i,i+=e/++r,o+=e*(a-i))}if(r>1)return o/(r-1)}function E(t,n){const e=N(t,n);return e?Math.sqrt(e):e}function k(t,n){let e,r;if(void 0===n)for(const i of t)null!=i&&(void 0===e?i>=i&&(e=r=i):(e>i&&(e=i),r<i&&(r=i)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}class C{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,u=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);u&&(n[e++]=u),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}function P(t,n){const e=new C;if(void 0===n)for(let r of t)(r=+r)&&e.add(r);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&e.add(i)}return+e}function Z(t,n){const e=new C;let r=-1;return Float64Array.from(t,void 0===n?t=>e.add(+t||0):i=>e.add(+n(i,++r,t)||0))}var D=e(909);function z(t){return t}function U(t,...n){return H(t,z,z,n)}function F(t,...n){return H(t,Array.from,z,n)}function R(t,n){for(let e=1,r=n.length;e<r;++e)t=t.flatMap((t=>t.pop().map((([n,e])=>[...t,n,e]))));return t}function $(t,...n){return R(F(t,...n),n)}function q(t,n,...e){return R(Y(t,n,...e),e)}function B(t,n,...e){return H(t,z,n,e)}function Y(t,n,...e){return H(t,Array.from,n,e)}function I(t,...n){return H(t,z,L,n)}function O(t,...n){return H(t,Array.from,L,n)}function L(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function H(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const u=new D.L,a=r[o++];let c=-1;for(const n of i){const t=a(n,++c,i),e=u.get(t);e?e.push(n):u.set(t,[n])}for(const[n,e]of u)u.set(n,t(e,o));return n(u)}(t,0)}function j(t,n){return Array.from(n,(n=>t[n]))}function V(t,...n){if("function"!==typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e]=n;if(e&&2!==e.length||n.length>1){const r=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),r.sort(((t,e)=>{for(const r of n){const n=G(r[t],r[e]);if(n)return n}}))):(e=t.map(e),r.sort(((t,n)=>G(e[t],e[n])))),j(t,r)}return t.sort(X(e))}function X(t=r){if(t===r)return G;if("function"!==typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function G(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function W(t,n,e){return(2!==n.length?V(B(t,n,e),(([t,n],[e,i])=>r(n,i)||r(t,e))):V(U(t,e),(([t,e],[i,o])=>n(e,o)||r(t,i)))).map((([t])=>t))}var Q=Array.prototype,K=Q.slice;Q.map;function J(t){return()=>t}const tt=Math.sqrt(50),nt=Math.sqrt(10),et=Math.sqrt(2);function rt(t,n,e){const r=(n-t)/Math.max(0,e),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),u=o>=tt?10:o>=nt?5:o>=et?2:1;let a,c,f;return i<0?(f=Math.pow(10,-i)/u,a=Math.round(t*f),c=Math.round(n*f),a/f<t&&++a,c/f>n&&--c,f=-f):(f=Math.pow(10,i)*u,a=Math.round(t/f),c=Math.round(n/f),a*f<t&&++a,c*f>n&&--c),c<a&&.5<=e&&e<2?rt(t,n,2*e):[a,c,f]}function it(t,n,e){if(!((e=+e)>0))return[];if((t=+t)===(n=+n))return[t];const r=n<t,[i,o,u]=r?rt(n,t,e):rt(t,n,e);if(!(o>=i))return[];const a=o-i+1,c=new Array(a);if(r)if(u<0)for(let f=0;f<a;++f)c[f]=(o-f)/-u;else for(let f=0;f<a;++f)c[f]=(o-f)*u;else if(u<0)for(let f=0;f<a;++f)c[f]=(i+f)/-u;else for(let f=0;f<a;++f)c[f]=(i+f)*u;return c}function ot(t,n,e){return rt(t=+t,n=+n,e=+e)[2]}function ut(t,n,e){e=+e;const r=(n=+n)<(t=+t),i=r?ot(n,t,e):ot(t,n,e);return(r?-1:1)*(i<0?1/-i:i)}function at(t,n,e){let r;for(;;){const i=ot(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}function ct(t){return Math.max(1,Math.ceil(Math.log(x(t))/Math.LN2)+1)}function ft(){var t=z,n=k,e=ct;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,u,a=r.length,c=new Array(a);for(i=0;i<a;++i)c[i]=t(r[i],i,r);var f=n(c),s=f[0],l=f[1],h=e(c,s,l);if(!Array.isArray(h)){const t=l,e=+h;if(n===k&&([s,l]=at(s,l,e)),(h=it(s,l,e))[0]<=s&&(u=ot(s,l,e)),h[h.length-1]>=l)if(t>=l&&n===k){const t=ot(s,l,e);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}for(var p=h.length,g=0,y=p;h[g]<=s;)++g;for(;h[y-1]>l;)--y;(g||y<p)&&(h=h.slice(g,y),p=y-g);var v,_=new Array(p+1);for(i=0;i<=p;++i)(v=_[i]=[]).x0=i>0?h[i-1]:s,v.x1=i<p?h[i]:l;if(isFinite(u)){if(u>0)for(i=0;i<a;++i)null!=(o=c[i])&&s<=o&&o<=l&&_[Math.min(p,Math.floor((o-s)/u))].push(r[i]);else if(u<0)for(i=0;i<a;++i)if(null!=(o=c[i])&&s<=o&&o<=l){const t=Math.floor((s-o)*u);_[Math.min(p,t+(h[t]<=o))].push(r[i])}}else for(i=0;i<a;++i)null!=(o=c[i])&&s<=o&&o<=l&&_[d(h,o,0,p)].push(r[i]);return _}return r.value=function(n){return arguments.length?(t="function"===typeof n?n:J(n),r):t},r.domain=function(t){return arguments.length?(n="function"===typeof t?t:J([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"===typeof t?t:J(Array.isArray(t)?K.call(t):t),r):e},r}function st(t,n){let e;if(void 0===n)for(const r of t)null!=r&&(e<r||void 0===e&&r>=r)&&(e=r);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function lt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const o of t)++i,null!=o&&(e<o||void 0===e&&o>=o)&&(e=o,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e<o||void 0===e&&o>=o)&&(e=o,r=i);return r}function ht(t,n){let e;if(void 0===n)for(const r of t)null!=r&&(e>r||void 0===e&&r>=r)&&(e=r);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function dt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const o of t)++i,null!=o&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);return r}function pt(t,n,e=0,r=1/0,i){if(n=Math.floor(n),e=Math.floor(Math.max(0,e)),r=Math.floor(Math.min(t.length-1,r)),!(e<=n&&n<=r))return t;for(i=void 0===i?G:X(i);r>e;){if(r-e>600){const o=r-e+1,u=n-e+1,a=Math.log(o),c=.5*Math.exp(2*a/3),f=.5*Math.sqrt(a*c*(o-c)/o)*(u-o/2<0?-1:1);pt(t,n,Math.max(e,Math.floor(n-u*c/o+f)),Math.min(r,Math.floor(n+(o-u)*c/o+f)),i)}const o=t[n];let u=e,a=r;for(gt(t,e,n),i(t[r],o)>0&&gt(t,e,r);u<a;){for(gt(t,u,a),++u,--a;i(t[u],o)<0;)++u;for(;i(t[a],o)>0;)--a}0===i(t[e],o)?gt(t,e,a):(++a,gt(t,a,r)),a<=n&&(e=a+1),n<=a&&(r=a-1)}return t}function gt(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function yt(t,n=r){let e,i=!1;if(1===n.length){let o;for(const u of t){const t=n(u);(i?r(t,o)>0:0===r(t,t))&&(e=u,o=t,i=!0)}}else for(const r of t)(i?n(r,e)>0:0===n(r,r))&&(e=r,i=!0);return e}function vt(t,n,e){if((r=(t=Float64Array.from(c(t,e))).length)&&!isNaN(n=+n)){if(n<=0||r<2)return ht(t);if(n>=1)return st(t);var r,i=(r-1)*n,o=Math.floor(i),u=st(pt(t,o).subarray(0,o+1));return u+(ht(t.subarray(o+1))-u)*(i-o)}}function _t(t,n,e=a){if((r=t.length)&&!isNaN(n=+n)){if(n<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t);return u+(+e(t[o+1],o+1,t)-u)*(i-o)}}function bt(t,n,e){if((r=(t=Float64Array.from(c(t,e))).length)&&!isNaN(n=+n)){if(n<=0||r<2)return dt(t);if(n>=1)return lt(t);var r,i=Math.floor((r-1)*n),o=pt(Uint32Array.from(t,((t,n)=>n)),i,0,r-1,((n,e)=>G(t[n],t[e])));return yt(o.subarray(0,i+1),(n=>t[n]))}}function mt(t,n,e){const r=x(t),i=vt(t,.75)-vt(t,.25);return r&&i?Math.ceil((e-n)/(2*i*Math.pow(r,-1/3))):1}function xt(t,n,e){const r=x(t),i=E(t);return r&&i?Math.ceil((e-n)*Math.cbrt(r)/(3.49*i)):1}function wt(t,n){let e=0,r=0;if(void 0===n)for(let i of t)null!=i&&(i=+i)>=i&&(++e,r+=i);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(o=+o)>=o&&(++e,r+=o)}if(e)return r/e}function Mt(t,n){return vt(t,.5,n)}function Tt(t,n){return bt(t,.5,n)}function At(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function St(t,n){const e=new D.L;if(void 0===n)for(let o of t)null!=o&&o>=o&&e.set(o,(e.get(o)||0)+1);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&i>=i&&e.set(i,(e.get(i)||0)+1)}let r,i=0;for(const[o,u]of e)u>i&&(i=u,r=o);return r}function Nt(t,n=Et){const e=[];let r,i=!1;for(const o of t)i&&e.push(n(r,o)),r=o,i=!0;return e}function Et(t,n){return[t,n]}function kt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function Ct(t,n=r){if("function"!==typeof t[Symbol.iterator])throw new TypeError("values is not iterable");let e=Array.from(t);const i=new Float64Array(e.length);2!==n.length&&(e=e.map(n),n=r);const o=(t,r)=>n(e[t],e[r]);let u,a;return(t=Uint32Array.from(e,((t,n)=>n))).sort(n===r?(t,n)=>G(e[t],e[n]):X(o)),t.forEach(((t,n)=>{const e=o(t,void 0===u?t:u);e>=0?((void 0===u||e>0)&&(u=t,a=n),i[t]=a):i[t]=NaN})),i}function Pt(t,n=r){let e,i=!1;if(1===n.length){let o;for(const u of t){const t=n(u);(i?r(t,o)<0:0===r(t,t))&&(e=u,o=t,i=!0)}}else for(const r of t)(i?n(r,e)<0:0===n(r,r))&&(e=r,i=!0);return e}function Zt(t,n=r){if(1===n.length)return dt(t,n);let e,i=-1,o=-1;for(const r of t)++o,(i<0?0===n(r,r):n(r,e)<0)&&(e=r,i=o);return i}function Dt(t,n=r){if(1===n.length)return lt(t,n);let e,i=-1,o=-1;for(const r of t)++o,(i<0?0===n(r,r):n(r,e)>0)&&(e=r,i=o);return i}function zt(t,n){const e=Zt(t,n);return e<0?void 0:e}var Ut=Ft(Math.random);function Ft(t){return function(n,e=0,r=n.length){let i=r-(e=+e);for(;i;){const r=t()*i--|0,o=n[i+e];n[i+e]=n[r+e],n[r+e]=o}return n}}function Rt(t,n){let e=0;if(void 0===n)for(let r of t)(r=+r)&&(e+=r);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e}function $t(t){if(!(i=t.length))return[];for(var n=-1,e=ht(t,qt),r=new Array(e);++n<e;)for(var i,o=-1,u=r[n]=new Array(i);++o<i;)u[o]=t[o][n];return r}function qt(t){return t.length}function Bt(){return $t(arguments)}function Yt(t,n){if("function"!==typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(!n(r,++e,t))return!1;return!0}function It(t,n){if("function"!==typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(n(r,++e,t))return!0;return!1}function Ot(t,n){if("function"!==typeof n)throw new TypeError("test is not a function");const e=[];let r=-1;for(const i of t)n(i,++r,t)&&e.push(i);return e}function Lt(t,n){if("function"!==typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!==typeof n)throw new TypeError("mapper is not a function");return Array.from(t,((e,r)=>n(e,r,t)))}function Ht(t,n,e){if("function"!==typeof n)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,u=-1;if(arguments.length<3){if(({done:i,value:e}=r.next()),i)return;++u}for(;({done:i,value:o}=r.next()),!i;)e=n(e,o,++u,t);return e}function jt(t){if("function"!==typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Vt(t,...n){t=new D.H(t);for(const e of n)for(const n of e)t.delete(n);return t}function Xt(t,n){const e=n[Symbol.iterator](),r=new D.H;for(const i of t){if(r.has(i))return!1;let t,n;for(;({value:t,done:n}=e.next())&&!n;){if(Object.is(i,t))return!1;r.add(t)}}return!0}function Gt(t,...n){t=new D.H(t),n=n.map(Wt);t:for(const e of t)for(const r of n)if(!r.has(e)){t.delete(e);continue t}return t}function Wt(t){return t instanceof D.H?t:new D.H(t)}function Qt(t,n){const e=t[Symbol.iterator](),r=new Set;for(const i of n){const t=Kt(i);if(r.has(t))continue;let n,o;for(;({value:n,done:o}=e.next());){if(o)return!1;const e=Kt(n);if(r.add(e),Object.is(t,e))break}}return!0}function Kt(t){return null!==t&&"object"===typeof t?t.valueOf():t}function Jt(t,n){return Qt(n,t)}function tn(...t){const n=new D.H;for(const e of t)for(const t of e)n.add(t);return n}function nn(t){return t}var en=1,rn=2,on=3,un=4,an=1e-6;function cn(t){return"translate("+t+",0)"}function fn(t){return"translate(0,"+t+")"}function sn(t){return n=>+t(n)}function ln(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function hn(){return!this.__axis}function dn(t,n){var e=[],r=null,i=null,o=6,u=6,a=3,c="undefined"!==typeof window&&window.devicePixelRatio>1?0:.5,f=t===en||t===un?-1:1,s=t===un||t===rn?"x":"y",l=t===en||t===on?cn:fn;function h(h){var d=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,p=null==i?n.tickFormat?n.tickFormat.apply(n,e):nn:i,g=Math.max(o,0)+a,y=n.range(),v=+y[0]+c,_=+y[y.length-1]+c,b=(n.bandwidth?ln:sn)(n.copy(),c),m=h.selection?h.selection():h,x=m.selectAll(".domain").data([null]),w=m.selectAll(".tick").data(d,n).order(),M=w.exit(),T=w.enter().append("g").attr("class","tick"),A=w.select("line"),S=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(T),A=A.merge(T.append("line").attr("stroke","currentColor").attr(s+"2",f*o)),S=S.merge(T.append("text").attr("fill","currentColor").attr(s,f*g).attr("dy",t===en?"0em":t===on?"0.71em":"0.32em")),h!==m&&(x=x.transition(h),w=w.transition(h),A=A.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",an).attr("transform",(function(t){return isFinite(t=b(t))?l(t+c):this.getAttribute("transform")})),T.attr("opacity",an).attr("transform",(function(t){var n=this.parentNode.__axis;return l((n&&isFinite(n=n(t))?n:b(t))+c)}))),M.remove(),x.attr("d",t===un||t===rn?u?"M"+f*u+","+v+"H"+c+"V"+_+"H"+f*u:"M"+c+","+v+"V"+_:u?"M"+v+","+f*u+"V"+c+"H"+_+"V"+f*u:"M"+v+","+c+"H"+_),w.attr("opacity",1).attr("transform",(function(t){return l(b(t)+c)})),A.attr(s+"2",f*o),S.attr(s,f*g).text(p),m.filter(hn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===rn?"start":t===un?"end":"middle"),m.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return e=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(e=null==t?[]:Array.from(t),h):e.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=u=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(u=+t,h):u},h.tickPadding=function(t){return arguments.length?(a=+t,h):a},h.offset=function(t){return arguments.length?(c=+t,h):c},h}function pn(t){return dn(en,t)}function gn(t){return dn(rn,t)}function yn(t){return dn(on,t)}function vn(t){return dn(un,t)}var _n={value:()=>{}};function bn(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new mn(r)}function mn(t){this._=t}function xn(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function wn(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=_n,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}mn.prototype=bn.prototype={constructor:mn,on:function(t,n){var e,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");if(e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),u=-1,a=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!==typeof n)throw new Error("invalid callback: "+n);for(;++u<a;)if(e=(t=o[u]).type)i[e]=wn(i[e],t.name,n);else if(null==n)for(e in i)i[e]=wn(i[e],t.name,null);return this}for(;++u<a;)if((e=(t=o[u]).type)&&(e=xn(i[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new mn(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var Mn=bn;function Tn(){}function An(t){return null==t?Tn:function(){return this.querySelector(t)}}function Sn(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Nn(){return[]}function En(t){return null==t?Nn:function(){return this.querySelectorAll(t)}}function kn(t){return function(){return this.matches(t)}}function Cn(t){return function(n){return n.matches(t)}}var Pn=Array.prototype.find;function Zn(){return this.firstElementChild}var Dn=Array.prototype.filter;function zn(){return Array.from(this.children)}function Un(t){return new Array(t.length)}function Fn(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Rn(t,n,e,r,i,o){for(var u,a=0,c=n.length,f=o.length;a<f;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new Fn(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function $n(t,n,e,r,i,o,u){var a,c,f,s=new Map,l=n.length,h=o.length,d=new Array(l);for(a=0;a<l;++a)(c=n[a])&&(d[a]=f=u.call(c,c.__data__,a,n)+"",s.has(f)?i[a]=c:s.set(f,c));for(a=0;a<h;++a)f=u.call(t,o[a],a,o)+"",(c=s.get(f))?(r[a]=c,c.__data__=o[a],s.delete(f)):e[a]=new Fn(t,o[a]);for(a=0;a<l;++a)(c=n[a])&&s.get(d[a])===c&&(i[a]=c)}function qn(t){return t.__data__}function Bn(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}function Yn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Fn.prototype={constructor:Fn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var In="http://www.w3.org/1999/xhtml",On={svg:"http://www.w3.org/2000/svg",xhtml:In,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ln(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),On.hasOwnProperty(n)?{space:On[n],local:t}:t}function Hn(t){return function(){this.removeAttribute(t)}}function jn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Vn(t,n){return function(){this.setAttribute(t,n)}}function Xn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Gn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Wn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Qn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Kn(t){return function(){this.style.removeProperty(t)}}function Jn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function te(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function ne(t,n){return t.style.getPropertyValue(n)||Qn(t).getComputedStyle(t,null).getPropertyValue(n)}function ee(t){return function(){delete this[t]}}function re(t,n){return function(){this[t]=n}}function ie(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function oe(t){return t.trim().split(/^|\s+/)}function ue(t){return t.classList||new ae(t)}function ae(t){this._node=t,this._names=oe(t.getAttribute("class")||"")}function ce(t,n){for(var e=ue(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function fe(t,n){for(var e=ue(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function se(t){return function(){ce(this,t)}}function le(t){return function(){fe(this,t)}}function he(t,n){return function(){(n.apply(this,arguments)?ce:fe)(this,t)}}function de(){this.textContent=""}function pe(t){return function(){this.textContent=t}}function ge(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function ye(){this.innerHTML=""}function ve(t){return function(){this.innerHTML=t}}function _e(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function be(){this.nextSibling&&this.parentNode.appendChild(this)}function me(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xe(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===In&&n.documentElement.namespaceURI===In?n.createElement(t):n.createElementNS(e,t)}}function we(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Me(t){var n=Ln(t);return(n.local?we:xe)(n)}function Te(){return null}function Ae(){var t=this.parentNode;t&&t.removeChild(this)}function Se(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ne(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ee(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function ke(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var u=0,a=i.length;u<a;++u)if((r=i[u]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function Ce(t,n,e){var r=Qn(t),i=r.CustomEvent;"function"===typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Pe(t,n){return function(){return Ce(this,t,n)}}function Ze(t,n){return function(){return Ce(this,t,n.apply(this,arguments))}}ae.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var De=[null];function ze(t,n){this._groups=t,this._parents=n}function Ue(){return new ze([[document.documentElement]],De)}ze.prototype=Ue.prototype={constructor:ze,select:function(t){"function"!==typeof t&&(t=An(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,f=r[i]=new Array(c),s=0;s<c;++s)(o=a[s])&&(u=t.call(o,o.__data__,s,a))&&("__data__"in o&&(u.__data__=o.__data__),f[s]=u);return new ze(r,this._parents)},selectAll:function(t){t="function"===typeof t?function(t){return function(){return Sn(t.apply(this,arguments))}}(t):En(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,f=0;f<c;++f)(u=a[f])&&(r.push(t.call(u,u.__data__,f,a)),i.push(u));return new ze(r,i)},selectChild:function(t){return this.select(null==t?Zn:function(t){return function(){return Pn.call(this.children,t)}}("function"===typeof t?t:Cn(t)))},selectChildren:function(t){return this.selectAll(null==t?zn:function(t){return function(){return Dn.call(this.children,t)}}("function"===typeof t?t:Cn(t)))},filter:function(t){"function"!==typeof t&&(t=kn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],f=0;f<a;++f)(o=u[f])&&t.call(o,o.__data__,f,u)&&c.push(o);return new ze(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,qn);var e=n?$n:Rn,r=this._parents,i=this._groups;"function"!==typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),f=0;f<o;++f){var s=r[f],l=i[f],h=l.length,d=Bn(t.call(s,s&&s.__data__,f,r)),p=d.length,g=a[f]=new Array(p),y=u[f]=new Array(p);e(s,l,g,y,c[f]=new Array(h),d,n);for(var v,_,b=0,m=0;b<p;++b)if(v=g[b]){for(b>=m&&(m=b+1);!(_=y[m])&&++m<p;);v._next=_||null}}return(u=new ze(u,r))._enter=a,u._exit=c,u},enter:function(){return new ze(this._enter||this._groups.map(Un),this._parents)},exit:function(){return new ze(this._exit||this._groups.map(Un),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return"function"===typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=n&&(i=n(i))&&(i=i.selection()),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,o=r.length,u=Math.min(i,o),a=new Array(i),c=0;c<u;++c)for(var f,s=e[c],l=r[c],h=s.length,d=a[c]=new Array(h),p=0;p<h;++p)(f=s[p]||l[p])&&(d[p]=f);for(;c<i;++c)a[c]=e[c];return new ze(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Yn);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,f=i[o]=new Array(c),s=0;s<c;++s)(u=a[s])&&(f[s]=u);f.sort(n)}return new ze(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=Ln(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?jn:Hn:"function"===typeof n?e.local?Wn:Gn:e.local?Xn:Vn)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?Kn:"function"===typeof n?te:Jn)(t,n,null==e?"":e)):ne(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?ee:"function"===typeof n?ie:re)(t,n)):this.node()[t]},classed:function(t,n){var e=oe(t+"");if(arguments.length<2){for(var r=ue(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"===typeof n?he:n?se:le)(e,n))},text:function(t){return arguments.length?this.each(null==t?de:("function"===typeof t?ge:pe)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ye:("function"===typeof t?_e:ve)(t)):this.node().innerHTML},raise:function(){return this.each(be)},lower:function(){return this.each(me)},append:function(t){var n="function"===typeof t?t:Me(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"===typeof t?t:Me(t),r=null==n?Te:"function"===typeof n?n:An(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Ae)},clone:function(t){return this.select(t?Ne:Se)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?ke:Ee,r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,f=0,s=a.length;f<s;++f)for(r=0,c=a[f];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"===typeof n?Ze:Pe)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,u=i.length;o<u;++o)(r=i[o])&&(yield r)}};var Fe=Ue;function Re(t){return"string"===typeof t?new ze([[document.querySelector(t)]],[document.documentElement]):new ze([[t]],De)}const $e={passive:!1},qe={capture:!0,passive:!1};function Be(t){t.stopImmediatePropagation()}function Ye(t){t.preventDefault(),t.stopImmediatePropagation()}function Ie(t){var n=t.document.documentElement,e=Re(t).on("dragstart.drag",Ye,qe);"onselectstart"in n?e.on("selectstart.drag",Ye,qe):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Oe(t,n){var e=t.document.documentElement,r=Re(t).on("dragstart.drag",null);n&&(r.on("click.drag",Ye,qe),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}var Le=e(45326);function He(t){let n;for(;n=t.sourceEvent;)t=n;return t}function je(t,n){if(t=He(t),void 0===n&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(n.getScreenCTM().inverse())).x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]}var Ve,Xe,Ge=0,We=0,Qe=0,Ke=1e3,Je=0,tr=0,nr=0,er="object"===typeof performance&&performance.now?performance:Date,rr="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ir(){return tr||(rr(or),tr=er.now()+nr)}function or(){tr=0}function ur(){this._call=this._time=this._next=null}function ar(t,n,e){var r=new ur;return r.restart(t,n,e),r}function cr(){ir(),++Ge;for(var t,n=Ve;n;)(t=tr-n._time)>=0&&n._call.call(void 0,t),n=n._next;--Ge}function fr(){tr=(Je=er.now())+nr,Ge=We=0;try{cr()}finally{Ge=0,function(){var t,n,e=Ve,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ve=n);Xe=t,lr(r)}(),tr=0}}function sr(){var t=er.now(),n=t-Je;n>Ke&&(nr-=n,Je=t)}function lr(t){Ge||(We&&(We=clearTimeout(We)),t-tr>24?(t<1/0&&(We=setTimeout(fr,t-er.now()-nr)),Qe&&(Qe=clearInterval(Qe))):(Qe||(Je=er.now(),Qe=setInterval(sr,Ke)),Ge=1,rr(fr)))}function hr(t,n,e){var r=new ur;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}ur.prototype=ar.prototype={constructor:ur,restart:function(t,n,e){if("function"!==typeof t)throw new TypeError("callback is not a function");e=(null==e?ir():+e)+(null==n?0:+n),this._next||Xe===this||(Xe?Xe._next=this:Ve=this,Xe=this),this._call=t,this._time=e,lr()},stop:function(){this._call&&(this._call=null,this._time=1/0,lr())}};var dr=Mn("start","end","cancel","interrupt"),pr=[],gr=0,yr=1,vr=2,_r=3,br=4,mr=5,xr=6;function wr(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(t){e.state=yr,e.timer.restart(u,e.delay,e.time),e.delay<=t&&u(t-e.delay)}function u(o){var f,s,l,h;if(e.state!==yr)return c();for(f in i)if((h=i[f]).name===e.name){if(h.state===_r)return hr(u);h.state===br?(h.state=xr,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[f]):+f<n&&(h.state=xr,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[f])}if(hr((function(){e.state===_r&&(e.state=br,e.timer.restart(a,e.delay,e.time),a(o))})),e.state=vr,e.on.call("start",t,t.__data__,e.index,e.group),e.state===vr){for(e.state=_r,r=new Array(l=e.tween.length),f=0,s=-1;f<l;++f)(h=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(r[++s]=h);r.length=s+1}}function a(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(c),e.state=mr,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);e.state===mr&&(e.on.call("end",t,t.__data__,e.index,e.group),c())}function c(){for(var r in e.state=xr,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=ar(o,0,e.time)}(t,e,{name:n,index:r,group:i,on:dr,tween:pr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:gr})}function Mr(t,n){var e=Ar(t,n);if(e.state>gr)throw new Error("too late; already scheduled");return e}function Tr(t,n){var e=Ar(t,n);if(e.state>_r)throw new Error("too late; already running");return e}function Ar(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Sr(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>vr&&e.state<mr,e.state=xr,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}}var Nr,Er=e(68063),kr=180/Math.PI,Cr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Pr(t,n,e,r,i,o){var u,a,c;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),t*r<n*e&&(t=-t,n=-n,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*kr,skewX:Math.atan(c)*kr,scaleX:u,scaleY:a}}function Zr(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],c=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var c=u.push("translate(",null,n,null,e);a.push({i:c-4,x:(0,Er.Z)(t,i)},{i:c-2,x:(0,Er.Z)(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,a,c),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:(0,Er.Z)(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:(0,Er.Z)(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,c),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:(0,Er.Z)(t,e)},{i:a-2,x:(0,Er.Z)(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,c),o=u=null,function(t){for(var n,e=-1,r=c.length;++e<r;)a[(n=c[e]).i]=n.x(t);return a.join("")}}}var Dr=Zr((function(t){const n=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?Cr:Pr(n.a,n.b,n.c,n.d,n.e,n.f)}),"px, ","px)","deg)"),zr=Zr((function(t){return null==t?Cr:(Nr||(Nr=document.createElementNS("http://www.w3.org/2000/svg","g")),Nr.setAttribute("transform",t),(t=Nr.transform.baseVal.consolidate())?Pr((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Cr)}),", ",")",")");function Ur(t,n){var e,r;return function(){var i=Tr(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function Fr(t,n,e){var r,i;if("function"!==typeof e)throw new Error;return function(){var o=Tr(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,f=i.length;c<f;++c)if(i[c].name===n){i[c]=a;break}c===f&&i.push(a)}o.tween=i}}function Rr(t,n,e){var r=t._id;return t.each((function(){var t=Tr(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return Ar(t,r).value[n]}}var $r=e(4447),qr=e(6354),Br=e(16773);function Yr(t,n){var e;return("number"===typeof n?Er.Z:n instanceof $r.ZP?qr.ZP:(e=(0,$r.ZP)(n))?(n=e,qr.ZP):Br.Z)(t,n)}function Ir(t){return function(){this.removeAttribute(t)}}function Or(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Lr(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function Hr(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function jr(t,n,e){var r,i,o;return function(){var u,a,c=e(this);if(null!=c)return(u=this.getAttribute(t))===(a=c+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,c));this.removeAttribute(t)}}function Vr(t,n,e){var r,i,o;return function(){var u,a,c=e(this);if(null!=c)return(u=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,c));this.removeAttributeNS(t.space,t.local)}}function Xr(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}function Gr(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i}function Wr(t,n){return function(){Mr(this,t).delay=+n.apply(this,arguments)}}function Qr(t,n){return n=+n,function(){Mr(this,t).delay=n}}function Kr(t,n){return function(){Tr(this,t).duration=+n.apply(this,arguments)}}function Jr(t,n){return n=+n,function(){Tr(this,t).duration=n}}var ti=Fe.prototype.constructor;function ni(t){return function(){this.style.removeProperty(t)}}var ei=0;function ri(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function ii(t){return Fe().transition(t)}function oi(){return++ei}var ui=Fe.prototype;function ai(t){return t*t*t}function ci(t){return--t*t*t+1}function fi(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}ri.prototype=ii.prototype={constructor:ri,select:function(t){var n=this._name,e=this._id;"function"!==typeof t&&(t=An(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,c,f=r[u],s=f.length,l=o[u]=new Array(s),h=0;h<s;++h)(a=f[h])&&(c=t.call(a,a.__data__,h,f))&&("__data__"in a&&(c.__data__=a.__data__),l[h]=c,wr(l[h],n,e,h,l,Ar(a,e)));return new ri(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!==typeof t&&(t=En(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c,f=r[a],s=f.length,l=0;l<s;++l)if(c=f[l]){for(var h,d=t.call(c,c.__data__,l,f),p=Ar(c,e),g=0,y=d.length;g<y;++g)(h=d[g])&&wr(h,n,e,g,d,p);o.push(d),u.push(c)}return new ri(o,u,n,e)},selectChild:ui.selectChild,selectChildren:ui.selectChildren,filter:function(t){"function"!==typeof t&&(t=kn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],f=0;f<a;++f)(o=u[f])&&t.call(o,o.__data__,f,u)&&c.push(o);return new ri(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,f=n[a],s=e[a],l=f.length,h=u[a]=new Array(l),d=0;d<l;++d)(c=f[d]||s[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new ri(u,this._parents,this._name,this._id)},selection:function(){return new ti(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=oi(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,f=0;f<c;++f)if(u=a[f]){var s=Ar(u,n);wr(u,t,e,f,a,{time:s.time+s.delay+s.duration,delay:0,duration:s.duration,ease:s.ease})}return new ri(r,this._parents,t,e)},call:ui.call,nodes:ui.nodes,node:ui.node,size:ui.size,empty:ui.empty,each:ui.each,on:function(t,n){var e=this._id;return arguments.length<2?Ar(this.node(),e).on.on(t):this.each(function(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Mr:Tr;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(t,n){var e=Ln(t),r="transform"===e?zr:Yr;return this.attrTween(t,"function"===typeof n?(e.local?Vr:jr)(e,r,Rr(this,"attr."+t,n)):null==n?(e.local?Or:Ir)(e):(e.local?Hr:Lr)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!==typeof n)throw new Error;var r=Ln(t);return this.tween(e,(r.local?Xr:Gr)(r,n))},style:function(t,n,e){var r="transform"===(t+="")?Dr:Yr;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=ne(this,t),u=(this.style.removeProperty(t),ne(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,ni(t)):"function"===typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=ne(this,t),a=e(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=ne(this,t)),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a))}}(t,r,Rr(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var c=Tr(this,t),f=c.on,s=null==c.value[u]?o||(o=ni(n)):void 0;f===e&&i===s||(r=(e=f).copy()).on(a,i=s),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=ne(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!==typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"===typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Rr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Ar(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Ur:Fr)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"===typeof t?Wr:Qr)(n,t)):Ar(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"===typeof t?Kr:Jr)(n,t)):Ar(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!==typeof n)throw new Error;return function(){Tr(this,t).ease=n}}(n,t)):Ar(this.node(),n).ease},easeVarying:function(t){if("function"!==typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!==typeof e)throw new Error;Tr(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},c={value:function(){0===--i&&o()}};e.each((function(){var e=Tr(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),e.on=n})),0===i&&o()}))},[Symbol.iterator]:ui[Symbol.iterator]};var si={time:null,delay:0,duration:250,ease:fi};function li(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}Fe.prototype.interrupt=function(t){return this.each((function(){Sr(this,t)}))},Fe.prototype.transition=function(t){var n,e;t instanceof ri?(n=t._id,t=t._name):(n=oi(),(e=si).time=ir(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,f=0;f<c;++f)(u=a[f])&&wr(u,t,n,f,a,e||li(u,n));return new ri(r,this._parents,t,n)};var hi=[null];function di(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>yr&&e.name===n)return new ri([[t]],hi,n,+r);return null}var pi=t=>()=>t;function gi(t,{sourceEvent:n,target:e,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function yi(t){t.preventDefault(),t.stopImmediatePropagation()}var vi={name:"drag"},_i={name:"space"},bi={name:"handle"},mi={name:"center"};const{abs:xi,max:wi,min:Mi}=Math;function Ti(t){return[+t[0],+t[1]]}function Ai(t){return[Ti(t[0]),Ti(t[1])]}var Si={name:"x",handles:["w","e"].map(zi),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Ni={name:"y",handles:["n","s"].map(zi),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Ei={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(zi),input:function(t){return null==t?null:Ai(t)},output:function(t){return t}},ki={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ci={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Pi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Zi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Di={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function zi(t){return{type:t}}function Ui(t){return!t.ctrlKey&&!t.button}function Fi(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Ri(){return navigator.maxTouchPoints||"ontouchstart"in this}function $i(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function qi(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function Bi(){return Oi(Si)}function Yi(){return Oi(Ni)}function Ii(){return Oi(Ei)}function Oi(t){var n,e=Fi,r=Ui,i=Ri,o=!0,u=Mn("start","brush","end"),a=6;function c(n){var e=n.property("__brush",g).selectAll(".overlay").data([zi("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ki.overlay).merge(e).each((function(){var t=$i(this).extent;Re(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([zi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ki.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return ki[t.type]})),n.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){var t=Re(this),n=$i(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-a/2:n[0][0]-a/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-a/2:n[0][1]-a/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+a:a})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+a:a}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function s(t,n,e){var r=t.__brush.emitter;return!r||e&&r.clean?new l(t,n,e):r}function l(t,n,e){this.that=t,this.args=n,this.state=t.__brush,this.active=0,this.clean=e}function h(e){if((!n||e.touches)&&r.apply(this,arguments)){var i,u,a,c,l,h,d,p,g,y,v,_=this,b=e.target.__data__.type,m="selection"===(o&&e.metaKey?b="overlay":b)?vi:o&&e.altKey?mi:bi,x=t===Ni?null:Zi[b],w=t===Si?null:Di[b],M=$i(_),T=M.extent,A=M.selection,S=T[0][0],N=T[0][1],E=T[1][0],k=T[1][1],C=0,P=0,Z=x&&w&&o&&e.shiftKey,D=Array.from(e.touches||[e],(t=>{const n=t.identifier;return(t=je(t,_)).point0=t.slice(),t.identifier=n,t}));Sr(_);var z=s(_,arguments,!0).beforestart();if("overlay"===b){A&&(g=!0);const n=[D[0],D[1]||D[0]];M.selection=A=[[i=t===Ni?S:Mi(n[0][0],n[1][0]),a=t===Si?N:Mi(n[0][1],n[1][1])],[l=t===Ni?E:wi(n[0][0],n[1][0]),d=t===Si?k:wi(n[0][1],n[1][1])]],D.length>1&&q(e)}else i=A[0][0],a=A[0][1],l=A[1][0],d=A[1][1];u=i,c=a,h=l,p=d;var U=Re(_).attr("pointer-events","none"),F=U.selectAll(".overlay").attr("cursor",ki[b]);if(e.touches)z.moved=$,z.ended=B;else{var R=Re(e.view).on("mousemove.brush",$,!0).on("mouseup.brush",B,!0);o&&R.on("keydown.brush",(function(t){switch(t.keyCode){case 16:Z=x&&w;break;case 18:m===bi&&(x&&(l=h-C*x,i=u+C*x),w&&(d=p-P*w,a=c+P*w),m=mi,q(t));break;case 32:m!==bi&&m!==mi||(x<0?l=h-C:x>0&&(i=u-C),w<0?d=p-P:w>0&&(a=c-P),m=_i,F.attr("cursor",ki.selection),q(t));break;default:return}yi(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:Z&&(y=v=Z=!1,q(t));break;case 18:m===mi&&(x<0?l=h:x>0&&(i=u),w<0?d=p:w>0&&(a=c),m=bi,q(t));break;case 32:m===_i&&(t.altKey?(x&&(l=h-C*x,i=u+C*x),w&&(d=p-P*w,a=c+P*w),m=mi):(x<0?l=h:x>0&&(i=u),w<0?d=p:w>0&&(a=c),m=bi),F.attr("cursor",ki[b]),q(t));break;default:return}yi(t)}),!0),Ie(e.view)}f.call(_),z.start(e,m.name)}function $(t){for(const n of t.changedTouches||[t])for(const t of D)t.identifier===n.identifier&&(t.cur=je(n,_));if(Z&&!y&&!v&&1===D.length){const t=D[0];xi(t.cur[0]-t[0])>xi(t.cur[1]-t[1])?v=!0:y=!0}for(const n of D)n.cur&&(n[0]=n.cur[0],n[1]=n.cur[1]);g=!0,yi(t),q(t)}function q(t){const n=D[0],e=n.point0;var r;switch(C=n[0]-e[0],P=n[1]-e[1],m){case _i:case vi:x&&(C=wi(S-i,Mi(E-l,C)),u=i+C,h=l+C),w&&(P=wi(N-a,Mi(k-d,P)),c=a+P,p=d+P);break;case bi:D[1]?(x&&(u=wi(S,Mi(E,D[0][0])),h=wi(S,Mi(E,D[1][0])),x=1),w&&(c=wi(N,Mi(k,D[0][1])),p=wi(N,Mi(k,D[1][1])),w=1)):(x<0?(C=wi(S-i,Mi(E-i,C)),u=i+C,h=l):x>0&&(C=wi(S-l,Mi(E-l,C)),u=i,h=l+C),w<0?(P=wi(N-a,Mi(k-a,P)),c=a+P,p=d):w>0&&(P=wi(N-d,Mi(k-d,P)),c=a,p=d+P));break;case mi:x&&(u=wi(S,Mi(E,i-C*x)),h=wi(S,Mi(E,l+C*x))),w&&(c=wi(N,Mi(k,a-P*w)),p=wi(N,Mi(k,d+P*w)))}h<u&&(x*=-1,r=i,i=l,l=r,r=u,u=h,h=r,b in Ci&&F.attr("cursor",ki[b=Ci[b]])),p<c&&(w*=-1,r=a,a=d,d=r,r=c,c=p,p=r,b in Pi&&F.attr("cursor",ki[b=Pi[b]])),M.selection&&(A=M.selection),y&&(u=A[0][0],h=A[1][0]),v&&(c=A[0][1],p=A[1][1]),A[0][0]===u&&A[0][1]===c&&A[1][0]===h&&A[1][1]===p||(M.selection=[[u,c],[h,p]],f.call(_),z.brush(t,m.name))}function B(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;n&&clearTimeout(n),n=setTimeout((function(){n=null}),500)}else Oe(t.view,g),R.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);U.attr("pointer-events","all"),F.attr("cursor",ki.overlay),M.selection&&(A=M.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(A)&&(M.selection=null,f.call(_)),z.end(t,m.name)}}function d(t){s(this,arguments).moved(t)}function p(t){s(this,arguments).ended(t)}function g(){var n=this.__brush||{selection:null};return n.extent=Ai(e.apply(this,arguments)),n.dim=t,n}return c.move=function(n,e,r){n.tween?n.on("start.brush",(function(t){s(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){s(this,arguments).end(t)})).tween("brush",(function(){var n=this,r=n.__brush,i=s(n,arguments),o=r.selection,u=t.input("function"===typeof e?e.apply(this,arguments):e,r.extent),a=(0,Le.Z)(o,u);function c(t){r.selection=1===t&&null===u?null:a(t),f.call(n),i.brush()}return null!==o&&null!==u?c:c(1)})):n.each((function(){var n=this,i=arguments,o=n.__brush,u=t.input("function"===typeof e?e.apply(n,i):e,o.extent),a=s(n,i).beforestart();Sr(n),o.selection=null===u?null:u,f.call(n),a.start(r).brush(r).end(r)}))},c.clear=function(t,n){c.move(t,null,n)},l.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,n){return this.starting?(this.starting=!1,this.emit("start",t,n)):this.emit("brush",t),this},brush:function(t,n){return this.emit("brush",t,n),this},end:function(t,n){return 0===--this.active&&(delete this.state.emitter,this.emit("end",t,n)),this},emit:function(n,e,r){var i=Re(this.that).datum();u.call(n,this.that,new gi(n,{sourceEvent:e,target:c,selection:t.output(this.state.selection),mode:r,dispatch:u}),i)}},c.extent=function(t){return arguments.length?(e="function"===typeof t?t:pi(Ai(t)),c):e},c.filter=function(t){return arguments.length?(r="function"===typeof t?t:pi(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"===typeof t?t:pi(!!t),c):i},c.handleSize=function(t){return arguments.length?(a=+t,c):a},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=u.on.apply(u,arguments);return t===u?c:t},c}var Li=Math.abs,Hi=Math.cos,ji=Math.sin,Vi=Math.PI,Xi=Vi/2,Gi=2*Vi,Wi=Math.max,Qi=1e-12;function Ki(t,n){return Array.from({length:n-t},((n,e)=>t+e))}function Ji(){return eo(!1,!1)}function to(){return eo(!1,!0)}function no(){return eo(!0,!1)}function eo(t,n){var e=0,r=null,i=null,o=null;function u(u){var a,c=u.length,f=new Array(c),s=Ki(0,c),l=new Array(c*c),h=new Array(c),d=0;u=Float64Array.from({length:c*c},n?(t,n)=>u[n%c][n/c|0]:(t,n)=>u[n/c|0][n%c]);for(let n=0;n<c;++n){let e=0;for(let r=0;r<c;++r)e+=u[n*c+r]+t*u[r*c+n];d+=f[n]=e}a=(d=Wi(0,Gi-e*c)/d)?e:Gi/c;{let n=0;r&&s.sort(((t,n)=>r(f[t],f[n])));for(const e of s){const r=n;if(t){const t=Ki(1+~c,c).filter((t=>t<0?u[~t*c+e]:u[e*c+t]));i&&t.sort(((t,n)=>i(t<0?-u[~t*c+e]:u[e*c+t],n<0?-u[~n*c+e]:u[e*c+n])));for(const r of t)if(r<0){(l[~r*c+e]||(l[~r*c+e]={source:null,target:null})).target={index:e,startAngle:n,endAngle:n+=u[~r*c+e]*d,value:u[~r*c+e]}}else{(l[e*c+r]||(l[e*c+r]={source:null,target:null})).source={index:e,startAngle:n,endAngle:n+=u[e*c+r]*d,value:u[e*c+r]}}h[e]={index:e,startAngle:r,endAngle:n,value:f[e]}}else{const t=Ki(0,c).filter((t=>u[e*c+t]||u[t*c+e]));i&&t.sort(((t,n)=>i(u[e*c+t],u[e*c+n])));for(const r of t){let t;if(e<r?(t=l[e*c+r]||(l[e*c+r]={source:null,target:null}),t.source={index:e,startAngle:n,endAngle:n+=u[e*c+r]*d,value:u[e*c+r]}):(t=l[r*c+e]||(l[r*c+e]={source:null,target:null}),t.target={index:e,startAngle:n,endAngle:n+=u[e*c+r]*d,value:u[e*c+r]},e===r&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const n=t.source;t.source=t.target,t.target=n}}h[e]={index:e,startAngle:r,endAngle:n,value:f[e]}}n+=a}}return(l=Object.values(l)).groups=h,o?l.sort(o):l}return u.padAngle=function(t){return arguments.length?(e=Wi(0,t),u):e},u.sortGroups=function(t){return arguments.length?(r=t,u):r},u.sortSubgroups=function(t){return arguments.length?(i=t,u):i},u.sortChords=function(t){return arguments.length?(null==t?o=null:(n=t,o=function(t,e){return n(t.source.value+t.target.value,e.source.value+e.target.value)})._=t,u):o&&o._;var n},u}const ro=Math.PI,io=2*ro,oo=1e-6,uo=io-oo;function ao(t){this._+=t[0];for(let n=1,e=t.length;n<e;++n)this._+=arguments[n]+t[n]}class co{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?ao:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return ao;const e=10**n;return function(t){this._+=t[0];for(let n=1,r=t.length;n<r;++n)this._+=Math.round(arguments[n]*e)/e+t[n]}}(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,e,r){this._append`Q${+t},${+n},${this._x1=+e},${this._y1=+r}`}bezierCurveTo(t,n,e,r,i,o){this._append`C${+t},${+n},${+e},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,e,r,i){if(t=+t,n=+n,e=+e,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,u=this._y1,a=e-t,c=r-n,f=o-t,s=u-n,l=f*f+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(l>oo)if(Math.abs(s*a-c*f)>oo&&i){let h=e-o,d=r-u,p=a*a+c*c,g=h*h+d*d,y=Math.sqrt(p),v=Math.sqrt(l),_=i*Math.tan((ro-Math.acos((p+l-g)/(2*y*v)))/2),b=_/v,m=_/y;Math.abs(b-1)>oo&&this._append`L${t+b*f},${n+b*s}`,this._append`A${i},${i},0,0,${+(s*h>f*d)},${this._x1=t+m*a},${this._y1=n+m*c}`}else this._append`L${this._x1=t},${this._y1=n}`;else;}arc(t,n,e,r,i,o){if(t=+t,n=+n,o=!!o,(e=+e)<0)throw new Error(`negative radius: ${e}`);let u=e*Math.cos(r),a=e*Math.sin(r),c=t+u,f=n+a,s=1^o,l=o?r-i:i-r;null===this._x1?this._append`M${c},${f}`:(Math.abs(this._x1-c)>oo||Math.abs(this._y1-f)>oo)&&this._append`L${c},${f}`,e&&(l<0&&(l=l%io+io),l>uo?this._append`A${e},${e},0,1,${s},${t-u},${n-a}A${e},${e},0,1,${s},${this._x1=c},${this._y1=f}`:l>oo&&this._append`A${e},${e},0,${+(l>=ro)},${s},${this._x1=t+e*Math.cos(i)},${this._y1=n+e*Math.sin(i)}`)}rect(t,n,e,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${e=+e}v${+r}h${-e}Z`}toString(){return this._}}function fo(){return new co}function so(t=3){return new co(+t)}fo.prototype=co.prototype;var lo=Array.prototype.slice;function ho(t){return function(){return t}}function po(t){return t.source}function go(t){return t.target}function yo(t){return t.radius}function vo(t){return t.startAngle}function _o(t){return t.endAngle}function bo(){return 0}function mo(){return 10}function xo(t){var n=po,e=go,r=yo,i=yo,o=vo,u=_o,a=bo,c=null;function f(){var f,s=n.apply(this,arguments),l=e.apply(this,arguments),h=a.apply(this,arguments)/2,d=lo.call(arguments),p=+r.apply(this,(d[0]=s,d)),g=o.apply(this,d)-Xi,y=u.apply(this,d)-Xi,v=+i.apply(this,(d[0]=l,d)),_=o.apply(this,d)-Xi,b=u.apply(this,d)-Xi;if(c||(c=f=fo()),h>Qi&&(Li(y-g)>2*h+Qi?y>g?(g+=h,y-=h):(g-=h,y+=h):g=y=(g+y)/2,Li(b-_)>2*h+Qi?b>_?(_+=h,b-=h):(_-=h,b+=h):_=b=(_+b)/2),c.moveTo(p*Hi(g),p*ji(g)),c.arc(0,0,p,g,y),g!==_||y!==b)if(t){var m=v-+t.apply(this,arguments),x=(_+b)/2;c.quadraticCurveTo(0,0,m*Hi(_),m*ji(_)),c.lineTo(v*Hi(x),v*ji(x)),c.lineTo(m*Hi(b),m*ji(b))}else c.quadraticCurveTo(0,0,v*Hi(_),v*ji(_)),c.arc(0,0,v,_,b);if(c.quadraticCurveTo(0,0,p*Hi(g),p*ji(g)),c.closePath(),f)return c=null,f+""||null}return t&&(f.headRadius=function(n){return arguments.length?(t="function"===typeof n?n:ho(+n),f):t}),f.radius=function(t){return arguments.length?(r=i="function"===typeof t?t:ho(+t),f):r},f.sourceRadius=function(t){return arguments.length?(r="function"===typeof t?t:ho(+t),f):r},f.targetRadius=function(t){return arguments.length?(i="function"===typeof t?t:ho(+t),f):i},f.startAngle=function(t){return arguments.length?(o="function"===typeof t?t:ho(+t),f):o},f.endAngle=function(t){return arguments.length?(u="function"===typeof t?t:ho(+t),f):u},f.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:ho(+t),f):a},f.source=function(t){return arguments.length?(n=t,f):n},f.target=function(t){return arguments.length?(e=t,f):e},f.context=function(t){return arguments.length?(c=null==t?null:t,f):c},f}function wo(){return xo()}function Mo(){return xo(mo)}var To=e(49531);const Ao=Math.PI/180,So=180/Math.PI,No=.96422,Eo=1,ko=.82521,Co=4/29,Po=6/29,Zo=3*Po*Po,Do=Po*Po*Po;function zo(t){if(t instanceof Ro)return new Ro(t.l,t.a,t.b,t.opacity);if(t instanceof Ho)return jo(t);t instanceof $r.Ss||(t=(0,$r.SU)(t));var n,e,r=Yo(t.r),i=Yo(t.g),o=Yo(t.b),u=$o((.2225045*r+.7168786*i+.0606169*o)/Eo);return r===i&&i===o?n=e=u:(n=$o((.4360747*r+.3850649*i+.1430804*o)/No),e=$o((.0139322*r+.0971045*i+.7141733*o)/ko)),new Ro(116*u-16,500*(n-u),200*(u-e),t.opacity)}function Uo(t,n){return new Ro(t,0,0,null==n?1:n)}function Fo(t,n,e,r){return 1===arguments.length?zo(t):new Ro(t,n,e,null==r?1:r)}function Ro(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function $o(t){return t>Do?Math.pow(t,1/3):t/Zo+Co}function qo(t){return t>Po?t*t*t:Zo*(t-Co)}function Bo(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Yo(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Io(t){if(t instanceof Ho)return new Ho(t.h,t.c,t.l,t.opacity);if(t instanceof Ro||(t=zo(t)),0===t.a&&0===t.b)return new Ho(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*So;return new Ho(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Oo(t,n,e,r){return 1===arguments.length?Io(t):new Ho(e,n,t,null==r?1:r)}function Lo(t,n,e,r){return 1===arguments.length?Io(t):new Ho(t,n,e,null==r?1:r)}function Ho(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function jo(t){if(isNaN(t.h))return new Ro(t.l,0,0,t.opacity);var n=t.h*Ao;return new Ro(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}(0,To.Z)(Ro,Fo,(0,To.l)($r.Il,{brighter(t){return new Ro(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Ro(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return n=No*qo(n),t=Eo*qo(t),e=ko*qo(e),new $r.Ss(Bo(3.1338561*n-1.6168667*t-.4906146*e),Bo(-.9787684*n+1.9161415*t+.033454*e),Bo(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),(0,To.Z)(Ho,Lo,(0,To.l)($r.Il,{brighter(t){return new Ho(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new Ho(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return jo(this).rgb()}}));var Vo=-.14861,Xo=1.78277,Go=-.29227,Wo=-.90649,Qo=1.97294,Ko=Qo*Wo,Jo=Qo*Xo,tu=Xo*Go-Wo*Vo;function nu(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof eu)return new eu(t.h,t.s,t.l,t.opacity);t instanceof $r.Ss||(t=(0,$r.SU)(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(tu*r+Ko*n-Jo*e)/(tu+Ko-Jo),o=r-i,u=(Qo*(e-i)-Go*o)/Wo,a=Math.sqrt(u*u+o*o)/(Qo*i*(1-i)),c=a?Math.atan2(u,o)*So-120:NaN;return new eu(c<0?c+360:c,a,i,t.opacity)}(t):new eu(t,n,e,null==r?1:r)}function eu(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function ru(t){return Math.max(1,Math.ceil(Math.log(function(t,n){let e=0;if(void 0===n)for(let r of t)null!=r&&(r=+r)>=r&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}(t))/Math.LN2)+1)}(0,To.Z)(eu,nu,(0,To.l)($r.Il,{brighter(t){return t=null==t?$r.J5:Math.pow($r.J5,t),new eu(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?$r.xV:Math.pow($r.xV,t),new eu(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*Ao,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new $r.Ss(255*(n+e*(Vo*r+Xo*i)),255*(n+e*(Go*r+Wo*i)),255*(n+e*(Qo*r)),this.opacity)}}));const iu=Math.sqrt(50),ou=Math.sqrt(10),uu=Math.sqrt(2);function au(t,n,e){const r=(n-t)/Math.max(0,e),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),u=o>=iu?10:o>=ou?5:o>=uu?2:1;let a,c,f;return i<0?(f=Math.pow(10,-i)/u,a=Math.round(t*f),c=Math.round(n*f),a/f<t&&++a,c/f>n&&--c,f=-f):(f=Math.pow(10,i)*u,a=Math.round(t/f),c=Math.round(n/f),a*f<t&&++a,c*f>n&&--c),c<a&&.5<=e&&e<2?au(t,n,2*e):[a,c,f]}function cu(t,n,e){if(!((e=+e)>0))return[];if((t=+t)===(n=+n))return[t];const r=n<t,[i,o,u]=r?au(n,t,e):au(t,n,e);if(!(o>=i))return[];const a=o-i+1,c=new Array(a);if(r)if(u<0)for(let f=0;f<a;++f)c[f]=(o-f)/-u;else for(let f=0;f<a;++f)c[f]=(o-f)*u;else if(u<0)for(let f=0;f<a;++f)c[f]=(i+f)/-u;else for(let f=0;f<a;++f)c[f]=(i+f)*u;return c}function fu(t,n,e){return au(t=+t,n=+n,e=+e)[2]}var su=Array.prototype.slice;function lu(t,n){return t-n}var hu=t=>()=>t;function du(t,n){for(var e,r=-1,i=n.length;++r<i;)if(e=pu(t,n[r]))return e;return 0}function pu(t,n){for(var e=n[0],r=n[1],i=-1,o=0,u=t.length,a=u-1;o<u;a=o++){var c=t[o],f=c[0],s=c[1],l=t[a],h=l[0],d=l[1];if(gu(c,l,n))return 0;s>r!==d>r&&e<(h-f)*(r-s)/(d-s)+f&&(i=-i)}return i}function gu(t,n,e){var r,i,o,u;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],u=n[r],i<=o&&o<=u||u<=o&&o<=i)}function yu(){}var vu=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function _u(){var t=1,n=1,e=ru,r=a;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(lu);else{const e=function(t,n){let e,r;if(void 0===n)for(const i of t)null!=i&&(void 0===e?i>=i&&(e=r=i):(e>i&&(e=i),r<i&&(r=i)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}(t,bu);for(n=cu(...function(t,n,e){let r;for(;;){const i=fu(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}(e[0],e[1],n),n);n[n.length-1]>=e[1];)n.pop();for(;n[1]<e[0];)n.shift()}return n.map((n=>o(t,n)))}function o(e,i){const o=null==i?NaN:+i;if(isNaN(o))throw new Error(`invalid value: ${i}`);var a=[],c=[];return function(e,r,i){var o,a,c,f,s,l,h=new Array,d=new Array;o=a=-1,f=mu(e[0],r),vu[f<<1].forEach(p);for(;++o<t-1;)c=f,f=mu(e[o+1],r),vu[c|f<<1].forEach(p);vu[f<<0].forEach(p);for(;++a<n-1;){for(o=-1,f=mu(e[a*t+t],r),s=mu(e[a*t],r),vu[f<<1|s<<2].forEach(p);++o<t-1;)c=f,f=mu(e[a*t+t+o+1],r),l=s,s=mu(e[a*t+o+1],r),vu[c|f<<1|s<<2|l<<3].forEach(p);vu[f|s<<3].forEach(p)}o=-1,s=e[a*t]>=r,vu[s<<2].forEach(p);for(;++o<t-1;)l=s,s=mu(e[a*t+o+1],r),vu[s<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+o,t[0][1]+a],c=[t[1][0]+o,t[1][1]+a],f=u(r),s=u(c);(n=d[f])?(e=h[s])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(c),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(c),d[n.end=s]=n):(n=h[s])?(e=d[f])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(c),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=f]=n):h[f]=d[s]={start:f,end:s,ring:[r,c]}}vu[s<<3].forEach(p)}(e,o,(function(t){r(t,e,o),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r}(t)>0?a.push([t]):c.push(t)})),c.forEach((function(t){for(var n,e=0,r=a.length;e<r;++e)if(-1!==du((n=a[e])[0],t))return void n.push(t)})),{type:"MultiPolygon",value:i,coordinates:a}}function u(n){return 2*n[0]+n[1]*(t+1)*4}function a(e,r,i){e.forEach((function(e){var o=e[0],u=e[1],a=0|o,c=0|u,f=xu(r[c*t+a]);o>0&&o<t&&a===o&&(e[0]=wu(o,xu(r[c*t+a-1]),f,i)),u>0&&u<n&&c===u&&(e[1]=wu(u,xu(r[(c-1)*t+a]),f,i))}))}return i.contour=o,i.size=function(e){if(!arguments.length)return[t,n];var r=Math.floor(e[0]),o=Math.floor(e[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return t=r,n=o,i},i.thresholds=function(t){return arguments.length?(e="function"===typeof t?t:Array.isArray(t)?hu(su.call(t)):hu(t),i):e},i.smooth=function(t){return arguments.length?(r=t?a:yu,i):r===a},i}function bu(t){return isFinite(t)?t:NaN}function mu(t,n){return null!=t&&+t>=n}function xu(t){return null==t||isNaN(t=+t)?-1/0:t}function wu(t,n,e,r){const i=r-n,o=e-n,u=isFinite(i)||isFinite(o)?i/o:Math.sign(i)/Math.sign(o);return isNaN(u)?t:t+u-.5}const Mu=Tu(Nu);Tu((function(t){const n=Nu(t);return(t,e,r,i,o)=>{n(t,e,(r<<=2)+0,(i<<=2)+0,o<<=2),n(t,e,r+1,i+1,o),n(t,e,r+2,i+2,o),n(t,e,r+3,i+3,o)}}));function Tu(t){return function(n,e,r=e){if(!((e=+e)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:u}=n;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((u=Math.floor(void 0!==u?u:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!u||!e&&!r)return n;const a=e&&t(e),c=r&&t(r),f=i.slice();return a&&c?(Au(a,f,i,o,u),Au(a,i,f,o,u),Au(a,f,i,o,u),Su(c,i,f,o,u),Su(c,f,i,o,u),Su(c,i,f,o,u)):a?(Au(a,i,f,o,u),Au(a,f,i,o,u),Au(a,i,f,o,u)):c&&(Su(c,i,f,o,u),Su(c,f,i,o,u),Su(c,i,f,o,u)),n}}function Au(t,n,e,r,i){for(let o=0,u=r*i;o<u;)t(n,e,o,o+=r,1)}function Su(t,n,e,r,i){for(let o=0,u=r*i;o<r;++o)t(n,e,o,o+u,r)}function Nu(t){const n=Math.floor(t);if(n===t)return function(t){const n=2*t+1;return(e,r,i,o,u)=>{if(!((o-=u)>=i))return;let a=t*r[i];const c=u*t;for(let t=i,n=i+c;t<n;t+=u)a+=r[Math.min(o,t)];for(let t=i,f=o;t<=f;t+=u)a+=r[Math.min(o,t+c)],e[t]=a/n,a-=r[Math.max(i,t-c)]}}(t);const e=t-n,r=2*t+1;return(t,i,o,u,a)=>{if(!((u-=a)>=o))return;let c=n*i[o];const f=a*n,s=f+a;for(let n=o,e=o+f;n<e;n+=a)c+=i[Math.min(u,n)];for(let n=o,l=u;n<=l;n+=a)c+=i[Math.min(u,n+f)],t[n]=(c+e*(i[Math.max(o,n-s)]+i[Math.min(u,n+s)]))/r,c-=i[Math.max(o,n-f)]}}function Eu(t,n){let e;if(void 0===n)for(const r of t)null!=r&&(e<r||void 0===e&&r>=r)&&(e=r);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function ku(t){return t[0]}function Cu(t){return t[1]}function Pu(){return 1}function Zu(){var t=ku,n=Cu,e=Pu,r=960,i=500,o=20,u=2,a=3*o,c=r+2*a>>u,f=i+2*a>>u,s=hu(20);function l(r){var i=new Float32Array(c*f),s=Math.pow(2,-u),l=-1;for(const o of r){var h=(t(o,++l,r)+a)*s,d=(n(o,l,r)+a)*s,p=+e(o,l,r);if(p&&h>=0&&h<c&&d>=0&&d<f){var g=Math.floor(h),y=Math.floor(d),v=h-g-.5,_=d-y-.5;i[g+y*c]+=(1-v)*(1-_)*p,i[g+1+y*c]+=v*(1-_)*p,i[g+1+(y+1)*c]+=v*_*p,i[g+(y+1)*c]+=(1-v)*_*p}}return Mu({data:i,width:c,height:f},o*s),i}function h(t){var n=l(t),e=s(n),r=Math.pow(2,2*u);return Array.isArray(e)||(e=cu(Number.MIN_VALUE,Eu(n)/r,e)),_u().size([c,f]).thresholds(e.map((t=>t*r)))(n).map(((t,n)=>(t.value=+e[n],d(t))))}function d(t){return t.coordinates.forEach(p),t}function p(t){t.forEach(g)}function g(t){t.forEach(y)}function y(t){t[0]=t[0]*Math.pow(2,u)-a,t[1]=t[1]*Math.pow(2,u)-a}function v(){return c=r+2*(a=3*o)>>u,f=i+2*a>>u,h}return h.contours=function(t){var n=l(t),e=_u().size([c,f]),r=Math.pow(2,2*u),i=t=>{t=+t;var i=d(e.contour(n,t*r));return i.value=t,i};return Object.defineProperty(i,"max",{get:()=>Eu(n)/r}),i},h.x=function(n){return arguments.length?(t="function"===typeof n?n:hu(+n),h):t},h.y=function(t){return arguments.length?(n="function"===typeof t?t:hu(+t),h):n},h.weight=function(t){return arguments.length?(e="function"===typeof t?t:hu(+t),h):e},h.size=function(t){if(!arguments.length)return[r,i];var n=+t[0],e=+t[1];if(!(n>=0&&e>=0))throw new Error("invalid size");return r=n,i=e,v()},h.cellSize=function(t){if(!arguments.length)return 1<<u;if(!((t=+t)>=1))throw new Error("invalid cell size");return u=Math.floor(Math.log(t)/Math.LN2),v()},h.thresholds=function(t){return arguments.length?(s="function"===typeof t?t:Array.isArray(t)?hu(su.call(t)):hu(t),h):s},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=(Math.sqrt(4*t*t+1)-1)/2,v()},h}var Du=e(65378);const zu=Math.pow(2,-52),Uu=new Uint32Array(512);class Fu{static from(t,n=Iu,e=Ou){const r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=t[o];i[2*o]=n(r),i[2*o+1]=e(r)}return new Fu(i)}constructor(t){const n=t.length>>1;if(n>0&&"number"!==typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:e,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let u=1/0,a=1/0,c=-1/0,f=-1/0;for(let A=0;A<o;A++){const n=t[2*A],e=t[2*A+1];n<u&&(u=n),e<a&&(a=e),n>c&&(c=n),e>f&&(f=e),this._ids[A]=A}const s=(u+c)/2,l=(a+f)/2;let h,d,p,g=1/0;for(let A=0;A<o;A++){const n=Ru(s,l,t[2*A],t[2*A+1]);n<g&&(h=A,g=n)}const y=t[2*h],v=t[2*h+1];g=1/0;for(let A=0;A<o;A++){if(A===h)continue;const n=Ru(y,v,t[2*A],t[2*A+1]);n<g&&n>0&&(d=A,g=n)}let _=t[2*d],b=t[2*d+1],m=1/0;for(let A=0;A<o;A++){if(A===h||A===d)continue;const n=qu(y,v,_,b,t[2*A],t[2*A+1]);n<m&&(p=A,m=n)}let x=t[2*p],w=t[2*p+1];if(m===1/0){for(let r=0;r<o;r++)this._dists[r]=t[2*r]-t[0]||t[2*r+1]-t[1];Bu(this._ids,this._dists,0,o-1);const n=new Uint32Array(o);let e=0;for(let t=0,r=-1/0;t<o;t++){const i=this._ids[t];this._dists[i]>r&&(n[e++]=i,r=this._dists[i])}return this.hull=n.subarray(0,e),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if((0,Du.IW)(y,v,_,b,x,w)<0){const t=d,n=_,e=b;d=p,_=x,b=w,p=t,x=n,w=e}const M=function(t,n,e,r,i,o){const u=e-t,a=r-n,c=i-t,f=o-n,s=u*u+a*a,l=c*c+f*f,h=.5/(u*f-a*c),d=t+(f*s-a*l)*h,p=n+(u*l-c*s)*h;return{x:d,y:p}}(y,v,_,b,x,w);this._cx=M.x,this._cy=M.y;for(let A=0;A<o;A++)this._dists[A]=Ru(t[2*A],t[2*A+1],M.x,M.y);Bu(this._ids,this._dists,0,o-1),this._hullStart=h;let T=3;e[h]=n[p]=d,e[d]=n[h]=p,e[p]=n[d]=h,r[h]=0,r[d]=1,r[p]=2,i.fill(-1),i[this._hashKey(y,v)]=h,i[this._hashKey(_,b)]=d,i[this._hashKey(x,w)]=p,this.trianglesLen=0,this._addTriangle(h,d,p,-1,-1,-1);for(let A,S,N=0;N<this._ids.length;N++){const o=this._ids[N],u=t[2*o],a=t[2*o+1];if(N>0&&Math.abs(u-A)<=zu&&Math.abs(a-S)<=zu)continue;if(A=u,S=a,o===h||o===d||o===p)continue;let c=0;for(let t=0,n=this._hashKey(u,a);t<this._hashSize&&(c=i[(n+t)%this._hashSize],-1===c||c===e[c]);t++);c=n[c];let f,s=c;for(;f=e[s],(0,Du.IW)(u,a,t[2*s],t[2*s+1],t[2*f],t[2*f+1])>=0;)if(s=f,s===c){s=-1;break}if(-1===s)continue;let l=this._addTriangle(s,o,e[s],-1,-1,r[s]);r[o]=this._legalize(l+2),r[s]=l,T++;let g=e[s];for(;f=e[g],(0,Du.IW)(u,a,t[2*g],t[2*g+1],t[2*f],t[2*f+1])<0;)l=this._addTriangle(g,o,f,r[o],-1,r[g]),r[o]=this._legalize(l+2),e[g]=g,T--,g=f;if(s===c)for(;f=n[s],(0,Du.IW)(u,a,t[2*f],t[2*f+1],t[2*s],t[2*s+1])<0;)l=this._addTriangle(f,o,s,-1,r[s],r[f]),this._legalize(l+2),r[f]=l,e[s]=s,T--,s=f;this._hullStart=n[o]=s,e[s]=n[g]=o,e[o]=g,i[this._hashKey(u,a)]=o,i[this._hashKey(t[2*s],t[2*s+1])]=s}this.hull=new Uint32Array(T);for(let A=0,S=this._hullStart;A<T;A++)this.hull[A]=S,S=e[S];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(function(t,n){const e=t/(Math.abs(t)+Math.abs(n));return(n>0?3-e:1+e)/4}(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:e,coords:r}=this;let i=0,o=0;for(;;){const u=e[t],a=t-t%3;if(o=a+(t+2)%3,-1===u){if(0===i)break;t=Uu[--i];continue}const c=u-u%3,f=a+(t+1)%3,s=c+(u+2)%3,l=n[o],h=n[t],d=n[f],p=n[s];if($u(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){n[t]=p,n[u]=l;const r=e[s];if(-1===r){let n=this._hullStart;do{if(this._hullTri[n]===s){this._hullTri[n]=t;break}n=this._hullPrev[n]}while(n!==this._hullStart)}this._link(t,r),this._link(u,e[o]),this._link(o,s);const a=c+(u+1)%3;i<Uu.length&&(Uu[i++]=a)}else{if(0===i)break;t=Uu[--i]}}return o}_link(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)}_addTriangle(t,n,e,r,i,o){const u=this.trianglesLen;return this._triangles[u]=t,this._triangles[u+1]=n,this._triangles[u+2]=e,this._link(u,r),this._link(u+1,i),this._link(u+2,o),this.trianglesLen+=3,u}}function Ru(t,n,e,r){const i=t-e,o=n-r;return i*i+o*o}function $u(t,n,e,r,i,o,u,a){const c=t-u,f=n-a,s=e-u,l=r-a,h=i-u,d=o-a,p=s*s+l*l,g=h*h+d*d;return c*(l*g-p*d)-f*(s*g-p*h)+(c*c+f*f)*(s*d-l*h)<0}function qu(t,n,e,r,i,o){const u=e-t,a=r-n,c=i-t,f=o-n,s=u*u+a*a,l=c*c+f*f,h=.5/(u*f-a*c),d=(f*s-a*l)*h,p=(u*l-c*s)*h;return d*d+p*p}function Bu(t,n,e,r){if(r-e<=20)for(let i=e+1;i<=r;i++){const r=t[i],o=n[r];let u=i-1;for(;u>=e&&n[t[u]]>o;)t[u+1]=t[u--];t[u+1]=r}else{let i=e+1,o=r;Yu(t,e+r>>1,i),n[t[e]]>n[t[r]]&&Yu(t,e,r),n[t[i]]>n[t[r]]&&Yu(t,i,r),n[t[e]]>n[t[i]]&&Yu(t,e,i);const u=t[i],a=n[u];for(;;){do{i++}while(n[t[i]]<a);do{o--}while(n[t[o]]>a);if(o<i)break;Yu(t,i,o)}t[e+1]=t[o],t[o]=u,r-i+1>=o-e?(Bu(t,n,i,r),Bu(t,n,e,o-1)):(Bu(t,n,e,o-1),Bu(t,n,i,r))}}function Yu(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Iu(t){return t[0]}function Ou(t){return t[1]}const Lu=1e-6;class Hu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,e){const r=(t=+t)+(e=+e),i=n=+n;if(e<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>Lu||Math.abs(this._y1-i)>Lu)&&(this._+="L"+r+","+i),e&&(this._+=`A${e},${e},0,1,1,${t-e},${n}A${e},${e},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,n,e,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+e}v${+r}h${-e}Z`}value(){return this._||null}}class ju{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Vu{constructor(t,[n,e,r,i]=[0,0,960,500]){if(!((r=+r)>=(n=+n))||!((i=+i)>=(e=+e)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=n,this.ymax=i,this.ymin=e,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:e},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,e.length/3*2);for(let h,d,p=0,g=0,y=e.length;p<y;p+=3,g+=2){const n=2*e[p],r=2*e[p+1],o=2*e[p+2],u=t[n],a=t[n+1],c=t[r],f=t[r+1],s=t[o],l=t[o+1],y=c-u,v=f-a,_=s-u,b=l-a,m=2*(y*b-v*_);if(Math.abs(m)<1e-9){let n=1e9;const r=2*e[0];n*=Math.sign((t[r]-u)*b-(t[r+1]-a)*_),h=(u+s)/2-n*b,d=(a+l)/2+n*_}else{const t=1/m,n=y*y+v*v,e=_*_+b*b;h=u+(b*n-v*e)*t,d=a+(y*e-_*n)*t}i[g]=h,i[g+1]=d}let o,u,a,c=n[n.length-1],f=4*c,s=t[2*c],l=t[2*c+1];r.fill(0);for(let h=0;h<n.length;++h)c=n[h],o=f,u=s,a=l,f=4*c,s=t[2*c],l=t[2*c+1],r[o+2]=r[f]=a-l,r[o+3]=r[f+1]=s-u}render(t){const n=null==t?t=new Hu:void 0,{delaunay:{halfedges:e,inedges:r,hull:i},circumcenters:o,vectors:u}=this;if(i.length<=1)return null;for(let f=0,s=e.length;f<s;++f){const n=e[f];if(n<f)continue;const r=2*Math.floor(f/3),i=2*Math.floor(n/3),u=o[r],a=o[r+1],c=o[i],s=o[i+1];this._renderSegment(u,a,c,s,t)}let a,c=i[i.length-1];for(let f=0;f<i.length;++f){a=c,c=i[f];const n=2*Math.floor(r[c]/3),e=o[n],s=o[n+1],l=4*a,h=this._project(e,s,u[l+2],u[l+3]);h&&this._renderSegment(e,s,h[0],h[1],t)}return n&&n.value()}renderBounds(t){const n=null==t?t=new Hu:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const e=null==n?n=new Hu:void 0,r=this._clip(t);if(null===r||!r.length)return;n.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let o=2;o<i;o+=2)r[o]===r[o-2]&&r[o+1]===r[o-1]||n.lineTo(r[o],r[o+1]);return n.closePath(),e&&e.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,e=t.length/2;n<e;++n){const t=this.cellPolygon(n);t&&(t.index=n,yield t)}}cellPolygon(t){const n=new ju;return this.renderCell(t,n),n.value()}_renderSegment(t,n,e,r,i){let o;const u=this._regioncode(t,n),a=this._regioncode(e,r);0===u&&0===a?(i.moveTo(t,n),i.lineTo(e,r)):(o=this._clipSegment(t,n,e,r,u,a))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,n,e){return(n=+n)===n&&(e=+e)===e&&this.delaunay._step(t,n,e)===t}*neighbors(t){const n=this._clip(t);if(n)for(const e of this.delaunay.neighbors(t)){const t=this._clip(e);if(t)t:for(let r=0,i=n.length;r<i;r+=2)for(let o=0,u=t.length;o<u;o+=2)if(n[r]===t[o]&&n[r+1]===t[o+1]&&n[(r+2)%i]===t[(o+u-2)%u]&&n[(r+3)%i]===t[(o+u-1)%u]){yield e;break t}}}_cell(t){const{circumcenters:n,delaunay:{inedges:e,halfedges:r,triangles:i}}=this,o=e[t];if(-1===o)return null;const u=[];let a=o;do{const e=Math.floor(a/3);if(u.push(n[2*e],n[2*e+1]),a=a%3===2?a-2:a+1,i[a]!==t)break;a=r[a]}while(a!==o&&-1!==a);return u}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(null===n)return null;const{vectors:e}=this,r=4*t;return this._simplify(e[r]||e[r+1]?this._clipInfinite(t,n,e[r],e[r+1],e[r+2],e[r+3]):this._clipFinite(t,n))}_clipFinite(t,n){const e=n.length;let r,i,o,u,a=null,c=n[e-2],f=n[e-1],s=this._regioncode(c,f),l=0;for(let h=0;h<e;h+=2)if(r=c,i=f,c=n[h],f=n[h+1],o=s,s=this._regioncode(c,f),0===o&&0===s)u=l,l=0,a?a.push(c,f):a=[c,f];else{let n,e,h,d,p;if(0===o){if(null===(n=this._clipSegment(r,i,c,f,o,s)))continue;[e,h,d,p]=n}else{if(null===(n=this._clipSegment(c,f,r,i,s,o)))continue;[d,p,e,h]=n,u=l,l=this._edgecode(e,h),u&&l&&this._edge(t,u,l,a,a.length),a?a.push(e,h):a=[e,h]}u=l,l=this._edgecode(d,p),u&&l&&this._edge(t,u,l,a,a.length),a?a.push(d,p):a=[d,p]}if(a)u=l,l=this._edgecode(a[0],a[1]),u&&l&&this._edge(t,u,l,a,a.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return a}_clipSegment(t,n,e,r,i,o){const u=i<o;for(u&&([t,n,e,r,i,o]=[e,r,t,n,o,i]);;){if(0===i&&0===o)return u?[e,r,t,n]:[t,n,e,r];if(i&o)return null;let a,c,f=i||o;8&f?(a=t+(e-t)*(this.ymax-n)/(r-n),c=this.ymax):4&f?(a=t+(e-t)*(this.ymin-n)/(r-n),c=this.ymin):2&f?(c=n+(r-n)*(this.xmax-t)/(e-t),a=this.xmax):(c=n+(r-n)*(this.xmin-t)/(e-t),a=this.xmin),i?(t=a,n=c,i=this._regioncode(t,n)):(e=a,r=c,o=this._regioncode(e,r))}}_clipInfinite(t,n,e,r,i,o){let u,a=Array.from(n);if((u=this._project(a[0],a[1],e,r))&&a.unshift(u[0],u[1]),(u=this._project(a[a.length-2],a[a.length-1],i,o))&&a.push(u[0],u[1]),a=this._clipFinite(t,a))for(let c,f=0,s=a.length,l=this._edgecode(a[s-2],a[s-1]);f<s;f+=2)c=l,l=this._edgecode(a[f],a[f+1]),c&&l&&(f=this._edge(t,c,l,a,f),s=a.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(t,n,e,r,i){for(;n!==e;){let e,o;switch(n){case 5:n=4;continue;case 4:n=6,e=this.xmax,o=this.ymin;break;case 6:n=2;continue;case 2:n=10,e=this.xmax,o=this.ymax;break;case 10:n=8;continue;case 8:n=9,e=this.xmin,o=this.ymax;break;case 9:n=1;continue;case 1:n=5,e=this.xmin,o=this.ymin}r[i]===e&&r[i+1]===o||!this.contains(t,e,o)||(r.splice(i,0,e,o),i+=2)}return i}_project(t,n,e,r){let i,o,u,a=1/0;if(r<0){if(n<=this.ymin)return null;(i=(this.ymin-n)/r)<a&&(u=this.ymin,o=t+(a=i)*e)}else if(r>0){if(n>=this.ymax)return null;(i=(this.ymax-n)/r)<a&&(u=this.ymax,o=t+(a=i)*e)}if(e>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/e)<a&&(o=this.xmax,u=n+(a=i)*r)}else if(e<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/e)<a&&(o=this.xmin,u=n+(a=i)*r)}return[o,u]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const e=(n+2)%t.length,r=(n+4)%t.length;(t[n]===t[e]&&t[e]===t[r]||t[n+1]===t[e+1]&&t[e+1]===t[r+1])&&(t.splice(e,2),n-=2)}t.length||(t=null)}return t}}const Xu=2*Math.PI,Gu=Math.pow;function Wu(t){return t[0]}function Qu(t){return t[1]}function Ku(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}class Ju{static from(t,n=Wu,e=Qu,r){return new Ju("length"in t?function(t,n,e,r){const i=t.length,o=new Float64Array(2*i);for(let u=0;u<i;++u){const i=t[u];o[2*u]=n.call(r,i,u,t),o[2*u+1]=e.call(r,i,u,t)}return o}(t,n,e,r):Float64Array.from(function*(t,n,e,r){let i=0;for(const o of t)yield n.call(r,o,i,t),yield e.call(r,o,i,t),++i}(t,n,e,r)))}constructor(t){this._delaunator=new Fu(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:n,coords:e}=t;for(let r=0;r<n.length;r+=3){const t=2*n[r],i=2*n[r+1],o=2*n[r+2];if((e[o]-e[t])*(e[i+1]-e[t+1])-(e[i]-e[t])*(e[o+1]-e[t+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},((t,n)=>n)).sort(((t,e)=>n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]));const t=this.collinear[0],e=this.collinear[this.collinear.length-1],r=[n[2*t],n[2*t+1],n[2*e],n[2*e+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let o=0,u=n.length/2;o<u;++o){const t=Ku(n[2*o],n[2*o+1],i);n[2*o]=t[0],n[2*o+1]=t[1]}this._delaunator=new Fu(n)}else delete this.collinear;const e=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),u=this._hullIndex.fill(-1);for(let a=0,c=e.length;a<c;++a){const t=i[a%3===2?a-2:a+1];-1!==e[a]&&-1!==o[t]||(o[t]=a)}for(let a=0,c=r.length;a<c;++a)u[r[a]]=a;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new Vu(this,t)}*neighbors(t){const{inedges:n,hull:e,_hullIndex:r,halfedges:i,triangles:o,collinear:u}=this;if(u){const n=u.indexOf(t);return n>0&&(yield u[n-1]),void(n<u.length-1&&(yield u[n+1]))}const a=n[t];if(-1===a)return;let c=a,f=-1;do{if(yield f=o[c],c=c%3===2?c-2:c+1,o[c]!==t)return;if(c=i[c],-1===c){const n=e[(r[t]+1)%e.length];return void(n!==f&&(yield n))}}while(c!==a)}find(t,n,e=0){if((t=+t)!==t||(n=+n)!==n)return-1;const r=e;let i;for(;(i=this._step(e,t,n))>=0&&i!==e&&i!==r;)e=i;return i}_step(t,n,e){const{inedges:r,hull:i,_hullIndex:o,halfedges:u,triangles:a,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let f=t,s=Gu(n-c[2*t],2)+Gu(e-c[2*t+1],2);const l=r[t];let h=l;do{let r=a[h];const l=Gu(n-c[2*r],2)+Gu(e-c[2*r+1],2);if(l<s&&(s=l,f=r),h=h%3===2?h-2:h+1,a[h]!==t)break;if(h=u[h],-1===h){if(h=i[(o[t]+1)%i.length],h!==r&&Gu(n-c[2*h],2)+Gu(e-c[2*h+1],2)<s)return h;break}}while(h!==l);return f}render(t){const n=null==t?t=new Hu:void 0,{points:e,halfedges:r,triangles:i}=this;for(let o=0,u=r.length;o<u;++o){const n=r[o];if(n<o)continue;const u=2*i[o],a=2*i[n];t.moveTo(e[u],e[u+1]),t.lineTo(e[a],e[a+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){void 0!==n||t&&"function"===typeof t.moveTo||(n=t,t=null),n=void 0==n?2:+n;const e=null==t?t=new Hu:void 0,{points:r}=this;for(let i=0,o=r.length;i<o;i+=2){const e=r[i],o=r[i+1];t.moveTo(e+n,o),t.arc(e,o,n,0,Xu)}return e&&e.value()}renderHull(t){const n=null==t?t=new Hu:void 0,{hull:e,points:r}=this,i=2*e[0],o=e.length;t.moveTo(r[i],r[i+1]);for(let u=1;u<o;++u){const n=2*e[u];t.lineTo(r[n],r[n+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new ju;return this.renderHull(t),t.value()}renderTriangle(t,n){const e=null==n?n=new Hu:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],u=2*i[t+1],a=2*i[t+2];return n.moveTo(r[o],r[o+1]),n.lineTo(r[u],r[u+1]),n.lineTo(r[a],r[a+1]),n.closePath(),e&&e.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,e=t.length/3;n<e;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new ju;return this.renderTriangle(t,n),n.value()}}var ta=t=>()=>t;function na(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:u,y:a,dx:c,dy:f,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:s}})}function ea(t){return!t.ctrlKey&&!t.button}function ra(){return this.parentNode}function ia(t,n){return null==n?{x:t.x,y:t.y}:n}function oa(){return navigator.maxTouchPoints||"ontouchstart"in this}function ua(){var t,n,e,r,i=ea,o=ra,u=ia,a=oa,c={},f=Mn("start","drag","end"),s=0,l=0;function h(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",y).on("touchmove.drag",v,$e).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(u,a){if(!r&&i.call(this,u,a)){var c=b(this,o.call(this,u,a),u,a,"mouse");c&&(Re(u.view).on("mousemove.drag",p,qe).on("mouseup.drag",g,qe),Ie(u.view),Be(u),e=!1,t=u.clientX,n=u.clientY,c("start",u))}}function p(r){if(Ye(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>l}c.mouse("drag",r)}function g(t){Re(t.view).on("mousemove.drag mouseup.drag",null),Oe(t.view,e),Ye(t),c.mouse("end",t)}function y(t,n){if(i.call(this,t,n)){var e,r,u=t.changedTouches,a=o.call(this,t,n),c=u.length;for(e=0;e<c;++e)(r=b(this,a,t,n,u[e].identifier,u[e]))&&(Be(t),r("start",t,u[e]))}}function v(t){var n,e,r=t.changedTouches,i=r.length;for(n=0;n<i;++n)(e=c[r[n].identifier])&&(Ye(t),e("drag",t,r[n]))}function _(t){var n,e,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),n=0;n<o;++n)(e=c[i[n].identifier])&&(Be(t),e("end",t,i[n]))}function b(t,n,e,r,i,o){var a,l,d,p=f.copy(),g=je(o||e,n);if(null!=(d=u.call(t,new na("beforestart",{sourceEvent:e,target:h,identifier:i,active:s,x:g[0],y:g[1],dx:0,dy:0,dispatch:p}),r)))return a=d.x-g[0]||0,l=d.y-g[1]||0,function e(o,u,f){var y,v=g;switch(o){case"start":c[i]=e,y=s++;break;case"end":delete c[i],--s;case"drag":g=je(f||u,n),y=s}p.call(o,t,new na(o,{sourceEvent:u,subject:d,target:h,identifier:i,active:y,x:g[0]+a,y:g[1]+l,dx:g[0]-v[0],dy:g[1]-v[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(i="function"===typeof t?t:ta(!!t),h):i},h.container=function(t){return arguments.length?(o="function"===typeof t?t:ta(t),h):o},h.subject=function(t){return arguments.length?(u="function"===typeof t?t:ta(t),h):u},h.touchable=function(t){return arguments.length?(a="function"===typeof t?t:ta(!!t),h):a},h.on=function(){var t=f.on.apply(f,arguments);return t===f?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h}na.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var aa={},ca={},fa=34,sa=10,la=13;function ha(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function da(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}function pa(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function ga(t){var n,e=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((n=t.getUTCFullYear())<0?"-"+pa(-n,6):n>9999?"+"+pa(n,6):pa(n,4))+"-"+pa(t.getUTCMonth()+1,2)+"-"+pa(t.getUTCDate(),2)+(o?"T"+pa(e,2)+":"+pa(r,2)+":"+pa(i,2)+"."+pa(o,3)+"Z":i?"T"+pa(e,2)+":"+pa(r,2)+":"+pa(i,2)+"Z":r||e?"T"+pa(e,2)+":"+pa(r,2)+"Z":"")}function ya(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,u=0,a=0,c=o<=0,f=!1;function s(){if(c)return ca;if(f)return f=!1,aa;var n,r,i=u;if(t.charCodeAt(i)===fa){for(;u++<o&&t.charCodeAt(u)!==fa||t.charCodeAt(++u)===fa;);return(n=u)>=o?c=!0:(r=t.charCodeAt(u++))===sa?f=!0:r===la&&(f=!0,t.charCodeAt(u)===sa&&++u),t.slice(i+1,n-1).replace(/""/g,'"')}for(;u<o;){if((r=t.charCodeAt(n=u++))===sa)f=!0;else if(r===la)f=!0,t.charCodeAt(u)===sa&&++u;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,o)}for(t.charCodeAt(o-1)===sa&&--o,t.charCodeAt(o-1)===la&&--o;(r=s())!==ca;){for(var l=[];r!==aa&&r!==ca;)l.push(r),r=s();n&&null==(l=n(l,a++))||i.push(l)}return i}function i(n,e){return n.map((function(n){return e.map((function(t){return u(n[t])})).join(t)}))}function o(n){return n.map(u).join(t)}function u(t){return null==t?"":t instanceof Date?ga(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,o=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=ha(t);return function(r,i){return n(e(r),i,t)}}(t,n):ha(t)}));return o.columns=i||[],o},parseRows:r,format:function(n,e){return null==e&&(e=da(n)),[e.map(u).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=da(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:u}}var va=ya(","),_a=va.parse,ba=va.parseRows,ma=va.format,xa=va.formatBody,wa=va.formatRows,Ma=va.formatRow,Ta=va.formatValue,Aa=ya("\t"),Sa=Aa.parse,Na=Aa.parseRows,Ea=Aa.format,ka=Aa.formatBody,Ca=Aa.formatRows,Pa=Aa.formatRow,Za=Aa.formatValue;function Da(t){for(var n in t){var e,r,i=t[n].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(e=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;za&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=e;else i=null;t[n]=i}return t}const za=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Ua=t=>+t;function Fa(t){return t*t}function Ra(t){return t*(2-t)}function $a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var qa=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),Ba=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),Ya=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),Ia=Math.PI,Oa=Ia/2;function La(t){return 1===+t?1:1-Math.cos(t*Oa)}function Ha(t){return Math.sin(t*Oa)}function ja(t){return(1-Math.cos(Ia*t))/2}function Va(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Xa(t){return Va(1-+t)}function Ga(t){return 1-Va(t)}function Wa(t){return((t*=2)<=1?Va(1-t):2-Va(t-1))/2}function Qa(t){return 1-Math.sqrt(1-t*t)}function Ka(t){return Math.sqrt(1- --t*t)}function Ja(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var tc=4/11,nc=6/11,ec=8/11,rc=3/4,ic=9/11,oc=10/11,uc=15/16,ac=21/22,cc=63/64,fc=1/tc/tc;function sc(t){return 1-lc(1-t)}function lc(t){return(t=+t)<tc?fc*t*t:t<ec?fc*(t-=nc)*t+rc:t<oc?fc*(t-=ic)*t+uc:fc*(t-=ac)*t+cc}function hc(t){return((t*=2)<=1?1-lc(1-t):lc(t-1)+1)/2}var dc=1.70158,pc=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(dc),gc=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(dc),yc=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(dc),vc=2*Math.PI,_c=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=vc);function i(t){return n*Va(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*vc)},i.period=function(e){return t(n,e)},i}(1,.3),bc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=vc);function i(t){return 1-n*Va(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*vc)},i.period=function(e){return t(n,e)},i}(1,.3),mc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=vc);function i(t){return((t=2*t-1)<0?n*Va(-t)*Math.sin((r-t)/e):2-n*Va(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*vc)},i.period=function(e){return t(n,e)},i}(1,.3);function xc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function wc(t,n){return fetch(t,n).then(xc)}function Mc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Tc(t,n){return fetch(t,n).then(Mc)}function Ac(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Sc(t,n){return fetch(t,n).then(Ac)}function Nc(t){return function(n,e,r){return 2===arguments.length&&"function"===typeof e&&(r=e,e=void 0),Sc(n,e).then((function(n){return t(n,r)}))}}function Ec(t,n,e,r){3===arguments.length&&"function"===typeof e&&(r=e,e=void 0);var i=ya(t);return Sc(n,e).then((function(t){return i.parse(t,r)}))}var kc=Nc(_a),Cc=Nc(Sa);function Pc(t,n){return new Promise((function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t}))}function Zc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Dc(t,n){return fetch(t,n).then(Zc)}function zc(t){return(n,e)=>Sc(n,e).then((n=>(new DOMParser).parseFromString(n,t)))}var Uc=zc("application/xml"),Fc=zc("text/html"),Rc=zc("image/svg+xml");function $c(t,n){var e,r=1;function i(){var i,o,u=e.length,a=0,c=0;for(i=0;i<u;++i)a+=(o=e[i]).x,c+=o.y;for(a=(a/u-t)*r,c=(c/u-n)*r,i=0;i<u;++i)(o=e[i]).x-=a,o.y-=c}return null==t&&(t=0),null==n&&(n=0),i.initialize=function(t){e=t},i.x=function(n){return arguments.length?(t=+n,i):t},i.y=function(t){return arguments.length?(n=+t,i):n},i.strength=function(t){return arguments.length?(r=+t,i):r},i}function qc(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,c,f,s,l,h,d=t._root,p={data:r},g=t._x0,y=t._y0,v=t._x1,_=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((f=n>=(o=(g+v)/2))?g=o:v=o,(s=e>=(u=(y+_)/2))?y=u:_=u,i=d,!(d=d[l=s<<1|f]))return i[l]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===a&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(f=n>=(o=(g+v)/2))?g=o:v=o,(s=e>=(u=(y+_)/2))?y=u:_=u}while((l=s<<1|f)===(h=(c>=u)<<1|a>=o));return i[h]=d,i[l]=p,t}function Bc(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Yc(t){return t[0]}function Ic(t){return t[1]}function Oc(t,n,e){var r=new Lc(null==n?Yc:n,null==e?Ic:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Lc(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Hc(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var jc=Oc.prototype=Lc.prototype;function Vc(t){return function(){return t}}function Xc(t){return 1e-6*(t()-.5)}function Gc(t){return t.x+t.vx}function Wc(t){return t.y+t.vy}function Qc(t){var n,e,r,i=1,o=1;function u(){for(var t,u,c,f,s,l,h,d=n.length,p=0;p<o;++p)for(u=Oc(n,Gc,Wc).visitAfter(a),t=0;t<d;++t)c=n[t],l=e[c.index],h=l*l,f=c.x+c.vx,s=c.y+c.vy,u.visit(g);function g(t,n,e,o,u){var a=t.data,d=t.r,p=l+d;if(!a)return n>f+p||o<f-p||e>s+p||u<s-p;if(a.index>c.index){var g=f-a.x-a.vx,y=s-a.y-a.vy,v=g*g+y*y;v<p*p&&(0===g&&(v+=(g=Xc(r))*g),0===y&&(v+=(y=Xc(r))*y),v=(p-(v=Math.sqrt(v)))/v*i,c.vx+=(g*=v)*(p=(d*=d)/(h+d)),c.vy+=(y*=v)*p,a.vx-=g*(p=1-p),a.vy-=y*p)}}}function a(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function c(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r<o;++r)i=n[r],e[i.index]=+t(i,r,n)}}return"function"!==typeof t&&(t=Vc(null==t?1:+t)),u.initialize=function(t,e){n=t,r=e,c()},u.iterations=function(t){return arguments.length?(o=+t,u):o},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(n){return arguments.length?(t="function"===typeof n?n:Vc(+n),c(),u):t},u}function Kc(t){return t.index}function Jc(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}function tf(t){var n,e,r,i,o,u,a=Kc,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},f=Vc(30),s=1;function l(r){for(var i=0,a=t.length;i<s;++i)for(var c,f,l,h,d,p,g,y=0;y<a;++y)f=(c=t[y]).source,h=(l=c.target).x+l.vx-f.x-f.vx||Xc(u),d=l.y+l.vy-f.y-f.vy||Xc(u),h*=p=((p=Math.sqrt(h*h+d*d))-e[y])/p*r*n[y],d*=p,l.vx-=h*(g=o[y]),l.vy-=d*g,f.vx+=h*(g=1-g),f.vy+=d*g}function h(){if(r){var u,c,f=r.length,s=t.length,l=new Map(r.map(((t,n)=>[a(t,n,r),t])));for(u=0,i=new Array(f);u<s;++u)(c=t[u]).index=u,"object"!==typeof c.source&&(c.source=Jc(l,c.source)),"object"!==typeof c.target&&(c.target=Jc(l,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(u=0,o=new Array(s);u<s;++u)c=t[u],o[u]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);n=new Array(s),d(),e=new Array(s),p()}}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+c(t[e],e,t)}function p(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+f(t[n],n,t)}return null==t&&(t=[]),l.initialize=function(t,n){r=t,u=n,h()},l.links=function(n){return arguments.length?(t=n,h(),l):t},l.id=function(t){return arguments.length?(a=t,l):a},l.iterations=function(t){return arguments.length?(s=+t,l):s},l.strength=function(t){return arguments.length?(c="function"===typeof t?t:Vc(+t),d(),l):c},l.distance=function(t){return arguments.length?(f="function"===typeof t?t:Vc(+t),p(),l):f},l}jc.copy=function(){var t,n,e=new Lc(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Hc(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Hc(n));return e},jc.add=function(t){const n=+this._x.call(null,t),e=+this._y.call(null,t);return qc(this.cover(n,e),n,e,t)},jc.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,f=1/0,s=-1/0,l=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(u[e]=r,a[e]=i,r<c&&(c=r),r>s&&(s=r),i<f&&(f=i),i>l&&(l=i));if(c>s||f>l)return this;for(this.cover(c,f).cover(s,l),e=0;e<o;++e)qc(this,u[e],a[e],t[e]);return this},jc.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var u,a,c=i-e||1,f=this._root;e>t||t>=i||r>n||n>=o;)switch(a=(n<r)<<1|t<e,(u=new Array(4))[a]=f,f=u,c*=2,a){case 0:i=e+c,o=r+c;break;case 1:e=i-c,o=r+c;break;case 2:i=e+c,r=o-c;break;case 3:e=i-c,r=o-c}this._root&&this._root.length&&(this._root=f)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},jc.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},jc.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},jc.find=function(t,n,e){var r,i,o,u,a,c,f,s=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new Bc(g,s,l,h,d)),null==e?e=1/0:(s=t-e,l=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(u=c.x1)<s||(a=c.y1)<l))if(g.length){var y=(i+u)/2,v=(o+a)/2;p.push(new Bc(g[3],y,v,u,a),new Bc(g[2],i,v,y,a),new Bc(g[1],y,o,u,v),new Bc(g[0],i,o,y,v)),(f=(n>=v)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-f],p[p.length-1-f]=c)}else{var _=t-+this._x.call(null,g.data),b=n-+this._y.call(null,g.data),m=_*_+b*b;if(m<e){var x=Math.sqrt(e=m);s=t-x,l=n-x,h=t+x,d=n+x,r=g.data}}return r},jc.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var n,e,r,i,o,u,a,c,f,s,l,h,d=this._root,p=this._x0,g=this._y0,y=this._x1,v=this._y1;if(!d)return this;if(d.length)for(;;){if((f=o>=(a=(p+y)/2))?p=a:y=a,(s=u>=(c=(g+v)/2))?g=c:v=c,n=d,!(d=d[l=s<<1|f]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},jc.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},jc.root=function(){return this._root},jc.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},jc.visit=function(t){var n,e,r,i,o,u,a=[],c=this._root;for(c&&a.push(new Bc(c,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&c.length){var f=(r+o)/2,s=(i+u)/2;(e=c[3])&&a.push(new Bc(e,f,s,o,u)),(e=c[2])&&a.push(new Bc(e,r,s,f,u)),(e=c[1])&&a.push(new Bc(e,f,i,o,s)),(e=c[0])&&a.push(new Bc(e,r,i,f,s))}return this},jc.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new Bc(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,u=n.x0,a=n.y0,c=n.x1,f=n.y1,s=(u+c)/2,l=(a+f)/2;(o=i[0])&&e.push(new Bc(o,u,a,s,l)),(o=i[1])&&e.push(new Bc(o,s,a,c,l)),(o=i[2])&&e.push(new Bc(o,u,l,s,f)),(o=i[3])&&e.push(new Bc(o,s,l,c,f))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},jc.x=function(t){return arguments.length?(this._x=t,this):this._x},jc.y=function(t){return arguments.length?(this._y=t,this):this._y};const nf=1664525,ef=1013904223,rf=4294967296;function of(t){return t.x}function uf(t){return t.y}var af=10,cf=Math.PI*(3-Math.sqrt(5));function ff(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,u=.6,a=new Map,c=ar(l),f=Mn("tick","end"),s=function(){let t=1;return()=>(t=(nf*t+ef)%rf)/rf}();function l(){h(),f.call("tick",n),e<r&&(c.stop(),f.call("end",n))}function h(r){var c,f,s=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(e+=(o-e)*i,a.forEach((function(t){t(e)})),c=0;c<s;++c)null==(f=t[c]).fx?f.x+=f.vx*=u:(f.x=f.fx,f.vx=0),null==f.fy?f.y+=f.vy*=u:(f.y=f.fy,f.vy=0);return n}function d(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=af*Math.sqrt(.5+e),o=e*cf;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function p(n){return n.initialize&&n.initialize(t,s),n}return null==t&&(t=[]),d(),n={tick:h,restart:function(){return c.restart(l),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,d(),a.forEach(p),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(u=1-t,n):1-u},randomSource:function(t){return arguments.length?(s=t,a.forEach(p),n):s},force:function(t,e){return arguments.length>1?(null==e?a.delete(t):a.set(t,p(e)),n):a.get(t)},find:function(n,e,r){var i,o,u,a,c,f=0,s=t.length;for(null==r?r=1/0:r*=r,f=0;f<s;++f)(u=(i=n-(a=t[f]).x)*i+(o=e-a.y)*o)<r&&(c=a,r=u);return c},on:function(t,e){return arguments.length>1?(f.on(t,e),n):f.on(t)}}}function sf(){var t,n,e,r,i,o=Vc(-30),u=1,a=1/0,c=.81;function f(e){var i,o=t.length,u=Oc(t,of,uf).visitAfter(l);for(r=e,i=0;i<o;++i)n=t[i],u.visit(h)}function s(){if(t){var n,e,r=t.length;for(i=new Array(r),n=0;n<r;++n)e=t[n],i[e.index]=+o(e,n,t)}}function l(t){var n,e,r,o,u,a=0,c=0;if(t.length){for(r=o=u=0;u<4;++u)(n=t[u])&&(e=Math.abs(n.value))&&(a+=n.value,c+=e,r+=e*n.x,o+=e*n.y);t.x=r/c,t.y=o/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{a+=i[n.data.index]}while(n=n.next)}t.value=a}function h(t,o,f,s){if(!t.value)return!0;var l=t.x-n.x,h=t.y-n.y,d=s-o,p=l*l+h*h;if(d*d/c<p)return p<a&&(0===l&&(p+=(l=Xc(e))*l),0===h&&(p+=(h=Xc(e))*h),p<u&&(p=Math.sqrt(u*p)),n.vx+=l*t.value*r/p,n.vy+=h*t.value*r/p),!0;if(!(t.length||p>=a)){(t.data!==n||t.next)&&(0===l&&(p+=(l=Xc(e))*l),0===h&&(p+=(h=Xc(e))*h),p<u&&(p=Math.sqrt(u*p)));do{t.data!==n&&(d=i[t.data.index]*r/p,n.vx+=l*d,n.vy+=h*d)}while(t=t.next)}}return f.initialize=function(n,r){t=n,e=r,s()},f.strength=function(t){return arguments.length?(o="function"===typeof t?t:Vc(+t),s(),f):o},f.distanceMin=function(t){return arguments.length?(u=t*t,f):Math.sqrt(u)},f.distanceMax=function(t){return arguments.length?(a=t*t,f):Math.sqrt(a)},f.theta=function(t){return arguments.length?(c=t*t,f):Math.sqrt(c)},f}function lf(t,n,e){var r,i,o,u=Vc(.1);function a(t){for(var u=0,a=r.length;u<a;++u){var c=r[u],f=c.x-n||1e-6,s=c.y-e||1e-6,l=Math.sqrt(f*f+s*s),h=(o[u]-l)*i[u]*t/l;c.vx+=f*h,c.vy+=s*h}}function c(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)o[n]=+t(r[n],n,r),i[n]=isNaN(o[n])?0:+u(r[n],n,r)}}return"function"!==typeof t&&(t=Vc(+t)),null==n&&(n=0),null==e&&(e=0),a.initialize=function(t){r=t,c()},a.strength=function(t){return arguments.length?(u="function"===typeof t?t:Vc(+t),c(),a):u},a.radius=function(n){return arguments.length?(t="function"===typeof n?n:Vc(+n),c(),a):t},a.x=function(t){return arguments.length?(n=+t,a):n},a.y=function(t){return arguments.length?(e=+t,a):e},a}function hf(t){var n,e,r,i=Vc(.1);function o(t){for(var i,o=0,u=n.length;o<u;++o)(i=n[o]).vx+=(r[o]-i.x)*e[o]*t}function u(){if(n){var o,u=n.length;for(e=new Array(u),r=new Array(u),o=0;o<u;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!==typeof t&&(t=Vc(null==t?0:+t)),o.initialize=function(t){n=t,u()},o.strength=function(t){return arguments.length?(i="function"===typeof t?t:Vc(+t),u(),o):i},o.x=function(n){return arguments.length?(t="function"===typeof n?n:Vc(+n),u(),o):t},o}function df(t){var n,e,r,i=Vc(.1);function o(t){for(var i,o=0,u=n.length;o<u;++o)(i=n[o]).vy+=(r[o]-i.y)*e[o]*t}function u(){if(n){var o,u=n.length;for(e=new Array(u),r=new Array(u),o=0;o<u;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!==typeof t&&(t=Vc(null==t?0:+t)),o.initialize=function(t){n=t,u()},o.strength=function(t){return arguments.length?(i="function"===typeof t?t:Vc(+t),u(),o):i},o.y=function(n){return arguments.length?(t="function"===typeof n?n:Vc(+n),u(),o):t},o}var pf=e(65386),gf=e(80028),yf=e(42035),vf=e(96909),_f=e(87017),bf=e(63482);class mf{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,u=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);u&&(n[e++]=u),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}var xf=1e-6,wf=1e-12,Mf=Math.PI,Tf=Mf/2,Af=Mf/4,Sf=2*Mf,Nf=180/Mf,Ef=Mf/180,kf=Math.abs,Cf=Math.atan,Pf=Math.atan2,Zf=Math.cos,Df=Math.ceil,zf=Math.exp,Uf=(Math.floor,Math.hypot),Ff=Math.log,Rf=Math.pow,$f=Math.sin,qf=Math.sign||function(t){return t>0?1:t<0?-1:0},Bf=Math.sqrt,Yf=Math.tan;function If(t){return t>1?0:t<-1?Mf:Math.acos(t)}function Of(t){return t>1?Tf:t<-1?-Tf:Math.asin(t)}function Lf(t){return(t=$f(t/2))*t}function Hf(){}function jf(t,n){t&&Xf.hasOwnProperty(t.type)&&Xf[t.type](t,n)}var Vf={Feature:function(t,n){jf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)jf(e[r].geometry,n)}},Xf={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Gf(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Gf(e[r],n,0)},Polygon:function(t,n){Wf(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Wf(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)jf(e[r],n)}};function Gf(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function Wf(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Gf(t[e],n,1);n.polygonEnd()}function Qf(t,n){t&&Vf.hasOwnProperty(t.type)?Vf[t.type](t,n):jf(t,n)}var Kf,Jf,ts,ns,es,rs,is,os,us,as,cs,fs,ss,ls,hs,ds,ps=new mf,gs=new mf,ys={point:Hf,lineStart:Hf,lineEnd:Hf,polygonStart:function(){ps=new mf,ys.lineStart=vs,ys.lineEnd=_s},polygonEnd:function(){var t=+ps;gs.add(t<0?Sf+t:t),this.lineStart=this.lineEnd=this.point=Hf},sphere:function(){gs.add(Sf)}};function vs(){ys.point=bs}function _s(){ms(Kf,Jf)}function bs(t,n){ys.point=ms,Kf=t,Jf=n,ts=t*=Ef,ns=Zf(n=(n*=Ef)/2+Af),es=$f(n)}function ms(t,n){var e=(t*=Ef)-ts,r=e>=0?1:-1,i=r*e,o=Zf(n=(n*=Ef)/2+Af),u=$f(n),a=es*u,c=ns*o+a*Zf(i),f=a*r*$f(i);ps.add(Pf(f,c)),ts=t,ns=o,es=u}function xs(t){return gs=new mf,Qf(t,ys),2*gs}function ws(t){return[Pf(t[1],t[0]),Of(t[2])]}function Ms(t){var n=t[0],e=t[1],r=Zf(e);return[r*Zf(n),r*$f(n),$f(e)]}function Ts(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function As(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Ss(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Ns(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Es(t){var n=Bf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var ks,Cs,Ps,Zs,Ds,zs,Us,Fs,Rs,$s,qs,Bs,Ys,Is,Os,Ls,Hs={point:js,lineStart:Xs,lineEnd:Gs,polygonStart:function(){Hs.point=Ws,Hs.lineStart=Qs,Hs.lineEnd=Ks,ls=new mf,ys.polygonStart()},polygonEnd:function(){ys.polygonEnd(),Hs.point=js,Hs.lineStart=Xs,Hs.lineEnd=Gs,ps<0?(rs=-(os=180),is=-(us=90)):ls>xf?us=90:ls<-xf&&(is=-90),ds[0]=rs,ds[1]=os},sphere:function(){rs=-(os=180),is=-(us=90)}};function js(t,n){hs.push(ds=[rs=t,os=t]),n<is&&(is=n),n>us&&(us=n)}function Vs(t,n){var e=Ms([t*Ef,n*Ef]);if(ss){var r=As(ss,e),i=As([r[1],-r[0],0],r);Es(i),i=ws(i);var o,u=t-as,a=u>0?1:-1,c=i[0]*Nf*a,f=kf(u)>180;f^(a*as<c&&c<a*t)?(o=i[1]*Nf)>us&&(us=o):f^(a*as<(c=(c+360)%360-180)&&c<a*t)?(o=-i[1]*Nf)<is&&(is=o):(n<is&&(is=n),n>us&&(us=n)),f?t<as?Js(rs,t)>Js(rs,os)&&(os=t):Js(t,os)>Js(rs,os)&&(rs=t):os>=rs?(t<rs&&(rs=t),t>os&&(os=t)):t>as?Js(rs,t)>Js(rs,os)&&(os=t):Js(t,os)>Js(rs,os)&&(rs=t)}else hs.push(ds=[rs=t,os=t]);n<is&&(is=n),n>us&&(us=n),ss=e,as=t}function Xs(){Hs.point=Vs}function Gs(){ds[0]=rs,ds[1]=os,Hs.point=js,ss=null}function Ws(t,n){if(ss){var e=t-as;ls.add(kf(e)>180?e+(e>0?360:-360):e)}else cs=t,fs=n;ys.point(t,n),Vs(t,n)}function Qs(){ys.lineStart()}function Ks(){Ws(cs,fs),ys.lineEnd(),kf(ls)>xf&&(rs=-(os=180)),ds[0]=rs,ds[1]=os,ss=null}function Js(t,n){return(n-=t)<0?n+360:n}function tl(t,n){return t[0]-n[0]}function nl(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function el(t){var n,e,r,i,o,u,a;if(us=os=-(rs=is=1/0),hs=[],Qf(t,Hs),e=hs.length){for(hs.sort(tl),n=1,o=[r=hs[0]];n<e;++n)nl(r,(i=hs[n])[0])||nl(r,i[1])?(Js(r[0],i[1])>Js(r[0],r[1])&&(r[1]=i[1]),Js(i[0],r[1])>Js(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(a=Js(r[1],i[0]))>u&&(u=a,rs=i[0],os=r[1])}return hs=ds=null,rs===1/0||is===1/0?[[NaN,NaN],[NaN,NaN]]:[[rs,is],[os,us]]}var rl={sphere:Hf,point:il,lineStart:ul,lineEnd:fl,polygonStart:function(){rl.lineStart=sl,rl.lineEnd=ll},polygonEnd:function(){rl.lineStart=ul,rl.lineEnd=fl}};function il(t,n){t*=Ef;var e=Zf(n*=Ef);ol(e*Zf(t),e*$f(t),$f(n))}function ol(t,n,e){++ks,Ps+=(t-Ps)/ks,Zs+=(n-Zs)/ks,Ds+=(e-Ds)/ks}function ul(){rl.point=al}function al(t,n){t*=Ef;var e=Zf(n*=Ef);Is=e*Zf(t),Os=e*$f(t),Ls=$f(n),rl.point=cl,ol(Is,Os,Ls)}function cl(t,n){t*=Ef;var e=Zf(n*=Ef),r=e*Zf(t),i=e*$f(t),o=$f(n),u=Pf(Bf((u=Os*o-Ls*i)*u+(u=Ls*r-Is*o)*u+(u=Is*i-Os*r)*u),Is*r+Os*i+Ls*o);Cs+=u,zs+=u*(Is+(Is=r)),Us+=u*(Os+(Os=i)),Fs+=u*(Ls+(Ls=o)),ol(Is,Os,Ls)}function fl(){rl.point=il}function sl(){rl.point=hl}function ll(){dl(Bs,Ys),rl.point=il}function hl(t,n){Bs=t,Ys=n,t*=Ef,n*=Ef,rl.point=dl;var e=Zf(n);Is=e*Zf(t),Os=e*$f(t),Ls=$f(n),ol(Is,Os,Ls)}function dl(t,n){t*=Ef;var e=Zf(n*=Ef),r=e*Zf(t),i=e*$f(t),o=$f(n),u=Os*o-Ls*i,a=Ls*r-Is*o,c=Is*i-Os*r,f=Uf(u,a,c),s=Of(f),l=f&&-s/f;Rs.add(l*u),$s.add(l*a),qs.add(l*c),Cs+=s,zs+=s*(Is+(Is=r)),Us+=s*(Os+(Os=i)),Fs+=s*(Ls+(Ls=o)),ol(Is,Os,Ls)}function pl(t){ks=Cs=Ps=Zs=Ds=zs=Us=Fs=0,Rs=new mf,$s=new mf,qs=new mf,Qf(t,rl);var n=+Rs,e=+$s,r=+qs,i=Uf(n,e,r);return i<wf&&(n=zs,e=Us,r=Fs,Cs<xf&&(n=Ps,e=Zs,r=Ds),(i=Uf(n,e,r))<wf)?[NaN,NaN]:[Pf(e,n)*Nf,Of(r/i)*Nf]}function gl(t){return function(){return t}}function yl(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e}function vl(t,n){return kf(t)>Mf&&(t-=Math.round(t/Sf)*Sf),[t,n]}function _l(t,n,e){return(t%=Sf)?n||e?yl(ml(t),xl(n,e)):ml(t):n||e?xl(n,e):vl}function bl(t){return function(n,e){return kf(n+=t)>Mf&&(n-=Math.round(n/Sf)*Sf),[n,e]}}function ml(t){var n=bl(t);return n.invert=bl(-t),n}function xl(t,n){var e=Zf(t),r=$f(t),i=Zf(n),o=$f(n);function u(t,n){var u=Zf(n),a=Zf(t)*u,c=$f(t)*u,f=$f(n),s=f*e+a*r;return[Pf(c*i-s*o,a*e-f*r),Of(s*i+c*o)]}return u.invert=function(t,n){var u=Zf(n),a=Zf(t)*u,c=$f(t)*u,f=$f(n),s=f*i-c*o;return[Pf(c*i+f*o,a*e+s*r),Of(s*e-a*r)]},u}function wl(t){function n(n){return(n=t(n[0]*Ef,n[1]*Ef))[0]*=Nf,n[1]*=Nf,n}return t=_l(t[0]*Ef,t[1]*Ef,t.length>2?t[2]*Ef:0),n.invert=function(n){return(n=t.invert(n[0]*Ef,n[1]*Ef))[0]*=Nf,n[1]*=Nf,n},n}function Ml(t,n,e,r,i,o){if(e){var u=Zf(n),a=$f(n),c=r*e;null==i?(i=n+r*Sf,o=n-c/2):(i=Tl(u,i),o=Tl(u,o),(r>0?i<o:i>o)&&(i+=r*Sf));for(var f,s=i;r>0?s>o:s<o;s-=c)f=ws([u,-a*Zf(s),-a*$f(s)]),t.point(f[0],f[1])}}function Tl(t,n){(n=Ms(n))[0]-=t,Es(n);var e=If(-n[1]);return((-n[2]<0?-e:e)+Sf-xf)%Sf}function Al(){var t,n,e=gl([0,0]),r=gl(90),i=gl(6),o={point:function(e,r){t.push(e=n(e,r)),e[0]*=Nf,e[1]*=Nf}};function u(){var u=e.apply(this,arguments),a=r.apply(this,arguments)*Ef,c=i.apply(this,arguments)*Ef;return t=[],n=_l(-u[0]*Ef,-u[1]*Ef,0).invert,Ml(o,a,c,1),u={type:"Polygon",coordinates:[t]},t=n=null,u}return u.center=function(t){return arguments.length?(e="function"===typeof t?t:gl([+t[0],+t[1]]),u):e},u.radius=function(t){return arguments.length?(r="function"===typeof t?t:gl(+t),u):r},u.precision=function(t){return arguments.length?(i="function"===typeof t?t:gl(+t),u):i},u}function Sl(){var t,n=[];return{point:function(n,e,r){t.push([n,e,r])},lineStart:function(){n.push(t=[])},lineEnd:Hf,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function Nl(t,n){return kf(t[0]-n[0])<xf&&kf(t[1]-n[1])<xf}function El(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function kl(t,n,e,r,i){var o,u,a=[],c=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],u=t[n];if(Nl(r,u)){if(!r[2]&&!u[2]){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}u[0]+=2*xf}a.push(e=new El(r,t,null,!0)),c.push(e.o=new El(r,null,e,!1)),a.push(e=new El(u,t,null,!1)),c.push(e.o=new El(u,null,e,!0))}})),a.length){for(c.sort(n),Cl(a),Cl(c),o=0,u=c.length;o<u;++o)c[o].e=e=!e;for(var f,s,l=a[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;f=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,u=f.length;o<u;++o)i.point((s=f[o])[0],s[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(f=h.p.z,o=f.length-1;o>=0;--o)i.point((s=f[o])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}f=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function Cl(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function Pl(t){return kf(t[0])<=Mf?t[0]:qf(t[0])*((kf(t[0])+Mf)%Sf-Mf)}function Zl(t,n){var e=Pl(n),r=n[1],i=$f(r),o=[$f(e),-Zf(e),0],u=0,a=0,c=new mf;1===i?r=Tf+xf:-1===i&&(r=-Tf-xf);for(var f=0,s=t.length;f<s;++f)if(h=(l=t[f]).length)for(var l,h,d=l[h-1],p=Pl(d),g=d[1]/2+Af,y=$f(g),v=Zf(g),_=0;_<h;++_,p=m,y=w,v=M,d=b){var b=l[_],m=Pl(b),x=b[1]/2+Af,w=$f(x),M=Zf(x),T=m-p,A=T>=0?1:-1,S=A*T,N=S>Mf,E=y*w;if(c.add(Pf(E*A*$f(S),v*M+E*Zf(S))),u+=N?T+A*Sf:T,N^p>=e^m>=e){var k=As(Ms(d),Ms(b));Es(k);var C=As(o,k);Es(C);var P=(N^T>=0?-1:1)*Of(C[2]);(r>P||r===P&&(k[0]||k[1]))&&(a+=N^T>=0?1:-1)}}return(u<-xf||u<xf&&c<-wf)^1&a}function Dl(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function zl(t,n,e,r){return function(i){var o,u,a,c=n(i),f=Sl(),s=n(f),l=!1,h={point:d,lineStart:g,lineEnd:y,polygonStart:function(){h.point=v,h.lineStart=_,h.lineEnd=b,u=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=g,h.lineEnd=y,u=Dl(u);var t=Zl(o,r);u.length?(l||(i.polygonStart(),l=!0),kl(u,Fl,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=o=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function g(){h.point=p,c.lineStart()}function y(){h.point=d,c.lineEnd()}function v(t,n){a.push([t,n]),s.point(t,n)}function _(){s.lineStart(),a=[]}function b(){v(a[0][0],a[0][1]),s.lineEnd();var t,n,e,r,c=s.clean(),h=f.result(),d=h.length;if(a.pop(),o.push(a),a=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),u.push(h.filter(Ul))}return h}}function Ul(t){return t.length>1}function Fl(t,n){return((t=t.x)[0]<0?t[1]-Tf-xf:Tf-t[1])-((n=n.x)[0]<0?n[1]-Tf-xf:Tf-n[1])}vl.invert=vl;var Rl=zl((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?Mf:-Mf,c=kf(o-e);kf(c-Mf)<xf?(t.point(e,r=(r+u)/2>0?Tf:-Tf),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&c>=Mf&&(kf(e-i)<xf&&(e-=i*xf),kf(o-a)<xf&&(o-=a*xf),r=function(t,n,e,r){var i,o,u=$f(t-e);return kf(u)>xf?Cf(($f(n)*(o=Zf(r))*$f(e)-$f(r)*(i=Zf(n))*$f(t))/(i*o*u)):(n+r)/2}(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*Tf,r.point(-Mf,i),r.point(0,i),r.point(Mf,i),r.point(Mf,0),r.point(Mf,-i),r.point(0,-i),r.point(-Mf,-i),r.point(-Mf,0),r.point(-Mf,i);else if(kf(t[0]-n[0])>xf){var o=t[0]<n[0]?Mf:-Mf;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}),[-Mf,-Tf]);function $l(t){var n=Zf(t),e=6*Ef,r=n>0,i=kf(n)>xf;function o(t,e){return Zf(t)*Zf(e)>n}function u(t,e,r){var i=[1,0,0],o=As(Ms(t),Ms(e)),u=Ts(o,o),a=o[0],c=u-a*a;if(!c)return!r&&t;var f=n*u/c,s=-n*a/c,l=As(i,o),h=Ns(i,f);Ss(h,Ns(o,s));var d=l,p=Ts(h,d),g=Ts(d,d),y=p*p-g*(Ts(h,h)-1);if(!(y<0)){var v=Bf(y),_=Ns(d,(-p-v)/g);if(Ss(_,h),_=ws(_),!r)return _;var b,m=t[0],x=e[0],w=t[1],M=e[1];x<m&&(b=m,m=x,x=b);var T=x-m,A=kf(T-Mf)<xf;if(!A&&M<w&&(b=w,w=M,M=b),A||T<xf?A?w+M>0^_[1]<(kf(_[0]-m)<xf?w:M):w<=_[1]&&_[1]<=M:T>Mf^(m<=_[0]&&_[0]<=x)){var S=Ns(d,(-p+v)/g);return Ss(S,h),[_,ws(S)]}}}function a(n,e){var i=r?t:Mf-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return zl(o,(function(t){var n,e,c,f,s;return{lineStart:function(){f=c=!1,s=1},point:function(l,h){var d,p=[l,h],g=o(l,h),y=r?g?0:a(l,h):g?a(l+(l<0?Mf:-Mf),h):0;if(!n&&(f=c=g)&&t.lineStart(),g!==c&&(!(d=u(n,p))||Nl(n,d)||Nl(p,d))&&(p[2]=1),g!==c)s=0,g?(t.lineStart(),d=u(p,n),t.point(d[0],d[1])):(d=u(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^g){var v;y&e||!(v=u(p,n,!0))||(s=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1],3)))}!g||n&&Nl(n,p)||t.point(p[0],p[1]),n=p,c=g,e=y},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return s|(f&&c)<<1}}}),(function(n,r,i,o){Ml(o,t,e,i,n,r)}),r?[0,-t]:[-Mf,t-Mf])}var ql,Bl,Yl,Il,Ol=1e9,Ll=-Ol;function Hl(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,f){var s=0,l=0;if(null==i||(s=u(i,a))!==(l=u(o,a))||c(i,o)<0^a>0)do{f.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+a+4)%4)!==l);else f.point(o[0],o[1])}function u(r,i){return kf(r[0]-t)<xf?i>0?0:3:kf(r[0]-e)<xf?i>0?2:1:kf(r[1]-n)<xf?i>0?1:0:i>0?3:2}function a(t,n){return c(t.x,n.x)}function c(t,n){var e=u(t,1),r=u(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(u){var c,f,s,l,h,d,p,g,y,v,_,b=u,m=Sl(),x={point:w,lineStart:function(){x.point=M,f&&f.push(s=[]);v=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(M(l,h),d&&y&&m.rejoin(),c.push(m.result()));x.point=w,y&&b.lineEnd()},polygonStart:function(){b=m,c=[],f=[],_=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=f.length;e<i;++e)for(var o,u,a=f[e],c=1,s=a.length,l=a[0],h=l[0],d=l[1];c<s;++c)o=h,u=d,h=(l=a[c])[0],d=l[1],u<=r?d>r&&(h-o)*(r-u)>(d-u)*(t-o)&&++n:d<=r&&(h-o)*(r-u)<(d-u)*(t-o)&&--n;return n}(),e=_&&n,i=(c=Dl(c)).length;(e||i)&&(u.polygonStart(),e&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),i&&kl(c,a,n,o,u),u.polygonEnd());b=u,c=f=s=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(o,u){var a=i(o,u);if(f&&s.push([o,u]),v)l=o,h=u,d=a,v=!1,a&&(b.lineStart(),b.point(o,u));else if(a&&y)b.point(o,u);else{var c=[p=Math.max(Ll,Math.min(Ol,p)),g=Math.max(Ll,Math.min(Ol,g))],m=[o=Math.max(Ll,Math.min(Ol,o)),u=Math.max(Ll,Math.min(Ol,u))];!function(t,n,e,r,i,o){var u,a=t[0],c=t[1],f=0,s=1,l=n[0]-a,h=n[1]-c;if(u=e-a,l||!(u>0)){if(u/=l,l<0){if(u<f)return;u<s&&(s=u)}else if(l>0){if(u>s)return;u>f&&(f=u)}if(u=i-a,l||!(u<0)){if(u/=l,l<0){if(u>s)return;u>f&&(f=u)}else if(l>0){if(u<f)return;u<s&&(s=u)}if(u=r-c,h||!(u>0)){if(u/=h,h<0){if(u<f)return;u<s&&(s=u)}else if(h>0){if(u>s)return;u>f&&(f=u)}if(u=o-c,h||!(u<0)){if(u/=h,h<0){if(u>s)return;u>f&&(f=u)}else if(h>0){if(u<f)return;u<s&&(s=u)}return f>0&&(t[0]=a+f*l,t[1]=c+f*h),s<1&&(n[0]=a+s*l,n[1]=c+s*h),!0}}}}}(c,m,t,n,e,r)?a&&(b.lineStart(),b.point(o,u),_=!1):(y||(b.lineStart(),b.point(c[0],c[1])),b.point(m[0],m[1]),a||b.lineEnd(),_=!1)}p=o,g=u,y=a}return x}}function jl(){var t,n,e,r=0,i=0,o=960,u=500;return e={stream:function(e){return t&&n===e?t:t=Hl(r,i,o,u)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],u=+a[1][1],t=n=null,e):[[r,i],[o,u]]}}}var Vl={sphere:Hf,point:Hf,lineStart:function(){Vl.point=Gl,Vl.lineEnd=Xl},lineEnd:Hf,polygonStart:Hf,polygonEnd:Hf};function Xl(){Vl.point=Vl.lineEnd=Hf}function Gl(t,n){Bl=t*=Ef,Yl=$f(n*=Ef),Il=Zf(n),Vl.point=Wl}function Wl(t,n){t*=Ef;var e=$f(n*=Ef),r=Zf(n),i=kf(t-Bl),o=Zf(i),u=r*$f(i),a=Il*e-Yl*r*o,c=Yl*e+Il*r*o;ql.add(Pf(Bf(u*u+a*a),c)),Bl=t,Yl=e,Il=r}function Ql(t){return ql=new mf,Qf(t,Vl),+ql}var Kl=[null,null],Jl={type:"LineString",coordinates:Kl};function th(t,n){return Kl[0]=t,Kl[1]=n,Ql(Jl)}var nh={Feature:function(t,n){return rh(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(rh(e[r].geometry,n))return!0;return!1}},eh={Sphere:function(){return!0},Point:function(t,n){return ih(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(ih(e[r],n))return!0;return!1},LineString:function(t,n){return oh(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(oh(e[r],n))return!0;return!1},Polygon:function(t,n){return uh(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(uh(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(rh(e[r],n))return!0;return!1}};function rh(t,n){return!(!t||!eh.hasOwnProperty(t.type))&&eh[t.type](t,n)}function ih(t,n){return 0===th(t,n)}function oh(t,n){for(var e,r,i,o=0,u=t.length;o<u;o++){if(0===(r=th(t[o],n)))return!0;if(o>0&&(i=th(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<wf*i)return!0;e=r}return!1}function uh(t,n){return!!Zl(t.map(ah),ch(n))}function ah(t){return(t=t.map(ch)).pop(),t}function ch(t){return[t[0]*Ef,t[1]*Ef]}function fh(t,n){return(t&&nh.hasOwnProperty(t.type)?nh[t.type]:rh)(t,n)}function sh(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function lh(t,n,e){var r=sh(t,n-xf,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function hh(t,n,e){var r=sh(t,n-xf,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function dh(){var t,n,e,r,i,o,u,a,c,f,s,l,h=10,d=h,p=90,g=360,y=2.5;function v(){return{type:"MultiLineString",coordinates:_()}}function _(){return sh(Df(r/p)*p,e,p).map(s).concat(sh(Df(a/g)*g,u,g).map(l)).concat(sh(Df(n/h)*h,t,h).filter((function(t){return kf(t%p)>xf})).map(c)).concat(sh(Df(o/d)*d,i,d).filter((function(t){return kf(t%g)>xf})).map(f))}return v.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},v.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(l(u).slice(1),s(e).reverse().slice(1),l(a).reverse().slice(1))]}},v.extent=function(t){return arguments.length?v.extentMajor(t).extentMinor(t):v.extentMinor()},v.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],u=+t[1][1],r>e&&(t=r,r=e,e=t),a>u&&(t=a,a=u,u=t),v.precision(y)):[[r,a],[e,u]]},v.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),v.precision(y)):[[n,o],[t,i]]},v.step=function(t){return arguments.length?v.stepMajor(t).stepMinor(t):v.stepMinor()},v.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],v):[p,g]},v.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],v):[h,d]},v.precision=function(h){return arguments.length?(y=+h,c=lh(o,i,90),f=hh(n,t,y),s=lh(a,u,90),l=hh(r,e,y),v):y},v.extentMajor([[-180,-90+xf],[180,90-xf]]).extentMinor([[-180,-80-xf],[180,80+xf]])}function ph(){return dh()()}function gh(t,n){var e=t[0]*Ef,r=t[1]*Ef,i=n[0]*Ef,o=n[1]*Ef,u=Zf(r),a=$f(r),c=Zf(o),f=$f(o),s=u*Zf(e),l=u*$f(e),h=c*Zf(i),d=c*$f(i),p=2*Of(Bf(Lf(o-r)+u*c*Lf(i-e))),g=$f(p),y=p?function(t){var n=$f(t*=p)/g,e=$f(p-t)/g,r=e*s+n*h,i=e*l+n*d,o=e*a+n*f;return[Pf(i,r)*Nf,Pf(o,Bf(r*r+i*i))*Nf]}:function(){return[e*Nf,r*Nf]};return y.distance=p,y}var yh,vh,_h,bh,mh=t=>t,xh=new mf,wh=new mf,Mh={point:Hf,lineStart:Hf,lineEnd:Hf,polygonStart:function(){Mh.lineStart=Th,Mh.lineEnd=Nh},polygonEnd:function(){Mh.lineStart=Mh.lineEnd=Mh.point=Hf,xh.add(kf(wh)),wh=new mf},result:function(){var t=xh/2;return xh=new mf,t}};function Th(){Mh.point=Ah}function Ah(t,n){Mh.point=Sh,yh=_h=t,vh=bh=n}function Sh(t,n){wh.add(bh*t-_h*n),_h=t,bh=n}function Nh(){Sh(yh,vh)}var Eh=Mh,kh=1/0,Ch=kh,Ph=-kh,Zh=Ph,Dh={point:function(t,n){t<kh&&(kh=t);t>Ph&&(Ph=t);n<Ch&&(Ch=n);n>Zh&&(Zh=n)},lineStart:Hf,lineEnd:Hf,polygonStart:Hf,polygonEnd:Hf,result:function(){var t=[[kh,Ch],[Ph,Zh]];return Ph=Zh=-(Ch=kh=1/0),t}};var zh,Uh,Fh,Rh,$h=Dh,qh=0,Bh=0,Yh=0,Ih=0,Oh=0,Lh=0,Hh=0,jh=0,Vh=0,Xh={point:Gh,lineStart:Wh,lineEnd:Jh,polygonStart:function(){Xh.lineStart=td,Xh.lineEnd=nd},polygonEnd:function(){Xh.point=Gh,Xh.lineStart=Wh,Xh.lineEnd=Jh},result:function(){var t=Vh?[Hh/Vh,jh/Vh]:Lh?[Ih/Lh,Oh/Lh]:Yh?[qh/Yh,Bh/Yh]:[NaN,NaN];return qh=Bh=Yh=Ih=Oh=Lh=Hh=jh=Vh=0,t}};function Gh(t,n){qh+=t,Bh+=n,++Yh}function Wh(){Xh.point=Qh}function Qh(t,n){Xh.point=Kh,Gh(Fh=t,Rh=n)}function Kh(t,n){var e=t-Fh,r=n-Rh,i=Bf(e*e+r*r);Ih+=i*(Fh+t)/2,Oh+=i*(Rh+n)/2,Lh+=i,Gh(Fh=t,Rh=n)}function Jh(){Xh.point=Gh}function td(){Xh.point=ed}function nd(){rd(zh,Uh)}function ed(t,n){Xh.point=rd,Gh(zh=Fh=t,Uh=Rh=n)}function rd(t,n){var e=t-Fh,r=n-Rh,i=Bf(e*e+r*r);Ih+=i*(Fh+t)/2,Oh+=i*(Rh+n)/2,Lh+=i,Hh+=(i=Rh*t-Fh*n)*(Fh+t),jh+=i*(Rh+n),Vh+=3*i,Gh(Fh=t,Rh=n)}var id=Xh;function od(t){this._context=t}od.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Sf)}},result:Hf};var ud,ad,cd,fd,sd,ld=new mf,hd={point:Hf,lineStart:function(){hd.point=dd},lineEnd:function(){ud&&pd(ad,cd),hd.point=Hf},polygonStart:function(){ud=!0},polygonEnd:function(){ud=null},result:function(){var t=+ld;return ld=new mf,t}};function dd(t,n){hd.point=pd,ad=fd=t,cd=sd=n}function pd(t,n){fd-=t,sd-=n,ld.add(Bf(fd*fd+sd*sd)),fd=t,sd=n}var gd=hd;let yd,vd,_d,bd;class md{constructor(t){this._append=null==t?xd:function(t){const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);if(n>15)return xd;if(n!==yd){const t=10**n;yd=n,vd=function(n){let e=1;this._+=n[0];for(const r=n.length;e<r;++e)this._+=Math.round(arguments[e]*t)/t+n[e]}}return vd}(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:this._append`M${t},${n}`,this._point=1;break;case 1:this._append`L${t},${n}`;break;default:if(this._append`M${t},${n}`,this._radius!==_d||this._append!==vd){const t=this._radius,n=this._;this._="",this._append`m0,${t}a${t},${t} 0 1,1 0,${-2*t}a${t},${t} 0 1,1 0,${2*t}z`,_d=t,vd=this._append,bd=this._,this._=n}this._+=bd}}result(){const t=this._;return this._="",t.length?t:null}}function xd(t){let n=1;this._+=t[0];for(const e=t.length;n<e;++n)this._+=arguments[n]+t[n]}function wd(t,n){let e,r,i=3,o=4.5;function u(t){return t&&("function"===typeof o&&r.pointRadius(+o.apply(this,arguments)),Qf(t,e(r))),r.result()}return u.area=function(t){return Qf(t,e(Eh)),Eh.result()},u.measure=function(t){return Qf(t,e(gd)),gd.result()},u.bounds=function(t){return Qf(t,e($h)),$h.result()},u.centroid=function(t){return Qf(t,e(id)),id.result()},u.projection=function(n){return arguments.length?(e=null==n?(t=null,mh):(t=n).stream,u):t},u.context=function(t){return arguments.length?(r=null==t?(n=null,new md(i)):new od(n=t),"function"!==typeof o&&r.pointRadius(o),u):n},u.pointRadius=function(t){return arguments.length?(o="function"===typeof t?t:(r.pointRadius(+t),+t),u):o},u.digits=function(t){if(!arguments.length)return i;if(null==t)i=null;else{const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);i=n}return null===n&&(r=new md(i)),u},u.projection(t).digits(i).context(n)}function Md(t){return{stream:Td(t)}}function Td(t){return function(n){var e=new Ad;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Ad(){}function Sd(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Qf(e,t.stream($h)),n($h.result()),null!=r&&t.clipExtent(r),t}function Nd(t,n,e){return Sd(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),u=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([u,a])}),e)}function Ed(t,n,e){return Nd(t,[[0,0],n],e)}function kd(t,n,e){return Sd(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,u=-i*e[0][1];t.scale(150*i).translate([o,u])}),e)}function Cd(t,n,e){return Sd(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],u=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,u])}),e)}Ad.prototype={constructor:Ad,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Pd=16,Zd=Zf(30*Ef);function Dd(t,n){return+n?function(t,n){function e(r,i,o,u,a,c,f,s,l,h,d,p,g,y){var v=f-r,_=s-i,b=v*v+_*_;if(b>4*n&&g--){var m=u+h,x=a+d,w=c+p,M=Bf(m*m+x*x+w*w),T=Of(w/=M),A=kf(kf(w)-1)<xf||kf(o-l)<xf?(o+l)/2:Pf(x,m),S=t(A,T),N=S[0],E=S[1],k=N-r,C=E-i,P=_*k-v*C;(P*P/b>n||kf((v*k+_*C)/b-.5)>.3||u*h+a*d+c*p<Zd)&&(e(r,i,o,u,a,c,N,E,A,m/=M,x/=M,w,g,y),y.point(N,E),e(N,E,A,m,x,w,f,s,l,h,d,p,g,y))}}return function(n){var r,i,o,u,a,c,f,s,l,h,d,p,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){n.polygonStart(),g.lineStart=m},polygonEnd:function(){n.polygonEnd(),g.lineStart=v}};function y(e,r){e=t(e,r),n.point(e[0],e[1])}function v(){s=NaN,g.point=_,n.lineStart()}function _(r,i){var o=Ms([r,i]),u=t(r,i);e(s,l,f,h,d,p,s=u[0],l=u[1],f=r,h=o[0],d=o[1],p=o[2],Pd,n),n.point(s,l)}function b(){g.point=y,n.lineEnd()}function m(){v(),g.point=x,g.lineEnd=w}function x(t,n){_(r=t,n),i=s,o=l,u=h,a=d,c=p,g.point=_}function w(){e(s,l,f,h,d,p,i,o,r,u,a,c,Pd,n),g.lineEnd=b,b()}return g}}(t,n):function(t){return Td({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)}var zd=Td({point:function(t,n){this.stream.point(t*Ef,n*Ef)}});function Ud(t,n,e,r,i,o){if(!o)return function(t,n,e,r,i){function o(o,u){return[n+t*(o*=r),e-t*(u*=i)]}return o.invert=function(o,u){return[(o-n)/t*r,(e-u)/t*i]},o}(t,n,e,r,i);var u=Zf(o),a=$f(o),c=u*t,f=a*t,s=u/t,l=a/t,h=(a*e-u*n)/t,d=(a*n+u*e)/t;function p(t,o){return[c*(t*=r)-f*(o*=i)+n,e-f*t-c*o]}return p.invert=function(t,n){return[r*(s*t-l*n+h),i*(d-l*t-s*n)]},p}function Fd(t){return Rd((function(){return t}))()}function Rd(t){var n,e,r,i,o,u,a,c,f,s,l=150,h=480,d=250,p=0,g=0,y=0,v=0,_=0,b=0,m=1,x=1,w=null,M=Rl,T=null,A=mh,S=.5;function N(t){return c(t[0]*Ef,t[1]*Ef)}function E(t){return(t=c.invert(t[0],t[1]))&&[t[0]*Nf,t[1]*Nf]}function k(){var t=Ud(l,0,0,m,x,b).apply(null,n(p,g)),r=Ud(l,h-t[0],d-t[1],m,x,b);return e=_l(y,v,_),a=yl(n,r),c=yl(e,a),u=Dd(a,S),C()}function C(){return f=s=null,N}return N.stream=function(t){return f&&s===t?f:f=zd(function(t){return Td({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}(e)(M(u(A(s=t)))))},N.preclip=function(t){return arguments.length?(M=t,w=void 0,C()):M},N.postclip=function(t){return arguments.length?(A=t,T=r=i=o=null,C()):A},N.clipAngle=function(t){return arguments.length?(M=+t?$l(w=t*Ef):(w=null,Rl),C()):w*Nf},N.clipExtent=function(t){return arguments.length?(A=null==t?(T=r=i=o=null,mh):Hl(T=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),C()):null==T?null:[[T,r],[i,o]]},N.scale=function(t){return arguments.length?(l=+t,k()):l},N.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],k()):[h,d]},N.center=function(t){return arguments.length?(p=t[0]%360*Ef,g=t[1]%360*Ef,k()):[p*Nf,g*Nf]},N.rotate=function(t){return arguments.length?(y=t[0]%360*Ef,v=t[1]%360*Ef,_=t.length>2?t[2]%360*Ef:0,k()):[y*Nf,v*Nf,_*Nf]},N.angle=function(t){return arguments.length?(b=t%360*Ef,k()):b*Nf},N.reflectX=function(t){return arguments.length?(m=t?-1:1,k()):m<0},N.reflectY=function(t){return arguments.length?(x=t?-1:1,k()):x<0},N.precision=function(t){return arguments.length?(u=Dd(a,S=t*t),C()):Bf(S)},N.fitExtent=function(t,n){return Nd(N,t,n)},N.fitSize=function(t,n){return Ed(N,t,n)},N.fitWidth=function(t,n){return kd(N,t,n)},N.fitHeight=function(t,n){return Cd(N,t,n)},function(){return n=t.apply(this,arguments),N.invert=n.invert&&E,k()}}function $d(t){var n=0,e=Mf/3,r=Rd(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Ef,e=t[1]*Ef):[n*Nf,e*Nf]},i}function qd(t,n){var e=$f(t),r=(e+$f(n))/2;if(kf(r)<xf)return function(t){var n=Zf(t);function e(t,e){return[t*n,$f(e)/n]}return e.invert=function(t,e){return[t/n,Of(e*n)]},e}(t);var i=1+e*(2*r-e),o=Bf(i)/r;function u(t,n){var e=Bf(i-2*r*$f(n))/r;return[e*$f(t*=r),o-e*Zf(t)]}return u.invert=function(t,n){var e=o-n,u=Pf(t,kf(e))*qf(e);return e*r<0&&(u-=Mf*qf(t)*qf(e)),[u/r,Of((i-(t*t+e*e)*r*r)/(2*r))]},u}function Bd(){return $d(qd).scale(155.424).center([0,33.6442])}function Yd(){return Bd().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Id(){var t,n,e,r,i,o,u=Yd(),a=Bd().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Bd().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,n){o=[t,n]}};function s(t){var n=t[0],u=t[1];return o=null,e.point(n,u),o||(r.point(n,u),o)||(i.point(n,u),o)}function l(){return t=n=null,s}return s.invert=function(t){var n=u.scale(),e=u.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:u).invert(t)},s.stream=function(e){return t&&n===e?t:t=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i<n;)t[i].point(e,r)},sphere:function(){for(var e=-1;++e<n;)t[e].sphere()},lineStart:function(){for(var e=-1;++e<n;)t[e].lineStart()},lineEnd:function(){for(var e=-1;++e<n;)t[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<n;)t[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<n;)t[e].polygonEnd()}}}([u.stream(n=e),a.stream(e),c.stream(e)])},s.precision=function(t){return arguments.length?(u.precision(t),a.precision(t),c.precision(t),l()):u.precision()},s.scale=function(t){return arguments.length?(u.scale(t),a.scale(.35*t),c.scale(t),s.translate(u.translate())):u.scale()},s.translate=function(t){if(!arguments.length)return u.translate();var n=u.scale(),o=+t[0],s=+t[1];return e=u.translate(t).clipExtent([[o-.455*n,s-.238*n],[o+.455*n,s+.238*n]]).stream(f),r=a.translate([o-.307*n,s+.201*n]).clipExtent([[o-.425*n+xf,s+.12*n+xf],[o-.214*n-xf,s+.234*n-xf]]).stream(f),i=c.translate([o-.205*n,s+.212*n]).clipExtent([[o-.214*n+xf,s+.166*n+xf],[o-.115*n-xf,s+.234*n-xf]]).stream(f),l()},s.fitExtent=function(t,n){return Nd(s,t,n)},s.fitSize=function(t,n){return Ed(s,t,n)},s.fitWidth=function(t,n){return kd(s,t,n)},s.fitHeight=function(t,n){return Cd(s,t,n)},s.scale(1070)}function Od(t){return function(n,e){var r=Zf(n),i=Zf(e),o=t(r*i);return o===1/0?[2,0]:[o*i*$f(n),o*$f(e)]}}function Ld(t){return function(n,e){var r=Bf(n*n+e*e),i=t(r),o=$f(i),u=Zf(i);return[Pf(n*o,r*u),Of(r&&e*o/r)]}}var Hd=Od((function(t){return Bf(2/(1+t))}));function jd(){return Fd(Hd).scale(124.75).clipAngle(179.999)}Hd.invert=Ld((function(t){return 2*Of(t/2)}));var Vd=Od((function(t){return(t=If(t))&&t/$f(t)}));function Xd(){return Fd(Vd).scale(79.4188).clipAngle(179.999)}function Gd(t,n){return[t,Ff(Yf((Tf+n)/2))]}function Wd(){return Qd(Gd).scale(961/Sf)}function Qd(t){var n,e,r,i=Fd(t),o=i.center,u=i.scale,a=i.translate,c=i.clipExtent,f=null;function s(){var o=Mf*u(),a=i(wl(i.rotate()).invert([0,0]));return c(null==f?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:t===Gd?[[Math.max(a[0]-o,f),n],[Math.min(a[0]+o,e),r]]:[[f,Math.max(a[1]-o,n)],[e,Math.min(a[1]+o,r)]])}return i.scale=function(t){return arguments.length?(u(t),s()):u()},i.translate=function(t){return arguments.length?(a(t),s()):a()},i.center=function(t){return arguments.length?(o(t),s()):o()},i.clipExtent=function(t){return arguments.length?(null==t?f=n=e=r=null:(f=+t[0][0],n=+t[0][1],e=+t[1][0],r=+t[1][1]),s()):null==f?null:[[f,n],[e,r]]},s()}function Kd(t){return Yf((Tf+t)/2)}function Jd(t,n){var e=Zf(t),r=t===n?$f(t):Ff(e/Zf(n))/Ff(Kd(n)/Kd(t)),i=e*Rf(Kd(t),r)/r;if(!r)return Gd;function o(t,n){i>0?n<-Tf+xf&&(n=-Tf+xf):n>Tf-xf&&(n=Tf-xf);var e=i/Rf(Kd(n),r);return[e*$f(r*t),i-e*Zf(r*t)]}return o.invert=function(t,n){var e=i-n,o=qf(r)*Bf(t*t+e*e),u=Pf(t,kf(e))*qf(e);return e*r<0&&(u-=Mf*qf(t)*qf(e)),[u/r,2*Cf(Rf(i/o,1/r))-Tf]},o}function tp(){return $d(Jd).scale(109.5).parallels([30,30])}function np(t,n){return[t,n]}function ep(){return Fd(np).scale(152.63)}function rp(t,n){var e=Zf(t),r=t===n?$f(t):(e-Zf(n))/(n-t),i=e/r+t;if(kf(r)<xf)return np;function o(t,n){var e=i-n,o=r*t;return[e*$f(o),i-e*Zf(o)]}return o.invert=function(t,n){var e=i-n,o=Pf(t,kf(e))*qf(e);return e*r<0&&(o-=Mf*qf(t)*qf(e)),[o/r,i-qf(r)*Bf(t*t+e*e)]},o}function ip(){return $d(rp).scale(131.154).center([0,13.9389])}Vd.invert=Ld((function(t){return t})),Gd.invert=function(t,n){return[t,2*Cf(zf(n))-Tf]},np.invert=np;var op=1.340264,up=-.081106,ap=893e-6,cp=.003796,fp=Bf(3)/2;function sp(t,n){var e=Of(fp*$f(n)),r=e*e,i=r*r*r;return[t*Zf(e)/(fp*(op+3*up*r+i*(7*ap+9*cp*r))),e*(op+up*r+i*(ap+cp*r))]}function lp(){return Fd(sp).scale(177.158)}function hp(t,n){var e=Zf(n),r=Zf(t)*e;return[e*$f(t)/r,$f(n)/r]}function dp(){return Fd(hp).scale(144.049).clipAngle(60)}function pp(){var t,n,e,r,i,o,u,a=1,c=0,f=0,s=1,l=1,h=0,d=null,p=1,g=1,y=Td({point:function(t,n){var e=b([t,n]);this.stream.point(e[0],e[1])}}),v=mh;function _(){return p=a*s,g=a*l,o=u=null,b}function b(e){var r=e[0]*p,i=e[1]*g;if(h){var o=i*t-r*n;r=r*t+i*n,i=o}return[r+c,i+f]}return b.invert=function(e){var r=e[0]-c,i=e[1]-f;if(h){var o=i*t+r*n;r=r*t-i*n,i=o}return[r/p,i/g]},b.stream=function(t){return o&&u===t?o:o=y(v(u=t))},b.postclip=function(t){return arguments.length?(v=t,d=e=r=i=null,_()):v},b.clipExtent=function(t){return arguments.length?(v=null==t?(d=e=r=i=null,mh):Hl(d=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),_()):null==d?null:[[d,e],[r,i]]},b.scale=function(t){return arguments.length?(a=+t,_()):a},b.translate=function(t){return arguments.length?(c=+t[0],f=+t[1],_()):[c,f]},b.angle=function(e){return arguments.length?(n=$f(h=e%360*Ef),t=Zf(h),_()):h*Nf},b.reflectX=function(t){return arguments.length?(s=t?-1:1,_()):s<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,_()):l<0},b.fitExtent=function(t,n){return Nd(b,t,n)},b.fitSize=function(t,n){return Ed(b,t,n)},b.fitWidth=function(t,n){return kd(b,t,n)},b.fitHeight=function(t,n){return Cd(b,t,n)},b}function gp(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}function yp(){return Fd(gp).scale(175.295)}function vp(t,n){return[Zf(n)*$f(t),$f(n)]}function _p(){return Fd(vp).scale(249.5).clipAngle(90+xf)}function bp(t,n){var e=Zf(n),r=1+Zf(t)*e;return[e*$f(t)/r,$f(n)/r]}function mp(){return Fd(bp).scale(250).clipAngle(142)}function xp(t,n){return[Ff(Yf((Tf+n)/2)),-t]}function wp(){var t=Qd(xp),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}function Mp(t,n){return t.parent===n.parent?1:2}function Tp(t,n){return t+n.x}function Ap(t,n){return Math.max(t,n.y)}function Sp(){var t=Mp,n=1,e=1,r=!1;function i(i){var o,u=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(Tp,0)/t.length}(e),n.y=function(t){return 1+t.reduce(Ap,0)}(e)):(n.x=o?u+=t(n,o):0,n.y=0,o=n)}));var a=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),f=a.x-t(a,c)/2,s=c.x+t(c,a)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-f)/(s-f)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Np(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Ep(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Cp)):void 0===n&&(n=kp);for(var e,r,i,o,u,a=new Dp(t),c=[a];e=c.pop();)if((i=n(e.data))&&(u=(i=Array.from(i)).length))for(e.children=i,o=u-1;o>=0;--o)c.push(r=i[o]=new Dp(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Zp)}function kp(t){return t.children}function Cp(t){return Array.isArray(t)?t[1]:null}function Pp(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Zp(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Dp(t){this.data=t,this.depth=this.height=0,this.parent=null}function zp(t){return null==t?null:Up(t)}function Up(t){if("function"!==typeof t)throw new Error;return t}function Fp(){return 0}function Rp(t){return function(){return t}}sp.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,u=0;u<12&&(o=(i=(r-=e=(r*(op+up*i+o*(ap+cp*i))-n)/(op+3*up*i+o*(7*ap+9*cp*i)))*r)*i*i,!(kf(e)<wf));++u);return[fp*t*(op+3*up*i+o*(7*ap+9*cp*i))/Zf(r),Of($f(r)/fp)]},hp.invert=Ld(Cf),gp.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,u=o*o;r-=e=(r*(1.007226+o*(.015085+u*(.028874*o-.044475-.005916*u)))-n)/(1.007226+o*(.045255+u*(.259866*o-.311325-.005916*11*u)))}while(kf(e)>xf&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},vp.invert=Ld(Of),bp.invert=Ld((function(t){return 2*Cf(t)})),xp.invert=function(t,n){return[-n,2*Cf(zf(t))-Tf]},Dp.prototype=Ep.prototype={constructor:Dp,count:function(){return this.eachAfter(Np)},each:function(t,n){let e=-1;for(const r of this)t.call(n,r,++e,this);return this},eachAfter:function(t,n){for(var e,r,i,o=this,u=[o],a=[],c=-1;o=u.pop();)if(a.push(o),e=o.children)for(r=0,i=e.length;r<i;++r)u.push(e[r]);for(;o=a.pop();)t.call(n,o,++c,this);return this},eachBefore:function(t,n){for(var e,r,i=this,o=[i],u=-1;i=o.pop();)if(t.call(n,i,++u,this),e=i.children)for(r=e.length-1;r>=0;--r)o.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();for(;t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Ep(this).eachBefore(Pp)},[Symbol.iterator]:function*(){var t,n,e,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e])}while(o.length)}};const $p=1664525,qp=1013904223,Bp=4294967296;function Yp(){let t=1;return()=>(t=($p*t+qp)%Bp)/Bp}function Ip(t){return Op(t,Yp())}function Op(t,n){for(var e,r,i=0,o=(t=function(t,n){let e,r,i=t.length;for(;i;)r=n()*i--|0,e=t[i],t[i]=t[r],t[r]=e;return t}(Array.from(t),n)).length,u=[];i<o;)e=t[i],r&&jp(r,e)?++i:(r=Xp(u=Lp(u,e)),i=0);return r}function Lp(t,n){var e,r;if(Vp(n,t))return[n];for(e=0;e<t.length;++e)if(Hp(n,t[e])&&Vp(Gp(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(Hp(Gp(t[e],t[r]),n)&&Hp(Gp(t[e],n),t[r])&&Hp(Gp(t[r],n),t[e])&&Vp(Wp(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function Hp(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function jp(t,n){var e=t.r-n.r+1e-9*Math.max(t.r,n.r,1),r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Vp(t,n){for(var e=0;e<n.length;++e)if(!jp(t,n[e]))return!1;return!0}function Xp(t){switch(t.length){case 1:return function(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return Gp(t[0],t[1]);case 3:return Wp(t[0],t[1],t[2])}}function Gp(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,u=n.y,a=n.r,c=o-e,f=u-r,s=a-i,l=Math.sqrt(c*c+f*f);return{x:(e+o+c/l*s)/2,y:(r+u+f/l*s)/2,r:(l+i+a)/2}}function Wp(t,n,e){var r=t.x,i=t.y,o=t.r,u=n.x,a=n.y,c=n.r,f=e.x,s=e.y,l=e.r,h=r-u,d=r-f,p=i-a,g=i-s,y=c-o,v=l-o,_=r*r+i*i-o*o,b=_-u*u-a*a+c*c,m=_-f*f-s*s+l*l,x=d*p-h*g,w=(p*m-g*b)/(2*x)-r,M=(g*y-p*v)/x,T=(d*b-h*m)/(2*x)-i,A=(h*v-d*y)/x,S=M*M+A*A-1,N=2*(o+w*M+T*A),E=w*w+T*T-o*o,k=-(Math.abs(S)>1e-6?(N+Math.sqrt(N*N-4*S*E))/(2*S):E/N);return{x:r+w+M*k,y:i+T+A*k,r:k}}function Qp(t,n,e){var r,i,o,u,a=t.x-n.x,c=t.y-n.y,f=a*a+c*c;f?(i=n.r+e.r,i*=i,u=t.r+e.r,i>(u*=u)?(r=(f+u-i)/(2*f),o=Math.sqrt(Math.max(0,u/f-r*r)),e.x=t.x-r*a-o*c,e.y=t.y-r*c+o*a):(r=(f+i-u)/(2*f),o=Math.sqrt(Math.max(0,i/f-r*r)),e.x=n.x+r*a-o*c,e.y=n.y+r*c+o*a)):(e.x=n.x+e.r,e.y=n.y)}function Kp(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Jp(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function tg(t){this._=t,this.next=null,this.previous=null}function ng(t,n){if(!(o=(t=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}(t)).length))return 0;var e,r,i,o,u,a,c,f,s,l,h;if((e=t[0]).x=0,e.y=0,!(o>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(o>2))return e.r+r.r;Qp(r,e,i=t[2]),e=new tg(e),r=new tg(r),i=new tg(i),e.next=i.previous=r,r.next=e.previous=i,i.next=r.previous=e;t:for(c=3;c<o;++c){Qp(e._,r._,i=t[c]),i=new tg(i),f=r.next,s=e.previous,l=r._.r,h=e._.r;do{if(l<=h){if(Kp(f._,i._)){r=f,e.next=r,r.previous=e,--c;continue t}l+=f._.r,f=f.next}else{if(Kp(s._,i._)){(e=s).next=r,r.previous=e,--c;continue t}h+=s._.r,s=s.previous}}while(f!==s.next);for(i.previous=e,i.next=r,e.next=r.previous=r=i,u=Jp(e);(i=i.next)!==r;)(a=Jp(i))<u&&(e=i,u=a);r=e.next}for(e=[r._],i=r;(i=i.next)!==r;)e.push(i._);for(i=Op(e,n),c=0;c<o;++c)(e=t[c]).x-=i.x,e.y-=i.y;return i.r}function eg(t){return ng(t,Yp()),t}function rg(t){return Math.sqrt(t.value)}function ig(){var t=null,n=1,e=1,r=Fp;function i(i){const o=Yp();return i.x=n/2,i.y=e/2,t?i.eachBefore(og(t)).eachAfter(ug(r,.5,o)).eachBefore(ag(1)):i.eachBefore(og(rg)).eachAfter(ug(Fp,1,o)).eachAfter(ug(r,i.r/Math.min(n,e),o)).eachBefore(ag(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=zp(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"===typeof t?t:Rp(+t),i):r},i}function og(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function ug(t,n,e){return function(r){if(i=r.children){var i,o,u,a=i.length,c=t(r)*n||0;if(c)for(o=0;o<a;++o)i[o].r+=c;if(u=ng(i,e),c)for(o=0;o<a;++o)i[o].r-=c;r.r=u+c}}}function ag(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}function cg(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function fg(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,f=t.value&&(r-n)/t.value;++a<c;)(o=u[a]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*f}function sg(){var t=1,n=1,e=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/o,i.eachBefore(function(t,n){return function(r){r.children&&fg(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,u=r.x1-e,a=r.y1-e;u<i&&(i=u=(i+u)/2),a<o&&(o=a=(o+a)/2),r.x0=i,r.y0=o,r.x1=u,r.y1=a}}(n,o)),r&&i.eachBefore(cg),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i}var lg={depth:-1},hg={},dg={};function pg(t){return t.id}function gg(t){return t.parentId}function yg(){var t,n=pg,e=gg;function r(r){var i,o,u,a,c,f,s,l,h=Array.from(r),d=n,p=e,g=new Map;if(null!=t){const n=h.map(((n,e)=>function(t){t=`${t}`;let n=t.length;_g(t,n-1)&&!_g(t,n-2)&&(t=t.slice(0,-1));return"/"===t[0]?t:`/${t}`}(t(n,e,r)))),e=n.map(vg),i=new Set(n).add("");for(const t of e)i.has(t)||(i.add(t),n.push(t),e.push(vg(t)),h.push(dg));d=(t,e)=>n[e],p=(t,n)=>e[n]}for(u=0,i=h.length;u<i;++u)o=h[u],f=h[u]=new Dp(o),null!=(s=d(o,u,r))&&(s+="")&&(l=f.id=s,g.set(l,g.has(l)?hg:f)),null!=(s=p(o,u,r))&&(s+="")&&(f.parent=s);for(u=0;u<i;++u)if(s=(f=h[u]).parent){if(!(c=g.get(s)))throw new Error("missing: "+s);if(c===hg)throw new Error("ambiguous: "+s);c.children?c.children.push(f):c.children=[f],f.parent=c}else{if(a)throw new Error("multiple roots");a=f}if(!a)throw new Error("no root");if(null!=t){for(;a.data===dg&&1===a.children.length;)a=a.children[0],--i;for(let t=h.length-1;t>=0&&(f=h[t]).data===dg;--t)f.data=null}if(a.parent=lg,a.eachBefore((function(t){t.depth=t.parent.depth+1,--i})).eachBefore(Zp),a.parent=null,i>0)throw new Error("cycle");return a}return r.id=function(t){return arguments.length?(n=zp(t),r):n},r.parentId=function(t){return arguments.length?(e=zp(t),r):e},r.path=function(n){return arguments.length?(t=zp(n),r):t},r}function vg(t){let n=t.length;if(n<2)return"";for(;--n>1&&!_g(t,n););return t.slice(0,n)}function _g(t,n){if("/"===t[n]){let e=0;for(;n>0&&"\\"===t[--n];)++e;if(0===(1&e))return!0}return!1}function bg(t,n){return t.parent===n.parent?1:2}function mg(t){var n=t.children;return n?n[0]:t.t}function xg(t){var n=t.children;return n?n[n.length-1]:t.t}function wg(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Mg(t,n,e){return t.a.parent===n.parent?t.a:e}function Tg(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function Ag(){var t=bg,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,u=new Tg(t,0),a=[u];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new Tg(r[i],i)),e.parent=n;return(u.parent=new Tg(null,0)).children=[u],u}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(u),r)i.eachBefore(a);else{var f=i,s=i,l=i;i.eachBefore((function(t){t.x<f.x&&(f=t),t.x>s.x&&(s=t),t.depth>l.depth&&(l=t)}));var h=f===s?1:t(f,s)/2,d=h-f.x,p=n/(s.x+h+d),g=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,u=n,a=e,c=o.parent.children[0],f=o.m,s=u.m,l=a.m,h=c.m;a=xg(a),o=mg(o),a&&o;)c=mg(c),(u=xg(u)).a=n,(i=a.z+l-o.z-f+t(a._,o._))>0&&(wg(Mg(a,n,r),n,i),f+=i,s+=i),l+=a.m,f+=o.m,h+=c.m,s+=u.m;a&&!xg(u)&&(u.t=a,u.m+=l-s),o&&!mg(c)&&(c.t=o,c.m+=f-h,r=n)}return r}(n,i,n.parent.A||r[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Sg(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,f=t.value&&(i-e)/t.value;++a<c;)(o=u[a]).x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*f}Tg.prototype=Object.create(Dp.prototype);var Ng=(1+Math.sqrt(5))/2;function Eg(t,n,e,r,i,o){for(var u,a,c,f,s,l,h,d,p,g,y,v=[],_=n.children,b=0,m=0,x=_.length,w=n.value;b<x;){c=i-e,f=o-r;do{s=_[m++].value}while(!s&&m<x);for(l=h=s,y=s*s*(g=Math.max(f/c,c/f)/(w*t)),p=Math.max(h/y,y/l);m<x;++m){if(s+=a=_[m].value,a<l&&(l=a),a>h&&(h=a),y=s*s*g,(d=Math.max(h/y,y/l))>p){s-=a;break}p=d}v.push(u={value:s,dice:c<f,children:_.slice(b,m)}),u.dice?fg(u,e,r,i,w?r+=f*s/w:o):Sg(u,e,r,w?e+=c*s/w:i,o),w-=s,b=m}return v}var kg=function t(n){function e(t,e,r,i,o){Eg(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Ng);function Cg(){var t=kg,n=!1,e=1,r=1,i=[0],o=Fp,u=Fp,a=Fp,c=Fp,f=Fp;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(cg),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l<r&&(r=l=(r+l)/2),h<s&&(s=h=(s+h)/2),n.x0=r,n.y0=s,n.x1=l,n.y1=h,n.children&&(e=i[n.depth+1]=o(n)/2,r+=f(n)-e,s+=u(n)-e,(l-=a(n)-e)<r&&(r=l=(r+l)/2),(h-=c(n)-e)<s&&(s=h=(s+h)/2),t(n,r,s,l,h))}return s.round=function(t){return arguments.length?(n=!!t,s):n},s.size=function(t){return arguments.length?(e=+t[0],r=+t[1],s):[e,r]},s.tile=function(n){return arguments.length?(t=Up(n),s):t},s.padding=function(t){return arguments.length?s.paddingInner(t).paddingOuter(t):s.paddingInner()},s.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:Rp(+t),s):o},s.paddingOuter=function(t){return arguments.length?s.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):s.paddingTop()},s.paddingTop=function(t){return arguments.length?(u="function"===typeof t?t:Rp(+t),s):u},s.paddingRight=function(t){return arguments.length?(a="function"===typeof t?t:Rp(+t),s):a},s.paddingBottom=function(t){return arguments.length?(c="function"===typeof t?t:Rp(+t),s):c},s.paddingLeft=function(t){return arguments.length?(f="function"===typeof t?t:Rp(+t),s):f},s}function Pg(t,n,e,r,i){var o,u,a=t.children,c=a.length,f=new Array(c+1);for(f[0]=u=o=0;o<c;++o)f[o+1]=u+=a[o].value;!function t(n,e,r,i,o,u,c){if(n>=e-1){var s=a[n];return s.x0=i,s.y0=o,s.x1=u,void(s.y1=c)}var l=f[n],h=r/2+l,d=n+1,p=e-1;for(;d<p;){var g=d+p>>>1;f[g]<h?d=g+1:p=g}h-f[d-1]<f[d]-h&&n+1<d&&--d;var y=f[d]-l,v=r-y;if(u-i>c-o){var _=r?(i*v+u*y)/r:u;t(n,d,y,i,o,_,c),t(d,e,v,_,o,u,c)}else{var b=r?(o*v+c*y)/r:c;t(n,d,y,i,o,u,b),t(d,e,v,i,b,u,c)}}(0,c,t.value,n,e,r,i)}function Zg(t,n,e,r,i){(1&t.depth?Sg:fg)(t,n,e,r,i)}var Dg=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,c,f,s,l=-1,h=u.length,d=t.value;++l<h;){for(c=(a=u[l]).children,f=a.value=0,s=c.length;f<s;++f)a.value+=c[f].value;a.dice?fg(a,e,r,i,d?r+=(o-r)*a.value/d:o):Sg(a,e,r,d?e+=(i-e)*a.value/d:i,o),d-=a.value}else t._squarify=u=Eg(n,t,e,r,i,o),u.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Ng),zg=e(51606),Ug=e(27265),Fg=e(76068),Rg=e(56246);function $g(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var qg=e(98280);function Bg(t,n){var e=(0,qg.wx)(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}}var Yg=e(45401),Ig=e(58296),Og=e(64635);function Lg(t){return((t=Math.exp(t))+1/t)/2}var Hg=function t(n,e,r){function i(t,i){var o,u,a=t[0],c=t[1],f=t[2],s=i[0],l=i[1],h=i[2],d=s-a,p=l-c,g=d*d+p*p;if(g<1e-12)u=Math.log(h/f)/n,o=function(t){return[a+t*d,c+t*p,f*Math.exp(n*t*u)]};else{var y=Math.sqrt(g),v=(h*h-f*f+r*g)/(2*f*e*y),_=(h*h-f*f-r*g)/(2*h*e*y),b=Math.log(Math.sqrt(v*v+1)-v),m=Math.log(Math.sqrt(_*_+1)-_);u=(m-b)/n,o=function(t){var r=t*u,i=Lg(b),o=f/(e*y)*(i*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(n*r+b)-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[a+o*d,c+o*p,f*i/Lg(n*r+b)]}}return o.duration=1e3*u*n/Math.SQRT2,o}return i.rho=function(n){var e=Math.max(.001,+n),r=e*e;return t(e,r,r*r)},i}(Math.SQRT2,2,4);function jg(t){return function(n,e){var r=t((n=(0,$r.Ym)(n)).h,(e=(0,$r.Ym)(e)).h),i=(0,qg.ZP)(n.s,e.s),o=(0,qg.ZP)(n.l,e.l),u=(0,qg.ZP)(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=u(t),n+""}}}var Vg=jg(qg.wx),Xg=jg(qg.ZP);function Gg(t,n){var e=(0,qg.ZP)((t=Fo(t)).l,(n=Fo(n)).l),r=(0,qg.ZP)(t.a,n.a),i=(0,qg.ZP)(t.b,n.b),o=(0,qg.ZP)(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function Wg(t){return function(n,e){var r=t((n=Lo(n)).h,(e=Lo(e)).h),i=(0,qg.ZP)(n.c,e.c),o=(0,qg.ZP)(n.l,e.l),u=(0,qg.ZP)(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=u(t),n+""}}}var Qg=Wg(qg.wx),Kg=Wg(qg.ZP);function Jg(t){return function n(e){function r(n,r){var i=t((n=nu(n)).h,(r=nu(r)).h),o=(0,qg.ZP)(n.s,r.s),u=(0,qg.ZP)(n.l,r.l),a=(0,qg.ZP)(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}var ty=Jg(qg.wx),ny=Jg(qg.ZP),ey=e(19640);function ry(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e}function iy(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2}function oy(t){for(var n,e,r=-1,i=t.length,o=0,u=0,a=t[i-1],c=0;++r<i;)n=a,a=t[r],c+=e=n[0]*a[1]-a[0]*n[1],o+=(n[0]+a[0])*e,u+=(n[1]+a[1])*e;return[o/(c*=3),u/c]}function uy(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function ay(t,n){return t[0]-n[0]||t[1]-n[1]}function cy(t){const n=t.length,e=[0,1];let r,i=2;for(r=2;r<n;++r){for(;i>1&&uy(t[e[i-2]],t[e[i-1]],t[r])<=0;)--i;e[i++]=r}return e.slice(0,i)}function fy(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(ay),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=cy(r),u=cy(i),a=u[0]===o[0],c=u[u.length-1]===o[o.length-1],f=[];for(n=o.length-1;n>=0;--n)f.push(t[r[o[n]][2]]);for(n=+a;n<u.length-c;++n)f.push(t[r[u[n]][2]]);return f}function sy(t,n){for(var e,r,i=t.length,o=t[i-1],u=n[0],a=n[1],c=o[0],f=o[1],s=!1,l=0;l<i;++l)e=(o=t[l])[0],(r=o[1])>a!==f>a&&u<(c-e)*(a-r)/(f-r)+e&&(s=!s),c=e,f=r;return s}function ly(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],c=0;++r<i;)n=u,e=a,n-=u=(o=t[r])[0],e-=a=o[1],c+=Math.hypot(n,e);return c}var hy=Math.random,dy=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(hy),py=function t(n){function e(t,e){return arguments.length<2&&(e=t,t=0),t=Math.floor(t),e=Math.floor(e)-t,function(){return Math.floor(n()*e+t)}}return e.source=t,e}(hy),gy=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(hy),yy=function t(n){var e=gy.source(n);function r(){var t=e.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(hy),vy=function t(n){function e(t){return(t=+t)<=0?()=>0:function(){for(var e=0,r=t;r>1;--r)e+=n();return e+r*n()}}return e.source=t,e}(hy),_y=function t(n){var e=vy.source(n);function r(t){if(0===(t=+t))return n;var r=e(t);return function(){return r()/t}}return r.source=t,r}(hy),by=function t(n){function e(t){return function(){return-Math.log1p(-n())/t}}return e.source=t,e}(hy),my=function t(n){function e(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-n(),t)}}return e.source=t,e}(hy),xy=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+t)}}return e.source=t,e}(hy),wy=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-n())/t)})}return e.source=t,e}(hy),My=function t(n){var e=gy.source(n)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-n())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),u=t<1?()=>Math.pow(n(),1/t):()=>1;return function(){do{do{var t=e(),a=1+o*t}while(a<=0);a*=a*a;var c=1-n()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-a+Math.log(a)));return i*a*u()*r}}return r.source=t,r}(hy),Ty=function t(n){var e=My.source(n);function r(t,n){var r=e(t),i=e(n);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(hy),Ay=function t(n){var e=wy.source(n),r=Ty.source(n);function i(t,n){return t=+t,(n=+n)>=1?()=>t:n<=0?()=>0:function(){for(var i=0,o=t,u=n;o*u>16&&o*(1-u)>16;){var a=Math.floor((o+1)*u),c=r(a,o-a+1)();c<=u?(i+=a,o-=a,u=(u-c)/(1-c)):(o=a-1,u/=c)}for(var f=u<.5,s=e(f?u:1-u),l=s(),h=0;l<=o;++h)l+=s();return i+(f?h:o-h)}}return i.source=t,i}(hy),Sy=function t(n){function e(t,e,r){var i;return 0===(t=+t)?i=t=>-Math.log(t):(t=1/t,i=n=>Math.pow(n,t)),e=null==e?0:+e,r=null==r?1:+r,function(){return e+r*i(-Math.log1p(-n()))}}return e.source=t,e}(hy),Ny=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){return t+e*Math.tan(Math.PI*n())}}return e.source=t,e}(hy),Ey=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){var r=n();return t+e*Math.log(r/(1-r))}}return e.source=t,e}(hy),ky=function t(n){var e=My.source(n),r=Ay.source(n);function i(t){return function(){for(var i=0,o=t;o>16;){var u=Math.floor(.875*o),a=e(u)();if(a>o)return i+r(u-1,o/a)();i+=u,o-=a}for(var c=-Math.log1p(-n()),f=0;c<=o;++f)c-=Math.log1p(-n());return i+f}}return i.source=t,i}(hy);const Cy=1664525,Py=1013904223,Zy=1/4294967296;function Dy(t=Math.random()){let n=0|(0<=t&&t<1?t/Zy:Math.abs(t));return()=>(n=Cy*n+Py|0,Zy*(n>>>0))}var zy=e(69032);function Uy(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e}var Fy=Uy("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Ry=Uy("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),$y=Uy("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),qy=Uy("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),By=Uy("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Yy=Uy("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Iy=Uy("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Oy=Uy("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Ly=Uy("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Hy=Uy("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),jy=t=>(0,qr.hD)(t[t.length-1]),Vy=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Uy),Xy=jy(Vy),Gy=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Uy),Wy=jy(Gy),Qy=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Uy),Ky=jy(Qy),Jy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Uy),tv=jy(Jy),nv=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Uy),ev=jy(nv),rv=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Uy),iv=jy(rv),ov=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Uy),uv=jy(ov),av=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Uy),cv=jy(av),fv=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Uy),sv=jy(fv),lv=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Uy),hv=jy(lv),dv=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Uy),pv=jy(dv),gv=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Uy),yv=jy(gv),vv=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Uy),_v=jy(vv),bv=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Uy),mv=jy(bv),xv=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Uy),wv=jy(xv),Mv=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Uy),Tv=jy(Mv),Av=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Uy),Sv=jy(Av),Nv=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Uy),Ev=jy(Nv),kv=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Uy),Cv=jy(kv),Pv=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Uy),Zv=jy(Pv),Dv=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Uy),zv=jy(Dv),Uv=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Uy),Fv=jy(Uv),Rv=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Uy),$v=jy(Rv),qv=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Uy),Bv=jy(qv),Yv=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Uy),Iv=jy(Yv),Ov=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Uy),Lv=jy(Ov),Hv=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Uy),jv=jy(Hv);function Vv(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}var Xv=ny(nu(300,.5,0),nu(-240,.5,1)),Gv=ny(nu(-100,.75,.35),nu(80,1.5,.8)),Wv=ny(nu(260,.75,.35),nu(80,1.5,.8)),Qv=nu();function Kv(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Qv.h=360*t-100,Qv.s=1.5-1.5*n,Qv.l=.8-.9*n,Qv+""}var Jv=(0,$r.B8)(),t_=Math.PI/3,n_=2*Math.PI/3;function e_(t){var n;return t=(.5-t)*Math.PI,Jv.r=255*(n=Math.sin(t))*n,Jv.g=255*(n=Math.sin(t+t_))*n,Jv.b=255*(n=Math.sin(t+n_))*n,Jv+""}function r_(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function i_(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var o_=i_(Uy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),u_=i_(Uy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),a_=i_(Uy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),c_=i_(Uy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function f_(t){return Re(Me(t).call(document.documentElement))}var s_=0;function l_(){return new h_}function h_(){this._="@"+(++s_).toString(36)}function d_(t,n){return t.target&&(t=He(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,(t=>je(t,n)))}function p_(t){return"string"===typeof t?new ze([document.querySelectorAll(t)],[document.documentElement]):new ze([Sn(t)],De)}function g_(t){return function(){return t}}h_.prototype=l_.prototype={constructor:h_,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};const y_=Math.abs,v_=Math.atan2,__=Math.cos,b_=Math.max,m_=Math.min,x_=Math.sin,w_=Math.sqrt,M_=1e-12,T_=Math.PI,A_=T_/2,S_=2*T_;function N_(t){return t>=1?A_:t<=-1?-A_:Math.asin(t)}function E_(t){let n=3;return t.digits=function(e){if(!arguments.length)return n;if(null==e)n=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);n=t}return t},()=>new co(n)}function k_(t){return t.innerRadius}function C_(t){return t.outerRadius}function P_(t){return t.startAngle}function Z_(t){return t.endAngle}function D_(t){return t&&t.padAngle}function z_(t,n,e,r,i,o,u){var a=t-e,c=n-r,f=(u?o:-o)/w_(a*a+c*c),s=f*c,l=-f*a,h=t+s,d=n+l,p=e+s,g=r+l,y=(h+p)/2,v=(d+g)/2,_=p-h,b=g-d,m=_*_+b*b,x=i-o,w=h*g-p*d,M=(b<0?-1:1)*w_(b_(0,x*x*m-w*w)),T=(w*b-_*M)/m,A=(-w*_-b*M)/m,S=(w*b+_*M)/m,N=(-w*_+b*M)/m,E=T-y,k=A-v,C=S-y,P=N-v;return E*E+k*k>C*C+P*P&&(T=S,A=N),{cx:T,cy:A,x01:-s,y01:-l,x11:T*(i/x-1),y11:A*(i/x-1)}}function U_(){var t=k_,n=C_,e=g_(0),r=null,i=P_,o=Z_,u=D_,a=null,c=E_(f);function f(){var f,s,l=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-A_,p=o.apply(this,arguments)-A_,g=y_(p-d),y=p>d;if(a||(a=f=c()),h<l&&(s=h,h=l,l=s),h>M_)if(g>S_-M_)a.moveTo(h*__(d),h*x_(d)),a.arc(0,0,h,d,p,!y),l>M_&&(a.moveTo(l*__(p),l*x_(p)),a.arc(0,0,l,p,d,y));else{var v,_,b=d,m=p,x=d,w=p,M=g,T=g,A=u.apply(this,arguments)/2,S=A>M_&&(r?+r.apply(this,arguments):w_(l*l+h*h)),N=m_(y_(h-l)/2,+e.apply(this,arguments)),E=N,k=N;if(S>M_){var C=N_(S/l*x_(A)),P=N_(S/h*x_(A));(M-=2*C)>M_?(x+=C*=y?1:-1,w-=C):(M=0,x=w=(d+p)/2),(T-=2*P)>M_?(b+=P*=y?1:-1,m-=P):(T=0,b=m=(d+p)/2)}var Z=h*__(b),D=h*x_(b),z=l*__(w),U=l*x_(w);if(N>M_){var F,R=h*__(m),$=h*x_(m),q=l*__(x),B=l*x_(x);if(g<T_)if(F=function(t,n,e,r,i,o,u,a){var c=e-t,f=r-n,s=u-i,l=a-o,h=l*c-s*f;if(!(h*h<M_))return[t+(h=(s*(n-o)-l*(t-i))/h)*c,n+h*f]}(Z,D,q,B,R,$,z,U)){var Y=Z-F[0],I=D-F[1],O=R-F[0],L=$-F[1],H=1/x_(function(t){return t>1?0:t<-1?T_:Math.acos(t)}((Y*O+I*L)/(w_(Y*Y+I*I)*w_(O*O+L*L)))/2),j=w_(F[0]*F[0]+F[1]*F[1]);E=m_(N,(l-j)/(H-1)),k=m_(N,(h-j)/(H+1))}else E=k=0}T>M_?k>M_?(v=z_(q,B,Z,D,h,k,y),_=z_(R,$,z,U,h,k,y),a.moveTo(v.cx+v.x01,v.cy+v.y01),k<N?a.arc(v.cx,v.cy,k,v_(v.y01,v.x01),v_(_.y01,_.x01),!y):(a.arc(v.cx,v.cy,k,v_(v.y01,v.x01),v_(v.y11,v.x11),!y),a.arc(0,0,h,v_(v.cy+v.y11,v.cx+v.x11),v_(_.cy+_.y11,_.cx+_.x11),!y),a.arc(_.cx,_.cy,k,v_(_.y11,_.x11),v_(_.y01,_.x01),!y))):(a.moveTo(Z,D),a.arc(0,0,h,b,m,!y)):a.moveTo(Z,D),l>M_&&M>M_?E>M_?(v=z_(z,U,R,$,l,-E,y),_=z_(Z,D,q,B,l,-E,y),a.lineTo(v.cx+v.x01,v.cy+v.y01),E<N?a.arc(v.cx,v.cy,E,v_(v.y01,v.x01),v_(_.y01,_.x01),!y):(a.arc(v.cx,v.cy,E,v_(v.y01,v.x01),v_(v.y11,v.x11),!y),a.arc(0,0,l,v_(v.cy+v.y11,v.cx+v.x11),v_(_.cy+_.y11,_.cx+_.x11),y),a.arc(_.cx,_.cy,E,v_(_.y11,_.x11),v_(_.y01,_.x01),!y))):a.arc(0,0,l,w,x,y):a.lineTo(z,U)}else a.moveTo(0,0);if(a.closePath(),f)return a=null,f+""||null}return f.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-T_/2;return[__(r)*e,x_(r)*e]},f.innerRadius=function(n){return arguments.length?(t="function"===typeof n?n:g_(+n),f):t},f.outerRadius=function(t){return arguments.length?(n="function"===typeof t?t:g_(+t),f):n},f.cornerRadius=function(t){return arguments.length?(e="function"===typeof t?t:g_(+t),f):e},f.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:g_(+t),f):r},f.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:g_(+t),f):i},f.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:g_(+t),f):o},f.padAngle=function(t){return arguments.length?(u="function"===typeof t?t:g_(+t),f):u},f.context=function(t){return arguments.length?(a=null==t?null:t,f):a},f}var F_=Array.prototype.slice;function R_(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}function $_(t){this._context=t}function q_(t){return new $_(t)}function B_(t){return t[0]}function Y_(t){return t[1]}function I_(t,n){var e=g_(!0),r=null,i=q_,o=null,u=E_(a);function a(a){var c,f,s,l=(a=R_(a)).length,h=!1;for(null==r&&(o=i(s=u())),c=0;c<=l;++c)!(c<l&&e(f=a[c],c,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(f,c,a),+n(f,c,a));if(s)return o=null,s+""||null}return t="function"===typeof t?t:void 0===t?B_:g_(t),n="function"===typeof n?n:void 0===n?Y_:g_(n),a.x=function(n){return arguments.length?(t="function"===typeof n?n:g_(+n),a):t},a.y=function(t){return arguments.length?(n="function"===typeof t?t:g_(+t),a):n},a.defined=function(t){return arguments.length?(e="function"===typeof t?t:g_(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function O_(t,n,e){var r=null,i=g_(!0),o=null,u=q_,a=null,c=E_(f);function f(f){var s,l,h,d,p,g=(f=R_(f)).length,y=!1,v=new Array(g),_=new Array(g);for(null==o&&(a=u(p=c())),s=0;s<=g;++s){if(!(s<g&&i(d=f[s],s,f))===y)if(y=!y)l=s,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),h=s-1;h>=l;--h)a.point(v[h],_[h]);a.lineEnd(),a.areaEnd()}y&&(v[s]=+t(d,s,f),_[s]=+n(d,s,f),a.point(r?+r(d,s,f):v[s],e?+e(d,s,f):_[s]))}if(p)return a=null,p+""||null}function s(){return I_().defined(i).curve(u).context(o)}return t="function"===typeof t?t:void 0===t?B_:g_(+t),n="function"===typeof n?n:g_(void 0===n?0:+n),e="function"===typeof e?e:void 0===e?Y_:g_(+e),f.x=function(n){return arguments.length?(t="function"===typeof n?n:g_(+n),r=null,f):t},f.x0=function(n){return arguments.length?(t="function"===typeof n?n:g_(+n),f):t},f.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:g_(+t),f):r},f.y=function(t){return arguments.length?(n="function"===typeof t?t:g_(+t),e=null,f):n},f.y0=function(t){return arguments.length?(n="function"===typeof t?t:g_(+t),f):n},f.y1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:g_(+t),f):e},f.lineX0=f.lineY0=function(){return s().x(t).y(n)},f.lineY1=function(){return s().x(t).y(e)},f.lineX1=function(){return s().x(r).y(n)},f.defined=function(t){return arguments.length?(i="function"===typeof t?t:g_(!!t),f):i},f.curve=function(t){return arguments.length?(u=t,null!=o&&(a=u(o)),f):u},f.context=function(t){return arguments.length?(null==t?o=a=null:a=u(o=t),f):o},f}function L_(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function H_(t){return t}function j_(){var t=H_,n=L_,e=null,r=g_(0),i=g_(S_),o=g_(0);function u(u){var a,c,f,s,l,h=(u=R_(u)).length,d=0,p=new Array(h),g=new Array(h),y=+r.apply(this,arguments),v=Math.min(S_,Math.max(-S_,i.apply(this,arguments)-y)),_=Math.min(Math.abs(v)/h,o.apply(this,arguments)),b=_*(v<0?-1:1);for(a=0;a<h;++a)(l=g[p[a]=a]=+t(u[a],a,u))>0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(u[t],u[n])})),a=0,f=d?(v-h*b)/d:0;a<h;++a,y=s)c=p[a],s=y+((l=g[c])>0?l*f:0)+b,g[c]={data:u[c],index:a,value:l,startAngle:y,endAngle:s,padAngle:_};return g}return u.value=function(n){return arguments.length?(t="function"===typeof n?n:g_(+n),u):t},u.sortValues=function(t){return arguments.length?(n=t,e=null,u):n},u.sort=function(t){return arguments.length?(e=t,n=null,u):e},u.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:g_(+t),u):r},u.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:g_(+t),u):i},u.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:g_(+t),u):o},u}$_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var V_=G_(q_);function X_(t){this._curve=t}function G_(t){function n(n){return new X_(t(n))}return n._curve=t,n}function W_(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(G_(t)):n()._curve},t}function Q_(){return W_(I_().curve(V_))}function K_(){var t=O_().curve(V_),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return W_(e())},delete t.lineX0,t.lineEndAngle=function(){return W_(r())},delete t.lineX1,t.lineInnerRadius=function(){return W_(i())},delete t.lineY0,t.lineOuterRadius=function(){return W_(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(G_(t)):n()._curve},t}function J_(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}X_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};class tb{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}class nb{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,0===this._point)this._point=1;else{const e=J_(this._x0,this._y0),r=J_(this._x0,this._y0=(this._y0+n)/2),i=J_(t,this._y0),o=J_(t,n);this._context.moveTo(...e),this._context.bezierCurveTo(...r,...i,...o)}this._x0=t,this._y0=n}}function eb(t){return new tb(t,!0)}function rb(t){return new tb(t,!1)}function ib(t){return new nb(t)}function ob(t){return t.source}function ub(t){return t.target}function ab(t){let n=ob,e=ub,r=B_,i=Y_,o=null,u=null,a=E_(c);function c(){let c;const f=F_.call(arguments),s=n.apply(this,f),l=e.apply(this,f);if(null==o&&(u=t(c=a())),u.lineStart(),f[0]=s,u.point(+r.apply(this,f),+i.apply(this,f)),f[0]=l,u.point(+r.apply(this,f),+i.apply(this,f)),u.lineEnd(),c)return u=null,c+""||null}return c.source=function(t){return arguments.length?(n=t,c):n},c.target=function(t){return arguments.length?(e=t,c):e},c.x=function(t){return arguments.length?(r="function"===typeof t?t:g_(+t),c):r},c.y=function(t){return arguments.length?(i="function"===typeof t?t:g_(+t),c):i},c.context=function(n){return arguments.length?(null==n?o=u=null:u=t(o=n),c):o},c}function cb(){return ab(eb)}function fb(){return ab(rb)}function sb(){const t=ab(ib);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const lb=w_(3);var hb={draw(t,n){const e=.59436*w_(n+m_(n/28,.75)),r=e/2,i=r*lb;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},db={draw(t,n){const e=w_(n/T_);t.moveTo(e,0),t.arc(0,0,e,0,S_)}},pb={draw(t,n){const e=w_(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};const gb=w_(1/3),yb=2*gb;var vb={draw(t,n){const e=w_(n/yb),r=e*gb;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},_b={draw(t,n){const e=.62625*w_(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},bb={draw(t,n){const e=.87559*w_(n-m_(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},mb={draw(t,n){const e=w_(n),r=-e/2;t.rect(r,r,e,e)}},xb={draw(t,n){const e=.4431*w_(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}};const wb=x_(T_/10)/x_(7*T_/10),Mb=x_(S_/10)*wb,Tb=-__(S_/10)*wb;var Ab={draw(t,n){const e=w_(.8908130915292852*n),r=Mb*e,i=Tb*e;t.moveTo(0,-e),t.lineTo(r,i);for(let o=1;o<5;++o){const n=S_*o/5,u=__(n),a=x_(n);t.lineTo(a*e,-u*e),t.lineTo(u*r-a*i,a*r+u*i)}t.closePath()}};const Sb=w_(3);var Nb={draw(t,n){const e=-w_(n/(3*Sb));t.moveTo(0,2*e),t.lineTo(-Sb*e,-e),t.lineTo(Sb*e,-e),t.closePath()}};const Eb=w_(3);var kb={draw(t,n){const e=.6824*w_(n),r=e/2,i=e*Eb/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}};const Cb=-.5,Pb=w_(3)/2,Zb=1/w_(12),Db=3*(Zb/2+1);var zb={draw(t,n){const e=w_(n/Db),r=e/2,i=e*Zb,o=r,u=e*Zb+e,a=-o,c=u;t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,c),t.lineTo(Cb*r-Pb*i,Pb*r+Cb*i),t.lineTo(Cb*o-Pb*u,Pb*o+Cb*u),t.lineTo(Cb*a-Pb*c,Pb*a+Cb*c),t.lineTo(Cb*r+Pb*i,Cb*i-Pb*r),t.lineTo(Cb*o+Pb*u,Cb*u-Pb*o),t.lineTo(Cb*a+Pb*c,Cb*c-Pb*a),t.closePath()}},Ub={draw(t,n){const e=.6189*w_(n-m_(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}};const Fb=[db,pb,vb,mb,Ab,Nb,zb],Rb=[db,bb,Ub,kb,hb,xb,_b];function $b(t,n){let e=null,r=E_(i);function i(){let i;if(e||(e=i=r()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),i)return e=null,i+""||null}return t="function"===typeof t?t:g_(t||db),n="function"===typeof n?n:g_(void 0===n?64:+n),i.type=function(n){return arguments.length?(t="function"===typeof n?n:g_(n),i):t},i.size=function(t){return arguments.length?(n="function"===typeof t?t:g_(+t),i):n},i.context=function(t){return arguments.length?(e=null==t?null:t,i):e},i}function qb(){}function Bb(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Yb(t){this._context=t}function Ib(t){return new Yb(t)}function Ob(t){this._context=t}function Lb(t){return new Ob(t)}function Hb(t){this._context=t}function jb(t){return new Hb(t)}function Vb(t,n){this._basis=new Yb(t),this._beta=n}Yb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Bb(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Bb(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Ob.prototype={areaStart:qb,areaEnd:qb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Bb(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Hb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Bb(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Vb.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],u=t[e]-i,a=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*u),this._beta*n[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Xb=function t(n){function e(t){return 1===n?new Yb(t):new Vb(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Gb(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Wb(t,n){this._context=t,this._k=(1-n)/6}Wb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Gb(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Gb(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Qb=function t(n){function e(t){return new Wb(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Kb(t,n){this._context=t,this._k=(1-n)/6}Kb.prototype={areaStart:qb,areaEnd:qb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Gb(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Jb=function t(n){function e(t){return new Kb(t,n)}return e.tension=function(n){return t(+n)},e}(0);function tm(t,n){this._context=t,this._k=(1-n)/6}tm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Gb(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var nm=function t(n){function e(t){return new tm(t,n)}return e.tension=function(n){return t(+n)},e}(0);function em(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>M_){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>M_){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-n*t._l12_2a)/s,u=(u*f+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function rm(t,n){this._context=t,this._alpha=n}rm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:em(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var im=function t(n){function e(t){return n?new rm(t,n):new Wb(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function om(t,n){this._context=t,this._alpha=n}om.prototype={areaStart:qb,areaEnd:qb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:em(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var um=function t(n){function e(t){return n?new om(t,n):new Kb(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function am(t,n){this._context=t,this._alpha=n}am.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:em(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var cm=function t(n){function e(t){return n?new am(t,n):new tm(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function fm(t){this._context=t}function sm(t){return new fm(t)}function lm(t){return t<0?-1:1}function hm(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(lm(o)+lm(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function dm(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function pm(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function gm(t){this._context=t}function ym(t){this._context=new vm(t)}function vm(t){this._context=t}function _m(t){return new gm(t)}function bm(t){return new ym(t)}function mm(t){this._context=t}function xm(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,u[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,u[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,u[n]-=e*u[n-1];for(i[r-1]=u[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function wm(t){return new mm(t)}function Mm(t,n){this._context=t,this._t=n}function Tm(t){return new Mm(t,.5)}function Am(t){return new Mm(t,0)}function Sm(t){return new Mm(t,1)}function Nm(t,n){if((i=t.length)>1)for(var e,r,i,o=1,u=t[n[0]],a=u.length;o<i;++o)for(r=u,u=t[n[o]],e=0;e<a;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function Em(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function km(t,n){return t[n]}function Cm(t){const n=[];return n.key=t,n}function Pm(){var t=g_([]),n=Em,e=Nm,r=km;function i(i){var o,u,a=Array.from(t.apply(this,arguments),Cm),c=a.length,f=-1;for(const t of i)for(o=0,++f;o<c;++o)(a[o][f]=[0,+r(t,a[o].key,f,i)]).data=t;for(o=0,u=R_(n(a));o<c;++o)a[u[o]].index=o;return e(a,u),a}return i.keys=function(n){return arguments.length?(t="function"===typeof n?n:g_(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:g_(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?Em:"function"===typeof t?t:g_(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?Nm:t,i):e},i}function Zm(t,n){if((r=t.length)>0){for(var e,r,i,o=0,u=t[0].length;o<u;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}Nm(t,n)}}function Dm(t,n){if((a=t.length)>0)for(var e,r,i,o,u,a,c=0,f=t[n[0]].length;c<f;++c)for(o=u=0,e=0;e<a;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}function zm(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var u=0,a=0;u<e;++u)a+=t[u][r][1]||0;i[r][1]+=i[r][0]=-a/2}Nm(t,n)}}function Um(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,u=1;u<r;++u){for(var a=0,c=0,f=0;a<i;++a){for(var s=t[n[a]],l=s[u][1]||0,h=(l-(s[u-1][1]||0))/2,d=0;d<a;++d){var p=t[n[d]];h+=(p[u][1]||0)-(p[u-1][1]||0)}c+=l,f+=h*l}e[u-1][1]+=e[u-1][0]=o,c&&(o-=f/c)}e[u-1][1]+=e[u-1][0]=o,Nm(t,n)}}function Fm(t){var n=t.map(Rm);return Em(t).sort((function(t,e){return n[t]-n[e]}))}function Rm(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function $m(t){var n=t.map(qm);return Em(t).sort((function(t,e){return n[t]-n[e]}))}function qm(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function Bm(t){return $m(t).reverse()}function Ym(t){var n,e,r=t.length,i=t.map(qm),o=Fm(t),u=0,a=0,c=[],f=[];for(n=0;n<r;++n)e=o[n],u<a?(u+=i[e],c.push(e)):(a+=i[e],f.push(e));return f.reverse().concat(c)}function Im(t){return Em(t).reverse()}fm.prototype={areaStart:qb,areaEnd:qb,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},gm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:pm(this,this._t0,dm(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,pm(this,dm(this,e=hm(this,t,n)),e);break;default:pm(this,this._t0,e=hm(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(ym.prototype=Object.create(gm.prototype)).point=function(t,n){gm.prototype.point.call(this,n,t)},vm.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},mm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=xm(t),i=xm(n),o=0,u=1;u<e;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[u],n[u]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},Mm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};const Om=new Date,Lm=new Date;function Hm(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=n=>(t(n=new Date(+n)),n),i.ceil=e=>(t(e=new Date(e-1)),n(e,1),t(e),e),i.round=t=>{const n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=(t,e)=>(n(t=new Date(+t),null==e?1:Math.floor(e)),t),i.range=(e,r,o)=>{const u=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r)||!(o>0))return u;let a;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a<e&&e<r);return u},i.filter=e=>Hm((n=>{if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})),e&&(i.count=(n,r)=>(Om.setTime(+n),Lm.setTime(+r),t(Om),t(Lm),Math.floor(e(Om,Lm))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?n=>r(n)%t===0:n=>i.count(0,n)%t===0):i:null)),i}const jm=Hm((()=>{}),((t,n)=>{t.setTime(+t+n)}),((t,n)=>n-t));jm.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Hm((n=>{n.setTime(Math.floor(n/t)*t)}),((n,e)=>{n.setTime(+n+e*t)}),((n,e)=>(e-n)/t)):jm:null);const Vm=jm.range,Xm=1e3,Gm=6e4,Wm=60*Gm,Qm=24*Wm,Km=7*Qm,Jm=30*Qm,tx=365*Qm,nx=Hm((t=>{t.setTime(t-t.getMilliseconds())}),((t,n)=>{t.setTime(+t+n*Xm)}),((t,n)=>(n-t)/Xm),(t=>t.getUTCSeconds())),ex=nx.range,rx=Hm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xm)}),((t,n)=>{t.setTime(+t+n*Gm)}),((t,n)=>(n-t)/Gm),(t=>t.getMinutes())),ix=rx.range,ox=Hm((t=>{t.setUTCSeconds(0,0)}),((t,n)=>{t.setTime(+t+n*Gm)}),((t,n)=>(n-t)/Gm),(t=>t.getUTCMinutes())),ux=ox.range,ax=Hm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Xm-t.getMinutes()*Gm)}),((t,n)=>{t.setTime(+t+n*Wm)}),((t,n)=>(n-t)/Wm),(t=>t.getHours())),cx=ax.range,fx=Hm((t=>{t.setUTCMinutes(0,0,0)}),((t,n)=>{t.setTime(+t+n*Wm)}),((t,n)=>(n-t)/Wm),(t=>t.getUTCHours())),sx=fx.range,lx=Hm((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Gm)/Qm),(t=>t.getDate()-1)),hx=lx.range,dx=Hm((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/Qm),(t=>t.getUTCDate()-1)),px=dx.range,gx=Hm((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/Qm),(t=>Math.floor(t/Qm))),yx=gx.range;function vx(t){return Hm((n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),((t,n)=>{t.setDate(t.getDate()+7*n)}),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Gm)/Km))}const _x=vx(0),bx=vx(1),mx=vx(2),xx=vx(3),wx=vx(4),Mx=vx(5),Tx=vx(6),Ax=_x.range,Sx=bx.range,Nx=mx.range,Ex=xx.range,kx=wx.range,Cx=Mx.range,Px=Tx.range;function Zx(t){return Hm((n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+7*n)}),((t,n)=>(n-t)/Km))}const Dx=Zx(0),zx=Zx(1),Ux=Zx(2),Fx=Zx(3),Rx=Zx(4),$x=Zx(5),qx=Zx(6),Bx=Dx.range,Yx=zx.range,Ix=Ux.range,Ox=Fx.range,Lx=Rx.range,Hx=$x.range,jx=qx.range,Vx=Hm((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,n)=>{t.setMonth(t.getMonth()+n)}),((t,n)=>n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())),(t=>t.getMonth())),Xx=Vx.range,Gx=Hm((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)}),((t,n)=>n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth())),Wx=Gx.range,Qx=Hm((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n)}),((t,n)=>n.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));Qx.every=t=>isFinite(t=Math.floor(t))&&t>0?Hm((n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),((n,e)=>{n.setFullYear(n.getFullYear()+e*t)})):null;const Kx=Qx.range,Jx=Hm((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)}),((t,n)=>n.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));Jx.every=t=>isFinite(t=Math.floor(t))&&t>0?Hm((n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),((n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null;const tw=Jx.range;function nw(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function ew(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function rw(){return 0}var iw=Math.sqrt(50),ow=Math.sqrt(10),uw=Math.sqrt(2);function aw(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=iw?i*=10:o>=ow?i*=5:o>=uw&&(i*=2),n<t?-i:i}function cw(t,n,e,r,i,o){const u=[[nx,1,Xm],[nx,5,5e3],[nx,15,15e3],[nx,30,3e4],[o,1,Gm],[o,5,5*Gm],[o,15,15*Gm],[o,30,30*Gm],[i,1,Wm],[i,3,3*Wm],[i,6,6*Wm],[i,12,12*Wm],[r,1,Qm],[r,2,2*Qm],[e,1,Km],[n,1,Jm],[n,3,3*Jm],[t,1,tx]];function a(n,e,r){const i=Math.abs(e-n)/r,o=function(t){let n,e,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<0?i=n+1:o=n}while(i<o)}return i}return 2!==t.length?(n=nw,e=(n,e)=>nw(t(n),e),r=(n,e)=>t(n)-e):(n=t===nw||t===ew?t:rw,e=t,r=t),{left:i,center:function(t,n,e=0,o=t.length){const u=i(t,n,e,o-1);return u>e&&r(t[u-1],n)>-r(t[u],n)?u-1:u},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<=0?i=n+1:o=n}while(i<o)}return i}}}((([,,t])=>t)).right(u,i);if(o===u.length)return t.every(aw(n/tx,e/tx,r));if(0===o)return jm.every(Math.max(aw(n,e,r),1));const[a,c]=u[i/u[o-1][2]<u[o][2]/i?o-1:o];return a.every(c)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"===typeof e.range?e:a(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},a]}const[fw,sw]=cw(Jx,Gx,Dx,gx,fx,ox),[lw,hw]=cw(Qx,Vx,_x,lx,ax,rx);var dw=e(82138),pw=e(47238),gw="%Y-%m-%dT%H:%M:%S.%LZ";var yw=Date.prototype.toISOString?function(t){return t.toISOString()}:(0,dw.g0)(gw),vw=yw;var _w=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:(0,dw.wp)(gw),bw=_w;function mw(t,n,e){var r=new ur,i=n;return null==n?(r.restart(t,n,e),r):(r._restart=r.restart,r.restart=function(t,n,e){n=+n,e=null==e?ir():+e,r._restart((function o(u){u+=i,r._restart(o,i+=n,e),t(u)}),n,e)},r.restart(t,n,e),r)}var xw=t=>()=>t;function ww(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Mw(t,n,e){this.k=t,this.x=n,this.y=e}Mw.prototype={constructor:Mw,scale:function(t){return 1===t?this:new Mw(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Mw(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Tw=new Mw(1,0,0);function Aw(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Tw;return t.__zoom}function Sw(t){t.stopImmediatePropagation()}function Nw(t){t.preventDefault(),t.stopImmediatePropagation()}function Ew(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function kw(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Cw(){return this.__zoom||Tw}function Pw(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Zw(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dw(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function zw(){var t,n,e,r=Ew,i=kw,o=Dw,u=Pw,a=Zw,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Hg,h=Mn("start","zoom","end"),d=500,p=150,g=0,y=10;function v(t){t.property("__zoom",Cw).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",S).filter(a).on("touchstart.zoom",N).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(t,n){return(n=Math.max(c[0],Math.min(c[1],n)))===t.k?t:new Mw(n,t.x,t.y)}function b(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new Mw(t.k,r,i)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,n,e,r){t.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,u=w(t,o).event(r),a=i.apply(t,o),c=null==e?m(a):"function"===typeof e?e.apply(t,o):e,f=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),s=t.__zoom,h="function"===typeof n?n.apply(t,o):n,d=l(s.invert(c).concat(f/s.k),h.invert(c).concat(f/h.k));return function(t){if(1===t)t=h;else{var n=d(t),e=f/n[2];t=new Mw(e,c[0]-n[0]*e,c[1]-n[1]*e)}u.zoom(null,t)}}))}function w(t,n,e){return!e&&t.__zooming||new M(t,n)}function M(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function T(t,...n){if(r.apply(this,arguments)){var e=w(this,n).event(t),i=this.__zoom,a=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,u.apply(this,arguments)))),s=je(t);if(e.wheel)e.mouse[0][0]===s[0]&&e.mouse[0][1]===s[1]||(e.mouse[1]=i.invert(e.mouse[0]=s)),clearTimeout(e.wheel);else{if(i.k===a)return;e.mouse=[s,i.invert(s)],Sr(this),e.start()}Nw(t),e.wheel=setTimeout((function(){e.wheel=null,e.end()}),p),e.zoom("mouse",o(b(_(i,a),e.mouse[0],e.mouse[1]),e.extent,f))}}function A(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,u=w(this,n,!0).event(t),a=Re(t.view).on("mousemove.zoom",(function(t){if(Nw(t),!u.moved){var n=t.clientX-s,e=t.clientY-l;u.moved=n*n+e*e>g}u.event(t).zoom("mouse",o(b(u.that.__zoom,u.mouse[0]=je(t,i),u.mouse[1]),u.extent,f))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),Oe(t.view,u.moved),Nw(t),u.event(t).end()}),!0),c=je(t,i),s=t.clientX,l=t.clientY;Ie(t.view),Sw(t),u.mouse=[c,this.__zoom.invert(c)],Sr(this),u.start()}}function S(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,u=je(t.changedTouches?t.changedTouches[0]:t,this),a=e.invert(u),c=e.k*(t.shiftKey?.5:2),l=o(b(_(e,c),u,a),i.apply(this,n),f);Nw(t),s>0?Re(this).transition().duration(s).call(x,l,u,t):Re(this).call(v.transform,l,u,t)}}function N(e,...i){if(r.apply(this,arguments)){var o,u,a,c,f=e.touches,s=f.length,l=w(this,i,e.changedTouches.length===s).event(e);for(Sw(e),u=0;u<s;++u)c=[c=je(a=f[u],this),this.__zoom.invert(c),a.identifier],l.touch0?l.touch1||l.touch0[2]===c[2]||(l.touch1=c,l.taps=0):(l.touch0=c,o=!0,l.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(l.taps<2&&(n=c[0],t=setTimeout((function(){t=null}),d)),Sr(this),l.start())}}function E(t,...n){if(this.__zooming){var e,r,i,u,a=w(this,n).event(t),c=t.changedTouches,s=c.length;for(Nw(t),e=0;e<s;++e)i=je(r=c[e],this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var l=a.touch0[0],h=a.touch0[1],d=a.touch1[0],p=a.touch1[1],g=(g=d[0]-l[0])*g+(g=d[1]-l[1])*g,y=(y=p[0]-h[0])*y+(y=p[1]-h[1])*y;r=_(r,Math.sqrt(g/y)),i=[(l[0]+d[0])/2,(l[1]+d[1])/2],u=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],u=a.touch0[1]}a.zoom("touch",o(b(r,i,u),a.extent,f))}}function k(t,...r){if(this.__zooming){var i,o,u=w(this,r).event(t),a=t.changedTouches,c=a.length;for(Sw(t),e&&clearTimeout(e),e=setTimeout((function(){e=null}),d),i=0;i<c;++i)o=a[i],u.touch0&&u.touch0[2]===o.identifier?delete u.touch0:u.touch1&&u.touch1[2]===o.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(o=je(o,this),Math.hypot(n[0]-o[0],n[1]-o[1])<y)){var f=Re(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return v.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",Cw),t!==i?x(t,n,e,r):i.interrupt().each((function(){w(this,arguments).event(r).start().zoom(null,"function"===typeof n?n.apply(this,arguments):n).end()}))},v.scaleBy=function(t,n,e,r){v.scaleTo(t,(function(){return this.__zoom.k*("function"===typeof n?n.apply(this,arguments):n)}),e,r)},v.scaleTo=function(t,n,e,r){v.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,u=null==e?m(t):"function"===typeof e?e.apply(this,arguments):e,a=r.invert(u),c="function"===typeof n?n.apply(this,arguments):n;return o(b(_(r,c),u,a),t,f)}),e,r)},v.translateBy=function(t,n,e,r){v.transform(t,(function(){return o(this.__zoom.translate("function"===typeof n?n.apply(this,arguments):n,"function"===typeof e?e.apply(this,arguments):e),i.apply(this,arguments),f)}),null,r)},v.translateTo=function(t,n,e,r,u){v.transform(t,(function(){var t=i.apply(this,arguments),u=this.__zoom,a=null==r?m(t):"function"===typeof r?r.apply(this,arguments):r;return o(Tw.translate(a[0],a[1]).scale(u.k).translate("function"===typeof n?-n.apply(this,arguments):-n,"function"===typeof e?-e.apply(this,arguments):-e),t,f)}),r,u)},M.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var n=Re(this.that).datum();h.call(t,this.that,new ww(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:h}),n)}},v.wheelDelta=function(t){return arguments.length?(u="function"===typeof t?t:xw(+t),v):u},v.filter=function(t){return arguments.length?(r="function"===typeof t?t:xw(!!t),v):r},v.touchable=function(t){return arguments.length?(a="function"===typeof t?t:xw(!!t),v):a},v.extent=function(t){return arguments.length?(i="function"===typeof t?t:xw([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):i},v.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],v):[c[0],c[1]]},v.translateExtent=function(t){return arguments.length?(f[0][0]=+t[0][0],f[1][0]=+t[1][0],f[0][1]=+t[0][1],f[1][1]=+t[1][1],v):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},v.constrain=function(t){return arguments.length?(o=t,v):o},v.duration=function(t){return arguments.length?(s=+t,v):s},v.interpolate=function(t){return arguments.length?(l=t,v):l},v.on=function(){var t=h.on.apply(h,arguments);return t===h?v:t},v.clickDistance=function(t){return arguments.length?(g=(t=+t)*t,v):Math.sqrt(g)},v.tapDistance=function(t){return arguments.length?(y=+t,v):y},v}Aw.prototype=Mw.prototype}}]); \ No newline at end of file