1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[263],{1912:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(7294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},o=n(546),u=function(t,e){return r.createElement(o.Z,Object.assign({},t,{ref:e,icon:i}))};u.displayName="ArrowUpOutlined";var a=r.forwardRef(u)},2539:function(t,e,n){"use strict";n.d(e,{A:function(){return g}});var r,i,o=n(5893),u=n(7294),a=n(5113),s=n(9071);function c(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[n,r]of t)if(!Object.is(r,e.get(n)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let i of t)if(!e.has(i))return!1;return!0}let o=Object.keys(t);if(o.length!==Object.keys(e).length)return!1;for(let u=0;u<o.length;u++)if(!Object.prototype.hasOwnProperty.call(e,o[u])||!Object.is(t[o[u]],e[o[u]]))return!1;return!0}function l({color:t,dimensions:e,lineWidth:n}){return(0,o.jsx)("path",{stroke:t,strokeWidth:n,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})}function f({color:t,radius:e}){return(0,o.jsx)("circle",{cx:e,cy:e,r:e,fill:t})}(r=i||(i={})).Lines="lines",r.Dots="dots",r.Cross="cross";let h={[i.Dots]:"#91919a",[i.Lines]:"#eee",[i.Cross]:"#e2e2e2"},d={[i.Dots]:1,[i.Lines]:1,[i.Cross]:6},p=t=>({transform:t.transform,patternId:`pattern-${t.rfId}`});function v({variant:t=i.Dots,gap:e=20,size:n,lineWidth:r=1,color:v,style:g,className:y}){let m=(0,u.useRef)(null),{transform:w,patternId:b}=(0,s.oR)(p,c),_=v||h[t],x=n||d[t],O=t===i.Dots,S=t===i.Cross,j=Array.isArray(e)?e:[e,e],E=[j[0]*w[2]||1,j[1]*w[2]||1],N=x*w[2],A=S?[N,N]:E,k=O?[N/2,N/2]:[A[0]/2,A[1]/2];return(0,o.jsxs)("svg",{className:(0,a.Z)(["react-flow__background",y]),style:{...g,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:m,children:[(0,o.jsx)("pattern",{id:b,x:w[0]%E[0],y:w[1]%E[1],width:E[0],height:E[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${k[0]},-${k[1]})`,children:O?(0,o.jsx)(f,{color:_,radius:N/2}):(0,o.jsx)(l,{dimensions:A,color:_,lineWidth:r})}),(0,o.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${b})`})]})}v.displayName="Background";var g=(0,u.memo)(v)},5960:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}});var r=n(5893),i=n(7294),o=n(5113),u=n(9071);function a(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:(0,r.jsx)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function s(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:(0,r.jsx)("path",{d:"M0 0h32v4.2H0z"})})}function c(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:(0,r.jsx)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function l(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,r.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function f(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,r.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}let h=({children:t,className:e,...n})=>(0,r.jsx)("button",{type:"button",className:(0,o.Z)(["react-flow__controls-button",e]),...n,children:t});h.displayName="ControlButton";let d=t=>t.nodesDraggable&&t.nodesConnectable&&t.elementsSelectable,p=({style:t,showZoom:e=!0,showFitView:n=!0,showInteractive:p=!0,fitViewOptions:v,onZoomIn:g,onZoomOut:y,onFitView:m,onInteractiveChange:w,className:b,children:_,position:x="bottom-left"})=>{let O=(0,u.AC)(),[S,j]=(0,i.useState)(!1),E=(0,u.oR)(d),{zoomIn:N,zoomOut:A,fitView:k}=(0,u._K)();if((0,i.useEffect)(()=>{j(!0)},[]),!S)return null;let M=()=>{N(),g?.()},P=()=>{A(),y?.()},z=()=>{k(v),m?.()},Z=()=>{O.setState({nodesDraggable:!E,nodesConnectable:!E,elementsSelectable:!E}),w?.(!E)};return(0,r.jsxs)(u.s_,{className:(0,o.Z)(["react-flow__controls",b]),position:x,style:t,children:[e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h,{onClick:M,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",children:(0,r.jsx)(a,{})}),(0,r.jsx)(h,{onClick:P,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",children:(0,r.jsx)(s,{})})]}),n&&(0,r.jsx)(h,{className:"react-flow__controls-fitview",onClick:z,title:"fit view","aria-label":"fit view",children:(0,r.jsx)(c,{})}),p&&(0,r.jsx)(h,{className:"react-flow__controls-interactive",onClick:Z,title:"toggle interactivity","aria-label":"toggle interactivity",children:E?(0,r.jsx)(f,{}):(0,r.jsx)(l,{})}),_]})};p.displayName="Controls";var v=(0,i.memo)(p)},5498:function(){},734:function(t,e,n){"use strict";n.d(e,{_:function(){return u}});var r=n(7802),i=n(7294),o=n(5113);function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}n(4104);var a=["children","className"];function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}},7802:function(t,e,n){"use strict";n.d(e,{C:function(){return c},G:function(){return Q},J:function(){return b},K:function(){return _},L:function(){return tt},M:function(){return d},N:function(){return ti},P:function(){return p},_:function(){return x},a:function(){return w},b:function(){return th},c:function(){return U},d:function(){return G},e:function(){return J},f:function(){return O},g:function(){return E},h:function(){return f},i:function(){return M},j:function(){return S},k:function(){return W},l:function(){return V},m:function(){return j},n:function(){return L},o:function(){return K},p:function(){return F},q:function(){return h},r:function(){return N},s:function(){return k},t:function(){return B},u:function(){return td},v:function(){return tf},w:function(){return tp}
1,x:function(){return tu},y:function(){return C},z:function(){return I}});var r,i,o,u,a,s,c,l,f,h,d,p,v=n(7294);let g="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),y=g?v.useEffect:v.useLayoutEffect;var m=n(1011);function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n,r,i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var o=[],u=!0,a=!1;try{for(i=i.call(t);!(u=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);u=!0);}catch(s){a=!0,r=s}
1finally{try{u||null==i.return||i.return()}finally{if(a)throw r}}return o}}(t,e)||_(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r=c||(c={})).Strict="strict",r.Loose="loose",(i=l||(l={})).Lines="lines",i.Dots="dots",(o=f||(f={})).Free="free",o.Vertical="vertical",o.Horizontal="horizontal",(u=h||(h={})).Bezier="default",u.Straight="straight",u.Step="step",u.SmoothStep="smoothstep",u.SimpleBezier="simplebezier",(a=d||(d={})).Arrow="arrow",a.ArrowClosed="arrowclosed",(s=p||(p={})).Left="left",s.Top="top",s.Right="right",s.Bottom="bottom";var O=function(t){return{width:t.offsetWidth,height:t.offsetHeight}},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)},j=function(t,e){return{x:S(t.x,e[0][0],e[1][0]),y:S(t.y,e[0][1],e[1][1])}},E=function(t){var e,n;return(null===(e=t.getRootNode)||void 0===e?void 0:e.call(t))||(null===(n=window)||void 0===n?void 0:n.document)},N=function(t){var e=t.x,n=t.y;return{x:e,y:n,x2:e+t.width,y2:n+t.height}},A=function(t){var e=t.x,n=t.y;return{x:e,y:n,width:t.x2-e,height:t.y2-n}},k=function(t){return!isNaN(t)&&isFinite(t)},M=Symbol("internals");function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Z(t,e){var n=t.find(function(t){return t.id===e.parentNode});if(n){var r,i,o=e.position.x+e.width-n.width,u=e.position.y+e.height-n.height;if(o>0||u>0||e.position.x<0||e.position.y<0){if(n.style=z({},n.style)||{},n.style.width=null!==(r=n.style.width)&&void 0!==r?r:n.width,n.style.height=null!==(i=n.style.height)&&void 0!==i?i:n.height,o>0&&(n.style.width+=o),u>0&&(n.style.height+=u),e.position.x<0){var a=Math.abs(e.position.x);n.position.x=n.position.x-a,n.style.width+=a,e.position.x=0}if(e.position.y<0){var s=Math.abs(e.position.y);n.position.y=n.position.y-s,n.style.height+=s,e.position.y=0}n.width=n.style.width,n.height=n.style.height}}}function D(t,e){if(t.some(function(t){return"reset"===t.type}))return t.filter(function(t){return"reset"===t.type}).map(function(t){return t.item});var n=t.filter(function(t){return"add"===t.type}).map(function(t){return t.item});return e.reduce(function(e,n){var r=t.find(function(t){return t.id===n.id});if(r)switch(r.type){case"select":return e.push(z(z({},n),{},{selected:r.selected})),e;case"position":var i=z({},n);return void 0!==r.position&&(i.position=r.position),void 0!==r.positionAbsolute&&(i.positionAbsolute=r.positionAbsolute),void 0!==r.dragging&&(i.dragging=r.dragging),i.expandParent&&Z(e,i),e.push(i),e;case"dimensions":var o=z({},n);return void 0!==r.dimensions&&(o.width=r.dimensions.width,o.height=r.dimensions.height),o.expandParent&&Z(e,o),e.push(o),e;case"remove":return e}return e.push(n),e},n)}function C(t,e){return D(t,e)}function I(t,e){return D(t,e)}var T=function(t,e){return{id:t,type:"select",selected:e}};function V(t,e){return t.reduce(function(t,n){var r=e.includes(n.id);return!n.selected&&r?(n.selected=!0,t.push(T(n.id,!0))):n.selected&&!r&&(n.selected=!1,t.push(T(n.id,!1))),t},[])}function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEac
1h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var R=function(t,e,n){var r=e.querySelectorAll(t);if(!r||!r.length)return null;var i=Array.from(r),o=e.getBoundingClientRect();return i.map(function(t){var e=t.getBoundingClientRect();return H({id:t.getAttribute("data-handleid"),position:t.getAttribute("data-handlepos"),x:(e.left-o.left)/n,y:(e.top-o.top)/n},O(t))})};function B(t,e,n){return void 0===n?n:function(r){n(r,H({},e().nodeInternals.get(t)))}}function L(t){var e=t.id,n=t.store,r=n.getState(),i=r.addSelectedNodes,o=r.unselectNodesAndEdges,u=r.multiSelectionActive,a=r.nodeInternals.get(e);n.setState({nodesSelectionActive:!1}),a.selected?a.selected&&u&&o({nodes:[a]}):i([e])}function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var X=function(t){var e=t.source,n=t.sourceHandle,r=t.target,i=t.targetHandle;return"reactflow__edge-".concat(e).concat(n||"","-").concat(r).concat(i||"")},G=function(t,e){return void 0===t?"":"string"==typeof t?t:"".concat(e?"".concat(e,"__"):"").concat(Object.keys(t).sort().map(function(e){return"".concat(e,"=").concat(t[e])}).join("&"))},U=function(t,e){var n,r;return t.source&&t.target?(r=n="id"in t&&"source"in t&&"target"in t?q({},t):q(q({},t),{},{id:X(t)}),e.some(function(t){return t.source===r.source&&t.target===r.target&&(t.sourceHandle===r.sourceHandle||!t.sourceHandle&&!r.sourceHandle)&&(t.targetHandle===r.targetHandle||!t.targetHandle&&!r.targetHandle)}))?e:e.concat(n):e},F=function(t,e,n,r){var i=t.x,o=t.y,u=x(e,3),a=u[0],s=u[1],c=u[2],l=x(r,2),f=l[0],h=l[1],d={x:(i-a)/c,y:(o-s)/c};return n?{x:f*Math.round(d.x/f),y:h*Math.round(d.y/h)}:d},K=function(t){return 0===t.length?{x:0,y:0,width:0,height:0}:A(t.reduce(function(t,e){var n,r=e.positionAbsolute,i=e.position,o=e.width,u=e.height;return n=N({x:r?r.x:i.x,y:r?r.y:i.y,width:o||0,height:u||0}),{x:Math.min(t.x,n.x),y:Math.min(t.y,n.y),x2:Math.max(t.x2,n.x2),y2:Math.max(t.y2,n.y2)}},{x:1/0,y:1/0,x2:-1/0,y2:-1/0}))},W=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0,1],r=x(n,3),i=r[0],o=r[1],u=r[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=N({x:(e.x-i)/u,y:(e.y-o)/u,width:e.width/u,height:e.height/u}),l=[];return t.forEach(function(t){var e=t.positionAbsolute,n=t.width,r=t.height,i=t.selectable;if(s&&!(void 0===i||i))return!1;var o=N(q(q({},e),{},{width:n||0,height:r||0})),u=Math.ceil(Math.max(0,Math.min(c.x2,o.x2)-Math.max(c.x,o.x))*Math.max(0,Math.min(c.y2,o.y2)-Math.max(c.y,o.y)));(void 0===n||void 0===r||null===n||null===r||a&&u>0||u>=(n||0)*(r||0))&&l.push(t)}),l},J=function(t,e){var n=t.map(function(t){return t.id});return e.filter(function(t){return n.includes(t.source)||n.includes(t.target)})},Q=function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:.1,u=S(Math.min(e/(t.width*(1+o)),n/(t.height*(1+o))),r,i);return[e/2-(t.x+t.width/2)*u,n/2-(t.y+t.height/2)*u,u]},tt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.transition().duration(e)};function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function tr(t,e){var n=new Map,r={};return t.forEach(function(t){var i,o=k(t.zIndex)?t.zIndex:t.selected?1e3:0,u=e.get(t.id),a=tn(tn({width:null==u?void 0:u.width,height:null==u?void 0:u.height},t),{},{positionAbsolute:{x:t.position.x,y:t.position.y}});t.parentNode&&(a.parentNode=t.parentNode,r[t.parentNode]=!0),Object.defineProperty(a,M,{enumerable:!1,value:{handleBounds:null==u?void 0:null===(i=u[M])||void 0===i?void 0:i.handleBounds,z:o}}),n.set(t.id,a)}
1),n.forEach(function(t){if(t.parentNode&&!n.has(t.parentNode))throw Error("Parent node ".concat(t.parentNode," not found"));if(t.parentNode||r[t.id]){var e,i,o=function t(e,n,r,i){if(!e.parentNode)return i;var o,u,a,s,c,l,f,h,d,p,v,g,y=n.get(e.parentNode);return t(y,n,r,{x:(null!==(o=i.x)&&void 0!==o?o:0)+(null!==(u=null===(a=y.position)||void 0===a?void 0:a.x)&&void 0!==u?u:0),y:(null!==(s=i.y)&&void 0!==s?s:0)+(null!==(c=null===(l=y.position)||void 0===l?void 0:l.y)&&void 0!==c?c:0),z:(null!==(f=null===(h=y[M])||void 0===h?void 0:h.z)&&void 0!==f?f:0)>(null!==(d=i.z)&&void 0!==d?d:0)?null!==(p=null===(v=y[M])||void 0===v?void 0:v.z)&&void 0!==p?p:0:null!==(g=i.z)&&void 0!==g?g:0})}(t,n,r,tn(tn({},t.position),{},{z:null!==(e=null===(i=t[M])||void 0===i?void 0:i.z)&&void 0!==e?e:0})),u=o.x,a=o.y,s=o.z;t.positionAbsolute={x:u,y:a},t[M].z=s,r[t.id]&&(t[M].isParent=!0)}}),n}function ti(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t(),r=n.nodeInternals,i=n.width,o=n.height,u=n.minZoom,a=n.maxZoom,s=n.d3Zoom,c=n.d3Selection,l=n.fitViewOnInitDone,f=n.fitViewOnInit;if((e.initial&&!l&&f||!e.initial)&&s&&c){var h=Array.from(r.values()).filter(function(t){return e.includeHiddenNodes?t.width&&t.height:!t.hidden}),d=h.every(function(t){return t.width&&t.height});if(h.length>0&&d){var p,v,g,y=x(Q(K(h),i,o,null!==(p=e.minZoom)&&void 0!==p?p:u,null!==(v=e.maxZoom)&&void 0!==v?v:a,null!==(g=e.padding)&&void 0!==g?g:.1),3),w=y[0],b=y[1],_=y[2],O=m.CR.translate(w,b).scale(_);return"number"==typeof e.duration&&e.duration>0?s.transform(tt(c,e.duration),O):s.transform(c,O),!0}}return!1}function to(t){var e=t.changedNodes,n=t.changedEdges,r=t.get,i=t.set,o=r(),u=o.nodeInternals,a=o.edges,s=o.onNodesChange,c=o.onEdgesChange,l=o.hasDefaultNodes,f=o.hasDefaultEdges;null!=e&&e.length&&(l&&i({nodeInternals:(e.forEach(function(t){var e,n=u.get(t.id);n&&u.set(n.id,tn(tn({},n),{},(w(e={},M,n[M]),w(e,"selected",t.selected),e)))}),new Map(u))}),null==s||s(e)),null!=n&&n.length&&(f&&i({edges:a.map(function(t){var e=n.find(function(e){return e.id===t.id});return e&&(t.selected=e.selected),t})}),null==c||c(n))}var tu=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],ta={width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:tu,nodeExtent:tu,nodesSelectionActive:!1,userSelectionActive:!1,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionMode:c.Strict,domNode:null,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,elementsSelectable:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,multiSelectionActive:!1,reactFlowVersion:"10.3.17",connectionStartHandle:null,connectOnClick:!0};function ts(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function tc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ts(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tl=function(){let t=(0,v.createContext)(void 0),e=({initialStore:e,createStore:n,children:r})=>{let i=(0,v.useRef)();return i.current||(e&&(console.warn("Provider initialStore is deprecated and will be removed in the next version."),n||(n=()=>e)),i.current=n()),(0,v.createElement)(t.Provider,{value:i.current},r)},n=(e,n=Object.is)=>{let r=(0,v.useContext)(t);if(!r)throw Error("Seems like you have not used zustand provider as an ancestor.");return r(e,n)},r=()=>{let e=(0,v.useContext)(t);if(!e)throw Error("Seems like you have not used zustand provider as an ancestor.");return(0,v.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}),[e])};return{Provider:e,useStore:n,useStoreApi:r}}(),tf=tl.Provider,th=tl.useStore,td=tl.useStoreApi,tp=function(){return function(t){let e="function"==typeof t?function(t){let e;let n=new Set,r=(t,r)=>{let i="function"==typeof t?t(e):t;if(i!==e){let o=e;e=r?i:Object.assign({}
1,e,i),n.forEach(t=>t(e,o))}},i=()=>e,o=(t,r=i,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let u=r(e);function a(){let n=r(e);if(!o(u,n)){let i=u;t(u=n,i)}}return n.add(a),()=>n.delete(a)},u=(t,e,r)=>e||r?o(t,e,r):(n.add(t),()=>n.delete(t)),a=()=>n.clear(),s={setState:r,getState:i,subscribe:u,destroy:a};return e=t(r,i,s),s}(t):t,n=(t=e.getState,n=Object.is)=>{let r;let[,i]=(0,v.useReducer)(t=>t+1,0),o=e.getState(),u=(0,v.useRef)(o),a=(0,v.useRef)(t),s=(0,v.useRef)(n),c=(0,v.useRef)(!1),l=(0,v.useRef)();void 0===l.current&&(l.current=t(o));let f=!1;(u.current!==o||a.current!==t||s.current!==n||c.current)&&(r=t(o),f=!n(l.current,r)),y(()=>{f&&(l.current=r),u.current=o,a.current=t,s.current=n,c.current=!1});let h=(0,v.useRef)(o);y(()=>{let t=()=>{try{let t=e.getState(),n=a.current(t);s.current(l.current,n)||(u.current=t,l.current=n,i())}catch(r){c.current=!0,i()}},n=e.subscribe(t);return e.getState()!==h.current&&t(),n},[]);let d=f?r:l.current;return(0,v.useDebugValue)(d),d};return Object.assign(n,e),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");let t=[n,e];return{next(){let e=t.length<=0;return{value:t.shift(),done:e}}}},n}(function(t,e){return tc(tc({},ta),{},{setNodes:function(n){t({nodeInternals:tr(n,e().nodeInternals)})},setEdges:function(n){var r=e().defaultEdgeOptions,i=void 0===r?{}:r;t({edges:n.map(function(t){return tc(tc({},i),t)})})},setDefaultNodesAndEdges:function(e,n){var r=void 0!==e,i=void 0!==n;t({nodeInternals:r?tr(e,new Map):new Map,edges:i?n:[],hasDefaultNodes:r,hasDefaultEdges:i})},updateNodeDimensions:function(n){var r=e(),i=r.onNodesChange,o=r.nodeInternals,u=r.fitViewOnInit,a=r.fitViewOnInitDone,s=r.fitViewOnInitOptions,c=r.domNode,l=null==c?void 0:c.querySelector(".react-flow__viewport");if(l){var f=window.getComputedStyle(l),h=new window.DOMMatrixReadOnly(f.transform).m22,d=n.reduce(function(t,e){var n=o.get(e.id);if(n){var r=O(e.nodeElement);r.width&&r.height&&(n.width!==r.width||n.height!==r.height||e.forceUpdate)&&(o.set(n.id,tc(tc({},n),{},w({},M,tc(tc({},n[M]),{},{handleBounds:{source:R(".source",e.nodeElement,h),target:R(".target",e.nodeElement,h)}})),r)),t.push({id:n.id,type:"dimensions",dimensions:r}))}return t},[]),p=a||u&&!a&&ti(e,tc({initial:!0},s));t({nodeInternals:new Map(o),fitViewOnInitDone:p}),(null==d?void 0:d.length)>0&&(null==i||i(d))}},updateNodePositions:function(n){var r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e(),u=o.onNodesChange,a=o.nodeInternals,s=o.hasDefaultNodes;if(s||u){var c=n.map(function(t){var e={id:t.id,type:"position",dragging:i};return r&&(e.positionAbsolute=t.positionAbsolute,e.position=t.position),e});null!=c&&c.length&&(s&&t({nodeInternals:tr(D(c,Array.from(a.values())),a)}),null==u||u(c))}},addSelectedNodes:function(n){var r,i=e(),o=i.multiSelectionActive,u=i.nodeInternals,a=i.edges,s=null;o?r=n.map(function(t){return T(t,!0)}):(r=V(Array.from(u.values()),n),s=V(a,[])),to({changedNodes:r,changedEdges:s,get:e,set:t})},addSelectedEdges:function(n){var r,i=e(),o=i.multiSelectionActive,u=i.edges,a=i.nodeInternals,s=null;o?r=n.map(function(t){return T(t,!0)}):(r=V(u,n),s=V(Array.from(a.values()),[])),to({changedNodes:s,changedEdges:r,get:e,set:t})},unselectNodesAndEdges:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.nodes,i=n.edges,o=e(),u=o.nodeInternals,a=o.edges;to({changedNodes:(r||Array.from(u.values())).map(function(t){return t.selected=!1,T(t.id,!1)}),changedEdges:(i||a).map(function(t){return T(t.id,!1)}),get:e,set:t})},setMinZoom:function(n){var r=e(),i=r.d3Zoom,o=r.maxZoom;null==i||i.scaleExtent([n,o]),t({minZoom:n})},setMaxZoom:function(n){var r=e(),i=r.d3Zoom,o=r.minZoom;null==i||i.scaleExtent([o,n]),t({maxZoom:n})},setTranslateExtent:function(n){var r=e().d3Zoom;null==r||r.translateExtent(n),t({translateExtent:n})},resetSelectedElements:function(){var n=e(),r=n.nodeInternals,i=n.edges;to({changedNodes:Array.from(r.values()).filter(function(t){return t.selected}).map(function(t){return T(t.id,!1)}),changedEdges:i.filter(function(t){return t.selected}).map(function(t){return T(t.id,!1)}),get:e,set:t})},setNodeExtent:function(n){var r=e().nodeInternals;r.forEach(function(t){t.positionAbsolute=j(t.position,n)}),t({nodeExtent:n,nodeInternals:new Map(r)})},reset:function(){return t(tc({},ta))}})})}},4104:function(t,e,n){"use strict";n.d(e,{_:function(){return a},u:function(){return d}});var r=n(7802),i=n(7294),o=n(1011),u=n(374);function a(t){return function(t){if(Array.isArray(t))return(0,r.J)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,r.K)(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s={zoomIn:function(){},zoomOut:function(){},zoomTo:function(t){},getZoom:function(){return 1}
1,setViewport:function(t){},getViewport:function(){return{x:0,y:0,zoom:1}},fitView:function(){},setCenter:function(t,e){},fitBounds:function(t){},project:function(t){return t},viewportInitialized:!1},c=function(t){return{d3Zoom:t.d3Zoom,d3Selection:t.d3Selection}},l=function(){var t=(0,r.u)(),e=(0,r.b)(c,u.Z),n=e.d3Zoom,a=e.d3Selection;return(0,i.useMemo)(function(){return a&&n?{zoomIn:function(t){return n.scaleBy((0,r.L)(a,null==t?void 0:t.duration),1.2)},zoomOut:function(t){return n.scaleBy((0,r.L)(a,null==t?void 0:t.duration),1/1.2)},zoomTo:function(t,e){return n.scaleTo((0,r.L)(a,null==e?void 0:e.duration),t)},getZoom:function(){return t.getState().transform[2]},setViewport:function(e,i){var u,s,c,l=(0,r._)(t.getState().transform,3),f=l[0],h=l[1],d=l[2],p=o.CR.translate(null!==(u=e.x)&&void 0!==u?u:f,null!==(s=e.y)&&void 0!==s?s:h).scale(null!==(c=e.zoom)&&void 0!==c?c:d);n.transform((0,r.L)(a,null==i?void 0:i.duration),p)},getViewport:function(){var e=(0,r._)(t.getState().transform,3);return{x:e[0],y:e[1],zoom:e[2]}},fitView:function(e){return(0,r.N)(t.getState,e)},setCenter:function(e,i,u){var s=t.getState(),c=s.width,l=s.height,f=s.maxZoom,h=void 0!==(null==u?void 0:u.zoom)?u.zoom:f,d=o.CR.translate(c/2-e*h,l/2-i*h).scale(h);n.transform((0,r.L)(a,null==u?void 0:u.duration),d)},fitBounds:function(e,i){var u,s=t.getState(),c=s.width,l=s.height,f=s.minZoom,h=s.maxZoom,d=(0,r.G)(e,c,l,f,h,null!==(u=null==i?void 0:i.padding)&&void 0!==u?u:.1),p=(0,r._)(d,3),v=p[0],g=p[1],y=p[2],m=o.CR.translate(v,g).scale(y);n.transform((0,r.L)(a,null==i?void 0:i.duration),m)},project:function(e){var n=t.getState(),i=n.transform,o=n.snapToGrid,u=n.snapGrid;return(0,r.p)(e,i,o,u)},viewportInitialized:!0}:s},[n,a])};function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach(function(e){(0,r.a)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function d(){var t=l(),e=(0,r.u)(),n=(0,i.useCallback)(function(){return Array.from(e.getState().nodeInternals.values()).map(function(t){return h({},t)})},[]),o=(0,i.useCallback)(function(t){return e.getState().nodeInternals.get(t)},[]),u=(0,i.useCallback)(function(){var t=e.getState().edges;return(void 0===t?[]:t).map(function(t){return h({},t)})},[]),s=(0,i.useCallback)(function(t){var n=e.getState().edges;return(void 0===n?[]:n).find(function(e){return e.id===t})},[]),c=(0,i.useCallback)(function(t){var n=e.getState(),r=n.nodeInternals,i=n.setNodes,o=n.hasDefaultNodes,u=n.onNodesChange,a=Array.from(r.values()),s="function"==typeof t?t(a):t;o?i(s):u&&u(0===s.length?a.map(function(t){return{type:"remove",id:t.id}}):s.map(function(t){return{item:t,type:"reset"}}))},[]),f=(0,i.useCallback)(function(t){var n=e.getState(),r=n.edges,i=void 0===r?[]:r,o=n.setEdges,u=n.hasDefaultEdges,a=n.onEdgesChange,s="function"==typeof t?t(i):t;u?o(s):a&&a(0===s.length?i.map(function(t){return{type:"remove",id:t.id}}):s.map(function(t){return{item:t,type:"reset"}}))},[]),d=(0,i.useCallback)(function(t){var n=Array.isArray(t)?t:[t],r=e.getState(),i=r.nodeInternals,o=r.setNodes,u=r.hasDefaultNodes,s=r.onNodesChange;u?o([].concat(Array.from(i.values()),a(n))):s&&s(n.map(function(t){return{item:t,type:"add"}}))},[]),p=(0,i.useCallback)(function(t){var n=Array.isArray(t)?t:[t],r=e.getState(),i=r.edges,o=r.setEdges,u=r.hasDefaultEdges,s=r.onEdgesChange;u?o([].concat(a(void 0===i?[]:i),a(n))):s&&s(n.map(function(t){return{item:t,type:"add"}}))},[]),v=(0,i.useCallback)(function(){var t=e.getState(),n=t.nodeInternals,i=t.edges,o=t.transform,u=Array.from(n.values()),a=(0,r._)(o,3),s=a[0],c=a[1],l=a[2];return{nodes:u.map(function(t){return h({},t)}),edges:(void 0===i?[]:i).map(function(t){return h({},t)}),viewport:{x:s,y:c,zoom:l}}},[]);return(0,i.useMemo)(function(){return h(h({},t),{},{getNodes:n,getNode:o,getEdges:u,getEdge:s,setNodes:c,setEdges:f,addNodes:d,addEdges:p,toObject:v})},[t,n,o,u,s,c,f,d,p,v])}},3250:function(t,e,n){"use strict";/** 2 * @license React 3 * use-sync-external-store-shim.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */ var r=n(7294),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,u=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(r){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),i=r[0].inst,l=r[1];return a(function(){i.value=n,i.getSnapshot=e,c(i)&&l({inst:i})},[t,n,e]),u(function(){return c(i)&&l({inst:i}),t(function(){c(i)&&l({inst:i})})},[t]),s(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},6742:function(t,e,n){"use strict";/** 10 * @license React 11 * use-sync-external-store-shim/with-selector.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */ var r=n(7294),i=n(1688),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},u=i.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,l=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,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 e=h.value;if(i(e,t))return a=e}return a=t}if(e=a,o(u,t))return e;var n=r(t);return void 0!==i&&i(e,n)?e:(u=t,a=n)}var u,a,s=!1,c=void 0===n?null:n;return[function(){return t(e())},null===c?void 0:function(){return t(c())}]},[e,n,r,i]);var d=u(t,f[0],f[1]);return s(function(){h.hasValue=!0,h.value=d},[d]),l(d),d}},1688:function(t,e,n){"use strict";
17t.exports=n(3250)},2798:function(t,e,n){"use strict";t.exports=n(6742)},374:function(t,e,n){"use strict";function r(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;let n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(e,n[r])||!Object.is(t[n[r]],e[n[r]]))return!1;return!0}n.d(e,{Z:function(){return r}})},5624:function(t,e,n){"use strict";n.d(e,{oR:function(){return u}});var r=n(7294),i=n(2798);let{useSyncExternalStoreWithSelector:o}=i;function u(t,e=t.getState,n){let i=o(t.subscribe,t.getState,t.getServerState||t.getState,e,n);return(0,r.useDebugValue)(i),i}},9284:function(t,e,n){"use strict";function r(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[n,r]of t)if(!Object.is(r,e.get(n)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let i of t)if(!e.has(i))return!1;return!0}let o=Object.keys(t);if(o.length!==Object.keys(e).length)return!1;for(let u=0;u<o.length;u++)if(!Object.prototype.hasOwnProperty.call(e,o[u])||!Object.is(t[o[u]],e[o[u]]))return!1;return!0}n.d(e,{X:function(){return r}})},4745:function(t,e,n){"use strict";n.d(e,{M:function(){return i}});let r=t=>{let e;let n=new Set,r=(t,r)=>{let i="function"==typeof t?t(e):t;if(!Object.is(i,e)){let o=e;e=(null!=r?r:"object"!=typeof i)?i:Object.assign({},e,i),n.forEach(t=>t(e,o))}},i=()=>e,o=t=>(n.add(t),()=>n.delete(t)),u=()=>{console.warn("[DEPRECATED] The destroy method will be unsupported in the future version. You should use unsubscribe function returned by subscribe. Everything will be garbage collected if store is garbage collected."),n.clear()},a={setState:r,getState:i,subscribe:o,destroy:u};return e=t(r,i,a),a},i=t=>t?r(t):r},5113:function(t,e,n){"use strict";n.d(e,{Z:function(){return function t(e){if("string"==typeof e||"number"==typeof e)return""+e;let n="";if(Array.isArray(e))for(let r=0,i;r<e.length;r++)""!==(i=t(e[r]))&&(n+=(n&&" ")+i);else for(let o in e)e[o]&&(n+=(n&&" ")+o);return n}}})},6057:function(t,e){"use strict";var n={value(){}};function r(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||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,e,r){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=n,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}i.prototype=r.prototype={constructor:i,on:function(t,e){var n,r=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),u=-1,a=i.length;if(arguments.length<2){for(;++u<a;)if((n=(t=i[u]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++u<a;)if(n=(t=i[u]).type)r[n]=o(r[n],t.name,e);else if(null==e)for(n in r)r[n]=o(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new i(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){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(e,n)}},e.Z=r},2487:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=n(6057),i=n(3838),o=n(6939),u=n(2718),a=n(9611),s=t=>()=>t;function c(t,{sourceEvent:e,subject:n,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:e,enumerable:!0,configurable:!0},subject:{value:n,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,e){return null==e?{x:t.x,y:t.y}:e}function d(){return navigator.maxTouchPoints||"ontouchstart"in this}function p(){var t,e,n,p,v=l,g=f,y=h,m=d,w={},b=(0,r.Z)("start","drag","end"),_=0,x=0;function O(t){t.on("mousedown.drag",S).filter(m).on("touchstart.drag",N).on("touchmove.drag",A,a.Q7).on("touchend.drag touchcancel.drag",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(r,o){if(!p&&v.call(this,r,o)){var s=M(this,g.call(this,r,o),r,o,"mouse");s&&((0,i.Z)(r.view).on("mousemove.drag",j,a.Dd).on("mouseup.drag",E,a.Dd),(0,u.Z)(r.view),(0,a.rG)(r),n=!1,t=r.clientX,e=r.clientY,s("start",r))}}function j(r){if((0,a.ZP)(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>x}w.mouse("drag",r)}function E(t){(0,i.Z)(t.view).on("mousemove.drag mouseup.drag",null),(0,u.D)(t.view,n),(0,a.ZP)(t),w.mouse("end",t)}function N(t,e){if(v.call(this,t,e)){var n,r,i=t.changedTouches,o=g.call(this,t,e),u=i.length;for(n=0;n<u;++n)(r=M(this,o,t,e,i[n].identifier,i[n]))&&((0,a.rG)(t),r("start",t,i[n]))}}function A(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=w[r[e].identifier])&&((0,a.ZP)(t),n("drag",t,r[e]))}function k(t){var e,n,r=t.changedTouches,i=r.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),e=0;e<i;++e)(n=w[r[e].identifier])&&((0,a.rG)(t),n("end",t,r[e]))}function M(t,e,n,r,i,u){var a,s,l,f=b.copy(),h=(0,o.Z)(u||n,e);if(null!=(l=y.call(t,new c("beforestart",{sourceEvent:n,target:O,identifier:i,active:_,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 n(u,d,p){var v,g=h;switch(u){case"start":w[i]=n,v=_++;break;case"end":delete w[i],--_;case"drag":h=(0,o.Z)(p||d,e),v=_}f.call(u,t,new c(u,{sourceEvent:d,subject:l,target:O,identifier:i,active:v,x:h[0]+a,y:h[1]+s,dx:h[0]-g[0],dy:h[1]-g[1],dispatch:f}),r)}}return O.filter=function(t){return arguments.length?(v="function"==typeof t?t:s(!!t),O):v},O.container=function(t){return arguments.length?(g="function"==typeof t?t:s(t),O):g},O.subject=function(t){return arguments.length?(y="function"==typeof t?t:s(t),O):y},O.touchable=function(t){return arguments.length?(m="function"==typeof t?t:s(!!t),O):m},O.on=function(){var t=b.on.apply(b,arguments);return t===b?O:t},O.clickDistance=function(t){return arguments.length?(x=(t=+t)*t,O):Math.sqrt(x)},O}c.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t}},2718:function(t,e,n){"use strict";n.d(e,{D:function(){return u},Z:function(){return o}});var r=n(3838),i=n(9611);function o(t){var e=t.document.documentElement,n=(0,r.Z)(t).on("dragstart.drag",i.ZP,i.Dd);"onselectstart"in e?n.on("selectstart.drag",i.ZP,i.Dd):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function u(t,e){var n=t.document.documentElement,o=(0,r.Z)(t).on("dragstart.drag",null);e&&(o.on("click.drag",i.ZP,i.Dd),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}},9611:function(t,e,n){"use strict";n.d(e,{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()}},4421:function(t,e,n){"use strict";function r(t){return function(){return this.matches(t)}}function i(t){return function(e){return e.matches(t)}}n.d(e,{P:function(){return i},Z:function(){return r}})},1663:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(1226);function i(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.Z.hasOwnProperty(e)?{space:r.Z[e],local:t}:t}},1226:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r="http://www.w3.org/1999/xhtml";e.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/"}},6939:function(t,e,n){"use strict";function r(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}n.d(e,{Z:function(){return r}})},3838:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(1680);function i(t){return"string"==typeof t?new r.Y1([[document.querySelector(t)]],[document.documentElement]):new r.Y1([[t]],r.Jz)}},1680:function(t,e,n){"use strict";n.d(e,{Y1:function(){return ti},ZP:function(){return tu},Jz:function(){return tr}});var r=n(3010),i=n(9701),o=n(4421),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,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function h(t,e,n,r,i,o){for(var u,a=0,s=e.length,c=o.length;a<c;++a)(u=e[a])?(u.__data__=o[a],r[a]=u):n[a]=new f(t,o[a]);for(;a<s;++a)(u=e[a])&&(i[a]=u)}function d(t,e,n,r,i,o,u){var a,s,c,l=new Map,h=e.length,d=o.length,p=Array(h);for(a=0;a<h;++a)(s=e[a])&&(p[a]=c=u.call(s,s.__data__,a,e)+"",l.has(c)?i[a]=s:l.set(c,s));for(a=0;a<d;++a)c=u.call(t,o[a],a,o)+"",(s=l.get(c))?(r[a]=s,s.__data__=o[a],l.delete(c)):n[a]=new f(t,o[a]);for(a=0;a<h;++a)(s=e[a])&&l.get(p[a])===s&&(i[a]=s)}function p(t){return t.__data__}function v(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}f.prototype={constructor:f,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var g=n(1663);function y(t){return function(){this.removeAttribute(t)}}function m(t){return function(){this.removeAttributeNS(t.space,t.local)}}function w(t,e){return function(){this.setAttribute(t,e)}}function b(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function x(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var O=n(2627);function S(t){return function(){delete this[t]}}function j(t,e){return function(){this[t]=e}}function E(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function N(t){return t.trim().split(/^|\s+/)}function A(t){return t.classList||new k(t)}function k(t){this._node=t,this._names=N(t.getAttribute("class")||"")}function M(t,e){for(var n=A(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function P(t,e){for(var n=A(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function z(t){return function(){M(this,t)}}function Z(t){return function(){P(this,t)}}function D(t,e){return function(){(e.apply(this,arguments)?M:P)(this,t)}}function C(){this.textContent=""}function I(t){return function(){this.textContent=t}}function T(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function V(){this.innerHTML=""}function $(t){return function(){this.innerHTML=t}}function H(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function R(){this.nextSibling&&this.parentNode.appendChild(this)}function B(){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 e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var L=n(1226);function Y(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===L.P&&e.documentElement.namespaceURI===L.P?e.createElement(t):e.createElementNS(n,t)}}function q(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function X(t){var e=(0,g.Z)(t);return(e.local?q:Y)(e)}function G(){return null}function U(){var t=this.parentNode;t&&t.removeChild(this)}function F(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function K(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function W(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function J(t,e,n){return function(){var r,i=this.__on,o=function(t){e.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=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}var Q=n(9920);function tt(t,e,n){var r=(0,Q.Z)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dis
17patchEvent(i)}function te(t,e){return function(){return tt(this,t,e)}}function tn(t,e){return function(){return tt(this,t,e.apply(this,arguments))}}var tr=[null];function ti(t,e){this._groups=t,this._parents=e}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 e=this._groups,n=e.length,i=Array(n),o=0;o<n;++o)for(var u,a,s=e[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 e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=(0,i.Z)(t);for(var n=this._groups,r=n.length,o=[],u=[],a=0;a<r;++a)for(var s,c=n[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 e;return this.select(null==t?a:(e="function"==typeof t?t:(0,o.P)(t),function(){return u.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?c:(e="function"==typeof t?t:(0,o.P)(t),function(){return s.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=(0,o.Z)(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var u,a=e[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,e){if(!arguments.length)return Array.from(this,p);var n=e?d:h,r=this._parents,i=this._groups;"function"!=typeof t&&(_=t,t=function(){return _});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],v=f.length,g="object"==typeof(b=t.call(l,l&&l.__data__,c,r))&&"length"in b?b:Array.from(b),y=g.length,m=a[c]=Array(y),w=u[c]=Array(y);n(l,f,m,w,s[c]=Array(v),g,e);for(var b,_,x,O,S=0,j=0;S<y;++S)if(x=m[S]){for(S>=j&&(j=S+1);!(O=w[j])&&++j<y;);x._next=O||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,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,u=Math.min(i,o),a=Array(i),s=0;s<u;++s)for(var c,l=n[s],f=r[s],h=l.length,d=a[s]=Array(h),p=0;p<h;++p)(c=l[p]||f[p])&&(d[p]=c);for(;s<i;++s)a[s]=n[s];return new ti(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],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 e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=v);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var u,a=n[o],s=a.length,c=i[o]=Array(s),l=0;l<s;++l)(u=a[l])&&(c[l]=u);c.sort(e)}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,e=0,n=t.length;e<n;++e)for(var r=t[e],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 e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,e){var n=(0,g.Z)(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?m:y:"function"==typeof e?n.local?x:_:n.local?b:w)(n,e))},style:O.Z,property:function(t,e){return arguments.length>1?this.each((null==e?S:"function"==typeof e?E:j)(t,e)):this.node()[t]},classed:function(t,e){var n=N(t+"");
17if(arguments.length<2){for(var r=A(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?D:e?z:Z)(n,e))},text:function(t){return arguments.length?this.each(null==t?C:("function"==typeof t?T:I)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?V:("function"==typeof t?H:$)(t)):this.node().innerHTML},raise:function(){return this.each(R)},lower:function(){return this.each(B)},append:function(t){var e="function"==typeof t?t:X(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:X(t),i=null==e?G:"function"==typeof e?e:(0,r.Z)(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(U)},clone:function(t){return this.select(t?K:F)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),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=e?J:W;r<u;++r)this.each(a(o[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?tn:te)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,u=i.length;o<u;++o)(r=i[o])&&(yield r)}};var tu=to},2627:function(t,e,n){"use strict";n.d(e,{S:function(){return s},Z:function(){return a}});var r=n(9920);function i(t){return function(){this.style.removeProperty(t)}}function o(t,e,n){return function(){this.style.setProperty(t,e,n)}}function u(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function a(t,e,n){return arguments.length>1?this.each((null==e?i:"function"==typeof e?u:o)(t,e,null==n?"":n)):s(this.node(),t)}function s(t,e){return t.style.getPropertyValue(e)||(0,r.Z)(t).getComputedStyle(t,null).getPropertyValue(e)}},3010:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}n.d(e,{Z:function(){return i}})},9701:function(t,e,n){"use strict";function r(){return[]}function i(t){return null==t?r:function(){return this.querySelectorAll(t)}}n.d(e,{Z:function(){return i}})},9920:function(t,e,n){"use strict";function r(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}n.d(e,{Z:function(){return r}})},1011:function(t,e,n){"use strict";n.d(e,{sP:function(){return ei},CR:function(){return t4}});var r,i=n(6057),o=n(2718);function u(t){return((t=Math.exp(t))+1/t)/2}var a,s,c=function t(e,n,r){function i(t,i){var o,a,s=t[0],c=t[1],l=t[2],f=i[0],h=i[1],d=i[2],p=f-s,v=h-c,g=p*p+v*v;if(g<1e-12)a=Math.log(d/l)/e,o=function(t){return[s+t*p,c+t*v,l*Math.exp(e*t*a)]};else{var y=Math.sqrt(g),m=(d*d-l*l+r*g)/(2*l*n*y),w=(d*d-l*l-r*g)/(2*d*n*y),b=Math.log(Math.sqrt(m*m+1)-m);a=(Math.log(Math.sqrt(w*w+1)-w)-b)/e,o=function(t){var r,i,o=t*a,f=u(b),h=l/(n*y)*(f*(((r=Math.exp(2*(r=e*o+b)))-1)/(r+1))-((i=Math.exp(i=b))-1/i)/2);return[s+h*p,c+h*v,l*f/u(e*o+b)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4),l=n(3838),f=n(6939),h=n(1680),d=0,p=0,v=0,g=0,y=0,m=0,w="object"==typeof performance&&performance.now?performance:Date,b="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function _(){return y||(b(x),y=w.now()+m)}function x(){y=0}function O(){this._call=this._time=this._next=null}function S(t,e,n){var r=new O;return r.restart(t,e,n),r}function j(){y=(g=w.now())+m,d=p=0;try{!function(){_(),++d;for(var t,e=a;e;)(t=y-e._time)>=0&&e._call.call(void 0,t),e=e._next;--d}()}finally{d=0,function(){for(var t,e,n=a,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:a=e);s=t,N(r)}(),y=0}}function E(){var t=w.now(),e=t-g;e>1e3&&(m-=e,g=t)}function N(t){!d&&(p&&(p=clearTimeout(p)),t-y>24?(t<1/0&&(p=setTimeout(j,t-w.now()-m)),v&&(v=clearInterval(v))):(v||(g=w.now(),v=setInterval(E,
171e3)),d=1,b(j)))}function A(t,e,n){var r=new O;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}O.prototype=S.prototype={constructor:O,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?_():+n)+(null==e?0:+e),this._next||s===this||(s?s._next=this:a=this,s=this),this._call=t,this._time=n,N()},stop:function(){this._call&&(this._call=null,this._time=1/0,N())}};var k=(0,i.Z)("start","end","cancel","interrupt"),M=[];function P(t,e,n,r,i,o){var u=t.__transition;if(u){if(n in u)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(s){var c,l,f,h;if(1!==n.state)return a();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return A(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[c])}if(A(function(){3===n.state&&(n.state=4,n.timer.restart(u,n.delay,n.time),u(s))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(c=0,n.state=3,r=Array(f=n.tween.length),l=-1;c<f;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function u(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=S(function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:k,tween:M,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function z(t,e){var n=D(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function Z(t,e){var n=D(t,e);if(n.state>3)throw Error("too late; already running");return n}function D(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function C(t,e){var n,r,i,o=t.__transition,u=!0;if(o){for(i in e=null==e?null:e+"",o){if((n=o[i]).name!==e){u=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]}u&&delete t.__transition}}function I(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var T=180/Math.PI,V={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $(t,e,n,r,i,o){var u,a,s;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,s/=a),t*r<e*n&&(t=-t,e=-e,s=-s,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*T,skewX:Math.atan(s)*T,scaleX:u,scaleY:a}}function H(t,e,n,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,e,null,n);a.push({i:s-4,x:I(t,i)},{i:s-2,x:I(r,o)})}else(i||o)&&u.push("translate("+i+e+o+n)}(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:I(a,s)})):s&&f.push(i(f)+"rotate("+s+r),(c=o.skewX)!==(l=u.skewX)?h.push({i:f.push(i(f)+"skewX(",
17null,r)-2,x:I(c,l)}):l&&f.push(i(f)+"skewX("+l+r),!function(t,e,n,r,o,u){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:I(t,n)},{i:a-2,x:I(e,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,f,h),o=u=null,function(t){for(var e,n=-1,r=h.length;++n<r;)f[(e=h[n]).i]=e.x(t);return f.join("")}}}var R=H(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?V:$(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),B=H(function(t){return null==t?V:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",t),t=r.transform.baseVal.consolidate())?$((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):V},", ",")",")"),L=n(1663);function Y(t,e){var n,r;return function(){var i=Z(this,t),o=i.tween;if(o!==n){r=n=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===e){(r=r.slice()).splice(u,1);break}}i.tween=r}}function q(t,e,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=Z(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:e,value:n},s=0,c=i.length;s<c;++s)if(i[s].name===e){i[s]=a;break}s===c&&i.push(a)}o.tween=i}}function X(t,e,n){var r=t._id;return t.each(function(){var t=Z(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return D(t,r).value[e]}}function G(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function U(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function F(){}var K="\\s*([+-]?\\d+)\\s*",W="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",J="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,tt=RegExp(`^rgb\\(${K},${K},${K}\\)$`),te=RegExp(`^rgb\\(${J},${J},${J}\\)$`),tn=RegExp(`^rgba\\(${K},${K},${K},${W}\\)$`),tr=RegExp(`^rgba\\(${J},${J},${J},${W}\\)$`),ti=RegExp(`^hsl\\(${W},${J},${J}\\)$`),to=RegExp(`^hsla\\(${W},${J},${J},${W}\\)$`),tu={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 ta(){return this.rgb().formatHex()}function ts(){return this.rgb().formatRgb()}function tc(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Q.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?tl(e):3===n?
17new td(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?tf(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?tf(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=tt.exec(t))?new td(e[1],e[2],e[3],1):(e=te.exec(t))?new td(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tn.exec(t))?tf(e[1],e[2],e[3],e[4]):(e=tr.exec(t))?tf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ti.exec(t))?tw(e[1],e[2]/100,e[3]/100,1):(e=to.exec(t))?tw(e[1],e[2]/100,e[3]/100,e[4]):tu.hasOwnProperty(t)?tl(tu[t]):"transparent"===t?new td(NaN,NaN,NaN,0):null}function tl(t){return new td(t>>16&255,t>>8&255,255&t,1)}function tf(t,e,n,r){return r<=0&&(t=e=n=NaN),new td(t,e,n,r)}function th(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof F||(i=tc(i)),i)?(i=i.rgb(),new td(i.r,i.g,i.b,i.opacity)):new td:new td(t,e,n,null==r?1:r)}function td(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function tp(){return`#${tm(this.r)}${tm(this.g)}${tm(this.b)}`}function tv(){let t=tg(this.opacity);return`${1===t?"rgb(":"rgba("}${ty(this.r)}, ${ty(this.g)}, ${ty(this.b)}${1===t?")":`, ${t})`}`}function tg(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ty(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function tm(t){return((t=ty(t))<16?"0":"")+t.toString(16)}function tw(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new t_(t,e,n,r)}function tb(t){if(t instanceof t_)return new t_(t.h,t.s,t.l,t.opacity);if(t instanceof F||(t=tc(t)),!t)return new t_;if(t instanceof t_)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),u=NaN,a=o-i,s=(o+i)/2;return a?(u=e===o?(n-r)/a+(n<r)*6:n===o?(r-e)/a+2:(e-n)/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,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function tx(t){return(t=(t||0)%360)<0?t+360:t}function tO(t){return Math.max(0,Math.min(1,t||0))}function tS(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function tj(t,e,n,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*e+(4-6*o+3*u)*n+(1+3*t+3*o-3*u)*r+u*i)/6}G(F,tc,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ta,formatHex:ta,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return tb(this).formatHsl()},formatRgb:ts,toString:ts}),G(td,th,U(F,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new td(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new td(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new td(ty(this.r),ty(this.g),ty(this.b),tg(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:tp,formatHex:tp,formatHex8:function(){return`#${tm(this.r)}${tm(this.g)}${tm(this.b)}${tm((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tv,toString:tv})),G(t_,function(t,e,n,r){return 1==arguments.length?tb(t):new t_(t,e,n,null==r?1:r)},U(F,{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,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new td(tS(t>=240?t-240:t+120,i,r),tS(t,i,r),tS(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new t_(tx(this.h),tO(this.s),tO(this.l),tg(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=tg(this.opacity);return`${1===t?"hsl(":"hsla("}${tx(this.h)}, ${100*tO(this.s)}%, ${100*tO(this.l)}%${1===t?")":`, ${t})`}`}}));var tE=t=>()=>t;function tN(t,e){var n=e-t;return n?function(e){return t+e*n}:tE(isNaN(t)?e:t)}var tA=function t(e){var n,r=1==(n=+(n=e))?tN:function(t,e){var r,i,o;return e-t?(r=t,i=e,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(t){return Math.pow(r+t*i,o)}):tE(isNaN(t)?e:t)};function i(t,e){var n=r((t=th(t)).r,(e=th(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),u=tN(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=u(e),t+""}}return i.gamma=t,i}(1);function tk(t){return function(e){var n,r,i=e.length,o=Array(i),u=Array(i),a=Array(i);for(n=0;n<i;++n)r=th(e[n]),o[n]=r.r||0,u[n]=r.g||0,a[n]=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+""}}}tk(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<e-1?t[r+2]:2*o-i;return tj((n-r/e)*e,u,i,o,a)}}),tk(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],u=t[(r+1)%e],a=t[(r+2)%e];return tj((n-r/e)*e,i,o,u,a)}});var tM=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tP=RegExp(tM.source,"g");function tz(t,e){var n,r,i,o,u,a=tM.lastIndex=tP.lastIndex=0,s=-1,c=[],l=[];for(t+="",e+="";(i=tM.exec(t))&&(o=tP.exec(e));)(u=o.index)>
17a&&(u=e.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:I(i,o)})),a=tP.lastIndex;return a<e.length&&(u=e.slice(a),c[s]?c[s]+=u:c[++s]=u),c.length<2?l[0]?(n=l[0].x,function(t){return n(t)+""}):(r=e,function(){return r}):(e=l.length,function(t){for(var n,r=0;r<e;++r)c[(n=l[r]).i]=n.x(t);return c.join("")})}function tZ(t,e){var n;return("number"==typeof e?I:e instanceof tc?tA:(n=tc(e))?(e=n,tA):tz)(t,e)}function tD(t){return function(){this.removeAttribute(t)}}function tC(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tI(t,e,n){var r,i,o=n+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=e(r=u,n)}}function tT(t,e,n){var r,i,o=n+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=e(r=u,n)}}function tV(t,e,n){var r,i,o;return function(){var u,a,s=n(this);return null==s?void this.removeAttribute(t):(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=e(r=u,s))}}function t$(t,e,n){var r,i,o;return function(){var u,a,s=n(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=e(r=u,s))}}function tH(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}),n}return i._value=e,i}function tR(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttribute(t,i.call(this,e))}),n}return i._value=e,i}function tB(t,e){return function(){z(this,t).delay=+e.apply(this,arguments)}}function tL(t,e){return e=+e,function(){z(this,t).delay=e}}function tY(t,e){return function(){Z(this,t).duration=+e.apply(this,arguments)}}function tq(t,e){return e=+e,function(){Z(this,t).duration=e}}var tX=n(4421),tG=n(3010),tU=n(9701),tF=h.ZP.prototype.constructor,tK=n(2627);function tW(t){return function(){this.style.removeProperty(t)}}var tJ=0;function tQ(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var t0=h.ZP.prototype;tQ.prototype=(function(t){return(0,h.ZP)().transition(t)}).prototype={constructor:tQ,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,tG.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,P(f[h],e,n,h,f,D(a,n)));return new tQ(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=(0,tU.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,d=t.call(s,s.__data__,f,c),p=D(s,n),v=0,g=d.length;v<g;++v)(h=d[v])&&P(h,e,n,v,d,p);o.push(d),u.push(s)}return new tQ(o,u,e,n)},selectChild:t0.selectChild,selectChildren:t0.selectChildren,filter:function(t){"function"!=typeof t&&(t=(0,tX.Z)(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,u=e[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 e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),u=Array(r),a=0;a<o;++a)for(var s,c=e[a],l=n[a],f=c.length,h=u[a]=Array(f),d=0;d<f;++d)(s=c[d]||l[d])&&(h[d]=s);for(;a<r;++a)u[a]=e[a];return new tQ(u,this._parents,this._name,this._id)},selection:function(){return new tF(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++tJ,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=D(u,e);P(u,t,n,c,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new tQ(r,this._parents,t,n)},call:t0.call,nodes:t0.nodes,node:t0.node,size:t0.size,empty:t0.empty,each:t0.each,on:function(t,e){var n,r,i,o=this._id;return arguments.length<2?D(this.node(),o).on.on(t):this.each((i=(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>
17=0&&(t=t.slice(0,e)),!t||"start"===t})?z:Z,function(){var u=i(this,o),a=u.on;a!==n&&(r=(n=a).copy()).on(t,e),u.on=r}))},attr:function(t,e){var n=(0,L.Z)(t),r="transform"===n?B:tZ;return this.attrTween(t,"function"==typeof e?(n.local?t$:tV)(n,r,X(this,"attr."+t,e)):null==e?(n.local?tC:tD)(n):(n.local?tT:tI)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=(0,L.Z)(t);return this.tween(n,(r.local?tH:tR)(r,e))},style:function(t,e,n){var r,i,o,u,a,s,c,l,f,h,d,p,v,g,y,m,w,b,_,x,O,S="transform"==(t+="")?R:tZ;return null==e?this.styleTween(t,(r=t,function(){var t=(0,tK.S)(this,r),e=(this.style.removeProperty(r),(0,tK.S)(this,r));return t===e?null:t===i&&e===o?u:u=S(i=t,o=e)})).on("end.style."+t,tW(t)):"function"==typeof e?this.styleTween(t,(a=t,s=X(this,"style."+t,e),function(){var t=(0,tK.S)(this,a),e=s(this),n=e+"";return null==e&&(this.style.removeProperty(a),n=e=(0,tK.S)(this,a)),t===n?null:t===c&&n===l?f:(l=n,f=S(c=t,e))})).each((h=this._id,w="end."+(m="style."+(d=t)),function(){var t=Z(this,h),e=t.on,n=null==t.value[m]?y||(y=tW(d)):void 0;(e!==p||g!==n)&&(v=(p=e).copy()).on(w,g=n),t.on=v})):this.styleTween(t,(b=t,O=e+"",function(){var t=(0,tK.S)(this,b);return t===O?null:t===_?x:x=S(_=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e){this.style.setProperty(t,o.call(this,e),n)}),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=X(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=D(this.node(),n).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?Y:q)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?tB:tL)(e,t)):D(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?tY:tq)(e,t)):D(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){Z(this,t).ease=e}}(e,t)):D(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();Z(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};n.each(function(){var n=Z(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(s)),n.on=e}),0===i&&o()})},[Symbol.iterator]:t0[Symbol.iterator]};var t1={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};h.ZP.prototype.interrupt=function(t){return this.each(function(){C(this,t)})},h.ZP.prototype.transition=function(t){var e,n;t instanceof tQ?(e=t._id,t=t._name):(e=++tJ,(n=t1).time=_(),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,e,c,a,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(u,e));return new tQ(r,this._parents,t,e)};var t2=t=>()=>t;function t3(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function t5(t,e,n){this.k=t,this.x=e,this.y=n}t5.prototype={constructor:t5,scale:function(t){return 1===t?this:new t5(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new t5(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var t4=new t5(1,0,0);function t6(t){t.stopImmediatePropagation()}function t7(t){t.preventDefault(),t.stopImmediatePropagation()}function t8(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function t9(){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 et(){return this.__zoom||t4}function ee(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?
171:.002)*(t.ctrlKey?10:1)}function en(){return navigator.maxTouchPoints||"ontouchstart"in this}function er(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],u=t.invertY(e[1][1])-n[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 ei(){var t,e,n,r=t8,u=t9,a=er,s=ee,h=en,d=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],v=250,g=c,y=(0,i.Z)("start","zoom","end"),m=0,w=10;function b(t){t.property("__zoom",et).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",k).filter(h).on("touchstart.zoom",M).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(t,e){return(e=Math.max(d[0],Math.min(d[1],e)))===t.k?t:new t5(e,t.x,t.y)}function x(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new t5(t.k,r,i)}function O(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function S(t,e,n,r){t.on("start.zoom",function(){j(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,i=j(this,t).event(r),o=u.apply(this,t),a=null==n?O(o):"function"==typeof n?n.apply(this,t):n,s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),c=this.__zoom,l="function"==typeof e?e.apply(this,t):e,f=g(c.invert(a).concat(s/c.k),l.invert(a).concat(s/l.k));return function(t){if(1===t)t=l;else{var e=f(t),n=s/e[2];t=new t5(n,a[0]-e[0]*n,a[1]-e[1]*n)}i.zoom(null,t)}})}function j(t,e,n){return!n&&t.__zooming||new E(t,e)}function E(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=u.apply(t,e),this.taps=0}function N(t,...e){if(r.apply(this,arguments)){var n=j(this,e).event(t),i=this.__zoom,o=Math.max(d[0],Math.min(d[1],i.k*Math.pow(2,s.apply(this,arguments)))),u=(0,f.Z)(t);if(n.wheel)(n.mouse[0][0]!==u[0]||n.mouse[0][1]!==u[1])&&(n.mouse[1]=i.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[u,i.invert(u)],C(this),n.start()}t7(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",a(x(_(i,o),n.mouse[0],n.mouse[1]),n.extent,p))}}function A(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,u=j(this,e,!0).event(t),s=(0,l.Z)(t.view).on("mousemove.zoom",function(t){if(t7(t),!u.moved){var e=t.clientX-h,n=t.clientY-d;u.moved=e*e+n*n>m}u.event(t).zoom("mouse",a(x(u.that.__zoom,u.mouse[0]=(0,f.Z)(t,i),u.mouse[1]),u.extent,p))},!0).on("mouseup.zoom",function(t){s.on("mousemove.zoom mouseup.zoom",null),(0,o.D)(t.view,u.moved),t7(t),u.event(t).end()},!0),c=(0,f.Z)(t,i),h=t.clientX,d=t.clientY;(0,o.Z)(t.view),t6(t),u.mouse=[c,this.__zoom.invert(c)],C(this),u.start()}}function k(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,i=(0,f.Z)(t.changedTouches?t.changedTouches[0]:t,this),o=n.invert(i),s=n.k*(t.shiftKey?.5:2),c=a(x(_(n,s),i,o),u.apply(this,e),p);t7(t),v>0?(0,l.Z)(this).transition().duration(v).call(S,c,i,t):(0,l.Z)(this).call(b.transform,c,i,t)}}function M(n,...i){if(r.apply(this,arguments)){var o,u,a,s,c=n.touches,l=c.length,h=j(this,i,n.changedTouches.length===l).event(n);for(t6(n),u=0;u<l;++u)a=c[u],s=[s=(0,f.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&&(e=s[0],t=setTimeout(function(){t=null},500)),C(this),h.start())}}function P(t,...e){if(this.__zooming){var n,r,i,o,u=j(this,e).event(t),s=t.changedTouches,c=s.length;for(t7(t),n=0;n<c;++n)r=s[n],i=(0,f.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 l=u.touch0[0],h=u.touch0[1],d=u.touch1[0],v=u.touch1[1],g=(g=d[0]-l[0])*g+(g=d[1]-l[1])*g,y=(y=v[0]-h[0])*y+(y=v[1]-h[1])*y;r=_(r,Math.sqrt(g/y)),i=[(l[0]+d[0])/2,(l[1]+d[1])/2],o=[(h[0]+v[0])/2,(h[1]+v[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],o=u.touch0[1]}u.zoom("touch",a(x(r,i,o),u.extent,p))}}function z(t,...r){if(this.__zooming){var i,o,u=j(this,r).event(t),a=t.changedTouches,s=a.length;for(t6(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<s;++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,f.Z)(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<w)){var c=(0,l.Z)(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return b.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",et),t!==i?S(t,e,n,r):i.interrupt().each(function(){j(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},b.scaleBy=function(t,e,n,r){b.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n},n,r)},b.scaleTo=function(t,e,n,r){b.transform(t,function(){var t=u.apply(this,arguments),r=this.__zoom,i=null==n?O(t):"function"==typeof n?n.apply(this,arguments):n,o=r.invert(i),s="function"==typeof e?e.apply(this,arguments):e;return a(x(_(r,s),i,o),t,p)},n,r)},b.translateBy=function(t,e,n,r){b.transform(t,function(){return a(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),u.apply(this,arguments),p)},null,r)},b.translateTo=function(t,e,n,r,i){b.transform(t,function(){var t=u.apply(this,arguments),i=this.__zoom,o=null==r?O(t):"function"==typeof r?r.apply(this,arguments):r;return a(t4.translate(o[0],o[1]).scale(i.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,p)},r,i)},E.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit
vendor: 1,591 bytes, line 17
17("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=(0,l.Z)(this.that).datum();y.call(t,this.that,new t3(t,{sourceEvent:this.sourceEvent,target:b,type:t,transform:this.that.__zoom,dispatch:y}),e)}},b.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:t2(+t),b):s},b.filter=function(t){return arguments.length?(r="function"==typeof t?t:t2(!!t),b):r},b.touchable=function(t){return arguments.length?(h="function"==typeof t?t:t2(!!t),b):h},b.extent=function(t){return arguments.length?(u="function"==typeof t?t:t2([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),b):u},b.scaleExtent=function(t){return arguments.length?(d[0]=+t[0],d[1]=+t[1],b):[d[0],d[1]]},b.translateExtent=function(t){return arguments.length?(p[0][0]=+t[0][0],p[1][0]=+t[1][0],p[0][1]=+t[0][1],p[1][1]=+t[1][1],b):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},b.constrain=function(t){return arguments.length?(a=t,b):a},b.duration=function(t){return arguments.length?(v=+t,b):v},b.interpolate=function(t){return arguments.length?(g=t,b):g},b.on=function(){var t=y.on.apply(y,arguments);return t===y?b:t},b.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,b):Math.sqrt(m)},b.tapDistance=function(t){return arguments.length?(w=+t,b):w},b}t5.prototype}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.