(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[673],{30699:function(t,n,e){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=e(64090),i="function"==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||t!=t&&n!=n},o=r.useState,u=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(t){var n=t.getSnapshot;t=t.value;try{var e=n();return!i(t,e)}catch(t){return!0}}var l=void 0===window.document||void 0===window.document.createElement?function(t,n){return n()}:function(t,n){var e=n(),r=o({inst:{value:e,getSnapshot:n}}),i=r[0].inst,l=r[1];return a(function(){i.value=e,i.getSnapshot=n,c(i)&&l({inst:i})},[t,e,n]),u(function(){return c(i)&&l({inst:i}),t(function(){c(i)&&l({inst:i})})},[t]),s(e),e};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},220:function(t,n,e){"use strict";/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=e(64090),i=e(22362),o="function"==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||t!=t&&n!=n},u=i.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,l=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(t,n,e,r,i){var h=a(null);if(null===h.current){var f={hasValue:!1,value:null};h.current=f}else f=h.current;var p=u(t,(h=c(function(){function t(t){if(!s){if(s=!0,u=t,t=r(t),void 0!==i&&f.hasValue){var n=f.value;if(i(n,t))return a=n}return a=t}if(n=a,o(u,t))return n;var e=r(t);return void 0!==i&&i(n,e)?n:(u=t,a=e)}var u,a,s=!1,c=void 0===e?null:e;return[function(){return t(n())},null===c?void 0:function(){return t(c())}]},[n,e,r,i]))[0],h[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}},22362:function(t,n,e){"use strict";t.exports=e(30699)},29292:function(t,n,e){"use strict";t.exports=e(220)},7333:function(){},82503:function(t,n,e){"use strict";e.d(n,{Z:function(){return g}});var r=e(64090),i=e(2544),o=e(27745),u=e(59608),a=e(37354),s=e(38953),c=e(46338);let[l,h]=(0,e(30932).R)("Card component was not found in tree");var f=e(36472),p={root:"m-e615b15f",section:"m-599a2148"};let d={},v=(0,s.b)((t,n)=>{let{classNames:e,className:i,style:o,styles:a,vars:s,withBorder:c,inheritPadding:l,mod:p,...v}=(0,u.w)("CardSection",d,t),m=h();return r.createElement(f.x,{ref:n,mod:[{"with-border":c,"inherit-padding":l},p],...m.getStyles("section",{className:i,style:o,styles:a,classNames:e}),...v})});v.classes=p,v.displayName="@mantine/core/CardSection";let m={},y=(0,o.Z)((t,n)=>{let{padding:e}=n;return{root:{"--card-padding":(0,i.bG)(e)}}}),g=(0,s.b)((t,n)=>{let e=(0,u.w)("Card",m,t),{classNames:i,className:o,style:s,styles:h,unstyled:f,vars:d,children:g,padding:_,...w}=e,b=(0,a.y)({name:"Card",props:e,classes:p,className:o,style:s,classNames:i,styles:h,unstyled:f,vars:d,varsResolver:y}),x=r.Children.toArray(g),k=x.map((t,n)=>"object"==typeof t&&t&&"type"in t&&t.type===v?(0,r.cloneElement)(t,{"data-first-section":0===n||void 0,"data-last-section":n===x.length-1||void 0}):t);return r.createElement(l,{value:{getStyles:b}},r.createElement(c.X,{ref:n,unstyled:f,...b("root"),...w},k))});g.classes=p,g.displayName="@mantine/core/Card",g.Section=v},2854:function(t,n,e){"use strict";e.d(n,{O:function(){return d}});var r=e(64090),i=e(7238),o=e(2544),u=e(27745),a=e(59608),s=e(37354),c=e(36472),l=e(74565),h={root:"m-18320242","skeleton-fade":"m-299c329c"};let f={visible:!0,animate:!0},p=(0,u.Z)((t,n)=>{let{width:e,height:r,radius:u,circle:a}=n;return{root:{"--skeleton-height":(0,i.h)(r),"--skeleton-width":a?(0,i.h)(r):(0,i.h)(e),"--skeleton-radius":a?"1000px":void 0===u?void 0:(0,o.H5)(u)}}}),d=(0,l.d)((t,n)=>{let e=(0,a.w)("Skeleton",f,t),{classNames:i,className:o,style:u,styles:l,unstyled:d,vars:v,width:m,height:y,circle:g,visible:_,radius:w,animate:b,mod:x,...k}=e,E=(0,s.y)({name:"Skeleton",classes:h,props:e,className:o,style:u,classNames:i,styles:l,unstyled:d,vars:v,varsResolver:p});return r.createElement(c.x,{ref:n,...E("root"),mod:[{visible:_,animate:b},x],...k})});d.classes=h,d.displayName="@mantine/core/Skeleton"},57295:function(t,n,e){"use strict";e.d(n,{A:function(){return v},T:function(){return i}});var r,i,o=e(64090),u=e(71105),a=e(33606);function s(t,n){if(Object.is(t,n))return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(let[e,r]of t)if(!Object.is(r,n.get(e)))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0}let e=Object.keys(t);if(e.length!==Object.keys(n).length)return!1;for(let r=0;r<e.length;r++)if(!Object.prototype.hasOwnProperty.call(n,e[r])||!Object.is(t[e[r]],n[e[r]]))return!1;return!0}function c(t){let{color:n,dimensions:e,lineWidth:r}=t;return o.createElement("path",{stroke:n,strokeWidth:r,d:"M".concat(e[0]/2," 0 V").concat(e[1]," M0 ").concat(e[1]/2," H").concat(e[0])})}function l(t){let{color:n,radius:e}=t;return o.createElement("circle",{cx:e,cy:e,r:e,fill:n})}(r=i||(i={})).Lines="lines",r.Dots="dots",r.Cross="cross";let h={[i.Dots]:"#91919a",[i.Lines]:"#eee",[i.Cross]:"#e2e2e2"},f={[i.Dots]:1,[i.Lines]:1,[i.Cross]:6},p=t=>({transform:t.transform,patternId:"pattern-".concat(t.rfId)});function d(t){let{id:n,variant:e=i.Dots,gap:r=20,size:d,lineWidth:v=1,offset:m=2,color:y,style:g,className:_}=t,w=(0,o.useRef)(null),{transform:b,patternId:x}=(0,a.oR)(p,s),k=y||h[e],E=d||f[e],S=e===i.Dots,A=e===i.Cross,M=Array.isArray(r)?r:[r,r],Z=[M[0]*b[2]||1,M[1]*b[2]||1],z=E*b[2],N=A?[z,z]:Z,P=S?[z/m,z/m]:[N[0]/m,N[1]/m];return o.createElement("svg",{className:(0,u.Z)(["react-flow__background",_]),style:{...g,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:w,"data-testid":"rf__background"},o.createElement("pattern",{id:x+n,x:b[0]%Z[0],y:b[1]%Z[1],width:Z[0],height:Z[1],patternUnits:"userSpaceOnUse",patternTransform:"translate(-".concat(P[0],",-").concat(P[1],")")},S?o.createElement(l,{color:k,radius:z/m}):o.createElement(c,{dimensions:N,color:k,lineWidth:v})),o.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#".concat(x+n,")")}))}d.displayName="Background";var v=(0,o.memo)(d)},64248:function(t,n,e){"use strict";function r(t,n){if(Object.is(t,n))return!0;if("object"!=typeof t||null===t||"object"!=typeof n||null===n)return!1;if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(let[e,r]of t)if(!Object.is(r,n.get(e)))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(let e of t)if(!n.has(e))return!1;return!0}let e=Object.keys(t);if(e.length!==Object.keys(n).length)return!1;for(let r=0;r<e.length;r++)if(!Object.prototype.hasOwnProperty.call(n,e[r])||!Object.is(t[e[r]],n[e[r]]))return!1;return!0}e.d(n,{X:function(){return r}})},83811:function(t,n,e){"use strict";e.d(n,{F:function(){return f},s:function(){return l}});var r=e(64090),i=e(29292);let o=t=>{let n;let e=new Set,r=(t,r)=>{let i="function"==typeof t?t(n):t;if(!Object.is(i,n)){let t=n;n=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},n,i),e.forEach(e=>e(n,t))}},i=()=>n,o={setState:r,getState:i,getInitialState:()=>u,subscribe:t=>(e.add(t),()=>e.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),e.clear()}},u=n=t(r,i,o);return o},u=t=>t?o(t):o,{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:s}=i,c=t=>t;function l(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,e=arguments.length>2?arguments[2]:void 0,r=s(t.subscribe,t.getState,t.getServerState||t.getInitialState,n,e);return a(r),r}let h=(t,n)=>{let e=u(t),r=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return l(e,t,r)};return Object.assign(r,e),r},f=(t,n)=>t?h(t,n):h},71105:function(t,n,e){"use strict";e.d(n,{Z:function(){return function t(n){if("string"==typeof n||"number"==typeof n)return""+n;let e="";if(Array.isArray(n))for(let r=0,i;r<n.length;r++)""!==(i=t(n[r]))&&(e+=(e&&" ")+i);else for(let t in n)n[t]&&(e+=(e&&" ")+t);return e}}})},21244:function(t,n){"use strict";var e={value:()=>{}};function r(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new i(r)}function i(t){this._=t}function o(t,n,r){for(var i=0,o=t.length;i<o;++i)if(t[i].name===n){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:n,value:r}),t}i.prototype=r.prototype={constructor:i,on:function(t,n){var e,r=this._,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 Error("unknown type: "+t);return{type:t,name:n}}),u=-1,a=i.length;if(arguments.length<2){for(;++u<a;)if((e=(t=i[u]).type)&&(e=function(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}(r[e],t.name)))return e;return}if(null!=n&&"function"!=typeof n)throw Error("invalid callback: "+n);for(;++u<a;)if(e=(t=i[u]).type)r[e]=o(r[e],t.name,n);else if(null==n)for(e in r)r[e]=o(r[e],t.name,null);return this},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new i(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],o=0,e=r.length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}},n.Z=r},70478:function(t,n,e){"use strict";e.d(n,{Z:function(){return d}});var r=e(21244),i=e(36369),o=e(23423),u=e(90259),a=e(11263),s=t=>()=>t;function c(t,n){let{sourceEvent:e,subject:r,target:i,identifier:o,active:u,x:a,y:s,dx:c,dy:l,dispatch:h}=n;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:h}})}function l(t){return!t.ctrlKey&&!t.button}function h(){return this.parentNode}function f(t,n){return null==n?{x:t.x,y:t.y}:n}function p(){return navigator.maxTouchPoints||"ontouchstart"in this}function d(){var t,n,e,d,v=l,m=h,y=f,g=p,_={},w=(0,r.Z)("start","drag","end"),b=0,x=0;function k(t){t.on("mousedown.drag",E).filter(g).on("touchstart.drag",M).on("touchmove.drag",Z,a.Q7).on("touchend.drag touchcancel.drag",z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function E(r,o){if(!d&&v.call(this,r,o)){var s=N(this,m.call(this,r,o),r,o,"mouse");s&&((0,i.Z)(r.view).on("mousemove.drag",S,a.Dd).on("mouseup.drag",A,a.Dd),(0,u.Z)(r.view),(0,a.rG)(r),e=!1,t=r.clientX,n=r.clientY,s("start",r))}}function S(r){if((0,a.ZP)(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>x}_.mouse("drag",r)}function A(t){(0,i.Z)(t.view).on("mousemove.drag mouseup.drag",null),(0,u.D)(t.view,e),(0,a.ZP)(t),_.mouse("end",t)}function M(t,n){if(v.call(this,t,n)){var e,r,i=t.changedTouches,o=m.call(this,t,n),u=i.length;for(e=0;e<u;++e)(r=N(this,o,t,n,i[e].identifier,i[e]))&&((0,a.rG)(t),r("start",t,i[e]))}}function Z(t){var n,e,r=t.changedTouches,i=r.length;for(n=0;n<i;++n)(e=_[r[n].identifier])&&((0,a.ZP)(t),e("drag",t,r[n]))}function z(t){var n,e,r=t.changedTouches,i=r.length;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),n=0;n<i;++n)(e=_[r[n].identifier])&&((0,a.rG)(t),e("end",t,r[n]))}function N(t,n,e,r,i,u){var a,s,l,h=w.copy(),f=(0,o.Z)(u||e,n);if(null!=(l=y.call(t,new c("beforestart",{sourceEvent:e,target:k,identifier:i,active:b,x:f[0],y:f[1],dx:0,dy:0,dispatch:h}),r)))return a=l.x-f[0]||0,s=l.y-f[1]||0,function e(u,p,d){var v,m=f;switch(u){case"start":_[i]=e,v=b++;break;case"end":delete _[i],--b;case"drag":f=(0,o.Z)(d||p,n),v=b}h.call(u,t,new c(u,{sourceEvent:p,subject:l,target:k,identifier:i,active:v,x:f[0]+a,y:f[1]+s,dx:f[0]-m[0],dy:f[1]-m[1],dispatch:h}),r)}}return k.filter=function(t){return arguments.length?(v="function"==typeof t?t:s(!!t),k):v},k.container=function(t){return arguments.length?(m="function"==typeof t?t:s(t),k):m},k.subject=function(t){return arguments.length?(y="function"==typeof t?t:s(t),k):y},k.touchable=function(t){return arguments.length?(g="function"==typeof t?t:s(!!t),k):g},k.on=function(){var t=w.on.apply(w,arguments);return t===w?k:t},k.clickDistance=function(t){return arguments.length?(x=(t=+t)*t,k):Math.sqrt(x)},k}c.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t}},90259:function(t,n,e){"use strict";e.d(n,{D:function(){return u},Z:function(){return o}});var r=e(36369),i=e(11263);function o(t){var n=t.document.documentElement,e=(0,r.Z)(t).on("dragstart.drag",i.ZP,i.Dd);"onselectstart"in n?e.on("selectstart.drag",i.ZP,i.Dd):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function u(t,n){var e=t.document.documentElement,o=(0,r.Z)(t).on("dragstart.drag",null);n&&(o.on("click.drag",i.ZP,i.Dd),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in e?o.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}},11263:function(t,n,e){"use strict";e.d(n,{Dd:function(){return i},Q7:function(){return r},ZP:function(){return u},rG:function(){return o}});let r={passive:!1},i={capture:!0,passive:!1};function o(t){t.stopImmediatePropagation()}function u(t){t.preventDefault(),t.stopImmediatePropagation()}},16569:function(t,n,e){"use strict";function r(t){return function(){return this.matches(t)}}function i(t){return function(n){return n.matches(t)}}e.d(n,{P:function(){return i},Z:function(){return r}})},37005:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(7879);function i(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),r.Z.hasOwnProperty(n)?{space:r.Z[n],local:t}:t}},7879:function(t,n,e){"use strict";e.d(n,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";n.Z={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},23423:function(t,n,e){"use strict";function r(t,n){if(t=function(t){let n;for(;n=t.sourceEvent;)t=n;return t}(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]}e.d(n,{Z:function(){return r}})},36369:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(19992);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},19992:function(t,n,e){"use strict";e.d(n,{Y1:function(){return q},ZP:function(){return R},Jz:function(){return X}});var r=e(19176),i=e(1700),o=e(16569),u=Array.prototype.find;function a(){return this.firstElementChild}var s=Array.prototype.filter;function c(){return Array.from(this.children)}function l(t){return Array(t.length)}function h(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function f(t,n,e,r,i,o){for(var u,a=0,s=n.length,c=o.length;a<c;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new h(t,o[a]);for(;a<s;++a)(u=n[a])&&(i[a]=u)}function p(t,n,e,r,i,o,u){var a,s,c,l=new Map,f=n.length,p=o.length,d=Array(f);for(a=0;a<f;++a)(s=n[a])&&(d[a]=c=u.call(s,s.__data__,a,n)+"",l.has(c)?i[a]=s:l.set(c,s));for(a=0;a<p;++a)c=u.call(t,o[a],a,o)+"",(s=l.get(c))?(r[a]=s,s.__data__=o[a],l.delete(c)):e[a]=new h(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&l.get(d[a])===s&&(i[a]=s)}function d(t){return t.__data__}function v(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}h.prototype={constructor:h,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 m=e(37005),y=e(51043);function g(t){return t.trim().split(/^|\s+/)}function _(t){return t.classList||new w(t)}function w(t){this._node=t,this._names=g(t.getAttribute("class")||"")}function b(t,n){for(var e=_(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function x(t,n){for(var e=_(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function k(){this.textContent=""}function E(){this.innerHTML=""}function S(){this.nextSibling&&this.parentNode.appendChild(this)}function A(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}w.prototype={add:function(t){0>this._names.indexOf(t)&&(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 M=e(7879);function Z(t){var n=(0,m.Z)(t);return(n.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===M.P&&n.documentElement.namespaceURI===M.P?n.createElement(t):n.createElementNS(e,t)}})(n)}function z(){return null}function N(){var t=this.parentNode;t&&t.removeChild(this)}function P(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function T(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function C(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 O(t,n,e){return function(){var r,i=this.__on,o=function(t){n.call(this,t,this.__data__)};if(i){for(var u=0,a=i.length;u<a;++u)if((r=i[u]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),r.value=n;return}}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]}}var j=e(24016);function D(t,n,e){var r=(0,j.Z)(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)}var X=[null];function q(t,n){this._groups=t,this._parents=n}function Y(){return new q([[document.documentElement]],X)}q.prototype=Y.prototype={constructor:q,select:function(t){"function"!=typeof t&&(t=(0,r.Z)(t));for(var n=this._groups,e=n.length,i=Array(e),o=0;o<e;++o)for(var u,a,s=n[o],c=s.length,l=i[o]=Array(c),h=0;h<c;++h)(u=s[h])&&(a=t.call(u,u.__data__,h,s))&&("__data__"in u&&(a.__data__=u.__data__),l[h]=a);return new q(i,this._parents)},selectAll:function(t){if("function"==typeof t){var n;n=t,t=function(){var t;return t=n.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=(0,i.Z)(t);for(var e=this._groups,r=e.length,o=[],u=[],a=0;a<r;++a)for(var s,c=e[a],l=c.length,h=0;h<l;++h)(s=c[h])&&(o.push(t.call(s,s.__data__,h,c)),u.push(s));return new q(o,u)},selectChild:function(t){var n;return this.select(null==t?a:(n="function"==typeof t?t:(0,o.P)(t),function(){return u.call(this.children,n)}))},selectChildren:function(t){var n;return this.selectAll(null==t?c:(n="function"==typeof t?t:(0,o.P)(t),function(){return s.call(this.children,n)}))},filter:function(t){"function"!=typeof t&&(t=(0,o.Z)(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var u,a=n[i],s=a.length,c=r[i]=[],l=0;l<s;++l)(u=a[l])&&t.call(u,u.__data__,l,a)&&c.push(u);return new q(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,d);var e=n?p:f,r=this._parents,i=this._groups;"function"!=typeof t&&(b=t,t=function(){return b});for(var o=i.length,u=Array(o),a=Array(o),s=Array(o),c=0;c<o;++c){var l=r[c],h=i[c],v=h.length,m="object"==typeof(w=t.call(l,l&&l.__data__,c,r))&&"length"in w?w:Array.from(w),y=m.length,g=a[c]=Array(y),_=u[c]=Array(y);e(l,h,g,_,s[c]=Array(v),m,n);for(var w,b,x,k,E=0,S=0;E<y;++E)if(x=g[E]){for(E>=S&&(S=E+1);!(k=_[S])&&++S<y;);x._next=k||null}}return(u=new q(u,r))._enter=a,u._exit=s,u},enter:function(){return new q(this._enter||this._groups.map(l),this._parents)},exit:function(){return new q(this._exit||this._groups.map(l),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=Array(i),s=0;s<u;++s)for(var c,l=e[s],h=r[s],f=l.length,p=a[s]=Array(f),d=0;d<f;++d)(c=l[d]||h[d])&&(p[d]=c);for(;s<i;++s)a[s]=e[s];return new q(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=v);for(var e=this._groups,r=e.length,i=Array(r),o=0;o<r;++o){for(var u,a=e[o],s=a.length,c=i[o]=Array(s),l=0;l<s;++l)(u=a[l])&&(c[l]=u);c.sort(n)}return new q(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(let 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=(0,m.Z)(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?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof n?e.local?function(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(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:e.local?function(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}:function(t,n){return function(){this.setAttribute(t,n)}})(e,n))},style:y.Z,property:function(t,n){return arguments.length>1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]},classed:function(t,n){var e=g(t+"");if(arguments.length<2){for(var r=_(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?function(t,n){return function(){(n.apply(this,arguments)?b:x)(this,t)}}:n?function(t){return function(){b(this,t)}}:function(t){return function(){x(this,t)}})(e,n))},text:function(t){return arguments.length?this.each(null==t?k:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?E:("function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(S)},lower:function(){return this.each(A)},append:function(t){var n="function"==typeof t?t:Z(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:Z(t),i=null==n?z:"function"==typeof n?n:(0,r.Z)(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(N)},clone:function(t){return this.select(t?T:P)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=(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}}),u=o.length;if(arguments.length<2){var a=this.node().__on;if(a){for(var s,c=0,l=a.length;c<l;++c)for(r=0,s=a[c];r<u;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value}return}for(r=0,a=n?O:C;r<u;++r)this.each(a(o[r],n,e));return this},dispatch:function(t,n){return this.each(("function"==typeof n?function(t,n){return function(){return D(this,t,n.apply(this,arguments))}}:function(t,n){return function(){return D(this,t,n)}})(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 R=Y},51043:function(t,n,e){"use strict";e.d(n,{S:function(){return o},Z:function(){return i}});var r=e(24016);function i(t,n,e){return arguments.length>1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):o(this.node(),t)}function o(t,n){return t.style.getPropertyValue(n)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(n)}},19176:function(t,n,e){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}e.d(n,{Z:function(){return i}})},1700:function(t,n,e){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}e.d(n,{Z:function(){return i}})},24016:function(t,n,e){"use strict";function r(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}e.d(n,{Z:function(){return r}})},40653:function(t,n,e){"use strict";e.d(n,{sP:function(){return tJ},CR:function(){return tL}});var r,i=e(21244),o=e(90259);function u(t){return((t=Math.exp(t))+1/t)/2}var a,s,c=function t(n,e,r){function i(t,i){var o,a,s=t[0],c=t[1],l=t[2],h=i[0],f=i[1],p=i[2],d=h-s,v=f-c,m=d*d+v*v;if(m<1e-12)a=Math.log(p/l)/n,o=function(t){return[s+t*d,c+t*v,l*Math.exp(n*t*a)]};else{var y=Math.sqrt(m),g=(p*p-l*l+r*m)/(2*l*e*y),_=(p*p-l*l-r*m)/(2*p*e*y),w=Math.log(Math.sqrt(g*g+1)-g);a=(Math.log(Math.sqrt(_*_+1)-_)-w)/n,o=function(t){var r,i,o=t*a,h=u(w),f=l/(e*y)*(((r=Math.exp(2*(r=n*o+w)))-1)/(r+1)*h-((i=Math.exp(i=w))-1/i)/2);return[s+f*d,c+f*v,l*h/u(n*o+w)]}}return o.duration=1e3*a*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),l=e(36369),h=e(23423),f=e(19992),p=0,d=0,v=0,m=0,y=0,g=0,_="object"==typeof performance&&performance.now?performance:Date,w=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function b(){return y||(w(x),y=_.now()+g)}function x(){y=0}function k(){this._call=this._time=this._next=null}function E(t,n,e){var r=new k;return r.restart(t,n,e),r}function S(){y=(m=_.now())+g,p=d=0;try{!function(){b(),++p;for(var t,n=a;n;)(t=y-n._time)>=0&&n._call.call(void 0,t),n=n._next;--p}()}finally{p=0,function(){for(var t,n,e=a,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:a=n);s=t,M(r)}(),y=0}}function A(){var t=_.now(),n=t-m;n>1e3&&(g-=n,m=t)}function M(t){!p&&(d&&(d=clearTimeout(d)),t-y>24?(t<1/0&&(d=setTimeout(S,t-_.now()-g)),v&&(v=clearInterval(v))):(v||(m=_.now(),v=setInterval(A,1e3)),p=1,w(S)))}function Z(t,n,e){var r=new k;return n=null==n?0:+n,r.restart(e=>{r.stop(),t(e+n)},n,e),r}k.prototype=E.prototype={constructor:k,restart:function(t,n,e){if("function"!=typeof t)throw TypeError("callback is not a function");e=(null==e?b():+e)+(null==n?0:+n),this._next||s===this||(s?s._next=this:a=this,s=this),this._call=t,this._time=e,M()},stop:function(){this._call&&(this._call=null,this._time=1/0,M())}};var z=(0,i.Z)("start","end","cancel","interrupt"),N=[];function P(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(s){var c,l,h,f;if(1!==e.state)return a();for(c in i)if((f=i[c]).name===e.name){if(3===f.state)return Z(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<n&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(Z(function(){3===e.state&&(e.state=4,e.timer.restart(u,e.delay,e.time),u(s))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(c=0,e.state=3,r=Array(h=e.tween.length),l=-1;c<h;++c)(f=e.tween[c].value.call(t,t.__data__,e.index,e.group))&&(r[++l]=f);r.length=l+1}}function u(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=E(function(t){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)},0,e.time)}(t,e,{name:n,index:r,group:i,on:z,tween:N,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function T(t,n){var e=O(t,n);if(e.state>0)throw Error("too late; already scheduled");return e}function C(t,n){var e=O(t,n);if(e.state>3)throw Error("too late; already running");return e}function O(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw Error("transition not found");return e}function j(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o){if((e=o[i]).name!==n){u=!1;continue}r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]}u&&delete t.__transition}}function D(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var X=180/Math.PI,q={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Y(t,n,e,r,i,o){var u,a,s;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,s/=a),t*r<n*e&&(t=-t,n=-n,s=-s,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*X,skewX:Math.atan(s)*X,scaleX:u,scaleY:a}}function R(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a,s,c,l,h=[],f=[];return o=t(o),u=t(u),!function(t,r,i,o,u,a){if(t!==i||r!==o){var s=u.push("translate(",null,n,null,e);a.push({i:s-4,x:D(t,i)},{i:s-2,x:D(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,h,f),(a=o.rotate)!==(s=u.rotate)?(a-s>180?s+=360:s-a>180&&(a+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:D(a,s)})):s&&h.push(i(h)+"rotate("+s+r),(c=o.skewX)!==(l=u.skewX)?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:D(c,l)}):l&&h.push(i(h)+"skewX("+l+r),!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:D(t,e)},{i:a-2,x:D(n,r)})}else(1!==e||1!==r)&&o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,h,f),o=u=null,function(t){for(var n,e=-1,r=f.length;++e<r;)h[(n=f[e]).i]=n.x(t);return h.join("")}}}var I=R(function(t){let n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?q:Y(n.a,n.b,n.c,n.d,n.e,n.f)},"px, ","px)","deg)"),V=R(function(t){return null==t?q:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",t),t=r.transform.baseVal.consolidate())?Y((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):q},", ",")",")"),H=e(37005);function L(t,n,e){var r=t._id;return t.each(function(){var t=C(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return O(t,r).value[n]}}function B(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function G(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function U(){}var $="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",W="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,F=new RegExp("^rgb\\(".concat($,",").concat($,",").concat($,"\\)$")),J=new RegExp("^rgb\\(".concat(W,",").concat(W,",").concat(W,"\\)$")),tt=new RegExp("^rgba\\(".concat($,",").concat($,",").concat($,",").concat(K,"\\)$")),tn=new RegExp("^rgba\\(".concat(W,",").concat(W,",").concat(W,",").concat(K,"\\)$")),te=new RegExp("^hsl\\(".concat(K,",").concat(W,",").concat(W,"\\)$")),tr=new RegExp("^hsla\\(".concat(K,",").concat(W,",").concat(W,",").concat(K,"\\)$")),ti={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 to(){return this.rgb().formatHex()}function tu(){return this.rgb().formatRgb()}function ta(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Q.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?ts(n):3===e?new th(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?tc(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?tc(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=F.exec(t))?new th(n[1],n[2],n[3],1):(n=J.exec(t))?new th(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=tt.exec(t))?tc(n[1],n[2],n[3],n[4]):(n=tn.exec(t))?tc(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=te.exec(t))?ty(n[1],n[2]/100,n[3]/100,1):(n=tr.exec(t))?ty(n[1],n[2]/100,n[3]/100,n[4]):ti.hasOwnProperty(t)?ts(ti[t]):"transparent"===t?new th(NaN,NaN,NaN,0):null}function ts(t){return new th(t>>16&255,t>>8&255,255&t,1)}function tc(t,n,e,r){return r<=0&&(t=n=e=NaN),new th(t,n,e,r)}function tl(t,n,e,r){var i;return 1==arguments.length?((i=t)instanceof U||(i=ta(i)),i)?new th((i=i.rgb()).r,i.g,i.b,i.opacity):new th:new th(t,n,e,null==r?1:r)}function th(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function tf(){return"#".concat(tm(this.r)).concat(tm(this.g)).concat(tm(this.b))}function tp(){let t=td(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(tv(this.r),", ").concat(tv(this.g),", ").concat(tv(this.b)).concat(1===t?")":", ".concat(t,")"))}function td(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function tv(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function tm(t){return((t=tv(t))<16?"0":"")+t.toString(16)}function ty(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new t_(t,n,e,r)}function tg(t){if(t instanceof t_)return new t_(t.h,t.s,t.l,t.opacity);if(t instanceof U||(t=ta(t)),!t)return new t_;if(t instanceof t_)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,s=(o+i)/2;return a?(u=n===o?(e-r)/a+(e<r)*6:e===o?(r-n)/a+2:(n-e)/a+4,a/=s<.5?o+i:2-o-i,u*=60):a=s>0&&s<1?0:u,new t_(u,a,s,t.opacity)}function t_(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function tw(t){return(t=(t||0)%360)<0?t+360:t}function tb(t){return Math.max(0,Math.min(1,t||0))}function tx(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}function tk(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}B(U,ta,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:to,formatHex:to,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return tg(this).formatHsl()},formatRgb:tu,toString:tu}),B(th,tl,G(U,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new th(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new th(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new th(tv(this.r),tv(this.g),tv(this.b),td(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:tf,formatHex:tf,formatHex8:function(){return"#".concat(tm(this.r)).concat(tm(this.g)).concat(tm(this.b)).concat(tm((isNaN(this.opacity)?1:this.opacity)*255))},formatRgb:tp,toString:tp})),B(t_,function(t,n,e,r){return 1==arguments.length?tg(t):new t_(t,n,e,null==r?1:r)},G(U,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new t_(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new t_(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,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 th(tx(t>=240?t-240:t+120,i,r),tx(t,i,r),tx(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new t_(tw(this.h),tb(this.s),tb(this.l),td(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=td(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(tw(this.h),", ").concat(100*tb(this.s),"%, ").concat(100*tb(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var tE=t=>()=>t;function tS(t,n){var e=n-t;return e?function(n){return t+n*e}:tE(isNaN(t)?n:t)}var tA=function t(n){var e,r=1==(e=+(e=n))?tS:function(t,n){var r,i,o;return n-t?(r=t,i=n,r=Math.pow(r,o=e),i=Math.pow(i,o)-r,o=1/o,function(t){return Math.pow(r+t*i,o)}):tE(isNaN(t)?n:t)};function i(t,n){var e=r((t=tl(t)).r,(n=tl(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),u=tS(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return i.gamma=t,i}(1);function tM(t){return function(n){var e,r,i=n.length,o=Array(i),u=Array(i),a=Array(i);for(e=0;e<i;++e)r=tl(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}tM(function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<n-1?t[r+2]:2*o-i;return tk((e-r/n)*n,u,i,o,a)}}),tM(function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return tk((e-r/n)*n,i,o,u,a)}});var tZ=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tz=RegExp(tZ.source,"g");function tN(t,n){var e;return("number"==typeof n?D:n instanceof ta?tA:(e=ta(n))?(n=e,tA):function(t,n){var e,r,i,o,u,a=tZ.lastIndex=tz.lastIndex=0,s=-1,c=[],l=[];for(t+="",n+="";(i=tZ.exec(t))&&(o=tz.exec(n));)(u=o.index)>a&&(u=n.slice(a,u),c[s]?c[s]+=u:c[++s]=u),(i=i[0])===(o=o[0])?c[s]?c[s]+=o:c[++s]=o:(c[++s]=null,l.push({i:s,x:D(i,o)})),a=tz.lastIndex;return a<n.length&&(u=n.slice(a),c[s]?c[s]+=u:c[++s]=u),c.length<2?l[0]?(e=l[0].x,function(t){return e(t)+""}):(r=n,function(){return r}):(n=l.length,function(t){for(var e,r=0;r<n;++r)c[(e=l[r]).i]=e.x(t);return c.join("")})})(t,n)}var tP=e(16569),tT=e(19176),tC=e(1700),tO=f.ZP.prototype.constructor,tj=e(51043);function tD(t){return function(){this.style.removeProperty(t)}}var tX=0;function tq(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}var tY=f.ZP.prototype;tq.prototype=(function(t){return(0,f.ZP)().transition(t)}).prototype={constructor:tq,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=(0,tT.Z)(t));for(var r=this._groups,i=r.length,o=Array(i),u=0;u<i;++u)for(var a,s,c=r[u],l=c.length,h=o[u]=Array(l),f=0;f<l;++f)(a=c[f])&&(s=t.call(a,a.__data__,f,c))&&("__data__"in a&&(s.__data__=a.__data__),h[f]=s,P(h[f],n,e,f,h,O(a,e)));return new tq(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=(0,tC.Z)(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,c=r[a],l=c.length,h=0;h<l;++h)if(s=c[h]){for(var f,p=t.call(s,s.__data__,h,c),d=O(s,e),v=0,m=p.length;v<m;++v)(f=p[v])&&P(f,n,e,v,p,d);o.push(p),u.push(s)}return new tq(o,u,n,e)},selectChild:tY.selectChild,selectChildren:tY.selectChildren,filter:function(t){"function"!=typeof t&&(t=(0,tP.Z)(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],c=0;c<a;++c)(o=u[c])&&t.call(o,o.__data__,c,u)&&s.push(o);return new tq(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=Array(r),a=0;a<o;++a)for(var s,c=n[a],l=e[a],h=c.length,f=u[a]=Array(h),p=0;p<h;++p)(s=c[p]||l[p])&&(f[p]=s);for(;a<r;++a)u[a]=n[a];return new tq(u,this._parents,this._name,this._id)},selection:function(){return new tO(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=++tX,r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,c=0;c<s;++c)if(u=a[c]){var l=O(u,n);P(u,t,e,c,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new tq(r,this._parents,t,e)},call:tY.call,nodes:tY.nodes,node:tY.node,size:tY.size,empty:tY.empty,each:tY.each,on:function(t,n){var e,r,i,o=this._id;return arguments.length<2?O(this.node(),o).on.on(t):this.each((i=(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})?T:C,function(){var u=i(this,o),a=u.on;a!==e&&(r=(e=a).copy()).on(t,n),u.on=r}))},attr:function(t,n){var e=(0,H.Z)(t),r="transform"===e?V:tN;return this.attrTween(t,"function"==typeof n?(e.local?function(t,n,e){var r,i,o;return function(){var u,a,s=e(this);return null==s?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s))}}:function(t,n,e){var r,i,o;return function(){var u,a,s=e(this);return null==s?void this.removeAttribute(t):(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s))}})(e,r,L(this,"attr."+t,n)):null==n?(e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(e):(e.local?function(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(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)}})(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 Error();var r=(0,H.Z)(t);return this.tween(e,(r.local?function(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(n){this.setAttributeNS(t.space,t.local,i.call(this,n))}),e}return i._value=n,i}:function(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(n){this.setAttribute(t,i.call(this,n))}),e}return i._value=n,i})(r,n))},style:function(t,n,e){var r,i,o,u,a,s,c,l,h,f,p,d,v,m,y,g,_,w,b,x,k,E="transform"==(t+="")?I:tN;return null==n?this.styleTween(t,(r=t,function(){var t=(0,tj.S)(this,r),n=(this.style.removeProperty(r),(0,tj.S)(this,r));return t===n?null:t===i&&n===o?u:u=E(i=t,o=n)})).on("end.style."+t,tD(t)):"function"==typeof n?this.styleTween(t,(a=t,s=L(this,"style."+t,n),function(){var t=(0,tj.S)(this,a),n=s(this),e=n+"";return null==n&&(this.style.removeProperty(a),e=n=(0,tj.S)(this,a)),t===e?null:t===c&&e===l?h:(l=e,h=E(c=t,n))})).each((f=this._id,_="end."+(g="style."+(p=t)),function(){var t=C(this,f),n=t.on,e=null==t.value[g]?y||(y=tD(p)):void 0;(n!==d||m!==e)&&(v=(d=n).copy()).on(_,m=e),t.on=v})):this.styleTween(t,(w=t,k=n+"",function(){var t=(0,tj.S)(this,w);return t===k?null:t===b?x:x=E(b=t,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 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(n){this.style.setProperty(t,o.call(this,n),e)}),r}return o._value=n,o}(t,n,null==e?"":e))},text:function(t){var n,e;return this.tween("text","function"==typeof t?(n=L(this,"text",t),function(){var t=n(this);this.textContent=null==t?"":t}):(e=null==t?"":t+"",function(){this.textContent=e}))},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 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){this.textContent=r.call(this,t)}),n}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=O(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?function(t,n){var e,r;return function(){var i=C(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}}i.tween=r}}:function(t,n,e){var r,i;if("function"!=typeof e)throw Error();return function(){var o=C(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,c=i.length;s<c;++s)if(i[s].name===n){i[s]=a;break}s===c&&i.push(a)}o.tween=i}})(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?function(t,n){return function(){T(this,t).delay=+n.apply(this,arguments)}}:function(t,n){return n=+n,function(){T(this,t).delay=n}})(n,t)):O(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?function(t,n){return function(){C(this,t).duration=+n.apply(this,arguments)}}:function(t,n){return n=+n,function(){C(this,t).duration=n}})(n,t)):O(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!=typeof n)throw Error();return function(){C(this,t).ease=n}}(n,t)):O(this.node(),n).ease},easeVarying:function(t){var n;if("function"!=typeof t)throw Error();return this.each((n=this._id,function(){var e=t.apply(this,arguments);if("function"!=typeof e)throw Error();C(this,n).ease=e}))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};e.each(function(){var e=C(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n}),0===i&&o()})},[Symbol.iterator]:tY[Symbol.iterator]};var tR={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};f.ZP.prototype.interrupt=function(t){return this.each(function(){j(this,t)})},f.ZP.prototype.transition=function(t){var n,e;t instanceof tq?(n=t._id,t=t._name):(n=++tX,(e=tR).time=b(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,c=0;c<s;++c)(u=a[c])&&P(u,t,n,c,a,e||function(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw Error("transition ".concat(n," not found"));return e}(u,n));return new tq(r,this._parents,t,n)};var tI=t=>()=>t;function tV(t,n){let{sourceEvent:e,target:r,transform:i,dispatch:o}=n;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function tH(t,n,e){this.k=t,this.x=n,this.y=e}tH.prototype={constructor:tH,scale:function(t){return 1===t?this:new tH(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new tH(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 tL=new tH(1,0,0);function tB(t){t.stopImmediatePropagation()}function tG(t){t.preventDefault(),t.stopImmediatePropagation()}function tU(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function t$(){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 tK(){return this.__zoom||tL}function tW(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function tQ(){return navigator.maxTouchPoints||"ontouchstart"in this}function tF(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 tJ(){var t,n,e,r=tU,u=t$,a=tF,s=tW,f=tQ,p=[0,1/0],d=[[-1/0,-1/0],[1/0,1/0]],v=250,m=c,y=(0,i.Z)("start","zoom","end"),g=0,_=10;function w(t){t.property("__zoom",tK).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",z).filter(f).on("touchstart.zoom",N).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(t,n){return(n=Math.max(p[0],Math.min(p[1],n)))===t.k?t:new tH(n,t.x,t.y)}function x(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 tH(t.k,r,i)}function k(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function E(t,n,e,r){t.on("start.zoom",function(){S(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){S(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,i=S(this,t).event(r),o=u.apply(this,t),a=null==e?k(o):"function"==typeof e?e.apply(this,t):e,s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=this.__zoom,l="function"==typeof n?n.apply(this,t):n,h=m(c.invert(a).concat(s/c.k),l.invert(a).concat(s/l.k));return function(t){if(1===t)t=l;else{var n=h(t),e=s/n[2];t=new tH(e,a[0]-n[0]*e,a[1]-n[1]*e)}i.zoom(null,t)}})}function S(t,n,e){return!e&&t.__zooming||new A(t,n)}function A(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=u.apply(t,n),this.taps=0}function M(t){for(var n=arguments.length,e=Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];if(r.apply(this,arguments)){var o=S(this,e).event(t),u=this.__zoom,c=Math.max(p[0],Math.min(p[1],u.k*Math.pow(2,s.apply(this,arguments)))),l=(0,h.Z)(t);if(o.wheel)(o.mouse[0][0]!==l[0]||o.mouse[0][1]!==l[1])&&(o.mouse[1]=u.invert(o.mouse[0]=l)),clearTimeout(o.wheel);else{if(u.k===c)return;o.mouse=[l,u.invert(l)],j(this),o.start()}tG(t),o.wheel=setTimeout(function(){o.wheel=null,o.end()},150),o.zoom("mouse",a(x(b(u,c),o.mouse[0],o.mouse[1]),o.extent,d))}}function Z(t){for(var n=arguments.length,i=Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];if(!e&&r.apply(this,arguments)){var s=t.currentTarget,c=S(this,i,!0).event(t),f=(0,l.Z)(t.view).on("mousemove.zoom",function(t){if(tG(t),!c.moved){var n=t.clientX-v,e=t.clientY-m;c.moved=n*n+e*e>g}c.event(t).zoom("mouse",a(x(c.that.__zoom,c.mouse[0]=(0,h.Z)(t,s),c.mouse[1]),c.extent,d))},!0).on("mouseup.zoom",function(t){f.on("mousemove.zoom mouseup.zoom",null),(0,o.D)(t.view,c.moved),tG(t),c.event(t).end()},!0),p=(0,h.Z)(t,s),v=t.clientX,m=t.clientY;(0,o.Z)(t.view),tB(t),c.mouse=[p,this.__zoom.invert(p)],j(this),c.start()}}function z(t){for(var n=arguments.length,e=Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];if(r.apply(this,arguments)){var o=this.__zoom,s=(0,h.Z)(t.changedTouches?t.changedTouches[0]:t,this),c=o.invert(s),f=o.k*(t.shiftKey?.5:2),p=a(x(b(o,f),s,c),u.apply(this,e),d);tG(t),v>0?(0,l.Z)(this).transition().duration(v).call(E,p,s,t):(0,l.Z)(this).call(w.transform,p,s,t)}}function N(e){for(var i=arguments.length,o=Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];if(r.apply(this,arguments)){var a,s,c,l,f=e.touches,p=f.length,d=S(this,o,e.changedTouches.length===p).event(e);for(tB(e),s=0;s<p;++s)c=f[s],l=[l=(0,h.Z)(c,this),this.__zoom.invert(l),c.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,a=!0,d.taps=1+!!t);t&&(t=clearTimeout(t)),a&&(d.taps<2&&(n=l[0],t=setTimeout(function(){t=null},500)),j(this),d.start())}}function P(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(this.__zooming){var i,o,u,s,c=S(this,e).event(t),l=t.changedTouches,f=l.length;for(tG(t),i=0;i<f;++i)o=l[i],u=(0,h.Z)(o,this),c.touch0&&c.touch0[2]===o.identifier?c.touch0[0]=u:c.touch1&&c.touch1[2]===o.identifier&&(c.touch1[0]=u);if(o=c.that.__zoom,c.touch1){var p=c.touch0[0],v=c.touch0[1],m=c.touch1[0],y=c.touch1[1],g=(g=m[0]-p[0])*g+(g=m[1]-p[1])*g,_=(_=y[0]-v[0])*_+(_=y[1]-v[1])*_;o=b(o,Math.sqrt(g/_)),u=[(p[0]+m[0])/2,(p[1]+m[1])/2],s=[(v[0]+y[0])/2,(v[1]+y[1])/2]}else{if(!c.touch0)return;u=c.touch0[0],s=c.touch0[1]}c.zoom("touch",a(x(o,u,s),c.extent,d))}}function T(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.__zooming){var u,a,s=S(this,i).event(t),c=t.changedTouches,f=c.length;for(tB(t),e&&clearTimeout(e),e=setTimeout(function(){e=null},500),u=0;u<f;++u)a=c[u],s.touch0&&s.touch0[2]===a.identifier?delete s.touch0:s.touch1&&s.touch1[2]===a.identifier&&delete s.touch1;if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0]);else if(s.end(),2===s.taps&&(a=(0,h.Z)(a,this),Math.hypot(n[0]-a[0],n[1]-a[1])<_)){var p=(0,l.Z)(this).on("dblclick.zoom");p&&p.apply(this,arguments)}}}return w.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",tK),t!==i?E(t,n,e,r):i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},w.scaleBy=function(t,n,e,r){w.scaleTo(t,function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e},e,r)},w.scaleTo=function(t,n,e,r){w.transform(t,function(){var t=u.apply(this,arguments),r=this.__zoom,i=null==e?k(t):"function"==typeof e?e.apply(this,arguments):e,o=r.invert(i),s="function"==typeof n?n.apply(this,arguments):n;return a(x(b(r,s),i,o),t,d)},e,r)},w.translateBy=function(t,n,e,r){w.transform(t,function(){return a(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),u.apply(this,arguments),d)},null,r)},w.translateTo=function(t,n,e,r,i){w.transform(t,function(){var t=u.apply(this,arguments),i=this.__zoom,o=null==r?k(t):"function"==typeof r?r.apply(this,arguments):r;return a(tL.translate(o[0],o[1]).scale(i.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,d)},r,i)},A.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=(0,l.Z)(this.that).datum();y.call(t,this.that,new tV(t,{sourceEvent:this.sourceEvent,target:w,type:t,transform:this.that.__zoom,dispatch:y}),n)}},w.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:tI(+t),w):s},w.filter=function(t){return arguments.length?(r="function"==typeof t?t:tI(!!t),w):r},w.touchable=function(t){return arguments.length?(f="function"==typeof t?t:tI(!!t),w):f},w.extent=function(t){return arguments.length?(u="function"==typeof t?t:tI([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),w):u},w.scaleExtent=function(t){return arguments.length?(p[0]=+t[0],p[1]=+t[1],w):[p[0],p[1]]},w.translateExtent=function(t){return arguments.length?(d[0][0]=+t[0][0],d[1][0]=+t[1][0],d[0][1]=+t[0][1],d[1][1]=+t[1][1],w):[[d[0][0],d[0][1]],[d[1][0],d[1][1]]]},w.constrain=function(t){return arguments.length?(a=t,w):a},w.duration=function(t){return arguments.length?(v=+t,w):v},w.interpolate=function(t){return arguments.length?(m=t,w):m},w.on=function(){var t=y.on.apply(y,arguments);return t===y?w:t},w.clickDistance=function(t){return arguments.length?(g=(t=+t)*t,w):Math.sqrt(g)},w.tapDistance=function(t){return arguments.length?(_=+t,w):_},w}tH.prototype}}]);