(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9924],{4583:function(){},53250: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(67294),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="undefined"==typeof window||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},50139: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(67294),i=e(61688),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 f=a(null);if(null===f.current){var h={hasValue:!1,value:null};f.current=h}else h=f.current;f=c(function(){function t(t){if(!s){if(s=!0,u=t,t=r(t),void 0!==i&&h.hasValue){var n=h.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]);var p=u(t,f[0],f[1]);return s(function(){h.hasValue=!0,h.value=p},[p]),l(p),p}},61688:function(t,n,e){"use strict";t.exports=e(53250)},52798:function(t,n,e){"use strict";t.exports=e(50139)},59819:function(t,n,e){"use strict";e.d(n,{A:function(){return d}});var r,i,o=e(67294),u=e(83840),a=e(36851),s=e(76248);function c({color:t,dimensions:n,lineWidth:e}){return o.createElement("path",{stroke:t,strokeWidth:e,d:`M${n[0]/2} 0 V${n[1]} M0 ${n[1]/2} H${n[0]}`})}function l({color:t,radius:n}){return o.createElement("circle",{cx:n,cy:n,r:n,fill:t})}(r=i||(i={})).Lines="lines",r.Dots="dots",r.Cross="cross";let f={[i.Dots]:"#91919a",[i.Lines]:"#eee",[i.Cross]:"#e2e2e2"},h={[i.Dots]:1,[i.Lines]:1,[i.Cross]:6},p=t=>({transform:t.transform,patternId:`pattern-${t.rfId}`});function v({id:t,variant:n=i.Dots,gap:e=20,size:r,lineWidth:v=1,offset:d=2,color:m,style:y,className:_}){let g=(0,o.useRef)(null),{transform:w,patternId:b}=(0,a.oR)(p,s.X),x=m||f[n],S=r||h[n],E=n===i.Dots,Z=n===i.Cross,A=Array.isArray(e)?e:[e,e],z=[A[0]*w[2]||1,A[1]*w[2]||1],M=S*w[2],k=Z?[M,M]:z,P=E?[M/d,M/d]:[k[0]/d,k[1]/d];return o.createElement("svg",{className:(0,u.Z)(["react-flow__background",_]),style:{...y,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:g,"data-testid":"rf__background"},o.createElement("pattern",{id:b+t,x:w[0]%z[0],y:w[1]%z[1],width:z[0],height:z[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${P[0]},-${P[1]})`},E?o.createElement(l,{color:x,radius:M/d}):o.createElement(c,{dimensions:k,color:x,lineWidth:v})),o.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${b+t})`}))}v.displayName="Background";var d=(0,o.memo)(v)},83840: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}}})},62487:function(t,n,e){"use strict";e.d(n,{Z:function(){return v}});var r=e(96057),i=e(23838),o=e(46939),u=e(22718),a=e(79611),s=t=>()=>t;function c(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:u,y:a,dx:s,dy:c,dispatch:l}){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:s,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:l}})}function l(t){return!t.ctrlKey&&!t.button}function f(){return this.parentNode}function h(t,n){return null==n?{x:t.x,y:t.y}:n}function p(){return navigator.maxTouchPoints||"ontouchstart"in this}function v(){var t,n,e,v,d=l,m=f,y=h,_=p,g={},w=(0,r.Z)("start","drag","end"),b=0,x=0;function S(t){t.on("mousedown.drag",E).filter(_).on("touchstart.drag",z).on("touchmove.drag",M,a.Q7).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function E(r,o){if(!v&&d.call(this,r,o)){var s=P(this,m.call(this,r,o),r,o,"mouse");s&&((0,i.Z)(r.view).on("mousemove.drag",Z,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 Z(r){if((0,a.ZP)(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>x}g.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),g.mouse("end",t)}function z(t,n){if(d.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=P(this,o,t,n,i[e].identifier,i[e]))&&((0,a.rG)(t),r("start",t,i[e]))}}function M(t){var n,e,r=t.changedTouches,i=r.length;for(n=0;n<i;++n)(e=g[r[n].identifier])&&((0,a.ZP)(t),e("drag",t,r[n]))}function k(t){var n,e,r=t.changedTouches,i=r.length;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),n=0;n<i;++n)(e=g[r[n].identifier])&&((0,a.rG)(t),e("end",t,r[n]))}function P(t,n,e,r,i,u){var a,s,l,f=w.copy(),h=(0,o.Z)(u||e,n);if(null!=(l=y.call(t,new c("beforestart",{sourceEvent:e,target:S,identifier:i,active:b,x:h[0],y:h[1],dx:0,dy:0,dispatch:f}),r)))return a=l.x-h[0]||0,s=l.y-h[1]||0,function e(u,p,v){var d,m=h;switch(u){case"start":g[i]=e,d=b++;break;case"end":delete g[i],--b;case"drag":h=(0,o.Z)(v||p,n),d=b}f.call(u,t,new c(u,{sourceEvent:p,subject:l,target:S,identifier:i,active:d,x:h[0]+a,y:h[1]+s,dx:h[0]-m[0],dy:h[1]-m[1],dispatch:f}),r)}}return S.filter=function(t){return arguments.length?(d="function"==typeof t?t:s(!!t),S):d},S.container=function(t){return arguments.length?(m="function"==typeof t?t:s(t),S):m},S.subject=function(t){return arguments.length?(y="function"==typeof t?t:s(t),S):y},S.touchable=function(t){return arguments.length?(_="function"==typeof t?t:s(!!t),S):_},S.on=function(){var t=w.on.apply(w,arguments);return t===w?S:t},S.clickDistance=function(t){return arguments.length?(x=(t=+t)*t,S):Math.sqrt(x)},S}c.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t}},22718:function(t,n,e){"use strict";e.d(n,{D:function(){return u},Z:function(){return o}});var r=e(23838),i=e(79611);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)}},79611: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()}},24421: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}})},31663:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(91226);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}},91226: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/"}},46939: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}})},23838:function(t,n,e){"use strict";e.d(n,{Z:function(){return i}});var r=e(21680);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},21680:function(t,n,e){"use strict";e.d(n,{Y1:function(){return ti},ZP:function(){return tu},Jz:function(){return tr}});var r=e(83010),i=e(19701),o=e(24421),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 f(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function h(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 f(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,h=n.length,p=o.length,v=Array(h);for(a=0;a<h;++a)(s=n[a])&&(v[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 f(t,o[a]);for(a=0;a<h;++a)(s=n[a])&&l.get(v[a])===s&&(i[a]=s)}function v(t){return t.__data__}function d(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}f.prototype={constructor:f,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(31663);function y(t){return function(){this.removeAttribute(t)}}function _(t){return function(){this.removeAttributeNS(t.space,t.local)}}function g(t,n){return function(){this.setAttribute(t,n)}}function w(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function b(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function x(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)}}var S=e(52627);function E(t){return function(){delete this[t]}}function Z(t,n){return function(){this[t]=n}}function A(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function z(t){return t.trim().split(/^|\s+/)}function M(t){return t.classList||new k(t)}function k(t){this._node=t,this._names=z(t.getAttribute("class")||"")}function P(t,n){for(var e=M(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function T(t,n){for(var e=M(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function C(t){return function(){P(this,t)}}function D(t){return function(){T(this,t)}}function N(t,n){return function(){(n.apply(this,arguments)?P:T)(this,t)}}function X(){this.textContent=""}function j(t){return function(){this.textContent=t}}function O(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Y(){this.innerHTML=""}function V(t){return function(){this.innerHTML=t}}function I(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function B(){this.nextSibling&&this.parentNode.appendChild(this)}function q(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}k.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 L=e(91226);function R(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===L.P&&n.documentElement.namespaceURI===L.P?n.createElement(t):n.createElementNS(e,t)}}function G(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function U(t){var n=(0,m.Z)(t);return(n.local?G:R)(n)}function $(){return null}function H(){var t=this.parentNode;t&&t.removeChild(this)}function K(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function W(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Q(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 J(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 F=e(89920);function tt(t,n,e){var r=(0,F.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)}function tn(t,n){return function(){return tt(this,t,n)}}function te(t,n){return function(){return tt(this,t,n.apply(this,arguments))}}var tr=[null];function ti(t,n){this._groups=t,this._parents=n}function to(){return new ti([[document.documentElement]],tr)}ti.prototype=to.prototype={constructor:ti,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),f=0;f<c;++f)(u=s[f])&&(a=t.call(u,u.__data__,f,s))&&("__data__"in u&&(a.__data__=u.__data__),l[f]=a);return new ti(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,f=0;f<l;++f)(s=c[f])&&(o.push(t.call(s,s.__data__,f,c)),u.push(s));return new ti(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 ti(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,v);var e=n?p:h,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],f=i[c],d=f.length,m="object"==typeof(w=t.call(l,l&&l.__data__,c,r))&&"length"in w?w:Array.from(w),y=m.length,_=a[c]=Array(y),g=u[c]=Array(y);e(l,f,_,g,s[c]=Array(d),m,n);for(var w,b,x,S,E=0,Z=0;E<y;++E)if(x=_[E]){for(E>=Z&&(Z=E+1);!(S=g[Z])&&++Z<y;);x._next=S||null}}return(u=new ti(u,r))._enter=a,u._exit=s,u},enter:function(){return new ti(this._enter||this._groups.map(l),this._parents)},exit:function(){return new ti(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],f=r[s],h=l.length,p=a[s]=Array(h),v=0;v<h;++v)(c=l[v]||f[v])&&(p[v]=c);for(;s<i;++s)a[s]=e[s];return new ti(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=d);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 ti(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?_:y:"function"==typeof n?e.local?x:b:e.local?w:g)(e,n))},style:S.Z,property:function(t,n){return arguments.length>1?this.each((null==n?E:"function"==typeof n?A:Z)(t,n)):this.node()[t]},classed:function(t,n){var e=z(t+"");if(arguments.length<2){for(var r=M(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?N:n?C:D)(e,n))},text:function(t){return arguments.length?this.each(null==t?X:("function"==typeof t?O:j)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Y:("function"==typeof t?I:V)(t)):this.node().innerHTML},raise:function(){return this.each(B)},lower:function(){return this.each(q)},append:function(t){var n="function"==typeof t?t:U(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:U(t),i=null==n?$:"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(H)},clone:function(t){return this.select(t?W:K)},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?J:Q;r<u;++r)this.each(a(o[r],n,e));return this},dispatch:function(t,n){return this.each(("function"==typeof n?te:tn)(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 tu=to},52627:function(t,n,e){"use strict";e.d(n,{S:function(){return s},Z:function(){return a}});var r=e(89920);function i(t){return function(){this.style.removeProperty(t)}}function o(t,n,e){return function(){this.style.setProperty(t,n,e)}}function u(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function a(t,n,e){return arguments.length>1?this.each((null==n?i:"function"==typeof n?u:o)(t,n,null==e?"":e)):s(this.node(),t)}function s(t,n){return t.style.getPropertyValue(n)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(n)}},83010: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}})},19701: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}})},89920: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}})},95107:function(t,n,e){"use strict";e.d(n,{sP:function(){return ty},CR:function(){return ts}});var r,i=e(96057),o=e(22718);function u(t){return((t=Math.exp(t))+1/t)/2}var a=function t(n,e,r){function i(t,i){var o,a,s=t[0],c=t[1],l=t[2],f=i[0],h=i[1],p=i[2],v=f-s,d=h-c,m=v*v+d*d;if(m<1e-12)a=Math.log(p/l)/n,o=function(t){return[s+t*v,c+t*d,l*Math.exp(n*t*a)]};else{var y=Math.sqrt(m),_=(p*p-l*l+r*m)/(2*l*e*y),g=(p*p-l*l-r*m)/(2*p*e*y),w=Math.log(Math.sqrt(_*_+1)-_);a=(Math.log(Math.sqrt(g*g+1)-g)-w)/n,o=function(t){var r,i,o=t*a,f=u(w),h=l/(e*y)*(f*(((r=Math.exp(2*(r=n*o+w)))-1)/(r+1))-((i=Math.exp(i=w))-1/i)/2);return[s+h*v,c+h*d,l*f/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,i=r*r;return t(e,r,i)},i}(Math.SQRT2,2,4),s=e(23838),c=e(46939),l=e(21680),f=e(35374);function h(t,n,e){var r=new f.B7;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r}var p=(0,i.Z)("start","end","cancel","interrupt"),v=[];function d(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,f,p;if(1!==e.state)return a();for(c in i)if((p=i[c]).name===e.name){if(3===p.state)return h(o);4===p.state?(p.state=6,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[c]):+c<n&&(p.state=6,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete i[c])}if(h(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(f=e.tween.length),l=-1;c<f;++c)(p=e.tween[c].value.call(t,t.__data__,e.index,e.group))&&(r[++l]=p);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=(0,f.HT)(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:p,tween:v,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function m(t,n){var e=_(t,n);if(e.state>0)throw Error("too late; already scheduled");return e}function y(t,n){var e=_(t,n);if(e.state>3)throw Error("too late; already running");return e}function _(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw Error("transition not found");return e}function g(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 w(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}var b=180/Math.PI,x={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function S(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)*b,skewX:Math.atan(s)*b,scaleX:u,scaleY:a}}function E(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a,s,c,l,f=[],h=[];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:w(t,i)},{i:s-2,x:w(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,f,h),(a=o.rotate)!==(s=u.rotate)?(a-s>180?s+=360:s-a>180&&(a+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:w(a,s)})):s&&f.push(i(f)+"rotate("+s+r),(c=o.skewX)!==(l=u.skewX)?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:w(c,l)}):l&&f.push(i(f)+"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:w(t,e)},{i:a-2,x:w(n,r)})}else(1!==e||1!==r)&&o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,f,h),o=u=null,function(t){for(var n,e=-1,r=h.length;++e<r;)f[(n=h[e]).i]=n.x(t);return f.join("")}}}var Z=E(function(t){let n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?x:S(n.a,n.b,n.c,n.d,n.e,n.f)},"px, ","px)","deg)"),A=E(function(t){return null==t?x:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",t),t=r.transform.baseVal.consolidate())?S((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):x},", ",")",")"),z=e(31663);function M(t,n){var e,r;return function(){var i=y(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 k(t,n,e){var r,i;if("function"!=typeof e)throw Error();return function(){var o=y(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}}function P(t,n,e){var r=t._id;return t.each(function(){var t=y(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return _(t,r).value[n]}}var T=e(4447),C=e(79591),D=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,N=RegExp(D.source,"g");function X(t,n){var e,r,i,o,u,a=D.lastIndex=N.lastIndex=0,s=-1,c=[],l=[];for(t+="",n+="";(i=D.exec(t))&&(o=N.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:w(i,o)})),a=N.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("")})}function j(t,n){var e;return("number"==typeof n?w:n instanceof T.ZP?C.ZP:(e=(0,T.ZP)(n))?(n=e,C.ZP):X)(t,n)}function O(t){return function(){this.removeAttribute(t)}}function Y(t){return function(){this.removeAttributeNS(t.space,t.local)}}function V(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 I(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 B(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))}}function q(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 L(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 R(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}function G(t,n){return function(){m(this,t).delay=+n.apply(this,arguments)}}function U(t,n){return n=+n,function(){m(this,t).delay=n}}function $(t,n){return function(){y(this,t).duration=+n.apply(this,arguments)}}function H(t,n){return n=+n,function(){y(this,t).duration=n}}var K=e(24421),W=e(83010),Q=e(19701),J=l.ZP.prototype.constructor,F=e(52627);function tt(t){return function(){this.style.removeProperty(t)}}var tn=0;function te(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}var tr=l.ZP.prototype;te.prototype=(function(t){return(0,l.ZP)().transition(t)}).prototype={constructor:te,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=(0,W.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,f=o[u]=Array(l),h=0;h<l;++h)(a=c[h])&&(s=t.call(a,a.__data__,h,c))&&("__data__"in a&&(s.__data__=a.__data__),f[h]=s,d(f[h],n,e,h,f,_(a,e)));return new te(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=(0,Q.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,f=0;f<l;++f)if(s=c[f]){for(var h,p=t.call(s,s.__data__,f,c),v=_(s,e),m=0,y=p.length;m<y;++m)(h=p[m])&&d(h,n,e,m,p,v);o.push(p),u.push(s)}return new te(o,u,n,e)},selectChild:tr.selectChild,selectChildren:tr.selectChildren,filter:function(t){"function"!=typeof t&&(t=(0,K.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 te(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],f=c.length,h=u[a]=Array(f),p=0;p<f;++p)(s=c[p]||l[p])&&(h[p]=s);for(;a<r;++a)u[a]=n[a];return new te(u,this._parents,this._name,this._id)},selection:function(){return new J(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=++tn,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=_(u,n);d(u,t,e,c,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new te(r,this._parents,t,e)},call:tr.call,nodes:tr.nodes,node:tr.node,size:tr.size,empty:tr.empty,each:tr.each,on:function(t,n){var e,r,i,o=this._id;return arguments.length<2?_(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})?m:y,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,z.Z)(t),r="transform"===e?A:j;return this.attrTween(t,"function"==typeof n?(e.local?q:B)(e,r,P(this,"attr."+t,n)):null==n?(e.local?Y:O)(e):(e.local?I:V)(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,z.Z)(t);return this.tween(e,(r.local?L:R)(r,n))},style:function(t,n,e){var r,i,o,u,a,s,c,l,f,h,p,v,d,m,_,g,w,b,x,S,E,A="transform"==(t+="")?Z:j;return null==n?this.styleTween(t,(r=t,function(){var t=(0,F.S)(this,r),n=(this.style.removeProperty(r),(0,F.S)(this,r));return t===n?null:t===i&&n===o?u:u=A(i=t,o=n)})).on("end.style."+t,tt(t)):"function"==typeof n?this.styleTween(t,(a=t,s=P(this,"style."+t,n),function(){var t=(0,F.S)(this,a),n=s(this),e=n+"";return null==n&&(this.style.removeProperty(a),e=n=(0,F.S)(this,a)),t===e?null:t===c&&e===l?f:(l=e,f=A(c=t,n))})).each((h=this._id,w="end."+(g="style."+(p=t)),function(){var t=y(this,h),n=t.on,e=null==t.value[g]?_||(_=tt(p)):void 0;(n!==v||m!==e)&&(d=(v=n).copy()).on(w,m=e),t.on=d})):this.styleTween(t,(b=t,E=n+"",function(){var t=(0,F.S)(this,b);return t===E?null:t===x?S:S=A(x=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=P(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=_(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?M:k)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?G:U)(n,t)):_(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?$:H)(n,t)):_(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(){y(this,t).ease=n}}(n,t)):_(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();y(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=y(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]:tr[Symbol.iterator]};var ti={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};l.ZP.prototype.interrupt=function(t){return this.each(function(){g(this,t)})},l.ZP.prototype.transition=function(t){var n,e;t instanceof te?(n=t._id,t=t._name):(n=++tn,(e=ti).time=(0,f.zO)(),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])&&d(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 ${n} not found`);return e}(u,n));return new te(r,this._parents,t,n)};var to=t=>()=>t;function tu(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 ta(t,n,e){this.k=t,this.x=n,this.y=e}ta.prototype={constructor:ta,scale:function(t){return 1===t?this:new ta(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new ta(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 ts=new ta(1,0,0);function tc(t){t.stopImmediatePropagation()}function tl(t){t.preventDefault(),t.stopImmediatePropagation()}function tf(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function th(){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 tp(){return this.__zoom||ts}function tv(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function td(){return navigator.maxTouchPoints||"ontouchstart"in this}function tm(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 ty(){var t,n,e,r=tf,u=th,l=tm,f=tv,h=td,p=[0,1/0],v=[[-1/0,-1/0],[1/0,1/0]],d=250,m=a,y=(0,i.Z)("start","zoom","end"),_=0,w=10;function b(t){t.property("__zoom",tp).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",P).filter(h).on("touchstart.zoom",T).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",D).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(t,n){return(n=Math.max(p[0],Math.min(p[1],n)))===t.k?t:new ta(n,t.x,t.y)}function S(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 ta(t.k,r,i)}function E(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function Z(t,n,e,r){t.on("start.zoom",function(){A(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,i=A(this,t).event(r),o=u.apply(this,t),a=null==e?E(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,f=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=f(t),e=s/n[2];t=new ta(e,a[0]-n[0]*e,a[1]-n[1]*e)}i.zoom(null,t)}})}function A(t,n,e){return!e&&t.__zooming||new z(t,n)}function z(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,...n){if(r.apply(this,arguments)){var e=A(this,n).event(t),i=this.__zoom,o=Math.max(p[0],Math.min(p[1],i.k*Math.pow(2,f.apply(this,arguments)))),u=(0,c.Z)(t);if(e.wheel)(e.mouse[0][0]!==u[0]||e.mouse[0][1]!==u[1])&&(e.mouse[1]=i.invert(e.mouse[0]=u)),clearTimeout(e.wheel);else{if(i.k===o)return;e.mouse=[u,i.invert(u)],g(this),e.start()}tl(t),e.wheel=setTimeout(function(){e.wheel=null,e.end()},150),e.zoom("mouse",l(S(x(i,o),e.mouse[0],e.mouse[1]),e.extent,v))}}function k(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,u=A(this,n,!0).event(t),a=(0,s.Z)(t.view).on("mousemove.zoom",function(t){if(tl(t),!u.moved){var n=t.clientX-h,e=t.clientY-p;u.moved=n*n+e*e>_}u.event(t).zoom("mouse",l(S(u.that.__zoom,u.mouse[0]=(0,c.Z)(t,i),u.mouse[1]),u.extent,v))},!0).on("mouseup.zoom",function(t){a.on("mousemove.zoom mouseup.zoom",null),(0,o.D)(t.view,u.moved),tl(t),u.event(t).end()},!0),f=(0,c.Z)(t,i),h=t.clientX,p=t.clientY;(0,o.Z)(t.view),tc(t),u.mouse=[f,this.__zoom.invert(f)],g(this),u.start()}}function P(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,i=(0,c.Z)(t.changedTouches?t.changedTouches[0]:t,this),o=e.invert(i),a=e.k*(t.shiftKey?.5:2),f=l(S(x(e,a),i,o),u.apply(this,n),v);tl(t),d>0?(0,s.Z)(this).transition().duration(d).call(Z,f,i,t):(0,s.Z)(this).call(b.transform,f,i,t)}}function T(e,...i){if(r.apply(this,arguments)){var o,u,a,s,l=e.touches,f=l.length,h=A(this,i,e.changedTouches.length===f).event(e);for(tc(e),u=0;u<f;++u)a=l[u],s=[s=(0,c.Z)(a,this),this.__zoom.invert(s),a.identifier],h.touch0?h.touch1||h.touch0[2]===s[2]||(h.touch1=s,h.taps=0):(h.touch0=s,o=!0,h.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(h.taps<2&&(n=s[0],t=setTimeout(function(){t=null},500)),g(this),h.start())}}function C(t,...n){if(this.__zooming){var e,r,i,o,u=A(this,n).event(t),a=t.changedTouches,s=a.length;for(tl(t),e=0;e<s;++e)r=a[e],i=(0,c.Z)(r,this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var f=u.touch0[0],h=u.touch0[1],p=u.touch1[0],d=u.touch1[1],m=(m=p[0]-f[0])*m+(m=p[1]-f[1])*m,y=(y=d[0]-h[0])*y+(y=d[1]-h[1])*y;r=x(r,Math.sqrt(m/y)),i=[(f[0]+p[0])/2,(f[1]+p[1])/2],o=[(h[0]+d[0])/2,(h[1]+d[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],o=u.touch0[1]}u.zoom("touch",l(S(r,i,o),u.extent,v))}}function D(t,...r){if(this.__zooming){var i,o,u=A(this,r).event(t),a=t.changedTouches,l=a.length;for(tc(t),e&&clearTimeout(e),e=setTimeout(function(){e=null},500),i=0;i<l;++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=(0,c.Z)(o,this),Math.hypot(n[0]-o[0],n[1]-o[1])<w)){var f=(0,s.Z)(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return b.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",tp),t!==i?Z(t,n,e,r):i.interrupt().each(function(){A(this,arguments).event(r).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},b.scaleBy=function(t,n,e,r){b.scaleTo(t,function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e},e,r)},b.scaleTo=function(t,n,e,r){b.transform(t,function(){var t=u.apply(this,arguments),r=this.__zoom,i=null==e?E(t):"function"==typeof e?e.apply(this,arguments):e,o=r.invert(i),a="function"==typeof n?n.apply(this,arguments):n;return l(S(x(r,a),i,o),t,v)},e,r)},b.translateBy=function(t,n,e,r){b.transform(t,function(){return l(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),u.apply(this,arguments),v)},null,r)},b.translateTo=function(t,n,e,r,i){b.transform(t,function(){var t=u.apply(this,arguments),i=this.__zoom,o=null==r?E(t):"function"==typeof r?r.apply(this,arguments):r;return l(ts.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,v)},r,i)},z.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,s.Z)(this.that).datum();y.call(t,this.that,new tu(t,{sourceEvent:this.sourceEvent,target:b,type:t,transform:this.that.__zoom,dispatch:y}),n)}},b.wheelDelta=function(t){return arguments.length?(f="function"==typeof t?t:to(+t),b):f},b.filter=function(t){return arguments.length?(r="function"==typeof t?t:to(!!t),b):r},b.touchable=function(t){return arguments.length?(h="function"==typeof t?t:to(!!t),b):h},b.extent=function(t){return arguments.length?(u="function"==typeof t?t:to([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),b):u},b.scaleExtent=function(t){return arguments.length?(p[0]=+t[0],p[1]=+t[1],b):[p[0],p[1]]},b.translateExtent=function(t){return arguments.length?(v[0][0]=+t[0][0],v[1][0]=+t[1][0],v[0][1]=+t[0][1],v[1][1]=+t[1][1],b):[[v[0][0],v[0][1]],[v[1][0],v[1][1]]]},b.constrain=function(t){return arguments.length?(l=t,b):l},b.duration=function(t){return arguments.length?(d=+t,b):d},b.interpolate=function(t){return arguments.length?(m=t,b):m},b.on=function(){var t=y.on.apply(y,arguments);return t===y?b:t},b.clickDistance=function(t){return arguments.length?(_=(t=+t)*t,b):Math.sqrt(_)},b.tapDistance=function(t){return arguments.length?(w=+t,b):w},b}ta.prototype},76248: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}})},52464:function(t,n,e){"use strict";e.d(n,{F:function(){return h},s:function(){return l}});var r=e(67294),i=e(52798);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,n=c,e){let r=s(t.subscribe,t.getState,t.getServerState||t.getInitialState,n,e);return a(r),r}let f=(t,n)=>{let e=u(t),r=(t,r=n)=>l(e,t,r);return Object.assign(r,e),r},h=(t,n)=>t?f(t,n):f}}]);