@moderneinc/react-charts 1.2.0-next.932db3 → 1.2.0-next.9c0146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,42 +1,42 @@
1
- "use strict";var hk=Object.defineProperty;var pk=(e,t,r)=>t in e?hk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Bo=(e,t,r)=>pk(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react/jsx-runtime"),tt=require("@mui/material"),O=require("react"),WO=require("@mui/icons-material");function dk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const qr=dk(O);function mk(e){return e}var gf=1,vf=2,Jm=3,es=4,L0=1e-6;function yk(e){return"translate("+e+",0)"}function gk(e){return"translate(0,"+e+")"}function vk(e){return t=>+e(t)}function bk(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function _k(){return!this.__axis}function HO(e,t){var r=[],n=null,i=null,a=6,o=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===gf||e===es?-1:1,c=e===es||e===vf?"x":"y",f=e===gf||e===Jm?yk:gk;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,r):mk),d=Math.max(a,0)+s,v=t.range(),w=+v[0]+l,b=+v[v.length-1]+l,_=(t.bandwidth?bk:vk)(t.copy(),l),g=p.selection?p.selection():p,x=g.selectAll(".domain").data([null]),S=g.selectAll(".tick").data(y,t).order(),A=S.exit(),T=S.enter().append("g").attr("class","tick"),C=S.select("line"),P=S.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(T),C=C.merge(T.append("line").attr("stroke","currentColor").attr(c+"2",u*a)),P=P.merge(T.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",e===gf?"0em":e===Jm?"0.71em":"0.32em")),p!==g&&(x=x.transition(p),S=S.transition(p),C=C.transition(p),P=P.transition(p),A=A.transition(p).attr("opacity",L0).attr("transform",function(E){return isFinite(E=_(E))?f(E+l):this.getAttribute("transform")}),T.attr("opacity",L0).attr("transform",function(E){var k=this.parentNode.__axis;return f((k&&isFinite(k=k(E))?k:_(E))+l)})),A.remove(),x.attr("d",e===es||e===vf?o?"M"+u*o+","+w+"H"+l+"V"+b+"H"+u*o:"M"+l+","+w+"V"+b:o?"M"+w+","+u*o+"V"+l+"H"+b+"V"+u*o:"M"+w+","+l+"H"+b),S.attr("opacity",1).attr("transform",function(E){return f(_(E)+l)}),C.attr(c+"2",u*a),P.attr(c,u*d).text(m),g.filter(_k).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===vf?"start":e===es?"end":"middle"),g.each(function(){this.__axis=_})}return h.scale=function(p){return arguments.length?(t=p,h):t},h.ticks=function(){return r=Array.from(arguments),h},h.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),h):r.slice()},h.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),h):n&&n.slice()},h.tickFormat=function(p){return arguments.length?(i=p,h):i},h.tickSize=function(p){return arguments.length?(a=o=+p,h):a},h.tickSizeInner=function(p){return arguments.length?(a=+p,h):a},h.tickSizeOuter=function(p){return arguments.length?(o=+p,h):o},h.tickPadding=function(p){return arguments.length?(s=+p,h):s},h.offset=function(p){return arguments.length?(l=+p,h):l},h}function Os(e){return HO(Jm,e)}function Ts(e){return HO(es,e)}var xk={value:()=>{}};function Jg(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new ru(r)}function ru(e){this._=e}function wk(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}ru.prototype=Jg.prototype={constructor:ru,on:function(e,t){var r=this._,n=wk(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=Sk(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=n[a]).type)r[i]=B0(r[i],e.name,t);else if(t==null)for(i in r)r[i]=B0(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new ru(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function Sk(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function B0(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=xk,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var Qm="http://www.w3.org/1999/xhtml";const q0={svg:"http://www.w3.org/2000/svg",xhtml:Qm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),q0.hasOwnProperty(t)?{space:q0[t],local:e}:e}function Ak(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Qm&&t.documentElement.namespaceURI===Qm?t.createElement(e):t.createElementNS(r,e)}}function Ok(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function GO(e){var t=xc(e);return(t.local?Ok:Ak)(t)}function Tk(){}function Qg(e){return e==null?Tk:function(){return this.querySelector(e)}}function Pk(e){typeof e!="function"&&(e=Qg(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=new Array(o),l,u,c=0;c<o;++c)(l=a[c])&&(u=e.call(l,l.__data__,c,a))&&("__data__"in l&&(u.__data__=l.__data__),s[c]=u);return new Ar(n,this._parents)}function Ek(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ck(){return[]}function KO(e){return e==null?Ck:function(){return this.querySelectorAll(e)}}function Mk(e){return function(){return Ek(e.apply(this,arguments))}}function kk(e){typeof e=="function"?e=Mk(e):e=KO(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var o=t[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(n.push(e.call(l,l.__data__,u,o)),i.push(l));return new Ar(n,i)}function YO(e){return function(){return this.matches(e)}}function XO(e){return function(t){return t.matches(e)}}var $k=Array.prototype.find;function jk(e){return function(){return $k.call(this.children,e)}}function Rk(){return this.firstElementChild}function Dk(e){return this.select(e==null?Rk:jk(typeof e=="function"?e:XO(e)))}var Ik=Array.prototype.filter;function Nk(){return Array.from(this.children)}function Lk(e){return function(){return Ik.call(this.children,e)}}function Bk(e){return this.selectAll(e==null?Nk:Lk(typeof e=="function"?e:XO(e)))}function qk(e){typeof e!="function"&&(e=YO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Ar(n,this._parents)}function VO(e){return new Array(e.length)}function Fk(){return new Ar(this._enter||this._groups.map(VO),this._parents)}function uu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}uu.prototype={constructor:uu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function zk(e){return function(){return e}}function Uk(e,t,r,n,i,a){for(var o=0,s,l=t.length,u=a.length;o<u;++o)(s=t[o])?(s.__data__=a[o],n[o]=s):r[o]=new uu(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function Wk(e,t,r,n,i,a,o){var s,l,u=new Map,c=t.length,f=a.length,h=new Array(c),p;for(s=0;s<c;++s)(l=t[s])&&(h[s]=p=o.call(l,l.__data__,s,t)+"",u.has(p)?i[s]=l:u.set(p,l));for(s=0;s<f;++s)p=o.call(e,a[s],s,a)+"",(l=u.get(p))?(n[s]=l,l.__data__=a[s],u.delete(p)):r[s]=new uu(e,a[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(h[s])===l&&(i[s]=l)}function Hk(e){return e.__data__}function Gk(e,t){if(!arguments.length)return Array.from(this,Hk);var r=t?Wk:Uk,n=this._parents,i=this._groups;typeof e!="function"&&(e=zk(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),u=0;u<a;++u){var c=n[u],f=i[u],h=f.length,p=Kk(e.call(c,c&&c.__data__,u,n)),y=p.length,m=s[u]=new Array(y),d=o[u]=new Array(y),v=l[u]=new Array(h);r(c,f,m,d,v,p,t);for(var w=0,b=0,_,g;w<y;++w)if(_=m[w]){for(w>=b&&(b=w+1);!(g=d[b])&&++b<y;);_._next=g||null}}return o=new Ar(o,n),o._enter=s,o._exit=l,o}function Kk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Yk(){return new Ar(this._exit||this._groups.map(VO),this._parents)}function Xk(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function Vk(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var u=r[l],c=n[l],f=u.length,h=s[l]=new Array(f),p,y=0;y<f;++y)(p=u[y]||c[y])&&(h[y]=p);for(;l<i;++l)s[l]=r[l];return new Ar(s,this._parents)}function Zk(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,a=n[i],o;--i>=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Jk(e){e||(e=Qk);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o=r[a],s=o.length,l=i[a]=new Array(s),u,c=0;c<s;++c)(u=o[c])&&(l[c]=u);l.sort(t)}return new Ar(i,this._parents).order()}function Qk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function t2(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function e2(){return Array.from(this)}function r2(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null}function n2(){let e=0;for(const t of this)++e;return e}function i2(){return!this.node()}function a2(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function o2(e){return function(){this.removeAttribute(e)}}function s2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function l2(e,t){return function(){this.setAttribute(e,t)}}function u2(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function c2(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function f2(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function h2(e,t){var r=xc(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?s2:o2:typeof t=="function"?r.local?f2:c2:r.local?u2:l2)(r,t))}function ZO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function p2(e){return function(){this.style.removeProperty(e)}}function d2(e,t,r){return function(){this.style.setProperty(e,t,r)}}function m2(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function y2(e,t,r){return arguments.length>1?this.each((t==null?p2:typeof t=="function"?m2:d2)(e,t,r??"")):Ua(this.node(),e)}function Ua(e,t){return e.style.getPropertyValue(t)||ZO(e).getComputedStyle(e,null).getPropertyValue(t)}function g2(e){return function(){delete this[e]}}function v2(e,t){return function(){this[e]=t}}function b2(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function _2(e,t){return arguments.length>1?this.each((t==null?g2:typeof t=="function"?b2:v2)(e,t)):this.node()[e]}function JO(e){return e.trim().split(/^|\s+/)}function tv(e){return e.classList||new QO(e)}function QO(e){this._node=e,this._names=JO(e.getAttribute("class")||"")}QO.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tT(e,t){for(var r=tv(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function eT(e,t){for(var r=tv(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function x2(e){return function(){tT(this,e)}}function w2(e){return function(){eT(this,e)}}function S2(e,t){return function(){(t.apply(this,arguments)?tT:eT)(this,e)}}function A2(e,t){var r=JO(e+"");if(arguments.length<2){for(var n=tv(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?S2:t?x2:w2)(r,t))}function O2(){this.textContent=""}function T2(e){return function(){this.textContent=e}}function P2(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function E2(e){return arguments.length?this.each(e==null?O2:(typeof e=="function"?P2:T2)(e)):this.node().textContent}function C2(){this.innerHTML=""}function M2(e){return function(){this.innerHTML=e}}function k2(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function $2(e){return arguments.length?this.each(e==null?C2:(typeof e=="function"?k2:M2)(e)):this.node().innerHTML}function j2(){this.nextSibling&&this.parentNode.appendChild(this)}function R2(){return this.each(j2)}function D2(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function I2(){return this.each(D2)}function N2(e){var t=typeof e=="function"?e:GO(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function L2(){return null}function B2(e,t){var r=typeof e=="function"?e:GO(e),n=t==null?L2:typeof t=="function"?t:Qg(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function q2(){var e=this.parentNode;e&&e.removeChild(this)}function F2(){return this.each(q2)}function z2(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function U2(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W2(e){return this.select(e?U2:z2)}function H2(e){return arguments.length?this.property("__data__",e):this.node().__data__}function G2(e){return function(t){e.call(this,t,this.__data__)}}function K2(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function Y2(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function X2(e,t,r){return function(){var n=this.__on,i,a=G2(t);if(n){for(var o=0,s=n.length;o<s;++o)if((i=n[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=t;return}}this.addEventListener(e.type,a,r),i={type:e.type,name:e.name,value:t,listener:a,options:r},n?n.push(i):this.__on=[i]}}function V2(e,t,r){var n=K2(e+""),i,a=n.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,c;l<u;++l)for(i=0,c=s[l];i<a;++i)if((o=n[i]).type===c.type&&o.name===c.name)return c.value}return}for(s=t?X2:Y2,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function rT(e,t,r){var n=ZO(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Z2(e,t){return function(){return rT(this,e,t)}}function J2(e,t){return function(){return rT(this,e,t.apply(this,arguments))}}function Q2(e,t){return this.each((typeof t=="function"?J2:Z2)(e,t))}function*t$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var nT=[null];function Ar(e,t){this._groups=e,this._parents=t}function Oo(){return new Ar([[document.documentElement]],nT)}function e$(){return this}Ar.prototype=Oo.prototype={constructor:Ar,select:Pk,selectAll:kk,selectChild:Dk,selectChildren:Bk,filter:qk,data:Gk,enter:Fk,exit:Yk,join:Xk,merge:Vk,selection:e$,order:Zk,sort:Jk,call:t2,nodes:e2,node:r2,size:n2,empty:i2,each:a2,attr:h2,style:y2,property:_2,classed:A2,text:E2,html:$2,raise:R2,lower:I2,append:N2,insert:B2,remove:F2,clone:W2,datum:H2,on:V2,dispatch:Q2,[Symbol.iterator]:t$};function te(e){return typeof e=="string"?new Ar([[document.querySelector(e)]],[document.documentElement]):new Ar([[e]],nT)}function r$(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ps(e,t){if(e=r$(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(t.getScreenCTM().inverse()),[n.x,n.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const ty={capture:!0,passive:!1};function ey(e){e.preventDefault(),e.stopImmediatePropagation()}function n$(e){var t=e.document.documentElement,r=te(e).on("dragstart.drag",ey,ty);"onselectstart"in t?r.on("selectstart.drag",ey,ty):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function i$(e,t){var r=e.document.documentElement,n=te(e).on("dragstart.drag",null);t&&(n.on("click.drag",ey,ty),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function ev(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function iT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function vl(){}var Es=.7,cu=1/Es,Ra="\\s*([+-]?\\d+)\\s*",Cs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a$=/^#([0-9a-f]{3,8})$/,o$=new RegExp(`^rgb\\(${Ra},${Ra},${Ra}\\)$`),s$=new RegExp(`^rgb\\(${bn},${bn},${bn}\\)$`),l$=new RegExp(`^rgba\\(${Ra},${Ra},${Ra},${Cs}\\)$`),u$=new RegExp(`^rgba\\(${bn},${bn},${bn},${Cs}\\)$`),c$=new RegExp(`^hsl\\(${Cs},${bn},${bn}\\)$`),f$=new RegExp(`^hsla\\(${Cs},${bn},${bn},${Cs}\\)$`),F0={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};ev(vl,Ji,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:z0,formatHex:z0,formatHex8:h$,formatHsl:p$,formatRgb:U0,toString:U0});function z0(){return this.rgb().formatHex()}function h$(){return this.rgb().formatHex8()}function p$(){return aT(this).formatHsl()}function U0(){return this.rgb().formatRgb()}function Ji(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=a$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?W0(t):r===3?new Qe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=o$.exec(e))?new Qe(t[1],t[2],t[3],1):(t=s$.exec(e))?new Qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=l$.exec(e))?Dl(t[1],t[2],t[3],t[4]):(t=u$.exec(e))?Dl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=c$.exec(e))?K0(t[1],t[2]/100,t[3]/100,1):(t=f$.exec(e))?K0(t[1],t[2]/100,t[3]/100,t[4]):F0.hasOwnProperty(e)?W0(F0[e]):e==="transparent"?new Qe(NaN,NaN,NaN,0):null}function W0(e){return new Qe(e>>16&255,e>>8&255,e&255,1)}function Dl(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qe(e,t,r,n)}function d$(e){return e instanceof vl||(e=Ji(e)),e?(e=e.rgb(),new Qe(e.r,e.g,e.b,e.opacity)):new Qe}function ry(e,t,r,n){return arguments.length===1?d$(e):new Qe(e,t,r,n??1)}function Qe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ev(Qe,ry,iT(vl,{brighter(e){return e=e==null?cu:Math.pow(cu,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Es:Math.pow(Es,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qe(Wi(this.r),Wi(this.g),Wi(this.b),fu(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:H0,formatHex:H0,formatHex8:m$,formatRgb:G0,toString:G0}));function H0(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}`}function m$(){return`#${Ii(this.r)}${Ii(this.g)}${Ii(this.b)}${Ii((isNaN(this.opacity)?1:this.opacity)*255)}`}function G0(){const e=fu(this.opacity);return`${e===1?"rgb(":"rgba("}${Wi(this.r)}, ${Wi(this.g)}, ${Wi(this.b)}${e===1?")":`, ${e})`}`}function fu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ii(e){return e=Wi(e),(e<16?"0":"")+e.toString(16)}function K0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tn(e,t,r,n)}function aT(e){if(e instanceof tn)return new tn(e.h,e.s,e.l,e.opacity);if(e instanceof vl||(e=Ji(e)),!e)return new tn;if(e instanceof tn)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new tn(o,s,l,e.opacity)}function y$(e,t,r,n){return arguments.length===1?aT(e):new tn(e,t,r,n??1)}function tn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ev(tn,y$,iT(vl,{brighter(e){return e=e==null?cu:Math.pow(cu,e),new tn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Es:Math.pow(Es,e),new tn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Qe(bf(e>=240?e-240:e+120,i,n),bf(e,i,n),bf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new tn(Y0(this.h),Il(this.s),Il(this.l),fu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=fu(this.opacity);return`${e===1?"hsl(":"hsla("}${Y0(this.h)}, ${Il(this.s)*100}%, ${Il(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y0(e){return e=(e||0)%360,e<0?e+360:e}function Il(e){return Math.max(0,Math.min(1,e||0))}function bf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const rv=e=>()=>e;function g$(e,t){return function(r){return e+r*t}}function v$(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function b$(e){return(e=+e)==1?oT:function(t,r){return r-t?v$(t,r,e):rv(isNaN(t)?r:t)}}function oT(e,t){var r=t-e;return r?g$(e,r):rv(isNaN(e)?t:e)}const hu=(function e(t){var r=b$(t);function n(i,a){var o=r((i=ry(i)).r,(a=ry(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=oT(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n})(1);function _$(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function x$(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function w$(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=la(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function S$(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Qr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function A$(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=la(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ny=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_f=new RegExp(ny.source,"g");function O$(e){return function(){return e}}function T$(e){return function(t){return e(t)+""}}function sT(e,t){var r=ny.lastIndex=_f.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=ny.exec(e))&&(i=_f.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Qr(n,i)})),r=_f.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?T$(l[0].x):O$(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function la(e,t){var r=typeof t,n;return t==null||r==="boolean"?rv(t):(r==="number"?Qr:r==="string"?(n=Ji(t))?(t=n,hu):sT:t instanceof Ji?hu:t instanceof Date?S$:x$(t)?_$:Array.isArray(t)?w$:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?A$:Qr)(e,t)}function nv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var X0=180/Math.PI,iy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lT(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*X0,skewX:Math.atan(l)*X0,scaleX:o,scaleY:s}}var Nl;function P$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?iy:lT(t.a,t.b,t.c,t.d,t.e,t.f)}function E$(e){return e==null||(Nl||(Nl=document.createElementNS("http://www.w3.org/2000/svg","g")),Nl.setAttribute("transform",e),!(e=Nl.transform.baseVal.consolidate()))?iy:(e=e.matrix,lT(e.a,e.b,e.c,e.d,e.e,e.f))}function uT(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:Qr(u,f)},{i:m-2,x:Qr(c,h)})}else(f||h)&&p.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Qr(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Qr(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");y.push({i:m-4,x:Qr(u,f)},{i:m-2,x:Qr(c,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(p){for(var y=-1,m=h.length,d;++y<m;)f[(d=h[y]).i]=d.x(p);return f.join("")}}}var C$=uT(P$,"px, ","px)","deg)"),M$=uT(E$,", ",")",")");function k$(e,t){t===void 0&&(t=e,e=la);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}var Wa=0,rs=0,qo=0,cT=1e3,pu,ns,du=0,Qi=0,wc=0,Ms=typeof performance=="object"&&performance.now?performance:Date,fT=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function iv(){return Qi||(fT($$),Qi=Ms.now()+wc)}function $$(){Qi=0}function mu(){this._call=this._time=this._next=null}mu.prototype=hT.prototype={constructor:mu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?iv():+r)+(t==null?0:+t),!this._next&&ns!==this&&(ns?ns._next=this:pu=this,ns=this),this._call=e,this._time=r,ay()},stop:function(){this._call&&(this._call=null,this._time=1/0,ay())}};function hT(e,t,r){var n=new mu;return n.restart(e,t,r),n}function j$(){iv(),++Wa;for(var e=pu,t;e;)(t=Qi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Wa}function V0(){Qi=(du=Ms.now())+wc,Wa=rs=0;try{j$()}finally{Wa=0,D$(),Qi=0}}function R$(){var e=Ms.now(),t=e-du;t>cT&&(wc-=t,du=e)}function D$(){for(var e,t=pu,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:pu=r);ns=e,ay(n)}function ay(e){if(!Wa){rs&&(rs=clearTimeout(rs));var t=e-Qi;t>24?(e<1/0&&(rs=setTimeout(V0,e-Ms.now()-wc)),qo&&(qo=clearInterval(qo))):(qo||(du=Ms.now(),qo=setInterval(R$,cT)),Wa=1,fT(V0))}}function Z0(e,t,r){var n=new mu;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var I$=Jg("start","end","cancel","interrupt"),N$=[],pT=0,J0=1,oy=2,nu=3,Q0=4,sy=5,iu=6;function Sc(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;L$(e,r,{name:t,index:n,group:i,on:I$,tween:N$,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:pT})}function av(e,t){var r=nn(e,t);if(r.state>pT)throw new Error("too late; already scheduled");return r}function An(e,t){var r=nn(e,t);if(r.state>nu)throw new Error("too late; already running");return r}function nn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function L$(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=hT(a,0,r.time);function a(u){r.state=J0,r.timer.restart(o,r.delay,r.time),r.delay<=u&&o(u-r.delay)}function o(u){var c,f,h,p;if(r.state!==J0)return l();for(c in n)if(p=n[c],p.name===r.name){if(p.state===nu)return Z0(o);p.state===Q0?(p.state=iu,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=iu,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(Z0(function(){r.state===nu&&(r.state=Q0,r.timer.restart(s,r.delay,r.time),s(u))}),r.state=oy,r.on.call("start",e,e.__data__,r.index,r.group),r.state===oy){for(r.state=nu,i=new Array(h=r.tween.length),c=0,f=-1;c<h;++c)(p=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=p);i.length=f+1}}function s(u){for(var c=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=sy,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===sy&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=iu,r.timer.stop(),delete n[t];for(var u in n)return;delete e.__transition}}function ly(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>oy&&n.state<sy,n.state=iu,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}a&&delete e.__transition}}function B$(e){return this.each(function(){ly(this,e)})}function q$(e,t){var r,n;return function(){var i=An(this,e),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===t){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function F$(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=An(this,e),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:t,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}a.tween=i}}function z$(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=nn(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?q$:F$)(r,e,t))}function ov(e,t,r){var n=e._id;return e.each(function(){var i=An(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return nn(i,n).value[t]}}function dT(e,t){var r;return(typeof t=="number"?Qr:t instanceof Ji?hu:(r=Ji(t))?(t=r,hu):sT)(e,t)}function U$(e){return function(){this.removeAttribute(e)}}function W$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function H$(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}}function G$(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}function K$(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function Y$(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function X$(e,t){var r=xc(e),n=r==="transform"?M$:dT;return this.attrTween(e,typeof t=="function"?(r.local?Y$:K$)(r,n,ov(this,"attr."+e,t)):t==null?(r.local?W$:U$)(r):(r.local?G$:H$)(r,n,t))}function V$(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Z$(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function J$(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Z$(e,a)),r}return i._value=t,i}function Q$(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&V$(e,a)),r}return i._value=t,i}function tj(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=xc(e);return this.tween(r,(n.local?J$:Q$)(n,t))}function ej(e,t){return function(){av(this,e).delay=+t.apply(this,arguments)}}function rj(e,t){return t=+t,function(){av(this,e).delay=t}}function nj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ej:rj)(t,e)):nn(this.node(),t).delay}function ij(e,t){return function(){An(this,e).duration=+t.apply(this,arguments)}}function aj(e,t){return t=+t,function(){An(this,e).duration=t}}function oj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ij:aj)(t,e)):nn(this.node(),t).duration}function sj(e,t){if(typeof t!="function")throw new Error;return function(){An(this,e).ease=t}}function lj(e){var t=this._id;return arguments.length?this.each(sj(t,e)):nn(this.node(),t).ease}function uj(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;An(this,e).ease=r}}function cj(e){if(typeof e!="function")throw new Error;return this.each(uj(this._id,e))}function fj(e){typeof e!="function"&&(e=YO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Fn(n,this._parents,this._name,this._id)}function hj(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var l=t[s],u=r[s],c=l.length,f=o[s]=new Array(c),h,p=0;p<c;++p)(h=l[p]||u[p])&&(f[p]=h);for(;s<n;++s)o[s]=t[s];return new Fn(o,this._parents,this._name,this._id)}function pj(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function dj(e,t,r){var n,i,a=pj(t)?av:An;return function(){var o=a(this,e),s=o.on;s!==n&&(i=(n=s).copy()).on(t,r),o.on=i}}function mj(e,t){var r=this._id;return arguments.length<2?nn(this.node(),r).on.on(e):this.each(dj(r,e,t))}function yj(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function gj(){return this.on("end.remove",yj(this._id))}function vj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Qg(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s=n[o],l=s.length,u=a[o]=new Array(l),c,f,h=0;h<l;++h)(c=s[h])&&(f=e.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),u[h]=f,Sc(u[h],t,r,h,u,nn(c,r)));return new Fn(a,this._parents,t,r)}function bj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=KO(e));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var l=n[s],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var h=e.call(c,c.__data__,f,l),p,y=nn(c,r),m=0,d=h.length;m<d;++m)(p=h[m])&&Sc(p,t,r,m,h,y);a.push(h),o.push(c)}return new Fn(a,o,t,r)}var _j=Oo.prototype.constructor;function xj(){return new _j(this._groups,this._parents)}function wj(e,t){var r,n,i;return function(){var a=Ua(this,e),o=(this.style.removeProperty(e),Ua(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function mT(e){return function(){this.style.removeProperty(e)}}function Sj(e,t,r){var n,i=r+"",a;return function(){var o=Ua(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function Aj(e,t,r){var n,i,a;return function(){var o=Ua(this,e),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Ua(this,e))),o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s))}}function Oj(e,t){var r,n,i,a="style."+t,o="end."+a,s;return function(){var l=An(this,e),u=l.on,c=l.value[a]==null?s||(s=mT(t)):void 0;(u!==r||i!==c)&&(n=(r=u).copy()).on(o,i=c),l.on=n}}function Tj(e,t,r){var n=(e+="")=="transform"?C$:dT;return t==null?this.styleTween(e,wj(e,n)).on("end.style."+e,mT(e)):typeof t=="function"?this.styleTween(e,Aj(e,n,ov(this,"style."+e,t))).each(Oj(this._id,e)):this.styleTween(e,Sj(e,n,t),r).on("end.style."+e,null)}function Pj(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function Ej(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&Pj(e,o,r)),n}return a._value=t,a}function Cj(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Ej(e,t,r??""))}function Mj(e){return function(){this.textContent=e}}function kj(e){return function(){var t=e(this);this.textContent=t??""}}function $j(e){return this.tween("text",typeof e=="function"?kj(ov(this,"text",e)):Mj(e==null?"":e+""))}function jj(e){return function(t){this.textContent=e.call(this,t)}}function Rj(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&jj(i)),t}return n._value=e,n}function Dj(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Rj(e))}function Ij(){for(var e=this._name,t=this._id,r=yT(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var c=nn(l,t);Sc(l,e,r,u,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Fn(n,this._parents,e,r)}function Nj(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};r.each(function(){var u=An(this,n),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),u.on=t}),i===0&&a()})}var Lj=0;function Fn(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function sv(e){return Oo().transition(e)}function yT(){return++Lj}var Cn=Oo.prototype;Fn.prototype=sv.prototype={constructor:Fn,select:vj,selectAll:bj,selectChild:Cn.selectChild,selectChildren:Cn.selectChildren,filter:fj,merge:hj,selection:xj,transition:Ij,call:Cn.call,nodes:Cn.nodes,node:Cn.node,size:Cn.size,empty:Cn.empty,each:Cn.each,on:mj,attr:X$,attrTween:tj,style:Tj,styleTween:Cj,text:$j,textTween:Dj,remove:gj,tween:z$,delay:nj,duration:oj,ease:lj,easeVarying:cj,end:Nj,[Symbol.iterator]:Cn[Symbol.iterator]};function Bj(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var qj={time:null,delay:0,duration:250,ease:Bj};function Fj(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function zj(e){var t,r;e instanceof Fn?(t=e._id,e=e._name):(t=yT(),(r=qj).time=iv(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&Sc(l,e,t,u,o,r||Fj(l,t));return new Fn(n,this._parents,e,t)}Oo.prototype.interrupt=B$;Oo.prototype.transition=zj;const xf=e=>()=>e;function Uj(e,{sourceEvent:t,target:r,selection:n,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function Wj(e){e.stopImmediatePropagation()}function wf(e){e.preventDefault(),e.stopImmediatePropagation()}var tb={name:"drag"},Sf={name:"space"},_a={name:"handle"},xa={name:"center"};const{abs:eb,max:Ie,min:Ne}=Math;function rb(e){return[+e[0],+e[1]]}function nb(e){return[rb(e[0]),rb(e[1])]}var au={name:"x",handles:["w","e"].map(uy),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Af={},Mn={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ib={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ab={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Hj={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Gj={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function uy(e){return{type:e}}function Kj(e){return!e.ctrlKey&&!e.button}function Yj(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Xj(){return navigator.maxTouchPoints||"ontouchstart"in this}function Of(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Vj(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Ac(){return Zj(au)}function Zj(e){var t=Yj,r=Kj,n=Xj,i=!0,a=Jg("start","brush","end"),o=6,s;function l(d){var v=d.property("__brush",m).selectAll(".overlay").data([uy("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Mn.overlay).merge(v).each(function(){var b=Of(this).extent;te(this).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1])}),d.selectAll(".selection").data([uy("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Mn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var w=d.selectAll(".handle").data(e.handles,function(b){return b.type});w.exit().remove(),w.enter().append("rect").attr("class",function(b){return"handle handle--"+b.type}).attr("cursor",function(b){return Mn[b.type]}),d.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(n).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(d,v,w){d.tween?d.on("start.brush",function(b){c(this,arguments).beforestart().start(b)}).on("interrupt.brush end.brush",function(b){c(this,arguments).end(b)}).tween("brush",function(){var b=this,_=b.__brush,g=c(b,arguments),x=_.selection,S=e.input(typeof v=="function"?v.apply(this,arguments):v,_.extent),A=la(x,S);function T(C){_.selection=C===1&&S===null?null:A(C),u.call(b),g.brush()}return x!==null&&S!==null?T:T(1)}):d.each(function(){var b=this,_=arguments,g=b.__brush,x=e.input(typeof v=="function"?v.apply(b,_):v,g.extent),S=c(b,_).beforestart();ly(b),g.selection=x===null?null:x,u.call(b),S.start(w).brush(w).end(w)})},l.clear=function(d,v){l.move(d,null,v)};function u(){var d=te(this),v=Of(this).selection;v?(d.selectAll(".selection").style("display",null).attr("x",v[0][0]).attr("y",v[0][1]).attr("width",v[1][0]-v[0][0]).attr("height",v[1][1]-v[0][1]),d.selectAll(".handle").style("display",null).attr("x",function(w){return w.type[w.type.length-1]==="e"?v[1][0]-o/2:v[0][0]-o/2}).attr("y",function(w){return w.type[0]==="s"?v[1][1]-o/2:v[0][1]-o/2}).attr("width",function(w){return w.type==="n"||w.type==="s"?v[1][0]-v[0][0]+o:o}).attr("height",function(w){return w.type==="e"||w.type==="w"?v[1][1]-v[0][1]+o:o})):d.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(d,v,w){var b=d.__brush.emitter;return b&&(!w||!b.clean)?b:new f(d,v,w)}function f(d,v,w){this.that=d,this.args=v,this.state=d.__brush,this.active=0,this.clean=w}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(d,v){return this.starting?(this.starting=!1,this.emit("start",d,v)):this.emit("brush",d),this},brush:function(d,v){return this.emit("brush",d,v),this},end:function(d,v){return--this.active===0&&(delete this.state.emitter,this.emit("end",d,v)),this},emit:function(d,v,w){var b=te(this.that).datum();a.call(d,this.that,new Uj(d,{sourceEvent:v,target:l,selection:e.output(this.state.selection),mode:w,dispatch:a}),b)}};function h(d){if(s&&!d.touches||!r.apply(this,arguments))return;var v=this,w=d.target.__data__.type,b=(i&&d.metaKey?w="overlay":w)==="selection"?tb:i&&d.altKey?xa:_a,_=e===Af?null:Hj[w],g=e===au?null:Gj[w],x=Of(v),S=x.extent,A=x.selection,T=S[0][0],C,P,E=S[0][1],k,$,j=S[1][0],M,I,q=S[1][1],F,N,R=0,L=0,W,Y=_&&g&&i&&d.shiftKey,z,V,J=Array.from(d.touches||[d],st=>{const ht=st.identifier;return st=Ps(st,v),st.point0=st.slice(),st.identifier=ht,st});ly(v);var K=c(v,arguments,!0).beforestart();if(w==="overlay"){A&&(W=!0);const st=[J[0],J[1]||J[0]];x.selection=A=[[C=e===Af?T:Ne(st[0][0],st[1][0]),k=e===au?E:Ne(st[0][1],st[1][1])],[M=e===Af?j:Ie(st[0][0],st[1][0]),F=e===au?q:Ie(st[0][1],st[1][1])]],J.length>1&&ot(d)}else C=A[0][0],k=A[0][1],M=A[1][0],F=A[1][1];P=C,$=k,I=M,N=F;var B=te(v).attr("pointer-events","none"),G=B.selectAll(".overlay").attr("cursor",Mn[w]);if(d.touches)K.moved=D,K.ended=U;else{var Z=te(d.view).on("mousemove.brush",D,!0).on("mouseup.brush",U,!0);i&&Z.on("keydown.brush",it,!0).on("keyup.brush",ft,!0),n$(d.view)}u.call(v),K.start(d,b.name);function D(st){for(const ht of st.changedTouches||[st])for(const Tt of J)Tt.identifier===ht.identifier&&(Tt.cur=Ps(ht,v));if(Y&&!z&&!V&&J.length===1){const ht=J[0];eb(ht.cur[0]-ht[0])>eb(ht.cur[1]-ht[1])?V=!0:z=!0}for(const ht of J)ht.cur&&(ht[0]=ht.cur[0],ht[1]=ht.cur[1]);W=!0,wf(st),ot(st)}function ot(st){const ht=J[0],Tt=ht.point0;var at;switch(R=ht[0]-Tt[0],L=ht[1]-Tt[1],b){case Sf:case tb:{_&&(R=Ie(T-C,Ne(j-M,R)),P=C+R,I=M+R),g&&(L=Ie(E-k,Ne(q-F,L)),$=k+L,N=F+L);break}case _a:{J[1]?(_&&(P=Ie(T,Ne(j,J[0][0])),I=Ie(T,Ne(j,J[1][0])),_=1),g&&($=Ie(E,Ne(q,J[0][1])),N=Ie(E,Ne(q,J[1][1])),g=1)):(_<0?(R=Ie(T-C,Ne(j-C,R)),P=C+R,I=M):_>0&&(R=Ie(T-M,Ne(j-M,R)),P=C,I=M+R),g<0?(L=Ie(E-k,Ne(q-k,L)),$=k+L,N=F):g>0&&(L=Ie(E-F,Ne(q-F,L)),$=k,N=F+L));break}case xa:{_&&(P=Ie(T,Ne(j,C-R*_)),I=Ie(T,Ne(j,M+R*_))),g&&($=Ie(E,Ne(q,k-L*g)),N=Ie(E,Ne(q,F+L*g)));break}}I<P&&(_*=-1,at=C,C=M,M=at,at=P,P=I,I=at,w in ib&&G.attr("cursor",Mn[w=ib[w]])),N<$&&(g*=-1,at=k,k=F,F=at,at=$,$=N,N=at,w in ab&&G.attr("cursor",Mn[w=ab[w]])),x.selection&&(A=x.selection),z&&(P=A[0][0],I=A[1][0]),V&&($=A[0][1],N=A[1][1]),(A[0][0]!==P||A[0][1]!==$||A[1][0]!==I||A[1][1]!==N)&&(x.selection=[[P,$],[I,N]],u.call(v),K.brush(st,b.name))}function U(st){if(Wj(st),st.touches){if(st.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else i$(st.view,W),Z.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);B.attr("pointer-events","all"),G.attr("cursor",Mn.overlay),x.selection&&(A=x.selection),Vj(A)&&(x.selection=null,u.call(v)),K.end(st,b.name)}function it(st){switch(st.keyCode){case 16:{Y=_&&g;break}case 18:{b===_a&&(_&&(M=I-R*_,C=P+R*_),g&&(F=N-L*g,k=$+L*g),b=xa,ot(st));break}case 32:{(b===_a||b===xa)&&(_<0?M=I-R:_>0&&(C=P-R),g<0?F=N-L:g>0&&(k=$-L),b=Sf,G.attr("cursor",Mn.selection),ot(st));break}default:return}wf(st)}function ft(st){switch(st.keyCode){case 16:{Y&&(z=V=Y=!1,ot(st));break}case 18:{b===xa&&(_<0?M=I:_>0&&(C=P),g<0?F=N:g>0&&(k=$),b=_a,ot(st));break}case 32:{b===Sf&&(st.altKey?(_&&(M=I-R*_,C=P+R*_),g&&(F=N-L*g,k=$+L*g),b=xa):(_<0?M=I:_>0&&(C=P),g<0?F=N:g>0&&(k=$),b=_a),G.attr("cursor",Mn[w]),ot(st));break}default:return}wf(st)}}function p(d){c(this,arguments).moved(d)}function y(d){c(this,arguments).ended(d)}function m(){var d=this.__brush||{selection:null};return d.extent=nb(t.apply(this,arguments)),d.dim=e,d}return l.extent=function(d){return arguments.length?(t=typeof d=="function"?d:xf(nb(d)),l):t},l.filter=function(d){return arguments.length?(r=typeof d=="function"?d:xf(!!d),l):r},l.touchable=function(d){return arguments.length?(n=typeof d=="function"?d:xf(!!d),l):n},l.handleSize=function(d){return arguments.length?(o=+d,l):o},l.keyModifiers=function(d){return arguments.length?(i=!!d,l):i},l.on=function(){var d=a.on.apply(a,arguments);return d===a?l:d},l}function ci(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Jj(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lv(e){let t,r,n;e.length!==2?(t=ci,r=(s,l)=>ci(e(s),l),n=(s,l)=>e(s)-l):(t=e===ci||e===Jj?e:Qj,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function Qj(){return 0}function gT(e){return e===null?NaN:+e}function*tR(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const eR=lv(ci),bl=eR.right;lv(gT).center;class ob extends Map{constructor(t,r=iR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(sb(this,t))}has(t){return super.has(sb(this,t))}set(t,r){return super.set(rR(this,t),r)}delete(t){return super.delete(nR(this,t))}}function sb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function rR({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function nR({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function iR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function aR(e=ci){if(e===ci)return vT;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function vT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const oR=Math.sqrt(50),sR=Math.sqrt(10),lR=Math.sqrt(2);function yu(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=oR?10:a>=sR?5:a>=lR?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?yu(e,t,r*2):[s,l,u]}function cy(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?yu(t,e,r):yu(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function fy(e,t,r){return t=+t,e=+e,r=+r,yu(e,t,r)[2]}function hy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?fy(t,e,r):fy(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function lb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ub(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function bT(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?vT:aR(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*f/l+h)),y=Math.min(n,Math.floor(t+(l-u)*f/l+h));bT(e,t,p,y,i)}const a=e[t];let o=r,s=n;for(Fo(e,r,t),i(e[n],a)>0&&Fo(e,r,n);o<s;){for(Fo(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Fo(e,r,s):(++s,Fo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Fo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function uR(e,t,r){if(e=Float64Array.from(tR(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ub(e);if(t>=1)return lb(e);var n,i=(n-1)*t,a=Math.floor(i),o=lb(bT(e,a).subarray(0,a+1)),s=ub(e.subarray(a+1));return o+(s-o)*(i-a)}}function cR(e,t,r=gT){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function fR(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Ur(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Kn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const py=Symbol("implicit");function uv(){var e=new ob,t=[],r=[],n=py;function i(a){let o=e.get(a);if(o===void 0){if(n!==py)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ob;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return uv(t,r).unknown(n)},Ur.apply(i,arguments),i}function ks(){var e=uv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var h=t().length,p=i<n,y=p?i:n,m=p?n:i;a=(m-y)/Math.max(1,h-l+u*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-l))*c,o=a*(1-l),s&&(y=Math.round(y),o=Math.round(o));var d=fR(h).map(function(v){return y+a*v});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,u=+h),f()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),f()):l},e.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return ks(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},Ur.apply(f(),arguments)}function _T(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _T(t())},e}function us(){return _T(ks.apply(null,arguments).paddingInner(1))}function hR(e){return function(){return e}}function gu(e){return+e}var cb=[0,1];function Ye(e){return e}function dy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:hR(isNaN(t)?NaN:.5)}function pR(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function dR(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=dy(i,n),a=r(o,a)):(n=dy(n,i),a=r(a,o)),function(s){return a(n(s))}}function mR(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=dy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=bl(e,s,1,n)-1;return a[l](i[l](s))}}function _l(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Oc(){var e=cb,t=cb,r=la,n,i,a,o=Ye,s,l,u;function c(){var h=Math.min(e.length,t.length);return o!==Ye&&(o=pR(e[0],e[h-1])),s=h>2?mR:dR,l=u=null,f}function f(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((u||(u=s(t,e.map(n),Qr)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,gu),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=nv,c()},f.clamp=function(h){return arguments.length?(o=h?!0:Ye,c()):o!==Ye},f.interpolate=function(h){return arguments.length?(r=h,c()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,c()}}function cv(){return Oc()(Ye,Ye)}function yR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vu(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ha(e){return e=vu(Math.abs(e)),e?e[1]:NaN}function gR(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function vR(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var bR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $s(e){if(!(t=bR.exec(e)))throw new Error("invalid format: "+e);var t;return new fv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}$s.prototype=fv.prototype;function fv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _R(e){t:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break t;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var xT;function xR(e,t){var r=vu(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(xT=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+vu(e,Math.max(0,t+a-1))[0]}function fb(e,t){var r=vu(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const hb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:yR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>fb(e*100,t),r:fb,s:xR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pb(e){return e}var db=Array.prototype.map,mb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wR(e){var t=e.grouping===void 0||e.thousands===void 0?pb:gR(db.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?pb:vR(db.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=$s(f);var h=f.fill,p=f.align,y=f.sign,m=f.symbol,d=f.zero,v=f.width,w=f.comma,b=f.precision,_=f.trim,g=f.type;g==="n"?(w=!0,g="g"):hb[g]||(b===void 0&&(b=12),_=!0,g="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var x=m==="$"?r:m==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=m==="$"?n:/[%p]/.test(g)?o:"",A=hb[g],T=/[defgprs%]/.test(g);b=b===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function C(P){var E=x,k=S,$,j,M;if(g==="c")k=A(P)+k,P="";else{P=+P;var I=P<0||1/P<0;if(P=isNaN(P)?l:A(Math.abs(P),b),_&&(P=_R(P)),I&&+P==0&&y!=="+"&&(I=!1),E=(I?y==="("?y:s:y==="-"||y==="("?"":y)+E,k=(g==="s"?mb[8+xT/3]:"")+k+(I&&y==="("?")":""),T){for($=-1,j=P.length;++$<j;)if(M=P.charCodeAt($),48>M||M>57){k=(M===46?i+P.slice($+1):P.slice($))+k,P=P.slice(0,$);break}}}w&&!d&&(P=t(P,1/0));var q=E.length+P.length+k.length,F=q<v?new Array(v-q+1).join(h):"";switch(w&&d&&(P=t(F+P,F.length?v-k.length:1/0),F=""),p){case"<":P=E+P+k+F;break;case"=":P=E+F+P+k;break;case"^":P=F.slice(0,q=F.length>>1)+E+P+k+F.slice(q);break;default:P=F+E+P+k;break}return a(P)}return C.toString=function(){return f+""},C}function c(f,h){var p=u((f=$s(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(Ha(h)/3)))*3,m=Math.pow(10,-y),d=mb[8+y/3];return function(v){return p(m*v)+d}}return{format:u,formatPrefix:c}}var Ll,hv,wT;SR({thousands:",",grouping:[3],currency:["$",""]});function SR(e){return Ll=wR(e),hv=Ll.format,wT=Ll.formatPrefix,Ll}function AR(e){return Math.max(0,-Ha(Math.abs(e)))}function OR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ha(t)/3)))*3-Ha(Math.abs(e)))}function TR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ha(t)-Ha(e))+1}function ST(e,t,r,n){var i=hy(e,t,r),a;switch(n=$s(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=OR(i,o))&&(n.precision=a),wT(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=TR(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=AR(i))&&(n.precision=a-(n.type==="%")*2);break}}return hv(n)}function mi(e){var t=e.domain;return e.ticks=function(r){var n=t();return cy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ST(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);c-- >0;){if(u=fy(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function ta(){var e=cv();return e.copy=function(){return _l(e,ta())},Ur.apply(e,arguments),mi(e)}function AT(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,gu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return AT(e).unknown(t)},e=arguments.length?Array.from(e,gu):[0,1],mi(r)}function OT(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function yb(e){return Math.log(e)}function gb(e){return Math.exp(e)}function PR(e){return-Math.log(-e)}function ER(e){return-Math.exp(-e)}function CR(e){return isFinite(e)?+("1e"+e):e<0?0:e}function MR(e){return e===10?CR:e===Math.E?Math.exp:t=>Math.pow(e,t)}function kR(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vb(e){return(t,r)=>-e(-t,r)}function pv(e){const t=e(yb,gb),r=t.domain;let n=10,i,a;function o(){return i=kR(n),a=MR(n),r()[0]<0?(i=vb(i),a=vb(a),e(PR,ER)):e(yb,gb),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let h=i(u),p=i(c),y,m;const d=s==null?10:+s;let v=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;v.push(m)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;v.push(m)}v.length*2<d&&(v=cy(u,c,d))}else v=cy(h,p,Math.min(p-h,d)).map(a);return f?v.reverse():v},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=$s(l)).precision==null&&(l.trim=!0),l=hv(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(OT(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function TT(){const e=pv(Oc()).domain([1,10]);return e.copy=()=>_l(e,TT()).base(e.base()),Ur.apply(e,arguments),e}function bb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _b(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function dv(e){var t=1,r=e(bb(t),_b(t));return r.constant=function(n){return arguments.length?e(bb(t=+n),_b(t)):t},mi(r)}function PT(){var e=dv(Oc());return e.copy=function(){return _l(e,PT()).constant(e.constant())},Ur.apply(e,arguments)}function xb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $R(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function jR(e){return e<0?-e*e:e*e}function mv(e){var t=e(Ye,Ye),r=1;function n(){return r===1?e(Ye,Ye):r===.5?e($R,jR):e(xb(r),xb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},mi(t)}function yv(){var e=mv(Oc());return e.copy=function(){return _l(e,yv()).exponent(e.exponent())},Ur.apply(e,arguments),e}function RR(){return yv.apply(null,arguments).exponent(.5)}function wb(e){return Math.sign(e)*e*e}function DR(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ET(){var e=cv(),t=[0,1],r=!1,n;function i(a){var o=DR(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(wb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,gu)).map(wb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ET(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ur.apply(i,arguments),mi(i)}function CT(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=cR(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[bl(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(ci),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return CT().domain(e).range(t).unknown(n)},Ur.apply(a,arguments)}function MT(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[bl(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return MT().domain([e,t]).range(i).unknown(a)},Ur.apply(mi(o),arguments)}function kT(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[bl(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return kT().domain(e).range(t).unknown(r)},Ur.apply(i,arguments)}const Tf=new Date,Pf=new Date;function xe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>xe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Tf.setTime(+a),Pf.setTime(+o),e(Tf),e(Pf),Math.floor(r(Tf,Pf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const bu=xe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bu);bu.range;const Dn=1e3,Ir=Dn*60,In=Ir*60,zn=In*24,gv=zn*7,Sb=zn*30,Ef=zn*365,Ni=xe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Dn)},(e,t)=>(t-e)/Dn,e=>e.getUTCSeconds());Ni.range;const vv=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Dn)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getMinutes());vv.range;const bv=xe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getUTCMinutes());bv.range;const _v=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Dn-e.getMinutes()*Ir)},(e,t)=>{e.setTime(+e+t*In)},(e,t)=>(t-e)/In,e=>e.getHours());_v.range;const xv=xe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*In)},(e,t)=>(t-e)/In,e=>e.getUTCHours());xv.range;const xl=xe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ir)/zn,e=>e.getDate()-1);xl.range;const Tc=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/zn,e=>e.getUTCDate()-1);Tc.range;const $T=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/zn,e=>Math.floor(e/zn));$T.range;function ua(e){return xe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ir)/gv)}const Pc=ua(0),_u=ua(1),IR=ua(2),NR=ua(3),Ga=ua(4),LR=ua(5),BR=ua(6);Pc.range;_u.range;IR.range;NR.range;Ga.range;LR.range;BR.range;function ca(e){return xe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/gv)}const Ec=ca(0),xu=ca(1),qR=ca(2),FR=ca(3),Ka=ca(4),zR=ca(5),UR=ca(6);Ec.range;xu.range;qR.range;FR.range;Ka.range;zR.range;UR.range;const wv=xe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());wv.range;const Sv=xe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Sv.range;const Un=xe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Un.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Un.range;const Wn=xe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Wn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Wn.range;function jT(e,t,r,n,i,a){const o=[[Ni,1,Dn],[Ni,5,5*Dn],[Ni,15,15*Dn],[Ni,30,30*Dn],[a,1,Ir],[a,5,5*Ir],[a,15,15*Ir],[a,30,30*Ir],[i,1,In],[i,3,3*In],[i,6,6*In],[i,12,12*In],[n,1,zn],[n,2,2*zn],[r,1,gv],[t,1,Sb],[t,3,3*Sb],[e,1,Ef]];function s(u,c,f){const h=c<u;h&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:l(u,c,f),y=p?p.range(u,+c+1):[];return h?y.reverse():y}function l(u,c,f){const h=Math.abs(c-u)/f,p=lv(([,,d])=>d).right(o,h);if(p===o.length)return e.every(hy(u/Ef,c/Ef,f));if(p===0)return bu.every(Math.max(hy(u,c,f),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[s,l]}const[WR,HR]=jT(Wn,Sv,Ec,$T,xv,bv),[GR,KR]=jT(Un,wv,Pc,xl,_v,vv);function Cf(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Mf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function zo(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function YR(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Uo(i),c=Wo(i),f=Uo(a),h=Wo(a),p=Uo(o),y=Wo(o),m=Uo(s),d=Wo(s),v=Uo(l),w=Wo(l),b={a:I,A:q,b:F,B:N,c:null,d:Cb,e:Cb,f:gD,g:PD,G:CD,H:dD,I:mD,j:yD,L:RT,m:vD,M:bD,p:R,q:L,Q:$b,s:jb,S:_D,u:xD,U:wD,V:SD,w:AD,W:OD,x:null,X:null,y:TD,Y:ED,Z:MD,"%":kb},_={a:W,A:Y,b:z,B:V,c:null,d:Mb,e:Mb,f:RD,g:WD,G:GD,H:kD,I:$D,j:jD,L:IT,m:DD,M:ID,p:J,q:K,Q:$b,s:jb,S:ND,u:LD,U:BD,V:qD,w:FD,W:zD,x:null,X:null,y:UD,Y:HD,Z:KD,"%":kb},g={a:C,A:P,b:E,B:k,c:$,d:Pb,e:Pb,f:cD,g:Tb,G:Ob,H:Eb,I:Eb,j:oD,L:uD,m:aD,M:sD,p:T,q:iD,Q:hD,s:pD,S:lD,u:QR,U:tD,V:eD,w:JR,W:rD,x:j,X:M,y:Tb,Y:Ob,Z:nD,"%":fD};b.x=x(r,b),b.X=x(n,b),b.c=x(t,b),_.x=x(r,_),_.X=x(n,_),_.c=x(t,_);function x(B,G){return function(Z){var D=[],ot=-1,U=0,it=B.length,ft,st,ht;for(Z instanceof Date||(Z=new Date(+Z));++ot<it;)B.charCodeAt(ot)===37&&(D.push(B.slice(U,ot)),(st=Ab[ft=B.charAt(++ot)])!=null?ft=B.charAt(++ot):st=ft==="e"?" ":"0",(ht=G[ft])&&(ft=ht(Z,st)),D.push(ft),U=ot+1);return D.push(B.slice(U,ot)),D.join("")}}function S(B,G){return function(Z){var D=zo(1900,void 0,1),ot=A(D,B,Z+="",0),U,it;if(ot!=Z.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(G&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(U=Mf(zo(D.y,0,1)),it=U.getUTCDay(),U=it>4||it===0?xu.ceil(U):xu(U),U=Tc.offset(U,(D.V-1)*7),D.y=U.getUTCFullYear(),D.m=U.getUTCMonth(),D.d=U.getUTCDate()+(D.w+6)%7):(U=Cf(zo(D.y,0,1)),it=U.getDay(),U=it>4||it===0?_u.ceil(U):_u(U),U=xl.offset(U,(D.V-1)*7),D.y=U.getFullYear(),D.m=U.getMonth(),D.d=U.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),it="Z"in D?Mf(zo(D.y,0,1)).getUTCDay():Cf(zo(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(it+5)%7:D.w+D.U*7-(it+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Mf(D)):Cf(D)}}function A(B,G,Z,D){for(var ot=0,U=G.length,it=Z.length,ft,st;ot<U;){if(D>=it)return-1;if(ft=G.charCodeAt(ot++),ft===37){if(ft=G.charAt(ot++),st=g[ft in Ab?G.charAt(ot++):ft],!st||(D=st(B,Z,D))<0)return-1}else if(ft!=Z.charCodeAt(D++))return-1}return D}function T(B,G,Z){var D=u.exec(G.slice(Z));return D?(B.p=c.get(D[0].toLowerCase()),Z+D[0].length):-1}function C(B,G,Z){var D=p.exec(G.slice(Z));return D?(B.w=y.get(D[0].toLowerCase()),Z+D[0].length):-1}function P(B,G,Z){var D=f.exec(G.slice(Z));return D?(B.w=h.get(D[0].toLowerCase()),Z+D[0].length):-1}function E(B,G,Z){var D=v.exec(G.slice(Z));return D?(B.m=w.get(D[0].toLowerCase()),Z+D[0].length):-1}function k(B,G,Z){var D=m.exec(G.slice(Z));return D?(B.m=d.get(D[0].toLowerCase()),Z+D[0].length):-1}function $(B,G,Z){return A(B,t,G,Z)}function j(B,G,Z){return A(B,r,G,Z)}function M(B,G,Z){return A(B,n,G,Z)}function I(B){return o[B.getDay()]}function q(B){return a[B.getDay()]}function F(B){return l[B.getMonth()]}function N(B){return s[B.getMonth()]}function R(B){return i[+(B.getHours()>=12)]}function L(B){return 1+~~(B.getMonth()/3)}function W(B){return o[B.getUTCDay()]}function Y(B){return a[B.getUTCDay()]}function z(B){return l[B.getUTCMonth()]}function V(B){return s[B.getUTCMonth()]}function J(B){return i[+(B.getUTCHours()>=12)]}function K(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var G=x(B+="",b);return G.toString=function(){return B},G},parse:function(B){var G=S(B+="",!1);return G.toString=function(){return B},G},utcFormat:function(B){var G=x(B+="",_);return G.toString=function(){return B},G},utcParse:function(B){var G=S(B+="",!0);return G.toString=function(){return B},G}}}var Ab={"-":"",_:" ",0:"0"},Ee=/^\s*\d+/,XR=/^%/,VR=/[\\^$*+?|[\]().{}]/g;function kt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function ZR(e){return e.replace(VR,"\\$&")}function Uo(e){return new RegExp("^(?:"+e.map(ZR).join("|")+")","i")}function Wo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function JR(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function QR(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function eD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ob(e,t,r){var n=Ee.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Tb(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nD(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iD(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function aD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Pb(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function oD(e,t,r){var n=Ee.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lD(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function uD(e,t,r){var n=Ee.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function cD(e,t,r){var n=Ee.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fD(e,t,r){var n=XR.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hD(e,t,r){var n=Ee.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function pD(e,t,r){var n=Ee.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Cb(e,t){return kt(e.getDate(),t,2)}function dD(e,t){return kt(e.getHours(),t,2)}function mD(e,t){return kt(e.getHours()%12||12,t,2)}function yD(e,t){return kt(1+xl.count(Un(e),e),t,3)}function RT(e,t){return kt(e.getMilliseconds(),t,3)}function gD(e,t){return RT(e,t)+"000"}function vD(e,t){return kt(e.getMonth()+1,t,2)}function bD(e,t){return kt(e.getMinutes(),t,2)}function _D(e,t){return kt(e.getSeconds(),t,2)}function xD(e){var t=e.getDay();return t===0?7:t}function wD(e,t){return kt(Pc.count(Un(e)-1,e),t,2)}function DT(e){var t=e.getDay();return t>=4||t===0?Ga(e):Ga.ceil(e)}function SD(e,t){return e=DT(e),kt(Ga.count(Un(e),e)+(Un(e).getDay()===4),t,2)}function AD(e){return e.getDay()}function OD(e,t){return kt(_u.count(Un(e)-1,e),t,2)}function TD(e,t){return kt(e.getFullYear()%100,t,2)}function PD(e,t){return e=DT(e),kt(e.getFullYear()%100,t,2)}function ED(e,t){return kt(e.getFullYear()%1e4,t,4)}function CD(e,t){var r=e.getDay();return e=r>=4||r===0?Ga(e):Ga.ceil(e),kt(e.getFullYear()%1e4,t,4)}function MD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function Mb(e,t){return kt(e.getUTCDate(),t,2)}function kD(e,t){return kt(e.getUTCHours(),t,2)}function $D(e,t){return kt(e.getUTCHours()%12||12,t,2)}function jD(e,t){return kt(1+Tc.count(Wn(e),e),t,3)}function IT(e,t){return kt(e.getUTCMilliseconds(),t,3)}function RD(e,t){return IT(e,t)+"000"}function DD(e,t){return kt(e.getUTCMonth()+1,t,2)}function ID(e,t){return kt(e.getUTCMinutes(),t,2)}function ND(e,t){return kt(e.getUTCSeconds(),t,2)}function LD(e){var t=e.getUTCDay();return t===0?7:t}function BD(e,t){return kt(Ec.count(Wn(e)-1,e),t,2)}function NT(e){var t=e.getUTCDay();return t>=4||t===0?Ka(e):Ka.ceil(e)}function qD(e,t){return e=NT(e),kt(Ka.count(Wn(e),e)+(Wn(e).getUTCDay()===4),t,2)}function FD(e){return e.getUTCDay()}function zD(e,t){return kt(xu.count(Wn(e)-1,e),t,2)}function UD(e,t){return kt(e.getUTCFullYear()%100,t,2)}function WD(e,t){return e=NT(e),kt(e.getUTCFullYear()%100,t,2)}function HD(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function GD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ka(e):Ka.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function KD(){return"+0000"}function kb(){return"%"}function $b(e){return+e}function jb(e){return Math.floor(+e/1e3)}var wa,LT,BT;YD({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function YD(e){return wa=YR(e),LT=wa.format,wa.parse,BT=wa.utcFormat,wa.utcParse,wa}function XD(e){return new Date(e)}function VD(e){return e instanceof Date?+e:+new Date(+e)}function Av(e,t,r,n,i,a,o,s,l,u){var c=cv(),f=c.invert,h=c.domain,p=u(".%L"),y=u(":%S"),m=u("%I:%M"),d=u("%I %p"),v=u("%a %d"),w=u("%b %d"),b=u("%B"),_=u("%Y");function g(x){return(l(x)<x?p:s(x)<x?y:o(x)<x?m:a(x)<x?d:n(x)<x?i(x)<x?v:w:r(x)<x?b:_)(x)}return c.invert=function(x){return new Date(f(x))},c.domain=function(x){return arguments.length?h(Array.from(x,VD)):h().map(XD)},c.ticks=function(x){var S=h();return e(S[0],S[S.length-1],x??10)},c.tickFormat=function(x,S){return S==null?g:u(S)},c.nice=function(x){var S=h();return(!x||typeof x.range!="function")&&(x=t(S[0],S[S.length-1],x??10)),x?h(OT(S,x)):c},c.copy=function(){return _l(c,Av(e,t,r,n,i,a,o,s,l,u))},c}function wu(){return Ur.apply(Av(GR,KR,Un,wv,Pc,xl,_v,vv,Ni,LT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ZD(){return Ur.apply(Av(WR,HR,Wn,Sv,Ec,Tc,xv,bv,Ni,BT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Cc(){var e=0,t=1,r,n,i,a,o=Ye,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(h){var p,y;return arguments.length?([p,y]=h,o=f(p,y),u):[o(0),o(1)]}}return u.range=c(la),u.rangeRound=c(nv),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function yi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function qT(){var e=mi(Cc()(Ye));return e.copy=function(){return yi(e,qT())},Kn.apply(e,arguments)}function FT(){var e=pv(Cc()).domain([1,10]);return e.copy=function(){return yi(e,FT()).base(e.base())},Kn.apply(e,arguments)}function zT(){var e=dv(Cc());return e.copy=function(){return yi(e,zT()).constant(e.constant())},Kn.apply(e,arguments)}function Ov(){var e=mv(Cc());return e.copy=function(){return yi(e,Ov()).exponent(e.exponent())},Kn.apply(e,arguments)}function JD(){return Ov.apply(null,arguments).exponent(.5)}function UT(){var e=[],t=Ye;function r(n){if(n!=null&&!isNaN(n=+n))return t((bl(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ci),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>uR(e,a/n))},r.copy=function(){return UT(t).domain(e)},Kn.apply(r,arguments)}function Mc(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=Ye,c,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-a)*(n*m<n*a?s:l),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function y(m){return function(d){var v,w,b;return arguments.length?([v,w,b]=d,u=k$(m,[v,w,b]),p):[u(0),u(.5),u(1)]}}return p.range=y(la),p.rangeRound=y(nv),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return c=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function WT(){var e=mi(Mc()(Ye));return e.copy=function(){return yi(e,WT())},Kn.apply(e,arguments)}function HT(){var e=pv(Mc()).domain([.1,1,10]);return e.copy=function(){return yi(e,HT()).base(e.base())},Kn.apply(e,arguments)}function GT(){var e=dv(Mc());return e.copy=function(){return yi(e,GT()).constant(e.constant())},Kn.apply(e,arguments)}function Tv(){var e=mv(Mc());return e.copy=function(){return yi(e,Tv()).exponent(e.exponent())},Kn.apply(e,arguments)}function QD(){return Tv.apply(null,arguments).exponent(.5)}function Xt(e){return function(){return e}}const KT=Math.cos,Su=Math.sin,an=Math.sqrt,Rb=1e-12,Au=Math.PI,kc=2*Au,my=Math.PI,yy=2*my,ji=1e-6,tI=yy-ji;function YT(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function eI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return YT;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class rI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?YT:eI(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,c=o-t,f=s-r,h=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>ji)if(!(Math.abs(f*l-u*c)>ji)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,m=l*l+u*u,d=p*p+y*y,v=Math.sqrt(m),w=Math.sqrt(h),b=a*Math.tan((my-Math.acos((m+h-d)/(2*v*w)))/2),_=b/w,g=b/v;Math.abs(_-1)>ji&&this._append`L${t+_*c},${r+_*f}`,this._append`A${a},${a},0,0,${+(f*p>c*y)},${this._x1=t+g*l},${this._y1=r+g*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>ji||Math.abs(this._y1-c)>ji)&&this._append`L${u},${c}`,n&&(h<0&&(h=h%yy+yy),h>tI?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:h>ji&&this._append`A${n},${n},0,${+(h>=my)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Pv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new rI(t)}function Ev(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function XT(e){this._context=e}XT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ea(e){return new XT(e)}function VT(e){return e[0]}function ZT(e){return e[1]}function Cv(e,t){var r=Xt(!0),n=null,i=ea,a=null,o=Pv(s);e=typeof e=="function"?e:e===void 0?VT:Xt(e),t=typeof t=="function"?t:t===void 0?ZT:Xt(t);function s(l){var u,c=(l=Ev(l)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,u,l),+t(f,u,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Xt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Xt(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Xt(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Li(e,t,r){var n=null,i=Xt(!0),a=null,o=ea,s=null,l=Pv(u);e=typeof e=="function"?e:e===void 0?VT:Xt(+e),t=typeof t=="function"?t:Xt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ZT:Xt(+r);function u(f){var h,p,y,m=(f=Ev(f)).length,d,v=!1,w,b=new Array(m),_=new Array(m);for(a==null&&(s=o(w=l())),h=0;h<=m;++h){if(!(h<m&&i(d=f[h],h,f))===v)if(v=!v)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=p;--y)s.point(b[y],_[y]);s.lineEnd(),s.areaEnd()}v&&(b[h]=+e(d,h,f),_[h]=+t(d,h,f),s.point(n?+n(d,h,f):b[h],r?+r(d,h,f):_[h]))}if(w)return s=null,w+""||null}function c(){return Cv().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Xt(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Xt(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Xt(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Xt(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Xt(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Xt(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Xt(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class JT{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function nI(e){return new JT(e,!0)}function iI(e){return new JT(e,!1)}const Mv={draw(e,t){const r=an(t/Au);e.moveTo(r,0),e.arc(0,0,r,0,kc)}},aI={draw(e,t){const r=an(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},QT=an(1/3),oI=QT*2,sI={draw(e,t){const r=an(t/oI),n=r*QT;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},lI={draw(e,t){const r=an(t),n=-r/2;e.rect(n,n,r,r)}},uI=.8908130915292852,tP=Su(Au/10)/Su(7*Au/10),cI=Su(kc/10)*tP,fI=-KT(kc/10)*tP,hI={draw(e,t){const r=an(t*uI),n=cI*r,i=fI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=kc*a/5,s=KT(o),l=Su(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},kf=an(3),pI={draw(e,t){const r=-an(t/(kf*3));e.moveTo(0,r*2),e.lineTo(-kf*r,-r),e.lineTo(kf*r,-r),e.closePath()}},kr=-.5,$r=an(3)/2,gy=1/an(12),dI=(gy/2+1)*3,mI={draw(e,t){const r=an(t/dI),n=r/2,i=r*gy,a=n,o=r*gy+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(kr*n-$r*i,$r*n+kr*i),e.lineTo(kr*a-$r*o,$r*a+kr*o),e.lineTo(kr*s-$r*l,$r*s+kr*l),e.lineTo(kr*n+$r*i,kr*i-$r*n),e.lineTo(kr*a+$r*o,kr*o-$r*a),e.lineTo(kr*s+$r*l,kr*l-$r*s),e.closePath()}};function yI(e,t){let r=null,n=Pv(i);e=typeof e=="function"?e:Xt(e||Mv),t=typeof t=="function"?t:Xt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Xt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Xt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ou(){}function Tu(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function eP(e){this._context=e}eP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Tu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Tu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gI(e){return new eP(e)}function rP(e){this._context=e}rP.prototype={areaStart:Ou,areaEnd:Ou,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Tu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vI(e){return new rP(e)}function nP(e){this._context=e}nP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Tu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bI(e){return new nP(e)}function Db(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function kv(e,t){this._context=e,this._k=(1-t)/6}kv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Db(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Db(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function r(n){return new kv(n,t)}return r.tension=function(n){return e(+n)},r})(0);function _I(e,t,r){var n=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Rb){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Rb){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,i,a,o,e._x2,e._y2)}function iP(e,t){this._context=e,this._alpha=t}iP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:_I(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xI=(function e(t){function r(n){return t?new iP(n,t):new kv(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function aP(e){this._context=e}aP.prototype={areaStart:Ou,areaEnd:Ou,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function wI(e){return new aP(e)}function Ib(e){return e<0?-1:1}function Nb(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Ib(a)+Ib(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Lb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function $f(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Pu(e){this._context=e}Pu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$f(this,this._t0,Lb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,$f(this,Lb(this,r=Nb(this,e,t)),r);break;default:$f(this,this._t0,r=Nb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function oP(e){this._context=new sP(e)}(oP.prototype=Object.create(Pu.prototype)).point=function(e,t){Pu.prototype.point.call(this,t,e)};function sP(e){this._context=e}sP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function SI(e){return new Pu(e)}function AI(e){return new oP(e)}function lP(e){this._context=e}lP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Bb(e),i=Bb(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Bb(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function OI(e){return new lP(e)}function $c(e,t){this._context=e,this._t=t}$c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function TI(e){return new $c(e,.5)}function PI(e){return new $c(e,0)}function EI(e){return new $c(e,1)}function Ya(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function vy(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function CI(e,t){return e[t]}function MI(e){const t=[];return t.key=e,t}function Eu(){var e=Xt([]),t=vy,r=Ya,n=CI;function i(a){var o=Array.from(e.apply(this,arguments),MI),s,l=o.length,u=-1,c;for(const f of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,c=Ev(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Xt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Xt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?vy:typeof a=="function"?a:Xt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ya,i):r},i}function kI(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Ya(e,t)}}function $I(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Ya(e,t)}}function jI(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,h=c[n-1][1]||0,p=(f-h)/2,y=0;y<s;++y){var m=e[t[y]],d=m[n][1]||0,v=m[n-1][1]||0;p+=d-v}l+=f,u+=p*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Ya(e,t)}}function jn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
1
+ "use strict";var uk=Object.defineProperty;var ck=(e,t,r)=>t in e?uk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ko=(e,t,r)=>ck(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react/jsx-runtime"),Q=require("@mui/material"),O=require("react"),WO=require("@mui/icons-material");function fk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Kr=fk(O);function hk(e){return e}var xf=1,_f=2,ey=3,us=4,F0=1e-6;function pk(e){return"translate("+e+",0)"}function dk(e){return"translate(0,"+e+")"}function mk(e){return t=>+e(t)}function yk(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function gk(){return!this.__axis}function HO(e,t){var r=[],n=null,i=null,a=6,o=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===xf||e===us?-1:1,c=e===us||e===_f?"x":"y",f=e===xf||e===ey?pk:dk;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,r):hk),d=Math.max(a,0)+s,b=t.range(),v=+b[0]+l,x=+b[b.length-1]+l,_=(t.bandwidth?yk:mk)(t.copy(),l),g=p.selection?p.selection():p,w=g.selectAll(".domain").data([null]),S=g.selectAll(".tick").data(y,t).order(),A=S.exit(),T=S.enter().append("g").attr("class","tick"),M=S.select("line"),P=S.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(T),M=M.merge(T.append("line").attr("stroke","currentColor").attr(c+"2",u*a)),P=P.merge(T.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",e===xf?"0em":e===ey?"0.71em":"0.32em")),p!==g&&(w=w.transition(p),S=S.transition(p),M=M.transition(p),P=P.transition(p),A=A.transition(p).attr("opacity",F0).attr("transform",function(E){return isFinite(E=_(E))?f(E+l):this.getAttribute("transform")}),T.attr("opacity",F0).attr("transform",function(E){var C=this.parentNode.__axis;return f((C&&isFinite(C=C(E))?C:_(E))+l)})),A.remove(),w.attr("d",e===us||e===_f?o?"M"+u*o+","+v+"H"+l+"V"+x+"H"+u*o:"M"+l+","+v+"V"+x:o?"M"+v+","+u*o+"V"+l+"H"+x+"V"+u*o:"M"+v+","+l+"H"+x),S.attr("opacity",1).attr("transform",function(E){return f(_(E)+l)}),M.attr(c+"2",u*a),P.attr(c,u*d).text(m),g.filter(gk).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===_f?"start":e===us?"end":"middle"),g.each(function(){this.__axis=_})}return h.scale=function(p){return arguments.length?(t=p,h):t},h.ticks=function(){return r=Array.from(arguments),h},h.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),h):r.slice()},h.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),h):n&&n.slice()},h.tickFormat=function(p){return arguments.length?(i=p,h):i},h.tickSize=function(p){return arguments.length?(a=o=+p,h):a},h.tickSizeInner=function(p){return arguments.length?(a=+p,h):a},h.tickSizeOuter=function(p){return arguments.length?(o=+p,h):o},h.tickPadding=function(p){return arguments.length?(s=+p,h):s},h.offset=function(p){return arguments.length?(l=+p,h):l},h}function oa(e){return HO(ey,e)}function sa(e){return HO(us,e)}var vk={value:()=>{}};function ev(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new lu(r)}function lu(e){this._=e}function bk(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}lu.prototype=ev.prototype={constructor:lu,on:function(e,t){var r=this._,n=bk(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=xk(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=n[a]).type)r[i]=z0(r[i],e.name,t);else if(t==null)for(i in r)r[i]=z0(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new lu(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function xk(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function z0(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=vk,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var ry="http://www.w3.org/1999/xhtml";const U0={svg:"http://www.w3.org/2000/svg",xhtml:ry,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Tc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),U0.hasOwnProperty(t)?{space:U0[t],local:e}:e}function _k(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ry&&t.documentElement.namespaceURI===ry?t.createElement(e):t.createElementNS(r,e)}}function wk(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function GO(e){var t=Tc(e);return(t.local?wk:_k)(t)}function Sk(){}function rv(e){return e==null?Sk:function(){return this.querySelector(e)}}function Ak(e){typeof e!="function"&&(e=rv(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=new Array(o),l,u,c=0;c<o;++c)(l=a[c])&&(u=e.call(l,l.__data__,c,a))&&("__data__"in l&&(u.__data__=l.__data__),s[c]=u);return new $r(n,this._parents)}function Ok(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Tk(){return[]}function KO(e){return e==null?Tk:function(){return this.querySelectorAll(e)}}function Pk(e){return function(){return Ok(e.apply(this,arguments))}}function Ek(e){typeof e=="function"?e=Pk(e):e=KO(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var o=t[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(n.push(e.call(l,l.__data__,u,o)),i.push(l));return new $r(n,i)}function XO(e){return function(){return this.matches(e)}}function YO(e){return function(t){return t.matches(e)}}var Mk=Array.prototype.find;function Ck(e){return function(){return Mk.call(this.children,e)}}function kk(){return this.firstElementChild}function $k(e){return this.select(e==null?kk:Ck(typeof e=="function"?e:YO(e)))}var jk=Array.prototype.filter;function Rk(){return Array.from(this.children)}function Dk(e){return function(){return jk.call(this.children,e)}}function Ik(e){return this.selectAll(e==null?Rk:Dk(typeof e=="function"?e:YO(e)))}function Nk(e){typeof e!="function"&&(e=XO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new $r(n,this._parents)}function VO(e){return new Array(e.length)}function Lk(){return new $r(this._enter||this._groups.map(VO),this._parents)}function mu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}mu.prototype={constructor:mu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Bk(e){return function(){return e}}function qk(e,t,r,n,i,a){for(var o=0,s,l=t.length,u=a.length;o<u;++o)(s=t[o])?(s.__data__=a[o],n[o]=s):r[o]=new mu(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function Fk(e,t,r,n,i,a,o){var s,l,u=new Map,c=t.length,f=a.length,h=new Array(c),p;for(s=0;s<c;++s)(l=t[s])&&(h[s]=p=o.call(l,l.__data__,s,t)+"",u.has(p)?i[s]=l:u.set(p,l));for(s=0;s<f;++s)p=o.call(e,a[s],s,a)+"",(l=u.get(p))?(n[s]=l,l.__data__=a[s],u.delete(p)):r[s]=new mu(e,a[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(h[s])===l&&(i[s]=l)}function zk(e){return e.__data__}function Uk(e,t){if(!arguments.length)return Array.from(this,zk);var r=t?Fk:qk,n=this._parents,i=this._groups;typeof e!="function"&&(e=Bk(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),u=0;u<a;++u){var c=n[u],f=i[u],h=f.length,p=Wk(e.call(c,c&&c.__data__,u,n)),y=p.length,m=s[u]=new Array(y),d=o[u]=new Array(y),b=l[u]=new Array(h);r(c,f,m,d,b,p,t);for(var v=0,x=0,_,g;v<y;++v)if(_=m[v]){for(v>=x&&(x=v+1);!(g=d[x])&&++x<y;);_._next=g||null}}return o=new $r(o,n),o._enter=s,o._exit=l,o}function Wk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Hk(){return new $r(this._exit||this._groups.map(VO),this._parents)}function Gk(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function Kk(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var u=r[l],c=n[l],f=u.length,h=s[l]=new Array(f),p,y=0;y<f;++y)(p=u[y]||c[y])&&(h[y]=p);for(;l<i;++l)s[l]=r[l];return new $r(s,this._parents)}function Xk(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,a=n[i],o;--i>=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Yk(e){e||(e=Vk);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o=r[a],s=o.length,l=i[a]=new Array(s),u,c=0;c<s;++c)(u=o[c])&&(l[c]=u);l.sort(t)}return new $r(i,this._parents).order()}function Vk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Zk(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Jk(){return Array.from(this)}function Qk(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null}function t$(){let e=0;for(const t of this)++e;return e}function e$(){return!this.node()}function r$(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function n$(e){return function(){this.removeAttribute(e)}}function i$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function a$(e,t){return function(){this.setAttribute(e,t)}}function o$(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function s$(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function l$(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function u$(e,t){var r=Tc(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?i$:n$:typeof t=="function"?r.local?l$:s$:r.local?o$:a$)(r,t))}function ZO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function c$(e){return function(){this.style.removeProperty(e)}}function f$(e,t,r){return function(){this.style.setProperty(e,t,r)}}function h$(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function p$(e,t,r){return arguments.length>1?this.each((t==null?c$:typeof t=="function"?h$:f$)(e,t,r??"")):Va(this.node(),e)}function Va(e,t){return e.style.getPropertyValue(t)||ZO(e).getComputedStyle(e,null).getPropertyValue(t)}function d$(e){return function(){delete this[e]}}function m$(e,t){return function(){this[e]=t}}function y$(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function g$(e,t){return arguments.length>1?this.each((t==null?d$:typeof t=="function"?y$:m$)(e,t)):this.node()[e]}function JO(e){return e.trim().split(/^|\s+/)}function nv(e){return e.classList||new QO(e)}function QO(e){this._node=e,this._names=JO(e.getAttribute("class")||"")}QO.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tT(e,t){for(var r=nv(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function eT(e,t){for(var r=nv(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function v$(e){return function(){tT(this,e)}}function b$(e){return function(){eT(this,e)}}function x$(e,t){return function(){(t.apply(this,arguments)?tT:eT)(this,e)}}function _$(e,t){var r=JO(e+"");if(arguments.length<2){for(var n=nv(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?x$:t?v$:b$)(r,t))}function w$(){this.textContent=""}function S$(e){return function(){this.textContent=e}}function A$(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function O$(e){return arguments.length?this.each(e==null?w$:(typeof e=="function"?A$:S$)(e)):this.node().textContent}function T$(){this.innerHTML=""}function P$(e){return function(){this.innerHTML=e}}function E$(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function M$(e){return arguments.length?this.each(e==null?T$:(typeof e=="function"?E$:P$)(e)):this.node().innerHTML}function C$(){this.nextSibling&&this.parentNode.appendChild(this)}function k$(){return this.each(C$)}function $$(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function j$(){return this.each($$)}function R$(e){var t=typeof e=="function"?e:GO(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function D$(){return null}function I$(e,t){var r=typeof e=="function"?e:GO(e),n=t==null?D$:typeof t=="function"?t:rv(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function N$(){var e=this.parentNode;e&&e.removeChild(this)}function L$(){return this.each(N$)}function B$(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function q$(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function F$(e){return this.select(e?q$:B$)}function z$(e){return arguments.length?this.property("__data__",e):this.node().__data__}function U$(e){return function(t){e.call(this,t,this.__data__)}}function W$(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function H$(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function G$(e,t,r){return function(){var n=this.__on,i,a=U$(t);if(n){for(var o=0,s=n.length;o<s;++o)if((i=n[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=t;return}}this.addEventListener(e.type,a,r),i={type:e.type,name:e.name,value:t,listener:a,options:r},n?n.push(i):this.__on=[i]}}function K$(e,t,r){var n=W$(e+""),i,a=n.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,c;l<u;++l)for(i=0,c=s[l];i<a;++i)if((o=n[i]).type===c.type&&o.name===c.name)return c.value}return}for(s=t?G$:H$,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function rT(e,t,r){var n=ZO(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function X$(e,t){return function(){return rT(this,e,t)}}function Y$(e,t){return function(){return rT(this,e,t.apply(this,arguments))}}function V$(e,t){return this.each((typeof t=="function"?Y$:X$)(e,t))}function*Z$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var nT=[null];function $r(e,t){this._groups=e,this._parents=t}function jo(){return new $r([[document.documentElement]],nT)}function J$(){return this}$r.prototype=jo.prototype={constructor:$r,select:Ak,selectAll:Ek,selectChild:$k,selectChildren:Ik,filter:Nk,data:Uk,enter:Lk,exit:Hk,join:Gk,merge:Kk,selection:J$,order:Xk,sort:Yk,call:Zk,nodes:Jk,node:Qk,size:t$,empty:e$,each:r$,attr:u$,style:p$,property:g$,classed:_$,text:O$,html:M$,raise:k$,lower:j$,append:R$,insert:I$,remove:L$,clone:F$,datum:z$,on:K$,dispatch:V$,[Symbol.iterator]:Z$};function ee(e){return typeof e=="string"?new $r([[document.querySelector(e)]],[document.documentElement]):new $r([[e]],nT)}function Q$(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Za(e,t){if(e=Q$(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(t.getScreenCTM().inverse()),[n.x,n.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const ny={capture:!0,passive:!1};function iy(e){e.preventDefault(),e.stopImmediatePropagation()}function tj(e){var t=e.document.documentElement,r=ee(e).on("dragstart.drag",iy,ny);"onselectstart"in t?r.on("selectstart.drag",iy,ny):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function ej(e,t){var r=e.document.documentElement,n=ee(e).on("dragstart.drag",null);t&&(n.on("click.drag",iy,ny),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function iv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function iT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ol(){}var js=.7,yu=1/js,Fa="\\s*([+-]?\\d+)\\s*",Rs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rj=/^#([0-9a-f]{3,8})$/,nj=new RegExp(`^rgb\\(${Fa},${Fa},${Fa}\\)$`),ij=new RegExp(`^rgb\\(${Tn},${Tn},${Tn}\\)$`),aj=new RegExp(`^rgba\\(${Fa},${Fa},${Fa},${Rs}\\)$`),oj=new RegExp(`^rgba\\(${Tn},${Tn},${Tn},${Rs}\\)$`),sj=new RegExp(`^hsl\\(${Rs},${Tn},${Tn}\\)$`),lj=new RegExp(`^hsla\\(${Rs},${Tn},${Tn},${Rs}\\)$`),W0={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};iv(Ol,la,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:H0,formatHex:H0,formatHex8:uj,formatHsl:cj,formatRgb:G0,toString:G0});function H0(){return this.rgb().formatHex()}function uj(){return this.rgb().formatHex8()}function cj(){return aT(this).formatHsl()}function G0(){return this.rgb().formatRgb()}function la(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=rj.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?K0(t):r===3?new ur(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Fl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Fl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=nj.exec(e))?new ur(t[1],t[2],t[3],1):(t=ij.exec(e))?new ur(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aj.exec(e))?Fl(t[1],t[2],t[3],t[4]):(t=oj.exec(e))?Fl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sj.exec(e))?V0(t[1],t[2]/100,t[3]/100,1):(t=lj.exec(e))?V0(t[1],t[2]/100,t[3]/100,t[4]):W0.hasOwnProperty(e)?K0(W0[e]):e==="transparent"?new ur(NaN,NaN,NaN,0):null}function K0(e){return new ur(e>>16&255,e>>8&255,e&255,1)}function Fl(e,t,r,n){return n<=0&&(e=t=r=NaN),new ur(e,t,r,n)}function fj(e){return e instanceof Ol||(e=la(e)),e?(e=e.rgb(),new ur(e.r,e.g,e.b,e.opacity)):new ur}function ay(e,t,r,n){return arguments.length===1?fj(e):new ur(e,t,r,n??1)}function ur(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}iv(ur,ay,iT(Ol,{brighter(e){return e=e==null?yu:Math.pow(yu,e),new ur(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?js:Math.pow(js,e),new ur(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ur(Ji(this.r),Ji(this.g),Ji(this.b),gu(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:X0,formatHex:X0,formatHex8:hj,formatRgb:Y0,toString:Y0}));function X0(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}`}function hj(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}${Hi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Y0(){const e=gu(this.opacity);return`${e===1?"rgb(":"rgba("}${Ji(this.r)}, ${Ji(this.g)}, ${Ji(this.b)}${e===1?")":`, ${e})`}`}function gu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ji(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hi(e){return e=Ji(e),(e<16?"0":"")+e.toString(16)}function V0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new an(e,t,r,n)}function aT(e){if(e instanceof an)return new an(e.h,e.s,e.l,e.opacity);if(e instanceof Ol||(e=la(e)),!e)return new an;if(e instanceof an)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new an(o,s,l,e.opacity)}function pj(e,t,r,n){return arguments.length===1?aT(e):new an(e,t,r,n??1)}function an(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}iv(an,pj,iT(Ol,{brighter(e){return e=e==null?yu:Math.pow(yu,e),new an(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?js:Math.pow(js,e),new an(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new ur(wf(e>=240?e-240:e+120,i,n),wf(e,i,n),wf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new an(Z0(this.h),zl(this.s),zl(this.l),gu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=gu(this.opacity);return`${e===1?"hsl(":"hsla("}${Z0(this.h)}, ${zl(this.s)*100}%, ${zl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Z0(e){return e=(e||0)%360,e<0?e+360:e}function zl(e){return Math.max(0,Math.min(1,e||0))}function wf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const av=e=>()=>e;function dj(e,t){return function(r){return e+r*t}}function mj(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function yj(e){return(e=+e)==1?oT:function(t,r){return r-t?mj(t,r,e):av(isNaN(t)?r:t)}}function oT(e,t){var r=t-e;return r?dj(e,r):av(isNaN(e)?t:e)}const vu=(function e(t){var r=yj(t);function n(i,a){var o=r((i=ay(i)).r,(a=ay(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=oT(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n})(1);function gj(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function vj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function bj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=ya(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function xj(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function nn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function _j(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=ya(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var oy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sf=new RegExp(oy.source,"g");function wj(e){return function(){return e}}function Sj(e){return function(t){return e(t)+""}}function sT(e,t){var r=oy.lastIndex=Sf.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=oy.exec(e))&&(i=Sf.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:nn(n,i)})),r=Sf.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?Sj(l[0].x):wj(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function ya(e,t){var r=typeof t,n;return t==null||r==="boolean"?av(t):(r==="number"?nn:r==="string"?(n=la(t))?(t=n,vu):sT:t instanceof la?vu:t instanceof Date?xj:vj(t)?gj:Array.isArray(t)?bj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?_j:nn)(e,t)}function ov(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var J0=180/Math.PI,sy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lT(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*J0,skewX:Math.atan(l)*J0,scaleX:o,scaleY:s}}var Ul;function Aj(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?sy:lT(t.a,t.b,t.c,t.d,t.e,t.f)}function Oj(e){return e==null||(Ul||(Ul=document.createElementNS("http://www.w3.org/2000/svg","g")),Ul.setAttribute("transform",e),!(e=Ul.transform.baseVal.consolidate()))?sy:(e=e.matrix,lT(e.a,e.b,e.c,e.d,e.e,e.f))}function uT(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:nn(u,f)},{i:m-2,x:nn(c,h)})}else(f||h)&&p.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:nn(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:nn(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");y.push({i:m-4,x:nn(u,f)},{i:m-2,x:nn(c,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(p){for(var y=-1,m=h.length,d;++y<m;)f[(d=h[y]).i]=d.x(p);return f.join("")}}}var Tj=uT(Aj,"px, ","px)","deg)"),Pj=uT(Oj,", ",")",")");function Ej(e,t){t===void 0&&(t=e,e=ya);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}var Ja=0,cs=0,Xo=0,cT=1e3,bu,fs,xu=0,ua=0,Pc=0,Ds=typeof performance=="object"&&performance.now?performance:Date,fT=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function sv(){return ua||(fT(Mj),ua=Ds.now()+Pc)}function Mj(){ua=0}function _u(){this._call=this._time=this._next=null}_u.prototype=hT.prototype={constructor:_u,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?sv():+r)+(t==null?0:+t),!this._next&&fs!==this&&(fs?fs._next=this:bu=this,fs=this),this._call=e,this._time=r,ly()},stop:function(){this._call&&(this._call=null,this._time=1/0,ly())}};function hT(e,t,r){var n=new _u;return n.restart(e,t,r),n}function Cj(){sv(),++Ja;for(var e=bu,t;e;)(t=ua-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ja}function Q0(){ua=(xu=Ds.now())+Pc,Ja=cs=0;try{Cj()}finally{Ja=0,$j(),ua=0}}function kj(){var e=Ds.now(),t=e-xu;t>cT&&(Pc-=t,xu=e)}function $j(){for(var e,t=bu,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:bu=r);fs=e,ly(n)}function ly(e){if(!Ja){cs&&(cs=clearTimeout(cs));var t=e-ua;t>24?(e<1/0&&(cs=setTimeout(Q0,e-Ds.now()-Pc)),Xo&&(Xo=clearInterval(Xo))):(Xo||(xu=Ds.now(),Xo=setInterval(kj,cT)),Ja=1,fT(Q0))}}function tb(e,t,r){var n=new _u;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var jj=ev("start","end","cancel","interrupt"),Rj=[],pT=0,eb=1,uy=2,uu=3,rb=4,cy=5,cu=6;function Ec(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;Dj(e,r,{name:t,index:n,group:i,on:jj,tween:Rj,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:pT})}function lv(e,t){var r=ln(e,t);if(r.state>pT)throw new Error("too late; already scheduled");return r}function kn(e,t){var r=ln(e,t);if(r.state>uu)throw new Error("too late; already running");return r}function ln(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Dj(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=hT(a,0,r.time);function a(u){r.state=eb,r.timer.restart(o,r.delay,r.time),r.delay<=u&&o(u-r.delay)}function o(u){var c,f,h,p;if(r.state!==eb)return l();for(c in n)if(p=n[c],p.name===r.name){if(p.state===uu)return tb(o);p.state===rb?(p.state=cu,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=cu,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(tb(function(){r.state===uu&&(r.state=rb,r.timer.restart(s,r.delay,r.time),s(u))}),r.state=uy,r.on.call("start",e,e.__data__,r.index,r.group),r.state===uy){for(r.state=uu,i=new Array(h=r.tween.length),c=0,f=-1;c<h;++c)(p=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=p);i.length=f+1}}function s(u){for(var c=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=cy,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===cy&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=cu,r.timer.stop(),delete n[t];for(var u in n)return;delete e.__transition}}function fy(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>uy&&n.state<cy,n.state=cu,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}a&&delete e.__transition}}function Ij(e){return this.each(function(){fy(this,e)})}function Nj(e,t){var r,n;return function(){var i=kn(this,e),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===t){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function Lj(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=kn(this,e),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:t,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}a.tween=i}}function Bj(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=ln(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?Nj:Lj)(r,e,t))}function uv(e,t,r){var n=e._id;return e.each(function(){var i=kn(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return ln(i,n).value[t]}}function dT(e,t){var r;return(typeof t=="number"?nn:t instanceof la?vu:(r=la(t))?(t=r,vu):sT)(e,t)}function qj(e){return function(){this.removeAttribute(e)}}function Fj(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zj(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}}function Uj(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}function Wj(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function Hj(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function Gj(e,t){var r=Tc(e),n=r==="transform"?Pj:dT;return this.attrTween(e,typeof t=="function"?(r.local?Hj:Wj)(r,n,uv(this,"attr."+e,t)):t==null?(r.local?Fj:qj)(r):(r.local?Uj:zj)(r,n,t))}function Kj(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Xj(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Yj(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Xj(e,a)),r}return i._value=t,i}function Vj(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Kj(e,a)),r}return i._value=t,i}function Zj(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=Tc(e);return this.tween(r,(n.local?Yj:Vj)(n,t))}function Jj(e,t){return function(){lv(this,e).delay=+t.apply(this,arguments)}}function Qj(e,t){return t=+t,function(){lv(this,e).delay=t}}function t2(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Jj:Qj)(t,e)):ln(this.node(),t).delay}function e2(e,t){return function(){kn(this,e).duration=+t.apply(this,arguments)}}function r2(e,t){return t=+t,function(){kn(this,e).duration=t}}function n2(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?e2:r2)(t,e)):ln(this.node(),t).duration}function i2(e,t){if(typeof t!="function")throw new Error;return function(){kn(this,e).ease=t}}function a2(e){var t=this._id;return arguments.length?this.each(i2(t,e)):ln(this.node(),t).ease}function o2(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;kn(this,e).ease=r}}function s2(e){if(typeof e!="function")throw new Error;return this.each(o2(this._id,e))}function l2(e){typeof e!="function"&&(e=XO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Hn(n,this._parents,this._name,this._id)}function u2(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var l=t[s],u=r[s],c=l.length,f=o[s]=new Array(c),h,p=0;p<c;++p)(h=l[p]||u[p])&&(f[p]=h);for(;s<n;++s)o[s]=t[s];return new Hn(o,this._parents,this._name,this._id)}function c2(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function f2(e,t,r){var n,i,a=c2(t)?lv:kn;return function(){var o=a(this,e),s=o.on;s!==n&&(i=(n=s).copy()).on(t,r),o.on=i}}function h2(e,t){var r=this._id;return arguments.length<2?ln(this.node(),r).on.on(e):this.each(f2(r,e,t))}function p2(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function d2(){return this.on("end.remove",p2(this._id))}function m2(e){var t=this._name,r=this._id;typeof e!="function"&&(e=rv(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s=n[o],l=s.length,u=a[o]=new Array(l),c,f,h=0;h<l;++h)(c=s[h])&&(f=e.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),u[h]=f,Ec(u[h],t,r,h,u,ln(c,r)));return new Hn(a,this._parents,t,r)}function y2(e){var t=this._name,r=this._id;typeof e!="function"&&(e=KO(e));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var l=n[s],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var h=e.call(c,c.__data__,f,l),p,y=ln(c,r),m=0,d=h.length;m<d;++m)(p=h[m])&&Ec(p,t,r,m,h,y);a.push(h),o.push(c)}return new Hn(a,o,t,r)}var g2=jo.prototype.constructor;function v2(){return new g2(this._groups,this._parents)}function b2(e,t){var r,n,i;return function(){var a=Va(this,e),o=(this.style.removeProperty(e),Va(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function mT(e){return function(){this.style.removeProperty(e)}}function x2(e,t,r){var n,i=r+"",a;return function(){var o=Va(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function _2(e,t,r){var n,i,a;return function(){var o=Va(this,e),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Va(this,e))),o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s))}}function w2(e,t){var r,n,i,a="style."+t,o="end."+a,s;return function(){var l=kn(this,e),u=l.on,c=l.value[a]==null?s||(s=mT(t)):void 0;(u!==r||i!==c)&&(n=(r=u).copy()).on(o,i=c),l.on=n}}function S2(e,t,r){var n=(e+="")=="transform"?Tj:dT;return t==null?this.styleTween(e,b2(e,n)).on("end.style."+e,mT(e)):typeof t=="function"?this.styleTween(e,_2(e,n,uv(this,"style."+e,t))).each(w2(this._id,e)):this.styleTween(e,x2(e,n,t),r).on("end.style."+e,null)}function A2(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function O2(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&A2(e,o,r)),n}return a._value=t,a}function T2(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,O2(e,t,r??""))}function P2(e){return function(){this.textContent=e}}function E2(e){return function(){var t=e(this);this.textContent=t??""}}function M2(e){return this.tween("text",typeof e=="function"?E2(uv(this,"text",e)):P2(e==null?"":e+""))}function C2(e){return function(t){this.textContent=e.call(this,t)}}function k2(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&C2(i)),t}return n._value=e,n}function $2(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,k2(e))}function j2(){for(var e=this._name,t=this._id,r=yT(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var c=ln(l,t);Ec(l,e,r,u,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Hn(n,this._parents,e,r)}function R2(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};r.each(function(){var u=kn(this,n),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),u.on=t}),i===0&&a()})}var D2=0;function Hn(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function cv(e){return jo().transition(e)}function yT(){return++D2}var jn=jo.prototype;Hn.prototype=cv.prototype={constructor:Hn,select:m2,selectAll:y2,selectChild:jn.selectChild,selectChildren:jn.selectChildren,filter:l2,merge:u2,selection:v2,transition:j2,call:jn.call,nodes:jn.nodes,node:jn.node,size:jn.size,empty:jn.empty,each:jn.each,on:h2,attr:Gj,attrTween:Zj,style:S2,styleTween:T2,text:M2,textTween:$2,remove:d2,tween:Bj,delay:t2,duration:n2,ease:a2,easeVarying:s2,end:R2,[Symbol.iterator]:jn[Symbol.iterator]};function I2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var N2={time:null,delay:0,duration:250,ease:I2};function L2(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function B2(e){var t,r;e instanceof Hn?(t=e._id,e=e._name):(t=yT(),(r=N2).time=sv(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&Ec(l,e,t,u,o,r||L2(l,t));return new Hn(n,this._parents,e,t)}jo.prototype.interrupt=Ij;jo.prototype.transition=B2;const Af=e=>()=>e;function q2(e,{sourceEvent:t,target:r,selection:n,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function F2(e){e.stopImmediatePropagation()}function Of(e){e.preventDefault(),e.stopImmediatePropagation()}var nb={name:"drag"},Tf={name:"space"},Pa={name:"handle"},Ea={name:"center"};const{abs:ib,max:Ge,min:Ke}=Math;function ab(e){return[+e[0],+e[1]]}function ob(e){return[ab(e[0]),ab(e[1])]}var fu={name:"x",handles:["w","e"].map(hy),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Pf={},Rn={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},sb={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},lb={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},z2={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},U2={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function hy(e){return{type:e}}function W2(e){return!e.ctrlKey&&!e.button}function H2(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function G2(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ef(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function K2(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Tl(){return X2(fu)}function X2(e){var t=H2,r=W2,n=G2,i=!0,a=ev("start","brush","end"),o=6,s;function l(d){var b=d.property("__brush",m).selectAll(".overlay").data([hy("overlay")]);b.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Rn.overlay).merge(b).each(function(){var x=Ef(this).extent;ee(this).attr("x",x[0][0]).attr("y",x[0][1]).attr("width",x[1][0]-x[0][0]).attr("height",x[1][1]-x[0][1])}),d.selectAll(".selection").data([hy("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Rn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var v=d.selectAll(".handle").data(e.handles,function(x){return x.type});v.exit().remove(),v.enter().append("rect").attr("class",function(x){return"handle handle--"+x.type}).attr("cursor",function(x){return Rn[x.type]}),d.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(n).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(d,b,v){d.tween?d.on("start.brush",function(x){c(this,arguments).beforestart().start(x)}).on("interrupt.brush end.brush",function(x){c(this,arguments).end(x)}).tween("brush",function(){var x=this,_=x.__brush,g=c(x,arguments),w=_.selection,S=e.input(typeof b=="function"?b.apply(this,arguments):b,_.extent),A=ya(w,S);function T(M){_.selection=M===1&&S===null?null:A(M),u.call(x),g.brush()}return w!==null&&S!==null?T:T(1)}):d.each(function(){var x=this,_=arguments,g=x.__brush,w=e.input(typeof b=="function"?b.apply(x,_):b,g.extent),S=c(x,_).beforestart();fy(x),g.selection=w===null?null:w,u.call(x),S.start(v).brush(v).end(v)})},l.clear=function(d,b){l.move(d,null,b)};function u(){var d=ee(this),b=Ef(this).selection;b?(d.selectAll(".selection").style("display",null).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1]),d.selectAll(".handle").style("display",null).attr("x",function(v){return v.type[v.type.length-1]==="e"?b[1][0]-o/2:b[0][0]-o/2}).attr("y",function(v){return v.type[0]==="s"?b[1][1]-o/2:b[0][1]-o/2}).attr("width",function(v){return v.type==="n"||v.type==="s"?b[1][0]-b[0][0]+o:o}).attr("height",function(v){return v.type==="e"||v.type==="w"?b[1][1]-b[0][1]+o:o})):d.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(d,b,v){var x=d.__brush.emitter;return x&&(!v||!x.clean)?x:new f(d,b,v)}function f(d,b,v){this.that=d,this.args=b,this.state=d.__brush,this.active=0,this.clean=v}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(d,b){return this.starting?(this.starting=!1,this.emit("start",d,b)):this.emit("brush",d),this},brush:function(d,b){return this.emit("brush",d,b),this},end:function(d,b){return--this.active===0&&(delete this.state.emitter,this.emit("end",d,b)),this},emit:function(d,b,v){var x=ee(this.that).datum();a.call(d,this.that,new q2(d,{sourceEvent:b,target:l,selection:e.output(this.state.selection),mode:v,dispatch:a}),x)}};function h(d){if(s&&!d.touches||!r.apply(this,arguments))return;var b=this,v=d.target.__data__.type,x=(i&&d.metaKey?v="overlay":v)==="selection"?nb:i&&d.altKey?Ea:Pa,_=e===Pf?null:z2[v],g=e===fu?null:U2[v],w=Ef(b),S=w.extent,A=w.selection,T=S[0][0],M,P,E=S[0][1],C,$,j=S[1][0],k,R,L=S[1][1],U,I,B=0,q=0,N,G=_&&g&&i&&d.shiftKey,F,K,Z=Array.from(d.touches||[d],at=>{const mt=at.identifier;return at=Za(at,b),at.point0=at.slice(),at.identifier=mt,at});fy(b);var X=c(b,arguments,!0).beforestart();if(v==="overlay"){A&&(N=!0);const at=[Z[0],Z[1]||Z[0]];w.selection=A=[[M=e===Pf?T:Ke(at[0][0],at[1][0]),C=e===fu?E:Ke(at[0][1],at[1][1])],[k=e===Pf?j:Ge(at[0][0],at[1][0]),U=e===fu?L:Ge(at[0][1],at[1][1])]],Z.length>1&&rt(d)}else M=A[0][0],C=A[0][1],k=A[1][0],U=A[1][1];P=M,$=C,R=k,I=U;var z=ee(b).attr("pointer-events","none"),Y=z.selectAll(".overlay").attr("cursor",Rn[v]);if(d.touches)X.moved=D,X.ended=W;else{var V=ee(d.view).on("mousemove.brush",D,!0).on("mouseup.brush",W,!0);i&&V.on("keydown.brush",tt,!0).on("keyup.brush",ct,!0),tj(d.view)}u.call(b),X.start(d,x.name);function D(at){for(const mt of at.changedTouches||[at])for(const Et of Z)Et.identifier===mt.identifier&&(Et.cur=Za(mt,b));if(G&&!F&&!K&&Z.length===1){const mt=Z[0];ib(mt.cur[0]-mt[0])>ib(mt.cur[1]-mt[1])?K=!0:F=!0}for(const mt of Z)mt.cur&&(mt[0]=mt.cur[0],mt[1]=mt.cur[1]);N=!0,Of(at),rt(at)}function rt(at){const mt=Z[0],Et=mt.point0;var dt;switch(B=mt[0]-Et[0],q=mt[1]-Et[1],x){case Tf:case nb:{_&&(B=Ge(T-M,Ke(j-k,B)),P=M+B,R=k+B),g&&(q=Ge(E-C,Ke(L-U,q)),$=C+q,I=U+q);break}case Pa:{Z[1]?(_&&(P=Ge(T,Ke(j,Z[0][0])),R=Ge(T,Ke(j,Z[1][0])),_=1),g&&($=Ge(E,Ke(L,Z[0][1])),I=Ge(E,Ke(L,Z[1][1])),g=1)):(_<0?(B=Ge(T-M,Ke(j-M,B)),P=M+B,R=k):_>0&&(B=Ge(T-k,Ke(j-k,B)),P=M,R=k+B),g<0?(q=Ge(E-C,Ke(L-C,q)),$=C+q,I=U):g>0&&(q=Ge(E-U,Ke(L-U,q)),$=C,I=U+q));break}case Ea:{_&&(P=Ge(T,Ke(j,M-B*_)),R=Ge(T,Ke(j,k+B*_))),g&&($=Ge(E,Ke(L,C-q*g)),I=Ge(E,Ke(L,U+q*g)));break}}R<P&&(_*=-1,dt=M,M=k,k=dt,dt=P,P=R,R=dt,v in sb&&Y.attr("cursor",Rn[v=sb[v]])),I<$&&(g*=-1,dt=C,C=U,U=dt,dt=$,$=I,I=dt,v in lb&&Y.attr("cursor",Rn[v=lb[v]])),w.selection&&(A=w.selection),F&&(P=A[0][0],R=A[1][0]),K&&($=A[0][1],I=A[1][1]),(A[0][0]!==P||A[0][1]!==$||A[1][0]!==R||A[1][1]!==I)&&(w.selection=[[P,$],[R,I]],u.call(b),X.brush(at,x.name))}function W(at){if(F2(at),at.touches){if(at.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else ej(at.view,N),V.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);z.attr("pointer-events","all"),Y.attr("cursor",Rn.overlay),w.selection&&(A=w.selection),K2(A)&&(w.selection=null,u.call(b)),X.end(at,x.name)}function tt(at){switch(at.keyCode){case 16:{G=_&&g;break}case 18:{x===Pa&&(_&&(k=R-B*_,M=P+B*_),g&&(U=I-q*g,C=$+q*g),x=Ea,rt(at));break}case 32:{(x===Pa||x===Ea)&&(_<0?k=R-B:_>0&&(M=P-B),g<0?U=I-q:g>0&&(C=$-q),x=Tf,Y.attr("cursor",Rn.selection),rt(at));break}default:return}Of(at)}function ct(at){switch(at.keyCode){case 16:{G&&(F=K=G=!1,rt(at));break}case 18:{x===Ea&&(_<0?k=R:_>0&&(M=P),g<0?U=I:g>0&&(C=$),x=Pa,rt(at));break}case 32:{x===Tf&&(at.altKey?(_&&(k=R-B*_,M=P+B*_),g&&(U=I-q*g,C=$+q*g),x=Ea):(_<0?k=R:_>0&&(M=P),g<0?U=I:g>0&&(C=$),x=Pa),Y.attr("cursor",Rn[v]),rt(at));break}default:return}Of(at)}}function p(d){c(this,arguments).moved(d)}function y(d){c(this,arguments).ended(d)}function m(){var d=this.__brush||{selection:null};return d.extent=ob(t.apply(this,arguments)),d.dim=e,d}return l.extent=function(d){return arguments.length?(t=typeof d=="function"?d:Af(ob(d)),l):t},l.filter=function(d){return arguments.length?(r=typeof d=="function"?d:Af(!!d),l):r},l.touchable=function(d){return arguments.length?(n=typeof d=="function"?d:Af(!!d),l):n},l.handleSize=function(d){return arguments.length?(o=+d,l):o},l.keyModifiers=function(d){return arguments.length?(i=!!d,l):i},l.on=function(){var d=a.on.apply(a,arguments);return d===a?l:d},l}function vi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Y2(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function fv(e){let t,r,n;e.length!==2?(t=vi,r=(s,l)=>vi(e(s),l),n=(s,l)=>e(s)-l):(t=e===vi||e===Y2?e:V2,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function V2(){return 0}function gT(e){return e===null?NaN:+e}function*Z2(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const J2=fv(vi),Pl=J2.right;fv(gT).center;class ub extends Map{constructor(t,r=eR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(cb(this,t))}has(t){return super.has(cb(this,t))}set(t,r){return super.set(Q2(this,t),r)}delete(t){return super.delete(tR(this,t))}}function cb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Q2({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function tR({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function eR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function rR(e=vi){if(e===vi)return vT;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function vT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const nR=Math.sqrt(50),iR=Math.sqrt(10),aR=Math.sqrt(2);function wu(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=nR?10:a>=iR?5:a>=aR?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?wu(e,t,r*2):[s,l,u]}function py(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?wu(t,e,r):wu(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function dy(e,t,r){return t=+t,e=+e,r=+r,wu(e,t,r)[2]}function my(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?dy(t,e,r):dy(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function fb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function hb(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function bT(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?vT:rR(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*f/l+h)),y=Math.min(n,Math.floor(t+(l-u)*f/l+h));bT(e,t,p,y,i)}const a=e[t];let o=r,s=n;for(Yo(e,r,t),i(e[n],a)>0&&Yo(e,r,n);o<s;){for(Yo(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Yo(e,r,s):(++s,Yo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Yo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function oR(e,t,r){if(e=Float64Array.from(Z2(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return hb(e);if(t>=1)return fb(e);var n,i=(n-1)*t,a=Math.floor(i),o=fb(bT(e,a).subarray(0,a+1)),s=hb(e.subarray(a+1));return o+(s-o)*(i-a)}}function sR(e,t,r=gT){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function lR(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Vr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Jn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const yy=Symbol("implicit");function hv(){var e=new ub,t=[],r=[],n=yy;function i(a){let o=e.get(a);if(o===void 0){if(n!==yy)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ub;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return hv(t,r).unknown(n)},Vr.apply(i,arguments),i}function Is(){var e=hv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var h=t().length,p=i<n,y=p?i:n,m=p?n:i;a=(m-y)/Math.max(1,h-l+u*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-l))*c,o=a*(1-l),s&&(y=Math.round(y),o=Math.round(o));var d=lR(h).map(function(b){return y+a*b});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,u=+h),f()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),f()):l},e.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return Is(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},Vr.apply(f(),arguments)}function xT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return xT(t())},e}function gs(){return xT(Is.apply(null,arguments).paddingInner(1))}function uR(e){return function(){return e}}function Su(e){return+e}var pb=[0,1];function ar(e){return e}function gy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:uR(isNaN(t)?NaN:.5)}function cR(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function fR(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=gy(i,n),a=r(o,a)):(n=gy(n,i),a=r(a,o)),function(s){return a(n(s))}}function hR(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=gy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=Pl(e,s,1,n)-1;return a[l](i[l](s))}}function El(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mc(){var e=pb,t=pb,r=ya,n,i,a,o=ar,s,l,u;function c(){var h=Math.min(e.length,t.length);return o!==ar&&(o=cR(e[0],e[h-1])),s=h>2?hR:fR,l=u=null,f}function f(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((u||(u=s(t,e.map(n),nn)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Su),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=ov,c()},f.clamp=function(h){return arguments.length?(o=h?!0:ar,c()):o!==ar},f.interpolate=function(h){return arguments.length?(r=h,c()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,c()}}function pv(){return Mc()(ar,ar)}function pR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Au(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Qa(e){return e=Au(Math.abs(e)),e?e[1]:NaN}function dR(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function mR(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var yR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ns(e){if(!(t=yR.exec(e)))throw new Error("invalid format: "+e);var t;return new dv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ns.prototype=dv.prototype;function dv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}dv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function gR(e){t:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break t;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var _T;function vR(e,t){var r=Au(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(_T=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Au(e,Math.max(0,t+a-1))[0]}function db(e,t){var r=Au(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const mb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:pR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>db(e*100,t),r:db,s:vR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yb(e){return e}var gb=Array.prototype.map,vb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bR(e){var t=e.grouping===void 0||e.thousands===void 0?yb:dR(gb.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?yb:mR(gb.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Ns(f);var h=f.fill,p=f.align,y=f.sign,m=f.symbol,d=f.zero,b=f.width,v=f.comma,x=f.precision,_=f.trim,g=f.type;g==="n"?(v=!0,g="g"):mb[g]||(x===void 0&&(x=12),_=!0,g="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=m==="$"?n:/[%p]/.test(g)?o:"",A=mb[g],T=/[defgprs%]/.test(g);x=x===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function M(P){var E=w,C=S,$,j,k;if(g==="c")C=A(P)+C,P="";else{P=+P;var R=P<0||1/P<0;if(P=isNaN(P)?l:A(Math.abs(P),x),_&&(P=gR(P)),R&&+P==0&&y!=="+"&&(R=!1),E=(R?y==="("?y:s:y==="-"||y==="("?"":y)+E,C=(g==="s"?vb[8+_T/3]:"")+C+(R&&y==="("?")":""),T){for($=-1,j=P.length;++$<j;)if(k=P.charCodeAt($),48>k||k>57){C=(k===46?i+P.slice($+1):P.slice($))+C,P=P.slice(0,$);break}}}v&&!d&&(P=t(P,1/0));var L=E.length+P.length+C.length,U=L<b?new Array(b-L+1).join(h):"";switch(v&&d&&(P=t(U+P,U.length?b-C.length:1/0),U=""),p){case"<":P=E+P+C+U;break;case"=":P=E+U+P+C;break;case"^":P=U.slice(0,L=U.length>>1)+E+P+C+U.slice(L);break;default:P=U+E+P+C;break}return a(P)}return M.toString=function(){return f+""},M}function c(f,h){var p=u((f=Ns(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(Qa(h)/3)))*3,m=Math.pow(10,-y),d=vb[8+y/3];return function(b){return p(m*b)+d}}return{format:u,formatPrefix:c}}var Wl,mv,wT;xR({thousands:",",grouping:[3],currency:["$",""]});function xR(e){return Wl=bR(e),mv=Wl.format,wT=Wl.formatPrefix,Wl}function _R(e){return Math.max(0,-Qa(Math.abs(e)))}function wR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Qa(t)/3)))*3-Qa(Math.abs(e)))}function SR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Qa(t)-Qa(e))+1}function ST(e,t,r,n){var i=my(e,t,r),a;switch(n=Ns(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=wR(i,o))&&(n.precision=a),wT(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=SR(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=_R(i))&&(n.precision=a-(n.type==="%")*2);break}}return mv(n)}function Ai(e){var t=e.domain;return e.ticks=function(r){var n=t();return py(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ST(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);c-- >0;){if(u=dy(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function _i(){var e=pv();return e.copy=function(){return El(e,_i())},Vr.apply(e,arguments),Ai(e)}function AT(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Su),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return AT(e).unknown(t)},e=arguments.length?Array.from(e,Su):[0,1],Ai(r)}function OT(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function bb(e){return Math.log(e)}function xb(e){return Math.exp(e)}function AR(e){return-Math.log(-e)}function OR(e){return-Math.exp(-e)}function TR(e){return isFinite(e)?+("1e"+e):e<0?0:e}function PR(e){return e===10?TR:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ER(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function _b(e){return(t,r)=>-e(-t,r)}function yv(e){const t=e(bb,xb),r=t.domain;let n=10,i,a;function o(){return i=ER(n),a=PR(n),r()[0]<0?(i=_b(i),a=_b(a),e(AR,OR)):e(bb,xb),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let h=i(u),p=i(c),y,m;const d=s==null?10:+s;let b=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;b.push(m)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;b.push(m)}b.length*2<d&&(b=py(u,c,d))}else b=py(h,p,Math.min(p-h,d)).map(a);return f?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ns(l)).precision==null&&(l.trim=!0),l=mv(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(OT(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function TT(){const e=yv(Mc()).domain([1,10]);return e.copy=()=>El(e,TT()).base(e.base()),Vr.apply(e,arguments),e}function wb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Sb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gv(e){var t=1,r=e(wb(t),Sb(t));return r.constant=function(n){return arguments.length?e(wb(t=+n),Sb(t)):t},Ai(r)}function PT(){var e=gv(Mc());return e.copy=function(){return El(e,PT()).constant(e.constant())},Vr.apply(e,arguments)}function Ab(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function MR(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function CR(e){return e<0?-e*e:e*e}function vv(e){var t=e(ar,ar),r=1;function n(){return r===1?e(ar,ar):r===.5?e(MR,CR):e(Ab(r),Ab(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Ai(t)}function bv(){var e=vv(Mc());return e.copy=function(){return El(e,bv()).exponent(e.exponent())},Vr.apply(e,arguments),e}function kR(){return bv.apply(null,arguments).exponent(.5)}function Ob(e){return Math.sign(e)*e*e}function $R(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ET(){var e=pv(),t=[0,1],r=!1,n;function i(a){var o=$R(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Ob(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Su)).map(Ob)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ET(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Vr.apply(i,arguments),Ai(i)}function MT(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=sR(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Pl(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(vi),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return MT().domain(e).range(t).unknown(n)},Vr.apply(a,arguments)}function CT(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[Pl(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return CT().domain([e,t]).range(i).unknown(a)},Vr.apply(Ai(o),arguments)}function kT(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Pl(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return kT().domain(e).range(t).unknown(r)},Vr.apply(i,arguments)}const Mf=new Date,Cf=new Date;function Me(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>Me(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Mf.setTime(+a),Cf.setTime(+o),e(Mf),e(Cf),Math.floor(r(Mf,Cf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ou=Me(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ou.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Me(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ou);Ou.range;const Bn=1e3,Ur=Bn*60,qn=Ur*60,Gn=qn*24,xv=Gn*7,Tb=Gn*30,kf=Gn*365,Gi=Me(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getUTCSeconds());Gi.range;const _v=Me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Bn)},(e,t)=>{e.setTime(+e+t*Ur)},(e,t)=>(t-e)/Ur,e=>e.getMinutes());_v.range;const wv=Me(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ur)},(e,t)=>(t-e)/Ur,e=>e.getUTCMinutes());wv.range;const Sv=Me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Bn-e.getMinutes()*Ur)},(e,t)=>{e.setTime(+e+t*qn)},(e,t)=>(t-e)/qn,e=>e.getHours());Sv.range;const Av=Me(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*qn)},(e,t)=>(t-e)/qn,e=>e.getUTCHours());Av.range;const Ml=Me(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ur)/Gn,e=>e.getDate()-1);Ml.range;const Cc=Me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gn,e=>e.getUTCDate()-1);Cc.range;const $T=Me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gn,e=>Math.floor(e/Gn));$T.range;function ga(e){return Me(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ur)/xv)}const kc=ga(0),Tu=ga(1),jR=ga(2),RR=ga(3),to=ga(4),DR=ga(5),IR=ga(6);kc.range;Tu.range;jR.range;RR.range;to.range;DR.range;IR.range;function va(e){return Me(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/xv)}const $c=va(0),Pu=va(1),NR=va(2),LR=va(3),eo=va(4),BR=va(5),qR=va(6);$c.range;Pu.range;NR.range;LR.range;eo.range;BR.range;qR.range;const Ov=Me(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ov.range;const Tv=Me(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Tv.range;const Kn=Me(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Kn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Me(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Kn.range;const Xn=Me(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Xn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Me(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Xn.range;function jT(e,t,r,n,i,a){const o=[[Gi,1,Bn],[Gi,5,5*Bn],[Gi,15,15*Bn],[Gi,30,30*Bn],[a,1,Ur],[a,5,5*Ur],[a,15,15*Ur],[a,30,30*Ur],[i,1,qn],[i,3,3*qn],[i,6,6*qn],[i,12,12*qn],[n,1,Gn],[n,2,2*Gn],[r,1,xv],[t,1,Tb],[t,3,3*Tb],[e,1,kf]];function s(u,c,f){const h=c<u;h&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:l(u,c,f),y=p?p.range(u,+c+1):[];return h?y.reverse():y}function l(u,c,f){const h=Math.abs(c-u)/f,p=fv(([,,d])=>d).right(o,h);if(p===o.length)return e.every(my(u/kf,c/kf,f));if(p===0)return Ou.every(Math.max(my(u,c,f),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[s,l]}const[FR,zR]=jT(Xn,Tv,$c,$T,Av,wv),[UR,WR]=jT(Kn,Ov,kc,Ml,Sv,_v);function $f(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function jf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Vo(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function HR(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Zo(i),c=Jo(i),f=Zo(a),h=Jo(a),p=Zo(o),y=Jo(o),m=Zo(s),d=Jo(s),b=Zo(l),v=Jo(l),x={a:R,A:L,b:U,B:I,c:null,d:$b,e:$b,f:dD,g:AD,G:TD,H:fD,I:hD,j:pD,L:RT,m:mD,M:yD,p:B,q,Q:Db,s:Ib,S:gD,u:vD,U:bD,V:xD,w:_D,W:wD,x:null,X:null,y:SD,Y:OD,Z:PD,"%":Rb},_={a:N,A:G,b:F,B:K,c:null,d:jb,e:jb,f:kD,g:FD,G:UD,H:ED,I:MD,j:CD,L:IT,m:$D,M:jD,p:Z,q:X,Q:Db,s:Ib,S:RD,u:DD,U:ID,V:ND,w:LD,W:BD,x:null,X:null,y:qD,Y:zD,Z:WD,"%":Rb},g={a:M,A:P,b:E,B:C,c:$,d:Cb,e:Cb,f:sD,g:Mb,G:Eb,H:kb,I:kb,j:nD,L:oD,m:rD,M:iD,p:T,q:eD,Q:uD,s:cD,S:aD,u:VR,U:ZR,V:JR,w:YR,W:QR,x:j,X:k,y:Mb,Y:Eb,Z:tD,"%":lD};x.x=w(r,x),x.X=w(n,x),x.c=w(t,x),_.x=w(r,_),_.X=w(n,_),_.c=w(t,_);function w(z,Y){return function(V){var D=[],rt=-1,W=0,tt=z.length,ct,at,mt;for(V instanceof Date||(V=new Date(+V));++rt<tt;)z.charCodeAt(rt)===37&&(D.push(z.slice(W,rt)),(at=Pb[ct=z.charAt(++rt)])!=null?ct=z.charAt(++rt):at=ct==="e"?" ":"0",(mt=Y[ct])&&(ct=mt(V,at)),D.push(ct),W=rt+1);return D.push(z.slice(W,rt)),D.join("")}}function S(z,Y){return function(V){var D=Vo(1900,void 0,1),rt=A(D,z,V+="",0),W,tt;if(rt!=V.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(Y&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(W=jf(Vo(D.y,0,1)),tt=W.getUTCDay(),W=tt>4||tt===0?Pu.ceil(W):Pu(W),W=Cc.offset(W,(D.V-1)*7),D.y=W.getUTCFullYear(),D.m=W.getUTCMonth(),D.d=W.getUTCDate()+(D.w+6)%7):(W=$f(Vo(D.y,0,1)),tt=W.getDay(),W=tt>4||tt===0?Tu.ceil(W):Tu(W),W=Ml.offset(W,(D.V-1)*7),D.y=W.getFullYear(),D.m=W.getMonth(),D.d=W.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),tt="Z"in D?jf(Vo(D.y,0,1)).getUTCDay():$f(Vo(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(tt+5)%7:D.w+D.U*7-(tt+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,jf(D)):$f(D)}}function A(z,Y,V,D){for(var rt=0,W=Y.length,tt=V.length,ct,at;rt<W;){if(D>=tt)return-1;if(ct=Y.charCodeAt(rt++),ct===37){if(ct=Y.charAt(rt++),at=g[ct in Pb?Y.charAt(rt++):ct],!at||(D=at(z,V,D))<0)return-1}else if(ct!=V.charCodeAt(D++))return-1}return D}function T(z,Y,V){var D=u.exec(Y.slice(V));return D?(z.p=c.get(D[0].toLowerCase()),V+D[0].length):-1}function M(z,Y,V){var D=p.exec(Y.slice(V));return D?(z.w=y.get(D[0].toLowerCase()),V+D[0].length):-1}function P(z,Y,V){var D=f.exec(Y.slice(V));return D?(z.w=h.get(D[0].toLowerCase()),V+D[0].length):-1}function E(z,Y,V){var D=b.exec(Y.slice(V));return D?(z.m=v.get(D[0].toLowerCase()),V+D[0].length):-1}function C(z,Y,V){var D=m.exec(Y.slice(V));return D?(z.m=d.get(D[0].toLowerCase()),V+D[0].length):-1}function $(z,Y,V){return A(z,t,Y,V)}function j(z,Y,V){return A(z,r,Y,V)}function k(z,Y,V){return A(z,n,Y,V)}function R(z){return o[z.getDay()]}function L(z){return a[z.getDay()]}function U(z){return l[z.getMonth()]}function I(z){return s[z.getMonth()]}function B(z){return i[+(z.getHours()>=12)]}function q(z){return 1+~~(z.getMonth()/3)}function N(z){return o[z.getUTCDay()]}function G(z){return a[z.getUTCDay()]}function F(z){return l[z.getUTCMonth()]}function K(z){return s[z.getUTCMonth()]}function Z(z){return i[+(z.getUTCHours()>=12)]}function X(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var Y=w(z+="",x);return Y.toString=function(){return z},Y},parse:function(z){var Y=S(z+="",!1);return Y.toString=function(){return z},Y},utcFormat:function(z){var Y=w(z+="",_);return Y.toString=function(){return z},Y},utcParse:function(z){var Y=S(z+="",!0);return Y.toString=function(){return z},Y}}}var Pb={"-":"",_:" ",0:"0"},De=/^\s*\d+/,GR=/^%/,KR=/[\\^$*+?|[\]().{}]/g;function It(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function XR(e){return e.replace(KR,"\\$&")}function Zo(e){return new RegExp("^(?:"+e.map(XR).join("|")+")","i")}function Jo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function YR(e,t,r){var n=De.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function VR(e,t,r){var n=De.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function ZR(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function JR(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function QR(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=De.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Mb(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function tD(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function eD(e,t,r){var n=De.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function rD(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Cb(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function nD(e,t,r){var n=De.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function kb(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function iD(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function aD(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function oD(e,t,r){var n=De.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function sD(e,t,r){var n=De.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function lD(e,t,r){var n=GR.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function uD(e,t,r){var n=De.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function cD(e,t,r){var n=De.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function $b(e,t){return It(e.getDate(),t,2)}function fD(e,t){return It(e.getHours(),t,2)}function hD(e,t){return It(e.getHours()%12||12,t,2)}function pD(e,t){return It(1+Ml.count(Kn(e),e),t,3)}function RT(e,t){return It(e.getMilliseconds(),t,3)}function dD(e,t){return RT(e,t)+"000"}function mD(e,t){return It(e.getMonth()+1,t,2)}function yD(e,t){return It(e.getMinutes(),t,2)}function gD(e,t){return It(e.getSeconds(),t,2)}function vD(e){var t=e.getDay();return t===0?7:t}function bD(e,t){return It(kc.count(Kn(e)-1,e),t,2)}function DT(e){var t=e.getDay();return t>=4||t===0?to(e):to.ceil(e)}function xD(e,t){return e=DT(e),It(to.count(Kn(e),e)+(Kn(e).getDay()===4),t,2)}function _D(e){return e.getDay()}function wD(e,t){return It(Tu.count(Kn(e)-1,e),t,2)}function SD(e,t){return It(e.getFullYear()%100,t,2)}function AD(e,t){return e=DT(e),It(e.getFullYear()%100,t,2)}function OD(e,t){return It(e.getFullYear()%1e4,t,4)}function TD(e,t){var r=e.getDay();return e=r>=4||r===0?to(e):to.ceil(e),It(e.getFullYear()%1e4,t,4)}function PD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+It(t/60|0,"0",2)+It(t%60,"0",2)}function jb(e,t){return It(e.getUTCDate(),t,2)}function ED(e,t){return It(e.getUTCHours(),t,2)}function MD(e,t){return It(e.getUTCHours()%12||12,t,2)}function CD(e,t){return It(1+Cc.count(Xn(e),e),t,3)}function IT(e,t){return It(e.getUTCMilliseconds(),t,3)}function kD(e,t){return IT(e,t)+"000"}function $D(e,t){return It(e.getUTCMonth()+1,t,2)}function jD(e,t){return It(e.getUTCMinutes(),t,2)}function RD(e,t){return It(e.getUTCSeconds(),t,2)}function DD(e){var t=e.getUTCDay();return t===0?7:t}function ID(e,t){return It($c.count(Xn(e)-1,e),t,2)}function NT(e){var t=e.getUTCDay();return t>=4||t===0?eo(e):eo.ceil(e)}function ND(e,t){return e=NT(e),It(eo.count(Xn(e),e)+(Xn(e).getUTCDay()===4),t,2)}function LD(e){return e.getUTCDay()}function BD(e,t){return It(Pu.count(Xn(e)-1,e),t,2)}function qD(e,t){return It(e.getUTCFullYear()%100,t,2)}function FD(e,t){return e=NT(e),It(e.getUTCFullYear()%100,t,2)}function zD(e,t){return It(e.getUTCFullYear()%1e4,t,4)}function UD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?eo(e):eo.ceil(e),It(e.getUTCFullYear()%1e4,t,4)}function WD(){return"+0000"}function Rb(){return"%"}function Db(e){return+e}function Ib(e){return Math.floor(+e/1e3)}var Ma,LT,BT;HD({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function HD(e){return Ma=HR(e),LT=Ma.format,Ma.parse,BT=Ma.utcFormat,Ma.utcParse,Ma}function GD(e){return new Date(e)}function KD(e){return e instanceof Date?+e:+new Date(+e)}function Pv(e,t,r,n,i,a,o,s,l,u){var c=pv(),f=c.invert,h=c.domain,p=u(".%L"),y=u(":%S"),m=u("%I:%M"),d=u("%I %p"),b=u("%a %d"),v=u("%b %d"),x=u("%B"),_=u("%Y");function g(w){return(l(w)<w?p:s(w)<w?y:o(w)<w?m:a(w)<w?d:n(w)<w?i(w)<w?b:v:r(w)<w?x:_)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,KD)):h().map(GD)},c.ticks=function(w){var S=h();return e(S[0],S[S.length-1],w??10)},c.tickFormat=function(w,S){return S==null?g:u(S)},c.nice=function(w){var S=h();return(!w||typeof w.range!="function")&&(w=t(S[0],S[S.length-1],w??10)),w?h(OT(S,w)):c},c.copy=function(){return El(c,Pv(e,t,r,n,i,a,o,s,l,u))},c}function Ls(){return Vr.apply(Pv(UR,WR,Kn,Ov,kc,Ml,Sv,_v,Gi,LT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function XD(){return Vr.apply(Pv(FR,zR,Xn,Tv,$c,Cc,Av,wv,Gi,BT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function jc(){var e=0,t=1,r,n,i,a,o=ar,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(h){var p,y;return arguments.length?([p,y]=h,o=f(p,y),u):[o(0),o(1)]}}return u.range=c(ya),u.rangeRound=c(ov),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function Oi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function qT(){var e=Ai(jc()(ar));return e.copy=function(){return Oi(e,qT())},Jn.apply(e,arguments)}function FT(){var e=yv(jc()).domain([1,10]);return e.copy=function(){return Oi(e,FT()).base(e.base())},Jn.apply(e,arguments)}function zT(){var e=gv(jc());return e.copy=function(){return Oi(e,zT()).constant(e.constant())},Jn.apply(e,arguments)}function Ev(){var e=vv(jc());return e.copy=function(){return Oi(e,Ev()).exponent(e.exponent())},Jn.apply(e,arguments)}function YD(){return Ev.apply(null,arguments).exponent(.5)}function UT(){var e=[],t=ar;function r(n){if(n!=null&&!isNaN(n=+n))return t((Pl(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(vi),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>oR(e,a/n))},r.copy=function(){return UT(t).domain(e)},Jn.apply(r,arguments)}function Rc(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=ar,c,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-a)*(n*m<n*a?s:l),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function y(m){return function(d){var b,v,x;return arguments.length?([b,v,x]=d,u=Ej(m,[b,v,x]),p):[u(0),u(.5),u(1)]}}return p.range=y(ya),p.rangeRound=y(ov),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return c=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function WT(){var e=Ai(Rc()(ar));return e.copy=function(){return Oi(e,WT())},Jn.apply(e,arguments)}function HT(){var e=yv(Rc()).domain([.1,1,10]);return e.copy=function(){return Oi(e,HT()).base(e.base())},Jn.apply(e,arguments)}function GT(){var e=gv(Rc());return e.copy=function(){return Oi(e,GT()).constant(e.constant())},Jn.apply(e,arguments)}function Mv(){var e=vv(Rc());return e.copy=function(){return Oi(e,Mv()).exponent(e.exponent())},Jn.apply(e,arguments)}function VD(){return Mv.apply(null,arguments).exponent(.5)}function te(e){return function(){return e}}const KT=Math.cos,Eu=Math.sin,un=Math.sqrt,Mu=Math.PI,Dc=2*Mu,vy=Math.PI,by=2*vy,zi=1e-6,ZD=by-zi;function XT(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function JD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return XT;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class QD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?XT:JD(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,c=o-t,f=s-r,h=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>zi)if(!(Math.abs(f*l-u*c)>zi)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,m=l*l+u*u,d=p*p+y*y,b=Math.sqrt(m),v=Math.sqrt(h),x=a*Math.tan((vy-Math.acos((m+h-d)/(2*b*v)))/2),_=x/v,g=x/b;Math.abs(_-1)>zi&&this._append`L${t+_*c},${r+_*f}`,this._append`A${a},${a},0,0,${+(f*p>c*y)},${this._x1=t+g*l},${this._y1=r+g*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>zi||Math.abs(this._y1-c)>zi)&&this._append`L${u},${c}`,n&&(h<0&&(h=h%by+by),h>ZD?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:h>zi&&this._append`A${n},${n},0,${+(h>=vy)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Cv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new QD(t)}function kv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function YT(e){this._context=e}YT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Yn(e){return new YT(e)}function VT(e){return e[0]}function ZT(e){return e[1]}function $v(e,t){var r=te(!0),n=null,i=Yn,a=null,o=Cv(s);e=typeof e=="function"?e:e===void 0?VT:te(e),t=typeof t=="function"?t:t===void 0?ZT:te(t);function s(l){var u,c=(l=kv(l)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,u,l),+t(f,u,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:te(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:te(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:te(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function fi(e,t,r){var n=null,i=te(!0),a=null,o=Yn,s=null,l=Cv(u);e=typeof e=="function"?e:e===void 0?VT:te(+e),t=typeof t=="function"?t:te(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ZT:te(+r);function u(f){var h,p,y,m=(f=kv(f)).length,d,b=!1,v,x=new Array(m),_=new Array(m);for(a==null&&(s=o(v=l())),h=0;h<=m;++h){if(!(h<m&&i(d=f[h],h,f))===b)if(b=!b)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=p;--y)s.point(x[y],_[y]);s.lineEnd(),s.areaEnd()}b&&(x[h]=+e(d,h,f),_[h]=+t(d,h,f),s.point(n?+n(d,h,f):x[h],r?+r(d,h,f):_[h]))}if(v)return s=null,v+""||null}function c(){return $v().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:te(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:te(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:te(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:te(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:te(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:te(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:te(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class JT{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function tI(e){return new JT(e,!0)}function eI(e){return new JT(e,!1)}const jv={draw(e,t){const r=un(t/Mu);e.moveTo(r,0),e.arc(0,0,r,0,Dc)}},rI={draw(e,t){const r=un(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},QT=un(1/3),nI=QT*2,iI={draw(e,t){const r=un(t/nI),n=r*QT;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},aI={draw(e,t){const r=un(t),n=-r/2;e.rect(n,n,r,r)}},oI=.8908130915292852,tP=Eu(Mu/10)/Eu(7*Mu/10),sI=Eu(Dc/10)*tP,lI=-KT(Dc/10)*tP,uI={draw(e,t){const r=un(t*oI),n=sI*r,i=lI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Dc*a/5,s=KT(o),l=Eu(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Rf=un(3),cI={draw(e,t){const r=-un(t/(Rf*3));e.moveTo(0,r*2),e.lineTo(-Rf*r,-r),e.lineTo(Rf*r,-r),e.closePath()}},Lr=-.5,Br=un(3)/2,xy=1/un(12),fI=(xy/2+1)*3,hI={draw(e,t){const r=un(t/fI),n=r/2,i=r*xy,a=n,o=r*xy+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(Lr*n-Br*i,Br*n+Lr*i),e.lineTo(Lr*a-Br*o,Br*a+Lr*o),e.lineTo(Lr*s-Br*l,Br*s+Lr*l),e.lineTo(Lr*n+Br*i,Lr*i-Br*n),e.lineTo(Lr*a+Br*o,Lr*o-Br*a),e.lineTo(Lr*s+Br*l,Lr*l-Br*s),e.closePath()}};function pI(e,t){let r=null,n=Cv(i);e=typeof e=="function"?e:te(e||jv),t=typeof t=="function"?t:te(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:te(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:te(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Cu(){}function ku(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function eP(e){this._context=e}eP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ku(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ku(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dI(e){return new eP(e)}function rP(e){this._context=e}rP.prototype={areaStart:Cu,areaEnd:Cu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ku(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mI(e){return new rP(e)}function nP(e){this._context=e}nP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ku(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yI(e){return new nP(e)}function iP(e){this._context=e}iP.prototype={areaStart:Cu,areaEnd:Cu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function gI(e){return new iP(e)}function Nb(e){return e<0?-1:1}function Lb(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Nb(a)+Nb(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Bb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Df(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function $u(e){this._context=e}$u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Df(this,this._t0,Bb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Df(this,Bb(this,r=Lb(this,e,t)),r);break;default:Df(this,this._t0,r=Lb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function aP(e){this._context=new oP(e)}(aP.prototype=Object.create($u.prototype)).point=function(e,t){$u.prototype.point.call(this,t,e)};function oP(e){this._context=e}oP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function vI(e){return new $u(e)}function bI(e){return new aP(e)}function sP(e){this._context=e}sP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=qb(e),i=qb(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function qb(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function xI(e){return new sP(e)}function Ic(e,t){this._context=e,this._t=t}Ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function _I(e){return new Ic(e,.5)}function wI(e){return new Ic(e,0)}function SI(e){return new Ic(e,1)}function ro(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function _y(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function AI(e,t){return e[t]}function OI(e){const t=[];return t.key=e,t}function Bs(){var e=te([]),t=_y,r=ro,n=AI;function i(a){var o=Array.from(e.apply(this,arguments),OI),s,l=o.length,u=-1,c;for(const f of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,c=kv(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:te(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:te(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?_y:typeof a=="function"?a:te(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??ro,i):r},i}function TI(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}ro(e,t)}}function PI(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}ro(e,t)}}function EI(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,h=c[n-1][1]||0,p=(f-h)/2,y=0;y<s;++y){var m=e[t[y]],d=m[n][1]||0,b=m[n-1][1]||0;p+=d-b}l+=f,u+=p*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,ro(e,t)}}function Nn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
2
2
  * GSAP 3.13.0
3
3
  * https://gsap.com
4
4
  *
5
5
  * @license Copyright 2008-2025, GreenSock. All rights reserved.
6
6
  * Subject to the terms at https://gsap.com/standard-license
7
7
  * @author: Jack Doyle, jack@greensock.com
8
- */var Sr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Xa={duration:.5,overwrite:!1,delay:0},$v,je,Qt,Nr=1e8,Ht=1/Nr,by=Math.PI*2,RI=by/4,DI=0,cP=Math.sqrt,II=Math.cos,NI=Math.sin,Pe=function(t){return typeof t=="string"},ae=function(t){return typeof t=="function"},Hn=function(t){return typeof t=="number"},jv=function(t){return typeof t>"u"},wn=function(t){return typeof t=="object"},rr=function(t){return t!==!1},Rv=function(){return typeof window<"u"},Bl=function(t){return ae(t)||Pe(t)},fP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ue=Array.isArray,_y=/(?:-?\.?\d|\.)+/gi,hP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ca=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,jf=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pP=/[+-]=-?[.\d]+/,dP=/[^,'"\[\]\s]+/gi,LI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,re,pn,xy,Dv,Or={},Cu={},mP,yP=function(t){return(Cu=Va(t,Or))&&lr},Iv=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},js=function(t,r){return!r&&console.warn(t)},gP=function(t,r){return t&&(Or[t]=r)&&Cu&&(Cu[t]=r)||Or},Rs=function(){return 0},BI={suppressEvents:!0,isStart:!0,kill:!1},ou={suppressEvents:!0,kill:!1},qI={suppressEvents:!0},Nv={},fi=[],wy={},vP,br={},Rf={},qb=30,su=[],Lv="",Bv=function(t){var r=t[0],n,i;if(wn(r)||ae(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=su.length;i--&&!su[i].targetTest(r););n=su[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new zP(t[i],n)))||t.splice(i,1);return t},Hi=function(t){return t._gsap||Bv(Lr(t))[0]._gsap},bP=function(t,r,n){return(n=t[r])&&ae(n)?t[r]():jv(n)&&t.getAttribute&&t.getAttribute(r)||n},nr=function(t,r){return(t=t.split(",")).forEach(r)||t},se=function(t){return Math.round(t*1e5)/1e5||0},pe=function(t){return Math.round(t*1e7)/1e7||0},Da=function(t,r){var n=r.charAt(0),i=parseFloat(r.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},FI=function(t,r){for(var n=r.length,i=0;t.indexOf(r[i])<0&&++i<n;);return i<n},Mu=function(){var t=fi.length,r=fi.slice(0),n,i;for(wy={},fi.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},qv=function(t){return!!(t._initted||t._startAt||t.add)},_P=function(t,r,n,i){fi.length&&!je&&Mu(),t.render(r,n,!!(je&&r<0&&qv(t))),fi.length&&!je&&Mu()},xP=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(dP).length<2?r:Pe(t)?t.trim():t},wP=function(t){return t},Tr=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},zI=function(t){return function(r,n){for(var i in n)i in r||i==="duration"&&t||i==="ease"||(r[i]=n[i])}},Va=function(t,r){for(var n in r)t[n]=r[n];return t},Fb=function e(t,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=wn(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},ku=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},cs=function(t){var r=t.parent||re,n=t.keyframes?zI(Ue(t.keyframes)):Tr;if(rr(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},UI=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},SP=function(t,r,n,i,a){var o=t[i],s;if(a)for(s=r[a];o&&o[a]>s;)o=o._prev;return o?(r._next=o._next,o._next=r):(r._next=t[n],t[n]=r),r._next?r._next._prev=r:t[i]=r,r._prev=o,r.parent=r._dp=t,r},jc=function(t,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,o=r._next;a?a._next=o:t[n]===r&&(t[n]=o),o?o._prev=a:t[i]===r&&(t[i]=a),r._next=r._prev=r.parent=null},pi=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Gi=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},WI=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},Sy=function(t,r,n,i){return t._startAt&&(je?t._startAt.revert(ou):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},HI=function e(t){return!t||t._ts&&e(t.parent)},zb=function(t){return t._repeat?Za(t._tTime,t=t.duration()+t._rDelay)*t:0},Za=function(t,r){var n=Math.floor(t=pe(t/r));return t&&n===t?n-1:n},$u=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Rc=function(t){return t._end=pe(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ht)||0))},Dc=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=pe(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),Rc(t),n._dirty||Gi(n,t)),t},AP=function(t,r){var n;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(n=$u(t.rawTime(),r),(!r._dur||wl(0,r.totalDuration(),n)-r._tTime>Ht)&&r.render(n,!0)),Gi(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-Ht}},mn=function(t,r,n,i){return r.parent&&pi(r),r._start=pe((Hn(n)?n:n||t!==re?Rr(t,n,r):t._time)+r._delay),r._end=pe(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),SP(t,r,"_first","_last",t._sort?"_start":0),Ay(r)||(t._recent=r),i||AP(t,r),t._ts<0&&Dc(t,t._tTime),t},OP=function(t,r){return(Or.ScrollTrigger||Iv("scrollTrigger",r))&&Or.ScrollTrigger.create(r,t)},TP=function(t,r,n,i,a){if(zv(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!je&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&vP!==_r.frame)return fi.push(t),t._lazy=[a,i],1},GI=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Ay=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},KI=function(t,r,n,i){var a=t.ratio,o=r<0||!r&&(!t._start&&GI(t)&&!(!t._initted&&Ay(t))||(t._ts<0||t._dp._ts<0)&&!Ay(t))?0:1,s=t._rDelay,l=0,u,c,f;if(s&&t._repeat&&(l=wl(0,t._tDur,r),c=Za(l,s),t._yoyo&&c&1&&(o=1-o),c!==Za(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||je||i||t._zTime===Ht||!r&&t._zTime){if(!t._initted&&TP(t,r,i,n,l))return;for(f=t._zTime,t._zTime=r||(n?Ht:0),n||(n=r&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,u=t._pt;u;)u.r(o,u.d),u=u._next;r<0&&Sy(t,r,n,!0),t._onUpdate&&!n&&wr(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&wr(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&pi(t,1),!n&&!je&&(wr(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},YI=function(t,r,n){var i;if(n>r)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},Ja=function(t,r,n,i){var a=t._repeat,o=pe(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:pe(o*(a+1)+t._rDelay*a):o,s>0&&!i&&Dc(t,t._tTime=t._tDur*s),t.parent&&Rc(t),n||Gi(t.parent,t),t},Ub=function(t){return t instanceof Ge?Gi(t):Ja(t,t._dur)},XI={_start:0,endTime:Rs,totalDuration:Rs},Rr=function e(t,r,n){var i=t.labels,a=t._recent||XI,o=t.duration()>=Nr?a.endTime(!1):t._dur,s,l,u;return Pe(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",s=r.indexOf("="),l==="<"||l===">"?(s>=0&&(r=r.replace(/=/,"")),(l==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(s<0?a:n).totalDuration()/100:1)):s<0?(r in i||(i[r]=o),i[r]):(l=parseFloat(r.charAt(s-1)+r.substr(s+1)),u&&n&&(l=l/100*(Ue(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+l:o+l)):r==null?o:+r},fs=function(t,r,n){var i=Hn(r[1]),a=(i?2:1)+(t<2?0:1),o=r[a],s,l;if(i&&(o.duration=r[1]),o.parent=n,t){for(s=o,l=n;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=rr(l.vars.inherit)&&l.parent;o.immediateRender=rr(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new he(r[0],o,r[a+1])},gi=function(t,r){return t||t===0?r(t):r},wl=function(t,r,n){return n<t?t:n>r?r:n},ze=function(t,r){return!Pe(t)||!(r=LI.exec(t))?"":r[1]},VI=function(t,r,n){return gi(n,function(i){return wl(t,r,i)})},Oy=[].slice,PP=function(t,r){return t&&wn(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&wn(t[0]))&&!t.nodeType&&t!==pn},ZI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return Pe(i)&&!r||PP(i,1)?(a=n).push.apply(a,Lr(i)):n.push(i)})||n},Lr=function(t,r,n){return Qt&&!r&&Qt.selector?Qt.selector(t):Pe(t)&&!n&&(xy||!Qa())?Oy.call((r||Dv).querySelectorAll(t),0):Ue(t)?ZI(t,n):PP(t)?Oy.call(t,0):t?[t]:[]},Ty=function(t){return t=Lr(t)[0]||js("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return Lr(r,n.querySelectorAll?n:n===t?js("Invalid scope")||Dv.createElement("div"):t)}},EP=function(t){return t.sort(function(){return .5-Math.random()})},CP=function(t){if(ae(t))return t;var r=wn(t)?t:{each:t},n=Ki(r.ease),i=r.from||0,a=parseFloat(r.base)||0,o={},s=i>0&&i<1,l=isNaN(i)||s,u=r.axis,c=i,f=i;return Pe(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&l&&(c=i[0],f=i[1]),function(h,p,y){var m=(y||r).length,d=o[m],v,w,b,_,g,x,S,A,T;if(!d){if(T=r.grid==="auto"?0:(r.grid||[1,Nr])[1],!T){for(S=-Nr;S<(S=y[T++].getBoundingClientRect().left)&&T<m;);T<m&&T--}for(d=o[m]=[],v=l?Math.min(T,m)*c-.5:i%T,w=T===Nr?0:l?m*f/T-.5:i/T|0,S=0,A=Nr,x=0;x<m;x++)b=x%T-v,_=w-(x/T|0),d[x]=g=u?Math.abs(u==="y"?_:b):cP(b*b+_*_),g>S&&(S=g),g<A&&(A=g);i==="random"&&EP(d),d.max=S-A,d.min=A,d.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(T>m?m-1:u?u==="y"?m/T:T:Math.max(T,m/T))||0)*(i==="edges"?-1:1),d.b=m<0?a-m:a,d.u=ze(r.amount||r.each)||0,n=n&&m<0?BP(n):n}return m=(d[h]-d.min)/d.max||0,pe(d.b+(n?n(m):m)*d.v)+d.u}},Py=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=pe(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(Hn(n)?0:ze(n))}},MP=function(t,r){var n=Ue(t),i,a;return!n&&wn(t)&&(i=n=t.radius||Nr,t.values?(t=Lr(t.values),(a=!Hn(t[0]))&&(i*=i)):t=Py(t.increment)),gi(r,n?ae(t)?function(o){return a=t(o),Math.abs(a-o)<=i?a:o}:function(o){for(var s=parseFloat(a?o.x:o),l=parseFloat(a?o.y:0),u=Nr,c=0,f=t.length,h,p;f--;)a?(h=t[f].x-s,p=t[f].y-l,h=h*h+p*p):h=Math.abs(t[f]-s),h<u&&(u=h,c=f);return c=!i||u<=i?t[c]:o,a||c===o||Hn(o)?c:c+ze(o)}:Py(t))},kP=function(t,r,n,i){return gi(Ue(t)?!r:n===!0?!!(n=0):!i,function(){return Ue(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(r-t+n*.99))/n)*n*i)/i})},JI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduce(function(a,o){return o(a)},i)}},QI=function(t,r){return function(n){return t(parseFloat(n))+(r||ze(n))}},tN=function(t,r,n){return jP(t,r,0,1,n)},$P=function(t,r,n){return gi(n,function(i){return t[~~r(i)]})},eN=function e(t,r,n){var i=r-t;return Ue(t)?$P(t,e(0,t.length),r):gi(n,function(a){return(i+(a-t)%i)%i+t})},rN=function e(t,r,n){var i=r-t,a=i*2;return Ue(t)?$P(t,e(0,t.length-1),r):gi(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},Ds=function(t){for(var r=0,n="",i,a,o,s;~(i=t.indexOf("random(",r));)o=t.indexOf(")",i),s=t.charAt(i+7)==="[",a=t.substr(i+7,o-i-7).match(s?dP:_y),n+=t.substr(r,i-r)+kP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},jP=function(t,r,n,i,a){var o=r-t,s=i-n;return gi(a,function(l){return n+((l-t)/o*s||0)})},nN=function e(t,r,n,i){var a=isNaN(t+r)?0:function(p){return(1-p)*t+p*r};if(!a){var o=Pe(t),s={},l,u,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(Ue(t)&&!Ue(r)){for(c=[],f=t.length,h=f-2,u=1;u<f;u++)c.push(e(t[u-1],t[u]));f--,a=function(y){y*=f;var m=Math.min(h,~~y);return c[m](y-m)},n=r}else i||(t=Va(Ue(t)?[]:{},t));if(!c){for(l in r)Fv.call(s,t,l,"get",r[l]);a=function(y){return Hv(y,s)||(o?t.p:t)}}}return gi(n,a)},Wb=function(t,r,n){var i=t.labels,a=Nr,o,s,l;for(o in i)s=i[o]-r,s<0==!!n&&s&&a>(s=Math.abs(s))&&(l=o,a=s);return l},wr=function(t,r,n){var i=t.vars,a=i[r],o=Qt,s=t._ctx,l,u,c;if(a)return l=i[r+"Params"],u=i.callbackScope||t,n&&fi.length&&Mu(),s&&(Qt=s),c=l?a.apply(u,l):a.call(u),Qt=o,c},is=function(t){return pi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!je),t.progress()<1&&wr(t,"onInterrupt"),t},Ma,RP=[],DP=function(t){if(t)if(t=!t.name&&t.default||t,Rv()||t.headless){var r=t.name,n=ae(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:Rs,render:Hv,add:Fv,kill:bN,modifier:vN,rawVars:0},o={targetTest:0,get:0,getSetter:Wv,aliases:{},register:0};if(Qa(),t!==i){if(br[r])return;Tr(i,Tr(ku(t,a),o)),Va(i.prototype,Va(a,ku(t,o))),br[i.prop=r]=i,t.targetTest&&(su.push(i),Nv[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}gP(r,i),t.register&&t.register(lr,i,ir)}else RP.push(t)},Wt=255,as={aqua:[0,Wt,Wt],lime:[0,Wt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Wt],navy:[0,0,128],white:[Wt,Wt,Wt],olive:[128,128,0],yellow:[Wt,Wt,0],orange:[Wt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Wt,0,0],pink:[Wt,192,203],cyan:[0,Wt,Wt],transparent:[Wt,Wt,Wt,0]},Df=function(t,r,n){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(n-r)*t*6:t<.5?n:t*3<2?r+(n-r)*(2/3-t)*6:r)*Wt+.5|0},IP=function(t,r,n){var i=t?Hn(t)?[t>>16,t>>8&Wt,t&Wt]:0:as.black,a,o,s,l,u,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),as[t])i=as[t];else if(t.charAt(0)==="#"){if(t.length<6&&(a=t.charAt(1),o=t.charAt(2),s=t.charAt(3),t="#"+a+a+o+o+s+s+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Wt,i&Wt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Wt,t&Wt]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(_y),!r)l=+i[0]%360/360,u=+i[1]/100,c=+i[2]/100,o=c<=.5?c*(u+1):c+u-c*u,a=c*2-o,i.length>3&&(i[3]*=1),i[0]=Df(l+1/3,a,o),i[1]=Df(l,a,o),i[2]=Df(l-1/3,a,o);else if(~t.indexOf("="))return i=t.match(hP),n&&i.length<4&&(i[3]=1),i}else i=t.match(_y)||as.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Wt,o=i[1]/Wt,s=i[2]/Wt,f=Math.max(a,o,s),h=Math.min(a,o,s),c=(f+h)/2,f===h?l=u=0:(p=f-h,u=c>.5?p/(2-f-h):p/(f+h),l=f===a?(o-s)/p+(o<s?6:0):f===o?(s-a)/p+2:(a-o)/p+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(c*100+.5)),n&&i.length<4&&(i[3]=1),i},NP=function(t){var r=[],n=[],i=-1;return t.split(hi).forEach(function(a){var o=a.match(Ca)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},Hb=function(t,r,n){var i="",a=(t+i).match(hi),o=r?"hsla(":"rgba(",s=0,l,u,c,f;if(!a)return t;if(a=a.map(function(h){return(h=IP(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=NP(t),l=n.c,l.join(i)!==c.c.join(i)))for(u=t.replace(hi,"1").split(Ca),f=u.length-1;s<f;s++)i+=u[s]+(~l.indexOf(s)?a.shift()||o+"0,0,0,0)":(c.length?c:a.length?a:n).shift());if(!u)for(u=t.split(hi),f=u.length-1;s<f;s++)i+=u[s]+a[s];return i+u[f]},hi=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in as)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),iN=/hsl[a]?\(/,LP=function(t){var r=t.join(" "),n;if(hi.lastIndex=0,hi.test(r))return n=iN.test(r),t[1]=Hb(t[1],n),t[0]=Hb(t[0],n,NP(t[1])),!0},Is,_r=(function(){var e=Date.now,t=500,r=33,n=e(),i=n,a=1e3/240,o=a,s=[],l,u,c,f,h,p,y=function m(d){var v=e()-i,w=d===!0,b,_,g,x;if((v>t||v<0)&&(n+=v-r),i+=v,g=i-n,b=g-o,(b>0||w)&&(x=++f.frame,h=g-f.time*1e3,f.time=g=g/1e3,o+=b+(b>=a?4:a-b),_=1),w||(l=u(m)),_)for(p=0;p<s.length;p++)s[p](g,h,x,d)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(d){return h/(1e3/(d||60))},wake:function(){mP&&(!xy&&Rv()&&(pn=xy=window,Dv=pn.document||{},Or.gsap=lr,(pn.gsapVersions||(pn.gsapVersions=[])).push(lr.version),yP(Cu||pn.GreenSockGlobals||!pn.gsap&&pn||{}),RP.forEach(DP)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(d){return setTimeout(d,o-f.time*1e3+1|0)},Is=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Is=0,u=Rs},lagSmoothing:function(d,v){t=d||1/0,r=Math.min(v||33,t)},fps:function(d){a=1e3/(d||240),o=f.time*1e3+a},add:function(d,v,w){var b=v?function(_,g,x,S){d(_,g,x,S),f.remove(b)}:d;return f.remove(d),s[w?"unshift":"push"](b),Qa(),b},remove:function(d,v){~(v=s.indexOf(d))&&s.splice(v,1)&&p>=v&&p--},_listeners:s},f})(),Qa=function(){return!Is&&_r.wake()},Pt={},aN=/^[\d.\-M][\d.\-,\s]/,oN=/["']/g,sN=function(t){for(var r={},n=t.substr(1,t.length-3).split(":"),i=n[0],a=1,o=n.length,s,l,u;a<o;a++)l=n[a],s=a!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,s),r[i]=isNaN(u)?u.replace(oN,"").trim():+u,i=l.substr(s+1).trim();return r},lN=function(t){var r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r);return t.substring(r,~i&&i<n?t.indexOf(")",n+1):n)},uN=function(t){var r=(t+"").split("("),n=Pt[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[sN(r[1])]:lN(t).split(",").map(xP)):Pt._CE&&aN.test(t)?Pt._CE("",t):n},BP=function(t){return function(r){return 1-t(1-r)}},qP=function e(t,r){for(var n=t._first,i;n;)n instanceof Ge?e(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?e(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},Ki=function(t,r){return t&&(ae(t)?t:Pt[t]||uN(t))||r},fa=function(t,r,n,i){n===void 0&&(n=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var a={easeIn:r,easeOut:n,easeInOut:i},o;return nr(t,function(s){Pt[s]=Or[s]=a,Pt[o=s.toLowerCase()]=n;for(var l in a)Pt[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Pt[s+"."+l]=a[l]}),a},FP=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},If=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/by*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*NI((c-o)*a)+1},l=t==="out"?s:t==="in"?function(u){return 1-s(1-u)}:FP(s);return a=by/a,l.config=function(u,c){return e(t,u,c)},l},Nf=function e(t,r){r===void 0&&(r=1.70158);var n=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=t==="out"?n:t==="in"?function(a){return 1-n(1-a)}:FP(n);return i.config=function(a){return e(t,a)},i};nr("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;fa(e+",Power"+(r-1),t?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});Pt.Linear.easeNone=Pt.none=Pt.Linear.easeIn;fa("Elastic",If("in"),If("out"),If());(function(e,t){var r=1/t,n=2*r,i=2.5*r,a=function(s){return s<r?e*s*s:s<n?e*Math.pow(s-1.5/t,2)+.75:s<i?e*(s-=2.25/t)*s+.9375:e*Math.pow(s-2.625/t,2)+.984375};fa("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);fa("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});fa("Circ",function(e){return-(cP(1-e*e)-1)});fa("Sine",function(e){return e===1?1:-II(e*RI)+1});fa("Back",Nf("in"),Nf("out"),Nf());Pt.SteppedEase=Pt.steps=Or.SteppedEase={config:function(t,r){t===void 0&&(t=1);var n=1/t,i=t+(r?0:1),a=r?1:0,o=1-Ht;return function(s){return((i*wl(0,o,s)|0)+a)*n}}};Xa.ease=Pt["quad.out"];nr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return Lv+=e+","+e+"Params,"});var zP=function(t,r){this.id=DI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:bP,this.set=r?r.getSetter:Wv},Ns=(function(){function e(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,Ja(this,+r.duration,1,1),this.data=r.data,Qt&&(this._ctx=Qt,Qt.data.push(this)),Is||_r.wake()}var t=e.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,Ja(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(Qa(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(Dc(this,n),!a._dp||a.parent||AP(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&mn(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Ht||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),_P(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+zb(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+zb(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?Za(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-Ht?0:this._rts;if(this._rts===n)return this;var a=this.parent&&this._ts?$u(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Ht?0:this._rts,this.totalTime(wl(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Rc(this),WI(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Qa(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ht&&(this._tTime-=Ht)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&mn(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(rr(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?$u(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=qI);var i=je;return je=n,qv(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),je=i,this},t.globalTime=function(n){for(var i=this,a=arguments.length?n:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):a},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,Ub(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Ub(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(Rr(this,n),rr(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,rr(i)),this._dur||(this._zTime=-Ht),this},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Ht:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ht,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,a;return!!(!n||this._ts&&this._initted&&n.isActive()&&(a=n.rawTime(!0))>=i&&a<this.endTime(!0)-Ht)},t.eventCallback=function(n,i,a){var o=this.vars;return arguments.length>1?(i?(o[n]=i,a&&(o[n+"Params"]=a),n==="onUpdate"&&(this._onUpdate=i)):delete o[n],this):o[n]},t.then=function(n){var i=this;return new Promise(function(a){var o=ae(n)?n:wP,s=function(){var u=i.then;i.then=null,ae(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=u),a(o),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?s():i._prom=s})},t.kill=function(){is(this)},e})();Tr(Ns.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ht,_prom:0,_ps:!1,_rts:1});var Ge=(function(e){uP(t,e);function t(n,i){var a;return n===void 0&&(n={}),a=e.call(this,n)||this,a.labels={},a.smoothChildTiming=!!n.smoothChildTiming,a.autoRemoveChildren=!!n.autoRemoveChildren,a._sort=rr(n.sortChildren),re&&mn(n.parent||re,jn(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&OP(jn(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return fs(0,arguments,this),this},r.from=function(i,a,o){return fs(1,arguments,this),this},r.fromTo=function(i,a,o,s){return fs(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,cs(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new he(i,a,Rr(this,o),1),this},r.call=function(i,a,o){return mn(this,he.delayedCall(0,i,a),o)},r.staggerTo=function(i,a,o,s,l,u,c){return o.duration=a,o.stagger=o.stagger||s,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new he(i,o,Rr(this,l)),this},r.staggerFrom=function(i,a,o,s,l,u,c){return o.runBackwards=1,cs(o).immediateRender=rr(o.immediateRender),this.staggerTo(i,a,o,s,l,u,c)},r.staggerFromTo=function(i,a,o,s,l,u,c,f){return s.startAt=o,cs(s).immediateRender=rr(s.immediateRender),this.staggerTo(i,a,s,l,u,c,f)},r.render=function(i,a,o){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=i<=0?0:pe(i),f=this._zTime<0!=i<0&&(this._initted||!u),h,p,y,m,d,v,w,b,_,g,x,S;if(this!==re&&c>l&&i>=0&&(c=l),c!==this._tTime||o||f){if(s!==this._time&&u&&(c+=this._time-s,i+=this._time-s),h=c,_=this._start,b=this._ts,v=!b,f&&(u||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(x=this._yoyo,d=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(d*100+i,a,o);if(h=pe(c%d),c===l?(m=this._repeat,h=u):(g=pe(c/d),m=~~g,m&&m===g&&(h=u,m--),h>u&&(h=u)),g=Za(this._tTime,d),!s&&this._tTime&&g!==m&&this._tTime-g*d-this._dur<=0&&(g=m),x&&m&1&&(h=u-h,S=1),m!==g&&!this._lock){var A=x&&g&1,T=A===(x&&m&1);if(m<g&&(A=!A),s=A?0:c%u?u:c,this._lock=1,this.render(s||(S?0:pe(m*d)),a,!u)._lock=0,this._tTime=c,!a&&this.parent&&wr(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),s&&s!==this._time||v!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,T&&(this._lock=2,s=A?u:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;qP(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=YI(this,pe(s),pe(h)),w&&(c-=h-(h=w._start))),this._tTime=c,this._time=h,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,s=0),!s&&c&&!a&&!g&&(wr(this,"onStart"),this._tTime!==c))return this;if(h>=s&&i>=0)for(p=this._first;p;){if(y=p._next,(p._act||h>=p._start)&&p._ts&&w!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,a,o),h!==this._time||!this._ts&&!v){w=0,y&&(c+=this._zTime=-Ht);break}}p=y}else{p=this._last;for(var C=i<0?i:h;p;){if(y=p._prev,(p._act||C<=p._end)&&p._ts&&w!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(C-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(C-p._start)*p._ts,a,o||je&&qv(p)),h!==this._time||!this._ts&&!v){w=0,y&&(c+=this._zTime=C?-Ht:Ht);break}}p=y}}if(w&&!a&&(this.pause(),w.render(h>=s?0:-Ht)._zTime=h>=s?1:-1,this._ts))return this._start=_,Rc(this),this.render(i,a,o);this._onUpdate&&!a&&wr(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&s)&&(_===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&pi(this,1),!a&&!(i<0&&!s)&&(c||s||!l)&&(wr(this,c===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,a){var o=this;if(Hn(a)||(a=Rr(this,a,i)),!(i instanceof Ns)){if(Ue(i))return i.forEach(function(s){return o.add(s,a)}),this;if(Pe(i))return this.addLabel(i,a);if(ae(i))i=he.delayedCall(0,i);else return this}return this!==i?mn(this,i,a):this},r.getChildren=function(i,a,o,s){i===void 0&&(i=!0),a===void 0&&(a=!0),o===void 0&&(o=!0),s===void 0&&(s=-Nr);for(var l=[],u=this._first;u;)u._start>=s&&(u instanceof he?a&&l.push(u):(o&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,a,o)))),u=u._next;return l},r.getById=function(i){for(var a=this.getChildren(1,1,1),o=a.length;o--;)if(a[o].vars.id===i)return a[o]},r.remove=function(i){return Pe(i)?this.removeLabel(i):ae(i)?this.killTweensOf(i):(i.parent===this&&jc(this,i),i===this._recent&&(this._recent=this._last),Gi(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=pe(_r.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},r.addLabel=function(i,a){return this.labels[i]=Rr(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=he.delayedCall(0,a||Rs,o);return s.data="isPause",this._hasPause=1,mn(this,s,Rr(this,i))},r.removePause=function(i){var a=this._first;for(i=Rr(this,i);a;)a._start===i&&a.data==="isPause"&&pi(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),l=s.length;l--;)ii!==s[l]&&s[l].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=Lr(i),l=this._first,u=Hn(a),c;l;)l instanceof he?FI(l._targets,s)&&(u?(!ii||l._initted&&l._ts)&&l.globalTime(0)<=a&&l.globalTime(l.totalDuration())>a:!a||l.isActive())&&o.push(l):(c=l.getTweensOf(s,a)).length&&o.push.apply(o,c),l=l._next;return o},r.tweenTo=function(i,a){a=a||{};var o=this,s=Rr(o,i),l=a,u=l.startAt,c=l.onStart,f=l.onStartParams,h=l.immediateRender,p,y=he.to(o,Tr({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale())||Ht,onStart:function(){if(o.pause(),!p){var d=a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale());y._dur!==d&&Ja(y,d,0,1).render(y._time,!0,!0),p=1}c&&c.apply(y,f||[])}},a));return h?y.render(0):y},r.tweenFromTo=function(i,a,o){return this.tweenTo(a,Tr({startAt:{time:Rr(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Wb(this,Rr(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Wb(this,Rr(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Ht)},r.shiftChildren=function(i,a,o){o===void 0&&(o=0);for(var s=this._first,l=this.labels,u;s;)s._start>=o&&(s._start+=i,s._end+=i),s=s._next;if(a)for(u in l)l[u]>=o&&(l[u]+=i);return Gi(this)},r.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return e.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var a=this._first,o;a;)o=a._next,this.remove(a),a=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Gi(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,l=Nr,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;s;)u=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>l&&o._sort&&s._ts&&!o._lock?(o._lock=1,mn(o,s,c-s._delay,1)._lock=0):l=c,c<0&&s._ts&&(a-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),s._end>a&&s._ts&&(a=s._end),s=u;Ja(o,o===re&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(re._ts&&(_P(re,$u(i,re)),vP=_r.frame),_r.frame>=qb){qb+=Sr.autoSleep||120;var a=re._first;if((!a||!a._ts)&&Sr.autoSleep&&_r._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||_r.sleep()}}},t})(Ns);Tr(Ge.prototype,{_lock:0,_hasPause:0,_forcing:0});var cN=function(t,r,n,i,a,o,s){var l=new ir(this._pt,t,r,0,1,YP,null,a),u=0,c=0,f,h,p,y,m,d,v,w;for(l.b=n,l.e=i,n+="",i+="",(v=~i.indexOf("random("))&&(i=Ds(i)),o&&(w=[n,i],o(w,t,r),n=w[0],i=w[1]),h=n.match(jf)||[];f=jf.exec(i);)y=f[0],m=i.substring(u,f.index),p?p=(p+1)%5:m.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(d=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:m||c===1?m:",",s:d,c:y.charAt(1)==="="?Da(d,y)-d:parseFloat(y)-d,m:p&&p<4?Math.round:0},u=jf.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=s,(pP.test(i)||v)&&(l.e=0),this._pt=l,l},Fv=function(t,r,n,i,a,o,s,l,u,c){ae(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:ae(f)?u?t[r.indexOf("set")||!ae(t["get"+r.substr(3)])?r:"get"+r.substr(3)](u):t[r]():f,p=ae(f)?u?mN:GP:Uv,y;if(Pe(i)&&(~i.indexOf("random(")&&(i=Ds(i)),i.charAt(1)==="="&&(y=Da(h,i)+(ze(h)||0),(y||y===0)&&(i=y))),!c||h!==i||Ey)return!isNaN(h*i)&&i!==""?(y=new ir(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?gN:KP,0,p),u&&(y.fp=u),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&Iv(r,i),cN.call(this,t,r,h,i,p,l||Sr.stringFilter,u))},fN=function(t,r,n,i,a){if(ae(t)&&(t=hs(t,a,r,n,i)),!wn(t)||t.style&&t.nodeType||Ue(t)||fP(t))return Pe(t)?hs(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=hs(t[s],a,r,n,i);return o},UP=function(t,r,n,i,a,o){var s,l,u,c;if(br[t]&&(s=new br[t]).init(a,s.rawVars?r[t]:fN(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=l=new ir(n._pt,a,t,0,1,s.render,s,0,s.priority),n!==Ma))for(u=n._ptLookup[n._targets.indexOf(a)],c=s._props.length;c--;)u[s._props[c]]=l;return s},ii,Ey,zv=function e(t,r,n){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,l=i.lazy,u=i.onUpdate,c=i.runBackwards,f=i.yoyoEase,h=i.keyframes,p=i.autoRevert,y=t._dur,m=t._startAt,d=t._targets,v=t.parent,w=v&&v.data==="nested"?v.vars.targets:d,b=t._overwrite==="auto"&&!$v,_=t.timeline,g,x,S,A,T,C,P,E,k,$,j,M,I;if(_&&(!h||!a)&&(a="none"),t._ease=Ki(a,Xa.ease),t._yEase=f?BP(Ki(f===!0?a:f,Xa.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!_&&!!i.runBackwards,!_||h&&!i.stagger){if(E=d[0]?Hi(d[0]).harness:0,M=E&&i[E.prop],g=ku(i,Nv),m&&(m._zTime<0&&m.progress(1),r<0&&c&&s&&!p?m.render(-1,!0):m.revert(c&&y?ou:BI),m._lazy=0),o){if(pi(t._startAt=he.set(d,Tr({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!m&&rr(l),startAt:null,delay:0,onUpdate:u&&function(){return wr(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(je||!s&&!p)&&t._startAt.revert(ou),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!m){if(r&&(s=!1),S=Tr({overwrite:!1,data:"isFromStart",lazy:s&&!m&&rr(l),immediateRender:s,stagger:0,parent:v},g),M&&(S[E.prop]=M),pi(t._startAt=he.set(d,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(je?t._startAt.revert(ou):t._startAt.render(-1,!0)),t._zTime=r,!s)e(t._startAt,Ht,Ht);else if(!r)return}for(t._pt=t._ptCache=0,l=y&&rr(l)||l&&!y,x=0;x<d.length;x++){if(T=d[x],P=T._gsap||Bv(d)[x]._gsap,t._ptLookup[x]=$={},wy[P.id]&&fi.length&&Mu(),j=w===d?x:w.indexOf(T),E&&(k=new E).init(T,M||g,t,j,w)!==!1&&(t._pt=A=new ir(t._pt,T,k.name,0,1,k.render,k,0,k.priority),k._props.forEach(function(q){$[q]=A}),k.priority&&(C=1)),!E||M)for(S in g)br[S]&&(k=UP(S,g,t,j,T,w))?k.priority&&(C=1):$[S]=A=Fv.call(t,T,S,"get",g[S],j,w,0,i.stringFilter);t._op&&t._op[x]&&t.kill(T,t._op[x]),b&&t._pt&&(ii=t,re.killTweensOf(T,$,t.globalTime(r)),I=!t.parent,ii=0),t._pt&&l&&(wy[P.id]=1)}C&&XP(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!I,h&&r<=0&&_.render(Nr,!0,!0)},hN=function(t,r,n,i,a,o,s,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[r],c,f,h,p;if(!u)for(u=t._ptCache[r]=[],h=t._ptLookup,p=t._targets.length;p--;){if(c=h[p][r],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==r&&c.fp!==r;)c=c._next;if(!c)return Ey=1,t.vars[r]="+=0",zv(t,s),Ey=0,l?js(r+" not eligible for reset"):1;u.push(c)}for(p=u.length;p--;)f=u[p],c=f._pt||f,c.s=(i||i===0)&&!a?i:c.s+(i||0)+o*c.c,c.c=n-c.s,f.e&&(f.e=se(n)+ze(f.e)),f.b&&(f.b=c.s+ze(f.b))},pN=function(t,r){var n=t[0]?Hi(t[0]).harness:0,i=n&&n.aliases,a,o,s,l;if(!i)return r;a=Va({},r);for(o in i)if(o in a)for(l=i[o].split(","),s=l.length;s--;)a[l[s]]=a[o];return a},dN=function(t,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(Ue(r))s=n[t]||(n[t]=[]),r.forEach(function(l,u){return s.push({t:u/(r.length-1)*100,v:l,e:a})});else for(o in r)s=n[o]||(n[o]=[]),o==="ease"||s.push({t:parseFloat(t),v:r[o],e:a})},hs=function(t,r,n,i,a){return ae(t)?t.call(r,n,i,a):Pe(t)&&~t.indexOf("random(")?Ds(t):t},WP=Lv+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",HP={};nr(WP+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return HP[e]=1});var he=(function(e){uP(t,e);function t(n,i,a,o){var s;typeof i=="number"&&(a.duration=i,i=a,a=null),s=e.call(this,o?i:cs(i))||this;var l=s.vars,u=l.duration,c=l.delay,f=l.immediateRender,h=l.stagger,p=l.overwrite,y=l.keyframes,m=l.defaults,d=l.scrollTrigger,v=l.yoyoEase,w=i.parent||re,b=(Ue(n)||fP(n)?Hn(n[0]):"length"in i)?[n]:Lr(n),_,g,x,S,A,T,C,P;if(s._targets=b.length?Bv(b):js("GSAP target "+n+" not found. https://gsap.com",!Sr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||Bl(u)||Bl(c)){if(i=s.vars,_=s.timeline=new Ge({data:"nested",defaults:m||{},targets:w&&w.data==="nested"?w.vars.targets:b}),_.kill(),_.parent=_._dp=jn(s),_._start=0,h||Bl(u)||Bl(c)){if(S=b.length,C=h&&CP(h),wn(h))for(A in h)~WP.indexOf(A)&&(P||(P={}),P[A]=h[A]);for(g=0;g<S;g++)x=ku(i,HP),x.stagger=0,v&&(x.yoyoEase=v),P&&Va(x,P),T=b[g],x.duration=+hs(u,jn(s),g,T,b),x.delay=(+hs(c,jn(s),g,T,b)||0)-s._delay,!h&&S===1&&x.delay&&(s._delay=c=x.delay,s._start+=c,x.delay=0),_.to(T,x,C?C(g,T,b):0),_._ease=Pt.none;_.duration()?u=c=0:s.timeline=0}else if(y){cs(Tr(_.vars.defaults,{ease:"none"})),_._ease=Ki(y.ease||i.ease||"none");var E=0,k,$,j;if(Ue(y))y.forEach(function(M){return _.to(b,M,">")}),_.duration();else{x={};for(A in y)A==="ease"||A==="easeEach"||dN(A,y[A],x,y.easeEach);for(A in x)for(k=x[A].sort(function(M,I){return M.t-I.t}),E=0,g=0;g<k.length;g++)$=k[g],j={ease:$.e,duration:($.t-(g?k[g-1].t:0))/100*u},j[A]=$.v,_.to(b,j,E),E+=j.duration;_.duration()<u&&_.to({},{duration:u-_.duration()})}}u||s.duration(u=_.duration())}else s.timeline=0;return p===!0&&!$v&&(ii=jn(s),re.killTweensOf(b),ii=0),mn(w,jn(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!u&&!y&&s._start===pe(w._time)&&rr(f)&&HI(jn(s))&&w.data!=="nested")&&(s._tTime=-Ht,s.render(Math.max(0,-c)||0)),d&&OP(jn(s),d),s}var r=t.prototype;return r.render=function(i,a,o){var s=this._time,l=this._tDur,u=this._dur,c=i<0,f=i>l-Ht&&!c?l:i<Ht?0:i,h,p,y,m,d,v,w,b,_;if(!u)KI(this,i,a,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,b=this.timeline,this._repeat){if(m=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+i,a,o);if(h=pe(f%m),f===l?(y=this._repeat,h=u):(d=pe(f/m),y=~~d,y&&y===d?(h=u,y--):h>u&&(h=u)),v=this._yoyo&&y&1,v&&(_=this._yEase,h=u-h),d=Za(this._tTime,m),h===s&&!o&&this._initted&&y===d)return this._tTime=f,this;y!==d&&(b&&this._yEase&&qP(b,v),this.vars.repeatRefresh&&!v&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(pe(m*y),!0).invalidate()._lock=0))}if(!this._initted){if(TP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==d))return this;if(u!==this._dur)return this.render(i,a,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(_||this._ease)(h/u),this._from&&(this.ratio=w=1-w),!s&&f&&!a&&!d&&(wr(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(w,p.d),p=p._next;b&&b.render(i<0?i:b._dur*b._ease(h/this._dur),a,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!a&&(c&&Sy(this,i,a,o),wr(this,"onUpdate")),this._repeat&&y!==d&&this.vars.onRepeat&&!a&&this.parent&&wr(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Sy(this,i,!0,!0),(i||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&pi(this,1),!a&&!(c&&!s)&&(f||s||v)&&(wr(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},r.resetTo=function(i,a,o,s,l){Is||_r.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||zv(this,u),c=this._ease(u/this._dur),hN(this,i,a,o,s,c,u,l)?this.resetTo(i,a,o,s,1):(Dc(this,0),this.parent||SP(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?is(this):this.scrollTrigger&&this.scrollTrigger.kill(!!je),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,ii&&ii.vars.overwrite!==!0)._first||is(this),this.parent&&o!==this.timeline.totalDuration()&&Ja(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,l=i?Lr(i):s,u=this._ptLookup,c=this._pt,f,h,p,y,m,d,v;if((!a||a==="all")&&UI(s,l))return a==="all"&&(this._pt=0),is(this);for(f=this._op=this._op||[],a!=="all"&&(Pe(a)&&(m={},nr(a,function(w){return m[w]=1}),a=m),a=pN(s,a)),v=s.length;v--;)if(~l.indexOf(s[v])){h=u[v],a==="all"?(f[v]=a,y=h,p={}):(p=f[v]=f[v]||{},y=a);for(m in y)d=h&&h[m],d&&((!("kill"in d.d)||d.d.kill(m)===!0)&&jc(this,d,"_pt"),delete h[m]),p!=="all"&&(p[m]=1)}return this._initted&&!this._pt&&c&&is(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return fs(1,arguments)},t.delayedCall=function(i,a,o,s){return new t(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},t.fromTo=function(i,a,o){return fs(2,arguments)},t.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(i,a)},t.killTweensOf=function(i,a,o){return re.killTweensOf(i,a,o)},t})(Ns);Tr(he.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});nr("staggerTo,staggerFrom,staggerFromTo",function(e){he[e]=function(){var t=new Ge,r=Oy.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var Uv=function(t,r,n){return t[r]=n},GP=function(t,r,n){return t[r](n)},mN=function(t,r,n,i){return t[r](i.fp,n)},yN=function(t,r,n){return t.setAttribute(r,n)},Wv=function(t,r){return ae(t[r])?GP:jv(t[r])&&t.setAttribute?yN:Uv},KP=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},gN=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},YP=function(t,r){var n=r._pt,i="";if(!t&&r.b)i=r.b;else if(t===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},Hv=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},vN=function(t,r,n,i){for(var a=this._pt,o;a;)o=a._next,a.p===i&&a.modifier(t,r,n),a=o},bN=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?jc(this,r,"_pt"):r.dep||(n=1),r=i;return!n},_N=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},XP=function(t){for(var r=t._pt,n,i,a,o;r;){for(n=r._next,i=a;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:a=r,(r._next=i)?i._prev=r:o=r,r=n}t._pt=a},ir=(function(){function e(r,n,i,a,o,s,l,u,c){this.t=n,this.s=a,this.c=o,this.p=i,this.r=s||KP,this.d=l||this,this.set=u||Uv,this.pr=c||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=_N,this.m=n,this.mt=a,this.tween=i},e})();nr(Lv+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return Nv[e]=1});Or.TweenMax=Or.TweenLite=he;Or.TimelineLite=Or.TimelineMax=Ge;re=new Ge({sortChildren:!1,defaults:Xa,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Sr.stringFilter=LP;var Yi=[],lu={},xN=[],Gb=0,wN=0,Lf=function(t){return(lu[t]||xN).map(function(r){return r()})},Cy=function(){var t=Date.now(),r=[];t-Gb>2&&(Lf("matchMediaInit"),Yi.forEach(function(n){var i=n.queries,a=n.conditions,o,s,l,u;for(s in i)o=pn.matchMedia(i[s]).matches,o&&(l=1),o!==a[s]&&(a[s]=o,u=1);u&&(n.revert(),l&&r.push(n))}),Lf("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Gb=t,Lf("matchMedia"))},VP=(function(){function e(r,n){this.selector=n&&Ty(n),this.data=[],this._r=[],this.isReverted=!1,this.id=wN++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){ae(n)&&(a=i,i=n,n=ae);var o=this,s=function(){var u=Qt,c=o.selector,f;return u&&u!==o&&u.data.push(o),a&&(o.selector=Ty(a)),Qt=o,f=i.apply(o,arguments),ae(f)&&o._r.push(f),Qt=u,o.selector=c,o.isReverted=!1,f};return o.last=s,n===ae?s(o,function(l){return o.add(null,l)}):n?o[n]=s:s},t.ignore=function(n){var i=Qt;Qt=null,n(this),Qt=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof he&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var a=this;if(n?(function(){for(var s=a.getTweens(),l=a.data.length,u;l--;)u=a.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(n)}),l=a.data.length;l--;)u=a.data[l],u instanceof Ge?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof he)&&u.revert&&u.revert(n);a._r.forEach(function(c){return c(n,a)}),a.isReverted=!0})():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),i)for(var o=Yi.length;o--;)Yi[o].id===this.id&&Yi.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),SN=(function(){function e(r){this.contexts=[],this.scope=r,Qt&&Qt.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){wn(n)||(n={matches:n});var o=new VP(0,a||this.scope),s=o.conditions={},l,u,c;Qt&&!o.selector&&(o.selector=Qt.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(u in n)u==="all"?c=1:(l=pn.matchMedia(n[u]),l&&(Yi.indexOf(o)<0&&Yi.push(o),(s[u]=l.matches)&&(c=1),l.addListener?l.addListener(Cy):l.addEventListener("change",Cy)));return c&&i(o,function(f){return o.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},e})(),ju={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(i){return DP(i)})},timeline:function(t){return new Ge(t)},getTweensOf:function(t,r){return re.getTweensOf(t,r)},getProperty:function(t,r,n,i){Pe(t)&&(t=Lr(t)[0]);var a=Hi(t||{}).get,o=n?wP:xP;return n==="native"&&(n=""),t&&(r?o((br[r]&&br[r].get||a)(t,r,n,i)):function(s,l,u){return o((br[s]&&br[s].get||a)(t,s,l,u))})},quickSetter:function(t,r,n){if(t=Lr(t),t.length>1){var i=t.map(function(c){return lr.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=br[r],s=Hi(t),l=s.harness&&(s.harness.aliases||{})[r]||r,u=o?function(c){var f=new o;Ma._pt=0,f.init(t,n?c+n:c,Ma,0,[t]),f.render(1,f),Ma._pt&&Hv(1,Ma)}:s.set(t,l);return o?u:function(c){return u(t,l,n?c+n:c,s,1)}},quickTo:function(t,r,n){var i,a=lr.to(t,Tr((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),o=function(l,u,c){return a.resetTo(r,l,u,c)};return o.tween=a,o},isTweening:function(t){return re.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ki(t.ease,Xa.ease)),Fb(Xa,t||{})},config:function(t){return Fb(Sr,t||{})},registerEffect:function(t){var r=t.name,n=t.effect,i=t.plugins,a=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!br[s]&&!Or[s]&&js(r+" effect requires "+s+" plugin.")}),Rf[r]=function(s,l,u){return n(Lr(s),Tr(l||{},a),u)},o&&(Ge.prototype[r]=function(s,l,u){return this.add(Rf[r](s,wn(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,r){Pt[t]=Ki(r)},parseEase:function(t,r){return arguments.length?Ki(t,r):Pt},getById:function(t){return re.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new Ge(t),i,a;for(n.smoothChildTiming=rr(t.smoothChildTiming),re.remove(n),n._dp=0,n._time=n._tTime=re._time,i=re._first;i;)a=i._next,(r||!(!i._dur&&i instanceof he&&i.vars.onComplete===i._targets[0]))&&mn(n,i,i._start-i._delay),i=a;return mn(re,n,0),n},context:function(t,r){return t?new VP(t,r):Qt},matchMedia:function(t){return new SN(t)},matchMediaRefresh:function(){return Yi.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||Cy()},addEventListener:function(t,r){var n=lu[t]||(lu[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=lu[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:eN,wrapYoyo:rN,distribute:CP,random:kP,snap:MP,normalize:tN,getUnit:ze,clamp:VI,splitColor:IP,toArray:Lr,selector:Ty,mapRange:jP,pipe:JI,unitize:QI,interpolate:nN,shuffle:EP},install:yP,effects:Rf,ticker:_r,updateRoot:Ge.updateRoot,plugins:br,globalTimeline:re,core:{PropTween:ir,globals:gP,Tween:he,Timeline:Ge,Animation:Ns,getCache:Hi,_removeLinkedListItem:jc,reverting:function(){return je},context:function(t){return t&&Qt&&(Qt.data.push(t),t._ctx=Qt),Qt},suppressOverwrites:function(t){return $v=t}}};nr("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return ju[e]=he[e]});_r.add(Ge.updateRoot);Ma=ju.to({},{duration:0});var AN=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},ON=function(t,r){var n=t._targets,i,a,o;for(i in r)for(a=n.length;a--;)o=t._ptLookup[a][i],o&&(o=o.d)&&(o._pt&&(o=AN(o,i)),o&&o.modifier&&o.modifier(r[i],t,n[a],i))},Bf=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var l,u;if(Pe(a)&&(l={},nr(a,function(c){return l[c]=1}),a=l),r){l={};for(u in a)l[u]=r(a[u]);a=l}ON(s,a)}}}},lr=ju.registerPlugin({name:"attr",init:function(t,r,n,i,a){var o,s,l;this.tween=n;for(o in r)l=t.getAttribute(o)||"",s=this.add(t,"setAttribute",(l||0)+"",r[o],i,a,0,0,o),s.op=o,s.b=l,this._props.push(o)},render:function(t,r){for(var n=r._pt;n;)je?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,r){for(var n=r.length;n--;)this.add(t,n,t[n]||0,r[n],0,0,0,0,0,1)}},Bf("roundProps",Py),Bf("modifiers"),Bf("snap",MP))||ju;he.version=Ge.version=lr.version="3.13.0";mP=1;Rv()&&Qa();Pt.Power0;Pt.Power1;Pt.Power2;Pt.Power3;Pt.Power4;Pt.Linear;Pt.Quad;Pt.Cubic;Pt.Quart;Pt.Quint;Pt.Strong;Pt.Elastic;Pt.Back;Pt.SteppedEase;Pt.Bounce;Pt.Sine;Pt.Expo;Pt.Circ;/*!
8
+ */var kr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},no={duration:.5,overwrite:!1,delay:0},Rv,Fe,ie,Wr=1e8,Vt=1/Wr,wy=Math.PI*2,MI=wy/4,CI=0,uP=Math.sqrt,kI=Math.cos,$I=Math.sin,Re=function(t){return typeof t=="string"},he=function(t){return typeof t=="function"},Vn=function(t){return typeof t=="number"},Dv=function(t){return typeof t>"u"},Mn=function(t){return typeof t=="object"},hr=function(t){return t!==!1},Iv=function(){return typeof window<"u"},Hl=function(t){return he(t)||Re(t)},cP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Qe=Array.isArray,Sy=/(?:-?\.?\d|\.)+/gi,fP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ia=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,If=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,hP=/[+-]=-?[.\d]+/,pP=/[^,'"\[\]\s]+/gi,jI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ue,xn,Ay,Nv,jr={},ju={},dP,mP=function(t){return(ju=io(t,jr))&&vr},Lv=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},qs=function(t,r){return!r&&console.warn(t)},yP=function(t,r){return t&&(jr[t]=r)&&ju&&(ju[t]=r)||jr},Fs=function(){return 0},RI={suppressEvents:!0,isStart:!0,kill:!1},hu={suppressEvents:!0,kill:!1},DI={suppressEvents:!0},Bv={},bi=[],Oy={},gP,Pr={},Nf={},Fb=30,pu=[],qv="",Fv=function(t){var r=t[0],n,i;if(Mn(r)||he(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=pu.length;i--&&!pu[i].targetTest(r););n=pu[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new FP(t[i],n)))||t.splice(i,1);return t},Qi=function(t){return t._gsap||Fv(Hr(t))[0]._gsap},vP=function(t,r,n){return(n=t[r])&&he(n)?t[r]():Dv(n)&&t.getAttribute&&t.getAttribute(r)||n},pr=function(t,r){return(t=t.split(",")).forEach(r)||t},me=function(t){return Math.round(t*1e5)/1e5||0},we=function(t){return Math.round(t*1e7)/1e7||0},za=function(t,r){var n=r.charAt(0),i=parseFloat(r.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},II=function(t,r){for(var n=r.length,i=0;t.indexOf(r[i])<0&&++i<n;);return i<n},Ru=function(){var t=bi.length,r=bi.slice(0),n,i;for(Oy={},bi.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},zv=function(t){return!!(t._initted||t._startAt||t.add)},bP=function(t,r,n,i){bi.length&&!Fe&&Ru(),t.render(r,n,!!(Fe&&r<0&&zv(t))),bi.length&&!Fe&&Ru()},xP=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(pP).length<2?r:Re(t)?t.trim():t},_P=function(t){return t},Rr=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},NI=function(t){return function(r,n){for(var i in n)i in r||i==="duration"&&t||i==="ease"||(r[i]=n[i])}},io=function(t,r){for(var n in r)t[n]=r[n];return t},zb=function e(t,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=Mn(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},Du=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},vs=function(t){var r=t.parent||ue,n=t.keyframes?NI(Qe(t.keyframes)):Rr;if(hr(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},LI=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},wP=function(t,r,n,i,a){var o=t[i],s;if(a)for(s=r[a];o&&o[a]>s;)o=o._prev;return o?(r._next=o._next,o._next=r):(r._next=t[n],t[n]=r),r._next?r._next._prev=r:t[i]=r,r._prev=o,r.parent=r._dp=t,r},Nc=function(t,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,o=r._next;a?a._next=o:t[n]===r&&(t[n]=o),o?o._prev=a:t[i]===r&&(t[i]=a),r._next=r._prev=r.parent=null},wi=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},ta=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},BI=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},Ty=function(t,r,n,i){return t._startAt&&(Fe?t._startAt.revert(hu):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},qI=function e(t){return!t||t._ts&&e(t.parent)},Ub=function(t){return t._repeat?ao(t._tTime,t=t.duration()+t._rDelay)*t:0},ao=function(t,r){var n=Math.floor(t=we(t/r));return t&&n===t?n-1:n},Iu=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Lc=function(t){return t._end=we(t._start+(t._tDur/Math.abs(t._ts||t._rts||Vt)||0))},Bc=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=we(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),Lc(t),n._dirty||ta(n,t)),t},SP=function(t,r){var n;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(n=Iu(t.rawTime(),r),(!r._dur||Cl(0,r.totalDuration(),n)-r._tTime>Vt)&&r.render(n,!0)),ta(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-Vt}},wn=function(t,r,n,i){return r.parent&&wi(r),r._start=we((Vn(n)?n:n||t!==ue?Fr(t,n,r):t._time)+r._delay),r._end=we(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),wP(t,r,"_first","_last",t._sort?"_start":0),Py(r)||(t._recent=r),i||SP(t,r),t._ts<0&&Bc(t,t._tTime),t},AP=function(t,r){return(jr.ScrollTrigger||Lv("scrollTrigger",r))&&jr.ScrollTrigger.create(r,t)},OP=function(t,r,n,i,a){if(Wv(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!Fe&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&gP!==Er.frame)return bi.push(t),t._lazy=[a,i],1},FI=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Py=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},zI=function(t,r,n,i){var a=t.ratio,o=r<0||!r&&(!t._start&&FI(t)&&!(!t._initted&&Py(t))||(t._ts<0||t._dp._ts<0)&&!Py(t))?0:1,s=t._rDelay,l=0,u,c,f;if(s&&t._repeat&&(l=Cl(0,t._tDur,r),c=ao(l,s),t._yoyo&&c&1&&(o=1-o),c!==ao(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||Fe||i||t._zTime===Vt||!r&&t._zTime){if(!t._initted&&OP(t,r,i,n,l))return;for(f=t._zTime,t._zTime=r||(n?Vt:0),n||(n=r&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,u=t._pt;u;)u.r(o,u.d),u=u._next;r<0&&Ty(t,r,n,!0),t._onUpdate&&!n&&Cr(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&Cr(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&wi(t,1),!n&&!Fe&&(Cr(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},UI=function(t,r,n){var i;if(n>r)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},oo=function(t,r,n,i){var a=t._repeat,o=we(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:we(o*(a+1)+t._rDelay*a):o,s>0&&!i&&Bc(t,t._tTime=t._tDur*s),t.parent&&Lc(t),n||ta(t.parent,t),t},Wb=function(t){return t instanceof nr?ta(t):oo(t,t._dur)},WI={_start:0,endTime:Fs,totalDuration:Fs},Fr=function e(t,r,n){var i=t.labels,a=t._recent||WI,o=t.duration()>=Wr?a.endTime(!1):t._dur,s,l,u;return Re(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",s=r.indexOf("="),l==="<"||l===">"?(s>=0&&(r=r.replace(/=/,"")),(l==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(s<0?a:n).totalDuration()/100:1)):s<0?(r in i||(i[r]=o),i[r]):(l=parseFloat(r.charAt(s-1)+r.substr(s+1)),u&&n&&(l=l/100*(Qe(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+l:o+l)):r==null?o:+r},bs=function(t,r,n){var i=Vn(r[1]),a=(i?2:1)+(t<2?0:1),o=r[a],s,l;if(i&&(o.duration=r[1]),o.parent=n,t){for(s=o,l=n;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=hr(l.vars.inherit)&&l.parent;o.immediateRender=hr(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new _e(r[0],o,r[a+1])},Ti=function(t,r){return t||t===0?r(t):r},Cl=function(t,r,n){return n<t?t:n>r?r:n},Je=function(t,r){return!Re(t)||!(r=jI.exec(t))?"":r[1]},HI=function(t,r,n){return Ti(n,function(i){return Cl(t,r,i)})},Ey=[].slice,TP=function(t,r){return t&&Mn(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&Mn(t[0]))&&!t.nodeType&&t!==xn},GI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return Re(i)&&!r||TP(i,1)?(a=n).push.apply(a,Hr(i)):n.push(i)})||n},Hr=function(t,r,n){return ie&&!r&&ie.selector?ie.selector(t):Re(t)&&!n&&(Ay||!so())?Ey.call((r||Nv).querySelectorAll(t),0):Qe(t)?GI(t,n):TP(t)?Ey.call(t,0):t?[t]:[]},My=function(t){return t=Hr(t)[0]||qs("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return Hr(r,n.querySelectorAll?n:n===t?qs("Invalid scope")||Nv.createElement("div"):t)}},PP=function(t){return t.sort(function(){return .5-Math.random()})},EP=function(t){if(he(t))return t;var r=Mn(t)?t:{each:t},n=ea(r.ease),i=r.from||0,a=parseFloat(r.base)||0,o={},s=i>0&&i<1,l=isNaN(i)||s,u=r.axis,c=i,f=i;return Re(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&l&&(c=i[0],f=i[1]),function(h,p,y){var m=(y||r).length,d=o[m],b,v,x,_,g,w,S,A,T;if(!d){if(T=r.grid==="auto"?0:(r.grid||[1,Wr])[1],!T){for(S=-Wr;S<(S=y[T++].getBoundingClientRect().left)&&T<m;);T<m&&T--}for(d=o[m]=[],b=l?Math.min(T,m)*c-.5:i%T,v=T===Wr?0:l?m*f/T-.5:i/T|0,S=0,A=Wr,w=0;w<m;w++)x=w%T-b,_=v-(w/T|0),d[w]=g=u?Math.abs(u==="y"?_:x):uP(x*x+_*_),g>S&&(S=g),g<A&&(A=g);i==="random"&&PP(d),d.max=S-A,d.min=A,d.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(T>m?m-1:u?u==="y"?m/T:T:Math.max(T,m/T))||0)*(i==="edges"?-1:1),d.b=m<0?a-m:a,d.u=Je(r.amount||r.each)||0,n=n&&m<0?LP(n):n}return m=(d[h]-d.min)/d.max||0,we(d.b+(n?n(m):m)*d.v)+d.u}},Cy=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=we(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(Vn(n)?0:Je(n))}},MP=function(t,r){var n=Qe(t),i,a;return!n&&Mn(t)&&(i=n=t.radius||Wr,t.values?(t=Hr(t.values),(a=!Vn(t[0]))&&(i*=i)):t=Cy(t.increment)),Ti(r,n?he(t)?function(o){return a=t(o),Math.abs(a-o)<=i?a:o}:function(o){for(var s=parseFloat(a?o.x:o),l=parseFloat(a?o.y:0),u=Wr,c=0,f=t.length,h,p;f--;)a?(h=t[f].x-s,p=t[f].y-l,h=h*h+p*p):h=Math.abs(t[f]-s),h<u&&(u=h,c=f);return c=!i||u<=i?t[c]:o,a||c===o||Vn(o)?c:c+Je(o)}:Cy(t))},CP=function(t,r,n,i){return Ti(Qe(t)?!r:n===!0?!!(n=0):!i,function(){return Qe(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(r-t+n*.99))/n)*n*i)/i})},KI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduce(function(a,o){return o(a)},i)}},XI=function(t,r){return function(n){return t(parseFloat(n))+(r||Je(n))}},YI=function(t,r,n){return $P(t,r,0,1,n)},kP=function(t,r,n){return Ti(n,function(i){return t[~~r(i)]})},VI=function e(t,r,n){var i=r-t;return Qe(t)?kP(t,e(0,t.length),r):Ti(n,function(a){return(i+(a-t)%i)%i+t})},ZI=function e(t,r,n){var i=r-t,a=i*2;return Qe(t)?kP(t,e(0,t.length-1),r):Ti(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},zs=function(t){for(var r=0,n="",i,a,o,s;~(i=t.indexOf("random(",r));)o=t.indexOf(")",i),s=t.charAt(i+7)==="[",a=t.substr(i+7,o-i-7).match(s?pP:Sy),n+=t.substr(r,i-r)+CP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},$P=function(t,r,n,i,a){var o=r-t,s=i-n;return Ti(a,function(l){return n+((l-t)/o*s||0)})},JI=function e(t,r,n,i){var a=isNaN(t+r)?0:function(p){return(1-p)*t+p*r};if(!a){var o=Re(t),s={},l,u,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(Qe(t)&&!Qe(r)){for(c=[],f=t.length,h=f-2,u=1;u<f;u++)c.push(e(t[u-1],t[u]));f--,a=function(y){y*=f;var m=Math.min(h,~~y);return c[m](y-m)},n=r}else i||(t=io(Qe(t)?[]:{},t));if(!c){for(l in r)Uv.call(s,t,l,"get",r[l]);a=function(y){return Kv(y,s)||(o?t.p:t)}}}return Ti(n,a)},Hb=function(t,r,n){var i=t.labels,a=Wr,o,s,l;for(o in i)s=i[o]-r,s<0==!!n&&s&&a>(s=Math.abs(s))&&(l=o,a=s);return l},Cr=function(t,r,n){var i=t.vars,a=i[r],o=ie,s=t._ctx,l,u,c;if(a)return l=i[r+"Params"],u=i.callbackScope||t,n&&bi.length&&Ru(),s&&(ie=s),c=l?a.apply(u,l):a.call(u),ie=o,c},hs=function(t){return wi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Fe),t.progress()<1&&Cr(t,"onInterrupt"),t},Na,jP=[],RP=function(t){if(t)if(t=!t.name&&t.default||t,Iv()||t.headless){var r=t.name,n=he(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:Fs,render:Kv,add:Uv,kill:dN,modifier:pN,rawVars:0},o={targetTest:0,get:0,getSetter:Gv,aliases:{},register:0};if(so(),t!==i){if(Pr[r])return;Rr(i,Rr(Du(t,a),o)),io(i.prototype,io(a,Du(t,o))),Pr[i.prop=r]=i,t.targetTest&&(pu.push(i),Bv[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}yP(r,i),t.register&&t.register(vr,i,dr)}else jP.push(t)},Yt=255,ps={aqua:[0,Yt,Yt],lime:[0,Yt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Yt],navy:[0,0,128],white:[Yt,Yt,Yt],olive:[128,128,0],yellow:[Yt,Yt,0],orange:[Yt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Yt,0,0],pink:[Yt,192,203],cyan:[0,Yt,Yt],transparent:[Yt,Yt,Yt,0]},Lf=function(t,r,n){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(n-r)*t*6:t<.5?n:t*3<2?r+(n-r)*(2/3-t)*6:r)*Yt+.5|0},DP=function(t,r,n){var i=t?Vn(t)?[t>>16,t>>8&Yt,t&Yt]:0:ps.black,a,o,s,l,u,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ps[t])i=ps[t];else if(t.charAt(0)==="#"){if(t.length<6&&(a=t.charAt(1),o=t.charAt(2),s=t.charAt(3),t="#"+a+a+o+o+s+s+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Yt,i&Yt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Yt,t&Yt]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(Sy),!r)l=+i[0]%360/360,u=+i[1]/100,c=+i[2]/100,o=c<=.5?c*(u+1):c+u-c*u,a=c*2-o,i.length>3&&(i[3]*=1),i[0]=Lf(l+1/3,a,o),i[1]=Lf(l,a,o),i[2]=Lf(l-1/3,a,o);else if(~t.indexOf("="))return i=t.match(fP),n&&i.length<4&&(i[3]=1),i}else i=t.match(Sy)||ps.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Yt,o=i[1]/Yt,s=i[2]/Yt,f=Math.max(a,o,s),h=Math.min(a,o,s),c=(f+h)/2,f===h?l=u=0:(p=f-h,u=c>.5?p/(2-f-h):p/(f+h),l=f===a?(o-s)/p+(o<s?6:0):f===o?(s-a)/p+2:(a-o)/p+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(c*100+.5)),n&&i.length<4&&(i[3]=1),i},IP=function(t){var r=[],n=[],i=-1;return t.split(xi).forEach(function(a){var o=a.match(Ia)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},Gb=function(t,r,n){var i="",a=(t+i).match(xi),o=r?"hsla(":"rgba(",s=0,l,u,c,f;if(!a)return t;if(a=a.map(function(h){return(h=DP(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=IP(t),l=n.c,l.join(i)!==c.c.join(i)))for(u=t.replace(xi,"1").split(Ia),f=u.length-1;s<f;s++)i+=u[s]+(~l.indexOf(s)?a.shift()||o+"0,0,0,0)":(c.length?c:a.length?a:n).shift());if(!u)for(u=t.split(xi),f=u.length-1;s<f;s++)i+=u[s]+a[s];return i+u[f]},xi=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ps)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),QI=/hsl[a]?\(/,NP=function(t){var r=t.join(" "),n;if(xi.lastIndex=0,xi.test(r))return n=QI.test(r),t[1]=Gb(t[1],n),t[0]=Gb(t[0],n,IP(t[1])),!0},Us,Er=(function(){var e=Date.now,t=500,r=33,n=e(),i=n,a=1e3/240,o=a,s=[],l,u,c,f,h,p,y=function m(d){var b=e()-i,v=d===!0,x,_,g,w;if((b>t||b<0)&&(n+=b-r),i+=b,g=i-n,x=g-o,(x>0||v)&&(w=++f.frame,h=g-f.time*1e3,f.time=g=g/1e3,o+=x+(x>=a?4:a-x),_=1),v||(l=u(m)),_)for(p=0;p<s.length;p++)s[p](g,h,w,d)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(d){return h/(1e3/(d||60))},wake:function(){dP&&(!Ay&&Iv()&&(xn=Ay=window,Nv=xn.document||{},jr.gsap=vr,(xn.gsapVersions||(xn.gsapVersions=[])).push(vr.version),mP(ju||xn.GreenSockGlobals||!xn.gsap&&xn||{}),jP.forEach(RP)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(d){return setTimeout(d,o-f.time*1e3+1|0)},Us=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Us=0,u=Fs},lagSmoothing:function(d,b){t=d||1/0,r=Math.min(b||33,t)},fps:function(d){a=1e3/(d||240),o=f.time*1e3+a},add:function(d,b,v){var x=b?function(_,g,w,S){d(_,g,w,S),f.remove(x)}:d;return f.remove(d),s[v?"unshift":"push"](x),so(),x},remove:function(d,b){~(b=s.indexOf(d))&&s.splice(b,1)&&p>=b&&p--},_listeners:s},f})(),so=function(){return!Us&&Er.wake()},kt={},tN=/^[\d.\-M][\d.\-,\s]/,eN=/["']/g,rN=function(t){for(var r={},n=t.substr(1,t.length-3).split(":"),i=n[0],a=1,o=n.length,s,l,u;a<o;a++)l=n[a],s=a!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,s),r[i]=isNaN(u)?u.replace(eN,"").trim():+u,i=l.substr(s+1).trim();return r},nN=function(t){var r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r);return t.substring(r,~i&&i<n?t.indexOf(")",n+1):n)},iN=function(t){var r=(t+"").split("("),n=kt[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[rN(r[1])]:nN(t).split(",").map(xP)):kt._CE&&tN.test(t)?kt._CE("",t):n},LP=function(t){return function(r){return 1-t(1-r)}},BP=function e(t,r){for(var n=t._first,i;n;)n instanceof nr?e(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?e(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},ea=function(t,r){return t&&(he(t)?t:kt[t]||iN(t))||r},ba=function(t,r,n,i){n===void 0&&(n=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var a={easeIn:r,easeOut:n,easeInOut:i},o;return pr(t,function(s){kt[s]=jr[s]=a,kt[o=s.toLowerCase()]=n;for(var l in a)kt[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=kt[s+"."+l]=a[l]}),a},qP=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},Bf=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/wy*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*$I((c-o)*a)+1},l=t==="out"?s:t==="in"?function(u){return 1-s(1-u)}:qP(s);return a=wy/a,l.config=function(u,c){return e(t,u,c)},l},qf=function e(t,r){r===void 0&&(r=1.70158);var n=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=t==="out"?n:t==="in"?function(a){return 1-n(1-a)}:qP(n);return i.config=function(a){return e(t,a)},i};pr("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;ba(e+",Power"+(r-1),t?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});kt.Linear.easeNone=kt.none=kt.Linear.easeIn;ba("Elastic",Bf("in"),Bf("out"),Bf());(function(e,t){var r=1/t,n=2*r,i=2.5*r,a=function(s){return s<r?e*s*s:s<n?e*Math.pow(s-1.5/t,2)+.75:s<i?e*(s-=2.25/t)*s+.9375:e*Math.pow(s-2.625/t,2)+.984375};ba("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);ba("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});ba("Circ",function(e){return-(uP(1-e*e)-1)});ba("Sine",function(e){return e===1?1:-kI(e*MI)+1});ba("Back",qf("in"),qf("out"),qf());kt.SteppedEase=kt.steps=jr.SteppedEase={config:function(t,r){t===void 0&&(t=1);var n=1/t,i=t+(r?0:1),a=r?1:0,o=1-Vt;return function(s){return((i*Cl(0,o,s)|0)+a)*n}}};no.ease=kt["quad.out"];pr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return qv+=e+","+e+"Params,"});var FP=function(t,r){this.id=CI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:vP,this.set=r?r.getSetter:Gv},Ws=(function(){function e(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,oo(this,+r.duration,1,1),this.data=r.data,ie&&(this._ctx=ie,ie.data.push(this)),Us||Er.wake()}var t=e.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,oo(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(so(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(Bc(this,n),!a._dp||a.parent||SP(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&wn(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Vt||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),bP(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+Ub(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+Ub(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?ao(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-Vt?0:this._rts;if(this._rts===n)return this;var a=this.parent&&this._ts?Iu(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Vt?0:this._rts,this.totalTime(Cl(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Lc(this),BI(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(so(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Vt&&(this._tTime-=Vt)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&wn(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(hr(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Iu(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=DI);var i=Fe;return Fe=n,zv(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),Fe=i,this},t.globalTime=function(n){for(var i=this,a=arguments.length?n:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):a},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,Wb(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Wb(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(Fr(this,n),hr(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,hr(i)),this._dur||(this._zTime=-Vt),this},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Vt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Vt,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,a;return!!(!n||this._ts&&this._initted&&n.isActive()&&(a=n.rawTime(!0))>=i&&a<this.endTime(!0)-Vt)},t.eventCallback=function(n,i,a){var o=this.vars;return arguments.length>1?(i?(o[n]=i,a&&(o[n+"Params"]=a),n==="onUpdate"&&(this._onUpdate=i)):delete o[n],this):o[n]},t.then=function(n){var i=this;return new Promise(function(a){var o=he(n)?n:_P,s=function(){var u=i.then;i.then=null,he(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=u),a(o),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?s():i._prom=s})},t.kill=function(){hs(this)},e})();Rr(Ws.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Vt,_prom:0,_ps:!1,_rts:1});var nr=(function(e){lP(t,e);function t(n,i){var a;return n===void 0&&(n={}),a=e.call(this,n)||this,a.labels={},a.smoothChildTiming=!!n.smoothChildTiming,a.autoRemoveChildren=!!n.autoRemoveChildren,a._sort=hr(n.sortChildren),ue&&wn(n.parent||ue,Nn(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&AP(Nn(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return bs(0,arguments,this),this},r.from=function(i,a,o){return bs(1,arguments,this),this},r.fromTo=function(i,a,o,s){return bs(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,vs(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new _e(i,a,Fr(this,o),1),this},r.call=function(i,a,o){return wn(this,_e.delayedCall(0,i,a),o)},r.staggerTo=function(i,a,o,s,l,u,c){return o.duration=a,o.stagger=o.stagger||s,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new _e(i,o,Fr(this,l)),this},r.staggerFrom=function(i,a,o,s,l,u,c){return o.runBackwards=1,vs(o).immediateRender=hr(o.immediateRender),this.staggerTo(i,a,o,s,l,u,c)},r.staggerFromTo=function(i,a,o,s,l,u,c,f){return s.startAt=o,vs(s).immediateRender=hr(s.immediateRender),this.staggerTo(i,a,s,l,u,c,f)},r.render=function(i,a,o){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=i<=0?0:we(i),f=this._zTime<0!=i<0&&(this._initted||!u),h,p,y,m,d,b,v,x,_,g,w,S;if(this!==ue&&c>l&&i>=0&&(c=l),c!==this._tTime||o||f){if(s!==this._time&&u&&(c+=this._time-s,i+=this._time-s),h=c,_=this._start,x=this._ts,b=!x,f&&(u||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,d=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(d*100+i,a,o);if(h=we(c%d),c===l?(m=this._repeat,h=u):(g=we(c/d),m=~~g,m&&m===g&&(h=u,m--),h>u&&(h=u)),g=ao(this._tTime,d),!s&&this._tTime&&g!==m&&this._tTime-g*d-this._dur<=0&&(g=m),w&&m&1&&(h=u-h,S=1),m!==g&&!this._lock){var A=w&&g&1,T=A===(w&&m&1);if(m<g&&(A=!A),s=A?0:c%u?u:c,this._lock=1,this.render(s||(S?0:we(m*d)),a,!u)._lock=0,this._tTime=c,!a&&this.parent&&Cr(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),s&&s!==this._time||b!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,T&&(this._lock=2,s=A?u:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!b)return this;BP(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=UI(this,we(s),we(h)),v&&(c-=h-(h=v._start))),this._tTime=c,this._time=h,this._act=!x,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,s=0),!s&&c&&!a&&!g&&(Cr(this,"onStart"),this._tTime!==c))return this;if(h>=s&&i>=0)for(p=this._first;p;){if(y=p._next,(p._act||h>=p._start)&&p._ts&&v!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,a,o),h!==this._time||!this._ts&&!b){v=0,y&&(c+=this._zTime=-Vt);break}}p=y}else{p=this._last;for(var M=i<0?i:h;p;){if(y=p._prev,(p._act||M<=p._end)&&p._ts&&v!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(M-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(M-p._start)*p._ts,a,o||Fe&&zv(p)),h!==this._time||!this._ts&&!b){v=0,y&&(c+=this._zTime=M?-Vt:Vt);break}}p=y}}if(v&&!a&&(this.pause(),v.render(h>=s?0:-Vt)._zTime=h>=s?1:-1,this._ts))return this._start=_,Lc(this),this.render(i,a,o);this._onUpdate&&!a&&Cr(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&s)&&(_===this._start||Math.abs(x)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&wi(this,1),!a&&!(i<0&&!s)&&(c||s||!l)&&(Cr(this,c===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,a){var o=this;if(Vn(a)||(a=Fr(this,a,i)),!(i instanceof Ws)){if(Qe(i))return i.forEach(function(s){return o.add(s,a)}),this;if(Re(i))return this.addLabel(i,a);if(he(i))i=_e.delayedCall(0,i);else return this}return this!==i?wn(this,i,a):this},r.getChildren=function(i,a,o,s){i===void 0&&(i=!0),a===void 0&&(a=!0),o===void 0&&(o=!0),s===void 0&&(s=-Wr);for(var l=[],u=this._first;u;)u._start>=s&&(u instanceof _e?a&&l.push(u):(o&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,a,o)))),u=u._next;return l},r.getById=function(i){for(var a=this.getChildren(1,1,1),o=a.length;o--;)if(a[o].vars.id===i)return a[o]},r.remove=function(i){return Re(i)?this.removeLabel(i):he(i)?this.killTweensOf(i):(i.parent===this&&Nc(this,i),i===this._recent&&(this._recent=this._last),ta(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=we(Er.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},r.addLabel=function(i,a){return this.labels[i]=Fr(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=_e.delayedCall(0,a||Fs,o);return s.data="isPause",this._hasPause=1,wn(this,s,Fr(this,i))},r.removePause=function(i){var a=this._first;for(i=Fr(this,i);a;)a._start===i&&a.data==="isPause"&&wi(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),l=s.length;l--;)hi!==s[l]&&s[l].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=Hr(i),l=this._first,u=Vn(a),c;l;)l instanceof _e?II(l._targets,s)&&(u?(!hi||l._initted&&l._ts)&&l.globalTime(0)<=a&&l.globalTime(l.totalDuration())>a:!a||l.isActive())&&o.push(l):(c=l.getTweensOf(s,a)).length&&o.push.apply(o,c),l=l._next;return o},r.tweenTo=function(i,a){a=a||{};var o=this,s=Fr(o,i),l=a,u=l.startAt,c=l.onStart,f=l.onStartParams,h=l.immediateRender,p,y=_e.to(o,Rr({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale())||Vt,onStart:function(){if(o.pause(),!p){var d=a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale());y._dur!==d&&oo(y,d,0,1).render(y._time,!0,!0),p=1}c&&c.apply(y,f||[])}},a));return h?y.render(0):y},r.tweenFromTo=function(i,a,o){return this.tweenTo(a,Rr({startAt:{time:Fr(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Hb(this,Fr(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Hb(this,Fr(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Vt)},r.shiftChildren=function(i,a,o){o===void 0&&(o=0);for(var s=this._first,l=this.labels,u;s;)s._start>=o&&(s._start+=i,s._end+=i),s=s._next;if(a)for(u in l)l[u]>=o&&(l[u]+=i);return ta(this)},r.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return e.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var a=this._first,o;a;)o=a._next,this.remove(a),a=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),ta(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,l=Wr,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;s;)u=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>l&&o._sort&&s._ts&&!o._lock?(o._lock=1,wn(o,s,c-s._delay,1)._lock=0):l=c,c<0&&s._ts&&(a-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),s._end>a&&s._ts&&(a=s._end),s=u;oo(o,o===ue&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(ue._ts&&(bP(ue,Iu(i,ue)),gP=Er.frame),Er.frame>=Fb){Fb+=kr.autoSleep||120;var a=ue._first;if((!a||!a._ts)&&kr.autoSleep&&Er._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||Er.sleep()}}},t})(Ws);Rr(nr.prototype,{_lock:0,_hasPause:0,_forcing:0});var aN=function(t,r,n,i,a,o,s){var l=new dr(this._pt,t,r,0,1,KP,null,a),u=0,c=0,f,h,p,y,m,d,b,v;for(l.b=n,l.e=i,n+="",i+="",(b=~i.indexOf("random("))&&(i=zs(i)),o&&(v=[n,i],o(v,t,r),n=v[0],i=v[1]),h=n.match(If)||[];f=If.exec(i);)y=f[0],m=i.substring(u,f.index),p?p=(p+1)%5:m.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(d=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:m||c===1?m:",",s:d,c:y.charAt(1)==="="?za(d,y)-d:parseFloat(y)-d,m:p&&p<4?Math.round:0},u=If.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=s,(hP.test(i)||b)&&(l.e=0),this._pt=l,l},Uv=function(t,r,n,i,a,o,s,l,u,c){he(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:he(f)?u?t[r.indexOf("set")||!he(t["get"+r.substr(3)])?r:"get"+r.substr(3)](u):t[r]():f,p=he(f)?u?cN:HP:Hv,y;if(Re(i)&&(~i.indexOf("random(")&&(i=zs(i)),i.charAt(1)==="="&&(y=za(h,i)+(Je(h)||0),(y||y===0)&&(i=y))),!c||h!==i||ky)return!isNaN(h*i)&&i!==""?(y=new dr(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?hN:GP,0,p),u&&(y.fp=u),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&Lv(r,i),aN.call(this,t,r,h,i,p,l||kr.stringFilter,u))},oN=function(t,r,n,i,a){if(he(t)&&(t=xs(t,a,r,n,i)),!Mn(t)||t.style&&t.nodeType||Qe(t)||cP(t))return Re(t)?xs(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=xs(t[s],a,r,n,i);return o},zP=function(t,r,n,i,a,o){var s,l,u,c;if(Pr[t]&&(s=new Pr[t]).init(a,s.rawVars?r[t]:oN(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=l=new dr(n._pt,a,t,0,1,s.render,s,0,s.priority),n!==Na))for(u=n._ptLookup[n._targets.indexOf(a)],c=s._props.length;c--;)u[s._props[c]]=l;return s},hi,ky,Wv=function e(t,r,n){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,l=i.lazy,u=i.onUpdate,c=i.runBackwards,f=i.yoyoEase,h=i.keyframes,p=i.autoRevert,y=t._dur,m=t._startAt,d=t._targets,b=t.parent,v=b&&b.data==="nested"?b.vars.targets:d,x=t._overwrite==="auto"&&!Rv,_=t.timeline,g,w,S,A,T,M,P,E,C,$,j,k,R;if(_&&(!h||!a)&&(a="none"),t._ease=ea(a,no.ease),t._yEase=f?LP(ea(f===!0?a:f,no.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!_&&!!i.runBackwards,!_||h&&!i.stagger){if(E=d[0]?Qi(d[0]).harness:0,k=E&&i[E.prop],g=Du(i,Bv),m&&(m._zTime<0&&m.progress(1),r<0&&c&&s&&!p?m.render(-1,!0):m.revert(c&&y?hu:RI),m._lazy=0),o){if(wi(t._startAt=_e.set(d,Rr({data:"isStart",overwrite:!1,parent:b,immediateRender:!0,lazy:!m&&hr(l),startAt:null,delay:0,onUpdate:u&&function(){return Cr(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Fe||!s&&!p)&&t._startAt.revert(hu),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!m){if(r&&(s=!1),S=Rr({overwrite:!1,data:"isFromStart",lazy:s&&!m&&hr(l),immediateRender:s,stagger:0,parent:b},g),k&&(S[E.prop]=k),wi(t._startAt=_e.set(d,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Fe?t._startAt.revert(hu):t._startAt.render(-1,!0)),t._zTime=r,!s)e(t._startAt,Vt,Vt);else if(!r)return}for(t._pt=t._ptCache=0,l=y&&hr(l)||l&&!y,w=0;w<d.length;w++){if(T=d[w],P=T._gsap||Fv(d)[w]._gsap,t._ptLookup[w]=$={},Oy[P.id]&&bi.length&&Ru(),j=v===d?w:v.indexOf(T),E&&(C=new E).init(T,k||g,t,j,v)!==!1&&(t._pt=A=new dr(t._pt,T,C.name,0,1,C.render,C,0,C.priority),C._props.forEach(function(L){$[L]=A}),C.priority&&(M=1)),!E||k)for(S in g)Pr[S]&&(C=zP(S,g,t,j,T,v))?C.priority&&(M=1):$[S]=A=Uv.call(t,T,S,"get",g[S],j,v,0,i.stringFilter);t._op&&t._op[w]&&t.kill(T,t._op[w]),x&&t._pt&&(hi=t,ue.killTweensOf(T,$,t.globalTime(r)),R=!t.parent,hi=0),t._pt&&l&&(Oy[P.id]=1)}M&&XP(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!R,h&&r<=0&&_.render(Wr,!0,!0)},sN=function(t,r,n,i,a,o,s,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[r],c,f,h,p;if(!u)for(u=t._ptCache[r]=[],h=t._ptLookup,p=t._targets.length;p--;){if(c=h[p][r],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==r&&c.fp!==r;)c=c._next;if(!c)return ky=1,t.vars[r]="+=0",Wv(t,s),ky=0,l?qs(r+" not eligible for reset"):1;u.push(c)}for(p=u.length;p--;)f=u[p],c=f._pt||f,c.s=(i||i===0)&&!a?i:c.s+(i||0)+o*c.c,c.c=n-c.s,f.e&&(f.e=me(n)+Je(f.e)),f.b&&(f.b=c.s+Je(f.b))},lN=function(t,r){var n=t[0]?Qi(t[0]).harness:0,i=n&&n.aliases,a,o,s,l;if(!i)return r;a=io({},r);for(o in i)if(o in a)for(l=i[o].split(","),s=l.length;s--;)a[l[s]]=a[o];return a},uN=function(t,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(Qe(r))s=n[t]||(n[t]=[]),r.forEach(function(l,u){return s.push({t:u/(r.length-1)*100,v:l,e:a})});else for(o in r)s=n[o]||(n[o]=[]),o==="ease"||s.push({t:parseFloat(t),v:r[o],e:a})},xs=function(t,r,n,i,a){return he(t)?t.call(r,n,i,a):Re(t)&&~t.indexOf("random(")?zs(t):t},UP=qv+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",WP={};pr(UP+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return WP[e]=1});var _e=(function(e){lP(t,e);function t(n,i,a,o){var s;typeof i=="number"&&(a.duration=i,i=a,a=null),s=e.call(this,o?i:vs(i))||this;var l=s.vars,u=l.duration,c=l.delay,f=l.immediateRender,h=l.stagger,p=l.overwrite,y=l.keyframes,m=l.defaults,d=l.scrollTrigger,b=l.yoyoEase,v=i.parent||ue,x=(Qe(n)||cP(n)?Vn(n[0]):"length"in i)?[n]:Hr(n),_,g,w,S,A,T,M,P;if(s._targets=x.length?Fv(x):qs("GSAP target "+n+" not found. https://gsap.com",!kr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||Hl(u)||Hl(c)){if(i=s.vars,_=s.timeline=new nr({data:"nested",defaults:m||{},targets:v&&v.data==="nested"?v.vars.targets:x}),_.kill(),_.parent=_._dp=Nn(s),_._start=0,h||Hl(u)||Hl(c)){if(S=x.length,M=h&&EP(h),Mn(h))for(A in h)~UP.indexOf(A)&&(P||(P={}),P[A]=h[A]);for(g=0;g<S;g++)w=Du(i,WP),w.stagger=0,b&&(w.yoyoEase=b),P&&io(w,P),T=x[g],w.duration=+xs(u,Nn(s),g,T,x),w.delay=(+xs(c,Nn(s),g,T,x)||0)-s._delay,!h&&S===1&&w.delay&&(s._delay=c=w.delay,s._start+=c,w.delay=0),_.to(T,w,M?M(g,T,x):0),_._ease=kt.none;_.duration()?u=c=0:s.timeline=0}else if(y){vs(Rr(_.vars.defaults,{ease:"none"})),_._ease=ea(y.ease||i.ease||"none");var E=0,C,$,j;if(Qe(y))y.forEach(function(k){return _.to(x,k,">")}),_.duration();else{w={};for(A in y)A==="ease"||A==="easeEach"||uN(A,y[A],w,y.easeEach);for(A in w)for(C=w[A].sort(function(k,R){return k.t-R.t}),E=0,g=0;g<C.length;g++)$=C[g],j={ease:$.e,duration:($.t-(g?C[g-1].t:0))/100*u},j[A]=$.v,_.to(x,j,E),E+=j.duration;_.duration()<u&&_.to({},{duration:u-_.duration()})}}u||s.duration(u=_.duration())}else s.timeline=0;return p===!0&&!Rv&&(hi=Nn(s),ue.killTweensOf(x),hi=0),wn(v,Nn(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!u&&!y&&s._start===we(v._time)&&hr(f)&&qI(Nn(s))&&v.data!=="nested")&&(s._tTime=-Vt,s.render(Math.max(0,-c)||0)),d&&AP(Nn(s),d),s}var r=t.prototype;return r.render=function(i,a,o){var s=this._time,l=this._tDur,u=this._dur,c=i<0,f=i>l-Vt&&!c?l:i<Vt?0:i,h,p,y,m,d,b,v,x,_;if(!u)zI(this,i,a,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,x=this.timeline,this._repeat){if(m=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+i,a,o);if(h=we(f%m),f===l?(y=this._repeat,h=u):(d=we(f/m),y=~~d,y&&y===d?(h=u,y--):h>u&&(h=u)),b=this._yoyo&&y&1,b&&(_=this._yEase,h=u-h),d=ao(this._tTime,m),h===s&&!o&&this._initted&&y===d)return this._tTime=f,this;y!==d&&(x&&this._yEase&&BP(x,b),this.vars.repeatRefresh&&!b&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(we(m*y),!0).invalidate()._lock=0))}if(!this._initted){if(OP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==d))return this;if(u!==this._dur)return this.render(i,a,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(_||this._ease)(h/u),this._from&&(this.ratio=v=1-v),!s&&f&&!a&&!d&&(Cr(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(v,p.d),p=p._next;x&&x.render(i<0?i:x._dur*x._ease(h/this._dur),a,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!a&&(c&&Ty(this,i,a,o),Cr(this,"onUpdate")),this._repeat&&y!==d&&this.vars.onRepeat&&!a&&this.parent&&Cr(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Ty(this,i,!0,!0),(i||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&wi(this,1),!a&&!(c&&!s)&&(f||s||b)&&(Cr(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},r.resetTo=function(i,a,o,s,l){Us||Er.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Wv(this,u),c=this._ease(u/this._dur),sN(this,i,a,o,s,c,u,l)?this.resetTo(i,a,o,s,1):(Bc(this,0),this.parent||wP(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?hs(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Fe),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,hi&&hi.vars.overwrite!==!0)._first||hs(this),this.parent&&o!==this.timeline.totalDuration()&&oo(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,l=i?Hr(i):s,u=this._ptLookup,c=this._pt,f,h,p,y,m,d,b;if((!a||a==="all")&&LI(s,l))return a==="all"&&(this._pt=0),hs(this);for(f=this._op=this._op||[],a!=="all"&&(Re(a)&&(m={},pr(a,function(v){return m[v]=1}),a=m),a=lN(s,a)),b=s.length;b--;)if(~l.indexOf(s[b])){h=u[b],a==="all"?(f[b]=a,y=h,p={}):(p=f[b]=f[b]||{},y=a);for(m in y)d=h&&h[m],d&&((!("kill"in d.d)||d.d.kill(m)===!0)&&Nc(this,d,"_pt"),delete h[m]),p!=="all"&&(p[m]=1)}return this._initted&&!this._pt&&c&&hs(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return bs(1,arguments)},t.delayedCall=function(i,a,o,s){return new t(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},t.fromTo=function(i,a,o){return bs(2,arguments)},t.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(i,a)},t.killTweensOf=function(i,a,o){return ue.killTweensOf(i,a,o)},t})(Ws);Rr(_e.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});pr("staggerTo,staggerFrom,staggerFromTo",function(e){_e[e]=function(){var t=new nr,r=Ey.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var Hv=function(t,r,n){return t[r]=n},HP=function(t,r,n){return t[r](n)},cN=function(t,r,n,i){return t[r](i.fp,n)},fN=function(t,r,n){return t.setAttribute(r,n)},Gv=function(t,r){return he(t[r])?HP:Dv(t[r])&&t.setAttribute?fN:Hv},GP=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},hN=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},KP=function(t,r){var n=r._pt,i="";if(!t&&r.b)i=r.b;else if(t===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},Kv=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},pN=function(t,r,n,i){for(var a=this._pt,o;a;)o=a._next,a.p===i&&a.modifier(t,r,n),a=o},dN=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?Nc(this,r,"_pt"):r.dep||(n=1),r=i;return!n},mN=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},XP=function(t){for(var r=t._pt,n,i,a,o;r;){for(n=r._next,i=a;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:a=r,(r._next=i)?i._prev=r:o=r,r=n}t._pt=a},dr=(function(){function e(r,n,i,a,o,s,l,u,c){this.t=n,this.s=a,this.c=o,this.p=i,this.r=s||GP,this.d=l||this,this.set=u||Hv,this.pr=c||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=mN,this.m=n,this.mt=a,this.tween=i},e})();pr(qv+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return Bv[e]=1});jr.TweenMax=jr.TweenLite=_e;jr.TimelineLite=jr.TimelineMax=nr;ue=new nr({sortChildren:!1,defaults:no,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});kr.stringFilter=NP;var ra=[],du={},yN=[],Kb=0,gN=0,Ff=function(t){return(du[t]||yN).map(function(r){return r()})},$y=function(){var t=Date.now(),r=[];t-Kb>2&&(Ff("matchMediaInit"),ra.forEach(function(n){var i=n.queries,a=n.conditions,o,s,l,u;for(s in i)o=xn.matchMedia(i[s]).matches,o&&(l=1),o!==a[s]&&(a[s]=o,u=1);u&&(n.revert(),l&&r.push(n))}),Ff("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Kb=t,Ff("matchMedia"))},YP=(function(){function e(r,n){this.selector=n&&My(n),this.data=[],this._r=[],this.isReverted=!1,this.id=gN++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){he(n)&&(a=i,i=n,n=he);var o=this,s=function(){var u=ie,c=o.selector,f;return u&&u!==o&&u.data.push(o),a&&(o.selector=My(a)),ie=o,f=i.apply(o,arguments),he(f)&&o._r.push(f),ie=u,o.selector=c,o.isReverted=!1,f};return o.last=s,n===he?s(o,function(l){return o.add(null,l)}):n?o[n]=s:s},t.ignore=function(n){var i=ie;ie=null,n(this),ie=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof _e&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var a=this;if(n?(function(){for(var s=a.getTweens(),l=a.data.length,u;l--;)u=a.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(n)}),l=a.data.length;l--;)u=a.data[l],u instanceof nr?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof _e)&&u.revert&&u.revert(n);a._r.forEach(function(c){return c(n,a)}),a.isReverted=!0})():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),i)for(var o=ra.length;o--;)ra[o].id===this.id&&ra.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),vN=(function(){function e(r){this.contexts=[],this.scope=r,ie&&ie.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){Mn(n)||(n={matches:n});var o=new YP(0,a||this.scope),s=o.conditions={},l,u,c;ie&&!o.selector&&(o.selector=ie.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(u in n)u==="all"?c=1:(l=xn.matchMedia(n[u]),l&&(ra.indexOf(o)<0&&ra.push(o),(s[u]=l.matches)&&(c=1),l.addListener?l.addListener($y):l.addEventListener("change",$y)));return c&&i(o,function(f){return o.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},e})(),Nu={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(i){return RP(i)})},timeline:function(t){return new nr(t)},getTweensOf:function(t,r){return ue.getTweensOf(t,r)},getProperty:function(t,r,n,i){Re(t)&&(t=Hr(t)[0]);var a=Qi(t||{}).get,o=n?_P:xP;return n==="native"&&(n=""),t&&(r?o((Pr[r]&&Pr[r].get||a)(t,r,n,i)):function(s,l,u){return o((Pr[s]&&Pr[s].get||a)(t,s,l,u))})},quickSetter:function(t,r,n){if(t=Hr(t),t.length>1){var i=t.map(function(c){return vr.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=Pr[r],s=Qi(t),l=s.harness&&(s.harness.aliases||{})[r]||r,u=o?function(c){var f=new o;Na._pt=0,f.init(t,n?c+n:c,Na,0,[t]),f.render(1,f),Na._pt&&Kv(1,Na)}:s.set(t,l);return o?u:function(c){return u(t,l,n?c+n:c,s,1)}},quickTo:function(t,r,n){var i,a=vr.to(t,Rr((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),o=function(l,u,c){return a.resetTo(r,l,u,c)};return o.tween=a,o},isTweening:function(t){return ue.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=ea(t.ease,no.ease)),zb(no,t||{})},config:function(t){return zb(kr,t||{})},registerEffect:function(t){var r=t.name,n=t.effect,i=t.plugins,a=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!Pr[s]&&!jr[s]&&qs(r+" effect requires "+s+" plugin.")}),Nf[r]=function(s,l,u){return n(Hr(s),Rr(l||{},a),u)},o&&(nr.prototype[r]=function(s,l,u){return this.add(Nf[r](s,Mn(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,r){kt[t]=ea(r)},parseEase:function(t,r){return arguments.length?ea(t,r):kt},getById:function(t){return ue.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new nr(t),i,a;for(n.smoothChildTiming=hr(t.smoothChildTiming),ue.remove(n),n._dp=0,n._time=n._tTime=ue._time,i=ue._first;i;)a=i._next,(r||!(!i._dur&&i instanceof _e&&i.vars.onComplete===i._targets[0]))&&wn(n,i,i._start-i._delay),i=a;return wn(ue,n,0),n},context:function(t,r){return t?new YP(t,r):ie},matchMedia:function(t){return new vN(t)},matchMediaRefresh:function(){return ra.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||$y()},addEventListener:function(t,r){var n=du[t]||(du[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=du[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:VI,wrapYoyo:ZI,distribute:EP,random:CP,snap:MP,normalize:YI,getUnit:Je,clamp:HI,splitColor:DP,toArray:Hr,selector:My,mapRange:$P,pipe:KI,unitize:XI,interpolate:JI,shuffle:PP},install:mP,effects:Nf,ticker:Er,updateRoot:nr.updateRoot,plugins:Pr,globalTimeline:ue,core:{PropTween:dr,globals:yP,Tween:_e,Timeline:nr,Animation:Ws,getCache:Qi,_removeLinkedListItem:Nc,reverting:function(){return Fe},context:function(t){return t&&ie&&(ie.data.push(t),t._ctx=ie),ie},suppressOverwrites:function(t){return Rv=t}}};pr("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return Nu[e]=_e[e]});Er.add(nr.updateRoot);Na=Nu.to({},{duration:0});var bN=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},xN=function(t,r){var n=t._targets,i,a,o;for(i in r)for(a=n.length;a--;)o=t._ptLookup[a][i],o&&(o=o.d)&&(o._pt&&(o=bN(o,i)),o&&o.modifier&&o.modifier(r[i],t,n[a],i))},zf=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var l,u;if(Re(a)&&(l={},pr(a,function(c){return l[c]=1}),a=l),r){l={};for(u in a)l[u]=r(a[u]);a=l}xN(s,a)}}}},vr=Nu.registerPlugin({name:"attr",init:function(t,r,n,i,a){var o,s,l;this.tween=n;for(o in r)l=t.getAttribute(o)||"",s=this.add(t,"setAttribute",(l||0)+"",r[o],i,a,0,0,o),s.op=o,s.b=l,this._props.push(o)},render:function(t,r){for(var n=r._pt;n;)Fe?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,r){for(var n=r.length;n--;)this.add(t,n,t[n]||0,r[n],0,0,0,0,0,1)}},zf("roundProps",Cy),zf("modifiers"),zf("snap",MP))||Nu;_e.version=nr.version=vr.version="3.13.0";dP=1;Iv()&&so();kt.Power0;kt.Power1;kt.Power2;kt.Power3;kt.Power4;kt.Linear;kt.Quad;kt.Cubic;kt.Quart;kt.Quint;kt.Strong;kt.Elastic;kt.Back;kt.SteppedEase;kt.Bounce;kt.Sine;kt.Expo;kt.Circ;/*!
9
9
  * CSSPlugin 3.13.0
10
10
  * https://gsap.com
11
11
  *
12
12
  * Copyright 2008-2025, GreenSock. All rights reserved.
13
13
  * Subject to the terms at https://gsap.com/standard-license
14
14
  * @author: Jack Doyle, jack@greensock.com
15
- */var Kb,ai,Ia,Gv,Bi,Yb,Kv,TN=function(){return typeof window<"u"},Gn={},Ri=180/Math.PI,Na=Math.PI/180,Sa=Math.atan2,Xb=1e8,Yv=/([A-Z])/g,PN=/(left|right|width|margin|padding|x)/i,EN=/[\s,\(]\S/,yn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},My=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},CN=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},MN=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},kN=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},ZP=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},JP=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},$N=function(t,r,n){return t.style[r]=n},jN=function(t,r,n){return t.style.setProperty(r,n)},RN=function(t,r,n){return t._gsap[r]=n},DN=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},IN=function(t,r,n,i,a){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},NN=function(t,r,n,i,a){var o=t._gsap;o[r]=n,o.renderTransform(a,o)},ne="transform",ar=ne+"Origin",LN=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in Gn&&a){if(this.tfm=this.tfm||{},t!=="transform")t=yn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=Rn(i,s)}):this.tfm[t]=o.x?o[t]:Rn(i,t),t===ar&&(this.tfm.zOrigin=o.zOrigin);else return yn.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(ne)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ar,r,"")),t=ne}(a||r)&&this.props.push(t,r,a[t])},QP=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},BN=function(){var t=this.props,r=this.target,n=r.style,i=r._gsap,a,o;for(a=0;a<t.length;a+=3)t[a+1]?t[a+1]===2?r[t[a]](t[a+2]):r[t[a]]=t[a+2]:t[a+2]?n[t[a]]=t[a+2]:n.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(Yv,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=Kv(),(!a||!a.isStart)&&!n[ne]&&(QP(n),i.zOrigin&&n[ar]&&(n[ar]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},tE=function(t,r){var n={target:t,props:[],revert:BN,save:LN};return t._gsap||lr.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},eE,ky=function(t,r){var n=ai.createElementNS?ai.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ai.createElement(t);return n&&n.style?n:ai.createElement(t)},Br=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(Yv,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,to(r)||r,1)||""},Vb="O,Moz,ms,Ms,Webkit".split(","),to=function(t,r,n){var i=r||Bi,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Vb[o]+t in a););return o<0?null:(o===3?"ms":o>=0?Vb[o]:"")+t},$y=function(){TN()&&window.document&&(Kb=window,ai=Kb.document,Ia=ai.documentElement,Bi=ky("div")||{style:{}},ky("div"),ne=to(ne),ar=ne+"Origin",Bi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",eE=!!to("perspective"),Kv=lr.core.reverting,Gv=1)},Zb=function(t){var r=t.ownerSVGElement,n=ky("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),Ia.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),Ia.removeChild(n),a},Jb=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},rE=function(t){var r,n;try{r=t.getBBox()}catch{r=Zb(t),n=1}return r&&(r.width||r.height)||n||(r=Zb(t)),r&&!r.width&&!r.x&&!r.y?{x:+Jb(t,["x","cx","x1"])||0,y:+Jb(t,["y","cy","y1"])||0,width:0,height:0}:r},nE=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&rE(t))},ra=function(t,r){if(r){var n=t.style,i;r in Gn&&r!==ar&&(r=ne),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(Yv,"-$1").toLowerCase())):n.removeAttribute(r)}},oi=function(t,r,n,i,a,o){var s=new ir(t._pt,r,n,0,1,o?JP:ZP);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},Qb={deg:1,rad:1,turn:1},qN={grid:1,flex:1},di=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=Bi.style,l=PN.test(r),u=t.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,h=i==="px",p=i==="%",y,m,d,v;if(i===o||!a||Qb[i]||Qb[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),v=t.getCTM&&nE(t),(p||o==="%")&&(Gn[r]||~r.indexOf("adius")))return y=v?t.getBBox()[l?"width":"height"]:t[c],se(p?a/y*f:a/100*y);if(s[l?"width":"height"]=f+(h?o:i),m=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,v&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===ai||!m.appendChild)&&(m=ai.body),d=m._gsap,d&&p&&d.width&&l&&d.time===_r.time&&!d.uncache)return se(a/d.width*f);if(p&&(r==="height"||r==="width")){var w=t.style[r];t.style[r]=f+i,y=t[c],w?t.style[r]=w:ra(t,r)}else(p||o==="%")&&!qN[Br(m,"display")]&&(s.position=Br(t,"position")),m===t&&(s.position="static"),m.appendChild(Bi),y=Bi[c],m.removeChild(Bi),s.position="absolute";return l&&p&&(d=Hi(m),d.time=_r.time,d.width=m[c]),se(h?y*a/f:y&&a?f/y*a:0)},Rn=function(t,r,n,i){var a;return Gv||$y(),r in yn&&r!=="transform"&&(r=yn[r],~r.indexOf(",")&&(r=r.split(",")[0])),Gn[r]&&r!=="transform"?(a=Bs(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:Du(Br(t,ar))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=Ru[r]&&Ru[r](t,r,n)||Br(t,r)||bP(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?di(t,r,a,n)+n:a},FN=function(t,r,n,i){if(!n||n==="none"){var a=to(r,t,1),o=a&&Br(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=Br(t,"borderTopColor"))}var s=new ir(this._pt,t.style,r,0,1,YP),l=0,u=0,c,f,h,p,y,m,d,v,w,b,_,g;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=Br(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=t.style[r],t.style[r]=i,i=Br(t,r)||i,m?t.style[r]=m:ra(t,r)),c=[n,i],LP(c),n=c[0],i=c[1],h=n.match(Ca)||[],g=i.match(Ca)||[],g.length){for(;f=Ca.exec(i);)d=f[0],w=i.substring(l,f.index),y?y=(y+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(y=1),d!==(m=h[u++]||"")&&(p=parseFloat(m)||0,_=m.substr((p+"").length),d.charAt(1)==="="&&(d=Da(p,d)+_),v=parseFloat(d),b=d.substr((v+"").length),l=Ca.lastIndex-b.length,b||(b=b||Sr.units[r]||_,l===i.length&&(i+=b,s.e+=b)),_!==b&&(p=di(t,r,m,b)||0),s._pt={_next:s._pt,p:w||u===1?w:",",s:p,c:v-p,m:y&&y<4||r==="zIndex"?Math.round:0});s.c=l<i.length?i.substring(l,i.length):""}else s.r=r==="display"&&i==="none"?JP:ZP;return pP.test(i)&&(s.e=0),this._pt=s,s},t_={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},zN=function(t){var r=t.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),r[0]=t_[n]||n,r[1]=t_[i]||i,r.join(" ")},UN=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,i=n.style,a=r.u,o=n._gsap,s,l,u;if(a==="all"||a===!0)i.cssText="",l=1;else for(a=a.split(","),u=a.length;--u>-1;)s=a[u],Gn[s]&&(l=1,s=s==="transformOrigin"?ar:ne),ra(n,s);l&&(ra(n,ne),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Bs(n,1),o.uncache=1,QP(i)))}},Ru={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new ir(t._pt,r,n,0,0,UN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},Ls=[1,0,0,1,0,0],iE={},aE=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},e_=function(t){var r=Br(t,ne);return aE(r)?Ls:r.substr(7).match(hP).map(se)},Xv=function(t,r){var n=t._gsap||Hi(t),i=t.style,a=e_(t),o,s,l,u;return n.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,a=[l.a,l.b,l.c,l.d,l.e,l.f],a.join(",")==="1,0,0,1,0,0"?Ls:a):(a===Ls&&!t.offsetParent&&t!==Ia&&!n.svg&&(l=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,s=t.nextElementSibling,Ia.appendChild(t)),a=e_(t),l?i.display=l:ra(t,"display"),u&&(s?o.insertBefore(t,s):o?o.appendChild(t):Ia.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},jy=function(t,r,n,i,a,o){var s=t._gsap,l=a||Xv(t,!0),u=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=l[0],y=l[1],m=l[2],d=l[3],v=l[4],w=l[5],b=r.split(" "),_=parseFloat(b[0])||0,g=parseFloat(b[1])||0,x,S,A,T;n?l!==Ls&&(S=p*d-y*m)&&(A=_*(d/S)+g*(-m/S)+(m*w-d*v)/S,T=_*(-y/S)+g*(p/S)-(p*w-y*v)/S,_=A,g=T):(x=rE(t),_=x.x+(~b[0].indexOf("%")?_/100*x.width:_),g=x.y+(~(b[1]||b[0]).indexOf("%")?g/100*x.height:g)),i||i!==!1&&s.smooth?(v=_-u,w=g-c,s.xOffset=f+(v*p+w*m)-v,s.yOffset=h+(v*y+w*d)-w):s.xOffset=s.yOffset=0,s.xOrigin=_,s.yOrigin=g,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[ar]="0px 0px",o&&(oi(o,s,"xOrigin",u,_),oi(o,s,"yOrigin",c,g),oi(o,s,"xOffset",f,s.xOffset),oi(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",_+" "+g)},Bs=function(t,r){var n=t._gsap||new zP(t);if("x"in n&&!r&&!n.uncache)return n;var i=t.style,a=n.scaleX<0,o="px",s="deg",l=getComputedStyle(t),u=Br(t,ar)||"0",c,f,h,p,y,m,d,v,w,b,_,g,x,S,A,T,C,P,E,k,$,j,M,I,q,F,N,R,L,W,Y,z;return c=f=h=m=d=v=w=b=_=0,p=y=1,n.svg=!!(t.getCTM&&nE(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[ne]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[ne]!=="none"?l[ne]:"")),i.scale=i.rotate=i.translate="none"),S=Xv(t,n.svg),n.svg&&(n.uncache?(q=t.getBBox(),u=n.xOrigin-q.x+"px "+(n.yOrigin-q.y)+"px",I=""):I=!r&&t.getAttribute("data-svg-origin"),jy(t,I||u,!!I||n.originIsAbsolute,n.smooth!==!1,S)),g=n.xOrigin||0,x=n.yOrigin||0,S!==Ls&&(P=S[0],E=S[1],k=S[2],$=S[3],c=j=S[4],f=M=S[5],S.length===6?(p=Math.sqrt(P*P+E*E),y=Math.sqrt($*$+k*k),m=P||E?Sa(E,P)*Ri:0,w=k||$?Sa(k,$)*Ri+m:0,w&&(y*=Math.abs(Math.cos(w*Na))),n.svg&&(c-=g-(g*P+x*k),f-=x-(g*E+x*$))):(z=S[6],W=S[7],N=S[8],R=S[9],L=S[10],Y=S[11],c=S[12],f=S[13],h=S[14],A=Sa(z,L),d=A*Ri,A&&(T=Math.cos(-A),C=Math.sin(-A),I=j*T+N*C,q=M*T+R*C,F=z*T+L*C,N=j*-C+N*T,R=M*-C+R*T,L=z*-C+L*T,Y=W*-C+Y*T,j=I,M=q,z=F),A=Sa(-k,L),v=A*Ri,A&&(T=Math.cos(-A),C=Math.sin(-A),I=P*T-N*C,q=E*T-R*C,F=k*T-L*C,Y=$*C+Y*T,P=I,E=q,k=F),A=Sa(E,P),m=A*Ri,A&&(T=Math.cos(A),C=Math.sin(A),I=P*T+E*C,q=j*T+M*C,E=E*T-P*C,M=M*T-j*C,P=I,j=q),d&&Math.abs(d)+Math.abs(m)>359.9&&(d=m=0,v=180-v),p=se(Math.sqrt(P*P+E*E+k*k)),y=se(Math.sqrt(M*M+z*z)),A=Sa(j,M),w=Math.abs(A)>2e-4?A*Ri:0,_=Y?1/(Y<0?-Y:Y):0),n.svg&&(I=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!aE(Br(t,ne)),I&&t.setAttribute("transform",I))),Math.abs(w)>90&&Math.abs(w)<270&&(a?(p*=-1,w+=m<=0?180:-180,m+=m<=0?180:-180):(y*=-1,w+=w<=0?180:-180)),r=r||n.uncache,n.x=c-((n.xPercent=c&&(!r&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,n.y=f-((n.yPercent=f&&(!r&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=se(p),n.scaleY=se(y),n.rotation=se(m)+s,n.rotationX=se(d)+s,n.rotationY=se(v)+s,n.skewX=w+s,n.skewY=b+s,n.transformPerspective=_+o,(n.zOrigin=parseFloat(u.split(" ")[2])||!r&&n.zOrigin||0)&&(i[ar]=Du(u)),n.xOffset=n.yOffset=0,n.force3D=Sr.force3D,n.renderTransform=n.svg?HN:eE?oE:WN,n.uncache=0,n},Du=function(t){return(t=t.split(" "))[0]+" "+t[1]},qf=function(t,r,n){var i=ze(r);return se(parseFloat(r)+parseFloat(di(t,"x",n+"px",i)))+i},WN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,oE(t,r)},Mi="0deg",Ho="0px",ki=") ",oE=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.z,u=n.rotation,c=n.rotationY,f=n.rotationX,h=n.skewX,p=n.skewY,y=n.scaleX,m=n.scaleY,d=n.transformPerspective,v=n.force3D,w=n.target,b=n.zOrigin,_="",g=v==="auto"&&t&&t!==1||v===!0;if(b&&(f!==Mi||c!==Mi)){var x=parseFloat(c)*Na,S=Math.sin(x),A=Math.cos(x),T;x=parseFloat(f)*Na,T=Math.cos(x),o=qf(w,o,S*T*-b),s=qf(w,s,-Math.sin(x)*-b),l=qf(w,l,A*T*-b+b)}d!==Ho&&(_+="perspective("+d+ki),(i||a)&&(_+="translate("+i+"%, "+a+"%) "),(g||o!==Ho||s!==Ho||l!==Ho)&&(_+=l!==Ho||g?"translate3d("+o+", "+s+", "+l+") ":"translate("+o+", "+s+ki),u!==Mi&&(_+="rotate("+u+ki),c!==Mi&&(_+="rotateY("+c+ki),f!==Mi&&(_+="rotateX("+f+ki),(h!==Mi||p!==Mi)&&(_+="skew("+h+", "+p+ki),(y!==1||m!==1)&&(_+="scale("+y+", "+m+ki),w.style[ne]=_||"translate(0, 0)"},HN=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.rotation,u=n.skewX,c=n.skewY,f=n.scaleX,h=n.scaleY,p=n.target,y=n.xOrigin,m=n.yOrigin,d=n.xOffset,v=n.yOffset,w=n.forceCSS,b=parseFloat(o),_=parseFloat(s),g,x,S,A,T;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=Na,u*=Na,g=Math.cos(l)*f,x=Math.sin(l)*f,S=Math.sin(l-u)*-h,A=Math.cos(l-u)*h,u&&(c*=Na,T=Math.tan(u-c),T=Math.sqrt(1+T*T),S*=T,A*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),g*=T,x*=T)),g=se(g),x=se(x),S=se(S),A=se(A)):(g=f,A=h,x=S=0),(b&&!~(o+"").indexOf("px")||_&&!~(s+"").indexOf("px"))&&(b=di(p,"x",o,"px"),_=di(p,"y",s,"px")),(y||m||d||v)&&(b=se(b+y-(y*g+m*S)+d),_=se(_+m-(y*x+m*A)+v)),(i||a)&&(T=p.getBBox(),b=se(b+i/100*T.width),_=se(_+a/100*T.height)),T="matrix("+g+","+x+","+S+","+A+","+b+","+_+")",p.setAttribute("transform",T),w&&(p.style[ne]=T)},GN=function(t,r,n,i,a){var o=360,s=Pe(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?Ri:1),u=l-i,c=i+u+"deg",f,h;return s&&(f=a.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*Xb)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*Xb)%o-~~(u/o)*o)),t._pt=h=new ir(t._pt,r,n,i,u,CN),h.e=c,h.u="deg",t._props.push(n),h},r_=function(t,r){for(var n in r)t[n]=r[n];return t},KN=function(t,r,n){var i=r_({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=n.style,s,l,u,c,f,h,p,y;i.svg?(u=n.getAttribute("transform"),n.setAttribute("transform",""),o[ne]=r,s=Bs(n,1),ra(n,ne),n.setAttribute("transform",u)):(u=getComputedStyle(n)[ne],o[ne]=r,s=Bs(n,1),o[ne]=u);for(l in Gn)u=i[l],c=s[l],u!==c&&a.indexOf(l)<0&&(p=ze(u),y=ze(c),f=p!==y?di(n,l,u,y):parseFloat(u),h=parseFloat(c),t._pt=new ir(t._pt,s,l,f,h-f,My),t._pt.u=y||0,t._props.push(l));r_(s,i)};nr("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",a="Left",o=(t<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(s){return t<2?e+s:"border"+s+e});Ru[t>1?"border"+e:e]=function(s,l,u,c,f){var h,p;if(arguments.length<4)return h=o.map(function(y){return Rn(s,y,u)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,m){return p[y]=h[m]=h[m]||h[(m-1)/2|0]}),s.init(l,p,f)}});var sE={name:"css",register:$y,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,n,i,a){var o=this._props,s=t.style,l=n.vars.startAt,u,c,f,h,p,y,m,d,v,w,b,_,g,x,S,A;Gv||$y(),this.styles=this.styles||tE(t),A=this.styles.props,this.tween=n;for(m in r)if(m!=="autoRound"&&(c=r[m],!(br[m]&&UP(m,r,n,i,t,a)))){if(p=typeof c,y=Ru[m],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=Ds(c)),y)y(this,t,m,c,n)&&(S=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(m)+"").trim(),c+="",hi.lastIndex=0,hi.test(u)||(d=ze(u),v=ze(c)),v?d!==v&&(u=di(t,m,u,v)+v):d&&(c+=d),this.add(s,"setProperty",u,c,i,a,0,0,m),o.push(m),A.push(m,0,s[m]);else if(p!=="undefined"){if(l&&m in l?(u=typeof l[m]=="function"?l[m].call(n,i,t,a):l[m],Pe(u)&&~u.indexOf("random(")&&(u=Ds(u)),ze(u+"")||u==="auto"||(u+=Sr.units[m]||ze(Rn(t,m))||""),(u+"").charAt(1)==="="&&(u=Rn(t,m))):u=Rn(t,m),h=parseFloat(u),w=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),w&&(c=c.substr(2)),f=parseFloat(c),m in yn&&(m==="autoAlpha"&&(h===1&&Rn(t,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),oi(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=yn[m],~m.indexOf(",")&&(m=m.split(",")[0]))),b=m in Gn,b){if(this.styles.save(m),p==="string"&&c.substring(0,6)==="var(--"&&(c=Br(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),_||(g=t._gsap,g.renderTransform&&!r.parseTransform||Bs(t,r.parseTransform),x=r.smoothOrigin!==!1&&g.smooth,_=this._pt=new ir(this._pt,s,ne,0,1,g.renderTransform,g,0,-1),_.dep=1),m==="scale")this._pt=new ir(this._pt,g,"scaleY",g.scaleY,(w?Da(g.scaleY,w+f):f)-g.scaleY||0,My),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(ar,0,s[ar]),c=zN(c),g.svg?jy(t,c,0,x,0,this):(v=parseFloat(c.split(" ")[2])||0,v!==g.zOrigin&&oi(this,g,"zOrigin",g.zOrigin,v),oi(this,s,m,Du(u),Du(c)));continue}else if(m==="svgOrigin"){jy(t,c,1,x,0,this);continue}else if(m in iE){GN(this,g,m,h,w?Da(h,w+c):c);continue}else if(m==="smoothOrigin"){oi(this,g,"smooth",g.smooth,c);continue}else if(m==="force3D"){g[m]=c;continue}else if(m==="transform"){KN(this,c,t);continue}}else m in s||(m=to(m)||m);if(b||(f||f===0)&&(h||h===0)&&!EN.test(c)&&m in s)d=(u+"").substr((h+"").length),f||(f=0),v=ze(c)||(m in Sr.units?Sr.units[m]:d),d!==v&&(h=di(t,m,u,v)),this._pt=new ir(this._pt,b?g:s,m,h,(w?Da(h,w+f):f)-h,!b&&(v==="px"||m==="zIndex")&&r.autoRound!==!1?kN:My),this._pt.u=v||0,d!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=MN);else if(m in s)FN.call(this,t,m,u,w?w+c:c);else if(m in t)this.add(t,m,u||t[m],w?w+c:c,i,a);else if(m!=="parseTransform"){Iv(m,c);continue}b||(m in s?A.push(m,0,s[m]):typeof t[m]=="function"?A.push(m,2,t[m]()):A.push(m,1,u||t[m])),o.push(m)}}S&&XP(this)},render:function(t,r){if(r.tween._time||!Kv())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:Rn,aliases:yn,getSetter:function(t,r,n){var i=yn[r];return i&&i.indexOf(",")<0&&(r=i),r in Gn&&r!==ar&&(t._gsap.x||Rn(t,"x"))?n&&Yb===n?r==="scale"?DN:RN:(Yb=n||{})&&(r==="scale"?IN:NN):t.style&&!jv(t.style[r])?$N:~r.indexOf("-")?jN:Wv(t,r)},core:{_removeProperty:ra,_getMatrix:Xv}};lr.utils.checkPrefix=to;lr.core.getStyleSaver=tE;(function(e,t,r,n){var i=nr(e+","+t+","+r,function(a){Gn[a]=1});nr(t,function(a){Sr.units[a]="deg",iE[a]=1}),yn[i[13]]=e+","+t,nr(n,function(a){var o=a.split(":");yn[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");nr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Sr.units[e]="px"});lr.registerPlugin(sE);var Ry=lr.registerPlugin(sE)||lr;Ry.core.Tween;const Aa={IN_OUT:"power2.inOut",OUT:"power2.out"},Go={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class lE{constructor(t,r={}){Bo(this,"timeline");Bo(this,"currentStage","");Bo(this,"callbacks");Bo(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Ry.timeline({paused:!0,onUpdate:()=>this.handleProgress(),onComplete:()=>{var i,a,o,s;(a=(i=this.callbacks).onComplete)==null||a.call(i),(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"complete")}});let n=0;this.timeline.addLabel("seatsToRings",n),n+=t.seatsToRings/1e3,this.timeline.addLabel("ringsToBar",n),n+=t.ringsToBar/1e3,this.timeline.addLabel("axesReveal",n),n+=t.axesReveal/1e3,this.timeline.addLabel("barSlide",n),n+=t.barSlide/1e3,this.timeline.addLabel("barsGrow",n),n+=t.barsGrow/1e3,this.timeline.addLabel("barsToArea",n)}animateSeatsToRings(t,r){const n=this.durations.seatsToRings/1e3;return t.each(function(){const i=this;if(!i.getAttribute("data-orig-x")){const a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("width"),l=i.getAttribute("height");i.setAttribute("data-orig-x",a||"0"),i.setAttribute("data-orig-y",o||"0"),i.setAttribute("data-orig-width",s||"0"),i.setAttribute("data-orig-height",l||"0")}}),this.timeline.to(t.nodes(),{width:2,y:(i,a)=>parseFloat(a.getAttribute("y")||"0"),height:(i,a)=>{const o=parseFloat(a.getAttribute("y")||"0");return r-o},duration:n,ease:Aa.IN_OUT,stagger:Go.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="seatsToRings",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"seatsToRings")}},"seatsToRings"),this}animateRingsToBar(t,r){const n=this.durations.ringsToBar/1e3;return t.each(function(i,a){const o=this;if(!r[a])return;const l=o.getAttribute("x"),u=o.getAttribute("y"),c=o.getAttribute("width"),f=o.getAttribute("height");o.setAttribute("data-orig-x",l||"0"),o.setAttribute("data-orig-y",u||"0"),o.setAttribute("data-orig-width",c||"0"),o.setAttribute("data-orig-height",f||"0")}),this.timeline.to(t.nodes(),{x:i=>{var a;return((a=r[i])==null?void 0:a.x)??0},y:i=>{var a;return((a=r[i])==null?void 0:a.y)??0},width:i=>{var a;return((a=r[i])==null?void 0:a.width)??0},height:i=>{var a;return((a=r[i])==null?void 0:a.height)??0},duration:n,ease:Aa.IN_OUT,stagger:Go.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="ringsToBar",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"ringsToBar")}},"ringsToBar"),this}animateAxesReveal(t,r){const n=this.durations.axesReveal/1e3;return this.timeline.to([t.node(),r.node()],{opacity:1,duration:n,ease:Aa.IN_OUT,stagger:Go.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="axesReveal",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"axesReveal")}},"axesReveal"),this}animateBarSlide(t,r){const n=this.durations.barSlide/1e3;return this.timeline.to(t.nodes(),{x:r,duration:n,ease:Aa.OUT,stagger:Go.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="barSlide",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"barSlide")}},"barSlide"),this}animateBarsGrow(t,r,n=Go.RIPPLE_STAGGER_DELAY){const i=this.durations.barsGrow/1e3;return t.nodes().forEach((o,s)=>{const l=o,u=l.getAttribute("data-final-y")||"0",c=l.getAttribute("data-final-height")||"0",f=parseInt(l.getAttribute("data-timestamp-index")||"0"),p=Math.abs(f-r)*n;this.timeline.fromTo(l,{height:0,y:parseFloat(l.getAttribute("data-chart-baseline")||"400")},{y:parseFloat(u),height:parseFloat(c),duration:i,delay:p,ease:Aa.OUT},"barsGrow")}),this.timeline.call(()=>{var o,s;this.currentStage="barsGrow",(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"barsGrow")},[],"barsGrow"),this}animateBarsToArea(t,r,n,i){const a=this.durations.barsToArea/1e3,o=new Map;return t.each(function(){var c;const s=this,l=s.getAttribute("class");if(!l)return;const u=l.match(/category-([\w-]+)/);if(u&&u[1]){const f=u[1];o.has(f)||o.set(f,[]),(c=o.get(f))==null||c.push(s)}}),this.timeline.set(t.nodes(),{opacity:0},"barsToArea"),this.timeline.set(r.nodes(),{opacity:1},"barsToArea"),r.each(function(){const s=this,l=s.getAttribute("data-category");if(!l)return;const u=n.get(l);u&&Ry.to(s,{attr:{d:u},duration:a,ease:Aa.IN_OUT})}),this.timeline.call(()=>{var s,l;this.currentStage="barsToArea",(l=(s=this.callbacks).onStageComplete)==null||l.call(s,"barsToArea")},[],"barsToArea"),this}handleProgress(){var r,n;const t=this.timeline.progress();(n=(r=this.callbacks).onProgress)==null||n.call(r,t)}getControls(){return{play:()=>this.timeline.play(),pause:()=>this.timeline.pause(),reverse:()=>this.timeline.reverse(),restart:()=>this.timeline.restart(),seek:t=>this.timeline.progress(t),seekToStage:t=>{const r=this.timeline.labels[t];r!==void 0&&this.timeline.seek(r)},kill:()=>this.timeline.kill(),getProgress:()=>this.timeline.progress(),getCurrentStage:()=>this.currentStage,getTimeline:()=>this.timeline}}play(){this.timeline.play()}destroy(){this.timeline.kill()}}function YN(e,t){const{arcAngle:r,arcAngleFlexibility:n=5,radius:i,seatSize:a,minSeatSize:o,maxSeatSize:s,spacing:l,innerRadiusRatio:u}=t,c=i*u,f=e.reduce((E,k)=>E+k.seats,0);let h={seatSize:a,arcAngle:r,score:-1};const p=r-n,y=r+n;for(let E=p;E<=y;E+=2.5){const k=E*Math.PI/180;for(let $=s;$>=o;$-=.1){const j=$*2,M=j*l,I=Math.floor((i-c)/M);for(let q=1;q<=Math.min(I,10);q++){let F=0;for(let N=0;N<q;N++){const R=c+(N+.5)*M,L=j*l/R,W=Math.floor(k/L);F+=W}if(F>=f){const N=f/F,R=($-o)/(s-o),L=(F-f)/f,W=L<.15?1:L<.3?.7:L<.5?.4:.1,Y=1-Math.abs(E-r)/n,z=W*.5+R*.3+N*.15+Y*.05;z>h.score&&(h={seatSize:$,arcAngle:E,rings:q,score:z})}}}}const m=h.seatSize,d=h.arcAngle,v=d*Math.PI/180,w=m*2,b=w*l,_=Math.floor((i-c)/b),g=[],x=-v/2-Math.PI/2,S=[];let A=0,T=[];for(let E=1;E<=_;E++){let k=0;const $=[];for(let j=0;j<E;j++){const M=c+(j+.5)*b,I=w*l/M,q=Math.floor(v/I);$.push(q),k+=q}if(k>=f){A=E,T=$;break}}if(A>0)S.push(...T);else for(let E=0;E<_;E++){const k=c+(E+.5)*b,$=w*l/k,j=Math.floor(v/$);S.push(j)}for(let E=0;E<S.length;E++){const k=c+(E+.5)*b,$=S[E]??0;if($>0){const j=v/$;for(let M=0;M<$;M++){const I=x+(M+.5)*j,q=Math.cos(I)*k,F=Math.sin(I)*k;g.push({ring:E,index:M,angle:I,x:q,y:F})}}}g.sort((E,k)=>{const $=E.angle-k.angle;return Math.abs($)>.001?$:E.ring-k.ring});const C=[];let P=0;return e.forEach((E,k)=>{const $=Math.min(E.seats,g.length-P);for(let j=0;j<$&&P<g.length;j++){const M=g[P++];M&&C.push({x:M.x,y:M.y,category:E.name,categoryIndex:k,seatIndex:j,ring:M.ring,angle:M.angle,radius:m})}}),{arcAngle:d,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:m,seats:C,totalSeats:f}}function XN(e,t,r){const n=t<=r?1:r/t;return e.filter(i=>i.value>0).map(i=>{const a=t<=r?i.value:Math.max(1,Math.floor(i.value*n));return{id:i.dataKey,name:i.label,seats:a,colour:i.color}})}const or={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},ps=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],tr={greyHatch:{background:or.neoGrey[200],lines:or.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}};function VN(e,t){const r=e.append("pattern").attr("id",`${t}-greyHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",tr.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",tr.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",tr.greyHatch.lines).attr("stroke-width",.5)}function ZN(e,t){const r=e.append("pattern").attr("id",`${t}-dataMissingHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",tr.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",tr.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",tr.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",tr.dataMissingHatch.lines).attr("stroke-width",.5)}function JN(e,t){const r=e.append("pattern").attr("id",`${t}-noLstHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",tr.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",tr.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",tr.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",tr.noLstHatch.lines).attr("stroke-width",.5)}function ql(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),VN(r,t),ZN(r,t),JN(r,t)}function n_(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function uE(e){return e.includes("greyHatchPattern")?tr.greyHatch.lines:e.includes("dataMissingHatchPattern")?tr.dataMissingHatch.lines:e.includes("noLstHatchPattern")?tr.noLstHatch.lines:e}function Dy(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,l=Li().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(ea),u=Cv().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(ea),c=s?`areas areas-${s}`:"areas";let f=e.select(s?`.areas-${s}`:".areas");f.empty()&&(f=e.append("g").attr("class",c)),t.forEach((h,p)=>{var v;const y=r[p];if(!y)return;const m=((v=y.parliamentMapping)==null?void 0:v.isSpecialCategory)??!1,d=uE(y.color);if(m){const w=f.append("path").datum(h).attr("fill","none").attr("stroke",d).attr("stroke-width",3).attr("stroke-dasharray","15 8").attr("d",u).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;w.attr("class",b)}}else{const w=f.append("path").datum(h).attr("fill",y.color).attr("fill-opacity",y.fillOpacity??.7).attr("stroke",d).attr("stroke-width",y.strokeWidth??1.5).attr("d",l).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;w.attr("class",b)}}})}function QN(e,t){var n;const r=[];for(const i of e){let a=0;for(const o of t){const s=i[o.dataKey]||0,l=a,u=a+s;r.push({timestamp:i.timestamp,category:o.label,dataKey:o.dataKey,y0:l,y1:u,value:s,color:o.color,isSpecialCategory:((n=o.parliamentMapping)==null?void 0:n.isSpecialCategory)??!1}),a+=s}}return r}function Be(e){return e.replace(/[^a-zA-Z0-9-_]/g,"-")}function cE(e,t,r,n){const{centerX:i,centerY:a,addClasses:o=!0,instanceId:s,parliamentRadius:l=200}=n,u=s?`parliament parliament-${s}`:"parliament";let c=e.select(s?`.parliament-${s}`:".parliament");c.empty()&&(c=e.append("g").attr("class",u)),t.seats.forEach(p=>{const y=r.find(v=>v.label===p.category);if(!y)return;const m=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius).attr("fill",y.color).attr("stroke",y.color).attr("stroke-width",.5),d=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius*2.5).attr("fill","transparent").attr("stroke","none").attr("pointer-events","all");if(o){const v=s?`seat seat-${s} seat-${Be(p.category)}`:`seat seat-${Be(p.category)}`;m.attr("class",v),d.attr("class",v)}});const f=s?`parliament-label parliament-label-${s}`:"parliament-label";if(e.select(`.${f.split(" ")[0]}`).empty()){const p=e.append("g").attr("class",f).attr("transform",`translate(${i},${a-l*.15})`).style("opacity","0").style("pointer-events","none");p.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),p.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const y=p.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");y.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),y.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}}function tL(e,t,r,n,i,a,o=!1){var f;const s=new Map;let l=i;if(t.length>0&&((f=t[0])==null?void 0:f.timestamp)!==void 0){const h=t[0].timestamp;l=r(new Date(h))}const u=new Map;for(const h of e.seats)u.has(h.category)||u.set(h.category,[]),u.get(h.category).push(h);const c=new Map;for(const h of t)c.set(h.dataKey,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory}),h.label&&h.label!==h.dataKey&&c.set(h.label,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory});for(const h of e.seats){const p=c.get(h.category);if(!p){s.set(h,{x:l,y:a/2});continue}const y=n(p.y0),m=n(p.y1);let d;if(o){const v=u.get(h.category)??[],w=h.seatIndex,b=v.length;if(b===1)d=(y+m)/2;else{const _=w/(b-1);d=y+(m-y)*_}}else d=m;s.set(h,{x:l,y:d})}return s}function eL(e,t,r){var o;if(e.length===0)return[];const n=e[e.length-1],i=[];let a=0;for(const s of t){const l=n[s.dataKey]||0,u=a,c=a+l;i.push({dataKey:s.dataKey,label:s.label,y0:u,y1:c,value:l,timestamp:n.timestamp,isSpecialCategory:((o=s.parliamentMapping)==null?void 0:o.isSpecialCategory)??!1}),a+=l}return i}function rL(e){const t=e;return{seatsToLines:t*.2,seatsToBar:t*.07,crossFadePause:t*.003,barSlideToTimeline:t*.22,axesAndBarsGrow:t*.22,barsToArea:t*.287}}const qi=new Map;te.prototype.transition=sv;const nL=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:l=!0,showAxes:u=!0,formatDate:c,formatValue:f,markers:h=[],arcAngle:p=200,parliamentRadius:y=200,seatSize:m=4.5,animationDuration:d=900,onMorphComplete:v,onAnimationStateChange:w,onTimelineReady:b,onAnimationProgress:_,onHoveredDataChange:g,hoveredCategory:x,maxSeats:S=2e3,parliamentTimestamp:A,enableBrush:T=!1,onTimeRangeChange:C,showScaleIndicator:P=!1,reposPerSeat:E=1,timelineEvents:k=[],showTimeline:$=!1,timelineHeight:j=40,timelineOffset:M=35})=>{const[I,q]=O.useState("area"),[F,N]=O.useState(!1),[R,L]=O.useState(null),[W,Y]=O.useState(0),[z,V]=O.useState(null),[J,K]=O.useState(null),[B,G]=O.useState([]),Z=O.useRef(null),D=O.useRef(n),ot=O.useRef(!0),U=O.useRef(!1),it=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),ft=O.useRef(void 0),st=O.useRef(s),ht=O.useRef(v),Tt=O.useRef(w),at=O.useRef(b),dt=O.useRef(_),xt=O.useRef(g);O.useEffect(()=>{ht.current=v,Tt.current=w,at.current=b,dt.current=_,xt.current=g},[v,w,b,_,g]),O.useEffect(()=>{if(e.current&&I==="parliament")if(x){const St=r.find(Ct=>Ct.dataKey===x);if(St){const Ct=St.label;L(Ct),ms(e.current,Ct)}}else L(null),ms(e.current,null)},[x,I,r,t]);const $t=i-o.left-o.right,Kt=a-o.top-o.bottom;return O.useEffect(()=>{var Yr;if(!e.current||t.length===0||r.length===0||(ft.current&&(ft.current(),ft.current=void 0),U.current))return;const St=te(e.current),Ct=n!==D.current;ot.current?(St.selectAll("*").remove(),ql(St,it.current),ot.current=!1):Ct||(St.selectAll("*").remove(),ql(St,it.current));const Se=t[t.length-1],Pr=r.reduce((wt,Q)=>wt+(Se.values[Q.dataKey]||0),0),sn=t.map(wt=>{const Q={timestamp:wt.timestamp};for(const ct of r)Q[ct.dataKey]=wt.values[ct.dataKey]||0;return Q}),me=r.map(wt=>wt.dataKey),Ae=Eu().keys(me),Wr=Ae(sn),Ve=t.map(wt=>wt.timestamp),Er=Ct||!s?Math.min(...Ve):s[0],cr=Ct||!s?Math.max(...Ve):s[1],Hr=[...Ve].sort((wt,Q)=>wt-Q),fr=[];for(let wt=0;wt<Hr.length-1;wt++)fr.push(Hr[wt+1]-Hr[wt]);const Vn=fr.length>0?fr.reduce((wt,Q)=>wt+Q,0)/fr.length:0,Cr=cr+Vn*1.15,We=wu().domain([new Date(Er),new Date(Cr)]).range([0,$t]),Gr=sn.filter(wt=>wt.timestamp>=Er&&wt.timestamp<=cr),ln=Ae(Gr),Oe=ln.length>0?Math.max(...ln[ln.length-1].map(wt=>wt[1]??0)):0,Mr=ta().domain([0,Oe*1.15]).range([Kt,0]),hr=r.map(wt=>({...wt,color:n_(wt.color,it.current)})),Io=hr.map(wt=>({dataKey:wt.dataKey,label:wt.label,color:wt.color,value:Se.values[wt.dataKey]||0})),On=XN(Io,Pr,S).reverse(),Ze=YN(On,{arcAngle:p,radius:y,seatSize:m,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4});Z.current=Ze;const Si=eL(sn,r),Kr=tL(Ze,Si,We,Mr,$t,Kt);if(Ct&&!U.current){U.current=!0,N(!0),(Yr=Tt.current)==null||Yr.call(Tt,!0),V(null),G([]),Y(0);let wt=St.select("g[transform]");if(wt.empty()&&(wt=St.select("g")),wt.empty()){St.selectAll("*").remove(),ql(St,it.current),Ff(St,n==="parliament"?"parliament":"area",Wr,hr,Ze,We,Mr,$t,Kt,o,l,u,c,f,T,C,it.current,h,s,G,V,k,$,j,M,K),N(!1),q(n==="parliament"?"parliament":"area"),Y(n==="parliament"?1:0),D.current=n;return}const Q=setTimeout(()=>{U.current=!1,N(!1),D.current=n},d*3);oL(St,n,Wr,hr,Ze,Kr,We,Mr,$t,Kt,o,d,()=>{var ct,mt;if(clearTimeout(Q),U.current=!1,N(!1),q(n==="parliament"?"parliament":"area"),n==="parliament"&&Y(1),(ct=Tt.current)==null||ct.call(Tt,!1),(mt=ht.current)==null||mt.call(ht),D.current=n,n==="parliament"&&e.current&&xt.current&&(ft.current=zf(e.current,hr,t,R,L,xt.current,P,E,it.current)),n!=="parliament"&&e.current){const At=te(e.current),jt=At.select(it.current?`.main-chart-group-${it.current}`:".main-chart-group");if($&&K&&fE(At,k,We,Kt,$t,j,M,it.current,K,T,C),T&&C&&!$){const Ft=jt.select(it.current?`.chart-content-group-${it.current}`:".chart-content-group");iL(Ft,$t,Kt,We,C,it.current,At)}if(h.length>0&&G&&V&&s){const Ft=h.filter(Zt=>Zt.timestamp>=(s[0]??0)&&Zt.timestamp<=(s[1]??1/0)).map(Zt=>({...Zt,x:We(new Date(Zt.timestamp))}));G(Ft),Ft.length>0&&aL(jt,Ft,Kt,$t,T,V,it.current)}}},u,c,f,at.current,(ct,mt)=>{var At;if(n==="parliament"&&ct>=.95){const jt=(ct-.95)/.05;Y(Math.min(jt,1))}(At=dt.current)==null||At.call(dt,ct,mt)},A,it.current)}else D.current=n,n==="parliament"&&(V(null),G([])),Ff(St,n==="parliament"?"parliament":"area",Wr,hr,Ze,We,Mr,$t,Kt,o,l,u,c,f,T,C,it.current,h,s,G,V,k,$,j,M,K),q(n==="parliament"?"parliament":"area"),Y(n==="parliament"?1:0),n==="parliament"&&e.current&&xt.current&&(ft.current=zf(e.current,hr,t,R,L,xt.current,P,E,it.current));return()=>{ft.current&&(ft.current(),ft.current=void 0)}},[n]),O.useEffect(()=>{var Gr,ln;if(!e.current||t.length===0||U.current)return;if(ot.current){st.current=s;return}if(!(s!==st.current&&((s==null?void 0:s[0])!==((Gr=st.current)==null?void 0:Gr[0])||(s==null?void 0:s[1])!==((ln=st.current)==null?void 0:ln[1]))))return;st.current=s;const Ct=te(e.current),Se=t.map(Oe=>{const Mr={timestamp:Oe.timestamp};for(const hr of r)Mr[hr.dataKey]=Oe.values[hr.dataKey]||0;return Mr}),Pr=r.map(Oe=>Oe.dataKey),me=Eu().keys(Pr)(Se),Ae=t.map(Oe=>Oe.timestamp),Wr=s?s[0]:Math.min(...Ae),Ve=s?s[1]:Math.max(...Ae),cr=(Ae.length>1?(Ae[Ae.length-1]-Ae[0])/(Ae.length-1):0)*.5,Hr=wu().domain([new Date(Wr-cr),new Date(Ve+cr)]).range([0,i-o.left-o.right]),fr=Math.max(...me[me.length-1].map(Oe=>Oe[1])),Vn=ta().domain([0,fr*1.1]).range([a-o.top-o.bottom,0]);if(!Z.current)return;const Cr=Z.current,We=r.map(Oe=>({...Oe,color:n_(Oe.color,it.current)}));Ct.selectAll("*").remove(),ql(Ct,it.current),Ff(Ct,I==="parliament"?"parliament":"area",me,We,Cr,Hr,Vn,i-o.left-o.right,a-o.top-o.bottom,o,l,u,c,f,T,C,it.current,h,s,G,V,k,$,j,M,K),I==="parliament"&&e.current&&xt.current&&(ft.current=zf(e.current,We,t,R,L,xt.current,P,E,it.current))},[s]),{isMorphing:F,currentMode:I,hoveredCategory:R,scaleIndicatorOpacity:W,visibleMarkers:B,hoveredMarker:z,setHoveredMarker:V,hoveredTimelineEvent:J,setHoveredTimelineEvent:K}};function iL(e,t,r,n,i,a,o){const s=Ac().extent([[0,0],[t,r]]).on("end",u=>{if(!u.selection)return;const[c,f]=u.selection,h=[+n.invert(c),+n.invert(f)];i(h),o.select(".brush").call(s.move,null)}),l=e.append("g").attr("class","brush").call(s);l.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),l.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),l.on("dblclick",()=>{const u=n.domain(),c=[+u[0],+u[1]];i(c)})}function aL(e,t,r,n,i,a,o){const s=e.select(o?`.chart-content-group-${o}`:".chart-content-group"),l=o?`markers markers-${o}`:"markers",u=e.append("g").attr("class",l);t.forEach(h=>{u.append("line").attr("class","marker-line").attr("data-timestamp",h.timestamp).attr("x1",h.x).attr("x2",h.x).attr("y1",0).attr("y2",r).attr("stroke",h.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),h.label&&u.append("text").attr("class","marker-label").attr("data-timestamp",h.timestamp).attr("x",h.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",h.color??"#2F42FF").attr("opacity",0)});let c=null,f;i?f=s.select(".brush .overlay"):f=s.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",r).attr("fill","none").attr("pointer-events","all"),f.on("mousemove",function(h){const[p]=Ps(h,this);let y=null,m=1/0;if(t.forEach(w=>{const b=Math.abs(p-w.x);b<m&&(m=b,y=w)}),!y||m>50){c!==null&&(c=null,u.selectAll(".marker-line").attr("opacity",0),u.selectAll(".marker-label").attr("opacity",0),a(null));return}const v=y;c!==v.timestamp&&(c=v.timestamp,u.selectAll(".marker-line").attr("opacity",0),u.selectAll(".marker-label").attr("opacity",0),u.selectAll(".marker-line").filter(function(){return te(this).attr("data-timestamp")===String(v.timestamp)}).attr("opacity",.6),u.selectAll(".marker-label").filter(function(){return te(this).attr("data-timestamp")===String(v.timestamp)}).attr("opacity",1),a(v))}),f.on("mouseleave",function(){c=null,u.selectAll(".marker-line").attr("opacity",0),u.selectAll(".marker-label").attr("opacity",0),a(null)})}function Ff(e,t,r,n,i,a,o,s,l,u,c,f,h,p,y=!1,m,d,v=[],w=[0,0],b,_,g=[],x=!1,S=40,A=15,T){let C=null;const P=d?`main-chart-group main-chart-group-${d}`:"main-chart-group",E=e.append("g").attr("class",P).attr("transform",`translate(${u.left},${u.top})`),k=d?`chart-clip-${d}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",k).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",l);const $=d?`chart-content-group chart-content-group-${d}`:"chart-content-group",j=E.append("g").attr("class",$).attr("clip-path",`url(#${k})`);if(c&&t!=="parliament"&&(j.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Os(a).ticks(6).tickSize(l).tickFormat(()=>"")),j.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Ts(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(Dy(j,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:d}),v.length>0)){const M=v.filter(I=>I.timestamp>=w[0]&&I.timestamp<=w[1]).map(I=>({...I,x:a(new Date(I.timestamp))}));C={markersGroup:null,visibleMarkers:M},b&&b(M)}if(t==="parliament"){const M=s/2,I=i.radius+10,q=l-i.radius*.3,F=Math.max(I,q);cE(j,i,n,{centerX:M,centerY:F,addClasses:!0,instanceId:d,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const M=Os(a).ticks(6);h&&M.tickFormat(q=>h(+q)),E.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).call(M).selectAll("text").attr("font-size",14).attr("font-weight",500);const I=Ts(o).ticks(5);p&&I.tickFormat(q=>p(+q)),E.append("g").attr("class","axis axis-y").call(I).selectAll("text").attr("font-size",14).attr("font-weight",500)}if(y&&m&&t==="area"){const M=Ac().extent([[0,0],[s,l]]).on("end",q=>{if(!q.selection)return;const[F,N]=q.selection,R=[+a.invert(F),+a.invert(N)];m(R),e.select(".brush").call(M.move,null)}),I=j.append("g").attr("class","brush").call(M);I.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),I.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),I.on("dblclick",()=>{const q=a.domain(),F=[+q[0],+q[1]];m(F)})}if(t==="area"&&C&&C.visibleMarkers.length>0){const M=E.append("g").attr("class","markers").attr("clip-path",`url(#${k})`);C.visibleMarkers.forEach(I=>{M.append("line").attr("class","marker-line").attr("data-timestamp",I.timestamp).attr("x1",I.x).attr("x2",I.x).attr("y1",0).attr("y2",l).attr("stroke",I.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),I.label&&M.append("text").attr("class","marker-label").attr("data-timestamp",I.timestamp).attr("x",I.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",I.color??"#2F42FF").attr("opacity",0)}),C.markersGroup=M}if(t==="area"&&x&&T&&fE(e,g,a,l,s,S,A,d,T,y,m),C&&C.visibleMarkers.length>0&&_&&t==="area"){const{markersGroup:M,visibleMarkers:I}=C;let q=null,F;y?F=j.select(".brush .overlay"):F=j.append("rect").attr("class","marker-hover-overlay").attr("width",s).attr("height",l).attr("fill","none").attr("pointer-events","all");const N=R=>{let L=null,W=1/0;if(I.forEach(V=>{const J=Math.abs(R-V.x);J<W&&(W=J,L=V)}),!L||W>50)return q!==null&&(q=null,M.selectAll(".marker-line").attr("opacity",0),M.selectAll(".marker-label").attr("opacity",0),_(null)),!1;const z=L;return q===z.timestamp||(q=z.timestamp,M.selectAll(".marker-line").attr("opacity",0),M.selectAll(".marker-label").attr("opacity",0),M.selectAll(".marker-line").filter(function(){return te(this).attr("data-timestamp")===String(z.timestamp)}).attr("opacity",.6),M.selectAll(".marker-label").filter(function(){return te(this).attr("data-timestamp")===String(z.timestamp)}).attr("opacity",1),_(z)),!0};F.on("mousemove",function(R){const[L]=Ps(R,this);N(L)}),F.on("mouseleave",function(){q=null,M.selectAll(".marker-line").attr("opacity",0),M.selectAll(".marker-label").attr("opacity",0),_(null)})}}function fE(e,t,r,n,i,a,o,s,l,u=!1,c){const f=n+o,h=e.select(s?`.main-chart-group-${s}`:".main-chart-group"),p=s?`timeline-track timeline-track-${s}`:"timeline-track",y=h.append("g").attr("class",p),m=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",m).append("rect").attr("x",0).attr("y",f).attr("width",i).attr("height",a),y.append("rect").attr("class","timeline-background").attr("x",0).attr("y",f).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const d=y.append("g").attr("clip-path",`url(#${m})`),v=3,w=d.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",_=>r(new Date(_.timestamp))-v/2).attr("y",f).attr("width",v).attr("height",a).attr("fill",_=>_.color||"#2F42FF").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",_=>_.timestamp).attr("data-event-name",_=>_.eventName),b=6;if(w.on("mouseenter",function(_,g){const x=te(this),S=r(new Date(g.timestamp));x.transition().duration(150).attr("x",S-b/2).attr("width",b),l&&l({timestamp:g.timestamp,eventName:g.eventName,x:S})}).on("mouseleave",function(_,g){const x=te(this),S=r(new Date(g.timestamp));x.transition().duration(150).attr("x",S-v/2).attr("width",v),l&&l(null)}),u&&c){const _=Ac().extent([[0,f],[i,f+a]]).on("end",S=>{if(!S.selection)return;const[A,T]=S.selection,C=[+r.invert(A),+r.invert(T)];c(C);const P=s?`.timeline-brush-${s}`:".timeline-brush";e.select(P).call(_.move,null)}),g=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",x=h.append("g").attr("class",g).call(_);x.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),x.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),x.on("dblclick",()=>{const S=r.domain(),A=[+S[0],+S[1]];c(A)})}}function oL(e,t,r,n,i,a,o,s,l,u,c,f,h,p=!0,y,m,d,v,w,b){const _=e.select(b?`.main-chart-group-${b}`:".main-chart-group");_.selectAll(".markers").remove(),_.selectAll(".marker-hover-overlay").remove(),_.selectAll(".brush").remove(),t==="stacked-area"||t==="area"?sL(_,r,n,i,a,o,s,l,u,f,h,p,y,m,d,v,w,b):lL(_,r,n,i,a,o,s,l,u,f,h,p,y,m,d,v,w,b)}function ds(e,t,r,n,i,a,o,s){const l=e[a];if(!l)return"";const u=l.find(x=>x.data.timestamp===o);if(!u)return"";const c=u.data,f=t[a];if(!f)return"";const h=f.dataKey,p=c[h];if(!p||p<=0)return"";const y=r.get(o);if(!y)return"";const m=y.x,d=y.width,v=u[0],w=u[1],b=s?i:n(v),_=s?i:n(w),g=[];return g.push(`M ${m} ${b}`),g.push(`L ${m} ${_}`),g.push(`L ${m+d} ${_}`),g.push(`L ${m+d} ${b}`),g.push("Z"),g.join(" ")}function sL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h,p,y,m,d,v){var $l;const w=v?`.seat-${v}`:".seat",b=e.selectAll(w),_=v?`.chart-content-group-${v}`:".chart-content-group";let g=e.select(_);if(g.empty()){const et=e.attr("clip-path"),lt=et?(($l=et.match(/url\(#(.+)\)/))==null?void 0:$l[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,yt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";g=e.append("g").attr("class",yt).attr("clip-path",`url(#${lt})`)}if(b.size()===0){Dy(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),c();return}const x=rL(u),S=v?qi.get(v):void 0;S&&(S.destroy(),v&&qi.delete(v));const A=et=>et<.2?"seatsToRings":et<.35?"ringsToBar":et<.464?"axesReveal":et<.6?"barSlide":et<.82?"barsGrow":"barsToArea",T=new lE({seatsToRings:x.seatsToLines,ringsToBar:x.seatsToBar,axesReveal:x.barSlideToTimeline*.3,barSlide:x.barSlideToTimeline*.7,barsGrow:x.axesAndBarsGrow,barsToArea:x.barsToArea},{onStageComplete:et=>{},onProgress:et=>{if(m){const lt=A(et);m(et,lt)}},onComplete:()=>{c()}});v&&qi.set(v,T),y&&y(T.getControls().getTimeline());const C=t[0].map(et=>et.data),P=QN(C,r),E=s/2,k=n.radius+10,$=l-n.radius*.3,j=Math.max(k,$),M=C.map(et=>et.timestamp),I=d??Math.max(...M),q=new Map,F=[];M.forEach((et,lt)=>{const yt=a(new Date(et)),Mt=M[lt+1];if(Mt){const Jt=a(new Date(Mt))-yt;F.push(Jt)}});const N=F.length>0?F.reduce((et,lt)=>et+lt,0)/F.length:30;M.forEach((et,lt)=>{const yt=a(new Date(et)),Mt=M[lt+1],Jt=lt===M.length-1?N:a(new Date(Mt))-yt;q.set(et,{x:yt,width:Jt})});const R=P.filter(et=>et.timestamp===I),L=q.get(I),W=666,Y=v?`parliament-bar-path parliament-bar-path-${v}`:"parliament-bar-path",z=g.append("g").attr("class",Y);R.sort((et,lt)=>lt.y0-et.y0),new Map().set(I,{x:W-L.width/2,width:L.width});const J=[],K=(n.radius-n.innerRadius)*.6,G=l*.8,Z=j,D=R.reduce((et,lt)=>et+(lt.y1-lt.y0),0);let ot=0;r.forEach(et=>{const lt=R.find(Me=>Me.dataKey===et.dataKey);if(!lt)return;const oe=(lt.y1-lt.y0)/D*G,Jt=Z-ot,De=Z-ot-oe,Ce=W-K/2,Je=`M ${Ce} ${Jt} L ${Ce} ${De} L ${Ce+K} ${De} L ${Ce+K} ${Jt} Z`;ot+=oe;const dr=z.append("path").attr("class",`parliament-bar-segment category-${Be(lt.dataKey)}`).attr("d",Je).attr("fill",lt.color).style("opacity",0).node();dr&&J.push(dr)}),v&&(window.orchestratorMap=qi);const U=T.getControls().getTimeline(),it=x.seatsToLines/1e3,ft=x.seatsToBar/1e3;U.call(()=>{m==null||m(U.progress(),"seatsToRings")},[],"seatsToRings");const st=b.nodes(),ht=E,Tt=j,at=Math.max(...n.seats.map(et=>et.ring)),dt=n.seats.filter(et=>et.ring===at),xt=e.append("g").attr("class",`seat-lines-${v||"default"}`),$t=r.map(et=>{const lt=b.filter(`.seat-${Be(et.dataKey)}`).size();return lt>0?{name:et.dataKey,seatCount:lt,color:et.color}:null}).filter(et=>et!==null).reverse(),Kt=$t.reduce((et,lt)=>et+lt.seatCount,0),St=dt.length,Ct=n.radius-n.innerRadius,Se=Ct*.6,Pr=Se/2,sn=Ct*.6,me=[];let Ae=0;$t.forEach(et=>{const lt=Math.max(1,Math.round(et.seatCount/Kt*St));for(let yt=0;yt<lt;yt++){const Mt=(Ae+yt)/St,oe=n.arcAngle*Math.PI/180,De=-oe/2-Math.PI/2+Mt*oe,Ce=(n.innerRadius+n.radius)/2,Je=ht+Math.cos(De)*Ce,dr=Tt+Math.sin(De)*Ce,Me=Math.cos(De),Zn=Math.sin(De),Ti=Je-Pr*Me,va=dr-Pr*Zn,ye=Je+Pr*Me,Jn=dr+Pr*Zn,Qn=xt.append("line").attr("class","seat-line").attr("x1",Ti).attr("y1",va).attr("x2",ye).attr("y2",Jn).attr("stroke",et.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").style("opacity",0).attr("data-angle",De*180/Math.PI).attr("data-center-x",Je).attr("data-center-y",dr).attr("data-initial-length",Se).node();me.push({element:Qn,angle:De})}Ae+=lt});const Wr=()=>{xt.remove()},Ve=it*.5,Er=0,cr=[];if(cr.push(...st),cr.sort((et,lt)=>{const yt=parseInt(et.getAttribute("data-layout-index")||"-1",10),Mt=parseInt(lt.getAttribute("data-layout-index")||"-1",10);return yt-Mt}),cr.length>0&&me.length>0){const et=me.map(lt=>lt.element);U.to(cr,{attr:{r:1.5},duration:Ve*.3,ease:"power2.in"},`seatsToRings+=${Er}`),et.forEach(lt=>{const yt=lt.getAttribute("x1")||"0",Mt=lt.getAttribute("y1")||"0",oe=lt.getAttribute("x2")||"0",Jt=lt.getAttribute("y2")||"0";lt.setAttribute("data-final-x1",yt),lt.setAttribute("data-final-y1",Mt),lt.setAttribute("data-final-x2",oe),lt.setAttribute("data-final-y2",Jt),lt.setAttribute("x1",yt),lt.setAttribute("y1",Mt),lt.setAttribute("x2",yt),lt.setAttribute("y2",Mt)}),U.to(et,{attr:{x2:(lt,yt)=>parseFloat(yt.getAttribute("data-final-x2")||"0"),y2:(lt,yt)=>parseFloat(yt.getAttribute("data-final-y2")||"0")},opacity:.9,duration:Ve*.6,ease:"power2.out"},`seatsToRings+=${Er+Ve*.2}`),U.to(cr,{opacity:0,duration:Ve*.3,ease:"power2.out"},`seatsToRings+=${Er+Ve*.3}`)}const Hr=it*.05,fr=it*.7,Vn=Er+Ve+Hr;if(me.length>0){const et=W,lt=j,Mt=l*.8/me.length,oe=lt,Jt=[...me].sort((Je,dr)=>dr.angle-Je.angle),Ce=.6/Jt.length;Jt.forEach((Je,dr)=>{const Me=et,Ti=oe-dr*Mt,va=Ce*dr*fr,ye=Je.element,Jn=parseFloat(ye.getAttribute("data-final-x1")||"0"),Qn=parseFloat(ye.getAttribute("data-final-y1")||"0"),Lo=parseFloat(ye.getAttribute("data-final-x2")||"0"),ba=parseFloat(ye.getAttribute("data-final-y2")||"0"),jl=(Jn+Lo)/2,cn=(Qn+ba)/2,ti=Math.atan2(ba-Qn,Lo-Jn),Pi=Math.sqrt(Math.pow(Lo-Jn,2)+Math.pow(ba-Qn,2));U.to({progress:0},{progress:1,duration:fr*.5,ease:"power2.inOut",delay:va,onUpdate:function(){const ue=this.progress(),pf=jl+(Me-jl)*ue,df=cn+(Ti-cn)*ue,fn=40*4*ue*(1-ue),Ei=pf,Ci=df-fn,yf=0-ti,En=ti+yf*ue*ue,Rl=(Pi+(sn-Pi)*ue)/2,lk=Ei-Rl*Math.cos(En),uk=Ci-Rl*Math.sin(En),ck=Ei+Rl*Math.cos(En),fk=Ci+Rl*Math.sin(En);ye.setAttribute("x1",lk.toString()),ye.setAttribute("y1",uk.toString()),ye.setAttribute("x2",ck.toString()),ye.setAttribute("y2",fk.toString())},onComplete:function(){const ue=sn/2;ye.setAttribute("x1",(Me-ue).toString()),ye.setAttribute("y1",Ti.toString()),ye.setAttribute("x2",(Me+ue).toString()),ye.setAttribute("y2",Ti.toString())}},`seatsToRings+=${Vn}`),U.to(Je.element,{opacity:.95,duration:fr*.3,ease:"power2.out",delay:va},`seatsToRings+=${Vn}`)})}const Cr=xt,We=[];R.forEach((et,lt)=>{const yt=b.filter(`.seat-${Be(et.category)}`),Mt=yt.size();if(Mt===0)return;const oe=o(et.y1),Jt=o(et.y0)-o(et.y1),De=yt.nodes().sort((cn,ti)=>{const Pi=parseInt(cn.getAttribute("data-layout-index")||"-1",10),ue=parseInt(ti.getAttribute("data-layout-index")||"-1",10);return Pi-ue}),Ce=Math.max(L.width,100),Je=Jt,dr=Ce/Math.max(Je,1),Me=Math.max(2,Math.ceil(Math.sqrt(Mt*dr))),Zn=Math.ceil(Mt/Me),Ti=Ce*.8,va=Je*.8,ye=Me>1?Ti/(Me-1):0,Jn=Zn>1?va/(Zn-1):0,Qn=Me>1?(Me-1)*ye:0,Lo=Zn>1?(Zn-1)*Jn:0,ba=W-Ce/2+(Ce-Qn)/2,jl=oe+(Je-Lo)/2;De.forEach((cn,ti)=>{const Pi=parseInt(cn.getAttribute("data-layout-index")||"-1",10),ue=Pi>=0?n.seats[Pi]:void 0,pf=ue?E+ue.x:parseFloat(cn.getAttribute("cx")||"0"),df=ue?j+ue.y:parseFloat(cn.getAttribute("cy")||"0"),I0=(ue==null?void 0:ue.radius)||parseFloat(cn.getAttribute("r")||"4"),fn=Mt%Me;let Ei,Ci;if(fn>0&&ti<fn)Ci=0,Ei=ti;else{const En=ti-(fn>0?fn:0);Ei=En%Me,Ci=Math.floor(En/Me)+(fn>0?1:0)}let mf=ba+Ei*ye;if(fn>0&&Ci===0){const En=fn>1?(fn-1)*ye:0,N0=(Qn-En)/2;mf=ba+N0+Ei*ye}const yf=jl+Ci*Jn;We.push({element:cn,startX:pf,startY:df,startRadius:I0,category:et.dataKey,segmentIndex:lt,endY:yf,endX:mf})})});const Gr=We.map(et=>{const lt=et.startX-E,yt=et.startY-j,Mt=Math.atan2(yt,lt);return{...et,angle:Mt}});Gr.sort((et,lt)=>lt.angle-et.angle);const ln=ft*.8,Oe=.6,Mr=Gr.length,Io=ln/Math.max(Mr,1)*(Mr-1)+Oe,On=ft*.3,Ze=Io;U.to(J,{opacity:1,duration:On,ease:"power2.inOut"},`seatsToBar+=${Ze}`),Cr&&(U.to(Cr.selectAll(".seat-line").nodes(),{opacity:0,duration:On,ease:"power2.inOut"},`seatsToBar+=${Ze}`),U.call(()=>{Wr()},[],`seatsToBar+=${Ze+On}`));const Si=x.barSlideToTimeline/1e3;let Kr=null,Yr=null;if(f){const et=Os(a).ticks(6);h&&et.tickFormat(yt=>h(yt.getTime())),Kr=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).attr("opacity",0),Kr.call(et).selectAll("text").attr("font-size",14).attr("font-weight",500);const lt=Ts(o).ticks(5);p&&lt.tickFormat(yt=>p(yt)),Yr=e.append("g").attr("class","axis axis-y").attr("opacity",0),Yr.call(lt).selectAll("text").attr("font-size",14).attr("font-weight",500)}const wt=x.crossFadePause/1e3,Q=Ze+On+wt;J.forEach(et=>{const lt=Array.from(et.classList).find(Jt=>Jt.startsWith("category-"));if(!lt||!R.find(Jt=>Be(Jt.dataKey)===lt.replace("category-","")))return;const Mt=r.findIndex(Jt=>Be(Jt.dataKey)===lt.replace("category-",""));if(Mt===-1)return;const oe=ds(t,r,q,o,l,Mt,I,!1);oe&&U.to(et,{attr:{d:oe},duration:Si,ease:"power2.out"},`seatsToBar+=${Q}`)});const ct=Li().x(et=>a(et.data.timestamp)).y0(et=>o(et[0])).y1(et=>o(et[1])).curve(ea),mt=new Map;t.forEach((et,lt)=>{const yt=r[lt];if(yt){const Mt=ct(et)||"";mt.set(yt.dataKey,Mt)}});const At=Q+Si;f&&Kr&&Yr&&U.to([Kr.node(),Yr.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${Q}`);const jt=g.select(".grid-vertical"),Ft=g.select(".grid-horizontal");if(!jt.empty()||!Ft.empty()){const lt=[];jt.empty()||lt.push(jt.node()),Ft.empty()||lt.push(Ft.node()),U.to(lt,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${Q}`)}const Zt=x.axesAndBarsGrow/1e3,Re=x.barsToArea/1e3,pr=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",He=g.append("g").attr("class",pr);M.forEach(et=>{if(et===I)return;const lt=q.get(et);lt&&r.forEach((yt,Mt)=>{const oe=ds(t,r,q,o,l,Mt,et,!0),Jt=ds(t,r,q,o,l,Mt,et,!1);if(!oe||!Jt)return;const De=v?`histogram-path histogram-path-${v} category-${Be(yt.dataKey)}`:`histogram-path category-${Be(yt.dataKey)}`;He.append("path").attr("class",De).attr("d",oe).attr("fill",yt.color).attr("stroke",yt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",yt.dataKey).attr("data-timestamp",et).attr("data-x-position",lt.x).attr("data-full-height-path",Jt)})});const Tn=v?`.histogram-path-${v}`:".histogram-path",un=He.selectAll(Tn);U.to(un.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${At}`);const Pn=L.x+L.width/2;un.each(function(){var Ce;const et=this.getAttribute("data-full-height-path");if(!et)return;const lt=parseFloat(this.getAttribute("data-x-position")||"0"),yt=parseFloat(this.getAttribute("data-timestamp")||"0"),Mt=((Ce=q.get(yt))==null?void 0:Ce.width)||0,oe=lt+Mt/2,De=Math.abs(oe-Pn)*8e-4;U.to(this,{attr:{d:et},duration:Zt,ease:"power2.out"},`seatsToBar+=${At+De}`)});const Ai=At+Zt,No=M[M.length-1],ya=a(new Date(No))+N,Ml=a.invert(ya).getTime(),ga=t.map(et=>{const lt=et[et.length-1],yt={...lt,data:{...lt.data,timestamp:Ml}};return[...et,yt]});Dy(e,ga,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v});const D0=v?`.area-${v}`:".area",Oi=e.selectAll(D0);Oi.attr("opacity",0),U.to(un.nodes(),{opacity:0,duration:Re,ease:"power2.inOut"},`seatsToBar+=${Ai}`);const kl=z.selectAll("path").nodes();kl.length>0&&U.to(kl,{opacity:0,duration:Re,ease:"power2.inOut"},`seatsToBar+=${Ai}`),U.to(Oi.nodes(),{opacity:1,duration:Re,ease:"power2.inOut"},`seatsToBar+=${Ai}`);const hf=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const et=v?`.morph-bar-${v}`:".morph-bar";e.selectAll(et).remove();const lt=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(lt).remove(),f&&(Kr&&Kr.attr("opacity",1),Yr&&Yr.attr("opacity",1)),hf()}),T.play()}function lL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h,p,y,m,d,v){var wt;const w=v?`.chart-content-group-${v}`:".chart-content-group";let b=e.select(w);if(b.empty()){const Q=e.attr("clip-path"),ct=Q?((wt=Q.match(/url\(#(.+)\)/))==null?void 0:wt[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,mt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";b=e.append("g").attr("class",mt).attr("clip-path",`url(#${ct})`)}const _=v?`.area-${v}`:".area",g=e.selectAll(_);if(g.size()===0){uL(e,r,n,s,l,v),c();return}const x={areaToBar:u*.18,barsShrink:u*.22,barSlide:u*.22,axesHide:u*.03,barToRings:u*.07,ringsExpand:u*.18,ringsHold:u*.05,ringsToSeats:u*.07},S=v?qi.get(v):void 0;S&&(S.destroy(),v&&qi.delete(v));const A=Q=>Q<.18?"areaToBar":Q<.4?"barsShrink":Q<.62?"barSlide":Q<.65?"axesHide":Q<.72?"barToRings":Q<.9?"ringsExpand":Q<.95?"ringsHold":"ringsToSeats",T=new lE({seatsToRings:x.ringsToSeats,ringsHold:x.ringsHold,ringsToBar:x.barToRings,axesReveal:x.axesHide,barSlide:x.barSlide,barsGrow:x.barsShrink,barsToArea:x.areaToBar},{onStageComplete:Q=>{},onProgress:Q=>{if(m){const ct=A(Q);m(Q,ct)}},onComplete:()=>{c()}});v&&qi.set(v,T),y&&y(T.getControls().getTimeline());const P=t[0].map(Q=>Q.data).map(Q=>Q.timestamp),E=d??Math.max(...P),k=new Map,$=[];P.forEach((Q,ct)=>{const mt=a(new Date(Q)),At=P[ct+1];if(At){const Ft=a(new Date(At))-mt;$.push(Ft)}});const j=$.length>0?$.reduce((Q,ct)=>Q+ct,0)/$.length:30;P.forEach((Q,ct)=>{const mt=a(new Date(Q)),At=P[ct+1],Ft=ct===P.length-1?j:a(new Date(At))-mt;k.set(Q,{x:mt,width:Ft})});const M=T.getControls().getTimeline(),I=x.areaToBar/1e3,q=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",F=b.append("g").attr("class",q);P.forEach(Q=>{const ct=k.get(Q);ct&&r.forEach((mt,At)=>{const jt=ds(t,r,k,o,l,At,Q,!1);if(!jt)return;const Ft=v?`histogram-path histogram-path-${v} category-${Be(mt.dataKey)}`:`histogram-path category-${Be(mt.dataKey)}`;F.append("path").attr("class",Ft).attr("d",jt).attr("fill",mt.color).attr("stroke",mt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",mt.dataKey).attr("data-timestamp",Q).attr("data-x-position",ct.x)})});const N=v?`.histogram-path-${v}`:".histogram-path",R=F.selectAll(N);M.to(g.nodes(),{opacity:0,duration:I,ease:"power2.inOut"},"areaToBar"),M.to(R.nodes(),{opacity:1,duration:I,ease:"power2.inOut"},"areaToBar");const L=x.barsShrink/1e3,W=I;R.each(function(){const Q=parseFloat(this.getAttribute("data-timestamp")||"0");if(Q===E)return;const ct=r.find(jt=>this.classList.contains(`category-${Be(jt.dataKey)}`));if(!ct)return;const mt=r.indexOf(ct),At=ds(t,r,k,o,l,mt,Q,!0);At&&M.to(this,{attr:{d:At},duration:L,ease:"power2.in"},W)});const Y=x.axesHide/1e3,z=W+L;if(f){const Q=e.select(".axis-x"),ct=e.select(".axis-y");Q.empty()||M.to(Q.node(),{opacity:0,duration:Y,ease:"power2.inOut"},z),ct.empty()||M.to(ct.node(),{opacity:0,duration:Y,ease:"power2.inOut"},z)}const V=b.select(".grid-vertical"),J=b.select(".grid-horizontal");V.empty()||M.to(V.node(),{opacity:0,duration:Y,ease:"power2.inOut"},z),J.empty()||M.to(J.node(),{opacity:0,duration:Y,ease:"power2.inOut"},z);const K=[];t.forEach((Q,ct)=>{const mt=Q.find(jt=>jt.data.timestamp===E);if(!mt)return;const At=r[ct];At&&K.push({category:At.label,dataKey:At.dataKey,color:At.color,y0:mt[0],y1:mt[1]})}),K.sort((Q,ct)=>ct.y0-Q.y0);const B=K.reduce((Q,ct)=>Q+(ct.y1-ct.y0),0),G=n.radius-n.innerRadius,Z=s/2,D=n.radius+10,ot=l-n.radius*.3,U=Math.max(D,ot),it=G*.6,st=l*.8,ht=U,Tt=x.barSlide/1e3,at=z+Y,dt=666,xt=R.nodes().filter(Q=>parseFloat(Q.getAttribute("data-timestamp")||"0")!==E);M.to(xt,{opacity:0,duration:Tt*.2,ease:"power2.out"},at);const $t=R.nodes().filter(Q=>parseFloat(Q.getAttribute("data-timestamp")||"0")===E);$t.forEach(Q=>{const ct=Q.getAttribute("data-category");if(!ct)return;const mt=K.find(un=>un.dataKey===ct);if(!mt)return;const Ft=(mt.y1-mt.y0)/B*st;let Zt=0;for(const un of r){const Pn=K.find(Cl=>Cl.dataKey===un.dataKey);if(!Pn)continue;if(Pn.dataKey===mt.dataKey)break;const No=(Pn.y1-Pn.y0)/B;Zt+=No*st}const Re=ht-Zt,pr=ht-Zt-Ft,He=dt-it/2,Tn=`M ${He} ${Re} L ${He} ${pr} L ${He+it} ${pr} L ${He+it} ${Re} Z`;M.to(Q,{attr:{d:Tn},duration:Tt,ease:"power2.inOut"},at)});const Kt=x.barToRings/1e3,St=at+Tt,Ct=x.ringsExpand/1e3,Se=St+Kt,Pr=x.ringsHold/1e3,sn=Se+Ct,me=x.ringsToSeats/1e3,Ae=sn+Pr,Wr=Math.max(...n.seats.map(Q=>Q.ring)),Ve=n.seats.filter(Q=>Q.ring===Wr),Er=b.append("g").attr("class",`slinky-${v||"h2p-default"}`),cr=()=>{Er.remove()};Ve.forEach((Q,ct)=>{const mt=r.find(At=>At.label===Q.category);mt&&Er.append("line").attr("class","slinky-ring").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",0).attr("stroke",mt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").attr("data-category",Q.category).attr("data-category-index",Q.categoryIndex).attr("data-ring-index",ct).attr("data-seat-x",Z+Q.x).attr("data-seat-y",U+Q.y).attr("data-seat-angle",Math.atan2(Q.y,Q.x)).style("opacity",0)});const Hr=Er.selectAll(".slinky-ring").nodes(),fr=dt,Vn=st/Hr.length,Cr=[...Hr].sort((Q,ct)=>{const mt=parseFloat(Q.getAttribute("data-seat-angle")||"0");return parseFloat(ct.getAttribute("data-seat-angle")||"0")-mt}),We=ht;Cr.forEach((Q,ct)=>{const mt=We-ct*Vn,jt=it/2,Ft=fr-jt,Zt=fr+jt;Q.setAttribute("x1",Ft.toString()),Q.setAttribute("y1",mt.toString()),Q.setAttribute("x2",Zt.toString()),Q.setAttribute("y2",mt.toString()),Q.style.opacity="0"}),M.to($t,{opacity:0,duration:Kt*.7,ease:"power2.out"},St+Kt*.3),M.to(Cr,{opacity:1,duration:Kt,ease:"power2.in",stagger:.005},St);const Gr=G*.8;Cr.forEach((Q,ct)=>{const mt=parseFloat(Q.getAttribute("data-seat-x")||"0"),At=parseFloat(Q.getAttribute("data-seat-y")||"0"),jt=parseFloat(Q.getAttribute("data-seat-angle")||"0"),Ft=(Cr.length-1-ct)/Cr.length*(Ct*.4),Zt=parseFloat(Q.getAttribute("x1")||"0"),Re=parseFloat(Q.getAttribute("y1")||"0"),pr=parseFloat(Q.getAttribute("x2")||"0"),He=parseFloat(Q.getAttribute("y2")||"0"),Tn=(Zt+pr)/2,un=(Re+He)/2,Pn=Math.atan2(He-Re,pr-Zt),Ai=Math.sqrt(Math.pow(pr-Zt,2)+Math.pow(He-Re,2)),No=mt-Gr/2*Math.cos(jt),Cl=At-Gr/2*Math.sin(jt);M.to({progress:0},{progress:1,duration:Ct*.7,ease:"power2.out",onUpdate:function(){const ya=this.progress(),ff=Tn+(No-Tn)*ya,Ml=un+(Cl-un)*ya,ga=Pn+(jt-Pn)*ya,Oi=(Ai+(Gr-Ai)*ya)/2,kl=ff-Oi*Math.cos(ga),hf=Ml-Oi*Math.sin(ga),$l=ff+Oi*Math.cos(ga),et=Ml+Oi*Math.sin(ga);Q.setAttribute("x1",kl.toString()),Q.setAttribute("y1",hf.toString()),Q.setAttribute("x2",$l.toString()),Q.setAttribute("y2",et.toString())}},Se+Ft),M.to(Q,{opacity:.9,duration:Ct*.3,ease:"power2.in"},Se+Ft)}),M.call(()=>{m&&m(M.progress(),"ringsHold")},[],sn);const ln=v?`parliament parliament-${v}`:"parliament",Oe=b.append("g").attr("class",ln);n.seats.forEach((Q,ct)=>{const mt=r.find(pr=>pr.label===Q.category);if(!mt)return;const At=Z+Q.x,jt=U+Q.y;let Ft,Zt,Re;Q.ring===Wr?(Ft=At,Zt=jt,Re=2):(Ft=At,Zt=jt,Re=Q.radius),Oe.append("circle").attr("cx",Ft).attr("cy",Zt).attr("r",Re).attr("fill",mt.color).attr("stroke",mt.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>v?`seat seat-${v} seat-${Be(Q.category)}`:`seat seat-${Be(Q.category)}`).attr("data-layout-index",ct).attr("data-ring",Q.ring).attr("data-final-x",At).attr("data-final-y",jt).attr("data-final-r",Q.radius)});const Mr=v?`.seat-${v}`:".seat",hr=Oe.selectAll(Mr);M.to(Hr,{opacity:0,duration:me*.2,ease:"power3.out"},Ae),M.to(hr.nodes(),{opacity:.8,duration:me*.3,ease:"power2.in"},Ae+me*.25);const Io=hr.nodes(),On=[],Ze=[];Io.forEach(Q=>{parseInt(Q.getAttribute("data-ring")||"0")===Wr?On.push(Q):Ze.push(Q)});const Si=me*.2,Kr=me*.7;On.forEach(Q=>{const ct=parseFloat(Q.getAttribute("data-final-r")||"4");M.to(Q,{attr:{r:ct},opacity:1,duration:Kr*.6,ease:"power2.out"},Ae+Si)}),Ze.length>0&&M.to(Ze,{opacity:1,duration:Kr*.5,ease:"power2.in"},Ae+Si+me*.15);const Yr=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const Q=v?`.areas-${v}`:".areas",ct=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(Q).remove(),e.selectAll(ct).remove(),cr(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),b.selectAll(".grid-vertical").remove(),b.selectAll(".grid-horizontal").remove();const mt=v?`.parliament-label-${v}`:".parliament-label";if(e.select(mt).empty()){const jt=s/2,Ft=n.radius+10,Zt=l-n.radius*.3,Re=Math.max(Ft,Zt),pr=v?`parliament-label parliament-label-${v}`:"parliament-label",He=e.append("g").attr("class",pr).attr("transform",`translate(${jt},${Re-n.radius*.15})`).style("opacity","0").style("pointer-events","none");He.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),He.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const Tn=He.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");Tn.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),Tn.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}Yr()}),T.play()}function uL(e,t,r,n,i,a){const o=n/2,s=r.radius+10,l=i-r.radius*.3,u=Math.max(s,l);cE(e,r,t,{centerX:o,centerY:u,addClasses:!0,instanceId:a,parliamentRadius:r.radius})}function i_(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=te(e).select(a);if(!o.empty())if(t){o.style("opacity","1"),o.select(".label-category").text(t.label).style("fill","#666");const s=t.value>1?"repos":"repo";o.select(".label-value").text(`${t.value} ${s}`).style("fill",t.color);const l=o.select(".scale-indicator");r?l.style("opacity","1").select("text").text(`= ~${n} repos`):l.style("opacity","0")}else o.style("opacity","0")}function zf(e,t,r,n,i,a,o,s,l){const u=e.querySelectorAll(".seat");if(!u||u.length===0)return;const c=r[r.length-1];if(!c)return;const f=[];u.forEach(p=>{const y=p;y.style.cursor="pointer",y.style.transition="fill-opacity 150ms ease, stroke-opacity 150ms ease"}),u.forEach(p=>{const d=(p.getAttribute("class")||"").split(/\s+/).filter(g=>g.startsWith("seat-")),v=d[d.length-1];if(!v)return;const w=v.substring(5),b=t.find(g=>Be(g.label)===w);if(!b)return;const _=()=>{i(b.label);const g=Math.round(c.values[b.dataKey]||0),x=uE(b.color),S={label:b.label,value:g,color:x};a&&a(S),i_(e,S,o??!1,s??1,l),ms(e,b.label)};p.addEventListener("mouseenter",_),f.push({element:p,handler:_})});const h=()=>{i(null),a&&a(null),i_(e,null,!1,1,l),ms(e,null)};return e.addEventListener("mouseleave",h),n&&ms(e,n),()=>{f.forEach(({element:p,handler:y})=>{p.removeEventListener("mouseenter",y)}),e.removeEventListener("mouseleave",h),u.forEach(p=>{const y=p;y.style.cursor="",y.style.transition=""})}}function ms(e,t){const r=e.querySelectorAll(".seat"),n=t?Be(t):null;r.forEach(i=>{const a=i,l=(i.getAttribute("class")||"").split(/\s+/).filter(f=>f.startsWith("seat-")),u=l[l.length-1];if(!u)return;const c=u.substring(5);n?c===n?(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1")):(a.setAttribute("fill-opacity","0.3"),a.setAttribute("stroke-opacity","0.2")):(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1"))})}const hE=({data:e,categories:t,mode:r,width:n=900,height:i=400,margin:a={top:10,right:30,bottom:40,left:60},timeRange:o,showGrid:s=!0,showAxes:l=!0,formatDate:u,formatValue:c,markers:f=[],arcAngle:h=200,parliamentRadius:p=200,seatSize:y=4.5,animationDuration:m=900,onMorphComplete:d,onAnimationStateChange:v,onTimelineReady:w,onAnimationProgress:b,onHoveredDataChange:_,hoveredCategory:g,maxSeats:x=500,showTooltip:S=!0,showTable:A=!1,showScaledIndicator:T=!0,parliamentTimestamp:C,enableBrush:P=!1,onTimeRangeChange:E,timelineEvents:k=[],showTimeline:$=!1,timelineHeight:j=40,timelineOffset:M=35})=>{const I=O.useRef(null),q=O.useCallback(B=>{_&&_(B)},[_]),F=e[e.length-1],N=F?t.reduce((B,G)=>B+(F.values[G.dataKey]||0),0):0,R=N>x,L=R?Math.round(N/x):1,W=$&&r==="stacked-area"?i+j+M:i,{isMorphing:Y,currentMode:z,visibleMarkers:V,hoveredMarker:J,hoveredTimelineEvent:K}=nL({containerRef:I,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:l,formatDate:u,formatValue:c,markers:f,arcAngle:h,parliamentRadius:p,seatSize:y,animationDuration:m,onMorphComplete:d,onAnimationStateChange:v,onTimelineReady:w,onAnimationProgress:b,onHoveredDataChange:q,hoveredCategory:g,maxSeats:x,parliamentTimestamp:C,enableBrush:P,onTimeRangeChange:E,showScaleIndicator:T&&R,reposPerSeat:L,timelineEvents:k,showTimeline:$,timelineHeight:j,timelineOffset:M});return H.jsxs(tt.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[H.jsx("svg",{ref:I,viewBox:`0 0 ${n} ${W}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),z==="area"&&V.map(B=>{const G=(B.x+a.left)/n*100,Z=a.top/i*100,D=new Date(B.timestamp),ot=u?u(B.timestamp):D.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),U=H.jsxs(tt.Box,{children:[H.jsx(tt.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:B.label?.5:0},children:ot}),B.label&&H.jsx(tt.Box,{sx:{color:"white",fontWeight:500},children:B.label})]});return H.jsx(tt.Tooltip,{title:U,open:(J==null?void 0:J.timestamp)===B.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:H.jsx(tt.Box,{sx:{position:"absolute",left:`${G}%`,top:`${Z}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},B.timestamp)}),K&&z==="area"&&H.jsx(tt.Tooltip,{title:H.jsxs(tt.Box,{children:[H.jsx(tt.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:u?u(K.timestamp):new Date(K.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),H.jsx(tt.Box,{sx:{color:"white",fontWeight:500},children:K.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:H.jsx(tt.Box,{sx:{position:"absolute",left:`${(K.x+a.left)/n*100}%`,top:`${(i+M+j/2)/W*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),Y&&H.jsxs(tt.Box,{sx:{position:"absolute",top:8,right:8,padding:"4px 8px",backgroundColor:"rgba(0,0,0,0.7)",color:"white",borderRadius:"4px",fontSize:"12px",pointerEvents:"none",display:"none"},children:["Morphing: ",z," → ",r]})]})},pE=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:20,maxSeatSize:20},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:16,maxSeatSize:16},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:12,maxSeatSize:12},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:8.5,maxSeatSize:8.5},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:7,maxSeatSize:7},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:6.5,maxSeatSize:6.5}],Vv=({repositoryCount:e})=>{const t=pE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},Zv=({repositoryCount:e})=>{const t=pE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 6.5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10};class Sl{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Sl.prototype.normal={};Sl.prototype.property={};Sl.prototype.space=void 0;function dE(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Sl(r,n,t)}function qs(e){return e.toLowerCase()}class ur{constructor(t,r){this.attribute=r,this.property=t}}ur.prototype.attribute="";ur.prototype.booleanish=!1;ur.prototype.boolean=!1;ur.prototype.commaOrSpaceSeparated=!1;ur.prototype.commaSeparated=!1;ur.prototype.defined=!1;ur.prototype.mustUseProperty=!1;ur.prototype.number=!1;ur.prototype.overloadedBoolean=!1;ur.prototype.property="";ur.prototype.spaceSeparated=!1;ur.prototype.space=void 0;let cL=0;const _t=ha(),ce=ha(),Iy=ha(),rt=ha(),Yt=ha(),La=ha(),mr=ha();function ha(){return 2**++cL}const Ny=Object.freeze(Object.defineProperty({__proto__:null,boolean:_t,booleanish:ce,commaOrSpaceSeparated:mr,commaSeparated:La,number:rt,overloadedBoolean:Iy,spaceSeparated:Yt},Symbol.toStringTag,{value:"Module"})),Uf=Object.keys(Ny);class Jv extends ur{constructor(t,r,n,i){let a=-1;if(super(t,r),a_(this,"space",i),typeof n=="number")for(;++a<Uf.length;){const o=Uf[a];a_(this,Uf[a],(n&Ny[o])===Ny[o])}}}Jv.prototype.defined=!0;function a_(e,t,r){r&&(e[t]=r)}function To(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new Jv(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[qs(n)]=n,r[qs(a.attribute)]=n}return new Sl(t,r,e.space)}const mE=To({properties:{ariaActiveDescendant:null,ariaAtomic:ce,ariaAutoComplete:null,ariaBusy:ce,ariaChecked:ce,ariaColCount:rt,ariaColIndex:rt,ariaColSpan:rt,ariaControls:Yt,ariaCurrent:null,ariaDescribedBy:Yt,ariaDetails:null,ariaDisabled:ce,ariaDropEffect:Yt,ariaErrorMessage:null,ariaExpanded:ce,ariaFlowTo:Yt,ariaGrabbed:ce,ariaHasPopup:null,ariaHidden:ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yt,ariaLevel:rt,ariaLive:null,ariaModal:ce,ariaMultiLine:ce,ariaMultiSelectable:ce,ariaOrientation:null,ariaOwns:Yt,ariaPlaceholder:null,ariaPosInSet:rt,ariaPressed:ce,ariaReadOnly:ce,ariaRelevant:null,ariaRequired:ce,ariaRoleDescription:Yt,ariaRowCount:rt,ariaRowIndex:rt,ariaRowSpan:rt,ariaSelected:ce,ariaSetSize:rt,ariaSort:null,ariaValueMax:rt,ariaValueMin:rt,ariaValueNow:rt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yE(e,t){return t in e?e[t]:t}function gE(e,t){return yE(e,t.toLowerCase())}const fL=To({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:La,acceptCharset:Yt,accessKey:Yt,action:null,allow:null,allowFullScreen:_t,allowPaymentRequest:_t,allowUserMedia:_t,alt:null,as:null,async:_t,autoCapitalize:null,autoComplete:Yt,autoFocus:_t,autoPlay:_t,blocking:Yt,capture:null,charSet:null,checked:_t,cite:null,className:Yt,cols:rt,colSpan:null,content:null,contentEditable:ce,controls:_t,controlsList:Yt,coords:rt|La,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_t,defer:_t,dir:null,dirName:null,disabled:_t,download:Iy,draggable:ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_t,formTarget:null,headers:Yt,height:rt,hidden:Iy,high:rt,href:null,hrefLang:null,htmlFor:Yt,httpEquiv:Yt,id:null,imageSizes:null,imageSrcSet:null,inert:_t,inputMode:null,integrity:null,is:null,isMap:_t,itemId:null,itemProp:Yt,itemRef:Yt,itemScope:_t,itemType:Yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_t,low:rt,manifest:null,max:null,maxLength:rt,media:null,method:null,min:null,minLength:rt,multiple:_t,muted:_t,name:null,nonce:null,noModule:_t,noValidate:_t,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_t,optimum:rt,pattern:null,ping:Yt,placeholder:null,playsInline:_t,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_t,referrerPolicy:null,rel:Yt,required:_t,reversed:_t,rows:rt,rowSpan:rt,sandbox:Yt,scope:null,scoped:_t,seamless:_t,selected:_t,shadowRootClonable:_t,shadowRootDelegatesFocus:_t,shadowRootMode:null,shape:null,size:rt,sizes:null,slot:null,span:rt,spellCheck:ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:rt,step:null,style:null,tabIndex:rt,target:null,title:null,translate:null,type:null,typeMustMatch:_t,useMap:null,value:ce,width:rt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Yt,axis:null,background:null,bgColor:null,border:rt,borderColor:null,bottomMargin:rt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_t,declare:_t,event:null,face:null,frame:null,frameBorder:null,hSpace:rt,leftMargin:rt,link:null,longDesc:null,lowSrc:null,marginHeight:rt,marginWidth:rt,noResize:_t,noHref:_t,noShade:_t,noWrap:_t,object:null,profile:null,prompt:null,rev:null,rightMargin:rt,rules:null,scheme:null,scrolling:ce,standby:null,summary:null,text:null,topMargin:rt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:rt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_t,disableRemotePlayback:_t,prefix:null,property:null,results:rt,security:null,unselectable:null},space:"html",transform:gE}),hL=To({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:mr,accentHeight:rt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:rt,amplitude:rt,arabicForm:null,ascent:rt,attributeName:null,attributeType:null,azimuth:rt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:rt,by:null,calcMode:null,capHeight:rt,className:Yt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:rt,diffuseConstant:rt,direction:null,display:null,dur:null,divisor:rt,dominantBaseline:null,download:_t,dx:null,dy:null,edgeMode:null,editable:null,elevation:rt,enableBackground:null,end:null,event:null,exponent:rt,externalResourcesRequired:null,fill:null,fillOpacity:rt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:La,g2:La,glyphName:La,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:rt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:rt,horizOriginX:rt,horizOriginY:rt,id:null,ideographic:rt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:rt,k:rt,k1:rt,k2:rt,k3:rt,k4:rt,kernelMatrix:mr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:rt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:rt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:rt,overlineThickness:rt,paintOrder:null,panose1:null,path:null,pathLength:rt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:rt,pointsAtY:rt,pointsAtZ:rt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mr,rev:mr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mr,requiredFeatures:mr,requiredFonts:mr,requiredFormats:mr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:rt,specularExponent:rt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:rt,strikethroughThickness:rt,string:null,stroke:null,strokeDashArray:mr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:rt,strokeOpacity:rt,strokeWidth:null,style:null,surfaceScale:rt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mr,tabIndex:rt,tableValues:null,target:null,targetX:rt,targetY:rt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:rt,underlineThickness:rt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:rt,values:null,vAlphabetic:rt,vMathematical:rt,vectorEffect:null,vHanging:rt,vIdeographic:rt,version:null,vertAdvY:rt,vertOriginX:rt,vertOriginY:rt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:rt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yE}),vE=To({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),bE=To({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gE}),_E=To({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),pL=/[A-Z]/g,o_=/-[a-z]/g,dL=/^data[-\w.:]+$/i;function xE(e,t){const r=qs(t);let n=t,i=ur;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&dL.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(o_,yL);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!o_.test(a)){let o=a.replace(pL,mL);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Jv}return new i(n,t)}function mL(e){return"-"+e.toLowerCase()}function yL(e){return e.charAt(1).toUpperCase()}const wE=dE([mE,fL,vE,bE,_E],"html"),Qv=dE([mE,hL,vE,bE,_E],"svg");function s_(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function gL(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const l_=/[#.]/g;function vL(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){l_.lastIndex=i;const s=l_.exec(r),l=r.slice(i,s?s.index:r.length);l&&(a?a==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:o=l,i+=l.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function u_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function bL(e){return e.join(" ").trim()}function SE(e,t,r){const n=r?SL(r):void 0;function i(a,o,...s){let l;if(a==null){l={type:"root",children:[]};const u=o;s.unshift(u)}else{l=vL(a,t);const u=l.tagName.toLowerCase(),c=n?n.get(u):void 0;if(l.tagName=c||u,_L(o))s.unshift(o);else for(const[f,h]of Object.entries(o))xL(e,l.properties,f,h)}for(const u of s)Ly(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function _L(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function xL(e,t,r,n){const i=xE(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=u_(n):i.commaSeparated?a=s_(n):i.commaOrSpaceSeparated?a=u_(s_(n).join(" ")):a=c_(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?wL(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(c_(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Ly(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Ly(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ly(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function c_(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||qs(r)===qs(t)))return!0}return r}function wL(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function SL(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const AL=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];SE(wE,"div");const Al=SE(Qv,"g",AL),AE=(e=Al)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:or.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:or.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:or.neoGrey[400],"stroke-width":.5})]),OE=(e=Al)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),TE=(e=Al)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),zt={greyHatch:{background:or.neoGrey[200],lines:or.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},OL=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>H.jsx(tt.Box,{className:"category-table",sx:{width:"100%",display:"flex",justifyContent:"center",opacity:i?1:0,transition:"opacity 0.3s ease-in-out","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>r(null),children:H.jsxs(tt.Table,{"aria-label":"Categories summary",className:"category-summary-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[H.jsx("thead",{children:H.jsxs(tt.TableRow,{children:[H.jsx(tt.TableCell,{}),H.jsx(tt.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?H.jsxs(H.Fragment,{children:[H.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),H.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):H.jsxs(H.Fragment,{children:[H.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),H.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),H.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),H.jsx("tbody",{children:e.map(a=>{const o=a.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:a.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.lines:a.color==="url(#noLstHatchPattern)"?zt.noLstHatch.lines:a.color;return H.jsxs(tt.TableRow,{onMouseEnter:()=>r(a.id),sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:t===a.id?`${o}15`:"transparent","&:hover":{backgroundColor:`${o}15`}},children:[H.jsx(tt.TableCell,{align:"center",sx:{width:20},children:H.jsx(tt.Box,{sx:{width:12,height:12,backgroundColor:a.color==="url(#greyHatchPattern)"?zt.greyHatch.background:a.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.background:a.color==="url(#noLstHatchPattern)"?zt.noLstHatch.background:a.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:t===a.id?"scale(1.2)":"scale(1)",...a.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
15
+ */var Xb,pi,Ua,Xv,Ki,Yb,Yv,_N=function(){return typeof window<"u"},Zn={},Ui=180/Math.PI,Wa=Math.PI/180,Ca=Math.atan2,Vb=1e8,Vv=/([A-Z])/g,wN=/(left|right|width|margin|padding|x)/i,SN=/[\s,\(]\S/,Sn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},jy=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},AN=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},ON=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},TN=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},VP=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},ZP=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},PN=function(t,r,n){return t.style[r]=n},EN=function(t,r,n){return t.style.setProperty(r,n)},MN=function(t,r,n){return t._gsap[r]=n},CN=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},kN=function(t,r,n,i,a){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},$N=function(t,r,n,i,a){var o=t._gsap;o[r]=n,o.renderTransform(a,o)},ce="transform",mr=ce+"Origin",jN=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in Zn&&a){if(this.tfm=this.tfm||{},t!=="transform")t=Sn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=Ln(i,s)}):this.tfm[t]=o.x?o[t]:Ln(i,t),t===mr&&(this.tfm.zOrigin=o.zOrigin);else return Sn.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(ce)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(mr,r,"")),t=ce}(a||r)&&this.props.push(t,r,a[t])},JP=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},RN=function(){var t=this.props,r=this.target,n=r.style,i=r._gsap,a,o;for(a=0;a<t.length;a+=3)t[a+1]?t[a+1]===2?r[t[a]](t[a+2]):r[t[a]]=t[a+2]:t[a+2]?n[t[a]]=t[a+2]:n.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(Vv,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=Yv(),(!a||!a.isStart)&&!n[ce]&&(JP(n),i.zOrigin&&n[mr]&&(n[mr]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},QP=function(t,r){var n={target:t,props:[],revert:RN,save:jN};return t._gsap||vr.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},tE,Ry=function(t,r){var n=pi.createElementNS?pi.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):pi.createElement(t);return n&&n.style?n:pi.createElement(t)},Gr=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(Vv,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,lo(r)||r,1)||""},Zb="O,Moz,ms,Ms,Webkit".split(","),lo=function(t,r,n){var i=r||Ki,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Zb[o]+t in a););return o<0?null:(o===3?"ms":o>=0?Zb[o]:"")+t},Dy=function(){_N()&&window.document&&(Xb=window,pi=Xb.document,Ua=pi.documentElement,Ki=Ry("div")||{style:{}},Ry("div"),ce=lo(ce),mr=ce+"Origin",Ki.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",tE=!!lo("perspective"),Yv=vr.core.reverting,Xv=1)},Jb=function(t){var r=t.ownerSVGElement,n=Ry("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),Ua.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),Ua.removeChild(n),a},Qb=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},eE=function(t){var r,n;try{r=t.getBBox()}catch{r=Jb(t),n=1}return r&&(r.width||r.height)||n||(r=Jb(t)),r&&!r.width&&!r.x&&!r.y?{x:+Qb(t,["x","cx","x1"])||0,y:+Qb(t,["y","cy","y1"])||0,width:0,height:0}:r},rE=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&eE(t))},ca=function(t,r){if(r){var n=t.style,i;r in Zn&&r!==mr&&(r=ce),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(Vv,"-$1").toLowerCase())):n.removeAttribute(r)}},di=function(t,r,n,i,a,o){var s=new dr(t._pt,r,n,0,1,o?ZP:VP);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},tx={deg:1,rad:1,turn:1},DN={grid:1,flex:1},Si=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=Ki.style,l=wN.test(r),u=t.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,h=i==="px",p=i==="%",y,m,d,b;if(i===o||!a||tx[i]||tx[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),b=t.getCTM&&rE(t),(p||o==="%")&&(Zn[r]||~r.indexOf("adius")))return y=b?t.getBBox()[l?"width":"height"]:t[c],me(p?a/y*f:a/100*y);if(s[l?"width":"height"]=f+(h?o:i),m=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,b&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===pi||!m.appendChild)&&(m=pi.body),d=m._gsap,d&&p&&d.width&&l&&d.time===Er.time&&!d.uncache)return me(a/d.width*f);if(p&&(r==="height"||r==="width")){var v=t.style[r];t.style[r]=f+i,y=t[c],v?t.style[r]=v:ca(t,r)}else(p||o==="%")&&!DN[Gr(m,"display")]&&(s.position=Gr(t,"position")),m===t&&(s.position="static"),m.appendChild(Ki),y=Ki[c],m.removeChild(Ki),s.position="absolute";return l&&p&&(d=Qi(m),d.time=Er.time,d.width=m[c]),me(h?y*a/f:y&&a?f/y*a:0)},Ln=function(t,r,n,i){var a;return Xv||Dy(),r in Sn&&r!=="transform"&&(r=Sn[r],~r.indexOf(",")&&(r=r.split(",")[0])),Zn[r]&&r!=="transform"?(a=Gs(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:Bu(Gr(t,mr))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=Lu[r]&&Lu[r](t,r,n)||Gr(t,r)||vP(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?Si(t,r,a,n)+n:a},IN=function(t,r,n,i){if(!n||n==="none"){var a=lo(r,t,1),o=a&&Gr(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=Gr(t,"borderTopColor"))}var s=new dr(this._pt,t.style,r,0,1,KP),l=0,u=0,c,f,h,p,y,m,d,b,v,x,_,g;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=Gr(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=t.style[r],t.style[r]=i,i=Gr(t,r)||i,m?t.style[r]=m:ca(t,r)),c=[n,i],NP(c),n=c[0],i=c[1],h=n.match(Ia)||[],g=i.match(Ia)||[],g.length){for(;f=Ia.exec(i);)d=f[0],v=i.substring(l,f.index),y?y=(y+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(y=1),d!==(m=h[u++]||"")&&(p=parseFloat(m)||0,_=m.substr((p+"").length),d.charAt(1)==="="&&(d=za(p,d)+_),b=parseFloat(d),x=d.substr((b+"").length),l=Ia.lastIndex-x.length,x||(x=x||kr.units[r]||_,l===i.length&&(i+=x,s.e+=x)),_!==x&&(p=Si(t,r,m,x)||0),s._pt={_next:s._pt,p:v||u===1?v:",",s:p,c:b-p,m:y&&y<4||r==="zIndex"?Math.round:0});s.c=l<i.length?i.substring(l,i.length):""}else s.r=r==="display"&&i==="none"?ZP:VP;return hP.test(i)&&(s.e=0),this._pt=s,s},ex={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},NN=function(t){var r=t.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),r[0]=ex[n]||n,r[1]=ex[i]||i,r.join(" ")},LN=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,i=n.style,a=r.u,o=n._gsap,s,l,u;if(a==="all"||a===!0)i.cssText="",l=1;else for(a=a.split(","),u=a.length;--u>-1;)s=a[u],Zn[s]&&(l=1,s=s==="transformOrigin"?mr:ce),ca(n,s);l&&(ca(n,ce),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Gs(n,1),o.uncache=1,JP(i)))}},Lu={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new dr(t._pt,r,n,0,0,LN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},Hs=[1,0,0,1,0,0],nE={},iE=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},rx=function(t){var r=Gr(t,ce);return iE(r)?Hs:r.substr(7).match(fP).map(me)},Zv=function(t,r){var n=t._gsap||Qi(t),i=t.style,a=rx(t),o,s,l,u;return n.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,a=[l.a,l.b,l.c,l.d,l.e,l.f],a.join(",")==="1,0,0,1,0,0"?Hs:a):(a===Hs&&!t.offsetParent&&t!==Ua&&!n.svg&&(l=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,s=t.nextElementSibling,Ua.appendChild(t)),a=rx(t),l?i.display=l:ca(t,"display"),u&&(s?o.insertBefore(t,s):o?o.appendChild(t):Ua.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},Iy=function(t,r,n,i,a,o){var s=t._gsap,l=a||Zv(t,!0),u=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=l[0],y=l[1],m=l[2],d=l[3],b=l[4],v=l[5],x=r.split(" "),_=parseFloat(x[0])||0,g=parseFloat(x[1])||0,w,S,A,T;n?l!==Hs&&(S=p*d-y*m)&&(A=_*(d/S)+g*(-m/S)+(m*v-d*b)/S,T=_*(-y/S)+g*(p/S)-(p*v-y*b)/S,_=A,g=T):(w=eE(t),_=w.x+(~x[0].indexOf("%")?_/100*w.width:_),g=w.y+(~(x[1]||x[0]).indexOf("%")?g/100*w.height:g)),i||i!==!1&&s.smooth?(b=_-u,v=g-c,s.xOffset=f+(b*p+v*m)-b,s.yOffset=h+(b*y+v*d)-v):s.xOffset=s.yOffset=0,s.xOrigin=_,s.yOrigin=g,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[mr]="0px 0px",o&&(di(o,s,"xOrigin",u,_),di(o,s,"yOrigin",c,g),di(o,s,"xOffset",f,s.xOffset),di(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",_+" "+g)},Gs=function(t,r){var n=t._gsap||new FP(t);if("x"in n&&!r&&!n.uncache)return n;var i=t.style,a=n.scaleX<0,o="px",s="deg",l=getComputedStyle(t),u=Gr(t,mr)||"0",c,f,h,p,y,m,d,b,v,x,_,g,w,S,A,T,M,P,E,C,$,j,k,R,L,U,I,B,q,N,G,F;return c=f=h=m=d=b=v=x=_=0,p=y=1,n.svg=!!(t.getCTM&&rE(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[ce]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[ce]!=="none"?l[ce]:"")),i.scale=i.rotate=i.translate="none"),S=Zv(t,n.svg),n.svg&&(n.uncache?(L=t.getBBox(),u=n.xOrigin-L.x+"px "+(n.yOrigin-L.y)+"px",R=""):R=!r&&t.getAttribute("data-svg-origin"),Iy(t,R||u,!!R||n.originIsAbsolute,n.smooth!==!1,S)),g=n.xOrigin||0,w=n.yOrigin||0,S!==Hs&&(P=S[0],E=S[1],C=S[2],$=S[3],c=j=S[4],f=k=S[5],S.length===6?(p=Math.sqrt(P*P+E*E),y=Math.sqrt($*$+C*C),m=P||E?Ca(E,P)*Ui:0,v=C||$?Ca(C,$)*Ui+m:0,v&&(y*=Math.abs(Math.cos(v*Wa))),n.svg&&(c-=g-(g*P+w*C),f-=w-(g*E+w*$))):(F=S[6],N=S[7],I=S[8],B=S[9],q=S[10],G=S[11],c=S[12],f=S[13],h=S[14],A=Ca(F,q),d=A*Ui,A&&(T=Math.cos(-A),M=Math.sin(-A),R=j*T+I*M,L=k*T+B*M,U=F*T+q*M,I=j*-M+I*T,B=k*-M+B*T,q=F*-M+q*T,G=N*-M+G*T,j=R,k=L,F=U),A=Ca(-C,q),b=A*Ui,A&&(T=Math.cos(-A),M=Math.sin(-A),R=P*T-I*M,L=E*T-B*M,U=C*T-q*M,G=$*M+G*T,P=R,E=L,C=U),A=Ca(E,P),m=A*Ui,A&&(T=Math.cos(A),M=Math.sin(A),R=P*T+E*M,L=j*T+k*M,E=E*T-P*M,k=k*T-j*M,P=R,j=L),d&&Math.abs(d)+Math.abs(m)>359.9&&(d=m=0,b=180-b),p=me(Math.sqrt(P*P+E*E+C*C)),y=me(Math.sqrt(k*k+F*F)),A=Ca(j,k),v=Math.abs(A)>2e-4?A*Ui:0,_=G?1/(G<0?-G:G):0),n.svg&&(R=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!iE(Gr(t,ce)),R&&t.setAttribute("transform",R))),Math.abs(v)>90&&Math.abs(v)<270&&(a?(p*=-1,v+=m<=0?180:-180,m+=m<=0?180:-180):(y*=-1,v+=v<=0?180:-180)),r=r||n.uncache,n.x=c-((n.xPercent=c&&(!r&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,n.y=f-((n.yPercent=f&&(!r&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=me(p),n.scaleY=me(y),n.rotation=me(m)+s,n.rotationX=me(d)+s,n.rotationY=me(b)+s,n.skewX=v+s,n.skewY=x+s,n.transformPerspective=_+o,(n.zOrigin=parseFloat(u.split(" ")[2])||!r&&n.zOrigin||0)&&(i[mr]=Bu(u)),n.xOffset=n.yOffset=0,n.force3D=kr.force3D,n.renderTransform=n.svg?qN:tE?aE:BN,n.uncache=0,n},Bu=function(t){return(t=t.split(" "))[0]+" "+t[1]},Uf=function(t,r,n){var i=Je(r);return me(parseFloat(r)+parseFloat(Si(t,"x",n+"px",i)))+i},BN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,aE(t,r)},Bi="0deg",Qo="0px",qi=") ",aE=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.z,u=n.rotation,c=n.rotationY,f=n.rotationX,h=n.skewX,p=n.skewY,y=n.scaleX,m=n.scaleY,d=n.transformPerspective,b=n.force3D,v=n.target,x=n.zOrigin,_="",g=b==="auto"&&t&&t!==1||b===!0;if(x&&(f!==Bi||c!==Bi)){var w=parseFloat(c)*Wa,S=Math.sin(w),A=Math.cos(w),T;w=parseFloat(f)*Wa,T=Math.cos(w),o=Uf(v,o,S*T*-x),s=Uf(v,s,-Math.sin(w)*-x),l=Uf(v,l,A*T*-x+x)}d!==Qo&&(_+="perspective("+d+qi),(i||a)&&(_+="translate("+i+"%, "+a+"%) "),(g||o!==Qo||s!==Qo||l!==Qo)&&(_+=l!==Qo||g?"translate3d("+o+", "+s+", "+l+") ":"translate("+o+", "+s+qi),u!==Bi&&(_+="rotate("+u+qi),c!==Bi&&(_+="rotateY("+c+qi),f!==Bi&&(_+="rotateX("+f+qi),(h!==Bi||p!==Bi)&&(_+="skew("+h+", "+p+qi),(y!==1||m!==1)&&(_+="scale("+y+", "+m+qi),v.style[ce]=_||"translate(0, 0)"},qN=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.rotation,u=n.skewX,c=n.skewY,f=n.scaleX,h=n.scaleY,p=n.target,y=n.xOrigin,m=n.yOrigin,d=n.xOffset,b=n.yOffset,v=n.forceCSS,x=parseFloat(o),_=parseFloat(s),g,w,S,A,T;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=Wa,u*=Wa,g=Math.cos(l)*f,w=Math.sin(l)*f,S=Math.sin(l-u)*-h,A=Math.cos(l-u)*h,u&&(c*=Wa,T=Math.tan(u-c),T=Math.sqrt(1+T*T),S*=T,A*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),g*=T,w*=T)),g=me(g),w=me(w),S=me(S),A=me(A)):(g=f,A=h,w=S=0),(x&&!~(o+"").indexOf("px")||_&&!~(s+"").indexOf("px"))&&(x=Si(p,"x",o,"px"),_=Si(p,"y",s,"px")),(y||m||d||b)&&(x=me(x+y-(y*g+m*S)+d),_=me(_+m-(y*w+m*A)+b)),(i||a)&&(T=p.getBBox(),x=me(x+i/100*T.width),_=me(_+a/100*T.height)),T="matrix("+g+","+w+","+S+","+A+","+x+","+_+")",p.setAttribute("transform",T),v&&(p.style[ce]=T)},FN=function(t,r,n,i,a){var o=360,s=Re(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?Ui:1),u=l-i,c=i+u+"deg",f,h;return s&&(f=a.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*Vb)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*Vb)%o-~~(u/o)*o)),t._pt=h=new dr(t._pt,r,n,i,u,AN),h.e=c,h.u="deg",t._props.push(n),h},nx=function(t,r){for(var n in r)t[n]=r[n];return t},zN=function(t,r,n){var i=nx({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=n.style,s,l,u,c,f,h,p,y;i.svg?(u=n.getAttribute("transform"),n.setAttribute("transform",""),o[ce]=r,s=Gs(n,1),ca(n,ce),n.setAttribute("transform",u)):(u=getComputedStyle(n)[ce],o[ce]=r,s=Gs(n,1),o[ce]=u);for(l in Zn)u=i[l],c=s[l],u!==c&&a.indexOf(l)<0&&(p=Je(u),y=Je(c),f=p!==y?Si(n,l,u,y):parseFloat(u),h=parseFloat(c),t._pt=new dr(t._pt,s,l,f,h-f,jy),t._pt.u=y||0,t._props.push(l));nx(s,i)};pr("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",a="Left",o=(t<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(s){return t<2?e+s:"border"+s+e});Lu[t>1?"border"+e:e]=function(s,l,u,c,f){var h,p;if(arguments.length<4)return h=o.map(function(y){return Ln(s,y,u)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,m){return p[y]=h[m]=h[m]||h[(m-1)/2|0]}),s.init(l,p,f)}});var oE={name:"css",register:Dy,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,n,i,a){var o=this._props,s=t.style,l=n.vars.startAt,u,c,f,h,p,y,m,d,b,v,x,_,g,w,S,A;Xv||Dy(),this.styles=this.styles||QP(t),A=this.styles.props,this.tween=n;for(m in r)if(m!=="autoRound"&&(c=r[m],!(Pr[m]&&zP(m,r,n,i,t,a)))){if(p=typeof c,y=Lu[m],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=zs(c)),y)y(this,t,m,c,n)&&(S=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(m)+"").trim(),c+="",xi.lastIndex=0,xi.test(u)||(d=Je(u),b=Je(c)),b?d!==b&&(u=Si(t,m,u,b)+b):d&&(c+=d),this.add(s,"setProperty",u,c,i,a,0,0,m),o.push(m),A.push(m,0,s[m]);else if(p!=="undefined"){if(l&&m in l?(u=typeof l[m]=="function"?l[m].call(n,i,t,a):l[m],Re(u)&&~u.indexOf("random(")&&(u=zs(u)),Je(u+"")||u==="auto"||(u+=kr.units[m]||Je(Ln(t,m))||""),(u+"").charAt(1)==="="&&(u=Ln(t,m))):u=Ln(t,m),h=parseFloat(u),v=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),v&&(c=c.substr(2)),f=parseFloat(c),m in Sn&&(m==="autoAlpha"&&(h===1&&Ln(t,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),di(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=Sn[m],~m.indexOf(",")&&(m=m.split(",")[0]))),x=m in Zn,x){if(this.styles.save(m),p==="string"&&c.substring(0,6)==="var(--"&&(c=Gr(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),_||(g=t._gsap,g.renderTransform&&!r.parseTransform||Gs(t,r.parseTransform),w=r.smoothOrigin!==!1&&g.smooth,_=this._pt=new dr(this._pt,s,ce,0,1,g.renderTransform,g,0,-1),_.dep=1),m==="scale")this._pt=new dr(this._pt,g,"scaleY",g.scaleY,(v?za(g.scaleY,v+f):f)-g.scaleY||0,jy),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(mr,0,s[mr]),c=NN(c),g.svg?Iy(t,c,0,w,0,this):(b=parseFloat(c.split(" ")[2])||0,b!==g.zOrigin&&di(this,g,"zOrigin",g.zOrigin,b),di(this,s,m,Bu(u),Bu(c)));continue}else if(m==="svgOrigin"){Iy(t,c,1,w,0,this);continue}else if(m in nE){FN(this,g,m,h,v?za(h,v+c):c);continue}else if(m==="smoothOrigin"){di(this,g,"smooth",g.smooth,c);continue}else if(m==="force3D"){g[m]=c;continue}else if(m==="transform"){zN(this,c,t);continue}}else m in s||(m=lo(m)||m);if(x||(f||f===0)&&(h||h===0)&&!SN.test(c)&&m in s)d=(u+"").substr((h+"").length),f||(f=0),b=Je(c)||(m in kr.units?kr.units[m]:d),d!==b&&(h=Si(t,m,u,b)),this._pt=new dr(this._pt,x?g:s,m,h,(v?za(h,v+f):f)-h,!x&&(b==="px"||m==="zIndex")&&r.autoRound!==!1?TN:jy),this._pt.u=b||0,d!==b&&b!=="%"&&(this._pt.b=u,this._pt.r=ON);else if(m in s)IN.call(this,t,m,u,v?v+c:c);else if(m in t)this.add(t,m,u||t[m],v?v+c:c,i,a);else if(m!=="parseTransform"){Lv(m,c);continue}x||(m in s?A.push(m,0,s[m]):typeof t[m]=="function"?A.push(m,2,t[m]()):A.push(m,1,u||t[m])),o.push(m)}}S&&XP(this)},render:function(t,r){if(r.tween._time||!Yv())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:Ln,aliases:Sn,getSetter:function(t,r,n){var i=Sn[r];return i&&i.indexOf(",")<0&&(r=i),r in Zn&&r!==mr&&(t._gsap.x||Ln(t,"x"))?n&&Yb===n?r==="scale"?CN:MN:(Yb=n||{})&&(r==="scale"?kN:$N):t.style&&!Dv(t.style[r])?PN:~r.indexOf("-")?EN:Gv(t,r)},core:{_removeProperty:ca,_getMatrix:Zv}};vr.utils.checkPrefix=lo;vr.core.getStyleSaver=QP;(function(e,t,r,n){var i=pr(e+","+t+","+r,function(a){Zn[a]=1});pr(t,function(a){kr.units[a]="deg",nE[a]=1}),Sn[i[13]]=e+","+t,pr(n,function(a){var o=a.split(":");Sn[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");pr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){kr.units[e]="px"});vr.registerPlugin(oE);var Ny=vr.registerPlugin(oE)||vr;Ny.core.Tween;const ka={IN_OUT:"power2.inOut",OUT:"power2.out"},ts={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class sE{constructor(t,r={}){Ko(this,"timeline");Ko(this,"currentStage","");Ko(this,"callbacks");Ko(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Ny.timeline({paused:!0,onUpdate:()=>this.handleProgress(),onComplete:()=>{var i,a,o,s;(a=(i=this.callbacks).onComplete)==null||a.call(i),(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"complete")}});let n=0;this.timeline.addLabel("seatsToRings",n),n+=t.seatsToRings/1e3,this.timeline.addLabel("ringsToBar",n),n+=t.ringsToBar/1e3,this.timeline.addLabel("axesReveal",n),n+=t.axesReveal/1e3,this.timeline.addLabel("barSlide",n),n+=t.barSlide/1e3,this.timeline.addLabel("barsGrow",n),n+=t.barsGrow/1e3,this.timeline.addLabel("barsToArea",n)}animateSeatsToRings(t,r){const n=this.durations.seatsToRings/1e3;return t.each(function(){const i=this;if(!i.getAttribute("data-orig-x")){const a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("width"),l=i.getAttribute("height");i.setAttribute("data-orig-x",a||"0"),i.setAttribute("data-orig-y",o||"0"),i.setAttribute("data-orig-width",s||"0"),i.setAttribute("data-orig-height",l||"0")}}),this.timeline.to(t.nodes(),{width:2,y:(i,a)=>parseFloat(a.getAttribute("y")||"0"),height:(i,a)=>{const o=parseFloat(a.getAttribute("y")||"0");return r-o},duration:n,ease:ka.IN_OUT,stagger:ts.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="seatsToRings",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"seatsToRings")}},"seatsToRings"),this}animateRingsToBar(t,r){const n=this.durations.ringsToBar/1e3;return t.each(function(i,a){const o=this;if(!r[a])return;const l=o.getAttribute("x"),u=o.getAttribute("y"),c=o.getAttribute("width"),f=o.getAttribute("height");o.setAttribute("data-orig-x",l||"0"),o.setAttribute("data-orig-y",u||"0"),o.setAttribute("data-orig-width",c||"0"),o.setAttribute("data-orig-height",f||"0")}),this.timeline.to(t.nodes(),{x:i=>{var a;return((a=r[i])==null?void 0:a.x)??0},y:i=>{var a;return((a=r[i])==null?void 0:a.y)??0},width:i=>{var a;return((a=r[i])==null?void 0:a.width)??0},height:i=>{var a;return((a=r[i])==null?void 0:a.height)??0},duration:n,ease:ka.IN_OUT,stagger:ts.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="ringsToBar",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"ringsToBar")}},"ringsToBar"),this}animateAxesReveal(t,r){const n=this.durations.axesReveal/1e3;return this.timeline.to([t.node(),r.node()],{opacity:1,duration:n,ease:ka.IN_OUT,stagger:ts.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="axesReveal",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"axesReveal")}},"axesReveal"),this}animateBarSlide(t,r){const n=this.durations.barSlide/1e3;return this.timeline.to(t.nodes(),{x:r,duration:n,ease:ka.OUT,stagger:ts.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="barSlide",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"barSlide")}},"barSlide"),this}animateBarsGrow(t,r,n=ts.RIPPLE_STAGGER_DELAY){const i=this.durations.barsGrow/1e3;return t.nodes().forEach((o,s)=>{const l=o,u=l.getAttribute("data-final-y")||"0",c=l.getAttribute("data-final-height")||"0",f=parseInt(l.getAttribute("data-timestamp-index")||"0"),p=Math.abs(f-r)*n;this.timeline.fromTo(l,{height:0,y:parseFloat(l.getAttribute("data-chart-baseline")||"400")},{y:parseFloat(u),height:parseFloat(c),duration:i,delay:p,ease:ka.OUT},"barsGrow")}),this.timeline.call(()=>{var o,s;this.currentStage="barsGrow",(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"barsGrow")},[],"barsGrow"),this}animateBarsToArea(t,r,n,i){const a=this.durations.barsToArea/1e3,o=new Map;return t.each(function(){var c;const s=this,l=s.getAttribute("class");if(!l)return;const u=l.match(/category-([\w-]+)/);if(u&&u[1]){const f=u[1];o.has(f)||o.set(f,[]),(c=o.get(f))==null||c.push(s)}}),this.timeline.set(t.nodes(),{opacity:0},"barsToArea"),this.timeline.set(r.nodes(),{opacity:1},"barsToArea"),r.each(function(){const s=this,l=s.getAttribute("data-category");if(!l)return;const u=n.get(l);u&&Ny.to(s,{attr:{d:u},duration:a,ease:ka.IN_OUT})}),this.timeline.call(()=>{var s,l;this.currentStage="barsToArea",(l=(s=this.callbacks).onStageComplete)==null||l.call(s,"barsToArea")},[],"barsToArea"),this}handleProgress(){var r,n;const t=this.timeline.progress();(n=(r=this.callbacks).onProgress)==null||n.call(r,t)}getControls(){return{play:()=>this.timeline.play(),pause:()=>this.timeline.pause(),reverse:()=>this.timeline.reverse(),restart:()=>this.timeline.restart(),seek:t=>this.timeline.progress(t),seekToStage:t=>{const r=this.timeline.labels[t];r!==void 0&&this.timeline.seek(r)},kill:()=>this.timeline.kill(),getProgress:()=>this.timeline.progress(),getCurrentStage:()=>this.currentStage,getTimeline:()=>this.timeline}}play(){this.timeline.play()}destroy(){this.timeline.kill()}}function UN(e,t){const{arcAngle:r,arcAngleFlexibility:n=5,radius:i,seatSize:a,minSeatSize:o,maxSeatSize:s,spacing:l,innerRadiusRatio:u}=t,c=i*u,f=e.reduce((E,C)=>E+C.seats,0);let h={seatSize:a,arcAngle:r,score:-1};const p=r-n,y=r+n;for(let E=p;E<=y;E+=2.5){const C=E*Math.PI/180;for(let $=s;$>=o;$-=.1){const j=$*2,k=j*l,R=Math.floor((i-c)/k);for(let L=1;L<=Math.min(R,10);L++){let U=0;for(let I=0;I<L;I++){const B=c+(I+.5)*k,q=j*l/B,N=Math.floor(C/q);U+=N}if(U>=f){const I=f/U,B=($-o)/(s-o),q=(U-f)/f,N=q<.15?1:q<.3?.7:q<.5?.4:.1,G=1-Math.abs(E-r)/n,F=N*.5+B*.3+I*.15+G*.05;F>h.score&&(h={seatSize:$,arcAngle:E,rings:L,score:F})}}}}const m=h.seatSize,d=h.arcAngle,b=d*Math.PI/180,v=m*2,x=v*l,_=Math.floor((i-c)/x),g=[],w=-b/2-Math.PI/2,S=[];let A=0,T=[];for(let E=1;E<=_;E++){let C=0;const $=[];for(let j=0;j<E;j++){const k=c+(j+.5)*x,R=v*l/k,L=Math.floor(b/R);$.push(L),C+=L}if(C>=f){A=E,T=$;break}}if(A>0)S.push(...T);else for(let E=0;E<_;E++){const C=c+(E+.5)*x,$=v*l/C,j=Math.floor(b/$);S.push(j)}for(let E=0;E<S.length;E++){const C=c+(E+.5)*x,$=S[E]??0;if($>0){const j=b/$;for(let k=0;k<$;k++){const R=w+(k+.5)*j,L=Math.cos(R)*C,U=Math.sin(R)*C;g.push({ring:E,index:k,angle:R,x:L,y:U})}}}g.sort((E,C)=>{const $=E.angle-C.angle;return Math.abs($)>.001?$:E.ring-C.ring});const M=[];let P=0;return e.forEach((E,C)=>{const $=Math.min(E.seats,g.length-P);for(let j=0;j<$&&P<g.length;j++){const k=g[P++];k&&M.push({x:k.x,y:k.y,category:E.name,categoryIndex:C,seatIndex:j,ring:k.ring,angle:k.angle,radius:m})}}),{arcAngle:d,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:m,seats:M,totalSeats:f}}function WN(e,t,r){const n=t<=r?1:r/t;return e.filter(i=>i.value>0).map(i=>{const a=t<=r?i.value:Math.max(1,Math.floor(i.value*n));return{id:i.dataKey,name:i.label,seats:a,colour:i.color}})}function Jv({svg:e,events:t,xScale:r,chartHeight:n,chartWidth:i,timelineHeight:a,timelineOffset:o,instanceId:s,setHoveredTimelineEvent:l,enableBrush:u=!1,onTimeRangeChange:c,minAllowedTime:f,maxAllowedTime:h,brushColor:p="#69b3a2",mainGroupSelector:y}){const m=n+o,d=s?`.main-chart-group-${s}`:".main-chart-group",b=e.select(y??d),v=s?`timeline-track timeline-track-${s}`:"timeline-track",x=b.append("g").attr("class",v),_=6,g=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",g).append("rect").attr("x",0).attr("y",m).attr("width",i+_).attr("height",a),x.append("rect").attr("class","timeline-background").attr("x",0).attr("y",m).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const w=x.append("g").attr("clip-path",`url(#${g})`),S=3,A=w.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",M=>r(new Date(M.timestamp))-S/2).attr("y",m).attr("width",S).attr("height",a).attr("fill",M=>M.color||"#2F42FF").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",M=>M.timestamp).attr("data-event-name",M=>M.eventName),T=6;if(A.on("mouseenter",function(M,P){const E=ee(this),C=r(new Date(P.timestamp));E.transition().duration(150).attr("x",C-T/2).attr("width",T),l&&l({timestamp:P.timestamp,eventName:P.eventName,x:C})}).on("mouseleave",function(M,P){const E=ee(this),C=r(new Date(P.timestamp));E.transition().duration(150).attr("x",C-S/2).attr("width",S),l&&l(null)}),u&&c){const M=f,P=h,E=Tl().extent([[0,m],[i,m+a]]).on("start",j=>{if(!j.selection&&M!==void 0&&P!==void 0){const k=j.sourceEvent;if(k){const R=k.offsetX,L=+r.invert(R);if(L<M||L>P){const U=s?`.timeline-brush-${s}`:".timeline-brush";e.select(U).call(E.move,null);return}}}}).on("brush",j=>{if(!j.selection)return;const[k,R]=j.selection;let L=+r.invert(k),U=+r.invert(R);M!==void 0&&(L=Math.max(L,M),U=Math.max(U,M)),P!==void 0&&(L=Math.min(L,P),U=Math.min(U,P));const I=r(new Date(L)),B=r(new Date(U));if(I!==k||B!==R){const q=s?`.timeline-brush-${s}`:".timeline-brush";e.select(q).call(E.move,[I,B])}}).on("end",j=>{if(!j.selection)return;const[k,R]=j.selection,L=[+r.invert(k),+r.invert(R)];M!==void 0&&(L[0]=Math.max(L[0],M)),P!==void 0&&(L[1]=Math.min(L[1],P)),c(L);const U=s?`.timeline-brush-${s}`:".timeline-brush";e.select(U).call(E.move,null)}),C=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",$=b.append("g").attr("class",C).call(E);$.selectAll(".selection").attr("fill",p).attr("fill-opacity",.2).attr("stroke",p).attr("stroke-width",1),$.selectAll(".handle").attr("fill",p).attr("fill-opacity",.8),$.on("dblclick",()=>{const j=r.domain(),k=[+j[0],+j[1]];c(k)})}}const yr={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},_s=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],cr={greyHatch:{background:yr.neoGrey[200],lines:yr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}};function HN(e,t){const r=e.append("pattern").attr("id",`${t}-greyHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",cr.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",cr.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",cr.greyHatch.lines).attr("stroke-width",.5)}function GN(e,t){const r=e.append("pattern").attr("id",`${t}-dataMissingHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",cr.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",cr.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",cr.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",cr.dataMissingHatch.lines).attr("stroke-width",.5)}function KN(e,t){const r=e.append("pattern").attr("id",`${t}-noLstHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",cr.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",cr.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",cr.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",cr.noLstHatch.lines).attr("stroke-width",.5)}function Gl(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),HN(r,t),GN(r,t),KN(r,t)}function ix(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function Qv(e){return e.includes("greyHatchPattern")?cr.greyHatch.lines:e.includes("dataMissingHatchPattern")?cr.dataMissingHatch.lines:e.includes("noLstHatchPattern")?cr.noLstHatch.lines:e}function Ly(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,l=fi().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(Yn),u=$v().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(Yn),c=s?`areas areas-${s}`:"areas";let f=e.select(s?`.areas-${s}`:".areas");f.empty()&&(f=e.append("g").attr("class",c)),t.forEach((h,p)=>{var b;const y=r[p];if(!y)return;const m=((b=y.parliamentMapping)==null?void 0:b.isSpecialCategory)??!1,d=Qv(y.color);if(m){const v=f.append("path").datum(h).attr("fill","none").attr("stroke",d).attr("stroke-width",3).attr("stroke-dasharray","15 8").attr("d",u).style("pointer-events","none");if(o){const x=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;v.attr("class",x)}}else{const v=f.append("path").datum(h).attr("fill",y.color).attr("fill-opacity",y.fillOpacity??.7).attr("stroke",d).attr("stroke-width",y.strokeWidth??1.5).attr("d",l).style("pointer-events","none");if(o){const x=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;v.attr("class",x)}}})}function XN(e,t){var n;const r=[];for(const i of e){let a=0;for(const o of t){const s=i[o.dataKey]||0,l=a,u=a+s;r.push({timestamp:i.timestamp,category:o.label,dataKey:o.dataKey,y0:l,y1:u,value:s,color:o.color,isSpecialCategory:((n=o.parliamentMapping)==null?void 0:n.isSpecialCategory)??!1}),a+=s}}return r}function Ye(e){return e.replace(/[^a-zA-Z0-9-_]/g,"-")}function lE(e,t,r,n){const{centerX:i,centerY:a,addClasses:o=!0,instanceId:s,parliamentRadius:l=200}=n,u=s?`parliament parliament-${s}`:"parliament";let c=e.select(s?`.parliament-${s}`:".parliament");c.empty()&&(c=e.append("g").attr("class",u)),t.seats.forEach(p=>{const y=r.find(b=>b.label===p.category);if(!y)return;const m=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius).attr("fill",y.color).attr("stroke",y.color).attr("stroke-width",.5),d=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius*2.5).attr("fill","transparent").attr("stroke","none").attr("pointer-events","all");if(o){const b=s?`seat seat-${s} seat-${Ye(p.category)}`:`seat seat-${Ye(p.category)}`;m.attr("class",b),d.attr("class",b)}});const f=s?`parliament-label parliament-label-${s}`:"parliament-label";if(e.select(`.${f.split(" ")[0]}`).empty()){const p=e.append("g").attr("class",f).attr("transform",`translate(${i},${a-l*.15})`).style("opacity","0").style("pointer-events","none");p.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),p.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const y=p.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");y.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),y.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}}function YN(e,t,r,n,i,a,o=!1){var f;const s=new Map;let l=i;if(t.length>0&&((f=t[0])==null?void 0:f.timestamp)!==void 0){const h=t[0].timestamp;l=r(new Date(h))}const u=new Map;for(const h of e.seats)u.has(h.category)||u.set(h.category,[]),u.get(h.category).push(h);const c=new Map;for(const h of t)c.set(h.dataKey,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory}),h.label&&h.label!==h.dataKey&&c.set(h.label,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory});for(const h of e.seats){const p=c.get(h.category);if(!p){s.set(h,{x:l,y:a/2});continue}const y=n(p.y0),m=n(p.y1);let d;if(o){const b=u.get(h.category)??[],v=h.seatIndex,x=b.length;if(x===1)d=(y+m)/2;else{const _=v/(x-1);d=y+(m-y)*_}}else d=m;s.set(h,{x:l,y:d})}return s}function VN(e,t,r){var o;if(e.length===0)return[];const n=e[e.length-1],i=[];let a=0;for(const s of t){const l=n[s.dataKey]||0,u=a,c=a+l;i.push({dataKey:s.dataKey,label:s.label,y0:u,y1:c,value:l,timestamp:n.timestamp,isSpecialCategory:((o=s.parliamentMapping)==null?void 0:o.isSpecialCategory)??!1}),a+=l}return i}function ZN(e){const t=e;return{seatsToLines:t*.2,seatsToBar:t*.07,crossFadePause:t*.003,barSlideToTimeline:t*.22,axesAndBarsGrow:t*.22,barsToArea:t*.287}}const Xi=new Map;ee.prototype.transition=cv;const JN=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:l=!0,showAxes:u=!0,axisLabelColor:c,axisLabelSize:f=14,formatDate:h,formatValue:p,markers:y=[],arcAngle:m=200,parliamentRadius:d=200,seatSize:b=4.5,animationDuration:v=900,onMorphComplete:x,onAnimationStateChange:_,onTimelineReady:g,onAnimationProgress:w,onHoveredDataChange:S,hoveredCategory:A,maxSeats:T=2e3,parliamentTimestamp:M,enableBrush:P=!1,onTimeRangeChange:E,minAllowedTime:C,maxAllowedTime:$,showScaleIndicator:j=!1,reposPerSeat:k=1,timelineEvents:R=[],showTimeline:L=!1,timelineHeight:U=40,timelineOffset:I=35,brushColor:B="#69b3a2"})=>{const[q,N]=O.useState("area"),[G,F]=O.useState(!1),[K,Z]=O.useState(null),[X,z]=O.useState(0),[Y,V]=O.useState(null),[D,rt]=O.useState(null),[W,tt]=O.useState([]),ct=O.useRef(null),at=O.useRef(n),mt=O.useRef(!0),Et=O.useRef(!1),dt=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),nt=O.useRef(void 0),pt=O.useRef(s),jt=O.useRef(x),lt=O.useRef(_),Tt=O.useRef(g),yt=O.useRef(w),bt=O.useRef(S);O.useEffect(()=>{jt.current=x,lt.current=_,Tt.current=g,yt.current=w,bt.current=S},[x,_,g,w,S]),O.useEffect(()=>{if(e.current&&q==="parliament")if(A){const Rt=r.find(Lt=>Lt.dataKey===A);if(Rt){const Lt=Rt.label;if(Z(Lt),Ss(e.current,Lt),t.length>0){const tr=t[t.length-1],ze=Math.round(tr.values[Rt.dataKey]||0),ke={label:Rt.label,value:ze,color:Qv(Rt.color)};qu(e.current,ke,j,k,dt.current)}}}else Z(null),Ss(e.current,null),qu(e.current,null,j,k,dt.current)},[A,q,r,t,j,k]);const qt=i-o.left-o.right,Nt=a-o.top-o.bottom;return O.useEffect(()=>{var _t;if(!e.current||t.length===0||r.length===0||(nt.current&&(nt.current(),nt.current=void 0),Et.current))return;const Rt=ee(e.current),Lt=n!==at.current;mt.current?(Rt.selectAll("*").remove(),Gl(Rt,dt.current),mt.current=!1):Lt||(Rt.selectAll("*").remove(),Gl(Rt,dt.current));const tr=t[t.length-1],ze=r.reduce((ht,Mt)=>ht+(tr.values[Mt.dataKey]||0),0),ke=t.map(ht=>{const Mt={timestamp:ht.timestamp};for(const Dt of r)Mt[Dt.dataKey]=ht.values[Dt.dataKey]||0;return Mt}),Ie=r.map(ht=>ht.dataKey),$e=Bs().keys(Ie),Zr=$e(ke),Dr=t.map(ht=>ht.timestamp),ei=Lt||!s?Math.min(...Dr):s[0],sr=Lt||!s?Math.max(...Dr):s[1],fn=[...Dr].sort((ht,Mt)=>ht-Mt),xr=[];for(let ht=0;ht<fn.length-1;ht++)xr.push(fn[ht+1]-fn[ht]);const $i=xr.length>0?xr.reduce((ht,Mt)=>ht+Mt,0)/xr.length:0,ri=sr+$i*1.15,er=Ls().domain([new Date(ei),new Date(ri)]).range([0,qt]),ni=ke.filter(ht=>ht.timestamp>=ei&&ht.timestamp<=sr),hn=$e(ni),pe=hn.length>0?Math.max(...hn[hn.length-1].map(ht=>ht[1]??0)):0,Ue=_i().domain([0,pe*1.15]).range([Nt,0]),rr=r.map(ht=>({...ht,color:ix(ht.color,dt.current)})),Jr=rr.map(ht=>({dataKey:ht.dataKey,label:ht.label,color:ht.color,value:tr.values[ht.dataKey]||0})),pn=WN(Jr,ze,T).reverse(),dn=UN(pn,{arcAngle:m,radius:d,seatSize:b,minSeatSize:4,maxSeatSize:30,spacing:1.1,innerRadiusRatio:.4});ct.current=dn;const et=VN(ke,r),gt=YN(dn,et,er,Ue,qt,Nt);if(Lt&&!Et.current){Et.current=!0,F(!0),(_t=lt.current)==null||_t.call(lt,!0),V(null),tt([]),z(0);let ht=Rt.select("g[transform]");if(ht.empty()&&(ht=Rt.select("g")),ht.empty()){Rt.selectAll("*").remove(),Gl(Rt,dt.current),Wf(Rt,n==="parliament"?"parliament":"area",Zr,rr,dn,er,Ue,qt,Nt,o,l,u,c,f,h,p,P,E,dt.current,y,s,tt,V,R,L,U,I,rt,C,$,B),F(!1),N(n==="parliament"?"parliament":"area"),z(n==="parliament"?1:0),at.current=n;return}const Mt=setTimeout(()=>{Et.current=!1,F(!1),at.current=n},v*3);rL(Rt,n,Zr,rr,dn,gt,er,Ue,qt,Nt,o,v,()=>{var Dt,oe;if(clearTimeout(Mt),Et.current=!1,F(!1),N(n==="parliament"?"parliament":"area"),n==="parliament"&&z(1),(Dt=lt.current)==null||Dt.call(lt,!1),(oe=jt.current)==null||oe.call(jt),at.current=n,n==="parliament"&&e.current&&bt.current&&(nt.current=Hf(e.current,rr,t,K,Z,bt.current,j,k,dt.current)),n!=="parliament"&&e.current){const se=ee(e.current),le=se.select(dt.current?`.main-chart-group-${dt.current}`:".main-chart-group");if(L){const ge=dt.current?`.timeline-track-${dt.current}`:".timeline-track",We=dt.current?`.timeline-brush-${dt.current}`:".timeline-brush";le.select(ge).remove(),le.select(We).remove(),Jv({svg:se,events:R,xScale:er,chartHeight:Nt,chartWidth:qt,timelineHeight:U,timelineOffset:I,instanceId:dt.current,setHoveredTimelineEvent:rt,enableBrush:P,onTimeRangeChange:E,minAllowedTime:C,maxAllowedTime:$,brushColor:B})}if(P&&E&&!L){const ge=le.select(dt.current?`.chart-content-group-${dt.current}`:".chart-content-group");QN(ge,qt,Nt,er,E,dt.current,se,C,$,B)}if(y.length>0&&tt&&V&&s){const We=y.filter(Jt=>Jt.timestamp>=(s[0]??0)-1&&Jt.timestamp<=(s[1]??1/0)+1).map(Jt=>({...Jt,x:er(new Date(Jt.timestamp))}));if(tt(We),We.length>0){tL(le,We,Nt,qt,P,V,dt.current);const Jt=le.select(dt.current?`.markers-${dt.current}`:".markers");if(!Jt.empty()){le.selectAll(".marker-hover-overlay").remove();const Ir=le.append("rect").attr("class","marker-hover-overlay").attr("x",0).attr("y",0).attr("width",qt).attr("height",Nt).attr("fill","none").attr("pointer-events","all");let _r=null;Ir.on("mousemove",function(ji){const[Aa]=Za(ji,this);let mn=null,Ri=1/0;if(We.forEach(Ho=>{const yn=Math.abs(Aa-Ho.x);yn<Ri&&(Ri=yn,mn=Ho)}),!mn||Ri>50){_r!==null&&(_r=null,Jt.selectAll(".marker-line").attr("opacity",0),Jt.selectAll(".marker-label").attr("opacity",0),V(null));return}const Nr=mn;_r!==Nr.timestamp&&(_r=Nr.timestamp,Jt.selectAll(".marker-line").attr("opacity",0),Jt.selectAll(".marker-label").attr("opacity",0),Jt.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(Nr.timestamp)}).attr("opacity",.6),Jt.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(Nr.timestamp)}).attr("opacity",1),V(Nr))}),Ir.on("mouseleave",function(){_r=null,Jt.selectAll(".marker-line").attr("opacity",0),Jt.selectAll(".marker-label").attr("opacity",0),V(null)})}}}}},u,f,h,p,Tt.current,(Dt,oe)=>{var se;if(n==="parliament"&&Dt>=.95){const le=(Dt-.95)/.05;z(Math.min(le,1))}(se=yt.current)==null||se.call(yt,Dt,oe)},M,dt.current)}else at.current=n,n==="parliament"&&(V(null),tt([])),Wf(Rt,n==="parliament"?"parliament":"area",Zr,rr,dn,er,Ue,qt,Nt,o,l,u,c,f,h,p,P,E,dt.current,y,s,tt,V,R,L,U,I,rt,C,$,B),N(n==="parliament"?"parliament":"area"),z(n==="parliament"?1:0),n==="parliament"&&e.current&&bt.current&&(nt.current=Hf(e.current,rr,t,K,Z,bt.current,j,k,dt.current));return()=>{nt.current&&(nt.current(),nt.current=void 0)}},[n]),O.useEffect(()=>{var ni,hn;if(!e.current||t.length===0||Et.current)return;if(mt.current){pt.current=s;return}if(!(s!==pt.current&&((s==null?void 0:s[0])!==((ni=pt.current)==null?void 0:ni[0])||(s==null?void 0:s[1])!==((hn=pt.current)==null?void 0:hn[1]))))return;pt.current=s;const Lt=ee(e.current),tr=t.map(pe=>{const Ue={timestamp:pe.timestamp};for(const rr of r)Ue[rr.dataKey]=pe.values[rr.dataKey]||0;return Ue}),ze=r.map(pe=>pe.dataKey),Ie=Bs().keys(ze)(tr),$e=t.map(pe=>pe.timestamp),Zr=s?s[0]:Math.min(...$e),Dr=s?s[1]:Math.max(...$e),sr=($e.length>1?($e[$e.length-1]-$e[0])/($e.length-1):0)*.5,fn=Ls().domain([new Date(Zr-sr),new Date(Dr+sr)]).range([0,i-o.left-o.right]),xr=Math.max(...Ie[Ie.length-1].map(pe=>pe[1])),$i=_i().domain([0,xr*1.1]).range([a-o.top-o.bottom,0]);if(!ct.current)return;const ri=ct.current,er=r.map(pe=>({...pe,color:ix(pe.color,dt.current)}));Lt.selectAll("*").remove(),Gl(Lt,dt.current),Wf(Lt,q==="parliament"?"parliament":"area",Ie,er,ri,fn,$i,i-o.left-o.right,a-o.top-o.bottom,o,l,u,c,f,h,p,P,E,dt.current,y,s,tt,V,R,L,U,I,rt,C,$,B),q==="parliament"&&e.current&&bt.current&&(nt.current=Hf(e.current,er,t,K,Z,bt.current,j,k,dt.current))},[s]),{isMorphing:G,currentMode:q,hoveredCategory:K,scaleIndicatorOpacity:X,visibleMarkers:W,hoveredMarker:Y,setHoveredMarker:V,hoveredTimelineEvent:D,setHoveredTimelineEvent:rt}};function QN(e,t,r,n,i,a,o,s,l,u){const c=s,f=l,h=Tl().extent([[0,0],[t,r]]).on("start",y=>{if(!y.selection&&c!==void 0&&f!==void 0){const m=y.sourceEvent;if(m){const d=m.offsetX,b=+n.invert(d);if(b<c||b>f){o.select(".brush").call(h.move,null);return}}}}).on("brush",y=>{if(!y.selection)return;const[m,d]=y.selection;let b=+n.invert(m),v=+n.invert(d);c!==void 0&&(b=Math.max(b,c),v=Math.max(v,c)),f!==void 0&&(b=Math.min(b,f),v=Math.min(v,f));const x=n(new Date(b)),_=n(new Date(v));(x!==m||_!==d)&&o.select(".brush").call(h.move,[x,_])}).on("end",y=>{if(!y.selection)return;const[m,d]=y.selection,b=[+n.invert(m),+n.invert(d)];c!==void 0&&(b[0]=Math.max(b[0],c)),f!==void 0&&(b[1]=Math.min(b[1],f)),i(b),o.select(".brush").call(h.move,null)}),p=e.append("g").attr("class","brush").call(h);p.selectAll(".selection").attr("fill",u).attr("fill-opacity",.2).attr("stroke",u).attr("stroke-width",1),p.selectAll(".handle").attr("fill",u).attr("fill-opacity",.8),p.on("dblclick",()=>{const y=n.domain(),m=[+y[0],+y[1]];s!==void 0&&(m[0]=Math.max(m[0],s)),l!==void 0&&(m[1]=Math.min(m[1],l)),i(m)})}function tL(e,t,r,n,i,a,o){const s=o?`markers markers-${o}`:"markers",l=e.append("g").attr("class",s);t.forEach(u=>{l.append("line").attr("class","marker-line").attr("data-timestamp",u.timestamp).attr("x1",u.x).attr("x2",u.x).attr("y1",0).attr("y2",r).attr("stroke",u.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),u.label&&l.append("text").attr("class","marker-label").attr("data-timestamp",u.timestamp).attr("x",u.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",u.color??"#2F42FF").attr("opacity",0)})}function eL(e,t,r,n,i,a,o){let s=null,l;a?l=e.select(".brush .overlay"):l=e.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",i).attr("fill","none").attr("pointer-events","all");const u=c=>{let f=null,h=1/0;if(r.forEach(m=>{const d=Math.abs(c-m.x);d<h&&(h=d,f=m)}),!f||h>50)return s!==null&&(s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)),!1;const y=f;return s===y.timestamp||(s=y.timestamp,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),t.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",.6),t.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",1),o(y)),!0};l.on("mousemove",function(c){const[f]=Za(c,this);u(f)}),l.on("mouseleave",function(){s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)})}function Wf(e,t,r,n,i,a,o,s,l,u,c,f,h,p,y,m,d=!1,b,v,x=[],_=[0,0],g,w,S=[],A=!1,T=40,M=15,P,E,C,$="#69b3a2"){const j=E,k=C;let R=null;const L=v?`main-chart-group main-chart-group-${v}`:"main-chart-group",U=e.append("g").attr("class",L).attr("transform",`translate(${u.left},${u.top})`),I=v?`chart-clip-${v}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",I).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",l);const B=v?`chart-content-group chart-content-group-${v}`:"chart-content-group",q=U.append("g").attr("class",B).attr("clip-path",`url(#${I})`);if(c&&t!=="parliament"&&(q.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(oa(a).ticks(6).tickSize(l).tickFormat(()=>"")),q.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(sa(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(Ly(q,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),x.length>0)){const G=x.filter(F=>F.timestamp>=_[0]-1&&F.timestamp<=_[1]+1).map(F=>({...F,x:a(new Date(F.timestamp))}));R={markersGroup:null,visibleMarkers:G},g&&g(G)}if(t==="parliament"){const N=s/2,G=i.radius+10,F=l-i.radius*.3,K=Math.max(G,F);lE(q,i,n,{centerX:N,centerY:K,addClasses:!0,instanceId:v,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const G=oa(a).ticks(6).tickPadding(12);y&&G.tickFormat(Y=>y(+Y));const K=U.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).call(G).selectAll("text").attr("font-size",p).attr("font-weight",500);h&&K.attr("fill",h);const Z=sa(o).ticks(5);Z.tickFormat(Y=>+Y==0?"":m?m(+Y):String(Y));const z=U.append("g").attr("class","axis axis-y").call(Z).selectAll("text").attr("font-size",p).attr("font-weight",500);h&&z.attr("fill",h)}if(d&&b&&t==="area"){const N=j,G=k,F=Tl().extent([[0,0],[s,l]]).on("start",Z=>{if(!Z.selection&&N!==void 0&&G!==void 0){const X=Z.sourceEvent;if(X){const z=X.offsetX-((u==null?void 0:u.left)||0),Y=+a.invert(z);if(Y<N||Y>G){e.select(".brush").call(F.move,null);return}}}}).on("brush",Z=>{if(!Z.selection)return;const[X,z]=Z.selection;let Y=+a.invert(X),V=+a.invert(z);N!==void 0&&(Y=Math.max(Y,N),V=Math.max(V,N)),G!==void 0&&(Y=Math.min(Y,G),V=Math.min(V,G));const D=a(new Date(Y)),rt=a(new Date(V));(D!==X||rt!==z)&&e.select(".brush").call(F.move,[D,rt])}).on("end",Z=>{if(!Z.selection)return;const[X,z]=Z.selection,Y=[+a.invert(X),+a.invert(z)];N!==void 0&&(Y[0]=Math.max(Y[0],N)),G!==void 0&&(Y[1]=Math.min(Y[1],G)),b(Y),e.select(".brush").call(F.move,null)}),K=q.append("g").attr("class","brush").call(F);K.selectAll(".selection").attr("fill",$).attr("fill-opacity",.2).attr("stroke",$).attr("stroke-width",1),K.selectAll(".handle").attr("fill",$).attr("fill-opacity",.8),K.on("dblclick",()=>{const Z=a.domain(),X=[+Z[0],+Z[1]];b(X)})}if(t==="area"&&R&&R.visibleMarkers.length>0){const N=U.append("g").attr("class","markers").attr("clip-path",`url(#${I})`);R.visibleMarkers.forEach(G=>{N.append("line").attr("class","marker-line").attr("data-timestamp",G.timestamp).attr("x1",G.x).attr("x2",G.x).attr("y1",0).attr("y2",l).attr("stroke",G.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),G.label&&N.append("text").attr("class","marker-label").attr("data-timestamp",G.timestamp).attr("x",G.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",G.color??"#2F42FF").attr("opacity",0)}),R.markersGroup=N}t==="area"&&A&&P&&Jv({svg:e,events:S,xScale:a,chartHeight:l,chartWidth:s,timelineHeight:T,timelineOffset:M,instanceId:v,setHoveredTimelineEvent:P,enableBrush:d,onTimeRangeChange:b,minAllowedTime:j,maxAllowedTime:k,brushColor:$}),R&&R.visibleMarkers.length>0&&w&&t==="area"&&eL(q,R.markersGroup,R.visibleMarkers,s,l,d,w)}function rL(e,t,r,n,i,a,o,s,l,u,c,f,h,p=!0,y=14,m,d,b,v,x,_){const g=e.select(_?`.main-chart-group-${_}`:".main-chart-group");g.selectAll(".markers").remove(),g.selectAll(".marker-hover-overlay").remove(),g.selectAll(".brush").remove(),t==="stacked-area"||t==="area"?nL(g,r,n,i,a,o,s,l,u,f,h,p,y,m,d,b,v,x,_):iL(g,r,n,i,a,o,s,l,u,f,h,p,y,m,d,b,v,x,_)}function ws(e,t,r,n,i,a,o,s){const l=e[a];if(!l)return"";const u=l.find(w=>w.data.timestamp===o);if(!u)return"";const c=u.data,f=t[a];if(!f)return"";const h=f.dataKey,p=c[h];if(!p||p<=0)return"";const y=r.get(o);if(!y)return"";const m=y.x,d=y.width,b=u[0],v=u[1],x=s?i:n(b),_=s?i:n(v),g=[];return g.push(`M ${m} ${x}`),g.push(`L ${m} ${_}`),g.push(`L ${m+d} ${_}`),g.push(`L ${m+d} ${x}`),g.push("Z"),g.join(" ")}function nL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h=14,p,y,m,d,b,v){var Ll;const x=v?`.seat-${v}`:".seat",_=e.selectAll(x),g=v?`.chart-content-group-${v}`:".chart-content-group";let w=e.select(g);if(w.empty()){const it=e.attr("clip-path"),ut=it?((Ll=it.match(/url\(#(.+)\)/))==null?void 0:Ll[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,wt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";w=e.append("g").attr("class",wt).attr("clip-path",`url(#${ut})`)}if(_.size()===0){Ly(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),c();return}const S=ZN(u),A=v?Xi.get(v):void 0;A&&(A.destroy(),v&&Xi.delete(v));const T=it=>it<.2?"seatsToRings":it<.35?"ringsToBar":it<.464?"axesReveal":it<.6?"barSlide":it<.82?"barsGrow":"barsToArea",M=new sE({seatsToRings:S.seatsToLines,ringsToBar:S.seatsToBar,axesReveal:S.barSlideToTimeline*.3,barSlide:S.barSlideToTimeline*.7,barsGrow:S.axesAndBarsGrow,barsToArea:S.barsToArea},{onStageComplete:it=>{},onProgress:it=>{if(d){const ut=T(it);d(it,ut)}},onComplete:()=>{c()}});v&&Xi.set(v,M),m&&m(M.getControls().getTimeline());const P=t[0].map(it=>it.data),E=XN(P,r),C=s/2,$=n.radius+10,j=l-n.radius*.3,k=Math.max($,j),R=P.map(it=>it.timestamp),L=b??Math.max(...R),U=new Map,I=[];R.forEach((it,ut)=>{const wt=a(new Date(it)),Pt=R[ut+1];if(Pt){const ne=a(new Date(Pt))-wt;I.push(ne)}});const B=I.length>0?I.reduce((it,ut)=>it+ut,0)/I.length:30;R.forEach((it,ut)=>{const wt=a(new Date(it)),Pt=R[ut+1],ne=ut===R.length-1?B:a(new Date(Pt))-wt;U.set(it,{x:wt,width:ne})});const q=E.filter(it=>it.timestamp===L),N=U.get(L),G=666,F=v?`parliament-bar-path parliament-bar-path-${v}`:"parliament-bar-path",K=w.append("g").attr("class",F);q.sort((it,ut)=>ut.y0-it.y0),new Map().set(L,{x:G-N.width/2,width:N.width});const X=[],z=(n.radius-n.innerRadius)*.6,V=l*.8,D=k,rt=q.reduce((it,ut)=>it+(ut.y1-ut.y0),0);let W=0;r.forEach(it=>{const ut=q.find(Le=>Le.dataKey===it.dataKey);if(!ut)return;const de=(ut.y1-ut.y0)/rt*V,ne=D-W,He=D-W-de,Ne=G-z/2,lr=`M ${Ne} ${ne} L ${Ne} ${He} L ${Ne+z} ${He} L ${Ne+z} ${ne} Z`;W+=de;const wr=K.append("path").attr("class",`parliament-bar-segment category-${Ye(ut.dataKey)}`).attr("d",lr).attr("fill",ut.color).style("opacity",0).node();wr&&X.push(wr)}),v&&(window.orchestratorMap=Xi);const tt=M.getControls().getTimeline(),ct=S.seatsToLines/1e3,at=S.seatsToBar/1e3;tt.call(()=>{d==null||d(tt.progress(),"seatsToRings")},[],"seatsToRings");const mt=_.nodes(),Et=C,dt=k,nt=Math.max(...n.seats.map(it=>it.ring)),pt=n.seats.filter(it=>it.ring===nt),jt=e.append("g").attr("class",`seat-lines-${v||"default"}`),lt=r.map(it=>{const ut=_.filter(`.seat-${Ye(it.dataKey)}`).size();return ut>0?{name:it.dataKey,seatCount:ut,color:it.color}:null}).filter(it=>it!==null).reverse(),Tt=lt.reduce((it,ut)=>it+ut.seatCount,0),yt=pt.length,bt=n.radius-n.innerRadius,qt=bt*.6,Nt=qt/2,Rt=bt*.6,Lt=[];let tr=0;lt.forEach(it=>{const ut=Math.max(1,Math.round(it.seatCount/Tt*yt));for(let wt=0;wt<ut;wt++){const Pt=(tr+wt)/yt,de=n.arcAngle*Math.PI/180,He=-de/2-Math.PI/2+Pt*de,Ne=(n.innerRadius+n.radius)/2,lr=Et+Math.cos(He)*Ne,wr=dt+Math.sin(He)*Ne,Le=Math.cos(He),ii=Math.sin(He),Di=lr-Nt*Le,Oa=wr-Nt*ii,Ae=lr+Nt*Le,ai=wr+Nt*ii,oi=jt.append("line").attr("class","seat-line").attr("x1",Di).attr("y1",Oa).attr("x2",Ae).attr("y2",ai).attr("stroke",it.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").style("opacity",0).attr("data-angle",He*180/Math.PI).attr("data-center-x",lr).attr("data-center-y",wr).attr("data-initial-length",qt).node();Lt.push({element:oi,angle:He})}tr+=ut});const ze=()=>{jt.remove()},ke=ct*.5,Ie=0,$e=[];if($e.push(...mt),$e.sort((it,ut)=>{const wt=parseInt(it.getAttribute("data-layout-index")||"-1",10),Pt=parseInt(ut.getAttribute("data-layout-index")||"-1",10);return wt-Pt}),$e.length>0&&Lt.length>0){const it=Lt.map(ut=>ut.element);tt.to($e,{attr:{r:1.5},duration:ke*.3,ease:"power2.in"},`seatsToRings+=${Ie}`),it.forEach(ut=>{const wt=ut.getAttribute("x1")||"0",Pt=ut.getAttribute("y1")||"0",de=ut.getAttribute("x2")||"0",ne=ut.getAttribute("y2")||"0";ut.setAttribute("data-final-x1",wt),ut.setAttribute("data-final-y1",Pt),ut.setAttribute("data-final-x2",de),ut.setAttribute("data-final-y2",ne),ut.setAttribute("x1",wt),ut.setAttribute("y1",Pt),ut.setAttribute("x2",wt),ut.setAttribute("y2",Pt)}),tt.to(it,{attr:{x2:(ut,wt)=>parseFloat(wt.getAttribute("data-final-x2")||"0"),y2:(ut,wt)=>parseFloat(wt.getAttribute("data-final-y2")||"0")},opacity:.9,duration:ke*.6,ease:"power2.out"},`seatsToRings+=${Ie+ke*.2}`),tt.to($e,{opacity:0,duration:ke*.3,ease:"power2.out"},`seatsToRings+=${Ie+ke*.3}`)}const Zr=ct*.05,Dr=ct*.7,ei=Ie+ke+Zr;if(Lt.length>0){const it=G,ut=k,Pt=l*.8/Lt.length,de=ut,ne=[...Lt].sort((lr,wr)=>wr.angle-lr.angle),Ne=.6/ne.length;ne.forEach((lr,wr)=>{const Le=it,Di=de-wr*Pt,Oa=Ne*wr*Dr,Ae=lr.element,ai=parseFloat(Ae.getAttribute("data-final-x1")||"0"),oi=parseFloat(Ae.getAttribute("data-final-y1")||"0"),Go=parseFloat(Ae.getAttribute("data-final-x2")||"0"),Ta=parseFloat(Ae.getAttribute("data-final-y2")||"0"),Bl=(ai+Go)/2,gn=(oi+Ta)/2,si=Math.atan2(Ta-oi,Go-ai),Ii=Math.sqrt(Math.pow(Go-ai,2)+Math.pow(Ta-oi,2));tt.to({progress:0},{progress:1,duration:Dr*.5,ease:"power2.inOut",delay:Oa,onUpdate:function(){const ve=this.progress(),yf=Bl+(Le-Bl)*ve,gf=gn+(Di-gn)*ve,vn=40*4*ve*(1-ve),Ni=yf,Li=gf-vn,bf=0-si,$n=si+bf*ve*ve,ql=(Ii+(Rt-Ii)*ve)/2,ak=Ni-ql*Math.cos($n),ok=Li-ql*Math.sin($n),sk=Ni+ql*Math.cos($n),lk=Li+ql*Math.sin($n);Ae.setAttribute("x1",ak.toString()),Ae.setAttribute("y1",ok.toString()),Ae.setAttribute("x2",sk.toString()),Ae.setAttribute("y2",lk.toString())},onComplete:function(){const ve=Rt/2;Ae.setAttribute("x1",(Le-ve).toString()),Ae.setAttribute("y1",Di.toString()),Ae.setAttribute("x2",(Le+ve).toString()),Ae.setAttribute("y2",Di.toString())}},`seatsToRings+=${ei}`),tt.to(lr.element,{opacity:.95,duration:Dr*.3,ease:"power2.out",delay:Oa},`seatsToRings+=${ei}`)})}const sr=jt,fn=[];q.forEach((it,ut)=>{const wt=_.filter(`.seat-${Ye(it.category)}`),Pt=wt.size();if(Pt===0)return;const de=o(it.y1),ne=o(it.y0)-o(it.y1),He=wt.nodes().sort((gn,si)=>{const Ii=parseInt(gn.getAttribute("data-layout-index")||"-1",10),ve=parseInt(si.getAttribute("data-layout-index")||"-1",10);return Ii-ve}),Ne=Math.max(N.width,100),lr=ne,wr=Ne/Math.max(lr,1),Le=Math.max(2,Math.ceil(Math.sqrt(Pt*wr))),ii=Math.ceil(Pt/Le),Di=Ne*.8,Oa=lr*.8,Ae=Le>1?Di/(Le-1):0,ai=ii>1?Oa/(ii-1):0,oi=Le>1?(Le-1)*Ae:0,Go=ii>1?(ii-1)*ai:0,Ta=G-Ne/2+(Ne-oi)/2,Bl=de+(lr-Go)/2;He.forEach((gn,si)=>{const Ii=parseInt(gn.getAttribute("data-layout-index")||"-1",10),ve=Ii>=0?n.seats[Ii]:void 0,yf=ve?C+ve.x:parseFloat(gn.getAttribute("cx")||"0"),gf=ve?k+ve.y:parseFloat(gn.getAttribute("cy")||"0"),B0=(ve==null?void 0:ve.radius)||parseFloat(gn.getAttribute("r")||"4"),vn=Pt%Le;let Ni,Li;if(vn>0&&si<vn)Li=0,Ni=si;else{const $n=si-(vn>0?vn:0);Ni=$n%Le,Li=Math.floor($n/Le)+(vn>0?1:0)}let vf=Ta+Ni*Ae;if(vn>0&&Li===0){const $n=vn>1?(vn-1)*Ae:0,q0=(oi-$n)/2;vf=Ta+q0+Ni*Ae}const bf=Bl+Li*ai;fn.push({element:gn,startX:yf,startY:gf,startRadius:B0,category:it.dataKey,segmentIndex:ut,endY:bf,endX:vf})})});const xr=fn.map(it=>{const ut=it.startX-C,wt=it.startY-k,Pt=Math.atan2(wt,ut);return{...it,angle:Pt}});xr.sort((it,ut)=>ut.angle-it.angle);const $i=at*.8,ri=.6,er=xr.length,hn=$i/Math.max(er,1)*(er-1)+ri,pe=at*.3,Ue=hn;tt.to(X,{opacity:1,duration:pe,ease:"power2.inOut"},`seatsToBar+=${Ue}`),sr&&(tt.to(sr.selectAll(".seat-line").nodes(),{opacity:0,duration:pe,ease:"power2.inOut"},`seatsToBar+=${Ue}`),tt.call(()=>{ze()},[],`seatsToBar+=${Ue+pe}`));const rr=S.barSlideToTimeline/1e3;let Jr=null,pn=null;if(f){const ut=oa(a).ticks(6).tickPadding(12);p&&ut.tickFormat(Pt=>p(Pt.getTime())),Jr=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).attr("opacity",0),Jr.call(ut).selectAll("text").attr("font-size",h).attr("font-weight",500);const wt=sa(o).ticks(5);wt.tickFormat(Pt=>+Pt==0?"":y?y(Pt):String(Pt)),pn=e.append("g").attr("class","axis axis-y").attr("opacity",0),pn.call(wt).selectAll("text").attr("font-size",h).attr("font-weight",500)}const dn=S.crossFadePause/1e3,et=Ue+pe+dn;X.forEach(it=>{const ut=Array.from(it.classList).find(ne=>ne.startsWith("category-"));if(!ut||!q.find(ne=>Ye(ne.dataKey)===ut.replace("category-","")))return;const Pt=r.findIndex(ne=>Ye(ne.dataKey)===ut.replace("category-",""));if(Pt===-1)return;const de=ws(t,r,U,o,l,Pt,L,!1);de&&tt.to(it,{attr:{d:de},duration:rr,ease:"power2.out"},`seatsToBar+=${et}`)});const gt=fi().x(it=>a(it.data.timestamp)).y0(it=>o(it[0])).y1(it=>o(it[1])).curve(Yn),_t=new Map;t.forEach((it,ut)=>{const wt=r[ut];if(wt){const Pt=gt(it)||"";_t.set(wt.dataKey,Pt)}});const ht=et+rr;f&&Jr&&pn&&tt.to([Jr.node(),pn.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${et}`);const Mt=w.select(".grid-vertical"),Dt=w.select(".grid-horizontal");if(!Mt.empty()||!Dt.empty()){const ut=[];Mt.empty()||ut.push(Mt.node()),Dt.empty()||ut.push(Dt.node()),tt.to(ut,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${et}`)}const oe=S.axesAndBarsGrow/1e3,se=S.barsToArea/1e3,le=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",ge=w.append("g").attr("class",le);R.forEach(it=>{if(it===L)return;const ut=U.get(it);ut&&r.forEach((wt,Pt)=>{const de=ws(t,r,U,o,l,Pt,it,!0),ne=ws(t,r,U,o,l,Pt,it,!1);if(!de||!ne)return;const He=v?`histogram-path histogram-path-${v} category-${Ye(wt.dataKey)}`:`histogram-path category-${Ye(wt.dataKey)}`;ge.append("path").attr("class",He).attr("d",de).attr("fill",wt.color).attr("stroke",wt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",wt.dataKey).attr("data-timestamp",it).attr("data-x-position",ut.x).attr("data-full-height-path",ne)})});const We=v?`.histogram-path-${v}`:".histogram-path",Jt=ge.selectAll(We);tt.to(Jt.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${ht}`);const Ir=N.x+N.width/2;Jt.each(function(){var Ne;const it=this.getAttribute("data-full-height-path");if(!it)return;const ut=parseFloat(this.getAttribute("data-x-position")||"0"),wt=parseFloat(this.getAttribute("data-timestamp")||"0"),Pt=((Ne=U.get(wt))==null?void 0:Ne.width)||0,de=ut+Pt/2,He=Math.abs(de-Ir)*8e-4;tt.to(this,{attr:{d:it},duration:oe,ease:"power2.out"},`seatsToBar+=${ht+He}`)});const _r=ht+oe,ji=R[R.length-1],mn=a(new Date(ji))+B,Wo=a.invert(mn).getTime(),Nr=t.map(it=>{const ut=it[it.length-1],wt={...ut,data:{...ut.data,timestamp:Wo}};return[...it,wt]});Ly(e,Nr,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v});const Ho=v?`.area-${v}`:".area",yn=e.selectAll(Ho);yn.attr("opacity",0),tt.to(Jt.nodes(),{opacity:0,duration:se,ease:"power2.inOut"},`seatsToBar+=${_r}`);const Nl=K.selectAll("path").nodes();Nl.length>0&&tt.to(Nl,{opacity:0,duration:se,ease:"power2.inOut"},`seatsToBar+=${_r}`),tt.to(yn.nodes(),{opacity:1,duration:se,ease:"power2.inOut"},`seatsToBar+=${_r}`);const mf=c;M.getControls().getTimeline().eventCallback("onComplete",()=>{const it=v?`.morph-bar-${v}`:".morph-bar";e.selectAll(it).remove();const ut=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(ut).remove(),f&&(Jr&&Jr.attr("opacity",1),pn&&pn.attr("opacity",1)),mf()}),M.play()}function iL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h=14,p,y,m,d,b,v){var dn;const x=v?`.chart-content-group-${v}`:".chart-content-group";let _=e.select(x);if(_.empty()){const et=e.attr("clip-path"),gt=et?((dn=et.match(/url\(#(.+)\)/))==null?void 0:dn[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,_t=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";_=e.append("g").attr("class",_t).attr("clip-path",`url(#${gt})`)}const g=v?`.area-${v}`:".area",w=e.selectAll(g);if(w.size()===0){aL(e,r,n,s,l,v),c();return}const S={areaToBar:u*.18,barsShrink:u*.22,barSlide:u*.22,axesHide:u*.03,barToRings:u*.07,ringsExpand:u*.18,ringsHold:u*.05,ringsToSeats:u*.07},A=v?Xi.get(v):void 0;A&&(A.destroy(),v&&Xi.delete(v));const T=et=>et<.18?"areaToBar":et<.4?"barsShrink":et<.62?"barSlide":et<.65?"axesHide":et<.72?"barToRings":et<.9?"ringsExpand":et<.95?"ringsHold":"ringsToSeats",M=new sE({seatsToRings:S.ringsToSeats,ringsHold:S.ringsHold,ringsToBar:S.barToRings,axesReveal:S.axesHide,barSlide:S.barSlide,barsGrow:S.barsShrink,barsToArea:S.areaToBar},{onStageComplete:et=>{},onProgress:et=>{if(d){const gt=T(et);d(et,gt)}},onComplete:()=>{c()}});v&&Xi.set(v,M),m&&m(M.getControls().getTimeline());const E=t[0].map(et=>et.data).map(et=>et.timestamp),C=b??Math.max(...E),$=new Map,j=[];E.forEach((et,gt)=>{const _t=a(new Date(et)),ht=E[gt+1];if(ht){const Dt=a(new Date(ht))-_t;j.push(Dt)}});const k=j.length>0?j.reduce((et,gt)=>et+gt,0)/j.length:30;E.forEach((et,gt)=>{const _t=a(new Date(et)),ht=E[gt+1],Dt=gt===E.length-1?k:a(new Date(ht))-_t;$.set(et,{x:_t,width:Dt})});const R=M.getControls().getTimeline(),L=S.areaToBar/1e3,U=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",I=_.append("g").attr("class",U);E.forEach(et=>{const gt=$.get(et);gt&&r.forEach((_t,ht)=>{const Mt=ws(t,r,$,o,l,ht,et,!1);if(!Mt)return;const Dt=v?`histogram-path histogram-path-${v} category-${Ye(_t.dataKey)}`:`histogram-path category-${Ye(_t.dataKey)}`;I.append("path").attr("class",Dt).attr("d",Mt).attr("fill",_t.color).attr("stroke",_t.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",_t.dataKey).attr("data-timestamp",et).attr("data-x-position",gt.x)})});const B=v?`.histogram-path-${v}`:".histogram-path",q=I.selectAll(B);R.to(w.nodes(),{opacity:0,duration:L,ease:"power2.inOut"},"areaToBar"),R.to(q.nodes(),{opacity:1,duration:L,ease:"power2.inOut"},"areaToBar");const N=S.barsShrink/1e3,G=L;q.each(function(){const et=parseFloat(this.getAttribute("data-timestamp")||"0");if(et===C)return;const gt=r.find(Mt=>this.classList.contains(`category-${Ye(Mt.dataKey)}`));if(!gt)return;const _t=r.indexOf(gt),ht=ws(t,r,$,o,l,_t,et,!0);ht&&R.to(this,{attr:{d:ht},duration:N,ease:"power2.in"},G)});const F=S.axesHide/1e3,K=G+N;if(f){const et=e.select(".axis-x"),gt=e.select(".axis-y");et.empty()||R.to(et.node(),{opacity:0,duration:F,ease:"power2.inOut"},K),gt.empty()||R.to(gt.node(),{opacity:0,duration:F,ease:"power2.inOut"},K)}const Z=_.select(".grid-vertical"),X=_.select(".grid-horizontal");Z.empty()||R.to(Z.node(),{opacity:0,duration:F,ease:"power2.inOut"},K),X.empty()||R.to(X.node(),{opacity:0,duration:F,ease:"power2.inOut"},K);const z=[];t.forEach((et,gt)=>{const _t=et.find(Mt=>Mt.data.timestamp===C);if(!_t)return;const ht=r[gt];ht&&z.push({category:ht.label,dataKey:ht.dataKey,color:ht.color,y0:_t[0],y1:_t[1]})}),z.sort((et,gt)=>gt.y0-et.y0);const Y=z.reduce((et,gt)=>et+(gt.y1-gt.y0),0),V=n.radius-n.innerRadius,D=s/2,rt=n.radius+10,W=l-n.radius*.3,tt=Math.max(rt,W),ct=V*.6,mt=l*.8,Et=tt,dt=S.barSlide/1e3,nt=K+F,pt=666,jt=q.nodes().filter(et=>parseFloat(et.getAttribute("data-timestamp")||"0")!==C);R.to(jt,{opacity:0,duration:dt*.2,ease:"power2.out"},nt);const lt=q.nodes().filter(et=>parseFloat(et.getAttribute("data-timestamp")||"0")===C);lt.forEach(et=>{const gt=et.getAttribute("data-category");if(!gt)return;const _t=z.find(Jt=>Jt.dataKey===gt);if(!_t)return;const Dt=(_t.y1-_t.y0)/Y*mt;let oe=0;for(const Jt of r){const Ir=z.find(Aa=>Aa.dataKey===Jt.dataKey);if(!Ir)continue;if(Ir.dataKey===_t.dataKey)break;const ji=(Ir.y1-Ir.y0)/Y;oe+=ji*mt}const se=Et-oe,le=Et-oe-Dt,ge=pt-ct/2,We=`M ${ge} ${se} L ${ge} ${le} L ${ge+ct} ${le} L ${ge+ct} ${se} Z`;R.to(et,{attr:{d:We},duration:dt,ease:"power2.inOut"},nt)});const Tt=S.barToRings/1e3,yt=nt+dt,bt=S.ringsExpand/1e3,qt=yt+Tt,Nt=S.ringsHold/1e3,Rt=qt+bt,Lt=S.ringsToSeats/1e3,tr=Rt+Nt,ze=Math.max(...n.seats.map(et=>et.ring)),ke=n.seats.filter(et=>et.ring===ze),Ie=_.append("g").attr("class",`slinky-${v||"h2p-default"}`),$e=()=>{Ie.remove()};ke.forEach((et,gt)=>{const _t=r.find(ht=>ht.label===et.category);_t&&Ie.append("line").attr("class","slinky-ring").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",0).attr("stroke",_t.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").attr("data-category",et.category).attr("data-category-index",et.categoryIndex).attr("data-ring-index",gt).attr("data-seat-x",D+et.x).attr("data-seat-y",tt+et.y).attr("data-seat-angle",Math.atan2(et.y,et.x)).style("opacity",0)});const Zr=Ie.selectAll(".slinky-ring").nodes(),Dr=pt,ei=mt/Zr.length,sr=[...Zr].sort((et,gt)=>{const _t=parseFloat(et.getAttribute("data-seat-angle")||"0");return parseFloat(gt.getAttribute("data-seat-angle")||"0")-_t}),fn=Et;sr.forEach((et,gt)=>{const _t=fn-gt*ei,Mt=ct/2,Dt=Dr-Mt,oe=Dr+Mt;et.setAttribute("x1",Dt.toString()),et.setAttribute("y1",_t.toString()),et.setAttribute("x2",oe.toString()),et.setAttribute("y2",_t.toString()),et.style.opacity="0"}),R.to(lt,{opacity:0,duration:Tt*.7,ease:"power2.out"},yt+Tt*.3),R.to(sr,{opacity:1,duration:Tt,ease:"power2.in",stagger:.005},yt);const xr=V*.8;sr.forEach((et,gt)=>{const _t=parseFloat(et.getAttribute("data-seat-x")||"0"),ht=parseFloat(et.getAttribute("data-seat-y")||"0"),Mt=parseFloat(et.getAttribute("data-seat-angle")||"0"),Dt=(sr.length-1-gt)/sr.length*(bt*.4),oe=parseFloat(et.getAttribute("x1")||"0"),se=parseFloat(et.getAttribute("y1")||"0"),le=parseFloat(et.getAttribute("x2")||"0"),ge=parseFloat(et.getAttribute("y2")||"0"),We=(oe+le)/2,Jt=(se+ge)/2,Ir=Math.atan2(ge-se,le-oe),_r=Math.sqrt(Math.pow(le-oe,2)+Math.pow(ge-se,2)),ji=_t-xr/2*Math.cos(Mt),Aa=ht-xr/2*Math.sin(Mt);R.to({progress:0},{progress:1,duration:bt*.7,ease:"power2.out",onUpdate:function(){const mn=this.progress(),Ri=We+(ji-We)*mn,Wo=Jt+(Aa-Jt)*mn,Nr=Ir+(Mt-Ir)*mn,yn=(_r+(xr-_r)*mn)/2,Nl=Ri-yn*Math.cos(Nr),mf=Wo-yn*Math.sin(Nr),Ll=Ri+yn*Math.cos(Nr),it=Wo+yn*Math.sin(Nr);et.setAttribute("x1",Nl.toString()),et.setAttribute("y1",mf.toString()),et.setAttribute("x2",Ll.toString()),et.setAttribute("y2",it.toString())}},qt+Dt),R.to(et,{opacity:.9,duration:bt*.3,ease:"power2.in"},qt+Dt)}),R.call(()=>{d&&d(R.progress(),"ringsHold")},[],Rt);const $i=v?`parliament parliament-${v}`:"parliament",ri=_.append("g").attr("class",$i);n.seats.forEach((et,gt)=>{const _t=r.find(le=>le.label===et.category);if(!_t)return;const ht=D+et.x,Mt=tt+et.y;let Dt,oe,se;et.ring===ze?(Dt=ht,oe=Mt,se=2):(Dt=ht,oe=Mt,se=et.radius),ri.append("circle").attr("cx",Dt).attr("cy",oe).attr("r",se).attr("fill",_t.color).attr("stroke",_t.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>v?`seat seat-${v} seat-${Ye(et.category)}`:`seat seat-${Ye(et.category)}`).attr("data-layout-index",gt).attr("data-ring",et.ring).attr("data-final-x",ht).attr("data-final-y",Mt).attr("data-final-r",et.radius)});const er=v?`.seat-${v}`:".seat",ni=ri.selectAll(er);R.to(Zr,{opacity:0,duration:Lt*.2,ease:"power3.out"},tr),R.to(ni.nodes(),{opacity:.8,duration:Lt*.3,ease:"power2.in"},tr+Lt*.25);const hn=ni.nodes(),pe=[],Ue=[];hn.forEach(et=>{parseInt(et.getAttribute("data-ring")||"0")===ze?pe.push(et):Ue.push(et)});const rr=Lt*.2,Jr=Lt*.7;pe.forEach(et=>{const gt=parseFloat(et.getAttribute("data-final-r")||"4");R.to(et,{attr:{r:gt},opacity:1,duration:Jr*.6,ease:"power2.out"},tr+rr)}),Ue.length>0&&R.to(Ue,{opacity:1,duration:Jr*.5,ease:"power2.in"},tr+rr+Lt*.15);const pn=c;M.getControls().getTimeline().eventCallback("onComplete",()=>{const et=v?`.areas-${v}`:".areas",gt=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(et).remove(),e.selectAll(gt).remove(),$e(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),_.selectAll(".grid-vertical").remove(),_.selectAll(".grid-horizontal").remove();const _t=v?`.parliament-label-${v}`:".parliament-label";if(e.select(_t).empty()){const Mt=s/2,Dt=n.radius+10,oe=l-n.radius*.3,se=Math.max(Dt,oe),le=v?`parliament-label parliament-label-${v}`:"parliament-label",ge=e.append("g").attr("class",le).attr("transform",`translate(${Mt},${se-n.radius*.15})`).style("opacity","0").style("pointer-events","none");ge.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),ge.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const We=ge.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");We.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),We.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}pn()}),M.play()}function aL(e,t,r,n,i,a){const o=n/2,s=r.radius+10,l=i-r.radius*.3,u=Math.max(s,l);lE(e,r,t,{centerX:o,centerY:u,addClasses:!0,instanceId:a,parliamentRadius:r.radius})}function qu(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=ee(e).select(a);if(!o.empty())if(t){o.style("opacity","1"),o.select(".label-category").text(t.label).style("fill","#666");const s=t.value>1?"repos":"repo";o.select(".label-value").text(`${t.value} ${s}`).style("fill",t.color);const l=o.select(".scale-indicator");r?l.style("opacity","1").select("text").text(`= ~${n} repos`):l.style("opacity","0")}else o.style("opacity","0")}function Hf(e,t,r,n,i,a,o,s,l){const u=e.querySelectorAll(".seat");if(!u||u.length===0)return;const c=r[r.length-1];if(!c)return;const f=[];u.forEach(p=>{const y=p;y.style.cursor="pointer",y.style.transition="fill-opacity 150ms ease, stroke-opacity 150ms ease"}),u.forEach(p=>{const d=(p.getAttribute("class")||"").split(/\s+/).filter(g=>g.startsWith("seat-")),b=d[d.length-1];if(!b)return;const v=b.substring(5),x=t.find(g=>Ye(g.label)===v);if(!x)return;const _=()=>{i(x.label);const g=Math.round(c.values[x.dataKey]||0),w=Qv(x.color),S={label:x.label,value:g,color:w};a&&a(S),qu(e,S,o??!1,s??1,l),Ss(e,x.label)};p.addEventListener("mouseenter",_),f.push({element:p,handler:_})});const h=()=>{i(null),a&&a(null),qu(e,null,!1,1,l),Ss(e,null)};return e.addEventListener("mouseleave",h),n&&Ss(e,n),()=>{f.forEach(({element:p,handler:y})=>{p.removeEventListener("mouseenter",y)}),e.removeEventListener("mouseleave",h),u.forEach(p=>{const y=p;y.style.cursor="",y.style.transition=""})}}function Ss(e,t){const r=e.querySelectorAll(".seat"),n=t?Ye(t):null;r.forEach(i=>{const a=i,l=(i.getAttribute("class")||"").split(/\s+/).filter(f=>f.startsWith("seat-")),u=l[l.length-1];if(!u)return;const c=u.substring(5);n?c===n?(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1")):(a.setAttribute("fill-opacity","0.3"),a.setAttribute("stroke-opacity","0.2")):(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1"))})}const uE=({data:e,categories:t,mode:r,width:n=900,height:i=400,margin:a={top:10,right:30,bottom:40,left:60},timeRange:o,showGrid:s=!0,showAxes:l=!0,axisLabelColor:u,axisLabelSize:c=14,formatDate:f,formatValue:h,markers:p=[],arcAngle:y=200,parliamentRadius:m=200,seatSize:d=4.5,animationDuration:b=900,onMorphComplete:v,onAnimationStateChange:x,onTimelineReady:_,onAnimationProgress:g,onHoveredDataChange:w,hoveredCategory:S,maxSeats:A=500,showTooltip:T=!0,showTable:M=!1,showScaledIndicator:P=!0,parliamentTimestamp:E,enableBrush:C=!1,onTimeRangeChange:$,minAllowedTime:j,maxAllowedTime:k,timelineEvents:R=[],showTimeline:L=!1,timelineHeight:U=40,timelineOffset:I,brushColor:B="#69b3a2"})=>{const q=O.useRef(null),N=O.useCallback(at=>{w&&w(at)},[w]),G=12,K=I??6+G+c+G,Z=e[e.length-1],X=Z?t.reduce((at,mt)=>at+(Z.values[mt.dataKey]||0),0):0,z=X>A,Y=z?Math.round(X/A):1,V=L&&r==="stacked-area"?i+U+K:i,{isMorphing:D,currentMode:rt,visibleMarkers:W,hoveredMarker:tt,hoveredTimelineEvent:ct}=JN({containerRef:q,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:l,axisLabelColor:u,axisLabelSize:c,formatDate:f,formatValue:h,markers:p,arcAngle:y,parliamentRadius:m,seatSize:d,animationDuration:b,onMorphComplete:v,onAnimationStateChange:x,onTimelineReady:_,onAnimationProgress:g,onHoveredDataChange:N,hoveredCategory:S,maxSeats:A,parliamentTimestamp:E,enableBrush:C,onTimeRangeChange:$,minAllowedTime:j,maxAllowedTime:k,showScaleIndicator:P&&z,reposPerSeat:Y,timelineEvents:R,showTimeline:L,timelineHeight:U,timelineOffset:K,brushColor:B});return H.jsxs(Q.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[H.jsx("svg",{ref:q,viewBox:`0 0 ${n} ${V}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),rt==="area"&&W.map(at=>{const mt=(at.x+a.left)/n*100,Et=a.top/i*100,dt=new Date(at.timestamp),nt=f?f(at.timestamp):dt.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),pt=H.jsxs(Q.Box,{children:[H.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:at.label?.5:0},children:nt}),at.label&&H.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:at.label})]});return H.jsx(Q.Tooltip,{title:pt,open:(tt==null?void 0:tt.timestamp)===at.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:H.jsx(Q.Box,{sx:{position:"absolute",left:`${mt}%`,top:`${Et}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},at.timestamp)}),ct&&rt==="area"&&H.jsx(Q.Tooltip,{title:H.jsxs(Q.Box,{children:[H.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:f?f(ct.timestamp):new Date(ct.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),H.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:ct.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:H.jsx(Q.Box,{sx:{position:"absolute",left:`${(ct.x+a.left)/n*100}%`,top:`${(i+K+U/2)/V*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),D&&H.jsxs(Q.Box,{sx:{position:"absolute",top:8,right:8,padding:"4px 8px",backgroundColor:"rgba(0,0,0,0.7)",color:"white",borderRadius:"4px",fontSize:"12px",pointerEvents:"none",display:"none"},children:["Morphing: ",rt," → ",r]})]})},cE=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:28,maxSeatSize:28},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:24,maxSeatSize:24},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:20,maxSeatSize:20},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:16.5,maxSeatSize:16.5},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:15,maxSeatSize:15},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:14.5,maxSeatSize:14.5}],t0=({repositoryCount:e})=>{const t=cE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},e0=({repositoryCount:e})=>{const t=cE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 6.5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10};class kl{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}kl.prototype.normal={};kl.prototype.property={};kl.prototype.space=void 0;function fE(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new kl(r,n,t)}function Ks(e){return e.toLowerCase()}class br{constructor(t,r){this.attribute=r,this.property=t}}br.prototype.attribute="";br.prototype.booleanish=!1;br.prototype.boolean=!1;br.prototype.commaOrSpaceSeparated=!1;br.prototype.commaSeparated=!1;br.prototype.defined=!1;br.prototype.mustUseProperty=!1;br.prototype.number=!1;br.prototype.overloadedBoolean=!1;br.prototype.property="";br.prototype.spaceSeparated=!1;br.prototype.space=void 0;let oL=0;const Ot=xa(),be=xa(),By=xa(),ot=xa(),Qt=xa(),Ha=xa(),Sr=xa();function xa(){return 2**++oL}const qy=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ot,booleanish:be,commaOrSpaceSeparated:Sr,commaSeparated:Ha,number:ot,overloadedBoolean:By,spaceSeparated:Qt},Symbol.toStringTag,{value:"Module"})),Gf=Object.keys(qy);class r0 extends br{constructor(t,r,n,i){let a=-1;if(super(t,r),ax(this,"space",i),typeof n=="number")for(;++a<Gf.length;){const o=Gf[a];ax(this,Gf[a],(n&qy[o])===qy[o])}}}r0.prototype.defined=!0;function ax(e,t,r){r&&(e[t]=r)}function Ro(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new r0(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Ks(n)]=n,r[Ks(a.attribute)]=n}return new kl(t,r,e.space)}const hE=Ro({properties:{ariaActiveDescendant:null,ariaAtomic:be,ariaAutoComplete:null,ariaBusy:be,ariaChecked:be,ariaColCount:ot,ariaColIndex:ot,ariaColSpan:ot,ariaControls:Qt,ariaCurrent:null,ariaDescribedBy:Qt,ariaDetails:null,ariaDisabled:be,ariaDropEffect:Qt,ariaErrorMessage:null,ariaExpanded:be,ariaFlowTo:Qt,ariaGrabbed:be,ariaHasPopup:null,ariaHidden:be,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qt,ariaLevel:ot,ariaLive:null,ariaModal:be,ariaMultiLine:be,ariaMultiSelectable:be,ariaOrientation:null,ariaOwns:Qt,ariaPlaceholder:null,ariaPosInSet:ot,ariaPressed:be,ariaReadOnly:be,ariaRelevant:null,ariaRequired:be,ariaRoleDescription:Qt,ariaRowCount:ot,ariaRowIndex:ot,ariaRowSpan:ot,ariaSelected:be,ariaSetSize:ot,ariaSort:null,ariaValueMax:ot,ariaValueMin:ot,ariaValueNow:ot,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function pE(e,t){return t in e?e[t]:t}function dE(e,t){return pE(e,t.toLowerCase())}const sL=Ro({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ha,acceptCharset:Qt,accessKey:Qt,action:null,allow:null,allowFullScreen:Ot,allowPaymentRequest:Ot,allowUserMedia:Ot,alt:null,as:null,async:Ot,autoCapitalize:null,autoComplete:Qt,autoFocus:Ot,autoPlay:Ot,blocking:Qt,capture:null,charSet:null,checked:Ot,cite:null,className:Qt,cols:ot,colSpan:null,content:null,contentEditable:be,controls:Ot,controlsList:Qt,coords:ot|Ha,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ot,defer:Ot,dir:null,dirName:null,disabled:Ot,download:By,draggable:be,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ot,formTarget:null,headers:Qt,height:ot,hidden:By,high:ot,href:null,hrefLang:null,htmlFor:Qt,httpEquiv:Qt,id:null,imageSizes:null,imageSrcSet:null,inert:Ot,inputMode:null,integrity:null,is:null,isMap:Ot,itemId:null,itemProp:Qt,itemRef:Qt,itemScope:Ot,itemType:Qt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ot,low:ot,manifest:null,max:null,maxLength:ot,media:null,method:null,min:null,minLength:ot,multiple:Ot,muted:Ot,name:null,nonce:null,noModule:Ot,noValidate:Ot,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ot,optimum:ot,pattern:null,ping:Qt,placeholder:null,playsInline:Ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ot,referrerPolicy:null,rel:Qt,required:Ot,reversed:Ot,rows:ot,rowSpan:ot,sandbox:Qt,scope:null,scoped:Ot,seamless:Ot,selected:Ot,shadowRootClonable:Ot,shadowRootDelegatesFocus:Ot,shadowRootMode:null,shape:null,size:ot,sizes:null,slot:null,span:ot,spellCheck:be,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ot,step:null,style:null,tabIndex:ot,target:null,title:null,translate:null,type:null,typeMustMatch:Ot,useMap:null,value:be,width:ot,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qt,axis:null,background:null,bgColor:null,border:ot,borderColor:null,bottomMargin:ot,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ot,declare:Ot,event:null,face:null,frame:null,frameBorder:null,hSpace:ot,leftMargin:ot,link:null,longDesc:null,lowSrc:null,marginHeight:ot,marginWidth:ot,noResize:Ot,noHref:Ot,noShade:Ot,noWrap:Ot,object:null,profile:null,prompt:null,rev:null,rightMargin:ot,rules:null,scheme:null,scrolling:be,standby:null,summary:null,text:null,topMargin:ot,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ot,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ot,disableRemotePlayback:Ot,prefix:null,property:null,results:ot,security:null,unselectable:null},space:"html",transform:dE}),lL=Ro({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Sr,accentHeight:ot,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ot,amplitude:ot,arabicForm:null,ascent:ot,attributeName:null,attributeType:null,azimuth:ot,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ot,by:null,calcMode:null,capHeight:ot,className:Qt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ot,diffuseConstant:ot,direction:null,display:null,dur:null,divisor:ot,dominantBaseline:null,download:Ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:ot,enableBackground:null,end:null,event:null,exponent:ot,externalResourcesRequired:null,fill:null,fillOpacity:ot,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ha,g2:Ha,glyphName:Ha,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ot,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ot,horizOriginX:ot,horizOriginY:ot,id:null,ideographic:ot,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ot,k:ot,k1:ot,k2:ot,k3:ot,k4:ot,kernelMatrix:Sr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ot,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ot,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ot,overlineThickness:ot,paintOrder:null,panose1:null,path:null,pathLength:ot,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ot,pointsAtY:ot,pointsAtZ:ot,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sr,rev:Sr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sr,requiredFeatures:Sr,requiredFonts:Sr,requiredFormats:Sr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ot,specularExponent:ot,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ot,strikethroughThickness:ot,string:null,stroke:null,strokeDashArray:Sr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ot,strokeOpacity:ot,strokeWidth:null,style:null,surfaceScale:ot,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sr,tabIndex:ot,tableValues:null,target:null,targetX:ot,targetY:ot,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ot,underlineThickness:ot,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ot,values:null,vAlphabetic:ot,vMathematical:ot,vectorEffect:null,vHanging:ot,vIdeographic:ot,version:null,vertAdvY:ot,vertOriginX:ot,vertOriginY:ot,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ot,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pE}),mE=Ro({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),yE=Ro({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:dE}),gE=Ro({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),uL=/[A-Z]/g,ox=/-[a-z]/g,cL=/^data[-\w.:]+$/i;function vE(e,t){const r=Ks(t);let n=t,i=br;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&cL.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ox,hL);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ox.test(a)){let o=a.replace(uL,fL);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=r0}return new i(n,t)}function fL(e){return"-"+e.toLowerCase()}function hL(e){return e.charAt(1).toUpperCase()}const bE=fE([hE,sL,mE,yE,gE],"html"),n0=fE([hE,lL,mE,yE,gE],"svg");function sx(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function pL(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const lx=/[#.]/g;function dL(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){lx.lastIndex=i;const s=lx.exec(r),l=r.slice(i,s?s.index:r.length);l&&(a?a==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:o=l,i+=l.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function ux(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function mL(e){return e.join(" ").trim()}function xE(e,t,r){const n=r?bL(r):void 0;function i(a,o,...s){let l;if(a==null){l={type:"root",children:[]};const u=o;s.unshift(u)}else{l=dL(a,t);const u=l.tagName.toLowerCase(),c=n?n.get(u):void 0;if(l.tagName=c||u,yL(o))s.unshift(o);else for(const[f,h]of Object.entries(o))gL(e,l.properties,f,h)}for(const u of s)Fy(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function yL(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function gL(e,t,r,n){const i=vE(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=ux(n):i.commaSeparated?a=sx(n):i.commaOrSpaceSeparated?a=ux(sx(n).join(" ")):a=cx(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?vL(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(cx(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Fy(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Fy(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Fy(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function cx(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Ks(r)===Ks(t)))return!0}return r}function vL(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function bL(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const xL=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];xE(bE,"div");const $l=xE(n0,"g",xL),_E=(e=$l)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:yr.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:yr.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:yr.neoGrey[400],"stroke-width":.5})]),wE=(e=$l)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),SE=(e=$l)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),Kt={greyHatch:{background:yr.neoGrey[200],lines:yr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},_L=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>H.jsx(Q.Box,{className:"category-table",sx:{width:"100%",display:"flex",justifyContent:"center",opacity:i?1:0,transition:"opacity 0.3s ease-in-out","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>r(null),children:H.jsxs(Q.Table,{"aria-label":"Categories summary",className:"category-summary-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[H.jsx("thead",{children:H.jsxs(Q.TableRow,{children:[H.jsx(Q.TableCell,{}),H.jsx(Q.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?H.jsxs(H.Fragment,{children:[H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):H.jsxs(H.Fragment,{children:[H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),H.jsx("tbody",{children:e.map(a=>{const o=a.color==="url(#greyHatchPattern)"?Kt.greyHatch.lines:a.color==="url(#dataMissingHatchPattern)"?Kt.dataMissingHatch.lines:a.color==="url(#noLstHatchPattern)"?Kt.noLstHatch.lines:a.color;return H.jsxs(Q.TableRow,{onMouseEnter:()=>r(a.id),sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:t===a.id?`${o}15`:"transparent","&:hover":{backgroundColor:`${o}15`}},children:[H.jsx(Q.TableCell,{align:"center",sx:{width:20},children:H.jsx(Q.Box,{sx:{width:n==="historical"?4:12,height:12,backgroundColor:a.color==="url(#greyHatchPattern)"?Kt.greyHatch.background:a.color==="url(#dataMissingHatchPattern)"?Kt.dataMissingHatch.background:a.color==="url(#noLstHatchPattern)"?Kt.noLstHatch.background:a.color,borderRadius:n==="historical"?2:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:t===a.id?"scale(1.2)":"scale(1)",...a.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
16
16
  0deg,
17
17
  transparent,
18
18
  transparent 3px,
19
- ${zt.greyHatch.lines} 3px,
20
- ${zt.greyHatch.lines} 4px
21
- )`,borderRadius:"50%"}},...a.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
19
+ ${Kt.greyHatch.lines} 3px,
20
+ ${Kt.greyHatch.lines} 4px
21
+ )`,borderRadius:n==="historical"?2:"50%"}},...a.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
22
22
  45deg,
23
23
  transparent,
24
24
  transparent 3px,
25
- ${zt.dataMissingHatch.lines} 3px,
26
- ${zt.dataMissingHatch.lines} 4px
27
- )`,borderRadius:"50%"}},...a.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
25
+ ${Kt.dataMissingHatch.lines} 3px,
26
+ ${Kt.dataMissingHatch.lines} 4px
27
+ )`,borderRadius:n==="historical"?2:"50%"}},...a.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
28
28
  -45deg,
29
29
  transparent,
30
30
  transparent 3px,
31
- ${zt.noLstHatch.lines} 3px,
32
- ${zt.noLstHatch.lines} 4px
33
- )`,borderRadius:"50%"}}}})}),H.jsx(tt.TableCell,{children:H.jsxs(tt.Stack,{direction:"row",alignItems:"center",gap:.5,children:[H.jsx("span",{children:a.label}),a.tooltip&&H.jsx(tt.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:H.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?H.jsxs(H.Fragment,{children:[H.jsx(tt.TableCell,{align:"right",children:a.value}),H.jsxs(tt.TableCell,{align:"right",children:[a.percentage,"%"]})]}):H.jsxs(H.Fragment,{children:[H.jsx(tt.TableCell,{align:"right",children:a.value}),H.jsx(tt.TableCell,{align:"right",children:a.max??"-"}),H.jsx(tt.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),f_={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},TL=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,l=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,u=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:f_[f.label]};if(l){const d=l.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:f_[h.label]})}}}return[...u,...c]},PL=e=>{if(!e.timeSeries[e.timeSeries.length-1])throw new Error("ChronoChart: No data points available");const r=e.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=e.categories.map(i=>{var a;return{dataKey:i.id,label:i.label,color:i.color,fillOpacity:.7,strokeWidth:(a=i.parliamentMapping)!=null&&a.isSpecialCategory?3:1.5,strokeDasharray:i.strokeDasharray,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},EL=e=>{if(!e.timeSeries||e.timeSeries.length===0)throw new Error("ChronoChart: timeSeries must not be empty");if(!e.categories||e.categories.length===0)throw new Error("ChronoChart: categories must not be empty");if(!e.metadata||typeof e.metadata.total!="number")throw new Error("ChronoChart: metadata.total is required");if(!e.timeSeries.every((n,i)=>i===0||n.timestamp>=e.timeSeries[i-1].timestamp))throw new Error("ChronoChart: timeSeries must be sorted by timestamp (ascending)");const r=e.timeSeries[0];if(r){for(const n of e.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoChart: Category "${n.id}" not found in timeSeries data`)}},PE=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:l,enableBrush:u=!1,showLegend:c=!0,showTooltip:f=!0,showGrid:h=!0,enableAnimation:p=!0,animationDuration:y=5439,disableTimeline:m=!1,formatDate:d,formatValue:v,onAnimationStateChange:w,onTimelineReady:b,onAnimationProgress:_})=>{EL(e);const[g,x]=O.useState(null),[S,A]=O.useState(!0),T=O.useRef("historical"),C=O.useRef(void 0),P=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),E=O.useMemo(()=>{var G;let B;return t!==void 0&&e.timeSeries[t]?(B=e.timeSeries[t].timestamp,C.current=B):T.current==="point-in-time"&&P==="historical"&&C.current!==void 0?B=C.current:B=(G=e.timeSeries[e.timeSeries.length-1])==null?void 0:G.timestamp,T.current=P,B},[t,e.timeSeries,P]),k=e.timeSeries[0].timestamp,$=e.timeSeries[e.timeSeries.length-1].timestamp,[j,M]=O.useState([k,$]),I=s??j,q=O.useCallback(B=>{l?l(B):M(B)},[l]);O.useEffect(()=>{x(null)},[P]);const F=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),N=O.useMemo(()=>PL(e),[e]),R=O.useMemo(()=>TL(e,P),[e,P]),L=O.useMemo(()=>{const B=e.timeSeries[e.timeSeries.length-1];return B?Object.values(B.values).reduce((G,Z)=>G+Z,0):0},[e.timeSeries]),W=O.useMemo(()=>Vv({repositoryCount:L}),[L]),Y=O.useMemo(()=>Zv({repositoryCount:L}),[L]),z=O.useMemo(()=>{const B=o-F.top-F.bottom;return Math.round(B*.9)},[o,F]),V=O.useMemo(()=>e.events?e.events.map(B=>({timestamp:B.timestamp,label:B.eventName,color:typeof B.color=="string"?B.color:"#2F42FF"})):[],[e.events]),J=O.useCallback(B=>{if(B){const G=e.categories.find(Z=>Z.label===B.label);x((G==null?void 0:G.id)??null)}else x(null)},[e.categories]),K=O.useCallback(B=>{A(!B),w&&w(B)},[w]);return H.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&H.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&H.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&H.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),H.jsx(tt.Box,{sx:{position:"relative",width:"100%"},children:H.jsx(hE,{data:N.data,categories:N.categories,mode:P==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:I,onTimeRangeChange:q,enableBrush:u,showGrid:h,showAxes:!0,margin:F,markers:V,formatDate:d,formatValue:v,animationDuration:y,onAnimationStateChange:K,onTimelineReady:b,onAnimationProgress:_,onHoveredDataChange:J,hoveredCategory:g,arcAngle:W,parliamentRadius:z,seatSize:Y,parliamentTimestamp:E,timelineEvents:e.events??[],showTimeline:P==="historical"&&!m})}),H.jsx(OL,{categories:R,activeCategory:g,onCategoryHover:x,mode:P,visible:S})]})},CL=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:l=!0,showYAxis:u=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:v})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const w=te(e.current),b=n-a.left-a.right,_=i-a.top-a.bottom;w.selectAll("*").remove();const g=w.append("g").attr("transform",`translate(${a.left},${a.top})`),x=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;w.append("defs").append("clipPath").attr("id",x).append("rect").attr("x",0).attr("y",0).attr("width",b).attr("height",_);const S=g.append("g").attr("clip-path",`url(#${x})`),A=r.map(R=>R.dataKey),T=Eu().keys(A),C=T(t),P=t.map(R=>R.timestamp),E=o?o[0]:Math.min(...P),k=o?o[1]:Math.max(...P),$=wu().domain([new Date(E),new Date(k)]).range([0,b]),j=t.filter(R=>R.timestamp>=E&&R.timestamp<=k),M=T(j),I=M.length>0?Math.max(...M[M.length-1].map(R=>R[1]??0)):0,q=ta().domain([0,I*1.1]).range([_,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Os($).ticks(6).tickSize(_).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Ts(q).ticks(5).tickSize(-b).tickFormat(()=>"")));const F=Li().x(R=>$(new Date(R.data.timestamp))).y0(R=>q(R[0])).y1(R=>q(R[1])).curve(xI.alpha(.5)),N=S.append("g").attr("class","areas");if(C.forEach((R,L)=>{const W=r[L];if(!W)return;const Y=N.append("path").datum(R).attr("class",`area area-${W.dataKey}`).attr("fill",W.color).attr("fill-opacity",W.fillOpacity??.7).attr("stroke",W.color).attr("stroke-width",W.strokeWidth??1.5).attr("d",F);W.strokeDasharray&&Y.attr("stroke-dasharray",W.strokeDasharray)}),m.length>0){const R=S.append("g").attr("class","markers"),L=d==="hover"?0:.6,W=m.filter(Y=>Y.timestamp>=E&&Y.timestamp<=k).map(Y=>({...Y,x:$(new Date(Y.timestamp))}));if(W.forEach(Y=>{const z=R.append("line").attr("class","marker-line").attr("data-timestamp",Y.timestamp).attr("x1",Y.x).attr("x2",Y.x).attr("y1",0).attr("y2",_).attr("stroke",Y.color??"#131E7A").attr("stroke-width",2).attr("opacity",L);Y.strokeDasharray&&z.attr("stroke-dasharray",Y.strokeDasharray),Y.label&&R.append("text").attr("class","marker-label").attr("data-timestamp",Y.timestamp).attr("x",Y.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",Y.color??"#131E7A").attr("opacity",L).text(Y.label)}),d==="hover"&&W.length>0){const Y=w.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),z=Y.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),V=Y.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let J=null;const K=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",_).attr("fill","none").attr("pointer-events","all"),B=G=>{let Z=null,D=1/0;if(W.forEach(Kt=>{const St=Math.abs(G-Kt.x);St<D&&(D=St,Z=Kt)}),!Z||D>50)return J!==null&&(J=null,R.selectAll(".marker-line").attr("opacity",0),R.selectAll(".marker-label").attr("opacity",0),Y.style("display","none"),v==null||v(!1)),!1;const U=Z;if(J===null&&(v==null||v(!0)),J===U.timestamp)return!0;J=U.timestamp,R.selectAll(".marker-line").attr("opacity",0),R.selectAll(".marker-label").attr("opacity",0),R.selectAll(".marker-line").filter(function(){return te(this).attr("data-timestamp")===String(U.timestamp)}).attr("opacity",.6),R.selectAll(".marker-label").filter(function(){return te(this).attr("data-timestamp")===String(U.timestamp)}).attr("opacity",1);const it=new Date(U.timestamp),ft=p?p(U.timestamp):it.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),st=U.label?`${U.label}: ${ft}`:ft;V.text(st);const ht=V.node().getBBox(),Tt=8,at=ht.width+Tt*2,dt=ht.height+Tt*2;z.attr("width",at).attr("height",dt);let xt=U.x-at/2;const $t=10;return xt<0?xt=0:xt+at>b&&(xt=b-at),Y.attr("transform",`translate(${a.left+xt},${a.top+$t})`),V.attr("x",at/2).attr("y",dt/2+4),Y.style("display","block"),!0};K.on("mousemove",function(G){const[Z]=Ps(G,this);B(Z)&&G.stopPropagation()}),K.on("mouseleave",function(){J=null,R.selectAll(".marker-line").attr("opacity",0),R.selectAll(".marker-label").attr("opacity",0),Y.style("display","none"),v==null||v(!1)})}}if(l){const R=Os($).ticks(6);p&&R.tickFormat(L=>p(+L)),g.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${_})`).call(R).selectAll("text").attr("font-size",11)}if(u){const R=Ts(q).ticks(5);y&&R.tickFormat(L=>y(+L)),g.append("g").attr("class","axis axis-y").call(R).selectAll("text").attr("font-size",11)}if(c&&h){const R=Ac().extent([[0,0],[b,_]]).on("end",W=>{if(!W.selection)return;const[Y,z]=W.selection,V=[+$.invert(Y),+$.invert(z)];h(V),f&&w.select(".brush").call(R.move,null)}),L=S.append("g").attr("class","brush").call(R);L.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),L.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8)}return()=>{w.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,l,u,c,f,h,p,y,m,d,v])},ML=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:l=400,margin:u={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:v,enableBrush:w=!1,zoomToSelection:b=!1,markers:_=[],markerVisibilityMode:g="hover"})=>{const x=O.useRef(null),[S,A]=O.useState(null),[T,C]=O.useState(!1);O.useEffect(()=>{T&&A(null)},[T]),CL({containerRef:x,data:e,categories:t,width:s,height:l,margin:u,timeRange:c,showGrid:f,showXAxis:p!==void 0?p:h,showYAxis:y!==void 0?y:h,enableBrush:w,zoomToSelection:b,onTimeRangeChange:v,formatDate:m,formatValue:d,markers:_,markerVisibilityMode:g,onMarkerHoverChange:C});const k=j=>{if(!o||!x.current||T)return;const M=x.current.getBoundingClientRect(),I=j.clientX-M.left-u.left,q=j.clientY-M.top,F=s-u.left-u.right;if(I<0||I>F){A(null);return}const N=e.map(G=>G.timestamp),R=c?c[0]:Math.min(...N),L=c?c[1]:Math.max(...N),W=I/F*(L-R)+R,z=((G,Z)=>{let D=0,ot=G.length;for(;D<ot;){const U=D+ot>>>1;G[U]<Z?D=U+1:ot=U}return D})(N,W),V=e[z-1],J=e[z];let K=J;if(V&&J?K=W-V.timestamp>J.timestamp-W?J:V:V&&(K=V),!K){A(null);return}const B=t.map(G=>({label:G.label,value:K[G.dataKey]??0,color:G.color}));A({visible:!0,x:j.clientX-M.left,y:q,timestamp:K.timestamp,values:B})},$=()=>{o&&A(null)};return H.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&H.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&H.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&H.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),H.jsxs(tt.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[H.jsx("svg",{ref:x,viewBox:`0 0 ${s} ${l}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:k,onMouseLeave:$}),o&&S&&S.visible&&H.jsxs(tt.Paper,{elevation:3,sx:{position:"absolute",left:S.x+10,top:S.y-10,pointerEvents:"none",padding:1.5,minWidth:150,zIndex:1e3,transform:S.x>s/2?"translateX(-100%) translateX(-20px)":"none"},children:[H.jsx(tt.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),H.jsx(tt.Stack,{spacing:.5,sx:{mt:1},children:S.values.map(j=>H.jsxs(tt.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[H.jsxs(tt.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[H.jsx(tt.Box,{sx:{width:8,height:8,backgroundColor:j.color,borderRadius:"50%"}}),H.jsxs(tt.Typography,{variant:"caption",children:[j.label,":"]})]}),H.jsx(tt.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d(j.value):j.value})]},j.label))})]})]}),a&&H.jsx(tt.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map(j=>H.jsxs(tt.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[H.jsx(tt.Box,{sx:{width:16,height:16,backgroundColor:j.color,opacity:j.fillOpacity??.7,border:`2px solid ${j.color}`,borderRadius:"2px",...j.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
31
+ ${Kt.noLstHatch.lines} 3px,
32
+ ${Kt.noLstHatch.lines} 4px
33
+ )`,borderRadius:n==="historical"?2:"50%"}}}})}),H.jsx(Q.TableCell,{children:H.jsxs(Q.Stack,{direction:"row",alignItems:"center",gap:.5,children:[H.jsx("span",{children:a.label}),a.tooltip&&H.jsx(Q.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:H.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?H.jsxs(H.Fragment,{children:[H.jsx(Q.TableCell,{align:"right",children:a.value}),H.jsxs(Q.TableCell,{align:"right",children:[a.percentage,"%"]})]}):H.jsxs(H.Fragment,{children:[H.jsx(Q.TableCell,{align:"right",children:a.value}),H.jsx(Q.TableCell,{align:"right",children:a.max??"-"}),H.jsx(Q.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),fx={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},wL=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,l=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,u=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:fx[f.label]};if(l){const d=l.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:fx[h.label]})}}}return[...u,...c]},SL=e=>{if(!e.timeSeries[e.timeSeries.length-1])throw new Error("ChronoChart: No data points available");const r=e.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=e.categories.map(i=>{var a;return{dataKey:i.id,label:i.label,color:i.color,fillOpacity:.7,strokeWidth:(a=i.parliamentMapping)!=null&&a.isSpecialCategory?3:1.5,strokeDasharray:i.strokeDasharray,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},AL=e=>{if(!e.timeSeries||e.timeSeries.length===0)throw new Error("ChronoChart: timeSeries must not be empty");if(!e.categories||e.categories.length===0)throw new Error("ChronoChart: categories must not be empty");if(!e.metadata||typeof e.metadata.total!="number")throw new Error("ChronoChart: metadata.total is required");if(!e.timeSeries.every((n,i)=>i===0||n.timestamp>=e.timeSeries[i-1].timestamp))throw new Error("ChronoChart: timeSeries must be sorted by timestamp (ascending)");const r=e.timeSeries[0];if(r){for(const n of e.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoChart: Category "${n.id}" not found in timeSeries data`)}},AE=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:l,minAllowedTime:u,maxAllowedTime:c,enableBrush:f=!1,showLegend:h=!0,showTooltip:p=!0,showGrid:y=!0,axisLabelColor:m,axisLabelSize:d=14,enableAnimation:b=!0,animationDuration:v=5439,disableTimeline:x=!1,formatDate:_,formatValue:g,onAnimationStateChange:w,onTimelineReady:S,onAnimationProgress:A,brushColor:T="#69b3a2"})=>{AL(e);const[M,P]=O.useState(null),[E,C]=O.useState(!0),$=O.useRef("historical"),j=O.useRef(void 0),k=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),R=O.useMemo(()=>{var tt;let W;return t!==void 0&&e.timeSeries[t]?(W=e.timeSeries[t].timestamp,j.current=W):$.current==="point-in-time"&&k==="historical"&&j.current!==void 0?W=j.current:W=(tt=e.timeSeries[e.timeSeries.length-1])==null?void 0:tt.timestamp,$.current=k,W},[t,e.timeSeries,k]),L=e.timeSeries[0].timestamp,U=e.timeSeries[e.timeSeries.length-1].timestamp,[I,B]=O.useState([L,U]),q=s??I,N=O.useCallback(W=>{const tt=[u!==void 0?Math.max(W[0],u):W[0],c!==void 0?Math.min(W[1],c):W[1]];l?l(tt):B(tt)},[l,u,c]);O.useEffect(()=>{P(null)},[k]);const G=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),F=O.useMemo(()=>SL(e),[e]),K=O.useMemo(()=>wL(e,k),[e,k]),Z=O.useMemo(()=>{const W=e.timeSeries[e.timeSeries.length-1];return W?Object.values(W.values).reduce((tt,ct)=>tt+ct,0):0},[e.timeSeries]),X=O.useMemo(()=>t0({repositoryCount:Z}),[Z]),z=O.useMemo(()=>e0({repositoryCount:Z}),[Z]),Y=O.useMemo(()=>{const W=o-G.top-G.bottom;return Math.round(W*.9)},[o,G]),V=O.useMemo(()=>e.events?e.events.map(W=>({timestamp:W.timestamp,label:W.eventName,color:typeof W.color=="string"?W.color:"#2F42FF"})):[],[e.events]),D=O.useCallback(W=>{if(W){const tt=e.categories.find(ct=>ct.label===W.label);P((tt==null?void 0:tt.id)??null)}else P(null)},[e.categories]),rt=O.useCallback(W=>{C(!W),w&&w(W)},[w]);return H.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&H.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&H.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&H.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),H.jsx(Q.Box,{sx:{position:"relative",width:"100%"},children:H.jsx(uE,{data:F.data,categories:F.categories,mode:k==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:q,onTimeRangeChange:N,minAllowedTime:u,maxAllowedTime:c,enableBrush:f,showGrid:y,showAxes:!0,axisLabelColor:m,axisLabelSize:d,margin:G,markers:V,formatDate:_,formatValue:g,animationDuration:v,onAnimationStateChange:rt,onTimelineReady:S,onAnimationProgress:A,onHoveredDataChange:D,hoveredCategory:M,arcAngle:X,parliamentRadius:Y,seatSize:z,parliamentTimestamp:R,timelineEvents:e.events??[],showTimeline:k==="historical"&&!x,brushColor:T})}),H.jsx(_L,{categories:K,activeCategory:M,onCategoryHover:P,mode:k,visible:E})]})},OL=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:l=!0,showYAxis:u=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:b,brushColor:v="#69b3a2"})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const x=ee(e.current),_=n-a.left-a.right,g=i-a.top-a.bottom;x.selectAll("*").remove();const w=x.append("g").attr("transform",`translate(${a.left},${a.top})`),S=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;x.append("defs").append("clipPath").attr("id",S).append("rect").attr("x",0).attr("y",0).attr("width",_).attr("height",g);const A=w.append("g").attr("clip-path",`url(#${S})`),T=[...t].sort((N,G)=>N.timestamp-G.timestamp),M=r.map(N=>N.dataKey),P=Bs().keys(M),E=P(T),C=t.map(N=>N.timestamp),$=o?o[0]:Math.min(...C),j=o?o[1]:Math.max(...C),k=Ls().domain([new Date($),new Date(j)]).range([0,_]),R=T.filter(N=>N.timestamp>=$&&N.timestamp<=j),L=P(R),U=L.length>0?Math.max(...L[L.length-1].map(N=>N[1]??0)):0,I=_i().domain([0,U*1.1]).range([g,0]).nice();s&&(A.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(oa(k).ticks(6).tickSize(g).tickFormat(()=>"")),A.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(sa(I).ticks(5).tickSize(-_).tickFormat(()=>"")));const B=fi().x(N=>k(new Date(N.data.timestamp))).y0(N=>I(N[0])).y1(N=>I(N[1])).curve(Yn),q=A.append("g").attr("class","areas");if(E.forEach((N,G)=>{const F=r[G];if(!F)return;const K=q.append("path").datum(N).attr("class",`area area-${F.dataKey}`).attr("fill",F.color).attr("fill-opacity",F.fillOpacity??.7).attr("stroke",F.color).attr("stroke-width",F.strokeWidth??1.5).attr("d",B);F.strokeDasharray&&K.attr("stroke-dasharray",F.strokeDasharray)}),m.length>0){const N=A.append("g").attr("class","markers"),G=d==="hover"?0:.6,F=m.filter(K=>K.timestamp>=$&&K.timestamp<=j).map(K=>({...K,x:k(new Date(K.timestamp))}));if(F.forEach(K=>{const Z=N.append("line").attr("class","marker-line").attr("data-timestamp",K.timestamp).attr("x1",K.x).attr("x2",K.x).attr("y1",0).attr("y2",g).attr("stroke",K.color??"#131E7A").attr("stroke-width",2).attr("opacity",G);K.strokeDasharray&&Z.attr("stroke-dasharray",K.strokeDasharray),K.label&&N.append("text").attr("class","marker-label").attr("data-timestamp",K.timestamp).attr("x",K.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",K.color??"#131E7A").attr("opacity",G).text(K.label)}),d==="hover"&&F.length>0){const K=x.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),Z=K.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),X=K.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let z=null;const Y=A.append("rect").attr("class","marker-hover-overlay").attr("width",_).attr("height",g).attr("fill","none").attr("pointer-events","all"),V=D=>{let rt=null,W=1/0;if(F.forEach(yt=>{const bt=Math.abs(D-yt.x);bt<W&&(W=bt,rt=yt)}),!rt||W>50)return z!==null&&(z=null,N.selectAll(".marker-line").attr("opacity",0),N.selectAll(".marker-label").attr("opacity",0),K.style("display","none"),b==null||b(!1)),!1;const ct=rt;if(z===null&&(b==null||b(!0)),z===ct.timestamp)return!0;z=ct.timestamp,N.selectAll(".marker-line").attr("opacity",0),N.selectAll(".marker-label").attr("opacity",0),N.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(ct.timestamp)}).attr("opacity",.6),N.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(ct.timestamp)}).attr("opacity",1);const at=new Date(ct.timestamp),mt=p?p(ct.timestamp):at.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),Et=ct.label?`${ct.label}: ${mt}`:mt;X.text(Et);const dt=X.node().getBBox(),nt=8,pt=dt.width+nt*2,jt=dt.height+nt*2;Z.attr("width",pt).attr("height",jt);let lt=ct.x-pt/2;const Tt=10;return lt<0?lt=0:lt+pt>_&&(lt=_-pt),K.attr("transform",`translate(${a.left+lt},${a.top+Tt})`),X.attr("x",pt/2).attr("y",jt/2+4),K.style("display","block"),!0};Y.on("mousemove",function(D){const[rt]=Za(D,this);V(rt)&&D.stopPropagation()}),Y.on("mouseleave",function(){z=null,N.selectAll(".marker-line").attr("opacity",0),N.selectAll(".marker-label").attr("opacity",0),K.style("display","none"),b==null||b(!1)})}}if(l){const N=oa(k).ticks(6);p&&N.tickFormat(G=>p(+G)),w.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${g})`).call(N).selectAll("text").attr("font-size",11)}if(u){const N=sa(I).ticks(5);y&&N.tickFormat(G=>y(+G)),w.append("g").attr("class","axis axis-y").call(N).selectAll("text").attr("font-size",11)}if(c&&h){const N=Tl().extent([[0,0],[_,g]]).on("end",F=>{if(!F.selection)return;const[K,Z]=F.selection,X=[+k.invert(K),+k.invert(Z)];h(X),f&&x.select(".brush").call(N.move,null)}),G=A.append("g").attr("class","brush").call(N);G.selectAll(".selection").attr("fill",v).attr("fill-opacity",.2).attr("stroke",v).attr("stroke-width",1),G.selectAll(".handle").attr("fill",v).attr("fill-opacity",.8)}return()=>{x.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,l,u,c,f,h,p,y,m,d,b,v])},TL=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:l=400,margin:u={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:b,enableBrush:v=!1,zoomToSelection:x=!1,markers:_=[],markerVisibilityMode:g="hover",brushColor:w="#69b3a2"})=>{const S=O.useRef(null),[A,T]=O.useState(null),[M,P]=O.useState(!1);O.useEffect(()=>{M&&T(null)},[M]),OL({containerRef:S,data:e,categories:t,width:s,height:l,margin:u,timeRange:c,showGrid:f,showXAxis:p!==void 0?p:h,showYAxis:y!==void 0?y:h,enableBrush:v,zoomToSelection:x,onTimeRangeChange:b,formatDate:m,formatValue:d,markers:_,markerVisibilityMode:g,onMarkerHoverChange:P,brushColor:w});const $=k=>{if(!o||!S.current||M)return;const R=S.current.getBoundingClientRect(),L=k.clientX-R.left-u.left,U=k.clientY-R.top,I=s-u.left-u.right;if(L<0||L>I){T(null);return}const B=e.map(V=>V.timestamp),q=c?c[0]:Math.min(...B),N=c?c[1]:Math.max(...B),G=L/I*(N-q)+q,K=((V,D)=>{let rt=0,W=V.length;for(;rt<W;){const tt=rt+W>>>1;V[tt]<D?rt=tt+1:W=tt}return rt})(B,G),Z=e[K-1],X=e[K];let z=X;if(Z&&X?z=G-Z.timestamp>X.timestamp-G?X:Z:Z&&(z=Z),!z){T(null);return}const Y=t.map(V=>({label:V.label,value:z[V.dataKey]??0,color:V.color}));T({visible:!0,x:k.clientX-R.left,y:U,timestamp:z.timestamp,values:Y})},j=()=>{o&&T(null)};return H.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&H.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&H.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&H.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),H.jsxs(Q.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[H.jsx("svg",{ref:S,viewBox:`0 0 ${s} ${l}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:$,onMouseLeave:j}),o&&A&&A.visible&&H.jsxs(Q.Paper,{elevation:3,sx:{position:"absolute",left:A.x+10,top:A.y-10,pointerEvents:"none",padding:1.5,minWidth:150,zIndex:1e3,transform:A.x>s/2?"translateX(-100%) translateX(-20px)":"none"},children:[H.jsx(Q.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(A.timestamp):new Date(A.timestamp).toLocaleDateString()}),H.jsx(Q.Stack,{spacing:.5,sx:{mt:1},children:A.values.map(k=>H.jsxs(Q.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[H.jsxs(Q.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[H.jsx(Q.Box,{sx:{width:8,height:8,backgroundColor:k.color,borderRadius:"50%"}}),H.jsxs(Q.Typography,{variant:"caption",children:[k.label,":"]})]}),H.jsx(Q.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d(k.value):k.value})]},k.label))})]})]}),a&&H.jsx(Q.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map(k=>H.jsxs(Q.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[H.jsx(Q.Box,{sx:{width:16,height:16,backgroundColor:k.color,opacity:k.fillOpacity??.7,border:`2px solid ${k.color}`,borderRadius:"2px",...k.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
34
34
  45deg,
35
35
  transparent,
36
36
  transparent 4px,
37
- ${j.color} 4px,
38
- ${j.color} 8px
39
- )`}}}),H.jsx(tt.Typography,{variant:"body2",children:j.label})]},j.dataKey))})]})},kL=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],h_={}.hasOwnProperty;function $L(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&h_.call(i,e)){const l=String(i[e]);o=h_.call(s,l)?s[l]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const jL=/["&'<>`]/g,RL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,DL=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,IL=/[|\\{}()[\]^$+*?.]/g,p_=new WeakMap;function NL(e,t){if(e=e.replace(t.subset?LL(t.subset):jL,n),t.subset||t.escapeOnly)return e;return e.replace(RL,r).replace(DL,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function LL(e){let t=p_.get(e);return t||(t=BL(e),p_.set(e,t)),t}function BL(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(IL,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const qL=/[\dA-Fa-f]/;function FL(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!qL.test(String.fromCharCode(t))?n:n+";"}const zL=/\d/;function UL(e,t,r){const n="&#"+String(e);return r&&t&&!zL.test(String.fromCharCode(t))?n:n+";"}const WL=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Wf={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},HL=["cent","copy","divide","gt","lt","not","para","times"],EE={}.hasOwnProperty,By={};let Fl;for(Fl in Wf)EE.call(Wf,Fl)&&(By[Wf[Fl]]=Fl);const GL=/[^\dA-Za-z]/;function KL(e,t,r,n){const i=String.fromCharCode(e);if(EE.call(By,i)){const a=By[i],o="&"+a;return r&&WL.includes(a)&&!HL.includes(a)&&(!n||t&&t!==61&&GL.test(String.fromCharCode(t)))?o:o+";"}return""}function YL(e,t,r){let n=FL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=KL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=UL(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Ba(e,t){return NL(e,Object.assign({format:YL},t))}const XL=/^>|^->|<!--|-->|--!>|<!-$/g,VL=[">"],ZL=["<",">"];function JL(e,t,r,n){return n.settings.bogusComments?"<?"+Ba(e.value,Object.assign({},n.settings.characterReferences,{subset:VL}))+">":"<!--"+e.value.replace(XL,i)+"-->";function i(a){return Ba(a,Object.assign({},n.settings.characterReferences,{subset:ZL}))}}function QL(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function d_(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const tB=/[ \t\n\f\r]/g;function t0(e){return typeof e=="object"?e.type==="text"?m_(e.value):!1:m_(e)}function m_(e){return e.replace(tB,"")===""}const we=ME(1),CE=ME(-1),eB=[];function ME(e){return t;function t(r,n,i){const a=r?r.children:eB;let o=(n||0)+e,s=a[o];if(!i)for(;s&&t0(s);)o+=e,s=a[o];return s}}const rB={}.hasOwnProperty;function kE(e){return t;function t(r,n,i){return rB.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const e0=kE({body:iB,caption:Hf,colgroup:Hf,dd:lB,dt:sB,head:Hf,html:nB,li:oB,optgroup:uB,option:cB,p:aB,rp:y_,rt:y_,tbody:hB,td:g_,tfoot:pB,th:g_,thead:fB,tr:dB});function Hf(e,t,r){const n=we(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&t0(n.value.charAt(0)))}function nB(e,t,r){const n=we(r,t);return!n||n.type!=="comment"}function iB(e,t,r){const n=we(r,t);return!n||n.type!=="comment"}function aB(e,t,r){const n=we(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function oB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&n.tagName==="li"}function sB(e,t,r){const n=we(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function lB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function y_(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function uB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function cB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function fB(e,t,r){const n=we(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function hB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function pB(e,t,r){return!we(r,t)}function dB(e,t,r){const n=we(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function g_(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const mB=kE({body:vB,colgroup:bB,head:gB,html:yB,tbody:_B});function yB(e){const t=we(e,-1);return!t||t.type!=="comment"}function gB(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function vB(e){const t=we(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&t0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function bB(e,t,r){const n=CE(r,t),i=we(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&e0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function _B(e,t,r){const n=CE(r,t),i=we(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&e0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const zl={name:[[`
37
+ ${k.color} 4px,
38
+ ${k.color} 8px
39
+ )`}}}),H.jsx(Q.Typography,{variant:"body2",children:k.label})]},k.dataKey))})]})},PL=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],hx={}.hasOwnProperty;function EL(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&hx.call(i,e)){const l=String(i[e]);o=hx.call(s,l)?s[l]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const ML=/["&'<>`]/g,CL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kL=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,$L=/[|\\{}()[\]^$+*?.]/g,px=new WeakMap;function jL(e,t){if(e=e.replace(t.subset?RL(t.subset):ML,n),t.subset||t.escapeOnly)return e;return e.replace(CL,r).replace(kL,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function RL(e){let t=px.get(e);return t||(t=DL(e),px.set(e,t)),t}function DL(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace($L,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const IL=/[\dA-Fa-f]/;function NL(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!IL.test(String.fromCharCode(t))?n:n+";"}const LL=/\d/;function BL(e,t,r){const n="&#"+String(e);return r&&t&&!LL.test(String.fromCharCode(t))?n:n+";"}const qL=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Kf={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},FL=["cent","copy","divide","gt","lt","not","para","times"],OE={}.hasOwnProperty,zy={};let Kl;for(Kl in Kf)OE.call(Kf,Kl)&&(zy[Kf[Kl]]=Kl);const zL=/[^\dA-Za-z]/;function UL(e,t,r,n){const i=String.fromCharCode(e);if(OE.call(zy,i)){const a=zy[i],o="&"+a;return r&&qL.includes(a)&&!FL.includes(a)&&(!n||t&&t!==61&&zL.test(String.fromCharCode(t)))?o:o+";"}return""}function WL(e,t,r){let n=NL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=UL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=BL(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Ga(e,t){return jL(e,Object.assign({format:WL},t))}const HL=/^>|^->|<!--|-->|--!>|<!-$/g,GL=[">"],KL=["<",">"];function XL(e,t,r,n){return n.settings.bogusComments?"<?"+Ga(e.value,Object.assign({},n.settings.characterReferences,{subset:GL}))+">":"<!--"+e.value.replace(HL,i)+"-->";function i(a){return Ga(a,Object.assign({},n.settings.characterReferences,{subset:KL}))}}function YL(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function dx(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const VL=/[ \t\n\f\r]/g;function i0(e){return typeof e=="object"?e.type==="text"?mx(e.value):!1:mx(e)}function mx(e){return e.replace(VL,"")===""}const Ce=PE(1),TE=PE(-1),ZL=[];function PE(e){return t;function t(r,n,i){const a=r?r.children:ZL;let o=(n||0)+e,s=a[o];if(!i)for(;s&&i0(s);)o+=e,s=a[o];return s}}const JL={}.hasOwnProperty;function EE(e){return t;function t(r,n,i){return JL.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const a0=EE({body:tB,caption:Xf,colgroup:Xf,dd:iB,dt:nB,head:Xf,html:QL,li:rB,optgroup:aB,option:oB,p:eB,rp:yx,rt:yx,tbody:lB,td:gx,tfoot:uB,th:gx,thead:sB,tr:cB});function Xf(e,t,r){const n=Ce(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&i0(n.value.charAt(0)))}function QL(e,t,r){const n=Ce(r,t);return!n||n.type!=="comment"}function tB(e,t,r){const n=Ce(r,t);return!n||n.type!=="comment"}function eB(e,t,r){const n=Ce(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function rB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&n.tagName==="li"}function nB(e,t,r){const n=Ce(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function iB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function yx(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function aB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function oB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function sB(e,t,r){const n=Ce(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function lB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function uB(e,t,r){return!Ce(r,t)}function cB(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function gx(e,t,r){const n=Ce(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const fB=EE({body:dB,colgroup:mB,head:pB,html:hB,tbody:yB});function hB(e){const t=Ce(e,-1);return!t||t.type!=="comment"}function pB(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function dB(e){const t=Ce(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&i0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function mB(e,t,r){const n=TE(r,t),i=Ce(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&a0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function yB(e,t,r){const n=TE(r,t),i=Ce(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&a0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Xl={name:[[`
40
40
  \f\r &/=>`.split(""),`
41
41
  \f\r "&'/=>\``.split("")],[`\0
42
42
  \f\r "&'/<=>`.split(""),`\0
@@ -44,25 +44,25 @@
44
44
  \f\r &>`.split(""),`\0
45
45
  \f\r "&'<=>\``.split("")],[`\0
46
46
  \f\r "&'<=>\``.split(""),`\0
47
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function xB(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let o=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;i.space==="html"&&e.tagName==="svg"&&(n.schema=Qv);const u=wB(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(u||!a||!mB(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),o&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!o&&(!a||!e0(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function wB(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=SB(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function SB(e,t,r){const n=xE(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=Ba(n.attribute,Object.assign({},e.settings.characterReferences,{subset:zl.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?gL:bL)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=Ba(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:zl.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&d_(r,o)>d_(r,e.alternative)&&(o=e.alternative),s=o+Ba(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?zl.single:zl.double)[i][a],attribute:!0}))+o),l+(s&&"="+s))}const AB=["<","&"];function $E(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Ba(e.value,Object.assign({},n.settings.characterReferences,{subset:AB}))}function OB(e,t,r,n){return n.settings.allowDangerousHtml?e.value:$E(e,t,r,n)}function TB(e,t,r,n){return n.all(e)}const PB=$L("type",{invalid:EB,unknown:CB,handlers:{comment:JL,doctype:QL,element:xB,raw:OB,root:TB,text:$E}});function EB(e){throw new Error("Expected node, not `"+e+"`")}function CB(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const MB={},kB={},$B=[];function jB(e,t){const r=MB,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:RB,all:DB,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||kL,characterReferences:r.characterReferences||kB,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Qv:wE,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function RB(e,t,r){return PB(e,t,r,this)}function DB(e){const t=[],r=e&&e.children||$B;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const Ke={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},qa={COMPLETED:or.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},ys="N/A",gs="No LST",vs="Data Missing";function IB(e,t,r,n="left-to-right",i=900,a){te.prototype.transition=sv;const o=t*Math.PI/180,s=-o/2-Math.PI/2,l=o/2-Math.PI/2;let u=e.querySelector("defs");u||(u=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(u));const c="arc-sweep-clip";let f=u.querySelector(`#${c}`);f||(f=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),f.setAttribute("id",c),u.appendChild(f));const h=document.createElementNS("http://www.w3.org/2000/svg","path");f.innerHTML="",f.appendChild(h);const p=e.querySelector(".arc-container"),y=e.querySelector(".points-container");if(y&&p)if(y.setAttribute("clip-path",`url(#${c})`),n==="left-to-right"){const d=w=>{const b=r*1.5,_=Math.cos(w)*b,g=Math.sin(w)*b,x=Math.cos(l)*b,S=Math.sin(l)*b,A=l-w>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${b},${b} 0 ${A},1 ${x},${S} Z`};h.setAttribute("d",d(s)),te(h).transition().duration(i).ease(w=>1-Math.pow(1-w,3)).tween("arc-sweep",()=>w=>{const b=s+(l-s)*w;h.setAttribute("d",d(b))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const d=w=>{const b=r*1.5,_=Math.cos(w)*b,g=Math.sin(w)*b,x=Math.cos(l)*b,S=Math.sin(l)*b,A=l-w>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${b},${b} 0 ${A},1 ${x},${S} Z`};h.setAttribute("d",d(l)),te(h).transition().duration(i).ease(w=>1-Math.pow(1-w,3)).tween("arc-sweep",()=>w=>{const b=l-(l-s)*w;h.setAttribute("d",d(b))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var Ul=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gf,v_;function jE(){if(v_)return Gf;v_=1;var e=typeof Ul=="object"&&Ul&&Ul.Object===Object&&Ul;return Gf=e,Gf}var Kf,b_;function on(){if(b_)return Kf;b_=1;var e=jE(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Kf=r,Kf}var Yf,__;function NB(){if(__)return Yf;__=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Yf=t,Yf}var Xf,x_;function LB(){if(x_)return Xf;x_=1;var e=NB(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Xf=r,Xf}var Vf,w_;function vi(){if(w_)return Vf;w_=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Vf=e,Vf}var Zf,S_;function Ol(){if(S_)return Zf;S_=1;var e=on(),t=e.Symbol;return Zf=t,Zf}var Jf,A_;function BB(){if(A_)return Jf;A_=1;var e=Ol(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),l=o[i];try{o[i]=void 0;var u=!0}catch{}var c=n.call(o);return u&&(s?o[i]=l:delete o[i]),c}return Jf=a,Jf}var Qf,O_;function qB(){if(O_)return Qf;O_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Qf=r,Qf}var th,T_;function Yn(){if(T_)return th;T_=1;var e=Ol(),t=BB(),r=qB(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return th=o,th}var eh,P_;function Xn(){if(P_)return eh;P_=1;function e(t){return t!=null&&typeof t=="object"}return eh=e,eh}var rh,E_;function Po(){if(E_)return rh;E_=1;var e=Yn(),t=Xn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return rh=n,rh}var nh,C_;function r0(){if(C_)return nh;C_=1;var e=LB(),t=vi(),r=Po(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return nh=l,nh}var ih,M_;function RE(){if(M_)return ih;M_=1;var e=r0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return ih=n,ih}var ah,k_;function n0(){if(k_)return ah;k_=1;var e=RE();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return ah=t,ah}var oh,$_;function Ic(){if($_)return oh;$_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return oh=e,oh}var sh,j_;function Xe(){if(j_)return sh;j_=1;var e=Array.isArray;return sh=e,sh}var lh,R_;function FB(){if(R_)return lh;R_=1;var e=Ol(),t=Ic(),r=Xe(),n=Po(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return lh=o,lh}var uh,D_;function i0(){if(D_)return uh;D_=1;var e=FB();function t(r){return r==null?"":e(r)}return uh=t,uh}var ch,I_;function zB(){if(I_)return ch;I_=1;var e=on(),t=n0(),r=r0(),n=i0(),i=e.isFinite,a=Math.min;function o(s){var l=Math[s];return function(u,c){if(u=r(u),c=c==null?0:a(t(c),292),c&&i(u)){var f=(n(u)+"e").split("e"),h=l(f[0]+"e"+(+f[1]+c));return f=(n(h)+"e").split("e"),+(f[0]+"e"+(+f[1]-c))}return l(u)}}return ch=o,ch}var fh,N_;function UB(){if(N_)return fh;N_=1;var e=zB(),t=e("round");return fh=t,fh}var WB=UB();const HB=qt(WB);var hh,L_;function DE(){if(L_)return hh;L_=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return hh=e,hh}var ph,B_;function GB(){if(B_)return ph;B_=1;var e=Yn(),t=Xn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return ph=n,ph}var dh,q_;function a0(){if(q_)return dh;q_=1;var e=GB(),t=Xn(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return dh=a,dh}var mh,F_;function KB(){if(F_)return mh;F_=1;var e=Ol(),t=a0(),r=Xe(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return mh=i,mh}var yh,z_;function IE(){if(z_)return yh;z_=1;var e=DE(),t=KB();function r(n,i,a,o,s){var l=-1,u=n.length;for(a||(a=t),s||(s=[]);++l<u;){var c=n[l];i>0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return yh=r,yh}var gh,U_;function o0(){if(U_)return gh;U_=1;var e=Xe(),t=Po(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return gh=i,gh}var vh,W_;function s0(){if(W_)return vh;W_=1;var e=Yn(),t=vi(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==i||l==r||l==a}return vh=o,vh}var bh,H_;function YB(){if(H_)return bh;H_=1;var e=on(),t=e["__core-js_shared__"];return bh=t,bh}var _h,G_;function XB(){if(G_)return _h;G_=1;var e=YB(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return _h=r,_h}var xh,K_;function NE(){if(K_)return xh;K_=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return xh=r,xh}var wh,Y_;function VB(){if(Y_)return wh;Y_=1;var e=s0(),t=XB(),r=vi(),n=NE(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,u=s.hasOwnProperty,c=RegExp("^"+l.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?c:a;return p.test(n(h))}return wh=f,wh}var Sh,X_;function ZB(){if(X_)return Sh;X_=1;function e(t,r){return t==null?void 0:t[r]}return Sh=e,Sh}var Ah,V_;function pa(){if(V_)return Ah;V_=1;var e=VB(),t=ZB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Ah=r,Ah}var Oh,Z_;function Nc(){if(Z_)return Oh;Z_=1;var e=pa(),t=e(Object,"create");return Oh=t,Oh}var Th,J_;function JB(){if(J_)return Th;J_=1;var e=Nc();function t(){this.__data__=e?e(null):{},this.size=0}return Th=t,Th}var Ph,Q_;function QB(){if(Q_)return Ph;Q_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ph=e,Ph}var Eh,tx;function tq(){if(tx)return Eh;tx=1;var e=Nc(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return Eh=i,Eh}var Ch,ex;function eq(){if(ex)return Ch;ex=1;var e=Nc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Ch=n,Ch}var Mh,rx;function rq(){if(rx)return Mh;rx=1;var e=Nc(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Mh=r,Mh}var kh,nx;function nq(){if(nx)return kh;nx=1;var e=JB(),t=QB(),r=tq(),n=eq(),i=rq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,kh=a,kh}var $h,ix;function iq(){if(ix)return $h;ix=1;function e(){this.__data__=[],this.size=0}return $h=e,$h}var jh,ax;function l0(){if(ax)return jh;ax=1;function e(t,r){return t===r||t!==t&&r!==r}return jh=e,jh}var Rh,ox;function Lc(){if(ox)return Rh;ox=1;var e=l0();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Rh=t,Rh}var Dh,sx;function aq(){if(sx)return Dh;sx=1;var e=Lc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Dh=n,Dh}var Ih,lx;function oq(){if(lx)return Ih;lx=1;var e=Lc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Ih=t,Ih}var Nh,ux;function sq(){if(ux)return Nh;ux=1;var e=Lc();function t(r){return e(this.__data__,r)>-1}return Nh=t,Nh}var Lh,cx;function lq(){if(cx)return Lh;cx=1;var e=Lc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Lh=t,Lh}var Bh,fx;function Bc(){if(fx)return Bh;fx=1;var e=iq(),t=aq(),r=oq(),n=sq(),i=lq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Bh=a,Bh}var qh,hx;function u0(){if(hx)return qh;hx=1;var e=pa(),t=on(),r=e(t,"Map");return qh=r,qh}var Fh,px;function uq(){if(px)return Fh;px=1;var e=nq(),t=Bc(),r=u0();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Fh=n,Fh}var zh,dx;function cq(){if(dx)return zh;dx=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return zh=e,zh}var Uh,mx;function qc(){if(mx)return Uh;mx=1;var e=cq();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Uh=t,Uh}var Wh,yx;function fq(){if(yx)return Wh;yx=1;var e=qc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Wh=t,Wh}var Hh,gx;function hq(){if(gx)return Hh;gx=1;var e=qc();function t(r){return e(this,r).get(r)}return Hh=t,Hh}var Gh,vx;function pq(){if(vx)return Gh;vx=1;var e=qc();function t(r){return e(this,r).has(r)}return Gh=t,Gh}var Kh,bx;function dq(){if(bx)return Kh;bx=1;var e=qc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Kh=t,Kh}var Yh,_x;function c0(){if(_x)return Yh;_x=1;var e=uq(),t=fq(),r=hq(),n=pq(),i=dq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Yh=a,Yh}var Xh,xx;function LE(){if(xx)return Xh;xx=1;var e=c0(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var u=n.apply(this,o);return a.cache=l.set(s,u)||l,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,Xh=r,Xh}var Vh,wx;function mq(){if(wx)return Vh;wx=1;var e=LE(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Vh=r,Vh}var Zh,Sx;function yq(){if(Sx)return Zh;Sx=1;var e=mq(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,u){a.push(l?u.replace(r,"$1"):s||o)}),a});return Zh=n,Zh}var Jh,Ax;function BE(){if(Ax)return Jh;Ax=1;var e=Xe(),t=o0(),r=yq(),n=i0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Jh=i,Jh}var Qh,Ox;function Fc(){if(Ox)return Qh;Ox=1;var e=Po();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Qh=t,Qh}var tp,Tx;function f0(){if(Tx)return tp;Tx=1;var e=BE(),t=Fc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return tp=r,tp}var ep,Px;function gq(){if(Px)return ep;Px=1;var e=Bc();function t(){this.__data__=new e,this.size=0}return ep=t,ep}var rp,Ex;function vq(){if(Ex)return rp;Ex=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return rp=e,rp}var np,Cx;function bq(){if(Cx)return np;Cx=1;function e(t){return this.__data__.get(t)}return np=e,np}var ip,Mx;function _q(){if(Mx)return ip;Mx=1;function e(t){return this.__data__.has(t)}return ip=e,ip}var ap,kx;function xq(){if(kx)return ap;kx=1;var e=Bc(),t=u0(),r=c0(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(a,o),this.size=s.size,this}return ap=i,ap}var op,$x;function qE(){if($x)return op;$x=1;var e=Bc(),t=gq(),r=vq(),n=bq(),i=_q(),a=xq();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,op=o,op}var sp,jx;function wq(){if(jx)return sp;jx=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return sp=t,sp}var lp,Rx;function Sq(){if(Rx)return lp;Rx=1;function e(t){return this.__data__.has(t)}return lp=e,lp}var up,Dx;function FE(){if(Dx)return up;Dx=1;var e=c0(),t=wq(),r=Sq();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,up=n,up}var cp,Ix;function zE(){if(Ix)return cp;Ix=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return cp=e,cp}var fp,Nx;function UE(){if(Nx)return fp;Nx=1;function e(t,r){return t.has(r)}return fp=e,fp}var hp,Lx;function WE(){if(Lx)return hp;Lx=1;var e=FE(),t=zE(),r=UE(),n=1,i=2;function a(o,s,l,u,c,f){var h=l&n,p=o.length,y=s.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(o),d=f.get(s);if(m&&d)return m==s&&d==o;var v=-1,w=!0,b=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++v<p;){var _=o[v],g=s[v];if(u)var x=h?u(g,_,v,s,o,f):u(_,g,v,o,s,f);if(x!==void 0){if(x)continue;w=!1;break}if(b){if(!t(s,function(S,A){if(!r(b,A)&&(_===S||c(_,S,l,u,f)))return b.push(A)})){w=!1;break}}else if(!(_===g||c(_,g,l,u,f))){w=!1;break}}return f.delete(o),f.delete(s),w}return hp=a,hp}var pp,Bx;function Aq(){if(Bx)return pp;Bx=1;var e=on(),t=e.Uint8Array;return pp=t,pp}var dp,qx;function Oq(){if(qx)return dp;qx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return dp=e,dp}var mp,Fx;function h0(){if(Fx)return mp;Fx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return mp=e,mp}var yp,zx;function Tq(){if(zx)return yp;zx=1;var e=Ol(),t=Aq(),r=l0(),n=WE(),i=Oq(),a=h0(),o=1,s=2,l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",v="[object ArrayBuffer]",w="[object DataView]",b=e?e.prototype:void 0,_=b?b.valueOf:void 0;function g(x,S,A,T,C,P,E){switch(A){case w:if(x.byteLength!=S.byteLength||x.byteOffset!=S.byteOffset)return!1;x=x.buffer,S=S.buffer;case v:return!(x.byteLength!=S.byteLength||!P(new t(x),new t(S)));case l:case u:case h:return r(+x,+S);case c:return x.name==S.name&&x.message==S.message;case p:case m:return x==S+"";case f:var k=i;case y:var $=T&o;if(k||(k=a),x.size!=S.size&&!$)return!1;var j=E.get(x);if(j)return j==S;T|=s,E.set(x,S);var M=n(k(x),k(S),T,C,P,E);return E.delete(x),M;case d:if(_)return _.call(x)==_.call(S)}return!1}return yp=g,yp}var gp,Ux;function Pq(){if(Ux)return gp;Ux=1;var e=DE(),t=Xe();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return gp=r,gp}var vp,Wx;function Eq(){if(Wx)return vp;Wx=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return vp=e,vp}var bp,Hx;function Cq(){if(Hx)return bp;Hx=1;function e(){return[]}return bp=e,bp}var _p,Gx;function Mq(){if(Gx)return _p;Gx=1;var e=Eq(),t=Cq(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return _p=a,_p}var xp,Kx;function kq(){if(Kx)return xp;Kx=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return xp=e,xp}var os={exports:{}},wp,Yx;function $q(){if(Yx)return wp;Yx=1;function e(){return!1}return wp=e,wp}os.exports;var Xx;function HE(){return Xx||(Xx=1,(function(e,t){var r=on(),n=$q(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(os,os.exports)),os.exports}var Sp,Vx;function p0(){if(Vx)return Sp;Vx=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Sp=r,Sp}var Ap,Zx;function d0(){if(Zx)return Ap;Zx=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ap=t,Ap}var Op,Jx;function jq(){if(Jx)return Op;Jx=1;var e=Yn(),t=d0(),r=Xn(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",v="[object DataView]",w="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",g="[object Int16Array]",x="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",C="[object Uint32Array]",P={};P[w]=P[b]=P[_]=P[g]=P[x]=P[S]=P[A]=P[T]=P[C]=!0,P[n]=P[i]=P[d]=P[a]=P[v]=P[o]=P[s]=P[l]=P[u]=P[c]=P[f]=P[h]=P[p]=P[y]=P[m]=!1;function E(k){return r(k)&&t(k.length)&&!!P[e(k)]}return Op=E,Op}var Tp,Qx;function GE(){if(Qx)return Tp;Qx=1;function e(t){return function(r){return t(r)}}return Tp=e,Tp}var ss={exports:{}};ss.exports;var t1;function Rq(){return t1||(t1=1,(function(e,t){var r=jE(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(ss,ss.exports)),ss.exports}var Pp,e1;function KE(){if(e1)return Pp;e1=1;var e=jq(),t=GE(),r=Rq(),n=r&&r.isTypedArray,i=n?t(n):e;return Pp=i,Pp}var Ep,r1;function Dq(){if(r1)return Ep;r1=1;var e=kq(),t=a0(),r=Xe(),n=HE(),i=p0(),a=KE(),o=Object.prototype,s=o.hasOwnProperty;function l(u,c){var f=r(u),h=!f&&t(u),p=!f&&!h&&n(u),y=!f&&!h&&!p&&a(u),m=f||h||p||y,d=m?e(u.length,String):[],v=d.length;for(var w in u)(c||s.call(u,w))&&!(m&&(w=="length"||p&&(w=="offset"||w=="parent")||y&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,v)))&&d.push(w);return d}return Ep=l,Ep}var Cp,n1;function Iq(){if(n1)return Cp;n1=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Cp=t,Cp}var Mp,i1;function YE(){if(i1)return Mp;i1=1;function e(t,r){return function(n){return t(r(n))}}return Mp=e,Mp}var kp,a1;function Nq(){if(a1)return kp;a1=1;var e=YE(),t=e(Object.keys,Object);return kp=t,kp}var $p,o1;function Lq(){if(o1)return $p;o1=1;var e=Iq(),t=Nq(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return $p=i,$p}var jp,s1;function Tl(){if(s1)return jp;s1=1;var e=s0(),t=d0();function r(n){return n!=null&&t(n.length)&&!e(n)}return jp=r,jp}var Rp,l1;function Pl(){if(l1)return Rp;l1=1;var e=Dq(),t=Lq(),r=Tl();function n(i){return r(i)?e(i):t(i)}return Rp=n,Rp}var Dp,u1;function Bq(){if(u1)return Dp;u1=1;var e=Pq(),t=Mq(),r=Pl();function n(i){return e(i,r,t)}return Dp=n,Dp}var Ip,c1;function qq(){if(c1)return Ip;c1=1;var e=Bq(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,l,u,c){var f=s&t,h=e(a),p=h.length,y=e(o),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var v=h[d];if(!(f?v in o:n.call(o,v)))return!1}var w=c.get(a),b=c.get(o);if(w&&b)return w==o&&b==a;var _=!0;c.set(a,o),c.set(o,a);for(var g=f;++d<p;){v=h[d];var x=a[v],S=o[v];if(l)var A=f?l(S,x,v,o,a,c):l(x,S,v,a,o,c);if(!(A===void 0?x===S||u(x,S,s,l,c):A)){_=!1;break}g||(g=v=="constructor")}if(_&&!g){var T=a.constructor,C=o.constructor;T!=C&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof C=="function"&&C instanceof C)&&(_=!1)}return c.delete(a),c.delete(o),_}return Ip=i,Ip}var Np,f1;function Fq(){if(f1)return Np;f1=1;var e=pa(),t=on(),r=e(t,"DataView");return Np=r,Np}var Lp,h1;function zq(){if(h1)return Lp;h1=1;var e=pa(),t=on(),r=e(t,"Promise");return Lp=r,Lp}var Bp,p1;function XE(){if(p1)return Bp;p1=1;var e=pa(),t=on(),r=e(t,"Set");return Bp=r,Bp}var qp,d1;function Uq(){if(d1)return qp;d1=1;var e=pa(),t=on(),r=e(t,"WeakMap");return qp=r,qp}var Fp,m1;function Wq(){if(m1)return Fp;m1=1;var e=Fq(),t=u0(),r=zq(),n=XE(),i=Uq(),a=Yn(),o=NE(),s="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),m=o(r),d=o(n),v=o(i),w=a;return(e&&w(new e(new ArrayBuffer(1)))!=h||t&&w(new t)!=s||r&&w(r.resolve())!=u||n&&w(new n)!=c||i&&w(new i)!=f)&&(w=function(b){var _=a(b),g=_==l?b.constructor:void 0,x=g?o(g):"";if(x)switch(x){case p:return h;case y:return s;case m:return u;case d:return c;case v:return f}return _}),Fp=w,Fp}var zp,y1;function Hq(){if(y1)return zp;y1=1;var e=qE(),t=WE(),r=Tq(),n=qq(),i=Wq(),a=Xe(),o=HE(),s=KE(),l=1,u="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,v,w,b,_){var g=a(m),x=a(d),S=g?c:i(m),A=x?c:i(d);S=S==u?f:S,A=A==u?f:A;var T=S==f,C=A==f,P=S==A;if(P&&o(m)){if(!o(d))return!1;g=!0,T=!1}if(P&&!T)return _||(_=new e),g||s(m)?t(m,d,v,w,b,_):r(m,d,S,v,w,b,_);if(!(v&l)){var E=T&&p.call(m,"__wrapped__"),k=C&&p.call(d,"__wrapped__");if(E||k){var $=E?m.value():m,j=k?d.value():d;return _||(_=new e),b($,j,v,w,_)}}return P?(_||(_=new e),n(m,d,v,w,b,_)):!1}return zp=y,zp}var Up,g1;function m0(){if(g1)return Up;g1=1;var e=Hq(),t=Xn();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return Up=r,Up}var Wp,v1;function Gq(){if(v1)return Wp;v1=1;var e=qE(),t=m0(),r=1,n=2;function i(a,o,s,l){var u=s.length,c=u,f=!l;if(a==null)return!c;for(a=Object(a);u--;){var h=s[u];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++u<c;){h=s[u];var p=h[0],y=a[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(l)var v=l(y,m,p,a,o,d);if(!(v===void 0?t(m,y,r|n,l,d):v))return!1}}return!0}return Wp=i,Wp}var Hp,b1;function VE(){if(b1)return Hp;b1=1;var e=vi();function t(r){return r===r&&!e(r)}return Hp=t,Hp}var Gp,_1;function Kq(){if(_1)return Gp;_1=1;var e=VE(),t=Pl();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return Gp=r,Gp}var Kp,x1;function ZE(){if(x1)return Kp;x1=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Kp=e,Kp}var Yp,w1;function Yq(){if(w1)return Yp;w1=1;var e=Gq(),t=Kq(),r=ZE();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Yp=n,Yp}var Xp,S1;function JE(){if(S1)return Xp;S1=1;var e=f0();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Xp=t,Xp}var Vp,A1;function Xq(){if(A1)return Vp;A1=1;function e(t,r){return t!=null&&r in Object(t)}return Vp=e,Vp}var Zp,O1;function Vq(){if(O1)return Zp;O1=1;var e=BE(),t=a0(),r=Xe(),n=p0(),i=d0(),a=Fc();function o(s,l,u){l=e(l,s);for(var c=-1,f=l.length,h=!1;++c<f;){var p=a(l[c]);if(!(h=s!=null&&u(s,p)))break;s=s[p]}return h||++c!=f?h:(f=s==null?0:s.length,!!f&&i(f)&&n(p,f)&&(r(s)||t(s)))}return Zp=o,Zp}var Jp,T1;function Zq(){if(T1)return Jp;T1=1;var e=Xq(),t=Vq();function r(n,i){return n!=null&&t(n,i,e)}return Jp=r,Jp}var Qp,P1;function Jq(){if(P1)return Qp;P1=1;var e=m0(),t=JE(),r=Zq(),n=o0(),i=VE(),a=ZE(),o=Fc(),s=1,l=2;function u(c,f){return n(c)&&i(f)?a(o(c),f):function(h){var p=t(h,c);return p===void 0&&p===f?r(h,c):e(f,p,s|l)}}return Qp=u,Qp}var td,E1;function Eo(){if(E1)return td;E1=1;function e(t){return t}return td=e,td}var ed,C1;function Qq(){if(C1)return ed;C1=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ed=e,ed}var rd,M1;function tF(){if(M1)return rd;M1=1;var e=f0();function t(r){return function(n){return e(n,r)}}return rd=t,rd}var nd,k1;function eF(){if(k1)return nd;k1=1;var e=Qq(),t=tF(),r=o0(),n=Fc();function i(a){return r(a)?e(n(a)):t(a)}return nd=i,nd}var id,$1;function bi(){if($1)return id;$1=1;var e=Yq(),t=Jq(),r=Eo(),n=Xe(),i=eF();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return id=a,id}var ad,j1;function rF(){if(j1)return ad;j1=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),l=s.length;l--;){var u=s[t?l:++a];if(n(o[u],u,o)===!1)break}return r}}return ad=e,ad}var od,R1;function nF(){if(R1)return od;R1=1;var e=rF(),t=e();return od=t,od}var sd,D1;function QE(){if(D1)return sd;D1=1;var e=nF(),t=Pl();function r(n,i){return n&&e(n,i,t)}return sd=r,sd}var ld,I1;function iF(){if(I1)return ld;I1=1;var e=Tl();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,l=Object(i);(n?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return ld=t,ld}var ud,N1;function y0(){if(N1)return ud;N1=1;var e=QE(),t=iF(),r=t(e);return ud=r,ud}var cd,L1;function tC(){if(L1)return cd;L1=1;var e=y0(),t=Tl();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,u){o[++a]=i(s,l,u)}),o}return cd=r,cd}var fd,B1;function aF(){if(B1)return fd;B1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return fd=e,fd}var hd,q1;function oF(){if(q1)return hd;q1=1;var e=Po();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),l=n!==void 0,u=n===null,c=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&l&&c&&!u&&!f||a&&l&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!l&&o||!c)return-1}return 0}return hd=t,hd}var pd,F1;function sF(){if(F1)return pd;F1=1;var e=oF();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,l=o.length,u=i.length;++a<l;){var c=e(o[a],s[a]);if(c){if(a>=u)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return pd=t,pd}var dd,z1;function lF(){if(z1)return dd;z1=1;var e=Ic(),t=f0(),r=bi(),n=tC(),i=aF(),a=GE(),o=sF(),s=Eo(),l=Xe();function u(c,f,h){f.length?f=e(f,function(m){return l(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(m,d,v){var w=e(f,function(b){return b(m)});return{criteria:w,index:++p,value:m}});return i(y,function(m,d){return o(m,d,h)})}return dd=u,dd}var md,U1;function uF(){if(U1)return md;U1=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return md=e,md}var yd,W1;function cF(){if(W1)return yd;W1=1;var e=uF(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),u=Array(l);++s<l;)u[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=a(u),e(n,this,c)}}return yd=r,yd}var gd,H1;function fF(){if(H1)return gd;H1=1;function e(t){return function(){return t}}return gd=e,gd}var vd,G1;function eC(){if(G1)return vd;G1=1;var e=pa(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return vd=t,vd}var bd,K1;function hF(){if(K1)return bd;K1=1;var e=fF(),t=eC(),r=Eo(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return bd=n,bd}var _d,Y1;function pF(){if(Y1)return _d;Y1=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return _d=n,_d}var xd,X1;function dF(){if(X1)return xd;X1=1;var e=hF(),t=pF(),r=t(e);return xd=r,xd}var wd,V1;function mF(){if(V1)return wd;V1=1;var e=Eo(),t=cF(),r=dF();function n(i,a){return r(t(i,a,e),i+"")}return wd=n,wd}var Sd,Z1;function El(){if(Z1)return Sd;Z1=1;var e=l0(),t=Tl(),r=p0(),n=vi();function i(a,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return Sd=i,Sd}var Ad,J1;function yF(){if(J1)return Ad;J1=1;var e=IE(),t=lF(),r=mF(),n=El(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Ad=i,Ad}var gF=yF();const zc=qt(gF);var Od,Q1;function vF(){if(Q1)return Od;Q1=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return Od=e,Od}var bF=vF();const tw=qt(bF);var Td,ew;function _F(){if(ew)return Td;ew=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,l=t(e((i-n)/(a||1)),0),u=Array(l);l--;)u[o?l:++s]=n,n+=a;return u}return Td=r,Td}var Pd,rw;function xF(){if(rw)return Pd;rw=1;var e=_F(),t=El(),r=RE();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Pd=n,Pd}var Ed,nw;function wF(){if(nw)return Ed;nw=1;var e=xF(),t=e();return Ed=t,Ed}var SF=wF();const Fs=qt(SF);var Cd,iw;function AF(){if(iw)return Cd;iw=1;var e=Ic(),t=bi(),r=tC(),n=Xe();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return Cd=i,Cd}var Md,aw;function OF(){if(aw)return Md;aw=1;var e=IE(),t=AF();function r(n,i){return e(t(n,i),1)}return Md=r,Md}var TF=OF();const rC=qt(TF);var kd,ow;function nC(){if(ow)return kd;ow=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return kd=e,kd}var $d,sw;function PF(){if(sw)return $d;sw=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return $d=e,$d}var jd,lw;function EF(){if(lw)return jd;lw=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return jd=r,jd}var Rd,uw;function iC(){if(uw)return Rd;uw=1;var e=EF();function t(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var s=e(i,o),l=r[s];r[s]=r[i],r[i]=l}return r.length=n,r}return Rd=t,Rd}var Dd,cw;function CF(){if(cw)return Dd;cw=1;var e=nC(),t=PF(),r=iC();function n(i,a){return r(t(i),e(a,0,i.length))}return Dd=n,Dd}var Id,fw;function MF(){if(fw)return Id;fw=1;var e=Ic();function t(r,n){return e(n,function(i){return r[i]})}return Id=t,Id}var Nd,hw;function kF(){if(hw)return Nd;hw=1;var e=MF(),t=Pl();function r(n){return n==null?[]:e(n,t(n))}return Nd=r,Nd}var Ld,pw;function $F(){if(pw)return Ld;pw=1;var e=nC(),t=iC(),r=kF();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return Ld=n,Ld}var Bd,dw;function jF(){if(dw)return Bd;dw=1;var e=CF(),t=$F(),r=Xe(),n=El(),i=n0();function a(o,s,l){(l?n(o,s,l):s===void 0)?s=1:s=i(s);var u=r(o)?e:t;return u(o,s)}return Bd=a,Bd}var RF=jF();const DF=qt(RF),IF=e=>HB(e,14),mw=e=>Object.values(e).reduce((t,r)=>t+r,0),NF=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=mw(e),a=tw(Object.entries(e).map(([y,m])=>{const d=Math.max(t-Object.keys(e).length,0),v=Math.round(d*m/i);return[y,v]})),o=tw(Object.entries(e).map(([y,m])=>{const d=t+Object.keys(e).length,v=Math.min(Math.round(d*m/i),t);return[y,v]})),s=rC(Object.entries(e).map(([y,m])=>{const d=a[y],v=o[y];return Fs(d,v).map(w=>{const b=IF(m/(w+.5));return{party:y,quotient:b}})})),l=mw(a),u=t-l,c=zc(s,({quotient:y})=>-y),f=c[u-1].quotient,h=c.filter(({quotient:y})=>y>f),p=c.filter(({quotient:y})=>y===f);if(h.length+p.length===u)h.push(...p);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");h.push(...DF(p,u-h.length))}return h.reduce((y,{party:m})=>(y[m]+=1,y),a)},Iu=e=>Math.round(e*1e10)/1e10,LF=e=>e.reduce((t,r)=>t+r.seats,0),BF=e=>e.flat(),qF=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:Iu(e*Math.cos(i)),y:Iu(e*Math.sin(i))}},aC=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},Ko=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(aC(e,t,r,n)*t/r-i)},FF=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=Ko(e,n,t,r),a=0;for(Ko(e,n+1,t,r)<i&&(a=1),Ko(e,n-1,t,r)<i&&n>1&&(a=-1);Ko(e,n+a,t,r)<i&&n>0;)i=Ko(e,n+a,t,r),n+=a;return n},zF=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=Iu((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<e.length;o++)if(n=Iu((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},UF=(e,t,r)=>{const n=LF(e),i=FF(n,t,r),a=aC(n,i,t,r);let o={};for(let h=1;h<=i;h++)o[h]=t-(h-1)*a;o=NF(o,n);const s=[];let l,u,c;for(let h=1;h<=i;h++){const p=[];l=t-(h-1)*a,u=r*l/((o[h]??1)-1||1);for(let y=0;y<=(o[h]??1)-1;y++)c={...qF(l,y*u,r),r:.4*a},p.push(c);s.push(p)}const f=Array(s.length).fill(0);for(const h of e)for(let p=0;p<h.seats;p++){const y=zF(s,f),m=s[y],d=f[y]??0,v=m==null?void 0:m[d];v&&(v.fill=h.colour,v.party=String(h.id)),f[y]=d+1}return BF(s)},WF=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),HF={seatCount:!1,arcAngle:180,hFunction:Al},GF=(e,t={})=>{var d;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},HF,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,s=UF(e,o,a),l=(((d=s[0])==null?void 0:d.r)??0)/.4||0,u=s.map(WF(i));r&&u.push(i("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(u.length)));const c=n<=180?o+l:o*(1+Math.sin((a-Math.PI)/2))+l,f=o+l,h=Math.max(c,f),p=n<=180?-o-l/2:-o*(1+Math.sin((a-Math.PI)/2))-l/2,y=i("defs",[AE(i),OE(i),TE(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-l/2,p,2*o+l,h].join(",")},[y,...u])},KF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Al},YF=(e,t={})=>{const r={...KF,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:s,maxSeatSize:l,spacing:u,innerRadiusRatio:c,showLabels:f,hFunction:h}=r,p=a*c,y=e.reduce((K,B)=>K+B.seats,0);let m={seatSize:o,arcAngle:n,score:-1};const d=n-i,v=n+i;for(let K=d;K<=v;K+=2.5){const B=K*Math.PI/180;for(let G=l;G>=s;G-=.1){const Z=G*2,D=Z*u,ot=Math.floor((a-p)/D);for(let U=1;U<=Math.min(ot,10);U++){let it=0;for(let ft=0;ft<U;ft++){const st=p+(ft+.5)*D,ht=Z*u/st,Tt=Math.floor(B/ht);it+=Tt}if(it>=y){const ft=y/it,st=(G-s)/(l-s),ht=(it-y)/y,Tt=ht<.15?1:ht<.3?.7:ht<.5?.4:.1,at=1-Math.abs(K-n)/i,dt=Tt*.5+st*.3+ft*.15+at*.05;dt>m.score&&(m={seatSize:G,arcAngle:K,rings:U,score:dt})}}}}const w=m.seatSize,b=m.arcAngle,_=b*Math.PI/180,g=w*2,x=g*u,S=Math.floor((a-p)/x),A=[],T=-_/2-Math.PI/2,C=[];let P=0,E=[];for(let K=1;K<=S;K++){let B=0;const G=[];for(let Z=0;Z<K;Z++){const D=p+(Z+.5)*x,ot=g*u/D,U=Math.floor(_/ot);G.push(U),B+=U}if(B>=y){P=K,E=G;break}}if(P>0)C.push(...E);else for(let K=0;K<S;K++){const B=p+(K+.5)*x,G=g*u/B,Z=Math.floor(_/G);C.push(Z)}for(let K=0;K<C.length;K++){const B=p+(K+.5)*x,G=C[K]??0;if(G>0){const Z=_/G;for(let D=0;D<G;D++){const ot=T+(D+.5)*Z,U=Math.cos(ot)*B,it=Math.sin(ot)*B;A.push({ring:K,index:D,angle:ot,x:U,y:it})}}}A.sort((K,B)=>{const G=K.angle-B.angle;return Math.abs(G)>.001?G:K.ring-B.ring});const k=[];let $=0;e.forEach(K=>{const B=[],G=Math.min(K.seats,A.length-$);let Z=1/0,D=-1/0;for(let U=0;U<G&&$<A.length;U++){const it=A[$++];it&&(Z=Math.min(Z,it.angle),D=Math.max(D,it.angle),Math.sqrt(it.x*it.x+it.y*it.y),B.push(h("circle",{fill:K.colour,stroke:K.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${it.x}, ${it.y})`,r:w,"data-party":K.name,"data-party-id":String(K.id),style:"pointer-events: all; cursor: pointer;"})))}const ot=B;k.push(h("g",{className:"party-group","data-party":K.name,style:"opacity: 1; outline: none;"},ot))});const j=h("g",{className:"arc-bg"},[h("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),h("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),M=h("g",{className:"points-container"},k),I=f?h("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[h("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),h("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,q=h("defs",[h("radialGradient",{id:"label-gradient"},[h("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),h("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),h("mask",{id:"label-clip"},[h("circle",{fill:"url(#label-gradient)",r:p})]),AE(h),OE(h),TE(h)]),R=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[j,M,I].filter(Boolean)),L=_/2;let W;if(b<=180)W=a*Math.sin(L)+w;else{const K=L-Math.PI/2;W=a*(1+Math.sin(K))+w}const Y=a+w,z=a*2,V=Math.max(W,Y);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${z} ${V}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[R,q])};function oC(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?qa.COMPLETED:e.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:e.color}function qy(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=Ke.animation.hoverOpacity.active:i.style.opacity=Ke.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function Fy(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",Ke.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const XF=({containerRef:e,processedData:t,totalRepositories:r,arcAngle:n,useEnhanced:i,maxSeats:a,setHoveredData:o,activePartyName:s,setActivePartyName:l,chartConfig:u,seatSize:c,shouldAnimate:f=!1,animationDirection:h="left-to-right",onAnimationComplete:p})=>{O.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const y=r<=a?1:a/r,m=t.filter(x=>x.value>0).map(x=>{const S=r<=a?x.value:Math.max(1,Math.floor(x.value*y));return{id:String(x.id),name:x.label,seats:S,colour:x.color==="url(#hatchPattern)"?qa.COMPLETED:x.color}}),d=i?YF(m,{arcAngle:n,arcAngleFlexibility:u.arcAngleFlexibility,radius:u.radius,seatSize:c,minSeatSize:u.minSeatSize,maxSeatSize:u.maxSeatSize,spacing:u.spacing,innerRadiusRatio:u.innerRadiusRatio,showLabels:!0}):GF(m,{arcAngle:n});d.properties&&(d.properties.width="100%",d.properties.height="100%",d.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",d.properties.preserveAspectRatio="xMidYMid meet");const v=jB(d),_=new DOMParser().parseFromString(v,"image/svg+xml").documentElement;if(!_)return;_.setAttribute("width","100%"),_.setAttribute("height","100%"),_.style.width="100%",_.style.height="auto",_.style.display="block",i?VF(_,m,t,o,s,l):ZF(_,m,t,o,s,l);const g=()=>{if(o(null),l(null),i)qy(_,null);else{const x=_.querySelectorAll("circle");Fy(x,null)}};return _&&_.addEventListener("mouseleave",g),e.current.appendChild(_),f&&_&&IB(_,n,u.radius,h,900,p),()=>{if(_&&_.removeEventListener("mouseleave",g),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,r,n,i,a,o,s,l,e,u,c,f,h,p])};function VF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),s=e.querySelectorAll(".party-group circle.seat-visual");s&&s.length>0&&s.forEach(l=>{if(l){const u=l;u.style.stroke=Ke.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${Ke.animation.transitionDuration} ease, stroke-opacity ${Ke.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(l=>{if(!l)return;const u=l.getAttribute("data-party"),c=l.getAttribute("data-party-id"),f=()=>{if(u&&u!==i){const h=t.find(p=>p.name===u||String(p.id)===c);if(h){const p=r.find(y=>y.label===h.name||String(y.id)===h.id);if(p){const y=oC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h.name),qy(e,h.name)}}}};l.addEventListener("mouseenter",f)}),i&&qy(e,i)}function ZF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(s=>{if(s){const l=s;l.style.cursor="pointer",l.style.stroke=Ke.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${Ke.animation.transitionDuration} ease, stroke-opacity ${Ke.animation.transitionDuration} ease`}}),o.forEach(s=>{if(!s)return;const l=s.getAttribute("class")||"",u=parseInt(l,10),c=t[u],f=()=>{if(c){const h=c.name;if(h&&h!==i){const p=r.find(y=>y.label===c.name||String(y.id)===c.id);if(p){const y=oC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h),Fy(o,l)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(l=>l.name===i);if(s){const l=t.indexOf(s);Fy(o,String(l))}}}const qd=ps,yw={[ys]:qa.NOT_APPLICABLE,[gs]:qa.NO_LST,[vs]:qa.DATA_MISSING},Yo=(e,t,r)=>{if(e in yw)return yw[e];const n=r-1-t,i=qd.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return qd[o]??qd[0]??"#000000"},sC=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,m)=>([ys,gs,vs].includes(y.label)?p.special.push({...y,originalIndex:m}):p.regular.push({...y,originalIndex:m}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:Yo(p.label,a.length-1-y,a.length)})),s=i.map((p,y)=>({id:p.label.toLowerCase().replace(" ","-"),label:p.label,value:p.value,color:Yo(p.label,y,i.length)})),l=n,u={id:"no-lst",label:gs,value:r,color:Yo(gs,0,1)},c={id:"data-missing",label:vs,value:l,color:Yo(vs,0,1)},f={id:"n/a",label:ys,value:t,color:Yo(ys,0,1)},h=[];return f.value>0&&h.push(f),u.value>0&&h.push(u),c.value>0&&h.push(c),h.push(...s),h.push(...o),h},gw={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},JF=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=Ke.useEnhanced,showTable:s=!0,shouldAnimate:l=!1,animationDirection:u="left-to-right",onAnimationComplete:c})=>{const f=O.useRef(null),[h,p]=O.useState(null),[y,m]=O.useState(null),v=sC({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(S=>{const A=typeof S.color=="function"?S.color("arc"):S.color,T=typeof S.label=="function"?S.label("arc"):S.label;return{...S,color:A,label:T}}),w=a??Vv({repositoryCount:t}),b=Zv({repositoryCount:t});XF({containerRef:f,processedData:v,totalRepositories:t,arcAngle:w,useEnhanced:o,maxSeats:Ke.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:m,chartConfig:Ke.chartConfig,seatSize:b,shouldAnimate:l,animationDirection:u,onAnimationComplete:c});const _=v.map(S=>{const A=S.value/t*100,T=A>0&&A<1?"< 1":A.toFixed(0);return{id:String(S.id),label:S.label,value:S.value,percentage:T,color:S.color}}),g=t>Ke.maxSeats,x=g?Math.round(t/Ke.maxSeats):1;return H.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[H.jsxs(tt.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[H.jsx(tt.Box,{className:"parliament-chart-svg-container",ref:f,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),H.jsxs(tt.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[h&&H.jsxs(O.Fragment,{children:[H.jsx(tt.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:h.label}),H.jsxs(tt.Typography,{sx:{fontWeight:"bold",color:h.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[h.value," ",h.value>1?"repos":"repo"]})]}),g&&H.jsxs(tt.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:h?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[H.jsx(tt.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),H.jsxs(tt.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",x," repos"]})]})]})]}),s&&H.jsx(tt.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{p(null),m(null)},children:H.jsxs(tt.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[H.jsx("thead",{children:H.jsxs(tt.TableRow,{children:[H.jsx(tt.TableCell,{}),H.jsx(tt.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),H.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),H.jsx(tt.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),H.jsx("tbody",{children:_.map(S=>{const A=S.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?zt.noLstHatch.lines:S.color;return H.jsxs(tt.TableRow,{onMouseEnter:()=>{m(S.label),p({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?zt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?zt.noLstHatch.lines:S.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:y===S.label?`${A}15`:"transparent","&:hover":{backgroundColor:`${A}15`}},children:[H.jsx(tt.TableCell,{align:"center",sx:{width:20},children:H.jsx(tt.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?zt.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?zt.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?zt.noLstHatch.background:S.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:y===S.label?"scale(1.2)":"scale(1)",...S.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
47
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function gB(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let o=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;i.space==="html"&&e.tagName==="svg"&&(n.schema=n0);const u=vB(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(u||!a||!fB(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),o&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!o&&(!a||!a0(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function vB(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=bB(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function bB(e,t,r){const n=vE(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=Ga(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Xl.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?pL:mL)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=Ga(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Xl.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&dx(r,o)>dx(r,e.alternative)&&(o=e.alternative),s=o+Ga(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Xl.single:Xl.double)[i][a],attribute:!0}))+o),l+(s&&"="+s))}const xB=["<","&"];function ME(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Ga(e.value,Object.assign({},n.settings.characterReferences,{subset:xB}))}function _B(e,t,r,n){return n.settings.allowDangerousHtml?e.value:ME(e,t,r,n)}function wB(e,t,r,n){return n.all(e)}const SB=EL("type",{invalid:AB,unknown:OB,handlers:{comment:XL,doctype:YL,element:gB,raw:_B,root:wB,text:ME}});function AB(e){throw new Error("Expected node, not `"+e+"`")}function OB(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const TB={},PB={},EB=[];function MB(e,t){const r=TB,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:CB,all:kB,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||PL,characterReferences:r.characterReferences||PB,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?n0:bE,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function CB(e,t,r){return SB(e,t,r,this)}function kB(e){const t=[],r=e&&e.children||EB;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const ir={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},Ka={COMPLETED:yr.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},As="N/A",Os="No LST",Ts="Data Missing";function $B(e,t,r,n="left-to-right",i=900,a){ee.prototype.transition=cv;const o=t*Math.PI/180,s=-o/2-Math.PI/2,l=o/2-Math.PI/2;let u=e.querySelector("defs");u||(u=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(u));const c="arc-sweep-clip";let f=u.querySelector(`#${c}`);f||(f=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),f.setAttribute("id",c),u.appendChild(f));const h=document.createElementNS("http://www.w3.org/2000/svg","path");f.innerHTML="",f.appendChild(h);const p=e.querySelector(".arc-container"),y=e.querySelector(".points-container");if(y&&p)if(y.setAttribute("clip-path",`url(#${c})`),n==="left-to-right"){const d=v=>{const x=r*1.5,_=Math.cos(v)*x,g=Math.sin(v)*x,w=Math.cos(l)*x,S=Math.sin(l)*x,A=l-v>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${x},${x} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",d(s)),ee(h).transition().duration(i).ease(v=>1-Math.pow(1-v,3)).tween("arc-sweep",()=>v=>{const x=s+(l-s)*v;h.setAttribute("d",d(x))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const d=v=>{const x=r*1.5,_=Math.cos(v)*x,g=Math.sin(v)*x,w=Math.cos(l)*x,S=Math.sin(l)*x,A=l-v>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${x},${x} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",d(l)),ee(h).transition().duration(i).ease(v=>1-Math.pow(1-v,3)).tween("arc-sweep",()=>v=>{const x=l-(l-s)*v;h.setAttribute("d",d(x))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var Yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yf,vx;function CE(){if(vx)return Yf;vx=1;var e=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl;return Yf=e,Yf}var Vf,bx;function cn(){if(bx)return Vf;bx=1;var e=CE(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Vf=r,Vf}var Zf,xx;function jB(){if(xx)return Zf;xx=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Zf=t,Zf}var Jf,_x;function RB(){if(_x)return Jf;_x=1;var e=jB(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Jf=r,Jf}var Qf,wx;function Pi(){if(wx)return Qf;wx=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Qf=e,Qf}var th,Sx;function jl(){if(Sx)return th;Sx=1;var e=cn(),t=e.Symbol;return th=t,th}var eh,Ax;function DB(){if(Ax)return eh;Ax=1;var e=jl(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),l=o[i];try{o[i]=void 0;var u=!0}catch{}var c=n.call(o);return u&&(s?o[i]=l:delete o[i]),c}return eh=a,eh}var rh,Ox;function IB(){if(Ox)return rh;Ox=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return rh=r,rh}var nh,Tx;function Qn(){if(Tx)return nh;Tx=1;var e=jl(),t=DB(),r=IB(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return nh=o,nh}var ih,Px;function ti(){if(Px)return ih;Px=1;function e(t){return t!=null&&typeof t=="object"}return ih=e,ih}var ah,Ex;function Do(){if(Ex)return ah;Ex=1;var e=Qn(),t=ti(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return ah=n,ah}var oh,Mx;function o0(){if(Mx)return oh;Mx=1;var e=RB(),t=Pi(),r=Do(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return oh=l,oh}var sh,Cx;function kE(){if(Cx)return sh;Cx=1;var e=o0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return sh=n,sh}var lh,kx;function s0(){if(kx)return lh;kx=1;var e=kE();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return lh=t,lh}var uh,$x;function qc(){if($x)return uh;$x=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return uh=e,uh}var ch,jx;function or(){if(jx)return ch;jx=1;var e=Array.isArray;return ch=e,ch}var fh,Rx;function NB(){if(Rx)return fh;Rx=1;var e=jl(),t=qc(),r=or(),n=Do(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return fh=o,fh}var hh,Dx;function l0(){if(Dx)return hh;Dx=1;var e=NB();function t(r){return r==null?"":e(r)}return hh=t,hh}var ph,Ix;function LB(){if(Ix)return ph;Ix=1;var e=cn(),t=s0(),r=o0(),n=l0(),i=e.isFinite,a=Math.min;function o(s){var l=Math[s];return function(u,c){if(u=r(u),c=c==null?0:a(t(c),292),c&&i(u)){var f=(n(u)+"e").split("e"),h=l(f[0]+"e"+(+f[1]+c));return f=(n(h)+"e").split("e"),+(f[0]+"e"+(+f[1]-c))}return l(u)}}return ph=o,ph}var dh,Nx;function BB(){if(Nx)return dh;Nx=1;var e=LB(),t=e("round");return dh=t,dh}var qB=BB();const FB=Gt(qB);var mh,Lx;function $E(){if(Lx)return mh;Lx=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return mh=e,mh}var yh,Bx;function zB(){if(Bx)return yh;Bx=1;var e=Qn(),t=ti(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return yh=n,yh}var gh,qx;function u0(){if(qx)return gh;qx=1;var e=zB(),t=ti(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return gh=a,gh}var vh,Fx;function UB(){if(Fx)return vh;Fx=1;var e=jl(),t=u0(),r=or(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return vh=i,vh}var bh,zx;function jE(){if(zx)return bh;zx=1;var e=$E(),t=UB();function r(n,i,a,o,s){var l=-1,u=n.length;for(a||(a=t),s||(s=[]);++l<u;){var c=n[l];i>0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return bh=r,bh}var xh,Ux;function c0(){if(Ux)return xh;Ux=1;var e=or(),t=Do(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return xh=i,xh}var _h,Wx;function f0(){if(Wx)return _h;Wx=1;var e=Qn(),t=Pi(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==i||l==r||l==a}return _h=o,_h}var wh,Hx;function WB(){if(Hx)return wh;Hx=1;var e=cn(),t=e["__core-js_shared__"];return wh=t,wh}var Sh,Gx;function HB(){if(Gx)return Sh;Gx=1;var e=WB(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Sh=r,Sh}var Ah,Kx;function RE(){if(Kx)return Ah;Kx=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Ah=r,Ah}var Oh,Xx;function GB(){if(Xx)return Oh;Xx=1;var e=f0(),t=HB(),r=Pi(),n=RE(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,u=s.hasOwnProperty,c=RegExp("^"+l.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?c:a;return p.test(n(h))}return Oh=f,Oh}var Th,Yx;function KB(){if(Yx)return Th;Yx=1;function e(t,r){return t==null?void 0:t[r]}return Th=e,Th}var Ph,Vx;function _a(){if(Vx)return Ph;Vx=1;var e=GB(),t=KB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Ph=r,Ph}var Eh,Zx;function Fc(){if(Zx)return Eh;Zx=1;var e=_a(),t=e(Object,"create");return Eh=t,Eh}var Mh,Jx;function XB(){if(Jx)return Mh;Jx=1;var e=Fc();function t(){this.__data__=e?e(null):{},this.size=0}return Mh=t,Mh}var Ch,Qx;function YB(){if(Qx)return Ch;Qx=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ch=e,Ch}var kh,t_;function VB(){if(t_)return kh;t_=1;var e=Fc(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return kh=i,kh}var $h,e_;function ZB(){if(e_)return $h;e_=1;var e=Fc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return $h=n,$h}var jh,r_;function JB(){if(r_)return jh;r_=1;var e=Fc(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return jh=r,jh}var Rh,n_;function QB(){if(n_)return Rh;n_=1;var e=XB(),t=YB(),r=VB(),n=ZB(),i=JB();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Rh=a,Rh}var Dh,i_;function tq(){if(i_)return Dh;i_=1;function e(){this.__data__=[],this.size=0}return Dh=e,Dh}var Ih,a_;function h0(){if(a_)return Ih;a_=1;function e(t,r){return t===r||t!==t&&r!==r}return Ih=e,Ih}var Nh,o_;function zc(){if(o_)return Nh;o_=1;var e=h0();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Nh=t,Nh}var Lh,s_;function eq(){if(s_)return Lh;s_=1;var e=zc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Lh=n,Lh}var Bh,l_;function rq(){if(l_)return Bh;l_=1;var e=zc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Bh=t,Bh}var qh,u_;function nq(){if(u_)return qh;u_=1;var e=zc();function t(r){return e(this.__data__,r)>-1}return qh=t,qh}var Fh,c_;function iq(){if(c_)return Fh;c_=1;var e=zc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Fh=t,Fh}var zh,f_;function Uc(){if(f_)return zh;f_=1;var e=tq(),t=eq(),r=rq(),n=nq(),i=iq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,zh=a,zh}var Uh,h_;function p0(){if(h_)return Uh;h_=1;var e=_a(),t=cn(),r=e(t,"Map");return Uh=r,Uh}var Wh,p_;function aq(){if(p_)return Wh;p_=1;var e=QB(),t=Uc(),r=p0();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Wh=n,Wh}var Hh,d_;function oq(){if(d_)return Hh;d_=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Hh=e,Hh}var Gh,m_;function Wc(){if(m_)return Gh;m_=1;var e=oq();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Gh=t,Gh}var Kh,y_;function sq(){if(y_)return Kh;y_=1;var e=Wc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Kh=t,Kh}var Xh,g_;function lq(){if(g_)return Xh;g_=1;var e=Wc();function t(r){return e(this,r).get(r)}return Xh=t,Xh}var Yh,v_;function uq(){if(v_)return Yh;v_=1;var e=Wc();function t(r){return e(this,r).has(r)}return Yh=t,Yh}var Vh,b_;function cq(){if(b_)return Vh;b_=1;var e=Wc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Vh=t,Vh}var Zh,x_;function d0(){if(x_)return Zh;x_=1;var e=aq(),t=sq(),r=lq(),n=uq(),i=cq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Zh=a,Zh}var Jh,__;function DE(){if(__)return Jh;__=1;var e=d0(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var u=n.apply(this,o);return a.cache=l.set(s,u)||l,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,Jh=r,Jh}var Qh,w_;function fq(){if(w_)return Qh;w_=1;var e=DE(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Qh=r,Qh}var tp,S_;function hq(){if(S_)return tp;S_=1;var e=fq(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,u){a.push(l?u.replace(r,"$1"):s||o)}),a});return tp=n,tp}var ep,A_;function IE(){if(A_)return ep;A_=1;var e=or(),t=c0(),r=hq(),n=l0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return ep=i,ep}var rp,O_;function Hc(){if(O_)return rp;O_=1;var e=Do();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return rp=t,rp}var np,T_;function m0(){if(T_)return np;T_=1;var e=IE(),t=Hc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return np=r,np}var ip,P_;function pq(){if(P_)return ip;P_=1;var e=Uc();function t(){this.__data__=new e,this.size=0}return ip=t,ip}var ap,E_;function dq(){if(E_)return ap;E_=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ap=e,ap}var op,M_;function mq(){if(M_)return op;M_=1;function e(t){return this.__data__.get(t)}return op=e,op}var sp,C_;function yq(){if(C_)return sp;C_=1;function e(t){return this.__data__.has(t)}return sp=e,sp}var lp,k_;function gq(){if(k_)return lp;k_=1;var e=Uc(),t=p0(),r=d0(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(a,o),this.size=s.size,this}return lp=i,lp}var up,$_;function NE(){if($_)return up;$_=1;var e=Uc(),t=pq(),r=dq(),n=mq(),i=yq(),a=gq();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,up=o,up}var cp,j_;function vq(){if(j_)return cp;j_=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return cp=t,cp}var fp,R_;function bq(){if(R_)return fp;R_=1;function e(t){return this.__data__.has(t)}return fp=e,fp}var hp,D_;function LE(){if(D_)return hp;D_=1;var e=d0(),t=vq(),r=bq();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,hp=n,hp}var pp,I_;function BE(){if(I_)return pp;I_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return pp=e,pp}var dp,N_;function qE(){if(N_)return dp;N_=1;function e(t,r){return t.has(r)}return dp=e,dp}var mp,L_;function FE(){if(L_)return mp;L_=1;var e=LE(),t=BE(),r=qE(),n=1,i=2;function a(o,s,l,u,c,f){var h=l&n,p=o.length,y=s.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(o),d=f.get(s);if(m&&d)return m==s&&d==o;var b=-1,v=!0,x=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++b<p;){var _=o[b],g=s[b];if(u)var w=h?u(g,_,b,s,o,f):u(_,g,b,o,s,f);if(w!==void 0){if(w)continue;v=!1;break}if(x){if(!t(s,function(S,A){if(!r(x,A)&&(_===S||c(_,S,l,u,f)))return x.push(A)})){v=!1;break}}else if(!(_===g||c(_,g,l,u,f))){v=!1;break}}return f.delete(o),f.delete(s),v}return mp=a,mp}var yp,B_;function xq(){if(B_)return yp;B_=1;var e=cn(),t=e.Uint8Array;return yp=t,yp}var gp,q_;function _q(){if(q_)return gp;q_=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return gp=e,gp}var vp,F_;function y0(){if(F_)return vp;F_=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return vp=e,vp}var bp,z_;function wq(){if(z_)return bp;z_=1;var e=jl(),t=xq(),r=h0(),n=FE(),i=_q(),a=y0(),o=1,s=2,l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",b="[object ArrayBuffer]",v="[object DataView]",x=e?e.prototype:void 0,_=x?x.valueOf:void 0;function g(w,S,A,T,M,P,E){switch(A){case v:if(w.byteLength!=S.byteLength||w.byteOffset!=S.byteOffset)return!1;w=w.buffer,S=S.buffer;case b:return!(w.byteLength!=S.byteLength||!P(new t(w),new t(S)));case l:case u:case h:return r(+w,+S);case c:return w.name==S.name&&w.message==S.message;case p:case m:return w==S+"";case f:var C=i;case y:var $=T&o;if(C||(C=a),w.size!=S.size&&!$)return!1;var j=E.get(w);if(j)return j==S;T|=s,E.set(w,S);var k=n(C(w),C(S),T,M,P,E);return E.delete(w),k;case d:if(_)return _.call(w)==_.call(S)}return!1}return bp=g,bp}var xp,U_;function Sq(){if(U_)return xp;U_=1;var e=$E(),t=or();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return xp=r,xp}var _p,W_;function Aq(){if(W_)return _p;W_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return _p=e,_p}var wp,H_;function Oq(){if(H_)return wp;H_=1;function e(){return[]}return wp=e,wp}var Sp,G_;function Tq(){if(G_)return Sp;G_=1;var e=Aq(),t=Oq(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return Sp=a,Sp}var Ap,K_;function Pq(){if(K_)return Ap;K_=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ap=e,Ap}var ds={exports:{}},Op,X_;function Eq(){if(X_)return Op;X_=1;function e(){return!1}return Op=e,Op}ds.exports;var Y_;function zE(){return Y_||(Y_=1,(function(e,t){var r=cn(),n=Eq(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(ds,ds.exports)),ds.exports}var Tp,V_;function g0(){if(V_)return Tp;V_=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Tp=r,Tp}var Pp,Z_;function v0(){if(Z_)return Pp;Z_=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Pp=t,Pp}var Ep,J_;function Mq(){if(J_)return Ep;J_=1;var e=Qn(),t=v0(),r=ti(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",b="[object DataView]",v="[object Float32Array]",x="[object Float64Array]",_="[object Int8Array]",g="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",P={};P[v]=P[x]=P[_]=P[g]=P[w]=P[S]=P[A]=P[T]=P[M]=!0,P[n]=P[i]=P[d]=P[a]=P[b]=P[o]=P[s]=P[l]=P[u]=P[c]=P[f]=P[h]=P[p]=P[y]=P[m]=!1;function E(C){return r(C)&&t(C.length)&&!!P[e(C)]}return Ep=E,Ep}var Mp,Q_;function UE(){if(Q_)return Mp;Q_=1;function e(t){return function(r){return t(r)}}return Mp=e,Mp}var ms={exports:{}};ms.exports;var t1;function Cq(){return t1||(t1=1,(function(e,t){var r=CE(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(ms,ms.exports)),ms.exports}var Cp,e1;function WE(){if(e1)return Cp;e1=1;var e=Mq(),t=UE(),r=Cq(),n=r&&r.isTypedArray,i=n?t(n):e;return Cp=i,Cp}var kp,r1;function kq(){if(r1)return kp;r1=1;var e=Pq(),t=u0(),r=or(),n=zE(),i=g0(),a=WE(),o=Object.prototype,s=o.hasOwnProperty;function l(u,c){var f=r(u),h=!f&&t(u),p=!f&&!h&&n(u),y=!f&&!h&&!p&&a(u),m=f||h||p||y,d=m?e(u.length,String):[],b=d.length;for(var v in u)(c||s.call(u,v))&&!(m&&(v=="length"||p&&(v=="offset"||v=="parent")||y&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||i(v,b)))&&d.push(v);return d}return kp=l,kp}var $p,n1;function $q(){if(n1)return $p;n1=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return $p=t,$p}var jp,i1;function HE(){if(i1)return jp;i1=1;function e(t,r){return function(n){return t(r(n))}}return jp=e,jp}var Rp,a1;function jq(){if(a1)return Rp;a1=1;var e=HE(),t=e(Object.keys,Object);return Rp=t,Rp}var Dp,o1;function Rq(){if(o1)return Dp;o1=1;var e=$q(),t=jq(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Dp=i,Dp}var Ip,s1;function Rl(){if(s1)return Ip;s1=1;var e=f0(),t=v0();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ip=r,Ip}var Np,l1;function Dl(){if(l1)return Np;l1=1;var e=kq(),t=Rq(),r=Rl();function n(i){return r(i)?e(i):t(i)}return Np=n,Np}var Lp,u1;function Dq(){if(u1)return Lp;u1=1;var e=Sq(),t=Tq(),r=Dl();function n(i){return e(i,r,t)}return Lp=n,Lp}var Bp,c1;function Iq(){if(c1)return Bp;c1=1;var e=Dq(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,l,u,c){var f=s&t,h=e(a),p=h.length,y=e(o),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var b=h[d];if(!(f?b in o:n.call(o,b)))return!1}var v=c.get(a),x=c.get(o);if(v&&x)return v==o&&x==a;var _=!0;c.set(a,o),c.set(o,a);for(var g=f;++d<p;){b=h[d];var w=a[b],S=o[b];if(l)var A=f?l(S,w,b,o,a,c):l(w,S,b,a,o,c);if(!(A===void 0?w===S||u(w,S,s,l,c):A)){_=!1;break}g||(g=b=="constructor")}if(_&&!g){var T=a.constructor,M=o.constructor;T!=M&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof M=="function"&&M instanceof M)&&(_=!1)}return c.delete(a),c.delete(o),_}return Bp=i,Bp}var qp,f1;function Nq(){if(f1)return qp;f1=1;var e=_a(),t=cn(),r=e(t,"DataView");return qp=r,qp}var Fp,h1;function Lq(){if(h1)return Fp;h1=1;var e=_a(),t=cn(),r=e(t,"Promise");return Fp=r,Fp}var zp,p1;function GE(){if(p1)return zp;p1=1;var e=_a(),t=cn(),r=e(t,"Set");return zp=r,zp}var Up,d1;function Bq(){if(d1)return Up;d1=1;var e=_a(),t=cn(),r=e(t,"WeakMap");return Up=r,Up}var Wp,m1;function qq(){if(m1)return Wp;m1=1;var e=Nq(),t=p0(),r=Lq(),n=GE(),i=Bq(),a=Qn(),o=RE(),s="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),m=o(r),d=o(n),b=o(i),v=a;return(e&&v(new e(new ArrayBuffer(1)))!=h||t&&v(new t)!=s||r&&v(r.resolve())!=u||n&&v(new n)!=c||i&&v(new i)!=f)&&(v=function(x){var _=a(x),g=_==l?x.constructor:void 0,w=g?o(g):"";if(w)switch(w){case p:return h;case y:return s;case m:return u;case d:return c;case b:return f}return _}),Wp=v,Wp}var Hp,y1;function Fq(){if(y1)return Hp;y1=1;var e=NE(),t=FE(),r=wq(),n=Iq(),i=qq(),a=or(),o=zE(),s=WE(),l=1,u="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,b,v,x,_){var g=a(m),w=a(d),S=g?c:i(m),A=w?c:i(d);S=S==u?f:S,A=A==u?f:A;var T=S==f,M=A==f,P=S==A;if(P&&o(m)){if(!o(d))return!1;g=!0,T=!1}if(P&&!T)return _||(_=new e),g||s(m)?t(m,d,b,v,x,_):r(m,d,S,b,v,x,_);if(!(b&l)){var E=T&&p.call(m,"__wrapped__"),C=M&&p.call(d,"__wrapped__");if(E||C){var $=E?m.value():m,j=C?d.value():d;return _||(_=new e),x($,j,b,v,_)}}return P?(_||(_=new e),n(m,d,b,v,x,_)):!1}return Hp=y,Hp}var Gp,g1;function b0(){if(g1)return Gp;g1=1;var e=Fq(),t=ti();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return Gp=r,Gp}var Kp,v1;function zq(){if(v1)return Kp;v1=1;var e=NE(),t=b0(),r=1,n=2;function i(a,o,s,l){var u=s.length,c=u,f=!l;if(a==null)return!c;for(a=Object(a);u--;){var h=s[u];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++u<c;){h=s[u];var p=h[0],y=a[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(l)var b=l(y,m,p,a,o,d);if(!(b===void 0?t(m,y,r|n,l,d):b))return!1}}return!0}return Kp=i,Kp}var Xp,b1;function KE(){if(b1)return Xp;b1=1;var e=Pi();function t(r){return r===r&&!e(r)}return Xp=t,Xp}var Yp,x1;function Uq(){if(x1)return Yp;x1=1;var e=KE(),t=Dl();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return Yp=r,Yp}var Vp,_1;function XE(){if(_1)return Vp;_1=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Vp=e,Vp}var Zp,w1;function Wq(){if(w1)return Zp;w1=1;var e=zq(),t=Uq(),r=XE();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Zp=n,Zp}var Jp,S1;function YE(){if(S1)return Jp;S1=1;var e=m0();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Jp=t,Jp}var Qp,A1;function Hq(){if(A1)return Qp;A1=1;function e(t,r){return t!=null&&r in Object(t)}return Qp=e,Qp}var td,O1;function Gq(){if(O1)return td;O1=1;var e=IE(),t=u0(),r=or(),n=g0(),i=v0(),a=Hc();function o(s,l,u){l=e(l,s);for(var c=-1,f=l.length,h=!1;++c<f;){var p=a(l[c]);if(!(h=s!=null&&u(s,p)))break;s=s[p]}return h||++c!=f?h:(f=s==null?0:s.length,!!f&&i(f)&&n(p,f)&&(r(s)||t(s)))}return td=o,td}var ed,T1;function Kq(){if(T1)return ed;T1=1;var e=Hq(),t=Gq();function r(n,i){return n!=null&&t(n,i,e)}return ed=r,ed}var rd,P1;function Xq(){if(P1)return rd;P1=1;var e=b0(),t=YE(),r=Kq(),n=c0(),i=KE(),a=XE(),o=Hc(),s=1,l=2;function u(c,f){return n(c)&&i(f)?a(o(c),f):function(h){var p=t(h,c);return p===void 0&&p===f?r(h,c):e(f,p,s|l)}}return rd=u,rd}var nd,E1;function Io(){if(E1)return nd;E1=1;function e(t){return t}return nd=e,nd}var id,M1;function Yq(){if(M1)return id;M1=1;function e(t){return function(r){return r==null?void 0:r[t]}}return id=e,id}var ad,C1;function Vq(){if(C1)return ad;C1=1;var e=m0();function t(r){return function(n){return e(n,r)}}return ad=t,ad}var od,k1;function Zq(){if(k1)return od;k1=1;var e=Yq(),t=Vq(),r=c0(),n=Hc();function i(a){return r(a)?e(n(a)):t(a)}return od=i,od}var sd,$1;function Ei(){if($1)return sd;$1=1;var e=Wq(),t=Xq(),r=Io(),n=or(),i=Zq();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return sd=a,sd}var ld,j1;function Jq(){if(j1)return ld;j1=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),l=s.length;l--;){var u=s[t?l:++a];if(n(o[u],u,o)===!1)break}return r}}return ld=e,ld}var ud,R1;function Qq(){if(R1)return ud;R1=1;var e=Jq(),t=e();return ud=t,ud}var cd,D1;function VE(){if(D1)return cd;D1=1;var e=Qq(),t=Dl();function r(n,i){return n&&e(n,i,t)}return cd=r,cd}var fd,I1;function tF(){if(I1)return fd;I1=1;var e=Rl();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,l=Object(i);(n?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return fd=t,fd}var hd,N1;function x0(){if(N1)return hd;N1=1;var e=VE(),t=tF(),r=t(e);return hd=r,hd}var pd,L1;function ZE(){if(L1)return pd;L1=1;var e=x0(),t=Rl();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,u){o[++a]=i(s,l,u)}),o}return pd=r,pd}var dd,B1;function eF(){if(B1)return dd;B1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return dd=e,dd}var md,q1;function rF(){if(q1)return md;q1=1;var e=Do();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),l=n!==void 0,u=n===null,c=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&l&&c&&!u&&!f||a&&l&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!l&&o||!c)return-1}return 0}return md=t,md}var yd,F1;function nF(){if(F1)return yd;F1=1;var e=rF();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,l=o.length,u=i.length;++a<l;){var c=e(o[a],s[a]);if(c){if(a>=u)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return yd=t,yd}var gd,z1;function iF(){if(z1)return gd;z1=1;var e=qc(),t=m0(),r=Ei(),n=ZE(),i=eF(),a=UE(),o=nF(),s=Io(),l=or();function u(c,f,h){f.length?f=e(f,function(m){return l(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(m,d,b){var v=e(f,function(x){return x(m)});return{criteria:v,index:++p,value:m}});return i(y,function(m,d){return o(m,d,h)})}return gd=u,gd}var vd,U1;function aF(){if(U1)return vd;U1=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return vd=e,vd}var bd,W1;function oF(){if(W1)return bd;W1=1;var e=aF(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),u=Array(l);++s<l;)u[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=a(u),e(n,this,c)}}return bd=r,bd}var xd,H1;function sF(){if(H1)return xd;H1=1;function e(t){return function(){return t}}return xd=e,xd}var _d,G1;function JE(){if(G1)return _d;G1=1;var e=_a(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return _d=t,_d}var wd,K1;function lF(){if(K1)return wd;K1=1;var e=sF(),t=JE(),r=Io(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return wd=n,wd}var Sd,X1;function uF(){if(X1)return Sd;X1=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Sd=n,Sd}var Ad,Y1;function cF(){if(Y1)return Ad;Y1=1;var e=lF(),t=uF(),r=t(e);return Ad=r,Ad}var Od,V1;function fF(){if(V1)return Od;V1=1;var e=Io(),t=oF(),r=cF();function n(i,a){return r(t(i,a,e),i+"")}return Od=n,Od}var Td,Z1;function Il(){if(Z1)return Td;Z1=1;var e=h0(),t=Rl(),r=g0(),n=Pi();function i(a,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return Td=i,Td}var Pd,J1;function hF(){if(J1)return Pd;J1=1;var e=jE(),t=iF(),r=fF(),n=Il(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Pd=i,Pd}var pF=hF();const Gc=Gt(pF);var Ed,Q1;function dF(){if(Q1)return Ed;Q1=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return Ed=e,Ed}var mF=dF();const tw=Gt(mF);var Md,ew;function yF(){if(ew)return Md;ew=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,l=t(e((i-n)/(a||1)),0),u=Array(l);l--;)u[o?l:++s]=n,n+=a;return u}return Md=r,Md}var Cd,rw;function gF(){if(rw)return Cd;rw=1;var e=yF(),t=Il(),r=kE();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Cd=n,Cd}var kd,nw;function vF(){if(nw)return kd;nw=1;var e=gF(),t=e();return kd=t,kd}var bF=vF();const Xs=Gt(bF);var $d,iw;function xF(){if(iw)return $d;iw=1;var e=qc(),t=Ei(),r=ZE(),n=or();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return $d=i,$d}var jd,aw;function _F(){if(aw)return jd;aw=1;var e=jE(),t=xF();function r(n,i){return e(t(n,i),1)}return jd=r,jd}var wF=_F();const QE=Gt(wF);var Rd,ow;function tM(){if(ow)return Rd;ow=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return Rd=e,Rd}var Dd,sw;function SF(){if(sw)return Dd;sw=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Dd=e,Dd}var Id,lw;function AF(){if(lw)return Id;lw=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return Id=r,Id}var Nd,uw;function eM(){if(uw)return Nd;uw=1;var e=AF();function t(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var s=e(i,o),l=r[s];r[s]=r[i],r[i]=l}return r.length=n,r}return Nd=t,Nd}var Ld,cw;function OF(){if(cw)return Ld;cw=1;var e=tM(),t=SF(),r=eM();function n(i,a){return r(t(i),e(a,0,i.length))}return Ld=n,Ld}var Bd,fw;function TF(){if(fw)return Bd;fw=1;var e=qc();function t(r,n){return e(n,function(i){return r[i]})}return Bd=t,Bd}var qd,hw;function PF(){if(hw)return qd;hw=1;var e=TF(),t=Dl();function r(n){return n==null?[]:e(n,t(n))}return qd=r,qd}var Fd,pw;function EF(){if(pw)return Fd;pw=1;var e=tM(),t=eM(),r=PF();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return Fd=n,Fd}var zd,dw;function MF(){if(dw)return zd;dw=1;var e=OF(),t=EF(),r=or(),n=Il(),i=s0();function a(o,s,l){(l?n(o,s,l):s===void 0)?s=1:s=i(s);var u=r(o)?e:t;return u(o,s)}return zd=a,zd}var CF=MF();const kF=Gt(CF),$F=e=>FB(e,14),mw=e=>Object.values(e).reduce((t,r)=>t+r,0),jF=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=mw(e),a=tw(Object.entries(e).map(([y,m])=>{const d=Math.max(t-Object.keys(e).length,0),b=Math.round(d*m/i);return[y,b]})),o=tw(Object.entries(e).map(([y,m])=>{const d=t+Object.keys(e).length,b=Math.min(Math.round(d*m/i),t);return[y,b]})),s=QE(Object.entries(e).map(([y,m])=>{const d=a[y],b=o[y];return Xs(d,b).map(v=>{const x=$F(m/(v+.5));return{party:y,quotient:x}})})),l=mw(a),u=t-l,c=Gc(s,({quotient:y})=>-y),f=c[u-1].quotient,h=c.filter(({quotient:y})=>y>f),p=c.filter(({quotient:y})=>y===f);if(h.length+p.length===u)h.push(...p);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");h.push(...kF(p,u-h.length))}return h.reduce((y,{party:m})=>(y[m]+=1,y),a)},Fu=e=>Math.round(e*1e10)/1e10,RF=e=>e.reduce((t,r)=>t+r.seats,0),DF=e=>e.flat(),IF=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:Fu(e*Math.cos(i)),y:Fu(e*Math.sin(i))}},rM=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},es=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(rM(e,t,r,n)*t/r-i)},NF=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=es(e,n,t,r),a=0;for(es(e,n+1,t,r)<i&&(a=1),es(e,n-1,t,r)<i&&n>1&&(a=-1);es(e,n+a,t,r)<i&&n>0;)i=es(e,n+a,t,r),n+=a;return n},LF=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=Fu((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<e.length;o++)if(n=Fu((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},BF=(e,t,r)=>{const n=RF(e),i=NF(n,t,r),a=rM(n,i,t,r);let o={};for(let h=1;h<=i;h++)o[h]=t-(h-1)*a;o=jF(o,n);const s=[];let l,u,c;for(let h=1;h<=i;h++){const p=[];l=t-(h-1)*a,u=r*l/((o[h]??1)-1||1);for(let y=0;y<=(o[h]??1)-1;y++)c={...IF(l,y*u,r),r:.4*a},p.push(c);s.push(p)}const f=Array(s.length).fill(0);for(const h of e)for(let p=0;p<h.seats;p++){const y=LF(s,f),m=s[y],d=f[y]??0,b=m==null?void 0:m[d];b&&(b.fill=h.colour,b.party=String(h.id)),f[y]=d+1}return DF(s)},qF=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),FF={seatCount:!1,arcAngle:180,hFunction:$l},zF=(e,t={})=>{var d;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},FF,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,s=BF(e,o,a),l=(((d=s[0])==null?void 0:d.r)??0)/.4||0,u=s.map(qF(i));r&&u.push(i("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(u.length)));const c=n<=180?o+l:o*(1+Math.sin((a-Math.PI)/2))+l,f=o+l,h=Math.max(c,f),p=n<=180?-o-l/2:-o*(1+Math.sin((a-Math.PI)/2))-l/2,y=i("defs",[_E(i),wE(i),SE(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-l/2,p,2*o+l,h].join(",")},[y,...u])},UF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:$l},WF=(e,t={})=>{const r={...UF,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:s,maxSeatSize:l,spacing:u,innerRadiusRatio:c,showLabels:f,hFunction:h}=r,p=a*c,y=e.reduce((X,z)=>X+z.seats,0);let m={seatSize:o,arcAngle:n,score:-1};const d=n-i,b=n+i;for(let X=d;X<=b;X+=2.5){const z=X*Math.PI/180;for(let Y=l;Y>=s;Y-=.1){const V=Y*2,D=V*u,rt=Math.floor((a-p)/D);for(let W=1;W<=Math.min(rt,10);W++){let tt=0;for(let ct=0;ct<W;ct++){const at=p+(ct+.5)*D,mt=V*u/at,Et=Math.floor(z/mt);tt+=Et}if(tt>=y){const ct=y/tt,at=(Y-s)/(l-s),mt=(tt-y)/y,Et=mt<.15?1:mt<.3?.7:mt<.5?.4:.1,dt=1-Math.abs(X-n)/i,nt=Et*.5+at*.3+ct*.15+dt*.05;nt>m.score&&(m={seatSize:Y,arcAngle:X,rings:W,score:nt})}}}}const v=m.seatSize,x=m.arcAngle,_=x*Math.PI/180,g=v*2,w=g*u,S=Math.floor((a-p)/w),A=[],T=-_/2-Math.PI/2,M=[];let P=0,E=[];for(let X=1;X<=S;X++){let z=0;const Y=[];for(let V=0;V<X;V++){const D=p+(V+.5)*w,rt=g*u/D,W=Math.floor(_/rt);Y.push(W),z+=W}if(z>=y){P=X,E=Y;break}}if(P>0)M.push(...E);else for(let X=0;X<S;X++){const z=p+(X+.5)*w,Y=g*u/z,V=Math.floor(_/Y);M.push(V)}for(let X=0;X<M.length;X++){const z=p+(X+.5)*w,Y=M[X]??0;if(Y>0){const V=_/Y;for(let D=0;D<Y;D++){const rt=T+(D+.5)*V,W=Math.cos(rt)*z,tt=Math.sin(rt)*z;A.push({ring:X,index:D,angle:rt,x:W,y:tt})}}}A.sort((X,z)=>{const Y=X.angle-z.angle;return Math.abs(Y)>.001?Y:X.ring-z.ring});const C=[];let $=0;e.forEach(X=>{const z=[],Y=Math.min(X.seats,A.length-$);let V=1/0,D=-1/0;for(let W=0;W<Y&&$<A.length;W++){const tt=A[$++];tt&&(V=Math.min(V,tt.angle),D=Math.max(D,tt.angle),Math.sqrt(tt.x*tt.x+tt.y*tt.y),z.push(h("circle",{fill:X.colour,stroke:X.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${tt.x}, ${tt.y})`,r:v,"data-party":X.name,"data-party-id":String(X.id),style:"pointer-events: all; cursor: pointer;"})))}const rt=z;C.push(h("g",{className:"party-group","data-party":X.name,style:"opacity: 1; outline: none;"},rt))});const j=h("g",{className:"arc-bg"},[h("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),h("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),k=h("g",{className:"points-container"},C),R=f?h("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[h("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),h("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,L=h("defs",[h("radialGradient",{id:"label-gradient"},[h("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),h("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),h("mask",{id:"label-clip"},[h("circle",{fill:"url(#label-gradient)",r:p})]),_E(h),wE(h),SE(h)]),B=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[j,k,R].filter(Boolean)),q=_/2;let N;if(x<=180)N=a*Math.sin(q)+v;else{const X=q-Math.PI/2;N=a*(1+Math.sin(X))+v}const G=a+v,F=a*2,K=Math.max(N,G);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${F} ${K}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[B,L])};function nM(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?Ka.COMPLETED:e.color==="url(#greyHatchPattern)"?Kt.greyHatch.lines:e.color}function Uy(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=ir.animation.hoverOpacity.active:i.style.opacity=ir.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function Wy(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",ir.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const HF=({containerRef:e,processedData:t,totalRepositories:r,arcAngle:n,useEnhanced:i,maxSeats:a,setHoveredData:o,activePartyName:s,setActivePartyName:l,chartConfig:u,seatSize:c,shouldAnimate:f=!1,animationDirection:h="left-to-right",onAnimationComplete:p})=>{O.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const y=r<=a?1:a/r,m=t.filter(w=>w.value>0).map(w=>{const S=r<=a?w.value:Math.max(1,Math.floor(w.value*y));return{id:String(w.id),name:w.label,seats:S,colour:w.color==="url(#hatchPattern)"?Ka.COMPLETED:w.color}}),d=i?WF(m,{arcAngle:n,arcAngleFlexibility:u.arcAngleFlexibility,radius:u.radius,seatSize:c,minSeatSize:u.minSeatSize,maxSeatSize:u.maxSeatSize,spacing:u.spacing,innerRadiusRatio:u.innerRadiusRatio,showLabels:!0}):zF(m,{arcAngle:n});d.properties&&(d.properties.width="100%",d.properties.height="100%",d.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",d.properties.preserveAspectRatio="xMidYMid meet");const b=MB(d),_=new DOMParser().parseFromString(b,"image/svg+xml").documentElement;if(!_)return;_.setAttribute("width","100%"),_.setAttribute("height","100%"),_.style.width="100%",_.style.height="auto",_.style.display="block",i?GF(_,m,t,o,s,l):KF(_,m,t,o,s,l);const g=()=>{if(o(null),l(null),i)Uy(_,null);else{const w=_.querySelectorAll("circle");Wy(w,null)}};return _&&_.addEventListener("mouseleave",g),e.current.appendChild(_),f&&_&&$B(_,n,u.radius,h,900,p),()=>{if(_&&_.removeEventListener("mouseleave",g),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,r,n,i,a,o,s,l,e,u,c,f,h,p])};function GF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),s=e.querySelectorAll(".party-group circle.seat-visual");s&&s.length>0&&s.forEach(l=>{if(l){const u=l;u.style.stroke=ir.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${ir.animation.transitionDuration} ease, stroke-opacity ${ir.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(l=>{if(!l)return;const u=l.getAttribute("data-party"),c=l.getAttribute("data-party-id"),f=()=>{if(u&&u!==i){const h=t.find(p=>p.name===u||String(p.id)===c);if(h){const p=r.find(y=>y.label===h.name||String(y.id)===h.id);if(p){const y=nM(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h.name),Uy(e,h.name)}}}};l.addEventListener("mouseenter",f)}),i&&Uy(e,i)}function KF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(s=>{if(s){const l=s;l.style.cursor="pointer",l.style.stroke=ir.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${ir.animation.transitionDuration} ease, stroke-opacity ${ir.animation.transitionDuration} ease`}}),o.forEach(s=>{if(!s)return;const l=s.getAttribute("class")||"",u=parseInt(l,10),c=t[u],f=()=>{if(c){const h=c.name;if(h&&h!==i){const p=r.find(y=>y.label===c.name||String(y.id)===c.id);if(p){const y=nM(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h),Wy(o,l)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(l=>l.name===i);if(s){const l=t.indexOf(s);Wy(o,String(l))}}}const Ud=_s,yw={[As]:Ka.NOT_APPLICABLE,[Os]:Ka.NO_LST,[Ts]:Ka.DATA_MISSING},rs=(e,t,r)=>{if(e in yw)return yw[e];const n=r-1-t,i=Ud.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return Ud[o]??Ud[0]??"#000000"},iM=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,m)=>([As,Os,Ts].includes(y.label)?p.special.push({...y,originalIndex:m}):p.regular.push({...y,originalIndex:m}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:rs(p.label,a.length-1-y,a.length)})),s=i.map((p,y)=>({id:p.label.toLowerCase().replace(" ","-"),label:p.label,value:p.value,color:rs(p.label,y,i.length)})),l=n,u={id:"no-lst",label:Os,value:r,color:rs(Os,0,1)},c={id:"data-missing",label:Ts,value:l,color:rs(Ts,0,1)},f={id:"n/a",label:As,value:t,color:rs(As,0,1)},h=[];return f.value>0&&h.push(f),u.value>0&&h.push(u),c.value>0&&h.push(c),h.push(...s),h.push(...o),h},gw={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},XF=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=ir.useEnhanced,showTable:s=!0,shouldAnimate:l=!1,animationDirection:u="left-to-right",onAnimationComplete:c})=>{const f=O.useRef(null),[h,p]=O.useState(null),[y,m]=O.useState(null),b=iM({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(S=>{const A=typeof S.color=="function"?S.color("arc"):S.color,T=typeof S.label=="function"?S.label("arc"):S.label;return{...S,color:A,label:T}}),v=a??t0({repositoryCount:t}),x=e0({repositoryCount:t});HF({containerRef:f,processedData:b,totalRepositories:t,arcAngle:v,useEnhanced:o,maxSeats:ir.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:m,chartConfig:ir.chartConfig,seatSize:x,shouldAnimate:l,animationDirection:u,onAnimationComplete:c});const _=b.map(S=>{const A=S.value/t*100,T=A>0&&A<1?"< 1":A.toFixed(0);return{id:String(S.id),label:S.label,value:S.value,percentage:T,color:S.color}}),g=t>ir.maxSeats,w=g?Math.round(t/ir.maxSeats):1;return H.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[H.jsxs(Q.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[H.jsx(Q.Box,{className:"parliament-chart-svg-container",ref:f,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),H.jsxs(Q.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[h&&H.jsxs(O.Fragment,{children:[H.jsx(Q.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:h.label}),H.jsxs(Q.Typography,{sx:{fontWeight:"bold",color:h.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[h.value," ",h.value>1?"repos":"repo"]})]}),g&&H.jsxs(Q.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:h?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[H.jsx(Q.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),H.jsxs(Q.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),s&&H.jsx(Q.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{p(null),m(null)},children:H.jsxs(Q.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[H.jsx("thead",{children:H.jsxs(Q.TableRow,{children:[H.jsx(Q.TableCell,{}),H.jsx(Q.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),H.jsx("tbody",{children:_.map(S=>{const A=S.color==="url(#greyHatchPattern)"?Kt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Kt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Kt.noLstHatch.lines:S.color;return H.jsxs(Q.TableRow,{onMouseEnter:()=>{m(S.label),p({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?Kt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Kt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Kt.noLstHatch.lines:S.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:y===S.label?`${A}15`:"transparent","&:hover":{backgroundColor:`${A}15`}},children:[H.jsx(Q.TableCell,{align:"center",sx:{width:20},children:H.jsx(Q.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?Kt.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?Kt.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?Kt.noLstHatch.background:S.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:y===S.label?"scale(1.2)":"scale(1)",...S.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
48
48
  0deg,
49
49
  transparent,
50
50
  transparent 3px,
51
- ${zt.greyHatch.lines} 3px,
52
- ${zt.greyHatch.lines} 4px
51
+ ${Kt.greyHatch.lines} 3px,
52
+ ${Kt.greyHatch.lines} 4px
53
53
  )`,borderRadius:"50%"}},...S.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
54
54
  45deg,
55
55
  transparent,
56
56
  transparent 3px,
57
- ${zt.dataMissingHatch.lines} 3px,
58
- ${zt.dataMissingHatch.lines} 4px
57
+ ${Kt.dataMissingHatch.lines} 3px,
58
+ ${Kt.dataMissingHatch.lines} 4px
59
59
  )`,borderRadius:"50%"}},...S.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
60
60
  -45deg,
61
61
  transparent,
62
62
  transparent 3px,
63
- ${zt.noLstHatch.lines} 3px,
64
- ${zt.noLstHatch.lines} 4px
65
- )`,borderRadius:"50%"}}}})}),H.jsx(tt.TableCell,{children:H.jsxs(tt.Stack,{direction:"row",alignItems:"center",gap:.5,children:[H.jsx("span",{children:S.label}),gw[S.label]&&H.jsx(tt.Tooltip,{title:gw[S.label],placement:"right",arrow:!0,children:H.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),H.jsx(tt.TableCell,{align:"right",children:S.value}),H.jsxs(tt.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function lC(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=lC(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ot(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=lC(e))&&(n&&(n+=" "),n+=t);return n}var QF=JE();const Fr=qt(QF);var Fd,vw;function t5(){if(vw)return Fd;vw=1;function e(t){return t==null}return Fd=e,Fd}var e5=t5();const gt=qt(e5);var zd,bw;function r5(){if(bw)return zd;bw=1;var e=Yn(),t=Xe(),r=Xn(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return zd=i,zd}var n5=r5();const na=qt(n5);var i5=s0();const bt=qt(i5);var a5=vi();const Co=qt(a5);var Wl={exports:{}},Dt={};/**
63
+ ${Kt.noLstHatch.lines} 3px,
64
+ ${Kt.noLstHatch.lines} 4px
65
+ )`,borderRadius:"50%"}}}})}),H.jsx(Q.TableCell,{children:H.jsxs(Q.Stack,{direction:"row",alignItems:"center",gap:.5,children:[H.jsx("span",{children:S.label}),gw[S.label]&&H.jsx(Q.Tooltip,{title:gw[S.label],placement:"right",arrow:!0,children:H.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),H.jsx(Q.TableCell,{align:"right",children:S.value}),H.jsxs(Q.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function aM(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=aM(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ct(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=aM(e))&&(n&&(n+=" "),n+=t);return n}var YF=YE();const Xr=Gt(YF);var Wd,vw;function VF(){if(vw)return Wd;vw=1;function e(t){return t==null}return Wd=e,Wd}var ZF=VF();const xt=Gt(ZF);var Hd,bw;function JF(){if(bw)return Hd;bw=1;var e=Qn(),t=or(),r=ti(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Hd=i,Hd}var QF=JF();const fa=Gt(QF);var t5=f0();const At=Gt(t5);var e5=Pi();const No=Gt(e5);var Vl={exports:{}},Ft={};/**
66
66
  * @license React
67
67
  * react-is.production.min.js
68
68
  *
@@ -70,7 +70,7 @@
70
70
  *
71
71
  * This source code is licensed under the MIT license found in the
72
72
  * LICENSE file in the root directory of this source tree.
73
- */var _w;function o5(){if(_w)return Dt;_w=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var v=d.$$typeof;switch(v){case e:switch(d=d.type,d){case r:case i:case n:case u:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case o:case l:case h:case f:case a:return d;default:return v}}case t:return v}}}return Dt.ContextConsumer=o,Dt.ContextProvider=a,Dt.Element=e,Dt.ForwardRef=l,Dt.Fragment=r,Dt.Lazy=h,Dt.Memo=f,Dt.Portal=t,Dt.Profiler=i,Dt.StrictMode=n,Dt.Suspense=u,Dt.SuspenseList=c,Dt.isAsyncMode=function(){return!1},Dt.isConcurrentMode=function(){return!1},Dt.isContextConsumer=function(d){return m(d)===o},Dt.isContextProvider=function(d){return m(d)===a},Dt.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},Dt.isForwardRef=function(d){return m(d)===l},Dt.isFragment=function(d){return m(d)===r},Dt.isLazy=function(d){return m(d)===h},Dt.isMemo=function(d){return m(d)===f},Dt.isPortal=function(d){return m(d)===t},Dt.isProfiler=function(d){return m(d)===i},Dt.isStrictMode=function(d){return m(d)===n},Dt.isSuspense=function(d){return m(d)===u},Dt.isSuspenseList=function(d){return m(d)===c},Dt.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===u||d===c||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===a||d.$$typeof===o||d.$$typeof===l||d.$$typeof===y||d.getModuleId!==void 0)},Dt.typeOf=m,Dt}var It={};/**
73
+ */var xw;function r5(){if(xw)return Ft;xw=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var b=d.$$typeof;switch(b){case e:switch(d=d.type,d){case r:case i:case n:case u:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case o:case l:case h:case f:case a:return d;default:return b}}case t:return b}}}return Ft.ContextConsumer=o,Ft.ContextProvider=a,Ft.Element=e,Ft.ForwardRef=l,Ft.Fragment=r,Ft.Lazy=h,Ft.Memo=f,Ft.Portal=t,Ft.Profiler=i,Ft.StrictMode=n,Ft.Suspense=u,Ft.SuspenseList=c,Ft.isAsyncMode=function(){return!1},Ft.isConcurrentMode=function(){return!1},Ft.isContextConsumer=function(d){return m(d)===o},Ft.isContextProvider=function(d){return m(d)===a},Ft.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},Ft.isForwardRef=function(d){return m(d)===l},Ft.isFragment=function(d){return m(d)===r},Ft.isLazy=function(d){return m(d)===h},Ft.isMemo=function(d){return m(d)===f},Ft.isPortal=function(d){return m(d)===t},Ft.isProfiler=function(d){return m(d)===i},Ft.isStrictMode=function(d){return m(d)===n},Ft.isSuspense=function(d){return m(d)===u},Ft.isSuspenseList=function(d){return m(d)===c},Ft.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===u||d===c||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===a||d.$$typeof===o||d.$$typeof===l||d.$$typeof===y||d.getModuleId!==void 0)},Ft.typeOf=m,Ft}var zt={};/**
74
74
  * @license React
75
75
  * react-is.development.js
76
76
  *
@@ -78,70 +78,70 @@
78
78
  *
79
79
  * This source code is licensed under the MIT license found in the
80
80
  * LICENSE file in the root directory of this source tree.
81
- */var xw;function s5(){return xw||(xw=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,m=!1,d=!1,v=!1,w=!1,b;b=Symbol.for("react.module.reference");function _(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===i||w||U===n||U===u||U===c||v||U===p||y||m||d||typeof U=="object"&&U!==null&&(U.$$typeof===h||U.$$typeof===f||U.$$typeof===a||U.$$typeof===o||U.$$typeof===l||U.$$typeof===b||U.getModuleId!==void 0))}function g(U){if(typeof U=="object"&&U!==null){var it=U.$$typeof;switch(it){case e:var ft=U.type;switch(ft){case r:case i:case n:case u:case c:return ft;default:var st=ft&&ft.$$typeof;switch(st){case s:case o:case l:case h:case f:case a:return st;default:return it}}case t:return it}}}var x=o,S=a,A=e,T=l,C=r,P=h,E=f,k=t,$=i,j=n,M=u,I=c,q=!1,F=!1;function N(U){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function R(U){return F||(F=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(U){return g(U)===o}function W(U){return g(U)===a}function Y(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function z(U){return g(U)===l}function V(U){return g(U)===r}function J(U){return g(U)===h}function K(U){return g(U)===f}function B(U){return g(U)===t}function G(U){return g(U)===i}function Z(U){return g(U)===n}function D(U){return g(U)===u}function ot(U){return g(U)===c}It.ContextConsumer=x,It.ContextProvider=S,It.Element=A,It.ForwardRef=T,It.Fragment=C,It.Lazy=P,It.Memo=E,It.Portal=k,It.Profiler=$,It.StrictMode=j,It.Suspense=M,It.SuspenseList=I,It.isAsyncMode=N,It.isConcurrentMode=R,It.isContextConsumer=L,It.isContextProvider=W,It.isElement=Y,It.isForwardRef=z,It.isFragment=V,It.isLazy=J,It.isMemo=K,It.isPortal=B,It.isProfiler=G,It.isStrictMode=Z,It.isSuspense=D,It.isSuspenseList=ot,It.isValidElementType=_,It.typeOf=g})()),It}var ww;function l5(){return ww||(ww=1,process.env.NODE_ENV==="production"?Wl.exports=o5():Wl.exports=s5()),Wl.exports}var u5=l5(),Ud,Sw;function uC(){if(Sw)return Ud;Sw=1;var e=Yn(),t=Xn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Ud=n,Ud}var Wd,Aw;function c5(){if(Aw)return Wd;Aw=1;var e=uC();function t(r){return e(r)&&r!=+r}return Wd=t,Wd}var f5=c5();const Mo=qt(f5);var h5=uC();const p5=qt(h5);var en=function(t){return t===0?0:t>0?1:-1},Fi=function(t){return na(t)&&t.indexOf("%")===t.length-1},nt=function(t){return p5(t)&&!Mo(t)},d5=function(t){return gt(t)},be=function(t){return nt(t)||na(t)},m5=0,da=function(t){var r=++m5;return"".concat(t||"").concat(r)},ia=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!nt(t)&&!na(t))return n;var a;if(Fi(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Mo(a)&&(a=n),i&&a>r&&(a=r),a},ni=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},y5=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},le=function(t,r){return nt(t)&&nt(r)?function(n){return t+n*(r-t)}:function(){return r}};function Nu(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Fr(n,t))===r})}var g5=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,l=-1/0,u=0,c=0,f=0;f<r;f++)u=t[f].cx||0,c=t[f].cy||0,n+=u,i+=c,a+=u*c,o+=u*u,s=Math.min(s,u),l=Math.max(l,u);var h=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:l,a:h,b:(i-h*n)/r}},v5=function(t,r){return nt(t)&&nt(r)?t-r:na(t)&&na(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Fa(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function zy(e){"@babel/helpers - typeof";return zy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zy(e)}var b5=["viewBox","children"],_5=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ow=["points","pathLength"],Hd={svg:b5,polygon:Ow,polyline:Ow},g0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Lu=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!Co(n))return null;var i={};return Object.keys(n).forEach(function(a){g0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},x5=function(t,r,n){return function(i){return t(r,n,i),null}},zs=function(t,r,n){if(!Co(t)||zy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];g0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=x5(o,r,n))}),i},w5=["children"],S5=["children"];function Tw(e,t){if(e==null)return{};var r=A5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function A5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Uy(e){"@babel/helpers - typeof";return Uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uy(e)}var Pw={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ln=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Ew=null,Gd=null,v0=function e(t){if(t===Ew&&Array.isArray(Gd))return Gd;var r=[];return O.Children.forEach(t,function(n){gt(n)||(u5.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Gd=r,Ew=t,r};function sr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ln(i)}):n=[Ln(t)],v0(e).forEach(function(i){var a=Fr(i,"type.displayName")||Fr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function vr(e,t){var r=sr(e,t);return r&&r[0]}var Cw=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!nt(n)||n<=0||!nt(i)||i<=0)},O5=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],T5=function(t){return t&&t.type&&na(t.type)&&O5.indexOf(t.type)>=0},cC=function(t){return t&&Uy(t)==="object"&&"clipDot"in t},P5=function(t,r,n,i){var a,o=(a=Hd==null?void 0:Hd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!bt(t)&&(i&&o.includes(r)||_5.includes(r))||n&&g0.includes(r)},vt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!Co(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;P5((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Wy=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Mw(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Mw(a,o))return!1}return!0},Mw=function(t,r){if(gt(t)&&gt(r))return!0;if(!gt(t)&&!gt(r)){var n=t.props||{},i=n.children,a=Tw(n,w5),o=r.props||{},s=o.children,l=Tw(o,S5);return i&&s?Fa(a,l)&&Wy(i,s):!i&&!s?Fa(a,l):!1}return!1},kw=function(t,r){var n=[],i={};return v0(t).forEach(function(a,o){if(T5(a))n.push(a);else if(a){var s=Ln(a.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},E5=function(t){var r=t&&t.type;return r&&Pw[r]?Pw[r]:null},C5=function(t,r){return v0(r).indexOf(t)},M5=["children","width","height","viewBox","className","style","title","desc"];function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hy.apply(this,arguments)}function k5(e,t){if(e==null)return{};var r=$5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=k5(e,M5),c=i||{width:r,height:n,x:0,y:0},f=Ot("recharts-surface",a);return O.createElement("svg",Hy({},vt(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),O.createElement("title",null,s),O.createElement("desc",null,l),t)}var j5=["children","className"];function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ky.apply(this,arguments)}function R5(e,t){if(e==null)return{};var r=D5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function D5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Rt=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=R5(e,j5),a=Ot("recharts-layer",n);return O.createElement("g",Ky({className:a},vt(i,!0),{ref:t}),r)}),I5=process.env.NODE_ENV!=="production",Bn=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(I5&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Kd,$w;function N5(){if($w)return Kd;$w=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Kd=e,Kd}var Yd,jw;function L5(){if(jw)return Yd;jw=1;var e=N5();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Yd=t,Yd}var Xd,Rw;function fC(){if(Rw)return Xd;Rw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(u){return s.test(u)}return Xd=l,Xd}var Vd,Dw;function B5(){if(Dw)return Vd;Dw=1;function e(t){return t.split("")}return Vd=e,Vd}var Zd,Iw;function q5(){if(Iw)return Zd;Iw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=u+"?",m="["+a+"]?",d="(?:"+p+"(?:"+[c,f,h].join("|")+")"+m+y+")*",v=m+y+d,w="(?:"+[c+s+"?",s,f,h,o].join("|")+")",b=RegExp(l+"(?="+l+")|"+w+v,"g");function _(g){return g.match(b)||[]}return Zd=_,Zd}var Jd,Nw;function F5(){if(Nw)return Jd;Nw=1;var e=B5(),t=fC(),r=q5();function n(i){return t(i)?r(i):e(i)}return Jd=n,Jd}var Qd,Lw;function z5(){if(Lw)return Qd;Lw=1;var e=L5(),t=fC(),r=F5(),n=i0();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return l[a]()+u}}return Qd=i,Qd}var tm,Bw;function U5(){if(Bw)return tm;Bw=1;var e=z5(),t=e("toUpperCase");return tm=t,tm}var W5=U5();const Uc=qt(W5);function Us(e){"@babel/helpers - typeof";return Us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Us(e)}var H5=["type","size","sizeType"];function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(n){G5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G5(e,t,r){return t=K5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K5(e){var t=Y5(e,"string");return Us(t)=="symbol"?t:t+""}function Y5(e,t){if(Us(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Us(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X5(e,t){if(e==null)return{};var r=V5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hC={symbolCircle:Mv,symbolCross:aI,symbolDiamond:sI,symbolSquare:lI,symbolStar:hI,symbolTriangle:pI,symbolWye:mI},Z5=Math.PI/180,J5=function(t){var r="symbol".concat(Uc(t));return hC[r]||Mv},Q5=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Z5;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},tz=function(t,r){hC["symbol".concat(Uc(t))]=r},Wc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=X5(t,H5),u=Fw(Fw({},l),{},{type:n,size:a,sizeType:s}),c=function(){var d=J5(n),v=yI().type(d).size(Q5(a,s,n));return v()},f=u.className,h=u.cx,p=u.cy,y=vt(u,!0);return h===+h&&p===+p&&a===+a?O.createElement("path",Yy({},y,{className:Ot("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};Wc.registerSymbol=tz;function eo(e){"@babel/helpers - typeof";return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eo(e)}function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xy.apply(this,arguments)}function zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ez(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){Ws(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dC(n.key),n)}}function iz(e,t,r){return t&&nz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function az(e,t,r){return t=Bu(t),oz(e,pC()?Reflect.construct(t,r||[],Bu(e).constructor):t.apply(e,r))}function oz(e,t){if(t&&(eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sz(e)}function sz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pC=function(){return!!e})()}function Bu(e){return Bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bu(e)}function lz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vy(e,t)}function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vy(e,t)}function Ws(e,t,r){return t=dC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e){var t=uz(e,"string");return eo(t)=="symbol"?t:t+""}function uz(e,t){if(eo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jr=32,b0=(function(e){function t(){return rz(this,t),az(this,t,arguments)}return lz(t,e),iz(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=jr/2,o=jr/6,s=jr/3,l=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:jr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
81
+ */var _w;function n5(){return _w||(_w=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,m=!1,d=!1,b=!1,v=!1,x;x=Symbol.for("react.module.reference");function _(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===i||v||W===n||W===u||W===c||b||W===p||y||m||d||typeof W=="object"&&W!==null&&(W.$$typeof===h||W.$$typeof===f||W.$$typeof===a||W.$$typeof===o||W.$$typeof===l||W.$$typeof===x||W.getModuleId!==void 0))}function g(W){if(typeof W=="object"&&W!==null){var tt=W.$$typeof;switch(tt){case e:var ct=W.type;switch(ct){case r:case i:case n:case u:case c:return ct;default:var at=ct&&ct.$$typeof;switch(at){case s:case o:case l:case h:case f:case a:return at;default:return tt}}case t:return tt}}}var w=o,S=a,A=e,T=l,M=r,P=h,E=f,C=t,$=i,j=n,k=u,R=c,L=!1,U=!1;function I(W){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(W){return U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(W){return g(W)===o}function N(W){return g(W)===a}function G(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function F(W){return g(W)===l}function K(W){return g(W)===r}function Z(W){return g(W)===h}function X(W){return g(W)===f}function z(W){return g(W)===t}function Y(W){return g(W)===i}function V(W){return g(W)===n}function D(W){return g(W)===u}function rt(W){return g(W)===c}zt.ContextConsumer=w,zt.ContextProvider=S,zt.Element=A,zt.ForwardRef=T,zt.Fragment=M,zt.Lazy=P,zt.Memo=E,zt.Portal=C,zt.Profiler=$,zt.StrictMode=j,zt.Suspense=k,zt.SuspenseList=R,zt.isAsyncMode=I,zt.isConcurrentMode=B,zt.isContextConsumer=q,zt.isContextProvider=N,zt.isElement=G,zt.isForwardRef=F,zt.isFragment=K,zt.isLazy=Z,zt.isMemo=X,zt.isPortal=z,zt.isProfiler=Y,zt.isStrictMode=V,zt.isSuspense=D,zt.isSuspenseList=rt,zt.isValidElementType=_,zt.typeOf=g})()),zt}var ww;function i5(){return ww||(ww=1,process.env.NODE_ENV==="production"?Vl.exports=r5():Vl.exports=n5()),Vl.exports}var a5=i5(),Gd,Sw;function oM(){if(Sw)return Gd;Sw=1;var e=Qn(),t=ti(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Gd=n,Gd}var Kd,Aw;function o5(){if(Aw)return Kd;Aw=1;var e=oM();function t(r){return e(r)&&r!=+r}return Kd=t,Kd}var s5=o5();const Lo=Gt(s5);var l5=oM();const u5=Gt(l5);var on=function(t){return t===0?0:t>0?1:-1},Yi=function(t){return fa(t)&&t.indexOf("%")===t.length-1},st=function(t){return u5(t)&&!Lo(t)},c5=function(t){return xt(t)},Pe=function(t){return st(t)||fa(t)},f5=0,wa=function(t){var r=++f5;return"".concat(t||"").concat(r)},ha=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!st(t)&&!fa(t))return n;var a;if(Yi(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Lo(a)&&(a=n),i&&a>r&&(a=r),a},ci=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},h5=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},ye=function(t,r){return st(t)&&st(r)?function(n){return t+n*(r-t)}:function(){return r}};function zu(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Xr(n,t))===r})}var p5=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,l=-1/0,u=0,c=0,f=0;f<r;f++)u=t[f].cx||0,c=t[f].cy||0,n+=u,i+=c,a+=u*c,o+=u*u,s=Math.min(s,u),l=Math.max(l,u);var h=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:l,a:h,b:(i-h*n)/r}},d5=function(t,r){return st(t)&&st(r)?t-r:fa(t)&&fa(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Xa(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Hy(e){"@babel/helpers - typeof";return Hy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hy(e)}var m5=["viewBox","children"],y5=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ow=["points","pathLength"],Xd={svg:m5,polygon:Ow,polyline:Ow},_0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Uu=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!No(n))return null;var i={};return Object.keys(n).forEach(function(a){_0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},g5=function(t,r,n){return function(i){return t(r,n,i),null}},Ys=function(t,r,n){if(!No(t)||Hy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];_0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=g5(o,r,n))}),i},v5=["children"],b5=["children"];function Tw(e,t){if(e==null)return{};var r=x5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gy(e){"@babel/helpers - typeof";return Gy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gy(e)}var Pw={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},zn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Ew=null,Yd=null,w0=function e(t){if(t===Ew&&Array.isArray(Yd))return Yd;var r=[];return O.Children.forEach(t,function(n){xt(n)||(a5.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Yd=r,Ew=t,r};function gr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return zn(i)}):n=[zn(t)],w0(e).forEach(function(i){var a=Xr(i,"type.displayName")||Xr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Tr(e,t){var r=gr(e,t);return r&&r[0]}var Mw=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!st(n)||n<=0||!st(i)||i<=0)},_5=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],w5=function(t){return t&&t.type&&fa(t.type)&&_5.indexOf(t.type)>=0},sM=function(t){return t&&Gy(t)==="object"&&"clipDot"in t},S5=function(t,r,n,i){var a,o=(a=Xd==null?void 0:Xd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!At(t)&&(i&&o.includes(r)||y5.includes(r))||n&&_0.includes(r)},St=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!No(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;S5((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Ky=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Cw(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Cw(a,o))return!1}return!0},Cw=function(t,r){if(xt(t)&&xt(r))return!0;if(!xt(t)&&!xt(r)){var n=t.props||{},i=n.children,a=Tw(n,v5),o=r.props||{},s=o.children,l=Tw(o,b5);return i&&s?Xa(a,l)&&Ky(i,s):!i&&!s?Xa(a,l):!1}return!1},kw=function(t,r){var n=[],i={};return w0(t).forEach(function(a,o){if(w5(a))n.push(a);else if(a){var s=zn(a.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},A5=function(t){var r=t&&t.type;return r&&Pw[r]?Pw[r]:null},O5=function(t,r){return w0(r).indexOf(t)},T5=["children","width","height","viewBox","className","style","title","desc"];function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xy.apply(this,arguments)}function P5(e,t){if(e==null)return{};var r=E5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=P5(e,T5),c=i||{width:r,height:n,x:0,y:0},f=Ct("recharts-surface",a);return O.createElement("svg",Xy({},St(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),O.createElement("title",null,s),O.createElement("desc",null,l),t)}var M5=["children","className"];function Vy(){return Vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vy.apply(this,arguments)}function C5(e,t){if(e==null)return{};var r=k5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function k5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Bt=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=C5(e,M5),a=Ct("recharts-layer",n);return O.createElement("g",Vy({className:a},St(i,!0),{ref:t}),r)}),$5=process.env.NODE_ENV!=="production",Un=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if($5&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Vd,$w;function j5(){if($w)return Vd;$w=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Vd=e,Vd}var Zd,jw;function R5(){if(jw)return Zd;jw=1;var e=j5();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Zd=t,Zd}var Jd,Rw;function lM(){if(Rw)return Jd;Rw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(u){return s.test(u)}return Jd=l,Jd}var Qd,Dw;function D5(){if(Dw)return Qd;Dw=1;function e(t){return t.split("")}return Qd=e,Qd}var tm,Iw;function I5(){if(Iw)return tm;Iw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=u+"?",m="["+a+"]?",d="(?:"+p+"(?:"+[c,f,h].join("|")+")"+m+y+")*",b=m+y+d,v="(?:"+[c+s+"?",s,f,h,o].join("|")+")",x=RegExp(l+"(?="+l+")|"+v+b,"g");function _(g){return g.match(x)||[]}return tm=_,tm}var em,Nw;function N5(){if(Nw)return em;Nw=1;var e=D5(),t=lM(),r=I5();function n(i){return t(i)?r(i):e(i)}return em=n,em}var rm,Lw;function L5(){if(Lw)return rm;Lw=1;var e=R5(),t=lM(),r=N5(),n=l0();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return l[a]()+u}}return rm=i,rm}var nm,Bw;function B5(){if(Bw)return nm;Bw=1;var e=L5(),t=e("toUpperCase");return nm=t,nm}var q5=B5();const Kc=Gt(q5);function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}var F5=["type","size","sizeType"];function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zy.apply(this,arguments)}function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(n){z5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z5(e,t,r){return t=U5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U5(e){var t=W5(e,"string");return Vs(t)=="symbol"?t:t+""}function W5(e,t){if(Vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H5(e,t){if(e==null)return{};var r=G5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function G5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var uM={symbolCircle:jv,symbolCross:rI,symbolDiamond:iI,symbolSquare:aI,symbolStar:uI,symbolTriangle:cI,symbolWye:hI},K5=Math.PI/180,X5=function(t){var r="symbol".concat(Kc(t));return uM[r]||jv},Y5=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*K5;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},V5=function(t,r){uM["symbol".concat(Kc(t))]=r},Xc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=H5(t,F5),u=Fw(Fw({},l),{},{type:n,size:a,sizeType:s}),c=function(){var d=X5(n),b=pI().type(d).size(Y5(a,s,n));return b()},f=u.className,h=u.cx,p=u.cy,y=St(u,!0);return h===+h&&p===+p&&a===+a?O.createElement("path",Zy({},y,{className:Ct("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};Xc.registerSymbol=V5;function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uo(e)}function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Z5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){Zs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fM(n.key),n)}}function tz(e,t,r){return t&&Q5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ez(e,t,r){return t=Wu(t),rz(e,cM()?Reflect.construct(t,r||[],Wu(e).constructor):t.apply(e,r))}function rz(e,t){if(t&&(uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nz(e)}function nz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cM=function(){return!!e})()}function Wu(e){return Wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wu(e)}function iz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qy(e,t)}function Zs(e,t,r){return t=fM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fM(e){var t=az(e,"string");return uo(t)=="symbol"?t:t+""}function az(e,t){if(uo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qr=32,S0=(function(e){function t(){return J5(this,t),ez(this,t,arguments)}return iz(t,e),tz(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=qr/2,o=qr/6,s=qr/3,l=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:qr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
82
82
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
83
- H`).concat(jr,"M").concat(2*s,",").concat(a,`
84
- A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(jr/8,"h").concat(jr,"v").concat(jr*3/4,"h").concat(-jr,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var u=ez({},n);return delete u.legendIcon,O.cloneElement(n.legendIcon,u)}return O.createElement(Wc,{fill:l,cx:a,cy:a,size:jr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:jr,height:jr},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var m=p.formatter||l,d=Ot(Ws(Ws({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var v=bt(p.value)?null:p.value;Bn(!bt(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=p.inactive?u:p.color;return O.createElement("li",Xy({className:d,style:f,key:"legend-item-".concat(y)},zs(n.props,p,y)),O.createElement(Gy,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},m?m(v,p,y):v))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);Ws(b0,"displayName","Legend");Ws(b0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var em,Uw;function mC(){if(Uw)return em;Uw=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return em=e,em}var rm,Ww;function cz(){if(Ww)return rm;Ww=1;function e(t){return t!==t}return rm=e,rm}var nm,Hw;function fz(){if(Hw)return nm;Hw=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return nm=e,nm}var im,Gw;function hz(){if(Gw)return im;Gw=1;var e=mC(),t=cz(),r=fz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return im=n,im}var am,Kw;function pz(){if(Kw)return am;Kw=1;var e=hz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return am=t,am}var om,Yw;function dz(){if(Yw)return om;Yw=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return om=e,om}var sm,Xw;function mz(){if(Xw)return sm;Xw=1;function e(){}return sm=e,sm}var lm,Vw;function yz(){if(Vw)return lm;Vw=1;var e=XE(),t=mz(),r=h0(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return lm=i,lm}var um,Zw;function gz(){if(Zw)return um;Zw=1;var e=FE(),t=pz(),r=dz(),n=UE(),i=yz(),a=h0(),o=200;function s(l,u,c){var f=-1,h=t,p=l.length,y=!0,m=[],d=m;if(c)y=!1,h=r;else if(p>=o){var v=u?null:i(l);if(v)return a(v);y=!1,h=n,d=new e}else d=u?[]:m;t:for(;++f<p;){var w=l[f],b=u?u(w):w;if(w=c||w!==0?w:0,y&&b===b){for(var _=d.length;_--;)if(d[_]===b)continue t;u&&d.push(b),m.push(w)}else h(d,b,c)||(d!==m&&d.push(b),m.push(w))}return m}return um=s,um}var cm,Jw;function vz(){if(Jw)return cm;Jw=1;var e=bi(),t=gz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return cm=r,cm}var bz=vz();const Qw=qt(bz);function yC(e,t,r){return t===!0?Qw(e,r):bt(t)?Qw(e,t):e}function ro(e){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ro(e)}var _z=["ref"];function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){Hc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vC(n.key),n)}}function wz(e,t,r){return t&&eS(e.prototype,t),r&&eS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sz(e,t,r){return t=qu(t),Az(e,gC()?Reflect.construct(t,r||[],qu(e).constructor):t.apply(e,r))}function Az(e,t){if(t&&(ro(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oz(e)}function Oz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gC=function(){return!!e})()}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qu(e)}function Tz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zy(e,t)}function Zy(e,t){return Zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zy(e,t)}function Hc(e,t,r){return t=vC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vC(e){var t=Pz(e,"string");return ro(t)=="symbol"?t:t+""}function Pz(e,t){if(ro(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ro(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ez(e,t){if(e==null)return{};var r=Cz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mz(e){return e.value}function kz(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=Ez(t,_z);return O.createElement(b0,r)}var rS=1,Xi=(function(e){function t(){var r;xz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Sz(this,t,[].concat(i)),Hc(r,"lastBoundingBox",{width:-1,height:-1}),r}return Tz(t,e),wz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>rS||Math.abs(i.height-this.lastBoundingBox.height)>rS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?kn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();h={top:((c||0)-y.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return kn(kn({},f),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=kn(kn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},kz(a,kn(kn({},this.props),{},{payload:yC(c,u,Mz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=kn(kn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&nt(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);Hc(Xi,"displayName","Legend");Hc(Xi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function Hs(e){"@babel/helpers - typeof";return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hs(e)}function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function $z(e,t){return Iz(e)||Dz(e,t)||Rz(e,t)||jz()}function jz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rz(e,t){if(e){if(typeof e=="string")return nS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nS(e,t)}}function nS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Iz(e){if(Array.isArray(e))return e}function iS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(r),!0).forEach(function(n){Nz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nz(e,t,r){return t=Lz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lz(e){var t=Bz(e,"string");return Hs(t)=="symbol"?t:t+""}function Bz(e,t){if(Hs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qz(e){return Array.isArray(e)&&be(e[0])&&be(e[1])?e.join(" ~ "):e}var Fz=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,d=t.labelFormatter,v=t.accessibilityLayer,w=v===void 0?!1:v,b=function(){if(c&&c.length){var E={padding:0,margin:0},k=(h?zc(c,h):c).map(function($,j){if($.type==="none")return null;var M=fm({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},s),I=$.formatter||f||qz,q=$.value,F=$.name,N=q,R=F;if(I&&N!=null&&R!=null){var L=I(q,F,$,j,c);if(Array.isArray(L)){var W=$z(L,2);N=W[0],R=W[1]}else N=L}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:M},be(R)?O.createElement("span",{className:"recharts-tooltip-item-name"},R):null,be(R)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},N),O.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},k)}return null},_=fm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=fm({margin:0},u),x=!gt(m),S=x?m:"",A=Ot("recharts-default-tooltip",p),T=Ot("recharts-tooltip-label",y);x&&d&&c!==void 0&&c!==null&&(S=d(m,c));var C=w?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",Jy({className:A,style:_},C),O.createElement("p",{className:T,style:g},O.isValidElement(S)?S:"".concat(S)),b())};function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}function Hl(e,t,r){return t=zz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zz(e){var t=Uz(e,"string");return Gs(t)=="symbol"?t:t+""}function Uz(e,t){if(Gs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xo="recharts-tooltip-wrapper",Wz={visibility:"hidden"};function Hz(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Ot(Xo,Hl(Hl(Hl(Hl({},"".concat(Xo,"-right"),nt(r)&&t&&nt(t.x)&&r>=t.x),"".concat(Xo,"-left"),nt(r)&&t&&nt(t.x)&&r<t.x),"".concat(Xo,"-bottom"),nt(n)&&t&&nt(t.y)&&n>=t.y),"".concat(Xo,"-top"),nt(n)&&t&&nt(t.y)&&n<t.y))}function aS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&nt(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var h=c,p=l[n];return h<p?Math.max(f,l[n]):Math.max(c,l[n])}var y=f+s,m=l[n]+u;return y>m?Math.max(c,l[n]):Math.max(f,l[n])}function Gz(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Kz(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=aS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=aS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=Gz({translateX:c,translateY:f,useTranslate3d:s})):u=Wz,{cssProperties:u,cssClasses:Hz({translateX:c,translateY:f,coordinate:r})}}function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function oS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oS(Object(r),!0).forEach(function(n){tg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_C(n.key),n)}}function Vz(e,t,r){return t&&Xz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zz(e,t,r){return t=Fu(t),Jz(e,bC()?Reflect.construct(t,r||[],Fu(e).constructor):t.apply(e,r))}function Jz(e,t){if(t&&(no(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qz(e)}function Qz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bC=function(){return!!e})()}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fu(e)}function t3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qy(e,t)}function tg(e,t,r){return t=_C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _C(e){var t=e3(e,"string");return no(t)=="symbol"?t:t+""}function e3(e,t){if(no(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(no(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lS=1,r3=(function(e){function t(){var r;Yz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Zz(this,t,[].concat(i)),tg(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),tg(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return t3(t,e),Vz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>lS||Math.abs(n.height-this.state.lastBoundingBox.height)>lS)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,m=i.reverseDirection,d=i.useTranslate3d,v=i.viewBox,w=i.wrapperStyle,b=Kz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:v}),_=b.cssClasses,g=b.cssProperties,x=sS(sS({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},w);return O.createElement("div",{tabIndex:-1,className:_,style:x,ref:function(A){n.wrapperNode=A}},u)}}])})(O.PureComponent),n3=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},_i={isSsr:n3()};function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}function uS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uS(Object(r),!0).forEach(function(n){_0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wC(n.key),n)}}function o3(e,t,r){return t&&a3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s3(e,t,r){return t=zu(t),l3(e,xC()?Reflect.construct(t,r||[],zu(e).constructor):t.apply(e,r))}function l3(e,t){if(t&&(io(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u3(e)}function u3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xC=function(){return!!e})()}function zu(e){return zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zu(e)}function c3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eg(e,t)}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eg(e,t)}function _0(e,t,r){return t=wC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wC(e){var t=f3(e,"string");return io(t)=="symbol"?t:t+""}function f3(e,t){if(io(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(io(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function h3(e){return e.dataKey}function p3(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(Fz,t)}var dn=(function(e){function t(){return i3(this,t),s3(this,t,arguments)}return c3(t,e),o3(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,m=i.payloadUniqBy,d=i.position,v=i.reverseDirection,w=i.useTranslate3d,b=i.viewBox,_=i.wrapperStyle,g=y??[];f&&g.length&&(g=yC(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),m,h3));var x=g.length>0;return O.createElement(r3,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:c,hasPayload:x,offset:p,position:d,reverseDirection:v,useTranslate3d:w,viewBox:b,wrapperStyle:_},p3(u,cS(cS({},this.props),{},{payload:g})))}}])})(O.PureComponent);_0(dn,"displayName","Tooltip");_0(dn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!_i.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var hm,fS;function d3(){if(fS)return hm;fS=1;var e=on(),t=function(){return e.Date.now()};return hm=t,hm}var pm,hS;function m3(){if(hS)return pm;hS=1;var e=vi(),t=d3(),r=r0(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,u){var c,f,h,p,y,m,d=0,v=!1,w=!1,b=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(v=!!u.leading,w="maxWait"in u,h=w?i(r(u.maxWait)||0,l):h,b="trailing"in u?!!u.trailing:b);function _(k){var $=c,j=f;return c=f=void 0,d=k,p=s.apply(j,$),p}function g(k){return d=k,y=setTimeout(A,l),v?_(k):p}function x(k){var $=k-m,j=k-d,M=l-$;return w?a(M,h-j):M}function S(k){var $=k-m,j=k-d;return m===void 0||$>=l||$<0||w&&j>=h}function A(){var k=t();if(S(k))return T(k);y=setTimeout(A,x(k))}function T(k){return y=void 0,b&&c?_(k):(c=f=void 0,p)}function C(){y!==void 0&&clearTimeout(y),d=0,c=m=f=y=void 0}function P(){return y===void 0?p:T(t())}function E(){var k=t(),$=S(k);if(c=arguments,f=this,m=k,$){if(y===void 0)return g(m);if(w)return clearTimeout(y),y=setTimeout(A,l),_(m)}return y===void 0&&(y=setTimeout(A,l)),p}return E.cancel=C,E.flush=P,E}return pm=o,pm}var dm,pS;function y3(){if(pS)return dm;pS=1;var e=m3(),t=vi(),r="Expected a function";function n(i,a,o){var s=!0,l=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(i,a,{leading:s,maxWait:a,trailing:l})}return dm=n,dm}var g3=y3();const SC=qt(g3);function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}function dS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dS(Object(r),!0).forEach(function(n){v3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v3(e,t,r){return t=b3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b3(e){var t=_3(e,"string");return Ks(t)=="symbol"?t:t+""}function _3(e,t){if(Ks(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ks(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function x3(e,t){return O3(e)||A3(e,t)||S3(e,t)||w3()}function w3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
86
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S3(e,t){if(e){if(typeof e=="string")return mS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mS(e,t)}}function mS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function O3(e){if(Array.isArray(e))return e}var T3=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,d=e.id,v=e.className,w=e.onResize,b=e.style,_=b===void 0?{}:b,g=O.useRef(null),x=O.useRef();x.current=w,O.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var S=O.useState({containerWidth:i.width,containerHeight:i.height}),A=x3(S,2),T=A[0],C=A[1],P=O.useCallback(function(k,$){C(function(j){var M=Math.round(k),I=Math.round($);return j.containerWidth===M&&j.containerHeight===I?j:{containerWidth:M,containerHeight:I}})},[]);O.useEffect(function(){var k=function(F){var N,R=F[0].contentRect,L=R.width,W=R.height;P(L,W),(N=x.current)===null||N===void 0||N.call(x,L,W)};m>0&&(k=SC(k,m,{trailing:!0,leading:!1}));var $=new ResizeObserver(k),j=g.current.getBoundingClientRect(),M=j.width,I=j.height;return P(M,I),$.observe(g.current),function(){$.disconnect()}},[P,m]);var E=O.useMemo(function(){var k=T.containerWidth,$=T.containerHeight;if(k<0||$<0)return null;Bn(Fi(o)||Fi(l),`The width(%s) and height(%s) are both fixed numbers,
87
- maybe you don't need to use a ResponsiveContainer.`,o,l),Bn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var j=Fi(o)?k:o,M=Fi(l)?$:l;r&&r>0&&(j?M=j/r:M&&(j=M*r),h&&M>h&&(M=h)),Bn(j>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0,
83
+ H`).concat(qr,"M").concat(2*s,",").concat(a,`
84
+ A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(qr/8,"h").concat(qr,"v").concat(qr*3/4,"h").concat(-qr,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var u=Z5({},n);return delete u.legendIcon,O.cloneElement(n.legendIcon,u)}return O.createElement(Xc,{fill:l,cx:a,cy:a,size:qr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:qr,height:qr},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var m=p.formatter||l,d=Ct(Zs(Zs({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=At(p.value)?null:p.value;Un(!At(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var v=p.inactive?u:p.color;return O.createElement("li",Jy({className:d,style:f,key:"legend-item-".concat(y)},Ys(n.props,p,y)),O.createElement(Yy,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},m?m(b,p,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);Zs(S0,"displayName","Legend");Zs(S0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var im,Uw;function hM(){if(Uw)return im;Uw=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return im=e,im}var am,Ww;function oz(){if(Ww)return am;Ww=1;function e(t){return t!==t}return am=e,am}var om,Hw;function sz(){if(Hw)return om;Hw=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return om=e,om}var sm,Gw;function lz(){if(Gw)return sm;Gw=1;var e=hM(),t=oz(),r=sz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return sm=n,sm}var lm,Kw;function uz(){if(Kw)return lm;Kw=1;var e=lz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return lm=t,lm}var um,Xw;function cz(){if(Xw)return um;Xw=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return um=e,um}var cm,Yw;function fz(){if(Yw)return cm;Yw=1;function e(){}return cm=e,cm}var fm,Vw;function hz(){if(Vw)return fm;Vw=1;var e=GE(),t=fz(),r=y0(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return fm=i,fm}var hm,Zw;function pz(){if(Zw)return hm;Zw=1;var e=LE(),t=uz(),r=cz(),n=qE(),i=hz(),a=y0(),o=200;function s(l,u,c){var f=-1,h=t,p=l.length,y=!0,m=[],d=m;if(c)y=!1,h=r;else if(p>=o){var b=u?null:i(l);if(b)return a(b);y=!1,h=n,d=new e}else d=u?[]:m;t:for(;++f<p;){var v=l[f],x=u?u(v):v;if(v=c||v!==0?v:0,y&&x===x){for(var _=d.length;_--;)if(d[_]===x)continue t;u&&d.push(x),m.push(v)}else h(d,x,c)||(d!==m&&d.push(x),m.push(v))}return m}return hm=s,hm}var pm,Jw;function dz(){if(Jw)return pm;Jw=1;var e=Ei(),t=pz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return pm=r,pm}var mz=dz();const Qw=Gt(mz);function pM(e,t,r){return t===!0?Qw(e,r):At(t)?Qw(e,t):e}function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}var yz=["ref"];function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){Yc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mM(n.key),n)}}function vz(e,t,r){return t&&eS(e.prototype,t),r&&eS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bz(e,t,r){return t=Hu(t),xz(e,dM()?Reflect.construct(t,r||[],Hu(e).constructor):t.apply(e,r))}function xz(e,t){if(t&&(co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _z(e)}function _z(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dM=function(){return!!e})()}function Hu(e){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hu(e)}function wz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tg(e,t)}function tg(e,t){return tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tg(e,t)}function Yc(e,t,r){return t=mM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mM(e){var t=Sz(e,"string");return co(t)=="symbol"?t:t+""}function Sz(e,t){if(co(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(co(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Az(e,t){if(e==null)return{};var r=Oz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Oz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Tz(e){return e.value}function Pz(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=Az(t,yz);return O.createElement(S0,r)}var rS=1,na=(function(e){function t(){var r;gz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=bz(this,t,[].concat(i)),Yc(r,"lastBoundingBox",{width:-1,height:-1}),r}return wz(t,e),vz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>rS||Math.abs(i.height-this.lastBoundingBox.height)>rS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Dn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();h={top:((c||0)-y.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Dn(Dn({},f),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=Dn(Dn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},Pz(a,Dn(Dn({},this.props),{},{payload:pM(c,u,Tz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Dn(Dn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&st(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);Yc(na,"displayName","Legend");Yc(na,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function eg(){return eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg.apply(this,arguments)}function Ez(e,t){return $z(e)||kz(e,t)||Cz(e,t)||Mz()}function Mz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cz(e,t){if(e){if(typeof e=="string")return nS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nS(e,t)}}function nS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function $z(e){if(Array.isArray(e))return e}function iS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(r),!0).forEach(function(n){jz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jz(e,t,r){return t=Rz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rz(e){var t=Dz(e,"string");return Js(t)=="symbol"?t:t+""}function Dz(e,t){if(Js(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iz(e){return Array.isArray(e)&&Pe(e[0])&&Pe(e[1])?e.join(" ~ "):e}var Nz=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,d=t.labelFormatter,b=t.accessibilityLayer,v=b===void 0?!1:b,x=function(){if(c&&c.length){var E={padding:0,margin:0},C=(h?Gc(c,h):c).map(function($,j){if($.type==="none")return null;var k=dm({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},s),R=$.formatter||f||Iz,L=$.value,U=$.name,I=L,B=U;if(R&&I!=null&&B!=null){var q=R(L,U,$,j,c);if(Array.isArray(q)){var N=Ez(q,2);I=N[0],B=N[1]}else I=q}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:k},Pe(B)?O.createElement("span",{className:"recharts-tooltip-item-name"},B):null,Pe(B)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},C)}return null},_=dm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=dm({margin:0},u),w=!xt(m),S=w?m:"",A=Ct("recharts-default-tooltip",p),T=Ct("recharts-tooltip-label",y);w&&d&&c!==void 0&&c!==null&&(S=d(m,c));var M=v?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",eg({className:A,style:_},M),O.createElement("p",{className:T,style:g},O.isValidElement(S)?S:"".concat(S)),x())};function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function Zl(e,t,r){return t=Lz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lz(e){var t=Bz(e,"string");return Qs(t)=="symbol"?t:t+""}function Bz(e,t){if(Qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ns="recharts-tooltip-wrapper",qz={visibility:"hidden"};function Fz(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Ct(ns,Zl(Zl(Zl(Zl({},"".concat(ns,"-right"),st(r)&&t&&st(t.x)&&r>=t.x),"".concat(ns,"-left"),st(r)&&t&&st(t.x)&&r<t.x),"".concat(ns,"-bottom"),st(n)&&t&&st(t.y)&&n>=t.y),"".concat(ns,"-top"),st(n)&&t&&st(t.y)&&n<t.y))}function aS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&st(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var h=c,p=l[n];return h<p?Math.max(f,l[n]):Math.max(c,l[n])}var y=f+s,m=l[n]+u;return y>m?Math.max(c,l[n]):Math.max(f,l[n])}function zz(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Uz(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=aS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=aS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=zz({translateX:c,translateY:f,useTranslate3d:s})):u=qz,{cssProperties:u,cssClasses:Fz({translateX:c,translateY:f,coordinate:r})}}function fo(e){"@babel/helpers - typeof";return fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fo(e)}function oS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oS(Object(r),!0).forEach(function(n){ng(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gM(n.key),n)}}function Gz(e,t,r){return t&&Hz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kz(e,t,r){return t=Gu(t),Xz(e,yM()?Reflect.construct(t,r||[],Gu(e).constructor):t.apply(e,r))}function Xz(e,t){if(t&&(fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yz(e)}function Yz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yM=function(){return!!e})()}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gu(e)}function Vz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rg(e,t)}function rg(e,t){return rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rg(e,t)}function ng(e,t,r){return t=gM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gM(e){var t=Zz(e,"string");return fo(t)=="symbol"?t:t+""}function Zz(e,t){if(fo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lS=1,Jz=(function(e){function t(){var r;Wz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Kz(this,t,[].concat(i)),ng(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ng(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return Vz(t,e),Gz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>lS||Math.abs(n.height-this.state.lastBoundingBox.height)>lS)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,m=i.reverseDirection,d=i.useTranslate3d,b=i.viewBox,v=i.wrapperStyle,x=Uz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:b}),_=x.cssClasses,g=x.cssProperties,w=sS(sS({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},v);return O.createElement("div",{tabIndex:-1,className:_,style:w,ref:function(A){n.wrapperNode=A}},u)}}])})(O.PureComponent),Qz=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Mi={isSsr:Qz()};function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function uS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uS(Object(r),!0).forEach(function(n){A0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bM(n.key),n)}}function r3(e,t,r){return t&&e3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n3(e,t,r){return t=Ku(t),i3(e,vM()?Reflect.construct(t,r||[],Ku(e).constructor):t.apply(e,r))}function i3(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a3(e)}function a3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vM=function(){return!!e})()}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ku(e)}function o3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ig(e,t)}function ig(e,t){return ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ig(e,t)}function A0(e,t,r){return t=bM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bM(e){var t=s3(e,"string");return ho(t)=="symbol"?t:t+""}function s3(e,t){if(ho(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ho(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function l3(e){return e.dataKey}function u3(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(Nz,t)}var _n=(function(e){function t(){return t3(this,t),n3(this,t,arguments)}return o3(t,e),r3(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,m=i.payloadUniqBy,d=i.position,b=i.reverseDirection,v=i.useTranslate3d,x=i.viewBox,_=i.wrapperStyle,g=y??[];f&&g.length&&(g=pM(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),m,l3));var w=g.length>0;return O.createElement(Jz,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:c,hasPayload:w,offset:p,position:d,reverseDirection:b,useTranslate3d:v,viewBox:x,wrapperStyle:_},u3(u,cS(cS({},this.props),{},{payload:g})))}}])})(O.PureComponent);A0(_n,"displayName","Tooltip");A0(_n,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Mi.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var mm,fS;function c3(){if(fS)return mm;fS=1;var e=cn(),t=function(){return e.Date.now()};return mm=t,mm}var ym,hS;function f3(){if(hS)return ym;hS=1;var e=Pi(),t=c3(),r=o0(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,u){var c,f,h,p,y,m,d=0,b=!1,v=!1,x=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(b=!!u.leading,v="maxWait"in u,h=v?i(r(u.maxWait)||0,l):h,x="trailing"in u?!!u.trailing:x);function _(C){var $=c,j=f;return c=f=void 0,d=C,p=s.apply(j,$),p}function g(C){return d=C,y=setTimeout(A,l),b?_(C):p}function w(C){var $=C-m,j=C-d,k=l-$;return v?a(k,h-j):k}function S(C){var $=C-m,j=C-d;return m===void 0||$>=l||$<0||v&&j>=h}function A(){var C=t();if(S(C))return T(C);y=setTimeout(A,w(C))}function T(C){return y=void 0,x&&c?_(C):(c=f=void 0,p)}function M(){y!==void 0&&clearTimeout(y),d=0,c=m=f=y=void 0}function P(){return y===void 0?p:T(t())}function E(){var C=t(),$=S(C);if(c=arguments,f=this,m=C,$){if(y===void 0)return g(m);if(v)return clearTimeout(y),y=setTimeout(A,l),_(m)}return y===void 0&&(y=setTimeout(A,l)),p}return E.cancel=M,E.flush=P,E}return ym=o,ym}var gm,pS;function h3(){if(pS)return gm;pS=1;var e=f3(),t=Pi(),r="Expected a function";function n(i,a,o){var s=!0,l=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(i,a,{leading:s,maxWait:a,trailing:l})}return gm=n,gm}var p3=h3();const xM=Gt(p3);function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function dS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dS(Object(r),!0).forEach(function(n){d3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d3(e,t,r){return t=m3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m3(e){var t=y3(e,"string");return tl(t)=="symbol"?t:t+""}function y3(e,t){if(tl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g3(e,t){return _3(e)||x3(e,t)||b3(e,t)||v3()}function v3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
86
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b3(e,t){if(e){if(typeof e=="string")return mS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mS(e,t)}}function mS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function _3(e){if(Array.isArray(e))return e}var w3=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,d=e.id,b=e.className,v=e.onResize,x=e.style,_=x===void 0?{}:x,g=O.useRef(null),w=O.useRef();w.current=v,O.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var S=O.useState({containerWidth:i.width,containerHeight:i.height}),A=g3(S,2),T=A[0],M=A[1],P=O.useCallback(function(C,$){M(function(j){var k=Math.round(C),R=Math.round($);return j.containerWidth===k&&j.containerHeight===R?j:{containerWidth:k,containerHeight:R}})},[]);O.useEffect(function(){var C=function(U){var I,B=U[0].contentRect,q=B.width,N=B.height;P(q,N),(I=w.current)===null||I===void 0||I.call(w,q,N)};m>0&&(C=xM(C,m,{trailing:!0,leading:!1}));var $=new ResizeObserver(C),j=g.current.getBoundingClientRect(),k=j.width,R=j.height;return P(k,R),$.observe(g.current),function(){$.disconnect()}},[P,m]);var E=O.useMemo(function(){var C=T.containerWidth,$=T.containerHeight;if(C<0||$<0)return null;Un(Yi(o)||Yi(l),`The width(%s) and height(%s) are both fixed numbers,
87
+ maybe you don't need to use a ResponsiveContainer.`,o,l),Un(!r||r>0,"The aspect(%s) must be greater than zero.",r);var j=Yi(o)?C:o,k=Yi(l)?$:l;r&&r>0&&(j?k=j/r:k&&(j=k*r),h&&k>h&&(k=h)),Un(j>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
88
88
  please check the style of container, or the props width(%s) and height(%s),
89
89
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
90
- height and width.`,j,M,o,l,c,f,r);var I=!Array.isArray(p)&&Ln(p.type).endsWith("Chart");return O.Children.map(p,function(q){return O.isValidElement(q)?O.cloneElement(q,Gl({width:j,height:M},I?{style:Gl({height:"100%",width:"100%",maxHeight:M,maxWidth:j},q.props.style)}:{})):q})},[r,p,l,h,f,c,T,o]);return O.createElement("div",{id:d?"".concat(d):void 0,className:Ot("recharts-responsive-container",v),style:Gl(Gl({},_),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:h}),ref:g},E)}),x0=function(t){return null};x0.displayName="Cell";function Ys(e){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}function yS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(r),!0).forEach(function(n){P3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P3(e,t,r){return t=E3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E3(e){var t=C3(e,"string");return Ys(t)=="symbol"?t:t+""}function C3(e,t){if(Ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Oa={widthCache:{},cacheCount:0},M3=2e3,k3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},gS="recharts_measurement_span";function $3(e){var t=rg({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var bs=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||_i.isSsr)return{width:0,height:0};var n=$3(r),i=JSON.stringify({text:t,copyStyle:n});if(Oa.widthCache[i])return Oa.widthCache[i];try{var a=document.getElementById(gS);a||(a=document.createElement("span"),a.setAttribute("id",gS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=rg(rg({},k3),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Oa.widthCache[i]=l,++Oa.cacheCount>M3&&(Oa.cacheCount=0,Oa.widthCache={}),l}catch{return{width:0,height:0}}},j3=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xs(e)}function Uu(e,t){return N3(e)||I3(e,t)||D3(e,t)||R3()}function R3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D3(e,t){if(e){if(typeof e=="string")return vS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vS(e,t)}}function vS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function N3(e){if(Array.isArray(e))return e}function L3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q3(n.key),n)}}function B3(e,t,r){return t&&bS(e.prototype,t),r&&bS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function q3(e){var t=F3(e,"string");return Xs(t)=="symbol"?t:t+""}function F3(e,t){if(Xs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _S=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,z3=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,U3=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,AC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},W3=Object.keys(AC),ka="NaN";function H3(e,t){return e*AC[t]}var Kl=(function(){function e(t,r){L3(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!z3.test(r)&&(this.num=NaN,this.unit=""),W3.includes(r)&&(this.num=H3(t,r),this.unit="px")}return B3(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=U3.exec(r))!==null&&n!==void 0?n:[],a=Uu(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function OC(e){if(e.includes(ka))return ka;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=_S.exec(t))!==null&&r!==void 0?r:[],i=Uu(n,4),a=i[1],o=i[2],s=i[3],l=Kl.parse(a??""),u=Kl.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return ka;t=t.replace(_S,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=xS.exec(t))!==null&&f!==void 0?f:[],p=Uu(h,4),y=p[1],m=p[2],d=p[3],v=Kl.parse(y??""),w=Kl.parse(d??""),b=m==="+"?v.add(w):v.subtract(w);if(b.isNaN())return ka;t=t.replace(xS,b.toString())}return t}var wS=/\(([^()]*)\)/;function G3(e){for(var t=e;t.includes("(");){var r=wS.exec(t),n=Uu(r,2),i=n[1];t=t.replace(wS,OC(i))}return t}function K3(e){var t=e.replace(/\s+/g,"");return t=G3(t),t=OC(t),t}function Y3(e){try{return K3(e)}catch{return ka}}function mm(e){var t=Y3(e.slice(5,-1));return t===ka?"":t}var X3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],V3=["dx","dy","angle","className","breakAll"];function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ng.apply(this,arguments)}function SS(e,t){if(e==null)return{};var r=Z3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function AS(e,t){return eU(e)||tU(e,t)||Q3(e,t)||J3()}function J3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q3(e,t){if(e){if(typeof e=="string")return OS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OS(e,t)}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function eU(e){if(Array.isArray(e))return e}var TC=/[ \f\n\r\t\v\u2028\u2029]+/,PC=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];gt(r)||(n?a=r.toString().split(""):a=r.toString().split(TC));var o=a.map(function(l){return{word:l,width:bs(l,i).width}}),s=n?0:bs(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},rU=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=nt(o),f=s,h=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce(function(M,I){var q=I.word,F=I.width,N=M[M.length-1];if(N&&(i==null||a||N.width+F+n<Number(i)))N.words.push(q),N.width+=F+n;else{var R={words:[q],width:F};M.push(R)}return M},[])},p=h(r),y=function(j){return j.reduce(function(M,I){return M.width>I.width?M:I})};if(!c)return p;for(var m="…",d=function(j){var M=f.slice(0,j),I=PC({breakAll:u,style:l,children:M+m}).wordsWithComputedWidth,q=h(I),F=q.length>o||y(q).width>Number(i);return[F,q]},v=0,w=f.length-1,b=0,_;v<=w&&b<=f.length-1;){var g=Math.floor((v+w)/2),x=g-1,S=d(x),A=AS(S,2),T=A[0],C=A[1],P=d(g),E=AS(P,1),k=E[0];if(!T&&!k&&(v=g+1),T&&k&&(w=g-1),!T&&k){_=C;break}b++}return _||p},TS=function(t){var r=gt(t)?[]:t.toString().split(TC);return[{words:r}]},nU=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!_i.isSsr){var l,u,c=PC({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;l=f,u=h}else return TS(i);return rU({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return TS(i)},PS="#808080",Wu=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,d=t.fill,v=d===void 0?PS:d,w=SS(t,X3),b=O.useMemo(function(){return nU({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:f,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,f,w.style,w.width]),_=w.dx,g=w.dy,x=w.angle,S=w.className,A=w.breakAll,T=SS(w,V3);if(!be(n)||!be(a))return null;var C=n+(nt(_)?_:0),P=a+(nt(g)?g:0),E;switch(m){case"start":E=mm("calc(".concat(u,")"));break;case"middle":E=mm("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:E=mm("calc(".concat(b.length-1," * -").concat(s,")"));break}var k=[];if(f){var $=b[0].width,j=w.width;k.push("scale(".concat((nt(j)?j/$:1)/$,")"))}return x&&k.push("rotate(".concat(x,", ").concat(C,", ").concat(P,")")),k.length&&(T.transform=k.join(" ")),O.createElement("text",ng({},vt(T,!0),{x:C,y:P,className:Ot("recharts-text",S),textAnchor:p,fill:v.includes("url")?PS:v}),b.map(function(M,I){var q=M.words.join(A?"":" ");return O.createElement("tspan",{x:C,dy:I===0?E:s,key:"".concat(q,"-").concat(I)},q)}))};const ES=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ks,scaleDiverging:WT,scaleDivergingLog:HT,scaleDivergingPow:Tv,scaleDivergingSqrt:QD,scaleDivergingSymlog:GT,scaleIdentity:AT,scaleImplicit:py,scaleLinear:ta,scaleLog:TT,scaleOrdinal:uv,scalePoint:us,scalePow:yv,scaleQuantile:CT,scaleQuantize:MT,scaleRadial:ET,scaleSequential:qT,scaleSequentialLog:FT,scaleSequentialPow:Ov,scaleSequentialQuantile:UT,scaleSequentialSqrt:JD,scaleSequentialSymlog:zT,scaleSqrt:RR,scaleSymlog:PT,scaleThreshold:kT,scaleTime:wu,scaleUtc:ZD,tickFormat:ST},Symbol.toStringTag,{value:"Module"}));var ym,CS;function EC(){if(CS)return ym;CS=1;var e=Po();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],l=n(s);if(l!=null&&(u===void 0?l===l&&!e(l):i(l,u)))var u=l,c=s}return c}return ym=t,ym}var gm,MS;function iU(){if(MS)return gm;MS=1;function e(t,r){return t>r}return gm=e,gm}var vm,kS;function aU(){if(kS)return vm;kS=1;var e=EC(),t=iU(),r=Eo();function n(i){return i&&i.length?e(i,r,t):void 0}return vm=n,vm}var oU=aU();const si=qt(oU);var bm,$S;function sU(){if($S)return bm;$S=1;function e(t,r){return t<r}return bm=e,bm}var _m,jS;function lU(){if(jS)return _m;jS=1;var e=EC(),t=sU(),r=Eo();function n(i){return i&&i.length?e(i,r,t):void 0}return _m=n,_m}var uU=lU();const Gc=qt(uU);var xm,RS;function cU(){if(RS)return xm;RS=1;var e=m0();function t(r,n){return e(r,n)}return xm=t,xm}var fU=cU();const aa=qt(fU);var ko=1e9,hU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},S0,ee=!0,zr="[DecimalError] ",Vi=zr+"Invalid argument: ",w0=zr+"Exponent out of range: ",$o=Math.floor,Di=Math.pow,pU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,xr,Te=1e7,Vt=7,CC=9007199254740991,Hu=$o(CC/Vt),ut={};ut.absoluteValue=ut.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ut.comparedTo=ut.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ut.decimalPlaces=ut.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Vt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ut.dividedBy=ut.div=function(e){return qn(this,new this.constructor(e))};ut.dividedToIntegerBy=ut.idiv=function(e){var t=this,r=t.constructor;return Gt(qn(t,new r(e),0,1),r.precision)};ut.equals=ut.eq=function(e){return!this.cmp(e)};ut.exponent=function(){return de(this)};ut.greaterThan=ut.gt=function(e){return this.cmp(e)>0};ut.greaterThanOrEqualTo=ut.gte=function(e){return this.cmp(e)>=0};ut.isInteger=ut.isint=function(){return this.e>this.d.length-2};ut.isNegative=ut.isneg=function(){return this.s<0};ut.isPositive=ut.ispos=function(){return this.s>0};ut.isZero=function(){return this.s===0};ut.lessThan=ut.lt=function(e){return this.cmp(e)<0};ut.lessThanOrEqualTo=ut.lte=function(e){return this.cmp(e)<1};ut.logarithm=ut.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(xr))throw Error(zr+"NaN");if(r.s<1)throw Error(zr+(r.s?"NaN":"-Infinity"));return r.eq(xr)?new n(0):(ee=!1,t=qn(Vs(r,a),Vs(e,a),a),ee=!0,Gt(t,i))};ut.minus=ut.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$C(t,e):MC(t,(e.s=-e.s,e))};ut.modulo=ut.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(zr+"NaN");return r.s?(ee=!1,t=qn(r,e,0,1).times(e),ee=!0,r.minus(t)):Gt(new n(r),i)};ut.naturalExponential=ut.exp=function(){return kC(this)};ut.naturalLogarithm=ut.ln=function(){return Vs(this)};ut.negated=ut.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ut.plus=ut.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?MC(t,e):$C(t,(e.s=-e.s,e))};ut.precision=ut.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Vi+e);if(t=de(i)+1,n=i.d.length-1,r=n*Vt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ut.squareRoot=ut.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(zr+"NaN")}for(e=de(s),ee=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=gn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=$o((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(qn(s,a,o+2)).times(.5),gn(a.d).slice(0,o)===(t=gn(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Gt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return ee=!0,Gt(n,r)};ut.times=ut.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this,f=c.constructor,h=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=h.length,u=p.length,l<u&&(a=h,h=p,p=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%Te|0,t=s/Te|0;a[i]=(a[i]+t)%Te|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ee?Gt(e,f.precision):e};ut.toDecimalPlaces=ut.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Sn(e,0,ko),t===void 0?t=n.rounding:Sn(t,0,8),Gt(r,e+de(r)+1,t))};ut.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=oa(n,!0):(Sn(e,0,ko),t===void 0?t=i.rounding:Sn(t,0,8),n=Gt(new i(n),e+1,t),r=oa(n,!0,e+1)),r};ut.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?oa(i):(Sn(e,0,ko),t===void 0?t=a.rounding:Sn(t,0,8),n=Gt(new a(i),e+de(i)+1,t),r=oa(n.abs(),!1,e+de(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ut.toInteger=ut.toint=function(){var e=this,t=e.constructor;return Gt(new t(e),de(e)+1,t.rounding)};ut.toNumber=function(){return+this};ut.toPower=ut.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(xr);if(s=new l(s),!s.s){if(e.s<1)throw Error(zr+"Infinity");return s}if(s.eq(xr))return s;if(n=l.precision,e.eq(xr))return Gt(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=CC){for(i=new l(xr),t=Math.ceil(n/Vt+4),ee=!1;r%2&&(i=i.times(s),IS(i.d,t)),r=$o(r/2),r!==0;)s=s.times(s),IS(s.d,t);return ee=!0,e.s<0?new l(xr).div(i):Gt(i,n)}}else if(a<0)throw Error(zr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ee=!1,i=e.times(Vs(s,n+u)),ee=!0,i=kC(i),i.s=a,i};ut.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=de(i),n=oa(i,r<=a.toExpNeg||r>=a.toExpPos)):(Sn(e,1,ko),t===void 0?t=a.rounding:Sn(t,0,8),i=Gt(new a(i),e,t),r=de(i),n=oa(i,e<=r||r<=a.toExpNeg,e)),n};ut.toSignificantDigits=ut.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Sn(e,1,ko),t===void 0?t=n.rounding:Sn(t,0,8)),Gt(new n(r),e,t)};ut.toString=ut.valueOf=ut.val=ut.toJSON=ut[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=de(e),r=e.constructor;return oa(e,t<=r.toExpNeg||t>=r.toExpPos)};function MC(e,t){var r,n,i,a,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),ee?Gt(t,f):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(f/Vt),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/Te|0,l[a]%=Te;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ee?Gt(t,f):t}function Sn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Vi+e)}function gn(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Vt-n.length,r&&(a+=ri(r)),a+=n;o=e[t],n=o+"",r=Vt-n.length,r&&(a+=ri(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var qn=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Te|0,o=a/Te|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Te+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,c,f,h,p,y,m,d,v,w,b,_,g,x,S,A,T=n.constructor,C=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(zr+"Division by zero");for(l=n.e-i.e,S=E.length,g=P.length,p=new T(C),y=p.d=[],u=0;E[u]==(P[u]||0);)++u;if(E[u]>(P[u]||0)&&--l,a==null?w=a=T.precision:o?w=a+(de(n)-de(i))+1:w=a,w<0)return new T(0);if(w=w/Vt+2|0,u=0,S==1)for(c=0,E=E[0],w++;(u<g||c)&&w--;u++)b=c*Te+(P[u]||0),y[u]=b/E|0,c=b%E|0;else{for(c=Te/(E[0]+1)|0,c>1&&(E=e(E,c),P=e(P,c),S=E.length,g=P.length),_=S,m=P.slice(0,S),d=m.length;d<S;)m[d++]=0;A=E.slice(),A.unshift(0),x=E[0],E[1]>=Te/2&&++x;do c=0,s=t(E,m,S,d),s<0?(v=m[0],S!=d&&(v=v*Te+(m[1]||0)),c=v/x|0,c>1?(c>=Te&&(c=Te-1),f=e(E,c),h=f.length,d=m.length,s=t(f,m,h,d),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),s==-1&&(d=m.length,s=t(E,m,S,d),s<1&&(c++,r(m,S<d?A:E,d))),d=m.length):s===0&&(c++,m=[0]),y[u++]=c,s&&m[0]?m[d++]=P[_]||0:(m=[P[_]],d=1);while((_++<g||m[0]!==void 0)&&w--)}return y[0]||y.shift(),p.e=l,Gt(p,o?a+de(p)+1:a)}})();function kC(e,t){var r,n,i,a,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(de(e)>16)throw Error(w0+de(e));if(!e.s)return new c(xr);for(ee=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Di(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new c(xr),c.precision=s;;){if(i=Gt(i.times(e),s),r=r.times(++l),o=a.plus(qn(i,r,s)),gn(o.d).slice(0,s)===gn(a.d).slice(0,s)){for(;u--;)a=Gt(a.times(a),s);return c.precision=f,t==null?(ee=!0,Gt(a,f)):a}a=o}}function de(e){for(var t=e.e*Vt,r=e.d[0];r>=10;r/=10)t++;return t}function wm(e,t,r){if(t>e.LN10.sd())throw ee=!0,r&&(e.precision=r),Error(zr+"LN10 precision limit exceeded");return Gt(new e(e.LN10),t)}function ri(e){for(var t="";e--;)t+="0";return t}function Vs(e,t){var r,n,i,a,o,s,l,u,c,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(zr+(p.s?"NaN":"-Infinity"));if(p.eq(xr))return new m(0);if(t==null?(ee=!1,u=d):u=t,p.eq(10))return t==null&&(ee=!0),wm(m,u);if(u+=h,m.precision=u,r=gn(y),n=r.charAt(0),a=de(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=gn(p.d),n=r.charAt(0),f++;a=de(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return l=wm(m,u+2,d).times(a+""),p=Vs(new m(n+"."+r.slice(1)),u-h).plus(l),m.precision=d,t==null?(ee=!0,Gt(p,d)):p;for(s=o=p=qn(p.minus(xr),p.plus(xr),u),c=Gt(p.times(p),u),i=3;;){if(o=Gt(o.times(c),u),l=s.plus(qn(o,new m(i),u)),gn(l.d).slice(0,u)===gn(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(wm(m,u+2,d).times(a+""))),s=qn(s,new m(f),u),m.precision=d,t==null?(ee=!0,Gt(s,d)):s;s=l,i+=2}}function DS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=$o(r/Vt),e.d=[],n=(r+1)%Vt,r<0&&(n+=Vt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Vt;n<i;)e.d.push(+t.slice(n,n+=Vt));t=t.slice(n),n=Vt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ee&&(e.e>Hu||e.e<-Hu))throw Error(w0+r)}else e.s=0,e.e=0,e.d=[0];return e}function Gt(e,t,r){var n,i,a,o,s,l,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Vt,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Vt),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=Vt,i=n-Vt+o}if(r!==void 0&&(a=Di(10,o-i-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Di(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=de(e),f.length=1,t=t-a-1,f[0]=Di(10,(Vt-t%Vt)%Vt),e.e=$o(-t/Vt)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Di(10,Vt-n),f[c]=i>0?(u/Di(10,o-i)%Di(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==Te&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Te)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ee&&(e.e>Hu||e.e<-Hu))throw Error(w0+de(e));return e}function $C(e,t){var r,n,i,a,o,s,l,u,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ee?Gt(t,p):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(p/Vt),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=Te-1;--l[a],l[i]+=Te}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,ee?Gt(t,p):t):new h(0)}function oa(e,t,r){var n,i=de(e),a=gn(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+ri(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ri(-i-1)+a,r&&(n=r-o)>0&&(a+=ri(n))):i>=o?(a+=ri(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+ri(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=ri(n))),e.s<0?"-"+a:a}function IS(e,t){if(e.length>t)return e.length=t,!0}function jC(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Vi+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return DS(o,a.toString())}else if(typeof a!="string")throw Error(Vi+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,pU.test(a))DS(o,a);else throw Error(Vi+a)}if(i.prototype=ut,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=jC,i.config=i.set=dU,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function dU(e){if(!e||typeof e!="object")throw Error(zr+"Object expected");var t,r,n,i=["precision",1,ko,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if($o(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Vi+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Vi+r+": "+n);return this}var S0=jC(hU);xr=new S0(1);const Ut=S0;function mU(e){return bU(e)||vU(e)||gU(e)||yU()}function yU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
93
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gU(e,t){if(e){if(typeof e=="string")return ig(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ig(e,t)}}function vU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bU(e){if(Array.isArray(e))return ig(e)}function ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _U=function(t){return t},RC={},DC=function(t){return t===RC},NS=function(t){return function r(){return arguments.length===0||arguments.length===1&&DC(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},xU=function e(t,r){return t===1?r:NS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==RC}).length;return o>=t?r.apply(void 0,i):e(t-o,NS(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=i.map(function(f){return DC(f)?l.shift():f});return r.apply(void 0,mU(c).concat(l))}))})},Kc=function(t){return xU(t.length,t)},ag=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},wU=Kc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),SU=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return _U;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},og=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},IC=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function AU(e){var t;return e===0?t=1:t=Math.floor(new Ut(e).abs().log(10).toNumber())+1,t}function OU(e,t,r){for(var n=new Ut(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var TU=Kc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),PU=Kc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),EU=Kc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Yc={rangeStep:OU,getDigitCount:AU,interpolateNumber:TU,uninterpolateNumber:PU,uninterpolateTruncation:EU};function sg(e){return kU(e)||MU(e)||NC(e)||CU()}function CU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
94
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function kU(e){if(Array.isArray(e))return lg(e)}function Zs(e,t){return RU(e)||jU(e,t)||NC(e,t)||$U()}function $U(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
95
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NC(e,t){if(e){if(typeof e=="string")return lg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lg(e,t)}}function lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jU(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function RU(e){if(Array.isArray(e))return e}function LC(e){var t=Zs(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function BC(e,t,r){if(e.lte(0))return new Ut(0);var n=Yc.getDigitCount(e.toNumber()),i=new Ut(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ut(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Ut(Math.ceil(l))}function DU(e,t,r){var n=1,i=new Ut(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ut(10).pow(Yc.getDigitCount(e)-1),i=new Ut(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ut(Math.floor(e)))}else e===0?i=new Ut(Math.floor((t-1)/2)):r||(i=new Ut(Math.floor(e)));var o=Math.floor((t-1)/2),s=SU(wU(function(l){return i.add(new Ut(l-o).mul(n)).toNumber()}),ag);return s(0,t)}function qC(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Ut(0),tickMin:new Ut(0),tickMax:new Ut(0)};var a=BC(new Ut(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ut(0):(o=new Ut(e).add(t).div(2),o=o.sub(new Ut(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Ut(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?qC(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Ut(s).mul(a)),tickMax:o.add(new Ut(l).mul(a))})}function IU(e){var t=Zs(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=LC([r,n]),l=Zs(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(sg(ag(0,i-1).map(function(){return 1/0}))):[].concat(sg(ag(0,i-1).map(function(){return-1/0})),[c]);return r>n?og(f):f}if(u===c)return DU(u,i,a);var h=qC(u,c,o,a),p=h.step,y=h.tickMin,m=h.tickMax,d=Yc.rangeStep(y,m.add(new Ut(.1).mul(p)),p);return r>n?og(d):d}function NU(e,t){var r=Zs(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=LC([n,i]),s=Zs(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=BC(new Ut(u).sub(l).div(c-1),a,0),h=[].concat(sg(Yc.rangeStep(new Ut(l),new Ut(u).sub(new Ut(.99).mul(f)),f)),[u]);return n>i?og(h):h}var LU=IC(IU),BU=IC(NU),qU=process.env.NODE_ENV==="production",Sm="Invariant failed";function er(e,t){if(qU)throw new Error(Sm);var r=typeof t=="function"?t():t,n=r?"".concat(Sm,": ").concat(r):Sm;throw new Error(n)}var FU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gu.apply(this,arguments)}function zU(e,t){return GU(e)||HU(e,t)||WU(e,t)||UU()}function UU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WU(e,t){if(e){if(typeof e=="string")return LS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LS(e,t)}}function LS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function GU(e){if(Array.isArray(e))return e}function KU(e,t){if(e==null)return{};var r=YU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function XU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UC(n.key),n)}}function ZU(e,t,r){return t&&VU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JU(e,t,r){return t=Ku(t),QU(e,FC()?Reflect.construct(t,r||[],Ku(e).constructor):t.apply(e,r))}function QU(e,t){if(t&&(ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tW(e)}function tW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FC=function(){return!!e})()}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ku(e)}function eW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ug(e,t)}function ug(e,t){return ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ug(e,t)}function zC(e,t,r){return t=UC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UC(e){var t=rW(e,"string");return ao(t)=="symbol"?t:t+""}function rW(e,t){if(ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jo=(function(e){function t(){return XU(this,t),JU(this,t,arguments)}return eW(t,e),ZU(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,h=KU(n,FU),p=vt(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?er(!1,'ErrorBar requires Axis type property to be "number".'):er());var y=l.map(function(m){var d=u(m,s),v=d.x,w=d.y,b=d.value,_=d.errorVal;if(!_)return null;var g=[],x,S;if(Array.isArray(_)){var A=zU(_,2);x=A[0],S=A[1]}else x=S=_;if(a==="vertical"){var T=c.scale,C=w+i,P=C+o,E=C-o,k=T(b-x),$=T(b+S);g.push({x1:$,y1:P,x2:$,y2:E}),g.push({x1:k,y1:C,x2:$,y2:C}),g.push({x1:k,y1:P,x2:k,y2:E})}else if(a==="horizontal"){var j=f.scale,M=v+i,I=M-o,q=M+o,F=j(b-x),N=j(b+S);g.push({x1:I,y1:N,x2:q,y2:N}),g.push({x1:M,y1:F,x2:M,y2:N}),g.push({x1:I,y1:F,x2:q,y2:F})}return O.createElement(Rt,Gu({className:"recharts-errorBar",key:"bar-".concat(g.map(function(R){return"".concat(R.x1,"-").concat(R.x2,"-").concat(R.y1,"-").concat(R.y2)}))},p),g.map(function(R){return O.createElement("line",Gu({},R,{key:"line-".concat(R.x1,"-").concat(R.x2,"-").concat(R.y1,"-").concat(R.y2)}))}))});return O.createElement(Rt,{className:"recharts-errorBars"},y)}}])})(O.Component);zC(jo,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});zC(jo,"displayName","ErrorBar");function Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function BS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $i(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BS(Object(r),!0).forEach(function(n){nW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nW(e,t,r){return t=iW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iW(e){var t=aW(e,"string");return Js(t)=="symbol"?t:t+""}function aW(e,t){if(Js(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WC=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=vr(r,Xi);if(!o)return null;var s=Xi.defaultProps,l=s!==void 0?$i($i({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(c,f){var h=f.item,p=f.props,y=p.sectors||p.data||[];return c.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?$i($i({},h),f.props):{},y=p.dataKey,m=p.name,d=p.legendType,v=p.hide;return{inactive:v,dataKey:y,type:l.iconType||d||"square",color:A0(f),value:m||y,payload:p}}),$i($i($i({},l),Xi.getWithHeight(o,i)),{},{payload:u,item:o})};function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function qS(e){return uW(e)||lW(e)||sW(e)||oW()}function oW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
97
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sW(e,t){if(e){if(typeof e=="string")return cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cg(e,t)}}function lW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uW(e){if(Array.isArray(e))return cg(e)}function cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(n){za(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function za(e,t,r){return t=cW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cW(e){var t=fW(e,"string");return Qs(t)=="symbol"?t:t+""}function fW(e,t){if(Qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _e(e,t,r){return gt(e)||gt(t)?r:be(t)?Fr(e,t,r):bt(t)?t(e):r}function _s(e,t,r,n){var i=rC(e,function(s){return _e(s,t)});if(r==="number"){var a=i.filter(function(s){return nt(s)||parseFloat(s)});return a.length?[Gc(a),si(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!gt(s)}):i;return o.map(function(s){return be(s)||s instanceof Date?s:""})}var hW=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var c=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(en(f-c)!==en(h-f)){var y=[];if(en(h-f)===en(l[1]-l[0])){p=h;var m=f+l[1]-l[0];y[0]=Math.min(m,(m+c)/2),y[1]=Math.max(m,(m+c)/2)}else{p=c;var d=h+l[1]-l[0];y[0]=Math.min(f,(d+f)/2),y[1]=Math.max(f,(d+f)/2)}var v=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>v[0]&&t<=v[1]||t>=y[0]&&t<=y[1]){o=i[u].index;break}}else{var w=Math.min(c,h),b=Math.max(c,h);if(t>(w+f)/2&&t<=(b+f)/2){o=i[u].index;break}}}else for(var _=0;_<s;_++)if(_===0&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_===s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o},A0=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ie(ie({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},pW=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var c=a[s[l]].stackGroups,f=Object.keys(c),h=0,p=f.length;h<p;h++){var y=c[f[h]],m=y.items,d=y.cateAxisId,v=m.filter(function(S){return Ln(S.type).indexOf("Bar")>=0});if(v&&v.length){var w=v[0].type.defaultProps,b=w!==void 0?ie(ie({},w),v[0].props):v[0].props,_=b.barSize,g=b[d];o[g]||(o[g]=[]);var x=gt(_)?r:_;o[g].push({item:v[0],stackList:v.slice(1),barSize:gt(x)?void 0:ia(x,n,0)})}}return o},dW=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=ia(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/l,y=o.reduce(function(_,g){return _+g.barSize||0},0);y+=(l-1)*u,y>=i&&(y-=(l-1)*u,u=0),y>=i&&p>0&&(h=!0,p*=.9,y=l*p);var m=(i-y)/2>>0,d={offset:m-u,size:0};c=o.reduce(function(_,g){var x={item:g.item,position:{offset:d.offset+d.size+u,size:h?p:g.barSize}},S=[].concat(qS(_),[x]);return d=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:d})}),S},f)}else{var v=ia(n,i,0,!0);i-2*v-(l-1)*u<=0&&(u=0);var w=(i-2*v-(l-1)*u)/l;w>1&&(w>>=0);var b=s===+s?Math.min(w,s):w;c=o.reduce(function(_,g,x){var S=[].concat(qS(_),[{item:g.item,position:{offset:v+(w+u)*x+(w-b)/2,size:b}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},f)}return c},mW=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=WC({children:a,legendWidth:l});if(u){var c=i||{},f=c.width,h=c.height,p=u.align,y=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&nt(t[p]))return ie(ie({},t),{},za({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&nt(t[y]))return ie(ie({},t),{},za({},y,t[y]+(h||0)))}return t},yW=function(t,r,n){return gt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},HC=function(t,r,n,i,a){var o=r.props.children,s=sr(o,jo).filter(function(u){return yW(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=_e(c,n);if(gt(f))return u;var h=Array.isArray(f)?[Gc(f),si(f)]:[f,f],p=l.reduce(function(y,m){var d=_e(c,m,0),v=h[0]-Math.abs(Array.isArray(d)?d[0]:d),w=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(v,y[0]),Math.max(w,y[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},gW=function(t,r,n,i,a){var o=r.map(function(s){return HC(t,s,n,a,i)}).filter(function(s){return!gt(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},GC=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&HC(t,l,u,i)||_s(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},KC=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},YC=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},Nn=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?en(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var h=a?a.indexOf(f):f;return{coordinate:i(h)+u,value:f,offset:u}});return c.filter(function(f){return!Mo(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:i(f)+u,value:f,index:h,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,h){return{coordinate:i(f)+u,value:a?a[f]:f,index:h,offset:u}})},Am=new WeakMap,Yl=function(t,r){if(typeof r!="function")return t;Am.has(t)||Am.set(t,new WeakMap);var n=Am.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},vW=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:ks(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:ta(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:us(),realScaleType:"point"}:a==="category"?{scale:ks(),realScaleType:"band"}:{scale:ta(),realScaleType:"linear"};if(na(i)){var l="scale".concat(Uc(i));return{scale:(ES[l]||us)(),realScaleType:ES[l]?l:"point"}}return bt(i)?{scale:i}:{scale:us(),realScaleType:"point"}},zS=1e-4,bW=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-zS,o=Math.max(i[0],i[1])+zS,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},_W=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},xW=function(t,r){if(!r||r.length!==2||!nt(r[0])||!nt(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!nt(t[0])||t[0]<n)&&(a[0]=n),(!nt(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},wW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Mo(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},SW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Mo(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},AW={sign:wW,expand:kI,none:Ya,silhouette:$I,wiggle:jI,positive:SW},OW=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=AW[n],o=Eu().keys(i).value(function(s,l){return+_e(s,l,0)}).order(vy).offset(a);return o(t)},TW=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ie(ie({},h.type.defaultProps),h.props):h.props,m=y.stackId,d=y.hide;if(d)return f;var v=y[n],w=f[v]||{hasStack:!1,stackGroups:{}};if(be(m)){var b=w.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),w.hasStack=!0,w.stackGroups[m]=b}else w.stackGroups[da("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ie(ie({},f),{},za({},v,w))},l),c={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,d){var v=p.stackGroups[d];return ie(ie({},m),{},za({},d,{numericAxisId:n,cateAxisId:i,items:v.items,stackedData:OW(t,v.items,a)}))},y)}return ie(ie({},f),{},za({},h,p))},c)},PW=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=LU(u,a,s);return t.domain([Gc(c),si(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=BU(f,a,s);return{niceTicks:h}}return null};function oo(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!gt(i[t.dataKey])){var s=Nu(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=_e(i,gt(o)?t.dataKey:o);return gt(l)?null:t.scale(l)}var US=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=_e(o,r.dataKey,r.domain[s]);return gt(l)?null:r.scale(l)-a/2+i},EW=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},CW=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ie(ie({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(be(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},MW=function(t){return t.reduce(function(r,n){return[Gc(n.concat([r[0]]).filter(nt)),si(n.concat([r[1]]).filter(nt))]},[1/0,-1/0])},XC=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,c){var f=MW(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},WS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fg=function(t,r,n){if(bt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(nt(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(WS.test(t[0])){var a=+WS.exec(t[0])[1];i[0]=r[0]-a}else bt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(nt(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(HS.test(t[1])){var o=+HS.exec(t[1])[1];i[1]=r[1]+o}else bt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Yu=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=zc(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],c=a[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},GS=function(t,r,n){return!t||!t.length||aa(t,Fr(n,"type.defaultProps.domain"))?r:t},VC=function(t,r){var n=t.type.defaultProps?ie(ie({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return ie(ie({},vt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:A0(t),value:_e(r,i),type:l,payload:r,chartType:u,hide:c})};function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){kW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kW(e,t,r){return t=$W(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $W(e){var t=jW(e,"string");return tl(t)=="symbol"?t:t+""}function jW(e,t){if(tl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xu=Math.PI/180,RW=function(t){return t*180/Math.PI},$e=function(t,r,n,i){return{x:t+Math.cos(-Xu*i)*n,y:r+Math.sin(-Xu*i)*n}},DW=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},IW=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=DW({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:RW(u),angleInRadian:u}},NW=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},LW=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},XS=function(t,r){var n=t.x,i=t.y,a=IW({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=NW(r),f=c.startAngle,h=c.endAngle,p=s,y;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;y=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=f}return y?YS(YS({},r),{},{radius:o,angle:LW(p,r)}):null};function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}var BW=["offset"];function qW(e){return WW(e)||UW(e)||zW(e)||FW()}function FW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zW(e,t){if(e){if(typeof e=="string")return hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hg(e,t)}}function UW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WW(e){if(Array.isArray(e))return hg(e)}function hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HW(e,t){if(e==null)return{};var r=GW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VS(Object(r),!0).forEach(function(n){KW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KW(e,t,r){return t=YW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YW(e){var t=XW(e,"string");return el(t)=="symbol"?t:t+""}function XW(e,t){if(el(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(el(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rl.apply(this,arguments)}var VW=function(t){var r=t.value,n=t.formatter,i=gt(t.children)?r:t.children;return bt(n)?n(i):i},ZW=function(t,r){var n=en(r-t),i=Math.min(Math.abs(r-t),360);return n*i},JW=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,c=l.cy,f=l.innerRadius,h=l.outerRadius,p=l.startAngle,y=l.endAngle,m=l.clockWise,d=(f+h)/2,v=ZW(p,y),w=v>=0?1:-1,b,_;i==="insideStart"?(b=p+w*o,_=m):i==="insideEnd"?(b=y-w*o,_=!m):i==="end"&&(b=y+w*o,_=m),_=v<=0?_:!_;var g=$e(u,c,d,b),x=$e(u,c,d,b+(_?1:-1)*359),S="M".concat(g.x,",").concat(g.y,`
90
+ height and width.`,j,k,o,l,c,f,r);var R=!Array.isArray(p)&&zn(p.type).endsWith("Chart");return O.Children.map(p,function(L){return O.isValidElement(L)?O.cloneElement(L,Jl({width:j,height:k},R?{style:Jl({height:"100%",width:"100%",maxHeight:k,maxWidth:j},L.props.style)}:{})):L})},[r,p,l,h,f,c,T,o]);return O.createElement("div",{id:d?"".concat(d):void 0,className:Ct("recharts-responsive-container",b),style:Jl(Jl({},_),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:h}),ref:g},E)}),O0=function(t){return null};O0.displayName="Cell";function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function yS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ag(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(r),!0).forEach(function(n){S3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S3(e,t,r){return t=A3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A3(e){var t=O3(e,"string");return el(t)=="symbol"?t:t+""}function O3(e,t){if(el(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(el(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $a={widthCache:{},cacheCount:0},T3=2e3,P3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},gS="recharts_measurement_span";function E3(e){var t=ag({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Ps=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Mi.isSsr)return{width:0,height:0};var n=E3(r),i=JSON.stringify({text:t,copyStyle:n});if($a.widthCache[i])return $a.widthCache[i];try{var a=document.getElementById(gS);a||(a=document.createElement("span"),a.setAttribute("id",gS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=ag(ag({},P3),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return $a.widthCache[i]=l,++$a.cacheCount>T3&&($a.cacheCount=0,$a.widthCache={}),l}catch{return{width:0,height:0}}},M3=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function Xu(e,t){return j3(e)||$3(e,t)||k3(e,t)||C3()}function C3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k3(e,t){if(e){if(typeof e=="string")return vS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vS(e,t)}}function vS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function j3(e){if(Array.isArray(e))return e}function R3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I3(n.key),n)}}function D3(e,t,r){return t&&bS(e.prototype,t),r&&bS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function I3(e){var t=N3(e,"string");return rl(t)=="symbol"?t:t+""}function N3(e,t){if(rl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_S=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,L3=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,B3=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,_M={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},q3=Object.keys(_M),La="NaN";function F3(e,t){return e*_M[t]}var Ql=(function(){function e(t,r){R3(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!L3.test(r)&&(this.num=NaN,this.unit=""),q3.includes(r)&&(this.num=F3(t,r),this.unit="px")}return D3(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=B3.exec(r))!==null&&n!==void 0?n:[],a=Xu(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function wM(e){if(e.includes(La))return La;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=xS.exec(t))!==null&&r!==void 0?r:[],i=Xu(n,4),a=i[1],o=i[2],s=i[3],l=Ql.parse(a??""),u=Ql.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return La;t=t.replace(xS,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=_S.exec(t))!==null&&f!==void 0?f:[],p=Xu(h,4),y=p[1],m=p[2],d=p[3],b=Ql.parse(y??""),v=Ql.parse(d??""),x=m==="+"?b.add(v):b.subtract(v);if(x.isNaN())return La;t=t.replace(_S,x.toString())}return t}var wS=/\(([^()]*)\)/;function z3(e){for(var t=e;t.includes("(");){var r=wS.exec(t),n=Xu(r,2),i=n[1];t=t.replace(wS,wM(i))}return t}function U3(e){var t=e.replace(/\s+/g,"");return t=z3(t),t=wM(t),t}function W3(e){try{return U3(e)}catch{return La}}function vm(e){var t=W3(e.slice(5,-1));return t===La?"":t}var H3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],G3=["dx","dy","angle","className","breakAll"];function og(){return og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},og.apply(this,arguments)}function SS(e,t){if(e==null)return{};var r=K3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function K3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function AS(e,t){return Z3(e)||V3(e,t)||Y3(e,t)||X3()}function X3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y3(e,t){if(e){if(typeof e=="string")return OS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OS(e,t)}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Z3(e){if(Array.isArray(e))return e}var SM=/[ \f\n\r\t\v\u2028\u2029]+/,AM=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];xt(r)||(n?a=r.toString().split(""):a=r.toString().split(SM));var o=a.map(function(l){return{word:l,width:Ps(l,i).width}}),s=n?0:Ps(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},J3=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=st(o),f=s,h=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce(function(k,R){var L=R.word,U=R.width,I=k[k.length-1];if(I&&(i==null||a||I.width+U+n<Number(i)))I.words.push(L),I.width+=U+n;else{var B={words:[L],width:U};k.push(B)}return k},[])},p=h(r),y=function(j){return j.reduce(function(k,R){return k.width>R.width?k:R})};if(!c)return p;for(var m="…",d=function(j){var k=f.slice(0,j),R=AM({breakAll:u,style:l,children:k+m}).wordsWithComputedWidth,L=h(R),U=L.length>o||y(L).width>Number(i);return[U,L]},b=0,v=f.length-1,x=0,_;b<=v&&x<=f.length-1;){var g=Math.floor((b+v)/2),w=g-1,S=d(w),A=AS(S,2),T=A[0],M=A[1],P=d(g),E=AS(P,1),C=E[0];if(!T&&!C&&(b=g+1),T&&C&&(v=g-1),!T&&C){_=M;break}x++}return _||p},TS=function(t){var r=xt(t)?[]:t.toString().split(SM);return[{words:r}]},Q3=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Mi.isSsr){var l,u,c=AM({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;l=f,u=h}else return TS(i);return J3({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return TS(i)},PS="#808080",Yu=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,d=t.fill,b=d===void 0?PS:d,v=SS(t,H3),x=O.useMemo(function(){return Q3({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),_=v.dx,g=v.dy,w=v.angle,S=v.className,A=v.breakAll,T=SS(v,G3);if(!Pe(n)||!Pe(a))return null;var M=n+(st(_)?_:0),P=a+(st(g)?g:0),E;switch(m){case"start":E=vm("calc(".concat(u,")"));break;case"middle":E=vm("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:E=vm("calc(".concat(x.length-1," * -").concat(s,")"));break}var C=[];if(f){var $=x[0].width,j=v.width;C.push("scale(".concat((st(j)?j/$:1)/$,")"))}return w&&C.push("rotate(".concat(w,", ").concat(M,", ").concat(P,")")),C.length&&(T.transform=C.join(" ")),O.createElement("text",og({},St(T,!0),{x:M,y:P,className:Ct("recharts-text",S),textAnchor:p,fill:b.includes("url")?PS:b}),x.map(function(k,R){var L=k.words.join(A?"":" ");return O.createElement("tspan",{x:M,dy:R===0?E:s,key:"".concat(L,"-").concat(R)},L)}))};const ES=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Is,scaleDiverging:WT,scaleDivergingLog:HT,scaleDivergingPow:Mv,scaleDivergingSqrt:VD,scaleDivergingSymlog:GT,scaleIdentity:AT,scaleImplicit:yy,scaleLinear:_i,scaleLog:TT,scaleOrdinal:hv,scalePoint:gs,scalePow:bv,scaleQuantile:MT,scaleQuantize:CT,scaleRadial:ET,scaleSequential:qT,scaleSequentialLog:FT,scaleSequentialPow:Ev,scaleSequentialQuantile:UT,scaleSequentialSqrt:YD,scaleSequentialSymlog:zT,scaleSqrt:kR,scaleSymlog:PT,scaleThreshold:kT,scaleTime:Ls,scaleUtc:XD,tickFormat:ST},Symbol.toStringTag,{value:"Module"}));var bm,MS;function OM(){if(MS)return bm;MS=1;var e=Do();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],l=n(s);if(l!=null&&(u===void 0?l===l&&!e(l):i(l,u)))var u=l,c=s}return c}return bm=t,bm}var xm,CS;function tU(){if(CS)return xm;CS=1;function e(t,r){return t>r}return xm=e,xm}var _m,kS;function eU(){if(kS)return _m;kS=1;var e=OM(),t=tU(),r=Io();function n(i){return i&&i.length?e(i,r,t):void 0}return _m=n,_m}var rU=eU();const mi=Gt(rU);var wm,$S;function nU(){if($S)return wm;$S=1;function e(t,r){return t<r}return wm=e,wm}var Sm,jS;function iU(){if(jS)return Sm;jS=1;var e=OM(),t=nU(),r=Io();function n(i){return i&&i.length?e(i,r,t):void 0}return Sm=n,Sm}var aU=iU();const Vc=Gt(aU);var Am,RS;function oU(){if(RS)return Am;RS=1;var e=b0();function t(r,n){return e(r,n)}return Am=t,Am}var sU=oU();const pa=Gt(sU);var Bo=1e9,lU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},P0,ae=!0,Yr="[DecimalError] ",ia=Yr+"Invalid argument: ",T0=Yr+"Exponent out of range: ",qo=Math.floor,Wi=Math.pow,uU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Mr,je=1e7,re=7,TM=9007199254740991,Vu=qo(TM/re),ft={};ft.absoluteValue=ft.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ft.comparedTo=ft.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ft.decimalPlaces=ft.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*re;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ft.dividedBy=ft.div=function(e){return Wn(this,new this.constructor(e))};ft.dividedToIntegerBy=ft.idiv=function(e){var t=this,r=t.constructor;return Zt(Wn(t,new r(e),0,1),r.precision)};ft.equals=ft.eq=function(e){return!this.cmp(e)};ft.exponent=function(){return Se(this)};ft.greaterThan=ft.gt=function(e){return this.cmp(e)>0};ft.greaterThanOrEqualTo=ft.gte=function(e){return this.cmp(e)>=0};ft.isInteger=ft.isint=function(){return this.e>this.d.length-2};ft.isNegative=ft.isneg=function(){return this.s<0};ft.isPositive=ft.ispos=function(){return this.s>0};ft.isZero=function(){return this.s===0};ft.lessThan=ft.lt=function(e){return this.cmp(e)<0};ft.lessThanOrEqualTo=ft.lte=function(e){return this.cmp(e)<1};ft.logarithm=ft.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Mr))throw Error(Yr+"NaN");if(r.s<1)throw Error(Yr+(r.s?"NaN":"-Infinity"));return r.eq(Mr)?new n(0):(ae=!1,t=Wn(nl(r,a),nl(e,a),a),ae=!0,Zt(t,i))};ft.minus=ft.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?MM(t,e):PM(t,(e.s=-e.s,e))};ft.modulo=ft.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Yr+"NaN");return r.s?(ae=!1,t=Wn(r,e,0,1).times(e),ae=!0,r.minus(t)):Zt(new n(r),i)};ft.naturalExponential=ft.exp=function(){return EM(this)};ft.naturalLogarithm=ft.ln=function(){return nl(this)};ft.negated=ft.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ft.plus=ft.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?PM(t,e):MM(t,(e.s=-e.s,e))};ft.precision=ft.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ia+e);if(t=Se(i)+1,n=i.d.length-1,r=n*re+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ft.squareRoot=ft.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Yr+"NaN")}for(e=Se(s),ae=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=An(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=qo((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Wn(s,a,o+2)).times(.5),An(a.d).slice(0,o)===(t=An(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Zt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return ae=!0,Zt(n,r)};ft.times=ft.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this,f=c.constructor,h=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=h.length,u=p.length,l<u&&(a=h,h=p,p=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%je|0,t=s/je|0;a[i]=(a[i]+t)%je|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ae?Zt(e,f.precision):e};ft.toDecimalPlaces=ft.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Cn(e,0,Bo),t===void 0?t=n.rounding:Cn(t,0,8),Zt(r,e+Se(r)+1,t))};ft.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=da(n,!0):(Cn(e,0,Bo),t===void 0?t=i.rounding:Cn(t,0,8),n=Zt(new i(n),e+1,t),r=da(n,!0,e+1)),r};ft.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?da(i):(Cn(e,0,Bo),t===void 0?t=a.rounding:Cn(t,0,8),n=Zt(new a(i),e+Se(i)+1,t),r=da(n.abs(),!1,e+Se(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ft.toInteger=ft.toint=function(){var e=this,t=e.constructor;return Zt(new t(e),Se(e)+1,t.rounding)};ft.toNumber=function(){return+this};ft.toPower=ft.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Mr);if(s=new l(s),!s.s){if(e.s<1)throw Error(Yr+"Infinity");return s}if(s.eq(Mr))return s;if(n=l.precision,e.eq(Mr))return Zt(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=TM){for(i=new l(Mr),t=Math.ceil(n/re+4),ae=!1;r%2&&(i=i.times(s),IS(i.d,t)),r=qo(r/2),r!==0;)s=s.times(s),IS(s.d,t);return ae=!0,e.s<0?new l(Mr).div(i):Zt(i,n)}}else if(a<0)throw Error(Yr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ae=!1,i=e.times(nl(s,n+u)),ae=!0,i=EM(i),i.s=a,i};ft.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Se(i),n=da(i,r<=a.toExpNeg||r>=a.toExpPos)):(Cn(e,1,Bo),t===void 0?t=a.rounding:Cn(t,0,8),i=Zt(new a(i),e,t),r=Se(i),n=da(i,e<=r||r<=a.toExpNeg,e)),n};ft.toSignificantDigits=ft.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Cn(e,1,Bo),t===void 0?t=n.rounding:Cn(t,0,8)),Zt(new n(r),e,t)};ft.toString=ft.valueOf=ft.val=ft.toJSON=ft[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Se(e),r=e.constructor;return da(e,t<=r.toExpNeg||t>=r.toExpPos)};function PM(e,t){var r,n,i,a,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),ae?Zt(t,f):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(f/re),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/je|0,l[a]%=je;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ae?Zt(t,f):t}function Cn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ia+e)}function An(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=re-n.length,r&&(a+=ui(r)),a+=n;o=e[t],n=o+"",r=re-n.length,r&&(a+=ui(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Wn=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%je|0,o=a/je|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*je+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,c,f,h,p,y,m,d,b,v,x,_,g,w,S,A,T=n.constructor,M=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(Yr+"Division by zero");for(l=n.e-i.e,S=E.length,g=P.length,p=new T(M),y=p.d=[],u=0;E[u]==(P[u]||0);)++u;if(E[u]>(P[u]||0)&&--l,a==null?v=a=T.precision:o?v=a+(Se(n)-Se(i))+1:v=a,v<0)return new T(0);if(v=v/re+2|0,u=0,S==1)for(c=0,E=E[0],v++;(u<g||c)&&v--;u++)x=c*je+(P[u]||0),y[u]=x/E|0,c=x%E|0;else{for(c=je/(E[0]+1)|0,c>1&&(E=e(E,c),P=e(P,c),S=E.length,g=P.length),_=S,m=P.slice(0,S),d=m.length;d<S;)m[d++]=0;A=E.slice(),A.unshift(0),w=E[0],E[1]>=je/2&&++w;do c=0,s=t(E,m,S,d),s<0?(b=m[0],S!=d&&(b=b*je+(m[1]||0)),c=b/w|0,c>1?(c>=je&&(c=je-1),f=e(E,c),h=f.length,d=m.length,s=t(f,m,h,d),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),s==-1&&(d=m.length,s=t(E,m,S,d),s<1&&(c++,r(m,S<d?A:E,d))),d=m.length):s===0&&(c++,m=[0]),y[u++]=c,s&&m[0]?m[d++]=P[_]||0:(m=[P[_]],d=1);while((_++<g||m[0]!==void 0)&&v--)}return y[0]||y.shift(),p.e=l,Zt(p,o?a+Se(p)+1:a)}})();function EM(e,t){var r,n,i,a,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(Se(e)>16)throw Error(T0+Se(e));if(!e.s)return new c(Mr);for(ae=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Wi(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new c(Mr),c.precision=s;;){if(i=Zt(i.times(e),s),r=r.times(++l),o=a.plus(Wn(i,r,s)),An(o.d).slice(0,s)===An(a.d).slice(0,s)){for(;u--;)a=Zt(a.times(a),s);return c.precision=f,t==null?(ae=!0,Zt(a,f)):a}a=o}}function Se(e){for(var t=e.e*re,r=e.d[0];r>=10;r/=10)t++;return t}function Om(e,t,r){if(t>e.LN10.sd())throw ae=!0,r&&(e.precision=r),Error(Yr+"LN10 precision limit exceeded");return Zt(new e(e.LN10),t)}function ui(e){for(var t="";e--;)t+="0";return t}function nl(e,t){var r,n,i,a,o,s,l,u,c,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(Yr+(p.s?"NaN":"-Infinity"));if(p.eq(Mr))return new m(0);if(t==null?(ae=!1,u=d):u=t,p.eq(10))return t==null&&(ae=!0),Om(m,u);if(u+=h,m.precision=u,r=An(y),n=r.charAt(0),a=Se(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=An(p.d),n=r.charAt(0),f++;a=Se(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return l=Om(m,u+2,d).times(a+""),p=nl(new m(n+"."+r.slice(1)),u-h).plus(l),m.precision=d,t==null?(ae=!0,Zt(p,d)):p;for(s=o=p=Wn(p.minus(Mr),p.plus(Mr),u),c=Zt(p.times(p),u),i=3;;){if(o=Zt(o.times(c),u),l=s.plus(Wn(o,new m(i),u)),An(l.d).slice(0,u)===An(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(Om(m,u+2,d).times(a+""))),s=Wn(s,new m(f),u),m.precision=d,t==null?(ae=!0,Zt(s,d)):s;s=l,i+=2}}function DS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=qo(r/re),e.d=[],n=(r+1)%re,r<0&&(n+=re),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=re;n<i;)e.d.push(+t.slice(n,n+=re));t=t.slice(n),n=re-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ae&&(e.e>Vu||e.e<-Vu))throw Error(T0+r)}else e.s=0,e.e=0,e.d=[0];return e}function Zt(e,t,r){var n,i,a,o,s,l,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=re,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/re),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=re,i=n-re+o}if(r!==void 0&&(a=Wi(10,o-i-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Wi(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=Se(e),f.length=1,t=t-a-1,f[0]=Wi(10,(re-t%re)%re),e.e=qo(-t/re)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Wi(10,re-n),f[c]=i>0?(u/Wi(10,o-i)%Wi(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==je&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=je)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ae&&(e.e>Vu||e.e<-Vu))throw Error(T0+Se(e));return e}function MM(e,t){var r,n,i,a,o,s,l,u,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ae?Zt(t,p):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(p/re),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=je-1;--l[a],l[i]+=je}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,ae?Zt(t,p):t):new h(0)}function da(e,t,r){var n,i=Se(e),a=An(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+ui(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ui(-i-1)+a,r&&(n=r-o)>0&&(a+=ui(n))):i>=o?(a+=ui(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+ui(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=ui(n))),e.s<0?"-"+a:a}function IS(e,t){if(e.length>t)return e.length=t,!0}function CM(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(ia+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return DS(o,a.toString())}else if(typeof a!="string")throw Error(ia+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,uU.test(a))DS(o,a);else throw Error(ia+a)}if(i.prototype=ft,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=CM,i.config=i.set=cU,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function cU(e){if(!e||typeof e!="object")throw Error(Yr+"Object expected");var t,r,n,i=["precision",1,Bo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(qo(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ia+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ia+r+": "+n);return this}var P0=CM(lU);Mr=new P0(1);const Xt=P0;function fU(e){return mU(e)||dU(e)||pU(e)||hU()}function hU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
93
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pU(e,t){if(e){if(typeof e=="string")return sg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sg(e,t)}}function dU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function mU(e){if(Array.isArray(e))return sg(e)}function sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yU=function(t){return t},kM={},$M=function(t){return t===kM},NS=function(t){return function r(){return arguments.length===0||arguments.length===1&&$M(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},gU=function e(t,r){return t===1?r:NS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==kM}).length;return o>=t?r.apply(void 0,i):e(t-o,NS(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=i.map(function(f){return $M(f)?l.shift():f});return r.apply(void 0,fU(c).concat(l))}))})},Zc=function(t){return gU(t.length,t)},lg=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},vU=Zc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),bU=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return yU;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},ug=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},jM=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function xU(e){var t;return e===0?t=1:t=Math.floor(new Xt(e).abs().log(10).toNumber())+1,t}function _U(e,t,r){for(var n=new Xt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var wU=Zc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),SU=Zc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),AU=Zc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Jc={rangeStep:_U,getDigitCount:xU,interpolateNumber:wU,uninterpolateNumber:SU,uninterpolateTruncation:AU};function cg(e){return PU(e)||TU(e)||RM(e)||OU()}function OU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
94
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function PU(e){if(Array.isArray(e))return fg(e)}function il(e,t){return CU(e)||MU(e,t)||RM(e,t)||EU()}function EU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
95
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RM(e,t){if(e){if(typeof e=="string")return fg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fg(e,t)}}function fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MU(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function CU(e){if(Array.isArray(e))return e}function DM(e){var t=il(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function IM(e,t,r){if(e.lte(0))return new Xt(0);var n=Jc.getDigitCount(e.toNumber()),i=new Xt(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Xt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Xt(Math.ceil(l))}function kU(e,t,r){var n=1,i=new Xt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Xt(10).pow(Jc.getDigitCount(e)-1),i=new Xt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Xt(Math.floor(e)))}else e===0?i=new Xt(Math.floor((t-1)/2)):r||(i=new Xt(Math.floor(e)));var o=Math.floor((t-1)/2),s=bU(vU(function(l){return i.add(new Xt(l-o).mul(n)).toNumber()}),lg);return s(0,t)}function NM(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Xt(0),tickMin:new Xt(0),tickMax:new Xt(0)};var a=IM(new Xt(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Xt(0):(o=new Xt(e).add(t).div(2),o=o.sub(new Xt(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Xt(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?NM(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Xt(s).mul(a)),tickMax:o.add(new Xt(l).mul(a))})}function $U(e){var t=il(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=DM([r,n]),l=il(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(cg(lg(0,i-1).map(function(){return 1/0}))):[].concat(cg(lg(0,i-1).map(function(){return-1/0})),[c]);return r>n?ug(f):f}if(u===c)return kU(u,i,a);var h=NM(u,c,o,a),p=h.step,y=h.tickMin,m=h.tickMax,d=Jc.rangeStep(y,m.add(new Xt(.1).mul(p)),p);return r>n?ug(d):d}function jU(e,t){var r=il(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=DM([n,i]),s=il(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=IM(new Xt(u).sub(l).div(c-1),a,0),h=[].concat(cg(Jc.rangeStep(new Xt(l),new Xt(u).sub(new Xt(.99).mul(f)),f)),[u]);return n>i?ug(h):h}var RU=jM($U),DU=jM(jU),IU=process.env.NODE_ENV==="production",Tm="Invariant failed";function fr(e,t){if(IU)throw new Error(Tm);var r=typeof t=="function"?t():t,n=r?"".concat(Tm,": ").concat(r):Tm;throw new Error(n)}var NU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zu.apply(this,arguments)}function LU(e,t){return zU(e)||FU(e,t)||qU(e,t)||BU()}function BU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qU(e,t){if(e){if(typeof e=="string")return LS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LS(e,t)}}function LS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function zU(e){if(Array.isArray(e))return e}function UU(e,t){if(e==null)return{};var r=WU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function HU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qM(n.key),n)}}function KU(e,t,r){return t&&GU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XU(e,t,r){return t=Ju(t),YU(e,LM()?Reflect.construct(t,r||[],Ju(e).constructor):t.apply(e,r))}function YU(e,t){if(t&&(po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VU(e)}function VU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LM=function(){return!!e})()}function Ju(e){return Ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ju(e)}function ZU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hg(e,t)}function hg(e,t){return hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hg(e,t)}function BM(e,t,r){return t=qM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qM(e){var t=JU(e,"string");return po(t)=="symbol"?t:t+""}function JU(e,t){if(po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fo=(function(e){function t(){return HU(this,t),XU(this,t,arguments)}return ZU(t,e),KU(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,h=UU(n,NU),p=St(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?fr(!1,'ErrorBar requires Axis type property to be "number".'):fr());var y=l.map(function(m){var d=u(m,s),b=d.x,v=d.y,x=d.value,_=d.errorVal;if(!_)return null;var g=[],w,S;if(Array.isArray(_)){var A=LU(_,2);w=A[0],S=A[1]}else w=S=_;if(a==="vertical"){var T=c.scale,M=v+i,P=M+o,E=M-o,C=T(x-w),$=T(x+S);g.push({x1:$,y1:P,x2:$,y2:E}),g.push({x1:C,y1:M,x2:$,y2:M}),g.push({x1:C,y1:P,x2:C,y2:E})}else if(a==="horizontal"){var j=f.scale,k=b+i,R=k-o,L=k+o,U=j(x-w),I=j(x+S);g.push({x1:R,y1:I,x2:L,y2:I}),g.push({x1:k,y1:U,x2:k,y2:I}),g.push({x1:R,y1:U,x2:L,y2:U})}return O.createElement(Bt,Zu({className:"recharts-errorBar",key:"bar-".concat(g.map(function(B){return"".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))},p),g.map(function(B){return O.createElement("line",Zu({},B,{key:"line-".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))}))});return O.createElement(Bt,{className:"recharts-errorBars"},y)}}])})(O.Component);BM(Fo,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});BM(Fo,"displayName","ErrorBar");function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function BS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BS(Object(r),!0).forEach(function(n){QU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QU(e,t,r){return t=tW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tW(e){var t=eW(e,"string");return al(t)=="symbol"?t:t+""}function eW(e,t){if(al(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(al(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FM=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Tr(r,na);if(!o)return null;var s=na.defaultProps,l=s!==void 0?Fi(Fi({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(c,f){var h=f.item,p=f.props,y=p.sectors||p.data||[];return c.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?Fi(Fi({},h),f.props):{},y=p.dataKey,m=p.name,d=p.legendType,b=p.hide;return{inactive:b,dataKey:y,type:l.iconType||d||"square",color:E0(f),value:m||y,payload:p}}),Fi(Fi(Fi({},l),na.getWithHeight(o,i)),{},{payload:u,item:o})};function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}function qS(e){return aW(e)||iW(e)||nW(e)||rW()}function rW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
97
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nW(e,t){if(e){if(typeof e=="string")return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pg(e,t)}}function iW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aW(e){if(Array.isArray(e))return pg(e)}function pg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(n){Ya(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ya(e,t,r){return t=oW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oW(e){var t=sW(e,"string");return ol(t)=="symbol"?t:t+""}function sW(e,t){if(ol(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ol(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ee(e,t,r){return xt(e)||xt(t)?r:Pe(t)?Xr(e,t,r):At(t)?t(e):r}function Es(e,t,r,n){var i=QE(e,function(s){return Ee(s,t)});if(r==="number"){var a=i.filter(function(s){return st(s)||parseFloat(s)});return a.length?[Vc(a),mi(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!xt(s)}):i;return o.map(function(s){return Pe(s)||s instanceof Date?s:""})}var lW=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var c=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(on(f-c)!==on(h-f)){var y=[];if(on(h-f)===on(l[1]-l[0])){p=h;var m=f+l[1]-l[0];y[0]=Math.min(m,(m+c)/2),y[1]=Math.max(m,(m+c)/2)}else{p=c;var d=h+l[1]-l[0];y[0]=Math.min(f,(d+f)/2),y[1]=Math.max(f,(d+f)/2)}var b=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[u].index;break}}else{var v=Math.min(c,h),x=Math.max(c,h);if(t>(v+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var _=0;_<s;_++)if(_===0&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_===s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o},E0=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?fe(fe({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},uW=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var c=a[s[l]].stackGroups,f=Object.keys(c),h=0,p=f.length;h<p;h++){var y=c[f[h]],m=y.items,d=y.cateAxisId,b=m.filter(function(S){return zn(S.type).indexOf("Bar")>=0});if(b&&b.length){var v=b[0].type.defaultProps,x=v!==void 0?fe(fe({},v),b[0].props):b[0].props,_=x.barSize,g=x[d];o[g]||(o[g]=[]);var w=xt(_)?r:_;o[g].push({item:b[0],stackList:b.slice(1),barSize:xt(w)?void 0:ha(w,n,0)})}}return o},cW=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=ha(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/l,y=o.reduce(function(_,g){return _+g.barSize||0},0);y+=(l-1)*u,y>=i&&(y-=(l-1)*u,u=0),y>=i&&p>0&&(h=!0,p*=.9,y=l*p);var m=(i-y)/2>>0,d={offset:m-u,size:0};c=o.reduce(function(_,g){var w={item:g.item,position:{offset:d.offset+d.size+u,size:h?p:g.barSize}},S=[].concat(qS(_),[w]);return d=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:d})}),S},f)}else{var b=ha(n,i,0,!0);i-2*b-(l-1)*u<=0&&(u=0);var v=(i-2*b-(l-1)*u)/l;v>1&&(v>>=0);var x=s===+s?Math.min(v,s):v;c=o.reduce(function(_,g,w){var S=[].concat(qS(_),[{item:g.item,position:{offset:b+(v+u)*w+(v-x)/2,size:x}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},f)}return c},fW=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=FM({children:a,legendWidth:l});if(u){var c=i||{},f=c.width,h=c.height,p=u.align,y=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&st(t[p]))return fe(fe({},t),{},Ya({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&st(t[y]))return fe(fe({},t),{},Ya({},y,t[y]+(h||0)))}return t},hW=function(t,r,n){return xt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},zM=function(t,r,n,i,a){var o=r.props.children,s=gr(o,Fo).filter(function(u){return hW(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=Ee(c,n);if(xt(f))return u;var h=Array.isArray(f)?[Vc(f),mi(f)]:[f,f],p=l.reduce(function(y,m){var d=Ee(c,m,0),b=h[0]-Math.abs(Array.isArray(d)?d[0]:d),v=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(b,y[0]),Math.max(v,y[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},pW=function(t,r,n,i,a){var o=r.map(function(s){return zM(t,s,n,a,i)}).filter(function(s){return!xt(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},UM=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&zM(t,l,u,i)||Es(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},WM=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},HM=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},Fn=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?on(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var h=a?a.indexOf(f):f;return{coordinate:i(h)+u,value:f,offset:u}});return c.filter(function(f){return!Lo(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:i(f)+u,value:f,index:h,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,h){return{coordinate:i(f)+u,value:a?a[f]:f,index:h,offset:u}})},Pm=new WeakMap,tu=function(t,r){if(typeof r!="function")return t;Pm.has(t)||Pm.set(t,new WeakMap);var n=Pm.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},dW=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Is(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:_i(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:gs(),realScaleType:"point"}:a==="category"?{scale:Is(),realScaleType:"band"}:{scale:_i(),realScaleType:"linear"};if(fa(i)){var l="scale".concat(Kc(i));return{scale:(ES[l]||gs)(),realScaleType:ES[l]?l:"point"}}return At(i)?{scale:i}:{scale:gs(),realScaleType:"point"}},zS=1e-4,mW=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-zS,o=Math.max(i[0],i[1])+zS,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},yW=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},gW=function(t,r){if(!r||r.length!==2||!st(r[0])||!st(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!st(t[0])||t[0]<n)&&(a[0]=n),(!st(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},vW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Lo(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},bW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Lo(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},xW={sign:vW,expand:TI,none:ro,silhouette:PI,wiggle:EI,positive:bW},_W=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=xW[n],o=Bs().keys(i).value(function(s,l){return+Ee(s,l,0)}).order(_y).offset(a);return o(t)},wW=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?fe(fe({},h.type.defaultProps),h.props):h.props,m=y.stackId,d=y.hide;if(d)return f;var b=y[n],v=f[b]||{hasStack:!1,stackGroups:{}};if(Pe(m)){var x=v.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(h),v.hasStack=!0,v.stackGroups[m]=x}else v.stackGroups[wa("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return fe(fe({},f),{},Ya({},b,v))},l),c={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,d){var b=p.stackGroups[d];return fe(fe({},m),{},Ya({},d,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:_W(t,b.items,a)}))},y)}return fe(fe({},f),{},Ya({},h,p))},c)},SW=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=RU(u,a,s);return t.domain([Vc(c),mi(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=DU(f,a,s);return{niceTicks:h}}return null};function mo(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!xt(i[t.dataKey])){var s=zu(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Ee(i,xt(o)?t.dataKey:o);return xt(l)?null:t.scale(l)}var US=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=Ee(o,r.dataKey,r.domain[s]);return xt(l)?null:r.scale(l)-a/2+i},AW=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},OW=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?fe(fe({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Pe(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},TW=function(t){return t.reduce(function(r,n){return[Vc(n.concat([r[0]]).filter(st)),mi(n.concat([r[1]]).filter(st))]},[1/0,-1/0])},GM=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,c){var f=TW(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},WS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,dg=function(t,r,n){if(At(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(st(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(WS.test(t[0])){var a=+WS.exec(t[0])[1];i[0]=r[0]-a}else At(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(st(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(HS.test(t[1])){var o=+HS.exec(t[1])[1];i[1]=r[1]+o}else At(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Qu=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Gc(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],c=a[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},GS=function(t,r,n){return!t||!t.length||pa(t,Xr(n,"type.defaultProps.domain"))?r:t},KM=function(t,r){var n=t.type.defaultProps?fe(fe({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return fe(fe({},St(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:E0(t),value:Ee(r,i),type:l,payload:r,chartType:u,hide:c})};function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){PW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PW(e,t,r){return t=EW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EW(e){var t=MW(e,"string");return sl(t)=="symbol"?t:t+""}function MW(e,t){if(sl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tc=Math.PI/180,CW=function(t){return t*180/Math.PI},qe=function(t,r,n,i){return{x:t+Math.cos(-tc*i)*n,y:r+Math.sin(-tc*i)*n}},kW=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},$W=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=kW({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:CW(u),angleInRadian:u}},jW=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},RW=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},YS=function(t,r){var n=t.x,i=t.y,a=$W({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=jW(r),f=c.startAngle,h=c.endAngle,p=s,y;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;y=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=f}return y?XS(XS({},r),{},{radius:o,angle:RW(p,r)}):null};function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}var DW=["offset"];function IW(e){return qW(e)||BW(e)||LW(e)||NW()}function NW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LW(e,t){if(e){if(typeof e=="string")return mg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mg(e,t)}}function BW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qW(e){if(Array.isArray(e))return mg(e)}function mg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FW(e,t){if(e==null)return{};var r=zW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VS(Object(r),!0).forEach(function(n){UW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UW(e,t,r){return t=WW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WW(e){var t=HW(e,"string");return ll(t)=="symbol"?t:t+""}function HW(e,t){if(ll(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ll(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ul.apply(this,arguments)}var GW=function(t){var r=t.value,n=t.formatter,i=xt(t.children)?r:t.children;return At(n)?n(i):i},KW=function(t,r){var n=on(r-t),i=Math.min(Math.abs(r-t),360);return n*i},XW=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,c=l.cy,f=l.innerRadius,h=l.outerRadius,p=l.startAngle,y=l.endAngle,m=l.clockWise,d=(f+h)/2,b=KW(p,y),v=b>=0?1:-1,x,_;i==="insideStart"?(x=p+v*o,_=m):i==="insideEnd"?(x=y-v*o,_=!m):i==="end"&&(x=y+v*o,_=m),_=b<=0?_:!_;var g=qe(u,c,d,x),w=qe(u,c,d,x+(_?1:-1)*359),S="M".concat(g.x,",").concat(g.y,`
99
99
  A`).concat(d,",").concat(d,",0,1,").concat(_?0:1,`,
100
- `).concat(x.x,",").concat(x.y),A=gt(t.id)?da("recharts-radial-line-"):t.id;return O.createElement("text",rl({},n,{dominantBaseline:"central",className:Ot("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:A,d:S})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},QW=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,h=(c+f)/2;if(i==="outside"){var p=$e(o,s,u+n,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var d=(l+u)/2,v=$e(o,s,d,h),w=v.x,b=v.y;return{x:w,y:b,textAnchor:"middle",verticalAnchor:"middle"}},t8=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,h=f*i,p=f>0?"end":"start",y=f>0?"start":"end",m=u>=0?1:-1,d=m*i,v=m>0?"end":"start",w=m>0?"start":"end";if(a==="top"){var b={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:p};return ve(ve({},b),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var _={x:s+u/2,y:l+c+h,textAnchor:"middle",verticalAnchor:y};return ve(ve({},_),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var g={x:s-d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"};return ve(ve({},g),n?{width:Math.max(g.x-n.x,0),height:c}:{})}if(a==="right"){var x={x:s+u+d,y:l+c/2,textAnchor:w,verticalAnchor:"middle"};return ve(ve({},x),n?{width:Math.max(n.x+n.width-x.x,0),height:c}:{})}var S=n?{width:u,height:c}:{};return a==="insideLeft"?ve({x:s+d,y:l+c/2,textAnchor:w,verticalAnchor:"middle"},S):a==="insideRight"?ve({x:s+u-d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"},S):a==="insideTop"?ve({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?ve({x:s+u/2,y:l+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?ve({x:s+d,y:l+h,textAnchor:w,verticalAnchor:y},S):a==="insideTopRight"?ve({x:s+u-d,y:l+h,textAnchor:v,verticalAnchor:y},S):a==="insideBottomLeft"?ve({x:s+d,y:l+c-h,textAnchor:w,verticalAnchor:p},S):a==="insideBottomRight"?ve({x:s+u-d,y:l+c-h,textAnchor:v,verticalAnchor:p},S):Co(a)&&(nt(a.x)||Fi(a.x))&&(nt(a.y)||Fi(a.y))?ve({x:s+ia(a.x,u),y:l+ia(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):ve({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},e8=function(t){return"cx"in t&&nt(t.cx)};function qe(e){var t=e.offset,r=t===void 0?5:t,n=HW(e,BW),i=ve({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,h=i.textBreakAll;if(!a||gt(s)&&gt(l)&&!O.isValidElement(u)&&!bt(u))return null;if(O.isValidElement(u))return O.cloneElement(u,i);var p;if(bt(u)){if(p=O.createElement(u,i),O.isValidElement(p))return p}else p=VW(i);var y=e8(a),m=vt(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return JW(i,p,m);var d=y?QW(i):t8(i);return O.createElement(Wu,rl({className:Ot("recharts-label",f)},m,d,{breakAll:h}),p)}qe.displayName="Label";var ZC=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,h=t.y,p=t.top,y=t.left,m=t.width,d=t.height,v=t.clockWise,w=t.labelViewBox;if(w)return w;if(nt(m)&&nt(d)){if(nt(f)&&nt(h))return{x:f,y:h,width:m,height:d};if(nt(p)&&nt(y))return{x:p,y,width:m,height:d}}return nt(f)&&nt(h)?{x:f,y:h,width:0,height:0}:nt(r)&&nt(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:v}:t.viewBox?t.viewBox:{}},r8=function(t,r){return t?t===!0?O.createElement(qe,{key:"label-implicit",viewBox:r}):be(t)?O.createElement(qe,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===qe?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(qe,{key:"label-implicit",content:t,viewBox:r}):bt(t)?O.createElement(qe,{key:"label-implicit",content:t,viewBox:r}):Co(t)?O.createElement(qe,rl({viewBox:r},t,{key:"label-implicit"})):null:null},n8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=ZC(t),o=sr(i,qe).map(function(l,u){return O.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=r8(t.label,r||a);return[s].concat(qW(o))};qe.parseViewBox=ZC;qe.renderCallByParent=n8;var Om,ZS;function i8(){if(ZS)return Om;ZS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Om=e,Om}var a8=i8();const o8=qt(a8);function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}var s8=["valueAccessor"],l8=["data","dataKey","clockWise","id","textBreakAll"];function u8(e){return p8(e)||h8(e)||f8(e)||c8()}function c8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
101
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f8(e,t){if(e){if(typeof e=="string")return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pg(e,t)}}function h8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p8(e){if(Array.isArray(e))return pg(e)}function pg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vu.apply(this,arguments)}function JS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(r),!0).forEach(function(n){d8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d8(e,t,r){return t=m8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m8(e){var t=y8(e,"string");return nl(t)=="symbol"?t:t+""}function y8(e,t){if(nl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tA(e,t){if(e==null)return{};var r=g8(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var v8=function(t){return Array.isArray(t.value)?o8(t.value):t.value};function _n(e){var t=e.valueAccessor,r=t===void 0?v8:t,n=tA(e,s8),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=tA(n,l8);return!i||!i.length?null:O.createElement(Rt,{className:"recharts-label-list"},i.map(function(c,f){var h=gt(a)?r(c,f):_e(c&&c.payload,a),p=gt(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(qe,Vu({},vt(c,!0),u,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:l,viewBox:qe.parseViewBox(gt(o)?c:QS(QS({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}_n.displayName="LabelList";function b8(e,t){return e?e===!0?O.createElement(_n,{key:"labelList-implicit",data:t}):O.isValidElement(e)||bt(e)?O.createElement(_n,{key:"labelList-implicit",data:t,content:e}):Co(e)?O.createElement(_n,Vu({data:t},e,{key:"labelList-implicit"})):null:null}function _8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=sr(n,_n).map(function(o,s){return O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=b8(e.label,t);return[a].concat(u8(i))}_n.renderCallByParent=_8;function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}function dg(){return dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dg.apply(this,arguments)}function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(r),!0).forEach(function(n){x8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x8(e,t,r){return t=w8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w8(e){var t=S8(e,"string");return il(t)=="symbol"?t:t+""}function S8(e,t){if(il(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(il(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var A8=function(t,r){var n=en(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Xl=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+i,f=Math.asin(l/c)/Xu,h=u?a:a+o*f,p=$e(r,n,c,h),y=$e(r,n,i,h),m=u?a-o*f:a,d=$e(r,n,c*Math.cos(f*Xu),m);return{center:p,circleTangency:y,lineTangency:d,theta:f}},JC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=A8(o,s),u=o+l,c=$e(r,n,a,o),f=$e(r,n,a,u),h="M ".concat(c.x,",").concat(c.y,`
100
+ `).concat(w.x,",").concat(w.y),A=xt(t.id)?wa("recharts-radial-line-"):t.id;return O.createElement("text",ul({},n,{dominantBaseline:"central",className:Ct("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:A,d:S})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},YW=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,h=(c+f)/2;if(i==="outside"){var p=qe(o,s,u+n,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var d=(l+u)/2,b=qe(o,s,d,h),v=b.x,x=b.y;return{x:v,y:x,textAnchor:"middle",verticalAnchor:"middle"}},VW=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,h=f*i,p=f>0?"end":"start",y=f>0?"start":"end",m=u>=0?1:-1,d=m*i,b=m>0?"end":"start",v=m>0?"start":"end";if(a==="top"){var x={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:p};return Te(Te({},x),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var _={x:s+u/2,y:l+c+h,textAnchor:"middle",verticalAnchor:y};return Te(Te({},_),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var g={x:s-d,y:l+c/2,textAnchor:b,verticalAnchor:"middle"};return Te(Te({},g),n?{width:Math.max(g.x-n.x,0),height:c}:{})}if(a==="right"){var w={x:s+u+d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"};return Te(Te({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var S=n?{width:u,height:c}:{};return a==="insideLeft"?Te({x:s+d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"},S):a==="insideRight"?Te({x:s+u-d,y:l+c/2,textAnchor:b,verticalAnchor:"middle"},S):a==="insideTop"?Te({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?Te({x:s+u/2,y:l+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?Te({x:s+d,y:l+h,textAnchor:v,verticalAnchor:y},S):a==="insideTopRight"?Te({x:s+u-d,y:l+h,textAnchor:b,verticalAnchor:y},S):a==="insideBottomLeft"?Te({x:s+d,y:l+c-h,textAnchor:v,verticalAnchor:p},S):a==="insideBottomRight"?Te({x:s+u-d,y:l+c-h,textAnchor:b,verticalAnchor:p},S):No(a)&&(st(a.x)||Yi(a.x))&&(st(a.y)||Yi(a.y))?Te({x:s+ha(a.x,u),y:l+ha(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):Te({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},ZW=function(t){return"cx"in t&&st(t.cx)};function Ve(e){var t=e.offset,r=t===void 0?5:t,n=FW(e,DW),i=Te({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,h=i.textBreakAll;if(!a||xt(s)&&xt(l)&&!O.isValidElement(u)&&!At(u))return null;if(O.isValidElement(u))return O.cloneElement(u,i);var p;if(At(u)){if(p=O.createElement(u,i),O.isValidElement(p))return p}else p=GW(i);var y=ZW(a),m=St(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return XW(i,p,m);var d=y?YW(i):VW(i);return O.createElement(Yu,ul({className:Ct("recharts-label",f)},m,d,{breakAll:h}),p)}Ve.displayName="Label";var XM=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,h=t.y,p=t.top,y=t.left,m=t.width,d=t.height,b=t.clockWise,v=t.labelViewBox;if(v)return v;if(st(m)&&st(d)){if(st(f)&&st(h))return{x:f,y:h,width:m,height:d};if(st(p)&&st(y))return{x:p,y,width:m,height:d}}return st(f)&&st(h)?{x:f,y:h,width:0,height:0}:st(r)&&st(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:b}:t.viewBox?t.viewBox:{}},JW=function(t,r){return t?t===!0?O.createElement(Ve,{key:"label-implicit",viewBox:r}):Pe(t)?O.createElement(Ve,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===Ve?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(Ve,{key:"label-implicit",content:t,viewBox:r}):At(t)?O.createElement(Ve,{key:"label-implicit",content:t,viewBox:r}):No(t)?O.createElement(Ve,ul({viewBox:r},t,{key:"label-implicit"})):null:null},QW=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=XM(t),o=gr(i,Ve).map(function(l,u){return O.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=JW(t.label,r||a);return[s].concat(IW(o))};Ve.parseViewBox=XM;Ve.renderCallByParent=QW;var Em,ZS;function t8(){if(ZS)return Em;ZS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Em=e,Em}var e8=t8();const r8=Gt(e8);function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}var n8=["valueAccessor"],i8=["data","dataKey","clockWise","id","textBreakAll"];function a8(e){return u8(e)||l8(e)||s8(e)||o8()}function o8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
101
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s8(e,t){if(e){if(typeof e=="string")return yg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yg(e,t)}}function l8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u8(e){if(Array.isArray(e))return yg(e)}function yg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec.apply(this,arguments)}function JS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(r),!0).forEach(function(n){c8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c8(e,t,r){return t=f8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f8(e){var t=h8(e,"string");return cl(t)=="symbol"?t:t+""}function h8(e,t){if(cl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tA(e,t){if(e==null)return{};var r=p8(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var d8=function(t){return Array.isArray(t.value)?r8(t.value):t.value};function Pn(e){var t=e.valueAccessor,r=t===void 0?d8:t,n=tA(e,n8),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=tA(n,i8);return!i||!i.length?null:O.createElement(Bt,{className:"recharts-label-list"},i.map(function(c,f){var h=xt(a)?r(c,f):Ee(c&&c.payload,a),p=xt(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(Ve,ec({},St(c,!0),u,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:l,viewBox:Ve.parseViewBox(xt(o)?c:QS(QS({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Pn.displayName="LabelList";function m8(e,t){return e?e===!0?O.createElement(Pn,{key:"labelList-implicit",data:t}):O.isValidElement(e)||At(e)?O.createElement(Pn,{key:"labelList-implicit",data:t,content:e}):No(e)?O.createElement(Pn,ec({data:t},e,{key:"labelList-implicit"})):null:null}function y8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=gr(n,Pn).map(function(o,s){return O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=m8(e.label,t);return[a].concat(a8(i))}Pn.renderCallByParent=y8;function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function gg(){return gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gg.apply(this,arguments)}function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(r),!0).forEach(function(n){g8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g8(e,t,r){return t=v8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v8(e){var t=b8(e,"string");return fl(t)=="symbol"?t:t+""}function b8(e,t){if(fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x8=function(t,r){var n=on(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},eu=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+i,f=Math.asin(l/c)/tc,h=u?a:a+o*f,p=qe(r,n,c,h),y=qe(r,n,i,h),m=u?a-o*f:a,d=qe(r,n,c*Math.cos(f*tc),m);return{center:p,circleTangency:y,lineTangency:d,theta:f}},YM=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=x8(o,s),u=o+l,c=qe(r,n,a,o),f=qe(r,n,a,u),h="M ".concat(c.x,",").concat(c.y,`
102
102
  A `).concat(a,",").concat(a,`,0,
103
103
  `).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
104
104
  `).concat(f.x,",").concat(f.y,`
105
- `);if(i>0){var p=$e(r,n,i,o),y=$e(r,n,i,u);h+="L ".concat(y.x,",").concat(y.y,`
105
+ `);if(i>0){var p=qe(r,n,i,o),y=qe(r,n,i,u);h+="L ".concat(y.x,",").concat(y.y,`
106
106
  A `).concat(i,",").concat(i,`,0,
107
107
  `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
108
- `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},O8=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=en(c-u),h=Xl({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),p=h.circleTangency,y=h.lineTangency,m=h.theta,d=Xl({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),v=d.circleTangency,w=d.lineTangency,b=d.theta,_=l?Math.abs(u-c):Math.abs(u-c)-m-b;if(_<0)return s?"M ".concat(y.x,",").concat(y.y,`
108
+ `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},_8=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=on(c-u),h=eu({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),p=h.circleTangency,y=h.lineTangency,m=h.theta,d=eu({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),b=d.circleTangency,v=d.lineTangency,x=d.theta,_=l?Math.abs(u-c):Math.abs(u-c)-m-x;if(_<0)return s?"M ".concat(y.x,",").concat(y.y,`
109
109
  a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
110
110
  a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
111
- `):JC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var g="M ".concat(y.x,",").concat(y.y,`
111
+ `):YM({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var g="M ".concat(y.x,",").concat(y.y,`
112
112
  A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
113
- A`).concat(a,",").concat(a,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
114
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,`
115
- `);if(i>0){var x=Xl({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),S=x.circleTangency,A=x.lineTangency,T=x.theta,C=Xl({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=C.circleTangency,E=C.lineTangency,k=C.theta,$=l?Math.abs(u-c):Math.abs(u-c)-T-k;if($<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,`
113
+ A`).concat(a,",").concat(a,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
114
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
115
+ `);if(i>0){var w=eu({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),S=w.circleTangency,A=w.lineTangency,T=w.theta,M=eu({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=M.circleTangency,E=M.lineTangency,C=M.theta,$=l?Math.abs(u-c):Math.abs(u-c)-T-C;if($<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,`
116
116
  A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,`
117
117
  A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
118
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},T8={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},QC=function(t){var r=rA(rA({},T8),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,h=r.className;if(o<a||c===f)return null;var p=Ot("recharts-sector",h),y=o-a,m=ia(s,y,0,!0),d;return m>0&&Math.abs(c-f)<360?d=O8({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):d=JC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",dg({},vt(r,!0),{className:p,d,role:"img"}))};function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function mg(){return mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mg.apply(this,arguments)}function nA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(r),!0).forEach(function(n){P8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P8(e,t,r){return t=E8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E8(e){var t=C8(e,"string");return al(t)=="symbol"?t:t+""}function C8(e,t){if(al(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(al(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aA={curveBasisClosed:vI,curveBasisOpen:bI,curveBasis:gI,curveBumpX:nI,curveBumpY:iI,curveLinearClosed:wI,curveLinear:ea,curveMonotoneX:SI,curveMonotoneY:AI,curveNatural:OI,curveStep:TI,curveStepAfter:EI,curveStepBefore:PI},Vl=function(t){return t.x===+t.x&&t.y===+t.y},Vo=function(t){return t.x},Zo=function(t){return t.y},M8=function(t,r){if(bt(t))return t;var n="curve".concat(Uc(t));return(n==="curveMonotone"||n==="curveBump")&&r?aA["".concat(n).concat(r==="vertical"?"Y":"X")]:aA[n]||ea},k8=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=M8(n,s),f=u?a.filter(function(m){return Vl(m)}):a,h;if(Array.isArray(o)){var p=u?o.filter(function(m){return Vl(m)}):o,y=f.map(function(m,d){return iA(iA({},m),{},{base:p[d]})});return s==="vertical"?h=Li().y(Zo).x1(Vo).x0(function(m){return m.base.x}):h=Li().x(Vo).y1(Zo).y0(function(m){return m.base.y}),h.defined(Vl).curve(c),h(y)}return s==="vertical"&&nt(o)?h=Li().y(Zo).x1(Vo).x0(o):nt(o)?h=Li().x(Vo).y1(Zo).y0(o):h=Cv().x(Vo).y(Zo),h.defined(Vl).curve(c),h(f)},Zi=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?k8(t):i;return qr.createElement("path",mg({},vt(t,!1),Lu(t),{className:Ot("recharts-curve",r),d:o,ref:a}))},Zl={exports:{}},Jl={exports:{}},Nt={};/** @license React v16.13.1
118
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},w8={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},VM=function(t){var r=rA(rA({},w8),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,h=r.className;if(o<a||c===f)return null;var p=Ct("recharts-sector",h),y=o-a,m=ha(s,y,0,!0),d;return m>0&&Math.abs(c-f)<360?d=_8({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):d=YM({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",gg({},St(r,!0),{className:p,d,role:"img"}))};function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vg.apply(this,arguments)}function nA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(r),!0).forEach(function(n){S8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S8(e,t,r){return t=A8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A8(e){var t=O8(e,"string");return hl(t)=="symbol"?t:t+""}function O8(e,t){if(hl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aA={curveBasisClosed:mI,curveBasisOpen:yI,curveBasis:dI,curveBumpX:tI,curveBumpY:eI,curveLinearClosed:gI,curveLinear:Yn,curveMonotoneX:vI,curveMonotoneY:bI,curveNatural:xI,curveStep:_I,curveStepAfter:SI,curveStepBefore:wI},ru=function(t){return t.x===+t.x&&t.y===+t.y},is=function(t){return t.x},as=function(t){return t.y},T8=function(t,r){if(At(t))return t;var n="curve".concat(Kc(t));return(n==="curveMonotone"||n==="curveBump")&&r?aA["".concat(n).concat(r==="vertical"?"Y":"X")]:aA[n]||Yn},P8=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=T8(n,s),f=u?a.filter(function(m){return ru(m)}):a,h;if(Array.isArray(o)){var p=u?o.filter(function(m){return ru(m)}):o,y=f.map(function(m,d){return iA(iA({},m),{},{base:p[d]})});return s==="vertical"?h=fi().y(as).x1(is).x0(function(m){return m.base.x}):h=fi().x(is).y1(as).y0(function(m){return m.base.y}),h.defined(ru).curve(c),h(y)}return s==="vertical"&&st(o)?h=fi().y(as).x1(is).x0(o):st(o)?h=fi().x(is).y1(as).y0(o):h=$v().x(is).y(as),h.defined(ru).curve(c),h(f)},aa=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?P8(t):i;return Kr.createElement("path",vg({},St(t,!1),Uu(t),{className:Ct("recharts-curve",r),d:o,ref:a}))},nu={exports:{}},iu={exports:{}},Ut={};/** @license React v16.13.1
119
119
  * react-is.production.min.js
120
120
  *
121
121
  * Copyright (c) Facebook, Inc. and its affiliates.
122
122
  *
123
123
  * This source code is licensed under the MIT license found in the
124
124
  * LICENSE file in the root directory of this source tree.
125
- */var oA;function $8(){if(oA)return Nt;oA=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(g){if(typeof g=="object"&&g!==null){var x=g.$$typeof;switch(x){case t:switch(g=g.type,g){case l:case u:case n:case a:case i:case f:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case y:case p:case o:return g;default:return x}}case r:return x}}}function _(g){return b(g)===u}return Nt.AsyncMode=l,Nt.ConcurrentMode=u,Nt.ContextConsumer=s,Nt.ContextProvider=o,Nt.Element=t,Nt.ForwardRef=c,Nt.Fragment=n,Nt.Lazy=y,Nt.Memo=p,Nt.Portal=r,Nt.Profiler=a,Nt.StrictMode=i,Nt.Suspense=f,Nt.isAsyncMode=function(g){return _(g)||b(g)===l},Nt.isConcurrentMode=_,Nt.isContextConsumer=function(g){return b(g)===s},Nt.isContextProvider=function(g){return b(g)===o},Nt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Nt.isForwardRef=function(g){return b(g)===c},Nt.isFragment=function(g){return b(g)===n},Nt.isLazy=function(g){return b(g)===y},Nt.isMemo=function(g){return b(g)===p},Nt.isPortal=function(g){return b(g)===r},Nt.isProfiler=function(g){return b(g)===a},Nt.isStrictMode=function(g){return b(g)===i},Nt.isSuspense=function(g){return b(g)===f},Nt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===u||g===a||g===i||g===f||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===y||g.$$typeof===p||g.$$typeof===o||g.$$typeof===s||g.$$typeof===c||g.$$typeof===d||g.$$typeof===v||g.$$typeof===w||g.$$typeof===m)},Nt.typeOf=b,Nt}var Lt={};/** @license React v16.13.1
125
+ */var oA;function E8(){if(oA)return Ut;oA=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(g){if(typeof g=="object"&&g!==null){var w=g.$$typeof;switch(w){case t:switch(g=g.type,g){case l:case u:case n:case a:case i:case f:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case y:case p:case o:return g;default:return w}}case r:return w}}}function _(g){return x(g)===u}return Ut.AsyncMode=l,Ut.ConcurrentMode=u,Ut.ContextConsumer=s,Ut.ContextProvider=o,Ut.Element=t,Ut.ForwardRef=c,Ut.Fragment=n,Ut.Lazy=y,Ut.Memo=p,Ut.Portal=r,Ut.Profiler=a,Ut.StrictMode=i,Ut.Suspense=f,Ut.isAsyncMode=function(g){return _(g)||x(g)===l},Ut.isConcurrentMode=_,Ut.isContextConsumer=function(g){return x(g)===s},Ut.isContextProvider=function(g){return x(g)===o},Ut.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Ut.isForwardRef=function(g){return x(g)===c},Ut.isFragment=function(g){return x(g)===n},Ut.isLazy=function(g){return x(g)===y},Ut.isMemo=function(g){return x(g)===p},Ut.isPortal=function(g){return x(g)===r},Ut.isProfiler=function(g){return x(g)===a},Ut.isStrictMode=function(g){return x(g)===i},Ut.isSuspense=function(g){return x(g)===f},Ut.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===u||g===a||g===i||g===f||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===y||g.$$typeof===p||g.$$typeof===o||g.$$typeof===s||g.$$typeof===c||g.$$typeof===d||g.$$typeof===b||g.$$typeof===v||g.$$typeof===m)},Ut.typeOf=x,Ut}var Wt={};/** @license React v16.13.1
126
126
  * react-is.development.js
127
127
  *
128
128
  * Copyright (c) Facebook, Inc. and its affiliates.
129
129
  *
130
130
  * This source code is licensed under the MIT license found in the
131
131
  * LICENSE file in the root directory of this source tree.
132
- */var sA;function j8(){return sA||(sA=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(D){return typeof D=="string"||typeof D=="function"||D===n||D===u||D===a||D===i||D===f||D===h||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===p||D.$$typeof===o||D.$$typeof===s||D.$$typeof===c||D.$$typeof===d||D.$$typeof===v||D.$$typeof===w||D.$$typeof===m)}function _(D){if(typeof D=="object"&&D!==null){var ot=D.$$typeof;switch(ot){case t:var U=D.type;switch(U){case l:case u:case n:case a:case i:case f:return U;default:var it=U&&U.$$typeof;switch(it){case s:case c:case y:case p:case o:return it;default:return ot}}case r:return ot}}}var g=l,x=u,S=s,A=o,T=t,C=c,P=n,E=y,k=p,$=r,j=a,M=i,I=f,q=!1;function F(D){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(D)||_(D)===l}function N(D){return _(D)===u}function R(D){return _(D)===s}function L(D){return _(D)===o}function W(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function Y(D){return _(D)===c}function z(D){return _(D)===n}function V(D){return _(D)===y}function J(D){return _(D)===p}function K(D){return _(D)===r}function B(D){return _(D)===a}function G(D){return _(D)===i}function Z(D){return _(D)===f}Lt.AsyncMode=g,Lt.ConcurrentMode=x,Lt.ContextConsumer=S,Lt.ContextProvider=A,Lt.Element=T,Lt.ForwardRef=C,Lt.Fragment=P,Lt.Lazy=E,Lt.Memo=k,Lt.Portal=$,Lt.Profiler=j,Lt.StrictMode=M,Lt.Suspense=I,Lt.isAsyncMode=F,Lt.isConcurrentMode=N,Lt.isContextConsumer=R,Lt.isContextProvider=L,Lt.isElement=W,Lt.isForwardRef=Y,Lt.isFragment=z,Lt.isLazy=V,Lt.isMemo=J,Lt.isPortal=K,Lt.isProfiler=B,Lt.isStrictMode=G,Lt.isSuspense=Z,Lt.isValidElementType=b,Lt.typeOf=_})()),Lt}var lA;function tM(){return lA||(lA=1,process.env.NODE_ENV==="production"?Jl.exports=$8():Jl.exports=j8()),Jl.exports}/*
132
+ */var sA;function M8(){return sA||(sA=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(D){return typeof D=="string"||typeof D=="function"||D===n||D===u||D===a||D===i||D===f||D===h||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===p||D.$$typeof===o||D.$$typeof===s||D.$$typeof===c||D.$$typeof===d||D.$$typeof===b||D.$$typeof===v||D.$$typeof===m)}function _(D){if(typeof D=="object"&&D!==null){var rt=D.$$typeof;switch(rt){case t:var W=D.type;switch(W){case l:case u:case n:case a:case i:case f:return W;default:var tt=W&&W.$$typeof;switch(tt){case s:case c:case y:case p:case o:return tt;default:return rt}}case r:return rt}}}var g=l,w=u,S=s,A=o,T=t,M=c,P=n,E=y,C=p,$=r,j=a,k=i,R=f,L=!1;function U(D){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(D)||_(D)===l}function I(D){return _(D)===u}function B(D){return _(D)===s}function q(D){return _(D)===o}function N(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function G(D){return _(D)===c}function F(D){return _(D)===n}function K(D){return _(D)===y}function Z(D){return _(D)===p}function X(D){return _(D)===r}function z(D){return _(D)===a}function Y(D){return _(D)===i}function V(D){return _(D)===f}Wt.AsyncMode=g,Wt.ConcurrentMode=w,Wt.ContextConsumer=S,Wt.ContextProvider=A,Wt.Element=T,Wt.ForwardRef=M,Wt.Fragment=P,Wt.Lazy=E,Wt.Memo=C,Wt.Portal=$,Wt.Profiler=j,Wt.StrictMode=k,Wt.Suspense=R,Wt.isAsyncMode=U,Wt.isConcurrentMode=I,Wt.isContextConsumer=B,Wt.isContextProvider=q,Wt.isElement=N,Wt.isForwardRef=G,Wt.isFragment=F,Wt.isLazy=K,Wt.isMemo=Z,Wt.isPortal=X,Wt.isProfiler=z,Wt.isStrictMode=Y,Wt.isSuspense=V,Wt.isValidElementType=x,Wt.typeOf=_})()),Wt}var lA;function ZM(){return lA||(lA=1,process.env.NODE_ENV==="production"?iu.exports=E8():iu.exports=M8()),iu.exports}/*
133
133
  object-assign
134
134
  (c) Sindre Sorhus
135
135
  @license MIT
136
- */var Tm,uA;function R8(){if(uA)return Tm;uA=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tm=i()?Object.assign:function(a,o){for(var s,l=n(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var h=0;h<u.length;h++)r.call(s,u[h])&&(l[u[h]]=s[u[h]])}}return l},Tm}var Pm,cA;function O0(){if(cA)return Pm;cA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pm=e,Pm}var Em,fA;function eM(){return fA||(fA=1,Em=Function.call.bind(Object.prototype.hasOwnProperty)),Em}var Cm,hA;function D8(){if(hA)return Cm;hA=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=O0(),r={},n=eM();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var h=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[c](o,c,l,s,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Cm=i,Cm}var Mm,pA;function I8(){if(pA)return Mm;pA=1;var e=tM(),t=R8(),r=O0(),n=eM(),i=D8(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Mm=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(N){var R=N&&(u&&N[u]||N[c]);if(typeof R=="function")return R}var h="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:w(),arrayOf:b,element:_(),elementType:g(),instanceOf:x,node:C(),objectOf:A,oneOf:S,oneOfType:T,shape:E,exact:k};function y(N,R){return N===R?N!==0||1/N===1/R:N!==N&&R!==R}function m(N,R){this.message=N,this.data=R&&typeof R=="object"?R:{},this.stack=""}m.prototype=Error.prototype;function d(N){if(process.env.NODE_ENV!=="production")var R={},L=0;function W(z,V,J,K,B,G,Z){if(K=K||h,G=G||J,Z!==r){if(l){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ot=K+":"+J;!R[ot]&&L<3&&(a("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[ot]=!0,L++)}}return V[J]==null?z?V[J]===null?new m("The "+B+" `"+G+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new m("The "+B+" `"+G+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:N(V,J,K,B,G)}var Y=W.bind(null,!1);return Y.isRequired=W.bind(null,!0),Y}function v(N){function R(L,W,Y,z,V,J){var K=L[W],B=M(K);if(B!==N){var G=I(K);return new m("Invalid "+z+" `"+V+"` of type "+("`"+G+"` supplied to `"+Y+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return d(R)}function w(){return d(o)}function b(N){function R(L,W,Y,z,V){if(typeof N!="function")return new m("Property `"+V+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var J=L[W];if(!Array.isArray(J)){var K=M(J);return new m("Invalid "+z+" `"+V+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected an array."))}for(var B=0;B<J.length;B++){var G=N(J,B,Y,z,V+"["+B+"]",r);if(G instanceof Error)return G}return null}return d(R)}function _(){function N(R,L,W,Y,z){var V=R[L];if(!s(V)){var J=M(V);return new m("Invalid "+Y+" `"+z+"` of type "+("`"+J+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return d(N)}function g(){function N(R,L,W,Y,z){var V=R[L];if(!e.isValidElementType(V)){var J=M(V);return new m("Invalid "+Y+" `"+z+"` of type "+("`"+J+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return d(N)}function x(N){function R(L,W,Y,z,V){if(!(L[W]instanceof N)){var J=N.name||h,K=F(L[W]);return new m("Invalid "+z+" `"+V+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected ")+("instance of `"+J+"`."))}return null}return d(R)}function S(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function R(L,W,Y,z,V){for(var J=L[W],K=0;K<N.length;K++)if(y(J,N[K]))return null;var B=JSON.stringify(N,function(Z,D){var ot=I(D);return ot==="symbol"?String(D):D});return new m("Invalid "+z+" `"+V+"` of value `"+String(J)+"` "+("supplied to `"+Y+"`, expected one of "+B+"."))}return d(R)}function A(N){function R(L,W,Y,z,V){if(typeof N!="function")return new m("Property `"+V+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var J=L[W],K=M(J);if(K!=="object")return new m("Invalid "+z+" `"+V+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected an object."));for(var B in J)if(n(J,B)){var G=N(J,B,Y,z,V+"."+B,r);if(G instanceof Error)return G}return null}return d(R)}function T(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var R=0;R<N.length;R++){var L=N[R];if(typeof L!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(L)+" at index "+R+"."),o}function W(Y,z,V,J,K){for(var B=[],G=0;G<N.length;G++){var Z=N[G],D=Z(Y,z,V,J,K,r);if(D==null)return null;D.data&&n(D.data,"expectedType")&&B.push(D.data.expectedType)}var ot=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new m("Invalid "+J+" `"+K+"` supplied to "+("`"+V+"`"+ot+"."))}return d(W)}function C(){function N(R,L,W,Y,z){return $(R[L])?null:new m("Invalid "+Y+" `"+z+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return d(N)}function P(N,R,L,W,Y){return new m((N||"React class")+": "+R+" type `"+L+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function E(N){function R(L,W,Y,z,V){var J=L[W],K=M(J);if(K!=="object")return new m("Invalid "+z+" `"+V+"` of type `"+K+"` "+("supplied to `"+Y+"`, expected `object`."));for(var B in N){var G=N[B];if(typeof G!="function")return P(Y,z,V,B,I(G));var Z=G(J,B,Y,z,V+"."+B,r);if(Z)return Z}return null}return d(R)}function k(N){function R(L,W,Y,z,V){var J=L[W],K=M(J);if(K!=="object")return new m("Invalid "+z+" `"+V+"` of type `"+K+"` "+("supplied to `"+Y+"`, expected `object`."));var B=t({},L[W],N);for(var G in B){var Z=N[G];if(n(N,G)&&typeof Z!="function")return P(Y,z,V,G,I(Z));if(!Z)return new m("Invalid "+z+" `"+V+"` key `"+G+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(L[W],null," ")+`
137
- Valid keys: `+JSON.stringify(Object.keys(N),null," "));var D=Z(J,G,Y,z,V+"."+G,r);if(D)return D}return null}return d(R)}function $(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every($);if(N===null||s(N))return!0;var R=f(N);if(R){var L=R.call(N),W;if(R!==N.entries){for(;!(W=L.next()).done;)if(!$(W.value))return!1}else for(;!(W=L.next()).done;){var Y=W.value;if(Y&&!$(Y[1]))return!1}}else return!1;return!0;default:return!1}}function j(N,R){return N==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function M(N){var R=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":j(R,N)?"symbol":R}function I(N){if(typeof N>"u"||N===null)return""+N;var R=M(N);if(R==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return R}function q(N){var R=I(N);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function F(N){return!N.constructor||!N.constructor.name?h:N.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Mm}var km,dA;function N8(){if(dA)return km;dA=1;var e=O0();function t(){}function r(){}return r.resetWarningCache=t,km=function(){function n(o,s,l,u,c,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},km}var mA;function L8(){if(mA)return Zl.exports;if(mA=1,process.env.NODE_ENV!=="production"){var e=tM(),t=!0;Zl.exports=I8()(e.isElement,t)}else Zl.exports=N8()();return Zl.exports}var B8=L8();const Bt=qt(B8);var q8=Object.getOwnPropertyNames,F8=Object.getOwnPropertySymbols,z8=Object.prototype.hasOwnProperty;function yA(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Ql(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,i);return a.delete(r),a.delete(n),l}}function U8(e){return e!=null?e[Symbol.toStringTag]:void 0}function gA(e){return q8(e).concat(F8(e))}var W8=Object.hasOwn||(function(e,t){return z8.call(e,t)});function ma(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var H8="__v",G8="__o",K8="_owner",vA=Object.getOwnPropertyDescriptor,bA=Object.keys;function Y8(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function X8(e,t){return ma(e.getTime(),t.getTime())}function V8(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Z8(e,t){return e===t}function _A(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,l=0;(o=a.next())&&!o.done;){for(var u=t.entries(),c=!1,f=0;(s=u.next())&&!s.done;){if(i[f]){f++;continue}var h=o.value,p=s.value;if(r.equals(h[0],p[0],l,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}var J8=ma;function Q8(e,t,r){var n=bA(e),i=n.length;if(bA(t).length!==i)return!1;for(;i-- >0;)if(!rM(e,t,r,n[i]))return!1;return!0}function Jo(e,t,r){var n=gA(e),i=n.length;if(gA(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!rM(e,t,r,a)||(o=vA(e,a),s=vA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function tH(e,t){return ma(e.valueOf(),t.valueOf())}function eH(e,t){return e.source===t.source&&e.flags===t.flags}function xA(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var l=t.values(),u=!1,c=0;(s=l.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function rH(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function nH(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function rM(e,t,r,n){return(n===K8||n===G8||n===H8)&&(e.$$typeof||t.$$typeof)?!0:W8(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var iH="[object Arguments]",aH="[object Boolean]",oH="[object Date]",sH="[object Error]",lH="[object Map]",uH="[object Number]",cH="[object Object]",fH="[object RegExp]",hH="[object Set]",pH="[object String]",dH="[object URL]",mH=Array.isArray,wA=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,SA=Object.assign,yH=Object.prototype.toString.call.bind(Object.prototype.toString);function gH(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators;return function(m,d,v){if(m===d)return!0;if(m==null||d==null)return!1;var w=typeof m;if(w!==typeof d)return!1;if(w!=="object")return w==="number"?o(m,d,v):w==="function"?i(m,d,v):!1;var b=m.constructor;if(b!==d.constructor)return!1;if(b===Object)return s(m,d,v);if(mH(m))return t(m,d,v);if(wA!=null&&wA(m))return f(m,d,v);if(b===Date)return r(m,d,v);if(b===RegExp)return u(m,d,v);if(b===Map)return a(m,d,v);if(b===Set)return c(m,d,v);var _=yH(m);if(_===oH)return r(m,d,v);if(_===fH)return u(m,d,v);if(_===lH)return a(m,d,v);if(_===hH)return c(m,d,v);if(_===cH)return typeof m.then!="function"&&typeof d.then!="function"&&s(m,d,v);if(_===dH)return h(m,d,v);if(_===sH)return n(m,d,v);if(_===iH)return s(m,d,v);if(_===aH||_===uH||_===pH)return l(m,d,v);if(p){var g=p[_];if(!g){var x=U8(m);x&&(g=p[x])}if(g)return g(m,d,v)}return!1}}function vH(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Jo:Y8,areDatesEqual:X8,areErrorsEqual:V8,areFunctionsEqual:Z8,areMapsEqual:n?yA(_A,Jo):_A,areNumbersEqual:J8,areObjectsEqual:n?Jo:Q8,arePrimitiveWrappersEqual:tH,areRegExpsEqual:eH,areSetsEqual:n?yA(xA,Jo):xA,areTypedArraysEqual:n?Jo:rH,areUrlsEqual:nH,unknownTagComparators:void 0};if(r&&(i=SA({},i,r(i))),t){var a=Ql(i.areArraysEqual),o=Ql(i.areMapsEqual),s=Ql(i.areObjectsEqual),l=Ql(i.areSetsEqual);i=SA({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function bH(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function _H(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,h=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return r(l,u,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return r(l,u,o)}}var xH=xi();xi({strict:!0});xi({circular:!0});xi({circular:!0,strict:!0});xi({createInternalComparator:function(){return ma}});xi({strict:!0,createInternalComparator:function(){return ma}});xi({circular:!0,createInternalComparator:function(){return ma}});xi({circular:!0,createInternalComparator:function(){return ma},strict:!0});function xi(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=vH(e),l=gH(s),u=n?n(l):bH(l);return _H({circular:r,comparator:l,createState:i,equals:u,strict:o})}function wH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function AA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):wH(i)};requestAnimationFrame(n)}function yg(e){"@babel/helpers - typeof";return yg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yg(e)}function SH(e){return PH(e)||TH(e)||OH(e)||AH()}function AH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
138
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OH(e,t){if(e){if(typeof e=="string")return OA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OA(e,t)}}function OA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function TH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PH(e){if(Array.isArray(e))return e}function EH(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=SH(o),l=s[0],u=s.slice(1);if(typeof l=="number"){AA(i.bind(null,u),l);return}i(l),AA(i.bind(null,u));return}yg(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}function TA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(r),!0).forEach(function(n){nM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nM(e,t,r){return t=CH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CH(e){var t=MH(e,"string");return ol(t)==="symbol"?t:String(t)}function MH(e,t){if(ol(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ol(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kH=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},$H=function(t){return t},jH=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},xs=function(t,r){return Object.keys(r).reduce(function(n,i){return PA(PA({},n),{},nM({},i,t(i,r[i])))},{})},EA=function(t,r,n){return t.map(function(i){return"".concat(jH(i)," ").concat(r,"ms ").concat(n)}).join(",")},RH=process.env.NODE_ENV!=="production",Zu=function(t,r,n,i,a,o,s,l){if(RH&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,l],c=0;console.warn(r.replace(/%s/g,function(){return u[c++]}))}};function DH(e,t){return LH(e)||NH(e,t)||iM(e,t)||IH()}function IH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
139
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function LH(e){if(Array.isArray(e))return e}function BH(e){return zH(e)||FH(e)||iM(e)||qH()}function qH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
140
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iM(e,t){if(e){if(typeof e=="string")return gg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gg(e,t)}}function FH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zH(e){if(Array.isArray(e))return gg(e)}function gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ju=1e-4,aM=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},oM=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},CA=function(t,r){return function(n){var i=aM(t,r);return oM(i,n)}},UH=function(t,r){return function(n){var i=aM(t,r),a=[].concat(BH(i.map(function(o,s){return o*s}).slice(1)),[0]);return oM(a,n)}},MA=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),c=DH(u,4);i=c[0],a=c[1],o=c[2],s=c[3]}else Zu(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Zu([i,o,a,s].every(function(d){return typeof d=="number"&&d>=0&&d<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=CA(i,o),h=CA(a,s),p=UH(i,o),y=function(v){return v>1?1:v<0?0:v},m=function(v){for(var w=v>1?1:v,b=w,_=0;_<8;++_){var g=f(b)-w,x=p(b);if(Math.abs(g-w)<Ju||x<Ju)return h(b);b=y(b-g/x)}return h(b)};return m.isStepper=!1,m},WH=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(c,f,h){var p=-(c-f)*n,y=h*a,m=h+(p-y)*s/1e3,d=h*s/1e3+c;return Math.abs(d-f)<Ju&&Math.abs(m)<Ju?[f,0]:[d,m]};return l.isStepper=!0,l.dt=s,l},HH=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return MA(i);case"spring":return WH();default:if(i.split("(")[0]==="cubic-bezier")return MA(i);Zu(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(Zu(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function kA(e){return YH(e)||KH(e)||sM(e)||GH()}function GH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YH(e){if(Array.isArray(e))return bg(e)}function $A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(r),!0).forEach(function(n){vg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$A(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vg(e,t,r){return t=XH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XH(e){var t=VH(e,"string");return sl(t)==="symbol"?t:String(t)}function VH(e,t){if(sl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZH(e,t){return tG(e)||QH(e,t)||sM(e,t)||JH()}function JH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
142
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sM(e,t){if(e){if(typeof e=="string")return bg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bg(e,t)}}function bg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function QH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function tG(e){if(Array.isArray(e))return e}var Qu=function(t,r,n){return t+(r-t)*n},_g=function(t){var r=t.from,n=t.to;return r!==n},eG=function e(t,r,n){var i=xs(function(a,o){if(_g(o)){var s=t(o.from,o.to,o.velocity),l=ZH(s,2),u=l[0],c=l[1];return ke(ke({},o),{},{from:u,velocity:c})}return o},r);return n<1?xs(function(a,o){return _g(o)?ke(ke({},o),{},{velocity:Qu(o.velocity,i[a].velocity,n),from:Qu(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const rG=(function(e,t,r,n,i){var a=kH(e,t),o=a.reduce(function(d,v){return ke(ke({},d),{},vg({},v,[e[v],t[v]]))},{}),s=a.reduce(function(d,v){return ke(ke({},d),{},vg({},v,{from:e[v],velocity:0,to:t[v]}))},{}),l=-1,u,c,f=function(){return null},h=function(){return xs(function(v,w){return w.from},s)},p=function(){return!Object.values(s).filter(_g).length},y=function(v){u||(u=v);var w=v-u,b=w/r.dt;s=eG(r,s,b),i(ke(ke(ke({},e),t),h())),u=v,p()||(l=requestAnimationFrame(f))},m=function(v){c||(c=v);var w=(v-c)/n,b=xs(function(g,x){return Qu.apply(void 0,kA(x).concat([r(w)]))},o);if(i(ke(ke(ke({},e),t),b)),w<1)l=requestAnimationFrame(f);else{var _=xs(function(g,x){return Qu.apply(void 0,kA(x).concat([r(1)]))},o);i(ke(ke(ke({},e),t),_))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}var nG=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function iG(e,t){if(e==null)return{};var r=aG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function $m(e){return uG(e)||lG(e)||sG(e)||oG()}function oG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
143
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sG(e,t){if(e){if(typeof e=="string")return xg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xg(e,t)}}function lG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uG(e){if(Array.isArray(e))return xg(e)}function xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jA(Object(r),!0).forEach(function(n){ls(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ls(e,t,r){return t=lM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lM(n.key),n)}}function hG(e,t,r){return t&&fG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lM(e){var t=pG(e,"string");return so(t)==="symbol"?t:String(t)}function pG(e,t){if(so(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(so(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wg(e,t)}function wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wg(e,t)}function mG(e){var t=yG();return function(){var n=tc(e),i;if(t){var a=tc(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Sg(this,i)}}function Sg(e,t){if(t&&(so(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ag(e)}function Ag(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tc(e)}var rn=(function(e){dG(r,e);var t=mG(r);function r(n,i){var a;cG(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ag(a)),a.changeStyle=a.changeStyle.bind(Ag(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Sg(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Sg(a);a.state={style:l?ls({},l,u):u}}else a.state={style:{}};return a}return hG(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,h=this.state.style;if(s){if(!o){var p={style:l?ls({},l,c):c};this.state&&h&&(l&&h[l]!==c||!l&&h!==c)&&this.setState(p);return}if(!(xH(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||u?f:i.to;if(this.state&&h){var d={style:l?ls({},l,m):m};(l&&h[l]!==m||!l&&h!==m)&&this.setState(d)}this.runAnimation(Xr(Xr({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=rG(o,s,HH(u),l,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,c,y,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,h=f===void 0?0:f,p=function(m,d,v){if(v===0)return m;var w=d.duration,b=d.easing,_=b===void 0?"ease":b,g=d.style,x=d.properties,S=d.onAnimationEnd,A=v>0?o[v-1]:d,T=x||Object.keys(g);if(typeof _=="function"||_==="spring")return[].concat($m(m),[a.runJSAnimation.bind(a,{from:A.style,to:g,duration:w,easing:_}),w]);var C=EA(T,w,_),P=Xr(Xr(Xr({},A.style),g),{},{transition:C});return[].concat($m(m),[P,w,S]).filter($H)};return this.manager.start([l].concat($m(o.reduce(p,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=EH());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?ls({},s,l):l,d=EA(Object.keys(m),o,u);y.start([c,a,Xr(Xr({},m),{},{transition:d}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=iG(i,nG),u=O.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||u===0||o<=0)return a;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,v=y.className,w=O.cloneElement(p,Xr(Xr({},l),{},{style:Xr(Xr({},d),c),className:v}));return w};return u===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(h){return f(h)}))}}]),r})(O.PureComponent);rn.displayName="Animate";rn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};rn.propTypes={from:Bt.oneOfType([Bt.object,Bt.string]),to:Bt.oneOfType([Bt.object,Bt.string]),attributeName:Bt.string,duration:Bt.number,begin:Bt.number,easing:Bt.oneOfType([Bt.string,Bt.func]),steps:Bt.arrayOf(Bt.shape({duration:Bt.number.isRequired,style:Bt.object.isRequired,easing:Bt.oneOfType([Bt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Bt.func]),properties:Bt.arrayOf("string"),onAnimationEnd:Bt.func})),children:Bt.oneOfType([Bt.node,Bt.func]),isActive:Bt.bool,canBegin:Bt.bool,onAnimationEnd:Bt.func,shouldReAnimate:Bt.bool,onAnimationStart:Bt.func,onAnimationReStart:Bt.func};function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec.apply(this,arguments)}function gG(e,t){return xG(e)||_G(e,t)||bG(e,t)||vG()}function vG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bG(e,t){if(e){if(typeof e=="string")return RA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RA(e,t)}}function RA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _G(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function xG(e){if(Array.isArray(e))return e}function DA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function IA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DA(Object(r),!0).forEach(function(n){wG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wG(e,t,r){return t=SG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SG(e){var t=AG(e,"string");return ll(t)=="symbol"?t:t+""}function AG(e,t){if(ll(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ll(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NA=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=a[h]>o?o:a[h];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
136
+ */var Mm,uA;function C8(){if(uA)return Mm;uA=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Mm=i()?Object.assign:function(a,o){for(var s,l=n(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var h=0;h<u.length;h++)r.call(s,u[h])&&(l[u[h]]=s[u[h]])}}return l},Mm}var Cm,cA;function M0(){if(cA)return Cm;cA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cm=e,Cm}var km,fA;function JM(){return fA||(fA=1,km=Function.call.bind(Object.prototype.hasOwnProperty)),km}var $m,hA;function k8(){if(hA)return $m;hA=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=M0(),r={},n=JM();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var h=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[c](o,c,l,s,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},$m=i,$m}var jm,pA;function $8(){if(pA)return jm;pA=1;var e=ZM(),t=C8(),r=M0(),n=JM(),i=k8(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return jm=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(I){var B=I&&(u&&I[u]||I[c]);if(typeof B=="function")return B}var h="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:v(),arrayOf:x,element:_(),elementType:g(),instanceOf:w,node:M(),objectOf:A,oneOf:S,oneOfType:T,shape:E,exact:C};function y(I,B){return I===B?I!==0||1/I===1/B:I!==I&&B!==B}function m(I,B){this.message=I,this.data=B&&typeof B=="object"?B:{},this.stack=""}m.prototype=Error.prototype;function d(I){if(process.env.NODE_ENV!=="production")var B={},q=0;function N(F,K,Z,X,z,Y,V){if(X=X||h,Y=Y||Z,V!==r){if(l){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var rt=X+":"+Z;!B[rt]&&q<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+X+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),B[rt]=!0,q++)}}return K[Z]==null?F?K[Z]===null?new m("The "+z+" `"+Y+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new m("The "+z+" `"+Y+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:I(K,Z,X,z,Y)}var G=N.bind(null,!1);return G.isRequired=N.bind(null,!0),G}function b(I){function B(q,N,G,F,K,Z){var X=q[N],z=k(X);if(z!==I){var Y=R(X);return new m("Invalid "+F+" `"+K+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return d(B)}function v(){return d(o)}function x(I){function B(q,N,G,F,K){if(typeof I!="function")return new m("Property `"+K+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var Z=q[N];if(!Array.isArray(Z)){var X=k(Z);return new m("Invalid "+F+" `"+K+"` of type "+("`"+X+"` supplied to `"+G+"`, expected an array."))}for(var z=0;z<Z.length;z++){var Y=I(Z,z,G,F,K+"["+z+"]",r);if(Y instanceof Error)return Y}return null}return d(B)}function _(){function I(B,q,N,G,F){var K=B[q];if(!s(K)){var Z=k(K);return new m("Invalid "+G+" `"+F+"` of type "+("`"+Z+"` supplied to `"+N+"`, expected a single ReactElement."))}return null}return d(I)}function g(){function I(B,q,N,G,F){var K=B[q];if(!e.isValidElementType(K)){var Z=k(K);return new m("Invalid "+G+" `"+F+"` of type "+("`"+Z+"` supplied to `"+N+"`, expected a single ReactElement type."))}return null}return d(I)}function w(I){function B(q,N,G,F,K){if(!(q[N]instanceof I)){var Z=I.name||h,X=U(q[N]);return new m("Invalid "+F+" `"+K+"` of type "+("`"+X+"` supplied to `"+G+"`, expected ")+("instance of `"+Z+"`."))}return null}return d(B)}function S(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function B(q,N,G,F,K){for(var Z=q[N],X=0;X<I.length;X++)if(y(Z,I[X]))return null;var z=JSON.stringify(I,function(V,D){var rt=R(D);return rt==="symbol"?String(D):D});return new m("Invalid "+F+" `"+K+"` of value `"+String(Z)+"` "+("supplied to `"+G+"`, expected one of "+z+"."))}return d(B)}function A(I){function B(q,N,G,F,K){if(typeof I!="function")return new m("Property `"+K+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var Z=q[N],X=k(Z);if(X!=="object")return new m("Invalid "+F+" `"+K+"` of type "+("`"+X+"` supplied to `"+G+"`, expected an object."));for(var z in Z)if(n(Z,z)){var Y=I(Z,z,G,F,K+"."+z,r);if(Y instanceof Error)return Y}return null}return d(B)}function T(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var B=0;B<I.length;B++){var q=I[B];if(typeof q!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(q)+" at index "+B+"."),o}function N(G,F,K,Z,X){for(var z=[],Y=0;Y<I.length;Y++){var V=I[Y],D=V(G,F,K,Z,X,r);if(D==null)return null;D.data&&n(D.data,"expectedType")&&z.push(D.data.expectedType)}var rt=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new m("Invalid "+Z+" `"+X+"` supplied to "+("`"+K+"`"+rt+"."))}return d(N)}function M(){function I(B,q,N,G,F){return $(B[q])?null:new m("Invalid "+G+" `"+F+"` supplied to "+("`"+N+"`, expected a ReactNode."))}return d(I)}function P(I,B,q,N,G){return new m((I||"React class")+": "+B+" type `"+q+"."+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function E(I){function B(q,N,G,F,K){var Z=q[N],X=k(Z);if(X!=="object")return new m("Invalid "+F+" `"+K+"` of type `"+X+"` "+("supplied to `"+G+"`, expected `object`."));for(var z in I){var Y=I[z];if(typeof Y!="function")return P(G,F,K,z,R(Y));var V=Y(Z,z,G,F,K+"."+z,r);if(V)return V}return null}return d(B)}function C(I){function B(q,N,G,F,K){var Z=q[N],X=k(Z);if(X!=="object")return new m("Invalid "+F+" `"+K+"` of type `"+X+"` "+("supplied to `"+G+"`, expected `object`."));var z=t({},q[N],I);for(var Y in z){var V=I[Y];if(n(I,Y)&&typeof V!="function")return P(G,F,K,Y,R(V));if(!V)return new m("Invalid "+F+" `"+K+"` key `"+Y+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(q[N],null," ")+`
137
+ Valid keys: `+JSON.stringify(Object.keys(I),null," "));var D=V(Z,Y,G,F,K+"."+Y,r);if(D)return D}return null}return d(B)}function $(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every($);if(I===null||s(I))return!0;var B=f(I);if(B){var q=B.call(I),N;if(B!==I.entries){for(;!(N=q.next()).done;)if(!$(N.value))return!1}else for(;!(N=q.next()).done;){var G=N.value;if(G&&!$(G[1]))return!1}}else return!1;return!0;default:return!1}}function j(I,B){return I==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function k(I){var B=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":j(B,I)?"symbol":B}function R(I){if(typeof I>"u"||I===null)return""+I;var B=k(I);if(B==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return B}function L(I){var B=R(I);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function U(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},jm}var Rm,dA;function j8(){if(dA)return Rm;dA=1;var e=M0();function t(){}function r(){}return r.resetWarningCache=t,Rm=function(){function n(o,s,l,u,c,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Rm}var mA;function R8(){if(mA)return nu.exports;if(mA=1,process.env.NODE_ENV!=="production"){var e=ZM(),t=!0;nu.exports=$8()(e.isElement,t)}else nu.exports=j8()();return nu.exports}var D8=R8();const Ht=Gt(D8);var I8=Object.getOwnPropertyNames,N8=Object.getOwnPropertySymbols,L8=Object.prototype.hasOwnProperty;function yA(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function au(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,i);return a.delete(r),a.delete(n),l}}function B8(e){return e!=null?e[Symbol.toStringTag]:void 0}function gA(e){return I8(e).concat(N8(e))}var q8=Object.hasOwn||(function(e,t){return L8.call(e,t)});function Sa(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var F8="__v",z8="__o",U8="_owner",vA=Object.getOwnPropertyDescriptor,bA=Object.keys;function W8(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function H8(e,t){return Sa(e.getTime(),t.getTime())}function G8(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function K8(e,t){return e===t}function xA(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,l=0;(o=a.next())&&!o.done;){for(var u=t.entries(),c=!1,f=0;(s=u.next())&&!s.done;){if(i[f]){f++;continue}var h=o.value,p=s.value;if(r.equals(h[0],p[0],l,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}var X8=Sa;function Y8(e,t,r){var n=bA(e),i=n.length;if(bA(t).length!==i)return!1;for(;i-- >0;)if(!QM(e,t,r,n[i]))return!1;return!0}function os(e,t,r){var n=gA(e),i=n.length;if(gA(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!QM(e,t,r,a)||(o=vA(e,a),s=vA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function V8(e,t){return Sa(e.valueOf(),t.valueOf())}function Z8(e,t){return e.source===t.source&&e.flags===t.flags}function _A(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var l=t.values(),u=!1,c=0;(s=l.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function J8(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function Q8(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function QM(e,t,r,n){return(n===U8||n===z8||n===F8)&&(e.$$typeof||t.$$typeof)?!0:q8(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var tH="[object Arguments]",eH="[object Boolean]",rH="[object Date]",nH="[object Error]",iH="[object Map]",aH="[object Number]",oH="[object Object]",sH="[object RegExp]",lH="[object Set]",uH="[object String]",cH="[object URL]",fH=Array.isArray,wA=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,SA=Object.assign,hH=Object.prototype.toString.call.bind(Object.prototype.toString);function pH(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators;return function(m,d,b){if(m===d)return!0;if(m==null||d==null)return!1;var v=typeof m;if(v!==typeof d)return!1;if(v!=="object")return v==="number"?o(m,d,b):v==="function"?i(m,d,b):!1;var x=m.constructor;if(x!==d.constructor)return!1;if(x===Object)return s(m,d,b);if(fH(m))return t(m,d,b);if(wA!=null&&wA(m))return f(m,d,b);if(x===Date)return r(m,d,b);if(x===RegExp)return u(m,d,b);if(x===Map)return a(m,d,b);if(x===Set)return c(m,d,b);var _=hH(m);if(_===rH)return r(m,d,b);if(_===sH)return u(m,d,b);if(_===iH)return a(m,d,b);if(_===lH)return c(m,d,b);if(_===oH)return typeof m.then!="function"&&typeof d.then!="function"&&s(m,d,b);if(_===cH)return h(m,d,b);if(_===nH)return n(m,d,b);if(_===tH)return s(m,d,b);if(_===eH||_===aH||_===uH)return l(m,d,b);if(p){var g=p[_];if(!g){var w=B8(m);w&&(g=p[w])}if(g)return g(m,d,b)}return!1}}function dH(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?os:W8,areDatesEqual:H8,areErrorsEqual:G8,areFunctionsEqual:K8,areMapsEqual:n?yA(xA,os):xA,areNumbersEqual:X8,areObjectsEqual:n?os:Y8,arePrimitiveWrappersEqual:V8,areRegExpsEqual:Z8,areSetsEqual:n?yA(_A,os):_A,areTypedArraysEqual:n?os:J8,areUrlsEqual:Q8,unknownTagComparators:void 0};if(r&&(i=SA({},i,r(i))),t){var a=au(i.areArraysEqual),o=au(i.areMapsEqual),s=au(i.areObjectsEqual),l=au(i.areSetsEqual);i=SA({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function mH(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function yH(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,h=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return r(l,u,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return r(l,u,o)}}var gH=Ci();Ci({strict:!0});Ci({circular:!0});Ci({circular:!0,strict:!0});Ci({createInternalComparator:function(){return Sa}});Ci({strict:!0,createInternalComparator:function(){return Sa}});Ci({circular:!0,createInternalComparator:function(){return Sa}});Ci({circular:!0,createInternalComparator:function(){return Sa},strict:!0});function Ci(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=dH(e),l=pH(s),u=n?n(l):mH(l);return yH({circular:r,comparator:l,createState:i,equals:u,strict:o})}function vH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function AA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):vH(i)};requestAnimationFrame(n)}function bg(e){"@babel/helpers - typeof";return bg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bg(e)}function bH(e){return SH(e)||wH(e)||_H(e)||xH()}function xH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
138
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _H(e,t){if(e){if(typeof e=="string")return OA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OA(e,t)}}function OA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SH(e){if(Array.isArray(e))return e}function AH(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=bH(o),l=s[0],u=s.slice(1);if(typeof l=="number"){AA(i.bind(null,u),l);return}i(l),AA(i.bind(null,u));return}bg(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function TA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(r),!0).forEach(function(n){tC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tC(e,t,r){return t=OH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OH(e){var t=TH(e,"string");return pl(t)==="symbol"?t:String(t)}function TH(e,t){if(pl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PH=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},EH=function(t){return t},MH=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ms=function(t,r){return Object.keys(r).reduce(function(n,i){return PA(PA({},n),{},tC({},i,t(i,r[i])))},{})},EA=function(t,r,n){return t.map(function(i){return"".concat(MH(i)," ").concat(r,"ms ").concat(n)}).join(",")},CH=process.env.NODE_ENV!=="production",rc=function(t,r,n,i,a,o,s,l){if(CH&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,l],c=0;console.warn(r.replace(/%s/g,function(){return u[c++]}))}};function kH(e,t){return RH(e)||jH(e,t)||eC(e,t)||$H()}function $H(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
139
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function RH(e){if(Array.isArray(e))return e}function DH(e){return LH(e)||NH(e)||eC(e)||IH()}function IH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
140
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eC(e,t){if(e){if(typeof e=="string")return xg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xg(e,t)}}function NH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LH(e){if(Array.isArray(e))return xg(e)}function xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var nc=1e-4,rC=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},nC=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},MA=function(t,r){return function(n){var i=rC(t,r);return nC(i,n)}},BH=function(t,r){return function(n){var i=rC(t,r),a=[].concat(DH(i.map(function(o,s){return o*s}).slice(1)),[0]);return nC(a,n)}},CA=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),c=kH(u,4);i=c[0],a=c[1],o=c[2],s=c[3]}else rc(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}rc([i,o,a,s].every(function(d){return typeof d=="number"&&d>=0&&d<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=MA(i,o),h=MA(a,s),p=BH(i,o),y=function(b){return b>1?1:b<0?0:b},m=function(b){for(var v=b>1?1:b,x=v,_=0;_<8;++_){var g=f(x)-v,w=p(x);if(Math.abs(g-v)<nc||w<nc)return h(x);x=y(x-g/w)}return h(x)};return m.isStepper=!1,m},qH=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(c,f,h){var p=-(c-f)*n,y=h*a,m=h+(p-y)*s/1e3,d=h*s/1e3+c;return Math.abs(d-f)<nc&&Math.abs(m)<nc?[f,0]:[d,m]};return l.isStepper=!0,l.dt=s,l},FH=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return CA(i);case"spring":return qH();default:if(i.split("(")[0]==="cubic-bezier")return CA(i);rc(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(rc(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function kA(e){return WH(e)||UH(e)||iC(e)||zH()}function zH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WH(e){if(Array.isArray(e))return wg(e)}function $A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(r),!0).forEach(function(n){_g(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$A(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _g(e,t,r){return t=HH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HH(e){var t=GH(e,"string");return dl(t)==="symbol"?t:String(t)}function GH(e,t){if(dl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KH(e,t){return VH(e)||YH(e,t)||iC(e,t)||XH()}function XH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
142
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iC(e,t){if(e){if(typeof e=="string")return wg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wg(e,t)}}function wg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function YH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function VH(e){if(Array.isArray(e))return e}var ic=function(t,r,n){return t+(r-t)*n},Sg=function(t){var r=t.from,n=t.to;return r!==n},ZH=function e(t,r,n){var i=Ms(function(a,o){if(Sg(o)){var s=t(o.from,o.to,o.velocity),l=KH(s,2),u=l[0],c=l[1];return Be(Be({},o),{},{from:u,velocity:c})}return o},r);return n<1?Ms(function(a,o){return Sg(o)?Be(Be({},o),{},{velocity:ic(o.velocity,i[a].velocity,n),from:ic(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const JH=(function(e,t,r,n,i){var a=PH(e,t),o=a.reduce(function(d,b){return Be(Be({},d),{},_g({},b,[e[b],t[b]]))},{}),s=a.reduce(function(d,b){return Be(Be({},d),{},_g({},b,{from:e[b],velocity:0,to:t[b]}))},{}),l=-1,u,c,f=function(){return null},h=function(){return Ms(function(b,v){return v.from},s)},p=function(){return!Object.values(s).filter(Sg).length},y=function(b){u||(u=b);var v=b-u,x=v/r.dt;s=ZH(r,s,x),i(Be(Be(Be({},e),t),h())),u=b,p()||(l=requestAnimationFrame(f))},m=function(b){c||(c=b);var v=(b-c)/n,x=Ms(function(g,w){return ic.apply(void 0,kA(w).concat([r(v)]))},o);if(i(Be(Be(Be({},e),t),x)),v<1)l=requestAnimationFrame(f);else{var _=Ms(function(g,w){return ic.apply(void 0,kA(w).concat([r(1)]))},o);i(Be(Be(Be({},e),t),_))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}var QH=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function tG(e,t){if(e==null)return{};var r=eG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Dm(e){return aG(e)||iG(e)||nG(e)||rG()}function rG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nG(e,t){if(e){if(typeof e=="string")return Ag(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ag(e,t)}}function iG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aG(e){if(Array.isArray(e))return Ag(e)}function Ag(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jA(Object(r),!0).forEach(function(n){ys(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ys(e,t,r){return t=aC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aC(n.key),n)}}function lG(e,t,r){return t&&sG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aC(e){var t=uG(e,"string");return yo(t)==="symbol"?t:String(t)}function uG(e,t){if(yo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Og(e,t)}function Og(e,t){return Og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Og(e,t)}function fG(e){var t=hG();return function(){var n=ac(e),i;if(t){var a=ac(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Tg(this,i)}}function Tg(e,t){if(t&&(yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pg(e)}function Pg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ac(e){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ac(e)}var sn=(function(e){cG(r,e);var t=fG(r);function r(n,i){var a;oG(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Pg(a)),a.changeStyle=a.changeStyle.bind(Pg(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Tg(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Tg(a);a.state={style:l?ys({},l,u):u}}else a.state={style:{}};return a}return lG(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,h=this.state.style;if(s){if(!o){var p={style:l?ys({},l,c):c};this.state&&h&&(l&&h[l]!==c||!l&&h!==c)&&this.setState(p);return}if(!(gH(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||u?f:i.to;if(this.state&&h){var d={style:l?ys({},l,m):m};(l&&h[l]!==m||!l&&h!==m)&&this.setState(d)}this.runAnimation(Qr(Qr({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=JH(o,s,FH(u),l,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,c,y,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,h=f===void 0?0:f,p=function(m,d,b){if(b===0)return m;var v=d.duration,x=d.easing,_=x===void 0?"ease":x,g=d.style,w=d.properties,S=d.onAnimationEnd,A=b>0?o[b-1]:d,T=w||Object.keys(g);if(typeof _=="function"||_==="spring")return[].concat(Dm(m),[a.runJSAnimation.bind(a,{from:A.style,to:g,duration:v,easing:_}),v]);var M=EA(T,v,_),P=Qr(Qr(Qr({},A.style),g),{},{transition:M});return[].concat(Dm(m),[P,v,S]).filter(EH)};return this.manager.start([l].concat(Dm(o.reduce(p,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=AH());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?ys({},s,l):l,d=EA(Object.keys(m),o,u);y.start([c,a,Qr(Qr({},m),{},{transition:d}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=tG(i,QH),u=O.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||u===0||o<=0)return a;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,b=y.className,v=O.cloneElement(p,Qr(Qr({},l),{},{style:Qr(Qr({},d),c),className:b}));return v};return u===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(h){return f(h)}))}}]),r})(O.PureComponent);sn.displayName="Animate";sn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};sn.propTypes={from:Ht.oneOfType([Ht.object,Ht.string]),to:Ht.oneOfType([Ht.object,Ht.string]),attributeName:Ht.string,duration:Ht.number,begin:Ht.number,easing:Ht.oneOfType([Ht.string,Ht.func]),steps:Ht.arrayOf(Ht.shape({duration:Ht.number.isRequired,style:Ht.object.isRequired,easing:Ht.oneOfType([Ht.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ht.func]),properties:Ht.arrayOf("string"),onAnimationEnd:Ht.func})),children:Ht.oneOfType([Ht.node,Ht.func]),isActive:Ht.bool,canBegin:Ht.bool,onAnimationEnd:Ht.func,shouldReAnimate:Ht.bool,onAnimationStart:Ht.func,onAnimationReStart:Ht.func};function ml(e){"@babel/helpers - typeof";return ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ml(e)}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oc.apply(this,arguments)}function pG(e,t){return gG(e)||yG(e,t)||mG(e,t)||dG()}function dG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mG(e,t){if(e){if(typeof e=="string")return RA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RA(e,t)}}function RA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function gG(e){if(Array.isArray(e))return e}function DA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function IA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DA(Object(r),!0).forEach(function(n){vG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vG(e,t,r){return t=bG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bG(e){var t=xG(e,"string");return ml(t)=="symbol"?t:t+""}function xG(e,t){if(ml(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ml(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NA=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=a[h]>o?o:a[h];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
145
145
  `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
146
146
  `).concat(t+n-l*f[2],",").concat(r+i)),c+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
147
147
  `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);c="M ".concat(t,",").concat(r+s*y,`
@@ -151,10 +151,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
151
151
  L `).concat(t+n,",").concat(r+i-s*y,`
152
152
  A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n-l*y,",").concat(r+i,`
153
153
  L `).concat(t+l*y,",").concat(r+i,`
154
- A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*y," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},OG=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+l),h=Math.max(o,o+l);return n>=u&&n<=c&&i>=f&&i<=h}return!1},TG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},T0=function(t){var r=IA(IA({},TG),t),n=O.useRef(),i=O.useState(-1),a=gG(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,h=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,v=r.isAnimationActive,w=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var b=Ot("recharts-rectangle",p);return w?O.createElement(rn,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:m,animationEasing:y,isActive:w},function(_){var g=_.width,x=_.height,S=_.x,A=_.y;return O.createElement(rn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,isActive:v,easing:y},O.createElement("path",ec({},vt(r,!0),{className:b,d:NA(S,A,g,x,h),ref:n})))}):O.createElement("path",ec({},vt(r,!0),{className:b,d:NA(l,u,c,f,h)}))};function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Og.apply(this,arguments)}var Xc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Ot("recharts-dot",a);return r===+r&&n===+n&&i===+i?qr.createElement("circle",Og({},vt(t,!1),Lu(t),{className:o,cx:r,cy:n,r:i})):null};function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}var PG=["x","y","top","left","width","height","className"];function Tg(){return Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tg.apply(this,arguments)}function LA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function EG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(r),!0).forEach(function(n){CG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CG(e,t,r){return t=MG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MG(e){var t=kG(e,"string");return ul(t)=="symbol"?t:t+""}function kG(e,t){if(ul(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ul(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $G(e,t){if(e==null)return{};var r=jG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var RG=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},DG=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,h=t.height,p=h===void 0?0:h,y=t.className,m=$G(t,PG),d=EG({x:n,y:a,top:s,left:u,width:f,height:p},m);return!nt(n)||!nt(a)||!nt(f)||!nt(p)||!nt(s)||!nt(u)?null:O.createElement("path",Tg({},vt(d,!0),{className:Ot("recharts-cross",y),d:RG(n,a,f,p,s,u)}))},jm,BA;function IG(){if(BA)return jm;BA=1;var e=YE(),t=e(Object.getPrototypeOf,Object);return jm=t,jm}var Rm,qA;function NG(){if(qA)return Rm;qA=1;var e=Yn(),t=IG(),r=Xn(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var h=s.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==l}return Rm=u,Rm}var LG=NG();const BG=qt(LG);var Dm,FA;function qG(){if(FA)return Dm;FA=1;var e=Yn(),t=Xn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Dm=n,Dm}var FG=qG();const zG=qt(FG);function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rc.apply(this,arguments)}function UG(e,t){return KG(e)||GG(e,t)||HG(e,t)||WG()}function WG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
155
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HG(e,t){if(e){if(typeof e=="string")return zA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zA(e,t)}}function zA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function KG(e){if(Array.isArray(e))return e}function UA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(r),!0).forEach(function(n){YG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YG(e,t,r){return t=XG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XG(e){var t=VG(e,"string");return cl(t)=="symbol"?t:t+""}function VG(e,t){if(cl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HA=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},ZG={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},JG=function(t){var r=WA(WA({},ZG),t),n=O.useRef(),i=O.useState(-1),a=UG(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,v=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var w=Ot("recharts-trapezoid",p);return v?O.createElement(rn,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:h,x:l,y:u},duration:m,animationEasing:y,isActive:v},function(b){var _=b.upperWidth,g=b.lowerWidth,x=b.height,S=b.x,A=b.y;return O.createElement(rn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,easing:y},O.createElement("path",rc({},vt(r,!0),{className:w,d:HA(S,A,_,g,x),ref:n})))}):O.createElement("g",null,O.createElement("path",rc({},vt(r,!0),{className:w,d:HA(l,u,c,f,h)})))},QG=["option","shapeType","propTransformer","activeClassName","isActive"];function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function t6(e,t){if(e==null)return{};var r=e6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function e6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function GA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GA(Object(r),!0).forEach(function(n){r6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r6(e,t,r){return t=n6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n6(e){var t=i6(e,"string");return fl(t)=="symbol"?t:t+""}function i6(e,t){if(fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a6(e,t){return nc(nc({},t),e)}function o6(e,t){return e==="symbols"}function KA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(T0,r);case"trapezoid":return O.createElement(JG,r);case"sector":return O.createElement(QC,r);case"symbols":if(o6(t))return O.createElement(Wc,r);break;default:return null}}function s6(e){return O.isValidElement(e)?e.props:e}function Pg(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?a6:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=t6(e,QG),u;if(O.isValidElement(t))u=O.cloneElement(t,nc(nc({},l),s6(t)));else if(bt(t))u=t(l);else if(BG(t)&&!zG(t)){var c=i(t,l);u=O.createElement(KA,{shapeType:r,elementProps:c})}else{var f=l;u=O.createElement(KA,{shapeType:r,elementProps:f})}return s?O.createElement(Rt,{className:o},u):u}function Vc(e,t){return t!=null&&"trapezoids"in e.props}function Zc(e,t){return t!=null&&"sectors"in e.props}function hl(e,t){return t!=null&&"points"in e.props}function l6(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function u6(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function c6(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function f6(e,t){var r;return Vc(e,t)?r=l6:Zc(e,t)?r=u6:hl(e,t)&&(r=c6),r}function h6(e,t){var r;return Vc(e,t)?r="trapezoids":Zc(e,t)?r="sectors":hl(e,t)&&(r="points"),r}function p6(e,t){if(Vc(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Zc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return hl(e,t)?t.payload:{}}function d6(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=h6(r,t),a=p6(r,t),o=n.filter(function(l,u){var c=aa(a,l),f=r.props[i].filter(function(y){var m=f6(r,t);return m(y,t)}),h=r.props[i].indexOf(f[f.length-1]),p=u===h;return c&&p}),s=n.indexOf(o[o.length-1]);return s}function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function YA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YA(Object(r),!0).forEach(function(n){uM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uM(e,t,r){return t=m6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m6(e){var t=y6(e,"string");return pl(t)=="symbol"?t:t+""}function y6(e,t){if(pl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g6=["Webkit","Moz","O","ms"],v6=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=g6.reduce(function(a,o){return XA(XA({},a),{},uM({},o+n,r))},{});return i[t]=r,i};function lo(e){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(e)}function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ic.apply(this,arguments)}function VA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Im(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(r),!0).forEach(function(n){gr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fM(n.key),n)}}function _6(e,t,r){return t&&ZA(e.prototype,t),r&&ZA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function x6(e,t,r){return t=ac(t),w6(e,cM()?Reflect.construct(t,r||[],ac(e).constructor):t.apply(e,r))}function w6(e,t){if(t&&(lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S6(e)}function S6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cM=function(){return!!e})()}function ac(e){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ac(e)}function A6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eg(e,t)}function Eg(e,t){return Eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Eg(e,t)}function gr(e,t,r){return t=fM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fM(e){var t=O6(e,"string");return lo(t)=="symbol"?t:t+""}function O6(e,t){if(lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var T6=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=us().domain(Fs(0,l)).range([a,a+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},JA=function(t){return t.changedTouches&&!!t.changedTouches.length},uo=(function(e){function t(r){var n;return b6(this,t),n=x6(this,t,[r]),gr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),gr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),gr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),gr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),gr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),gr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),gr(n,"handleSlideDragStart",function(i){var a=JA(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return A6(t,e),_6(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,f),y=t.getIndexInRange(o,h);return{startIndex:p-p%l,endIndex:y===c?c:y-y%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=_e(a[n],s,n);return bt(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,h=l.startIndex,p=l.endIndex,y=l.onChange,m=n.pageX-a;m>0?m=Math.min(m,u+c-f-s,u+c-f-o):m<0&&(m=Math.max(m,u-o,u-s));var d=this.getIndex({startX:o+m,endX:s+m});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=JA(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],c=this.props,f=c.x,h=c.width,p=c.travellerWidth,y=c.onChange,m=c.gap,d=c.data,v={startX:this.state.startX,endX:this.state.endX},w=n.pageX-a;w>0?w=Math.min(w,f+h-p-u):w<0&&(w=Math.max(w,f-u)),v[o]=u+w;var b=this.getIndex(v),_=b.startIndex,g=b.endIndex,x=function(){var A=d.length-1;return o==="startX"&&(s>l?_%m===0:g%m===0)||s<l&&g===A||o==="endX"&&(s>l?g%m===0:_%m===0)||s>l&&g===A};this.setState(gr(gr({},o,u+w),"brushMoveStartX",n.pageX),function(){y&&x()&&y(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var h=f+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(gr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return O.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=O.Children.only(u);return f?O.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,h=l.traveller,p=l.ariaLabel,y=l.data,m=l.startIndex,d=l.endIndex,v=Math.max(n,this.props.x),w=Im(Im({},vt(this.props,!1)),{},{x:v,y:u,width:c,height:f}),b=p||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return O.createElement(Rt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),s.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,w))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,h=c.endX,p=5,y={pointerEvents:"none",fill:u};return O.createElement(Rt,{className:"recharts-brush-texts"},O.createElement(Wu,ic({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(Wu,ic({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+l+p,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,d=h.isSlideMoving,v=h.isTravellerMoving,w=h.isTravellerFocused;if(!i||!i.length||!nt(s)||!nt(l)||!nt(u)||!nt(c)||u<=0||c<=0)return null;var b=Ot("recharts-brush",a),_=O.Children.count(o)===1,g=v6("userSelect","none");return O.createElement(Rt,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||d||v||w||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),O.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):bt(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Im({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?T6({data:a,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])})(O.PureComponent);gr(uo,"displayName","Brush");gr(uo,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Nm,QA;function P6(){if(QA)return Nm;QA=1;var e=y0();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Nm=t,Nm}var Lm,tO;function E6(){if(tO)return Lm;tO=1;var e=zE(),t=bi(),r=P6(),n=Xe(),i=El();function a(o,s,l){var u=n(o)?e:r;return l&&i(o,s,l)&&(s=void 0),u(o,t(s,3))}return Lm=a,Lm}var C6=E6();const M6=qt(C6);var xn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Bm,eO;function k6(){if(eO)return Bm;eO=1;var e=eC();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Bm=t,Bm}var qm,rO;function $6(){if(rO)return qm;rO=1;var e=k6(),t=QE(),r=bi();function n(i,a){var o={};return a=r(a,3),t(i,function(s,l,u){e(o,l,a(s,l,u))}),o}return qm=n,qm}var j6=$6();const R6=qt(j6);var Fm,nO;function D6(){if(nO)return Fm;nO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Fm=e,Fm}var zm,iO;function I6(){if(iO)return zm;iO=1;var e=y0();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return zm=t,zm}var Um,aO;function N6(){if(aO)return Um;aO=1;var e=D6(),t=I6(),r=bi(),n=Xe(),i=El();function a(o,s,l){var u=n(o)?e:t;return l&&i(o,s,l)&&(s=void 0),u(o,r(s,3))}return Um=a,Um}var L6=N6();const hM=qt(L6);var B6=["x","y"];function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cg.apply(this,arguments)}function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(n){q6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q6(e,t,r){return t=F6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F6(e){var t=z6(e,"string");return co(t)=="symbol"?t:t+""}function z6(e,t){if(co(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(co(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U6(e,t){if(e==null)return{};var r=W6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function W6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function H6(e,t){var r=e.x,n=e.y,i=U6(e,B6),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),h=parseInt(f,10);return Qo(Qo(Qo(Qo(Qo({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function sO(e){return O.createElement(Pg,Cg({shapeType:"rectangle",propTransformer:H6,activeClassName:"recharts-active-bar"},e))}var G6=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=nt(n)||d5(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?er(!1,"minPointSize callback function received a value with type of ".concat(co(n),". Currently only numbers or null/undefined are supported.")):er()),r)}},K6=["value","background"],pM;function fo(e){"@babel/helpers - typeof";return fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fo(e)}function Y6(e,t){if(e==null)return{};var r=X6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function X6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oc.apply(this,arguments)}function lO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lO(Object(r),!0).forEach(function(n){li(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mM(n.key),n)}}function Z6(e,t,r){return t&&uO(e.prototype,t),r&&uO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function J6(e,t,r){return t=sc(t),Q6(e,dM()?Reflect.construct(t,r||[],sc(e).constructor):t.apply(e,r))}function Q6(e,t){if(t&&(fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t4(e)}function t4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dM=function(){return!!e})()}function sc(e){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sc(e)}function e4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mg(e,t)}function Mg(e,t){return Mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mg(e,t)}function li(e,t,r){return t=mM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mM(e){var t=r4(e,"string");return fo(t)=="symbol"?t:t+""}function r4(e,t){if(fo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ro=(function(e){function t(){var r;V6(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=J6(this,t,[].concat(i)),li(r,"state",{isAnimationFinished:!1}),li(r,"id",da("recharts-bar-")),li(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),li(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return e4(t,e),Z6(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,c=vt(this.props,!1);return n&&n.map(function(f,h){var p=h===l,y=p?u:o,m=fe(fe(fe({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(Rt,oc({className:"recharts-bar-rectangle"},zs(i.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),O.createElement(sO,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,c=i.animationEasing,f=i.animationId,h=this.state.prevData;return O.createElement(rn,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=a.map(function(d,v){var w=h&&h[v];if(w){var b=le(w.x,d.x),_=le(w.y,d.y),g=le(w.width,d.width),x=le(w.height,d.height);return fe(fe({},d),{},{x:b(y),y:_(y),width:g(y),height:x(y)})}if(o==="horizontal"){var S=le(0,d.height),A=S(y);return fe(fe({},d),{},{y:d.y+d.height-A,height:A})}var T=le(0,d.width),C=T(y);return fe(fe({},d),{},{width:C})});return O.createElement(Rt,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!aa(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=vt(this.props.background,!1);return a.map(function(u,c){u.value;var f=u.background,h=Y6(u,K6);if(!f)return null;var p=fe(fe(fe(fe(fe({},h),{},{fill:"#eee"},f),l),zs(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(sO,oc({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=sr(c,jo);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(d,v){var w=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:w,errorVal:_e(d,v)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(Rt,y,f.map(function(m){return O.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,h=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,v=Ot("recharts-bar",o),w=s&&s.allowDataOverflow,b=l&&l.allowDataOverflow,_=w||b,g=gt(m)?this.id:m;return O.createElement(Rt,{className:v},w||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:w?u:u-f/2,y:b?c:c-h/2,width:w?f:f*2,height:b?h:h*2}))):null,O.createElement(Rt,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,g),(!p||d)&&_n.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);pM=Ro;li(Ro,"displayName","Bar");li(Ro,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!_i.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});li(Ro,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=_W(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,d=m!==void 0?fe(fe({},m),r.props):r.props,v=d.dataKey,w=d.children,b=d.minPointSize,_=y==="horizontal"?o:a,g=u?_.scale.domain():null,x=EW({numericAxis:_}),S=sr(w,x0),A=f.map(function(T,C){var P,E,k,$,j,M;u?P=xW(u[c+C],g):(P=_e(T,v),Array.isArray(P)||(P=[x,P]));var I=G6(b,pM.defaultProps.minPointSize)(P[1],C);if(y==="horizontal"){var q,F=[o.scale(P[0]),o.scale(P[1])],N=F[0],R=F[1];E=US({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:T,index:C}),k=(q=R??N)!==null&&q!==void 0?q:void 0,$=p.size;var L=N-R;if(j=Number.isNaN(L)?0:L,M={x:E,y:o.y,width:$,height:o.height},Math.abs(I)>0&&Math.abs(j)<Math.abs(I)){var W=en(j||I)*(Math.abs(I)-Math.abs(j));k-=W,j+=W}}else{var Y=[a.scale(P[0]),a.scale(P[1])],z=Y[0],V=Y[1];if(E=z,k=US({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:T,index:C}),$=V-z,j=p.size,M={x:a.x,y:k,width:a.width,height:j},Math.abs(I)>0&&Math.abs($)<Math.abs(I)){var J=en($||I)*(Math.abs(I)-Math.abs($));$+=J}}return fe(fe(fe({},T),{},{x:E,y:k,width:$,height:j,value:u?P:P[1],payload:T,background:M},S&&S[C]&&S[C].props),{},{tooltipPayload:[VC(r,T)],tooltipPosition:{x:E+$/2,y:k+j/2}})});return fe({data:A,layout:y},h)});function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function n4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yM(n.key),n)}}function i4(e,t,r){return t&&cO(e.prototype,t),r&&cO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){Jc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jc(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=a4(e,"string");return dl(t)=="symbol"?t:t+""}function a4(e,t){if(dl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o4=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},h=!!vr(u,Ro);return c.reduce(function(p,y){var m=r[y],d=m.orientation,v=m.domain,w=m.padding,b=w===void 0?{}:w,_=m.mirror,g=m.reversed,x="".concat(d).concat(_?"Mirror":""),S,A,T,C,P;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=v[1]-v[0],k=1/0,$=m.categoricalDomain.sort(v5);if($.forEach(function(Y,z){z>0&&(k=Math.min((Y||0)-($[z-1]||0),k))}),Number.isFinite(k)){var j=k/E,M=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(S=j*M/2),m.padding==="no-gap"){var I=ia(t.barCategoryGap,j*M),q=j*M/2;S=q-I-(q-I)/M*I}}}i==="xAxis"?A=[n.left+(b.left||0)+(S||0),n.left+n.width-(b.right||0)-(S||0)]:i==="yAxis"?A=l==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(S||0),n.top+n.height-(b.bottom||0)-(S||0)]:A=m.range,g&&(A=[A[1],A[0]]);var F=vW(m,a,h),N=F.scale,R=F.realScaleType;N.domain(v).range(A),bW(N);var L=PW(N,Zr(Zr({},m),{},{realScaleType:R}));i==="xAxis"?(P=d==="top"&&!_||d==="bottom"&&_,T=n.left,C=f[x]-P*m.height):i==="yAxis"&&(P=d==="left"&&!_||d==="right"&&_,T=f[x]-P*m.width,C=n.top);var W=Zr(Zr(Zr({},m),L),{},{realScaleType:R,x:T,y:C,scale:N,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return W.bandSize=Yu(W,L),!m.hide&&i==="xAxis"?f[x]+=(P?-1:1)*W.height:m.hide||(f[x]+=(P?-1:1)*W.width),Zr(Zr({},p),{},Jc({},y,W))},{})},gM=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},s4=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return gM({x:r,y:n},{x:i,y:a})},vM=(function(){function e(t){n4(this,e),this.scale=t}return i4(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Jc(vM,"EPS",1e-4);var P0=function(t){var r=Object.keys(t).reduce(function(n,i){return Zr(Zr({},n),{},Jc({},i,vM.create(t[i])))},{});return Zr(Zr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return R6(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return hM(i,function(a,o){return r[o].isInRange(a)})}})};function l4(e){return(e%180+180)%180}var u4=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=l4(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Wm,hO;function c4(){if(hO)return Wm;hO=1;var e=bi(),t=Tl(),r=Pl();function n(i){return function(a,o,s){var l=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(l[f],f,l)}}var c=i(a,o,s);return c>-1?l[u?a[c]:c]:void 0}}return Wm=n,Wm}var Hm,pO;function f4(){if(pO)return Hm;pO=1;var e=mC(),t=bi(),r=n0(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var u=s==null?0:r(s);return u<0&&(u=n(l+u,0)),e(a,t(o,3),u)}return Hm=i,Hm}var Gm,dO;function h4(){if(dO)return Gm;dO=1;var e=c4(),t=f4(),r=e(t);return Gm=r,Gm}var p4=h4();const d4=qt(p4);var m4=LE();const y4=qt(m4);var g4=y4(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}var E0=O.createContext(void 0),C0=O.createContext(void 0),bM=O.createContext(void 0),_M=O.createContext({}),xM=O.createContext(void 0),wM=O.createContext(0),SM=O.createContext(0),mO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=g4(a);return O.createElement(E0.Provider,{value:n},O.createElement(C0.Provider,{value:i},O.createElement(_M.Provider,{value:a},O.createElement(bM.Provider,{value:c},O.createElement(xM.Provider,{value:o},O.createElement(wM.Provider,{value:u},O.createElement(SM.Provider,{value:l},s)))))))},v4=function(){return O.useContext(xM)};function AM(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var OM=function(t){var r=O.useContext(E0);r==null&&(process.env.NODE_ENV!=="production"?er(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):er());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?er(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(lc(t),"]. ").concat(AM(r))):er()),n},b4=function(){var t=O.useContext(E0);return ni(t)},_4=function(){var t=O.useContext(C0),r=d4(t,function(n){return hM(n.domain,Number.isFinite)});return r||ni(t)},TM=function(t){var r=O.useContext(C0);r==null&&(process.env.NODE_ENV!=="production"?er(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):er());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?er(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(lc(t),"]. ").concat(AM(r))):er()),n},x4=function(){var t=O.useContext(bM);return t},w4=function(){return O.useContext(_M)},M0=function(){return O.useContext(SM)},k0=function(){return O.useContext(wM)};function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function S4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EM(n.key),n)}}function O4(e,t,r){return t&&A4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function T4(e,t,r){return t=uc(t),P4(e,PM()?Reflect.construct(t,r||[],uc(e).constructor):t.apply(e,r))}function P4(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E4(e)}function E4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PM=function(){return!!e})()}function uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uc(e)}function C4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kg(e,t)}function yO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yO(Object(r),!0).forEach(function(n){$0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $0(e,t,r){return t=EM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EM(e){var t=M4(e,"string");return ho(t)=="symbol"?t:t+""}function M4(e,t){if(ho(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ho(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function k4(e,t){return D4(e)||R4(e,t)||j4(e,t)||$4()}function $4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
156
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j4(e,t){if(e){if(typeof e=="string")return vO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vO(e,t)}}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function R4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function D4(e){if(Array.isArray(e))return e}function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$g.apply(this,arguments)}var I4=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):bt(t)?n=t(r):n=O.createElement("line",$g({},r,{className:"recharts-reference-line-line"})),n},N4=function(t,r,n,i,a,o,s,l,u){var c=a.x,f=a.y,h=a.width,p=a.height;if(n){var y=u.y,m=t.y.apply(y,{position:o});if(xn(u,"discard")&&!t.y.isInRange(m))return null;var d=[{x:c+h,y:m},{x:c,y:m}];return l==="left"?d.reverse():d}if(r){var v=u.x,w=t.x.apply(v,{position:o});if(xn(u,"discard")&&!t.x.isInRange(w))return null;var b=[{x:w,y:f+p},{x:w,y:f}];return s==="top"?b.reverse():b}if(i){var _=u.segment,g=_.map(function(x){return t.apply(x,{position:o})});return xn(u,"discard")&&M6(g,function(x){return!t.isInRange(x)})?null:g}return null};function L4(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=v4(),c=OM(i),f=TM(a),h=x4();if(!u||!h)return null;Bn(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=P0({x:c.scale,y:f.scale}),y=be(t),m=be(r),d=n&&n.length===2,v=N4(p,y,m,d,h,e.position,c.orientation,f.orientation,e);if(!v)return null;var w=k4(v,2),b=w[0],_=b.x,g=b.y,x=w[1],S=x.x,A=x.y,T=xn(e,"hidden")?"url(#".concat(u,")"):void 0,C=gO(gO({clipPath:T},vt(e,!0)),{},{x1:_,y1:g,x2:S,y2:A});return O.createElement(Rt,{className:Ot("recharts-reference-line",s)},I4(o,C),qe.renderCallByParent(e,s4({x1:_,y1:g,x2:S,y2:A})))}var Qc=(function(e){function t(){return S4(this,t),T4(this,t,arguments)}return C4(t,e),O4(t,[{key:"render",value:function(){return O.createElement(L4,this.props)}}])})(O.Component);$0(Qc,"displayName","ReferenceLine");$0(Qc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jg.apply(this,arguments)}function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function bO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bO(Object(r),!0).forEach(function(n){tf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MM(n.key),n)}}function F4(e,t,r){return t&&q4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function z4(e,t,r){return t=cc(t),U4(e,CM()?Reflect.construct(t,r||[],cc(e).constructor):t.apply(e,r))}function U4(e,t){if(t&&(po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W4(e)}function W4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CM=function(){return!!e})()}function cc(e){return cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cc(e)}function H4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rg(e,t)}function tf(e,t,r){return t=MM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MM(e){var t=G4(e,"string");return po(t)=="symbol"?t:t+""}function G4(e,t){if(po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var K4=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=P0({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return xn(t,"discard")&&!o.isInRange(s)?null:s},ef=(function(e){function t(){return B4(this,t),z4(this,t,arguments)}return H4(t,e),F4(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=be(i),c=be(a);if(Bn(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=K4(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,m=y.shape,d=y.className,v=xn(this.props,"hidden")?"url(#".concat(l,")"):void 0,w=_O(_O({clipPath:v},vt(this.props,!0)),{},{cx:h,cy:p});return O.createElement(Rt,{className:Ot("recharts-reference-dot",d)},t.renderDot(m,w),qe.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);tf(ef,"displayName","ReferenceDot");tf(ef,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});tf(ef,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):bt(e)?r=e(t):r=O.createElement(Xc,jg({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dg.apply(this,arguments)}function mo(e){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mo(e)}function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$M(n.key),n)}}function V4(e,t,r){return t&&X4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z4(e,t,r){return t=fc(t),J4(e,kM()?Reflect.construct(t,r||[],fc(e).constructor):t.apply(e,r))}function J4(e,t){if(t&&(mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q4(e)}function Q4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kM=function(){return!!e})()}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fc(e)}function tK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ig(e,t)}function Ig(e,t){return Ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ig(e,t)}function rf(e,t,r){return t=$M(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $M(e){var t=eK(e,"string");return mo(t)=="symbol"?t:t+""}function eK(e,t){if(mo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rK=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var h=P0({x:c.scale,y:f.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(l,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(u,{position:"end"}):h.y.rangeMax};return xn(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:gM(p,y)},nf=(function(e){function t(){return Y4(this,t),Z4(this,t,arguments)}return tK(t,e),V4(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;Bn(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=be(i),h=be(a),p=be(o),y=be(s),m=this.props.shape;if(!f&&!h&&!p&&!y&&!m)return null;var d=rK(f,h,p,y,this.props);if(!d&&!m)return null;var v=xn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(Rt,{className:Ot("recharts-reference-area",l)},t.renderRect(m,wO(wO({clipPath:v},vt(this.props,!0)),d)),qe.renderCallByParent(this.props,d))}}])})(O.Component);rf(nf,"displayName","ReferenceArea");rf(nf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});rf(nf,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):bt(e)?r=e(t):r=O.createElement(T0,Dg({},t,{className:"recharts-reference-area-rect"})),r});function jM(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function nK(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return u4(n,r)}function iK(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function hc(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function aK(e,t){return jM(e,t+1)}function oK(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var y=n==null?void 0:n[l];if(y===void 0)return{v:jM(n,u)};var m=l,d,v=function(){return d===void 0&&(d=r(y,m)),d},w=y.coordinate,b=l===0||hc(e,w,v,c,s);b||(l=0,c=o,u+=1),b&&(c=w+e*(v()/2+i),l+=u)},h;u<=a.length;)if(h=f(),h)return h.v;return[]}function ml(e){"@babel/helpers - typeof";return ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ml(e)}function SO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(n){sK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sK(e,t,r){return t=lK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lK(e){var t=uK(e,"string");return ml(t)=="symbol"?t:t+""}function uK(e,t){if(ml(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ml(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cK(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(h){var p=a[h],y,m=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*m()/2-l);a[h]=p=Le(Le({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Le(Le({},p),{},{tickCoord:p.coordinate});var v=hc(e,p.tickCoord,m,s,l);v&&(l=p.tickCoord-e*(m()/2+i),a[h]=Le(Le({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return a}function fK(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var c=n[s-1],f=r(c,s-1),h=e*(c.coordinate+e*f/2-u);o[s-1]=c=Le(Le({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=hc(e,c.tickCoord,function(){return f},l,u);p&&(u=c.tickCoord-e*(f/2+i),o[s-1]=Le(Le({},c),{},{isShow:!0}))}for(var y=a?s-1:s,m=function(w){var b=o[w],_,g=function(){return _===void 0&&(_=r(b,w)),_};if(w===0){var x=e*(b.coordinate-e*g()/2-l);o[w]=b=Le(Le({},b),{},{tickCoord:x<0?b.coordinate-x*e:b.coordinate})}else o[w]=b=Le(Le({},b),{},{tickCoord:b.coordinate});var S=hc(e,b.tickCoord,g,l,u);S&&(l=b.tickCoord+e*(g()/2+i),o[w]=Le(Le({},b),{},{isShow:!0}))},d=0;d<y;d++)m(d);return o}function j0(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(nt(l)||_i.isSsr)return aK(i,typeof l=="number"&&nt(l)?l:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?bs(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(b,_){var g=bt(u)?u(b.value,_):b.value;return p==="width"?nK(bs(g,{fontSize:t,letterSpacing:r}),y,f):bs(g,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?en(i[1].coordinate-i[0].coordinate):1,v=iK(a,d,p);return l==="equidistantPreserveStart"?oK(d,v,m,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=fK(d,v,m,i,o,l==="preserveStartEnd"):h=cK(d,v,m,i,o),h.filter(function(w){return w.isShow}))}var hK=["viewBox"],pK=["viewBox"],dK=["ticks"];function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$a.apply(this,arguments)}function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){R0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Km(e,t){if(e==null)return{};var r=mK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DM(n.key),n)}}function gK(e,t,r){return t&&OO(e.prototype,t),r&&OO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vK(e,t,r){return t=pc(t),bK(e,RM()?Reflect.construct(t,r||[],pc(e).constructor):t.apply(e,r))}function bK(e,t){if(t&&(yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _K(e)}function _K(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RM=function(){return!!e})()}function pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pc(e)}function xK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ng(e,t)}function Ng(e,t){return Ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ng(e,t)}function R0(e,t,r){return t=DM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DM(e){var t=wK(e,"string");return yo(t)=="symbol"?t:t+""}function wK(e,t){if(yo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Do=(function(e){function t(r){var n;return yK(this,t),n=vK(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return xK(t,e),gK(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Km(n,hK),s=this.props,l=s.viewBox,u=Km(s,pK);return!Fa(a,l)||!Fa(o,u)||!Fa(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,c=i.tickSize,f=i.mirror,h=i.tickMargin,p,y,m,d,v,w,b=f?-1:1,_=n.tickSize||c,g=nt(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=y=n.coordinate,d=o+ +!f*l,m=d-b*_,w=m-b*h,v=g;break;case"left":m=d=n.coordinate,y=a+ +!f*s,p=y-b*_,v=p-b*h,w=g;break;case"right":m=d=n.coordinate,y=a+ +f*s,p=y+b*_,v=p+b*h,w=g;break;default:p=y=n.coordinate,d=o+ +f*l,m=d+b*_,w=m+b*h,v=g;break}return{line:{x1:p,y1:m,x2:y,y2:d},tick:{x:v,y:w}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=ge(ge(ge({},vt(this.props,!1)),vt(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!u||l==="bottom"&&u);f=ge(ge({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);f=ge(ge({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",$a({},f,{className:Ot("recharts-cartesian-axis-line",Fr(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,h=s.unit,p=j0(ge(ge({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),d=vt(this.props,!1),v=vt(c,!1),w=ge(ge({},d),{},{fill:"none"},vt(l,!1)),b=p.map(function(_,g){var x=o.getTickLineCoord(_),S=x.line,A=x.tick,T=ge(ge(ge(ge({textAnchor:y,verticalAnchor:m},d),{},{stroke:"none",fill:u},v),A),{},{index:g,payload:_,visibleTicksCount:p.length,tickFormatter:f});return O.createElement(Rt,$a({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},zs(o.props,_,g)),l&&O.createElement("line",$a({},w,S,{className:Ot("recharts-cartesian-axis-tick-line",Fr(l,"className"))})),c&&t.renderTickItem(c,T,"".concat(bt(f)?f(_.value,g):_.value).concat(h||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,c=i.hide;if(c)return null;var f=this.props,h=f.ticks,p=Km(f,dK),y=h;return bt(l)&&(y=h&&h.length>0?l(this.props):l(p)),o<=0||s<=0||!y||!y.length?null:O.createElement(Rt,{className:Ot("recharts-cartesian-axis",u),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),qe.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Ot(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,ge(ge({},i),{},{className:s})):bt(n)?o=n(ge(ge({},i),{},{className:s})):o=O.createElement(Wu,$a({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);R0(Do,"displayName","CartesianAxis");R0(Do,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var SK=["x1","y1","x2","y2","key"],AK=["offset"];function sa(e){"@babel/helpers - typeof";return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(e)}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){OK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OK(e,t,r){return t=TK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TK(e){var t=PK(e,"string");return sa(t)=="symbol"?t:t+""}function PK(e,t){if(sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zi.apply(this,arguments)}function PO(e,t){if(e==null)return{};var r=EK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var CK=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return O.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function IM(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=PO(t,SK),u=vt(l,!1);u.offset;var c=PO(u,AK);r=O.createElement("line",zi({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function MK(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Fe(Fe({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return IM(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function kK(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Fe(Fe({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return IM(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function $K(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?i+o-h:c[p+1]-h;if(m<=0)return null;var d=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:m,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function jK(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?a+s-h:c[p+1]-h;if(m<=0)return null;var d=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:l,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var RK=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return YC(j0(Fe(Fe(Fe({},Do.defaultProps),n),{},{ticks:Nn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},DK=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return YC(j0(Fe(Fe(Fe({},Do.defaultProps),n),{},{ticks:Nn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ta={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function NM(e){var t,r,n,i,a,o,s=M0(),l=k0(),u=w4(),c=Fe(Fe({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ta.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ta.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ta.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ta.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ta.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ta.verticalFill,x:nt(e.x)?e.x:u.left,y:nt(e.y)?e.y:u.top,width:nt(e.width)?e.width:u.width,height:nt(e.height)?e.height:u.height}),f=c.x,h=c.y,p=c.width,y=c.height,m=c.syncWithTicks,d=c.horizontalValues,v=c.verticalValues,w=b4(),b=_4();if(!nt(p)||p<=0||!nt(y)||y<=0||!nt(f)||f!==+f||!nt(h)||h!==+h)return null;var _=c.verticalCoordinatesGenerator||RK,g=c.horizontalCoordinatesGenerator||DK,x=c.horizontalPoints,S=c.verticalPoints;if((!x||!x.length)&&bt(g)){var A=d&&d.length,T=g({yAxis:b?Fe(Fe({},b),{},{ticks:A?d:b.ticks}):void 0,width:s,height:l,offset:u},A?!0:m);Bn(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(sa(T),"]")),Array.isArray(T)&&(x=T)}if((!S||!S.length)&&bt(_)){var C=v&&v.length,P=_({xAxis:w?Fe(Fe({},w),{},{ticks:C?v:w.ticks}):void 0,width:s,height:l,offset:u},C?!0:m);Bn(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(sa(P),"]")),Array.isArray(P)&&(S=P)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(CK,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(MK,zi({},c,{offset:u,horizontalPoints:x,xAxis:w,yAxis:b})),O.createElement(kK,zi({},c,{offset:u,verticalPoints:S,xAxis:w,yAxis:b})),O.createElement($K,zi({},c,{horizontalPoints:x})),O.createElement(jK,zi({},c,{verticalPoints:S})))}NM.displayName="CartesianGrid";var IK=["type","layout","connectNulls","ref"],NK=["key"];function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function EO(e,t){if(e==null)return{};var r=LK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ws.apply(this,arguments)}function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){Jr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pa(e){return zK(e)||FK(e)||qK(e)||BK()}function BK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
157
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qK(e,t){if(e){if(typeof e=="string")return Lg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lg(e,t)}}function FK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zK(e){if(Array.isArray(e))return Lg(e)}function Lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function UK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BM(n.key),n)}}function WK(e,t,r){return t&&MO(e.prototype,t),r&&MO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HK(e,t,r){return t=dc(t),GK(e,LM()?Reflect.construct(t,r||[],dc(e).constructor):t.apply(e,r))}function GK(e,t){if(t&&(go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KK(e)}function KK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LM=function(){return!!e})()}function dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dc(e)}function YK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bg(e,t)}function Bg(e,t){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bg(e,t)}function Jr(e,t,r){return t=BM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BM(e){var t=XK(e,"string");return go(t)=="symbol"?t:t+""}function XK(e,t){if(go(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(go(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var af=(function(e){function t(){var r;UK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=HK(this,t,[].concat(i)),Jr(r,"state",{isAnimationFinished:!0,totalLength:0}),Jr(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Jr(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(v,w){return v+w});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,h=s-o,p=[],y=0,m=0;y<l.length;m+=l[y],++y)if(m+l[y]>f){p=[].concat(Pa(l.slice(0,y)),[f-m]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(Pa(t.repeat(l,c)),Pa(p),d).map(function(v){return"".concat(v,"px")}).join(", ")}),Jr(r,"id",da("recharts-line-")),Jr(r,"pathRef",function(o){r.mainCurve=o}),Jr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Jr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return YK(t,e),WK(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=sr(c,jo);if(!f)return null;var h=function(m,d){return{x:m.x,y:m.y,value:m.value,errorVal:_e(m.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(Rt,p,f.map(function(y){return O.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=vt(this.props,!1),h=vt(l,!0),p=u.map(function(m,d){var v=yr(yr(yr({key:"dot-".concat(d),r:3},f),h),{},{index:d,cx:m.x,cy:m.y,value:m.value,dataKey:c,payload:m.payload,points:u});return t.renderDotItem(l,v)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(Rt,ws({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=EO(s,IK),h=yr(yr(yr({},vt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return O.createElement(Zi,ws({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,d=o.height,v=this.state,w=v.prevPoints,b=v.totalLength;return O.createElement(rn,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var g=_.t;if(w){var x=w.length/s.length,S=s.map(function(E,k){var $=Math.floor(k*x);if(w[$]){var j=w[$],M=le(j.x,E.x),I=le(j.y,E.y);return yr(yr({},E),{},{x:M(g),y:I(g)})}if(y){var q=le(m*2,E.x),F=le(d/2,E.y);return yr(yr({},E),{},{x:q(g),y:F(g)})}return yr(yr({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=le(0,b),T=A(g),C;if(l){var P="".concat(l).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});C=a.getStrokeDasharray(T,b,P)}else C=a.generateSimpleStrokeDasharray(b,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:C})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!aa(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,h=i.left,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,w=s.length===1,b=Ot("recharts-line",l),_=u&&u.allowDataOverflow,g=c&&c.allowDataOverflow,x=_||g,S=gt(d)?this.id:d,A=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,C=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,k=cC(o)?o:{},$=k.clipDot,j=$===void 0?!0:$,M=C*2+E;return O.createElement(Rt,{className:b},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?h:h-p/2,y:g?f:f-y/2,width:_?p:p*2,height:g?y:y*2})),!j&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-M/2,y:f-M/2,width:p+M,height:y+M}))):null,!w&&this.renderCurve(x,S),this.renderErrorBar(x,S),(w||o)&&this.renderDots(x,j,S),(!m||v)&&_n.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Pa(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Pa(o),Pa(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(bt(n))a=n(i);else{var o=i.key,s=EO(i,NK),l=Ot("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Xc,ws({key:o},s,{className:l}))}return a}}])})(O.PureComponent);Jr(af,"displayName","Line");Jr(af,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!_i.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Jr(af,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(h,p){var y=_e(h,o);return c==="horizontal"?{x:oo({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:gt(y)?null:n.scale(y),value:y,payload:h}:{x:gt(y)?null:r.scale(y),y:oo({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return yr({points:f,layout:c},u)});var VK=["layout","type","stroke","connectNulls","isRange","ref"],ZK=["key"],qM;function vo(e){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(e)}function FM(e,t){if(e==null)return{};var r=JK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ui.apply(this,arguments)}function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ei(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(n){vn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UM(n.key),n)}}function tY(e,t,r){return t&&$O(e.prototype,t),r&&$O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eY(e,t,r){return t=mc(t),rY(e,zM()?Reflect.construct(t,r||[],mc(e).constructor):t.apply(e,r))}function rY(e,t){if(t&&(vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nY(e)}function nY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zM=function(){return!!e})()}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mc(e)}function iY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qg(e,t)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qg(e,t)}function vn(e,t,r){return t=UM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UM(e){var t=aY(e,"string");return vo(t)=="symbol"?t:t+""}function aY(e,t){if(vo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wi=(function(e){function t(){var r;QK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=eY(this,t,[].concat(i)),vn(r,"state",{isAnimationFinished:!0}),vn(r,"id",da("recharts-area-")),vn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),bt(o)&&o()}),vn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),bt(o)&&o()}),r}return iY(t,e),tY(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,c=l.points,f=l.dataKey,h=vt(this.props,!1),p=vt(u,!0),y=c.map(function(d,v){var w=ei(ei(ei({key:"dot-".concat(v),r:3},h),p),{},{index:v,cx:d.x,cy:d.y,dataKey:f,value:d.value,payload:d.payload,points:c});return t.renderDotItem(u,w)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(Rt,Ui({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,c=n*Math.abs(l-u),f=si(o.map(function(h){return h.y||0}));return nt(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(si(a.map(function(h){return h.y||0})),f)),nt(f)?O.createElement("rect",{x:l<u?l:l-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,c=n*Math.abs(l-u),f=si(o.map(function(h){return h.x||0}));return nt(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(si(a.map(function(h){return h.x||0})),f)),nt(f)?O.createElement("rect",{x:0,y:l<u?l:l-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,c=s.stroke,f=s.connectNulls,h=s.isRange;s.ref;var p=FM(s,VK);return O.createElement(Rt,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(Zi,Ui({},vt(p,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(Zi,Ui({},vt(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(Zi,Ui({},vt(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,d=y.prevBaseLine;return O.createElement(rn,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var w=v.t;if(m){var b=m.length/s.length,_=s.map(function(A,T){var C=Math.floor(T*b);if(m[C]){var P=m[C],E=le(P.x,A.x),k=le(P.y,A.y);return ei(ei({},A),{},{x:E(w),y:k(w)})}return A}),g;if(nt(l)&&typeof l=="number"){var x=le(d,l);g=x(w)}else if(gt(l)||Mo(l)){var S=le(d,0);g=S(w)}else g=l.map(function(A,T){var C=Math.floor(T*b);if(d[C]){var P=d[C],E=le(P.x,A.x),k=le(P.y,A.y);return ei(ei({},A),{},{x:E(w),y:k(w)})}return A});return a.renderAreaStatically(_,g,n,i)}return O.createElement(Rt,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(w))),O.createElement(Rt,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,c=u.prevPoints,f=u.prevBaseLine,h=u.totalLength;return l&&o&&o.length&&(!c&&h>0||!aa(c,o)||!aa(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,c=i.left,f=i.xAxis,h=i.yAxis,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,w=s.length===1,b=Ot("recharts-area",l),_=f&&f.allowDataOverflow,g=h&&h.allowDataOverflow,x=_||g,S=gt(d)?this.id:d,A=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,C=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,k=cC(o)?o:{},$=k.clipDot,j=$===void 0?!0:$,M=C*2+E;return O.createElement(Rt,{className:b},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?c:c-p/2,y:g?u:u-y/2,width:_?p:p*2,height:g?y:y*2})),!j&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-M/2,y:u-M/2,width:p+M,height:y+M}))):null,w?null:this.renderArea(x,S),(o||w)&&this.renderDots(x,j,S),(!m||v)&&_n.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);qM=wi;vn(wi,"displayName","Area");vn(wi,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!_i.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});vn(wi,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(nt(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});vn(wi,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=u&&u.length,m=qM.getBaseValue(t,r,n,i),d=p==="horizontal",v=!1,w=f.map(function(_,g){var x;y?x=u[c+g]:(x=_e(_,l),Array.isArray(x)?v=!0:x=[m,x]);var S=x[1]==null||y&&_e(_,l)==null;return d?{x:oo({axis:n,ticks:a,bandSize:s,entry:_,index:g}),y:S?null:i.scale(x[1]),value:x,payload:_}:{x:S?null:n.scale(x[1]),y:oo({axis:i,ticks:o,bandSize:s,entry:_,index:g}),value:x,payload:_}}),b;return y||v?b=w.map(function(_){var g=Array.isArray(_.value)?_.value[0]:null;return d?{x:_.x,y:g!=null&&_.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:_.y}}):b=d?i.scale(m):n.scale(m),ei({points:w,baseLine:b,layout:p,isRange:v},h)});vn(wi,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=Ot("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=FM(t,ZK);r=O.createElement(Xc,Ui({},a,{key:i,className:n}))}return r});function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function oY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GM(n.key),n)}}function lY(e,t,r){return t&&sY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uY(e,t,r){return t=yc(t),cY(e,WM()?Reflect.construct(t,r||[],yc(e).constructor):t.apply(e,r))}function cY(e,t){if(t&&(bo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fY(e)}function fY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WM=function(){return!!e})()}function yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yc(e)}function hY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fg(e,t)}function Fg(e,t){return Fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fg(e,t)}function HM(e,t,r){return t=GM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GM(e){var t=pY(e,"string");return bo(t)=="symbol"?t:t+""}function pY(e,t){if(bo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var of=(function(e){function t(){return oY(this,t),uY(this,t,arguments)}return hY(t,e),lY(t,[{key:"render",value:function(){return null}}])})(qr.Component);HM(of,"displayName","ZAxis");HM(of,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var dY=["option","isActive"];function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ss.apply(this,arguments)}function mY(e,t){if(e==null)return{};var r=yY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gY(e){var t=e.option,r=e.isActive,n=mY(e,dY);return typeof t=="string"?qr.createElement(Pg,Ss({option:qr.createElement(Wc,Ss({type:t},n)),isActive:r,shapeType:"symbols"},n)):qr.createElement(Pg,Ss({option:t,isActive:r,shapeType:"symbols"},n))}function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(this,arguments)}function jO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(n){ui(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YM(n.key),n)}}function bY(e,t,r){return t&&RO(e.prototype,t),r&&RO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Y(e,t,r){return t=gc(t),xY(e,KM()?Reflect.construct(t,r||[],gc(e).constructor):t.apply(e,r))}function xY(e,t){if(t&&(_o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wY(e)}function wY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KM=function(){return!!e})()}function gc(e){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gc(e)}function SY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zg(e,t)}function zg(e,t){return zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zg(e,t)}function ui(e,t,r){return t=YM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YM(e){var t=AY(e,"string");return _o(t)=="symbol"?t:t+""}function AY(e,t){if(_o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sf=(function(e){function t(){var r;vY(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=_Y(this,t,[].concat(i)),ui(r,"state",{isAnimationFinished:!1}),ui(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),ui(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),ui(r,"id",da("recharts-scatter-")),r}return SY(t,e),bY(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,l=a.activeIndex,u=vt(this.props,!1);return n.map(function(c,f){var h=l===f,p=h?s:o,y=Dr(Dr({},u),c);return O.createElement(Rt,As({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},zs(i.props,c,f),{role:"img"}),O.createElement(gY,As({option:p,isActive:h,key:"symbol-".concat(f)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return O.createElement(rn,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,y=a.map(function(m,d){var v=f&&f[d];if(v){var w=le(v.cx,m.cx),b=le(v.cy,m.cy),_=le(v.size,m.size);return Dr(Dr({},m),{},{cx:w(p),cy:b(p),size:_(p)})}var g=le(0,m.size);return Dr(Dr({},m),{},{size:g(p)})});return O.createElement(Rt,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!aa(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,l=i.children,u=sr(l,jo);return u?u.map(function(c,f){var h=c.props,p=h.direction,y=h.dataKey;return O.cloneElement(c,{key:"".concat(p,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(d,v){return{x:d.cx,y:d.cy,value:p==="x"?+d.node.x:+d.node.y,errorVal:_e(d,v)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,l=vt(this.props,!1),u=vt(a,!1),c,f;if(o==="joint")c=i.map(function(b){return{x:b.cx,y:b.cy}});else if(o==="fitting"){var h=g5(i),p=h.xmin,y=h.xmax,m=h.a,d=h.b,v=function(_){return m*_+d};c=[{x:p,y:v(p)},{x:y,y:v(y)}]}var w=Dr(Dr(Dr({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,w):bt(a)?f=a(w):f=O.createElement(Zi,As({},w,{type:s})),O.createElement(Rt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,l=n.xAxis,u=n.yAxis,c=n.left,f=n.top,h=n.width,p=n.height,y=n.id,m=n.isAnimationActive;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,v=Ot("recharts-scatter",s),w=l&&l.allowDataOverflow,b=u&&u.allowDataOverflow,_=w||b,g=gt(y)?this.id:y;return O.createElement(Rt,{className:v,clipPath:_?"url(#clipPath-".concat(g,")"):null},w||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:w?c:c-h/2,y:b?f:f-p/2,width:w?h:h*2,height:b?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(Rt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||d)&&_n.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);ui(sf,"displayName","Scatter");ui(sf,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!_i.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});ui(sf,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,c=sr(i.props.children,x0),f=gt(t.dataKey)?i.props.dataKey:t.dataKey,h=gt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:of.defaultProps.range,m=y&&y[0],d=t.scale.bandwidth?t.scale.bandwidth():0,v=r.scale.bandwidth?r.scale.bandwidth():0,w=a.map(function(b,_){var g=_e(b,f),x=_e(b,h),S=!gt(p)&&_e(b,p)||"-",A=[{name:gt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:g,payload:b,dataKey:f,type:u},{name:gt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:x,payload:b,dataKey:h,type:u}];S!=="-"&&A.push({name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:b,dataKey:p,type:u});var T=oo({axis:t,ticks:o,bandSize:d,entry:b,index:_,dataKey:f}),C=oo({axis:r,ticks:s,bandSize:v,entry:b,index:_,dataKey:h}),P=S!=="-"?n.scale(S):m,E=Math.sqrt(Math.max(P,0)/Math.PI);return Dr(Dr({},b),{},{cx:T,cy:C,x:T-E,y:C-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:P,node:{x:g,y:x,z:S},tooltipPayload:A,tooltipPosition:{x:T,y:C},payload:b},c&&c[_]&&c[_].props)});return Dr({points:w},l)});function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function OY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZM(n.key),n)}}function PY(e,t,r){return t&&TY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EY(e,t,r){return t=vc(t),CY(e,XM()?Reflect.construct(t,r||[],vc(e).constructor):t.apply(e,r))}function CY(e,t){if(t&&(xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MY(e)}function MY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XM=function(){return!!e})()}function vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vc(e)}function kY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ug(e,t)}function Ug(e,t){return Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ug(e,t)}function VM(e,t,r){return t=ZM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZM(e){var t=$Y(e,"string");return xo(t)=="symbol"?t:t+""}function $Y(e,t){if(xo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wg.apply(this,arguments)}function jY(e){var t=e.xAxisId,r=M0(),n=k0(),i=OM(t);return i==null?null:qr.createElement(Do,Wg({},i,{className:Ot("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Nn(o,!0)}}))}var lf=(function(e){function t(){return OY(this,t),EY(this,t,arguments)}return kY(t,e),PY(t,[{key:"render",value:function(){return qr.createElement(jY,this.props)}}])})(qr.Component);VM(lf,"displayName","XAxis");VM(lf,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function RY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tk(n.key),n)}}function IY(e,t,r){return t&&DY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NY(e,t,r){return t=bc(t),LY(e,JM()?Reflect.construct(t,r||[],bc(e).constructor):t.apply(e,r))}function LY(e,t){if(t&&(wo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BY(e)}function BY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JM=function(){return!!e})()}function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bc(e)}function qY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hg(e,t)}function Hg(e,t){return Hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hg(e,t)}function QM(e,t,r){return t=tk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tk(e){var t=FY(e,"string");return wo(t)=="symbol"?t:t+""}function FY(e,t){if(wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gg.apply(this,arguments)}var zY=function(t){var r=t.yAxisId,n=M0(),i=k0(),a=TM(r);return a==null?null:qr.createElement(Do,Gg({},a,{className:Ot("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Nn(s,!0)}}))},uf=(function(e){function t(){return RY(this,t),NY(this,t,arguments)}return qY(t,e),IY(t,[{key:"render",value:function(){return qr.createElement(zY,this.props)}}])})(qr.Component);QM(uf,"displayName","YAxis");QM(uf,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function DO(e){return GY(e)||HY(e)||WY(e)||UY()}function UY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
158
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WY(e,t){if(e){if(typeof e=="string")return Kg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kg(e,t)}}function HY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GY(e){if(Array.isArray(e))return Kg(e)}function Kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Yg=function(t,r,n,i,a){var o=sr(t,Qc),s=sr(t,ef),l=[].concat(DO(o),DO(s)),u=sr(t,nf),c="".concat(i,"Id"),f=i[0],h=r;if(l.length&&(h=l.reduce(function(m,d){if(d.props[c]===n&&xn(d.props,"extendDomain")&&nt(d.props[f])){var v=d.props[f];return[Math.min(m[0],v),Math.max(m[1],v)]}return m},h)),u.length){var p="".concat(f,"1"),y="".concat(f,"2");h=u.reduce(function(m,d){if(d.props[c]===n&&xn(d.props,"extendDomain")&&nt(d.props[p])&&nt(d.props[y])){var v=d.props[p],w=d.props[y];return[Math.min(m[0],v,w),Math.max(m[1],v,w)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,d){return nt(d)?[Math.min(m[0],d),Math.max(m[1],d)]:m},h)),h},Ym={exports:{}},IO;function KY(){return IO||(IO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||l,h),y=r?r+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],p]:l._events[y].push(p):(l._events[y]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,h,p,y){var m=r?r+u:u;if(!this._events[m])return!1;var d=this._events[m],v=arguments.length,w,b;if(d.fn){switch(d.once&&this.removeListener(u,d.fn,void 0,!0),v){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,c),!0;case 3:return d.fn.call(d.context,c,f),!0;case 4:return d.fn.call(d.context,c,f,h),!0;case 5:return d.fn.call(d.context,c,f,h,p),!0;case 6:return d.fn.call(d.context,c,f,h,p,y),!0}for(b=1,w=new Array(v-1);b<v;b++)w[b-1]=arguments[b];d.fn.apply(d.context,w)}else{var _=d.length,g;for(b=0;b<_;b++)switch(d[b].once&&this.removeListener(u,d[b].fn,void 0,!0),v){case 1:d[b].fn.call(d[b].context);break;case 2:d[b].fn.call(d[b].context,c);break;case 3:d[b].fn.call(d[b].context,c,f);break;case 4:d[b].fn.call(d[b].context,c,f,h);break;default:if(!w)for(g=1,w=new Array(v-1);g<v;g++)w[g-1]=arguments[g];d[b].fn.apply(d[b].context,w)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,h){var p=r?r+u:u;if(!this._events[p])return this;if(!c)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===c&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var m=0,d=[],v=y.length;m<v;m++)(y[m].fn!==c||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(Ym)),Ym.exports}var YY=KY();const XY=qt(YY);var Xm=new XY,Vm="recharts.syncMouseEvents";function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function VY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ek(n.key),n)}}function JY(e,t,r){return t&&ZY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zm(e,t,r){return t=ek(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ek(e){var t=QY(e,"string");return yl(t)=="symbol"?t:t+""}function QY(e,t){if(yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var tX=(function(){function e(){VY(this,e),Zm(this,"activeIndex",0),Zm(this,"coordinateList",[]),Zm(this,"layout","horizontal")}return JY(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+u,h=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])})();function eX(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&nt(n)&&nt(i))return!0}return!1}function rX(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function rk(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=$e(t,r,n,i),s=$e(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function nX(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,h=$e(s,l,u,f),p=$e(s,l,c,f);n=h.x,i=h.y,a=p.x,o=p.y}else return rk(t);return[{x:n,y:i},{x:a,y:o}]}function gl(e){"@babel/helpers - typeof";return gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gl(e)}function NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){iX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iX(e,t,r){return t=aX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aX(e){var t=oX(e,"string");return gl(t)=="symbol"?t:t+""}function oX(e,t){if(gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sX(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=Zi;if(h==="ScatterChart")y=o,m=DG;else if(h==="BarChart")y=rX(f,o,l,c),m=T0;else if(f==="radial"){var d=rk(o),v=d.cx,w=d.cy,b=d.radius,_=d.startAngle,g=d.endAngle;y={cx:v,cy:w,startAngle:_,endAngle:g,innerRadius:b,outerRadius:b},m=QC}else y={points:nX(f,o,l)},m=Zi;var x=tu(tu(tu(tu({stroke:"#ccc",pointerEvents:"none"},l),y),vt(p,!1)),{},{payload:s,payloadIndex:u,className:Ot("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,x):O.createElement(m,x)}var lX=["item"],uX=["children","className","width","height","style","compact","title","desc"];function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ja.apply(this,arguments)}function LO(e,t){return hX(e)||fX(e,t)||ik(e,t)||cX()}function cX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
159
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function hX(e){if(Array.isArray(e))return e}function BO(e,t){if(e==null)return{};var r=pX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ak(n.key),n)}}function yX(e,t,r){return t&&mX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gX(e,t,r){return t=_c(t),vX(e,nk()?Reflect.construct(t,r||[],_c(e).constructor):t.apply(e,r))}function vX(e,t){if(t&&(So(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bX(e)}function bX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nk=function(){return!!e})()}function _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_c(e)}function _X(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xg(e,t)}function Xg(e,t){return Xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xg(e,t)}function Ao(e){return SX(e)||wX(e)||ik(e)||xX()}function xX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
160
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ik(e,t){if(e){if(typeof e=="string")return Vg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vg(e,t)}}function wX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SX(e){if(Array.isArray(e))return Vg(e)}function Vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pt(e,t,r){return t=ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ak(e){var t=AX(e,"string");return So(t)=="symbol"?t:t+""}function AX(e,t){if(So(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(So(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OX={xAxis:["bottom","top"],yAxis:["left","right"]},TX={width:"100%",height:"100%"},ok={x:0,y:0};function eu(e){return e}var PX=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},EX=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return X(X(X({},i),$e(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return X(X(X({},i),$e(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return ok},cf=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Ao(s),Ao(u)):s},[]);return o.length>0?o:t&&t.length&&nt(i)&&nt(a)?t.slice(i,a+1):[]};function sk(e){return e==="number"?[0,"auto"]:void 0}var Zg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=cf(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?s:f;h=Nu(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(Ao(l),[VC(u,h)]):l},[])},FO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=PX(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=hW(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,h=Zg(t,r,c,f),p=EX(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},CX=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=t.stackOffset,p=KC(c,a);return n.reduce(function(y,m){var d,v=m.type.defaultProps!==void 0?X(X({},m.type.defaultProps),m.props):m.props,w=v.type,b=v.dataKey,_=v.allowDataOverflow,g=v.allowDuplicatedCategory,x=v.scale,S=v.ticks,A=v.includeHidden,T=v[o];if(y[T])return y;var C=cf(t.data,{graphicalItems:i.filter(function(L){var W,Y=o in L.props?L.props[o]:(W=L.type.defaultProps)===null||W===void 0?void 0:W[o];return Y===T}),dataStartIndex:l,dataEndIndex:u}),P=C.length,E,k,$;eX(v.domain,_,w)&&(E=fg(v.domain,null,_),p&&(w==="number"||x!=="auto")&&($=_s(C,b,"category")));var j=sk(w);if(!E||E.length===0){var M,I=(M=v.domain)!==null&&M!==void 0?M:j;if(b){if(E=_s(C,b,w),w==="category"&&p){var q=y5(E);g&&q?(k=E,E=Fs(0,P)):g||(E=GS(I,E,m).reduce(function(L,W){return L.indexOf(W)>=0?L:[].concat(Ao(L),[W])},[]))}else if(w==="category")g?E=E.filter(function(L){return L!==""&&!gt(L)}):E=GS(I,E,m).reduce(function(L,W){return L.indexOf(W)>=0||W===""||gt(W)?L:[].concat(Ao(L),[W])},[]);else if(w==="number"){var F=gW(C,i.filter(function(L){var W,Y,z=o in L.props?L.props[o]:(W=L.type.defaultProps)===null||W===void 0?void 0:W[o],V="hide"in L.props?L.props.hide:(Y=L.type.defaultProps)===null||Y===void 0?void 0:Y.hide;return z===T&&(A||!V)}),b,a,c);F&&(E=F)}p&&(w==="number"||x!=="auto")&&($=_s(C,b,"category"))}else p?E=Fs(0,P):s&&s[T]&&s[T].hasStack&&w==="number"?E=h==="expand"?[0,1]:XC(s[T].stackGroups,l,u):E=GC(C,i.filter(function(L){var W=o in L.props?L.props[o]:L.type.defaultProps[o],Y="hide"in L.props?L.props.hide:L.type.defaultProps.hide;return W===T&&(A||!Y)}),w,c,!0);if(w==="number")E=Yg(f,E,T,a,S),I&&(E=fg(I,E,_));else if(w==="category"&&I){var N=I,R=E.every(function(L){return N.indexOf(L)>=0});R&&(E=N)}}return X(X({},y),{},pt({},T,X(X({},v),{},{axisType:a,domain:E,categoricalDomain:$,duplicateDomain:k,originalDomain:(d=v.domain)!==null&&d!==void 0?d:j,isCategorical:p,layout:c})))},{})},MX=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=cf(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=h.length,y=KC(c,a),m=-1;return n.reduce(function(d,v){var w=v.type.defaultProps!==void 0?X(X({},v.type.defaultProps),v.props):v.props,b=w[o],_=sk("number");if(!d[b]){m++;var g;return y?g=Fs(0,p):s&&s[b]&&s[b].hasStack?(g=XC(s[b].stackGroups,l,u),g=Yg(f,g,b,a)):(g=fg(_,GC(h,n.filter(function(x){var S,A,T=o in x.props?x.props[o]:(S=x.type.defaultProps)===null||S===void 0?void 0:S[o],C="hide"in x.props?x.props.hide:(A=x.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===b&&!C}),"number",c),i.defaultProps.allowDataOverflow),g=Yg(f,g,b,a)),X(X({},d),{},pt({},b,X(X({axisType:a},i.defaultProps),{},{hide:!0,orientation:Fr(OX,"".concat(a,".").concat(m%2),null),domain:g,originalDomain:_,isCategorical:y,layout:c})))}return d},{})},kX=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),h=sr(c,a),p={};return h&&h.length?p=CX(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=MX(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},$X=function(t){var r=ni(t),n=Nn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:zc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Yu(r,n)}},zO=function(t){var r=t.children,n=t.defaultShowTooltip,i=vr(r,uo),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},jX=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ln(r&&r.type);return n&&n.indexOf("Bar")>=0})},UO=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},RX=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,h=n.margin||{},p=vr(f,uo),y=vr(f,Xi),m=Object.keys(l).reduce(function(g,x){var S=l[x],A=S.orientation;return!S.mirror&&!S.hide?X(X({},g),{},pt({},A,g[A]+S.width)):g},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(g,x){var S=o[x],A=S.orientation;return!S.mirror&&!S.hide?X(X({},g),{},pt({},A,Fr(g,"".concat(A))+S.height)):g},{top:h.top||0,bottom:h.bottom||0}),v=X(X({},d),m),w=v.bottom;p&&(v.bottom+=p.props.height||uo.defaultProps.height),y&&r&&(v=mW(v,i,n,r));var b=u-v.left-v.right,_=c-v.top-v.bottom;return X(X({brushBottom:w},v),{},{width:Math.max(b,0),height:Math.max(_,0)})},DX=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},IX=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,h=function(v,w){var b=w.graphicalItems,_=w.stackGroups,g=w.offset,x=w.updateId,S=w.dataStartIndex,A=w.dataEndIndex,T=v.barSize,C=v.layout,P=v.barGap,E=v.barCategoryGap,k=v.maxBarSize,$=UO(C),j=$.numericAxisName,M=$.cateAxisName,I=jX(b),q=[];return b.forEach(function(F,N){var R=cf(v.data,{graphicalItems:[F],dataStartIndex:S,dataEndIndex:A}),L=F.type.defaultProps!==void 0?X(X({},F.type.defaultProps),F.props):F.props,W=L.dataKey,Y=L.maxBarSize,z=L["".concat(j,"Id")],V=L["".concat(M,"Id")],J={},K=l.reduce(function(dt,xt){var $t,Kt,St=w["".concat(xt.axisType,"Map")],Ct=L["".concat(xt.axisType,"Id")];St&&St[Ct]||xt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?er(!1,"Specifying a(n) ".concat(xt.axisType,"Id requires a corresponding ").concat(xt.axisType,"Id on the targeted graphical component ").concat(($t=F==null||(Kt=F.type)===null||Kt===void 0?void 0:Kt.displayName)!==null&&$t!==void 0?$t:"")):er());var Se=St[Ct];return X(X({},dt),{},pt(pt({},xt.axisType,Se),"".concat(xt.axisType,"Ticks"),Nn(Se)))},J),B=K[M],G=K["".concat(M,"Ticks")],Z=_&&_[z]&&_[z].hasStack&&CW(F,_[z].stackGroups),D=Ln(F.type).indexOf("Bar")>=0,ot=Yu(B,G),U=[],it=I&&pW({barSize:T,stackGroups:_,totalSize:DX(K,M)});if(D){var ft,st,ht=gt(Y)?k:Y,Tt=(ft=(st=Yu(B,G,!0))!==null&&st!==void 0?st:ht)!==null&&ft!==void 0?ft:0;U=dW({barGap:P,barCategoryGap:E,bandSize:Tt!==ot?Tt:ot,sizeList:it[V],maxBarSize:ht}),Tt!==ot&&(U=U.map(function(dt){return X(X({},dt),{},{position:X(X({},dt.position),{},{offset:dt.position.offset-Tt/2})})}))}var at=F&&F.type&&F.type.getComposedData;at&&q.push({props:X(X({},at(X(X({},K),{},{displayedData:R,props:v,dataKey:W,item:F,bandSize:ot,barPosition:U,offset:g,stackedData:Z,layout:C,dataStartIndex:S,dataEndIndex:A}))),{},pt(pt(pt({key:F.key||"item-".concat(N)},j,K[j]),M,K[M]),"animationId",x)),childIndex:C5(F,v.children),item:F})}),q},p=function(v,w){var b=v.props,_=v.dataStartIndex,g=v.dataEndIndex,x=v.updateId;if(!Cw({props:b}))return null;var S=b.children,A=b.layout,T=b.stackOffset,C=b.data,P=b.reverseStackOrder,E=UO(A),k=E.numericAxisName,$=E.cateAxisName,j=sr(S,n),M=TW(C,j,"".concat(k,"Id"),"".concat($,"Id"),T,P),I=l.reduce(function(L,W){var Y="".concat(W.axisType,"Map");return X(X({},L),{},pt({},Y,kX(b,X(X({},W),{},{graphicalItems:j,stackGroups:W.axisType===k&&M,dataStartIndex:_,dataEndIndex:g}))))},{}),q=RX(X(X({},I),{},{props:b,graphicalItems:j}),w==null?void 0:w.legendBBox);Object.keys(I).forEach(function(L){I[L]=c(b,I[L],q,L.replace("Map",""),r)});var F=I["".concat($,"Map")],N=$X(F),R=h(b,X(X({},I),{},{dataStartIndex:_,dataEndIndex:g,updateId:x,graphicalItems:j,stackGroups:M,offset:q}));return X(X({formattedGraphicalItems:R,graphicalItems:j,offset:q,stackGroups:M},N),I)},y=(function(d){function v(w){var b,_,g;return dX(this,v),g=gX(this,v,[w]),pt(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),pt(g,"accessibilityManager",new tX),pt(g,"handleLegendBBoxUpdate",function(x){if(x){var S=g.state,A=S.dataStartIndex,T=S.dataEndIndex,C=S.updateId;g.setState(X({legendBBox:x},p({props:g.props,dataStartIndex:A,dataEndIndex:T,updateId:C},X(X({},g.state),{},{legendBBox:x}))))}}),pt(g,"handleReceiveSyncEvent",function(x,S,A){if(g.props.syncId===x){if(A===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(S)}}),pt(g,"handleBrushChange",function(x){var S=x.startIndex,A=x.endIndex;if(S!==g.state.dataStartIndex||A!==g.state.dataEndIndex){var T=g.state.updateId;g.setState(function(){return X({dataStartIndex:S,dataEndIndex:A},p({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:T},g.state))}),g.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),pt(g,"handleMouseEnter",function(x){var S=g.getMouseInfo(x);if(S){var A=X(X({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseEnter;bt(T)&&T(A,x)}}),pt(g,"triggeredAfterMouseMove",function(x){var S=g.getMouseInfo(x),A=S?X(X({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseMove;bt(T)&&T(A,x)}),pt(g,"handleItemMouseEnter",function(x){g.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),pt(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),pt(g,"handleMouseMove",function(x){x.persist(),g.throttleTriggeredAfterMouseMove(x)}),pt(g,"handleMouseLeave",function(x){g.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseLeave;bt(A)&&A(S,x)}),pt(g,"handleOuterEvent",function(x){var S=E5(x),A=Fr(g.props,"".concat(S));if(S&&bt(A)){var T,C;/.*touch.*/i.test(S)?C=g.getMouseInfo(x.changedTouches[0]):C=g.getMouseInfo(x),A((T=C)!==null&&T!==void 0?T:{},x)}}),pt(g,"handleClick",function(x){var S=g.getMouseInfo(x);if(S){var A=X(X({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onClick;bt(T)&&T(A,x)}}),pt(g,"handleMouseDown",function(x){var S=g.props.onMouseDown;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),pt(g,"handleMouseUp",function(x){var S=g.props.onMouseUp;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),pt(g,"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),pt(g,"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&g.handleMouseDown(x.changedTouches[0])}),pt(g,"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&g.handleMouseUp(x.changedTouches[0])}),pt(g,"handleDoubleClick",function(x){var S=g.props.onDoubleClick;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),pt(g,"handleContextMenu",function(x){var S=g.props.onContextMenu;if(bt(S)){var A=g.getMouseInfo(x);S(A,x)}}),pt(g,"triggerSyncEvent",function(x){g.props.syncId!==void 0&&Xm.emit(Vm,g.props.syncId,x,g.eventEmitterSymbol)}),pt(g,"applySyncEvent",function(x){var S=g.props,A=S.layout,T=S.syncMethod,C=g.state.updateId,P=x.dataStartIndex,E=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)g.setState(X({dataStartIndex:P,dataEndIndex:E},p({props:g.props,dataStartIndex:P,dataEndIndex:E,updateId:C},g.state)));else if(x.activeTooltipIndex!==void 0){var k=x.chartX,$=x.chartY,j=x.activeTooltipIndex,M=g.state,I=M.offset,q=M.tooltipTicks;if(!I)return;if(typeof T=="function")j=T(q,x);else if(T==="value"){j=-1;for(var F=0;F<q.length;F++)if(q[F].value===x.activeLabel){j=F;break}}var N=X(X({},I),{},{x:I.left,y:I.top}),R=Math.min(k,N.x+N.width),L=Math.min($,N.y+N.height),W=q[j]&&q[j].value,Y=Zg(g.state,g.props.data,j),z=q[j]?{x:A==="horizontal"?q[j].coordinate:R,y:A==="horizontal"?L:q[j].coordinate}:ok;g.setState(X(X({},x),{},{activeLabel:W,activeCoordinate:z,activePayload:Y,activeTooltipIndex:j}))}else g.setState(x)}),pt(g,"renderCursor",function(x){var S,A=g.state,T=A.isTooltipActive,C=A.activeCoordinate,P=A.activePayload,E=A.offset,k=A.activeTooltipIndex,$=A.tooltipAxisBandSize,j=g.getTooltipEventType(),M=(S=x.props.active)!==null&&S!==void 0?S:T,I=g.props.layout,q=x.key||"_recharts-cursor";return O.createElement(sX,{key:q,activeCoordinate:C,activePayload:P,activeTooltipIndex:k,chartName:r,element:x,isActive:M,layout:I,offset:E,tooltipAxisBandSize:$,tooltipEventType:j})}),pt(g,"renderPolarAxis",function(x,S,A){var T=Fr(x,"type.axisType"),C=Fr(g.state,"".concat(T,"Map")),P=x.type.defaultProps,E=P!==void 0?X(X({},P),x.props):x.props,k=C&&C[E["".concat(T,"Id")]];return O.cloneElement(x,X(X({},k),{},{className:Ot(T,k.className),key:x.key||"".concat(S,"-").concat(A),ticks:Nn(k,!0)}))}),pt(g,"renderPolarGrid",function(x){var S=x.props,A=S.radialLines,T=S.polarAngles,C=S.polarRadius,P=g.state,E=P.radiusAxisMap,k=P.angleAxisMap,$=ni(E),j=ni(k),M=j.cx,I=j.cy,q=j.innerRadius,F=j.outerRadius;return O.cloneElement(x,{polarAngles:Array.isArray(T)?T:Nn(j,!0).map(function(N){return N.coordinate}),polarRadius:Array.isArray(C)?C:Nn($,!0).map(function(N){return N.coordinate}),cx:M,cy:I,innerRadius:q,outerRadius:F,key:x.key||"polar-grid",radialLines:A})}),pt(g,"renderLegend",function(){var x=g.state.formattedGraphicalItems,S=g.props,A=S.children,T=S.width,C=S.height,P=g.props.margin||{},E=T-(P.left||0)-(P.right||0),k=WC({children:A,formattedGraphicalItems:x,legendWidth:E,legendContent:u});if(!k)return null;var $=k.item,j=BO(k,lX);return O.cloneElement($,X(X({},j),{},{chartWidth:T,chartHeight:C,margin:P,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),pt(g,"renderTooltip",function(){var x,S=g.props,A=S.children,T=S.accessibilityLayer,C=vr(A,dn);if(!C)return null;var P=g.state,E=P.isTooltipActive,k=P.activeCoordinate,$=P.activePayload,j=P.activeLabel,M=P.offset,I=(x=C.props.active)!==null&&x!==void 0?x:E;return O.cloneElement(C,{viewBox:X(X({},M),{},{x:M.left,y:M.top}),active:I,label:j,payload:I?$:[],coordinate:k,accessibilityLayer:T})}),pt(g,"renderBrush",function(x){var S=g.props,A=S.margin,T=S.data,C=g.state,P=C.offset,E=C.dataStartIndex,k=C.dataEndIndex,$=C.updateId;return O.cloneElement(x,{key:x.key||"_recharts-brush",onChange:Yl(g.handleBrushChange,x.props.onChange),data:T,x:nt(x.props.x)?x.props.x:P.left,y:nt(x.props.y)?x.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:nt(x.props.width)?x.props.width:P.width,startIndex:E,endIndex:k,updateId:"brush-".concat($)})}),pt(g,"renderReferenceElement",function(x,S,A){if(!x)return null;var T=g,C=T.clipPathId,P=g.state,E=P.xAxisMap,k=P.yAxisMap,$=P.offset,j=x.type.defaultProps||{},M=x.props,I=M.xAxisId,q=I===void 0?j.xAxisId:I,F=M.yAxisId,N=F===void 0?j.yAxisId:F;return O.cloneElement(x,{key:x.key||"".concat(S,"-").concat(A),xAxis:E[q],yAxis:k[N],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:C})}),pt(g,"renderActivePoints",function(x){var S=x.item,A=x.activePoint,T=x.basePoint,C=x.childIndex,P=x.isRange,E=[],k=S.props.key,$=S.item.type.defaultProps!==void 0?X(X({},S.item.type.defaultProps),S.item.props):S.item.props,j=$.activeDot,M=$.dataKey,I=X(X({index:C,dataKey:M,cx:A.x,cy:A.y,r:4,fill:A0(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},vt(j,!1)),Lu(j));return E.push(v.renderActiveDot(j,I,"".concat(k,"-activePoint-").concat(C))),T?E.push(v.renderActiveDot(j,X(X({},I),{},{cx:T.x,cy:T.y}),"".concat(k,"-basePoint-").concat(C))):P&&E.push(null),E}),pt(g,"renderGraphicChild",function(x,S,A){var T=g.filterFormatItem(x,S,A);if(!T)return null;var C=g.getTooltipEventType(),P=g.state,E=P.isTooltipActive,k=P.tooltipAxis,$=P.activeTooltipIndex,j=P.activeLabel,M=g.props.children,I=vr(M,dn),q=T.props,F=q.points,N=q.isRange,R=q.baseLine,L=T.item.type.defaultProps!==void 0?X(X({},T.item.type.defaultProps),T.item.props):T.item.props,W=L.activeDot,Y=L.hide,z=L.activeBar,V=L.activeShape,J=!!(!Y&&E&&I&&(W||z||V)),K={};C!=="axis"&&I&&I.props.trigger==="click"?K={onClick:Yl(g.handleItemMouseEnter,x.props.onClick)}:C!=="axis"&&(K={onMouseLeave:Yl(g.handleItemMouseLeave,x.props.onMouseLeave),onMouseEnter:Yl(g.handleItemMouseEnter,x.props.onMouseEnter)});var B=O.cloneElement(x,X(X({},T.props),K));function G(xt){return typeof k.dataKey=="function"?k.dataKey(xt.payload):null}if(J)if($>=0){var Z,D;if(k.dataKey&&!k.allowDuplicatedCategory){var ot=typeof k.dataKey=="function"?G:"payload.".concat(k.dataKey.toString());Z=Nu(F,ot,j),D=N&&R&&Nu(R,ot,j)}else Z=F==null?void 0:F[$],D=N&&R&&R[$];if(V||z){var U=x.props.activeIndex!==void 0?x.props.activeIndex:$;return[O.cloneElement(x,X(X(X({},T.props),K),{},{activeIndex:U})),null,null]}if(!gt(Z))return[B].concat(Ao(g.renderActivePoints({item:T,activePoint:Z,basePoint:D,childIndex:$,isRange:N})))}else{var it,ft=(it=g.getItemByXY(g.state.activeCoordinate))!==null&&it!==void 0?it:{graphicalItem:B},st=ft.graphicalItem,ht=st.item,Tt=ht===void 0?x:ht,at=st.childIndex,dt=X(X(X({},T.props),K),{},{activeIndex:at});return[O.cloneElement(Tt,dt),null,null]}return N?[B,null,null]:[B,null]}),pt(g,"renderCustomized",function(x,S,A){return O.cloneElement(x,X(X({key:"recharts-customized-".concat(A)},g.props),g.state))}),pt(g,"renderMap",{CartesianGrid:{handler:eu,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:eu},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:eu},YAxis:{handler:eu},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((b=w.id)!==null&&b!==void 0?b:da("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=SC(g.triggeredAfterMouseMove,(_=w.throttleDelay)!==null&&_!==void 0?_:1e3/60),g.state={},g}return _X(v,d),yX(v,[{key:"componentDidMount",value:function(){var b,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,_=b.children,g=b.data,x=b.height,S=b.layout,A=vr(_,dn);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=Zg(this.state,g,T,C),E=this.state.tooltipTicks[T].coordinate,k=(this.state.offset.top+x)/2,$=S==="horizontal",j=$?{x:E,y:k}:{y:E,x:k},M=this.state.formattedGraphicalItems.find(function(q){var F=q.item;return F.type.name==="Scatter"});M&&(j=X(X({},j),M.props.points[T].tooltipPosition),P=M.props.points[T].tooltipPayload);var I={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:C,activePayload:P,activeCoordinate:j};this.setState(I),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var g,x;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(b){Wy([vr(b.children,dn)],[vr(this.props.children,dn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=vr(this.props.children,dn);if(b&&typeof b.props.shared=="boolean"){var _=b.props.shared?"axis":"item";return s.indexOf(_)>=0?_:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var _=this.container,g=_.getBoundingClientRect(),x=j3(g),S={chartX:Math.round(b.pageX-x.left),chartY:Math.round(b.pageY-x.top)},A=g.width/_.offsetWidth||1,T=this.inRange(S.chartX,S.chartY,A);if(!T)return null;var C=this.state,P=C.xAxisMap,E=C.yAxisMap,k=this.getTooltipEventType(),$=FO(this.state,this.props.data,this.props.layout,T);if(k!=="axis"&&P&&E){var j=ni(P).scale,M=ni(E).scale,I=j&&j.invert?j.invert(S.chartX):null,q=M&&M.invert?M.invert(S.chartY):null;return X(X({},S),{},{xValue:I,yValue:q},$)}return $?X(X({},S),$):null}},{key:"inRange",value:function(b,_){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,S=b/g,A=_/g;if(x==="horizontal"||x==="vertical"){var T=this.state.offset,C=S>=T.left&&S<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return C?{x:S,y:A}:null}var P=this.state,E=P.angleAxisMap,k=P.radiusAxisMap;if(E&&k){var $=ni(E);return XS({x:S,y:A},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,_=this.getTooltipEventType(),g=vr(b,dn),x={};g&&_==="axis"&&(g.props.trigger==="click"?x={onClick:this.handleClick}:x={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=Lu(this.props,this.handleOuterEvent);return X(X({},S),x)}},{key:"addListener",value:function(){Xm.on(Vm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Xm.removeListener(Vm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,_,g){for(var x=this.state.formattedGraphicalItems,S=0,A=x.length;S<A;S++){var T=x[S];if(T.item===b||T.props.key===b.key||_===Ln(T.item.type)&&g===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,_=this.state.offset,g=_.left,x=_.top,S=_.height,A=_.width;return O.createElement("defs",null,O.createElement("clipPath",{id:b},O.createElement("rect",{x:g,y:x,height:S,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(_,g){var x=LO(g,2),S=x[0],A=x[1];return X(X({},_),{},pt({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(_,g){var x=LO(g,2),S=x[0],A=x[1];return X(X({},_),{},pt({},S,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(b){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(b){var _=this.state,g=_.formattedGraphicalItems,x=_.activeItem;if(g&&g.length)for(var S=0,A=g.length;S<A;S++){var T=g[S],C=T.props,P=T.item,E=P.type.defaultProps!==void 0?X(X({},P.type.defaultProps),P.props):P.props,k=Ln(P.type);if(k==="Bar"){var $=(C.data||[]).find(function(q){return OG(b,q)});if($)return{graphicalItem:T,payload:$}}else if(k==="RadialBar"){var j=(C.data||[]).find(function(q){return XS(b,q)});if(j)return{graphicalItem:T,payload:j}}else if(Vc(T,x)||Zc(T,x)||hl(T,x)){var M=d6({graphicalItem:T,activeTooltipItem:x,itemData:E.data}),I=E.activeIndex===void 0?M:E.activeIndex;return{graphicalItem:X(X({},T),{},{childIndex:I}),payload:hl(T,x)?E.data[M]:T.props.data[M]}}}return null}},{key:"render",value:function(){var b=this;if(!Cw(this))return null;var _=this.props,g=_.children,x=_.className,S=_.width,A=_.height,T=_.style,C=_.compact,P=_.title,E=_.desc,k=BO(_,uX),$=vt(k,!1);if(C)return O.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Gy,ja({},$,{width:S,height:A,title:P,desc:E}),this.renderClipPath(),kw(g,this.renderMap)));if(this.props.accessibilityLayer){var j,M;$.tabIndex=(j=this.props.tabIndex)!==null&&j!==void 0?j:0,$.role=(M=this.props.role)!==null&&M!==void 0?M:"application",$.onKeyDown=function(q){b.accessibilityManager.keyboardEvent(q)},$.onFocus=function(){b.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return O.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",ja({className:Ot("recharts-wrapper",x),style:X({position:"relative",cursor:"default",width:S,height:A},T)},I,{ref:function(F){b.container=F}}),O.createElement(Gy,ja({},$,{width:S,height:A,title:P,desc:E,style:TX}),this.renderClipPath(),kw(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);pt(y,"displayName",r),pt(y,"defaultProps",X({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),pt(y,"getDerivedStateFromProps",function(d,v){var w=d.dataKey,b=d.data,_=d.children,g=d.width,x=d.height,S=d.layout,A=d.stackOffset,T=d.margin,C=v.dataStartIndex,P=v.dataEndIndex;if(v.updateId===void 0){var E=zO(d);return X(X(X({},E),{},{updateId:0},p(X(X({props:d},E),{},{updateId:0}),v)),{},{prevDataKey:w,prevData:b,prevWidth:g,prevHeight:x,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(w!==v.prevDataKey||b!==v.prevData||g!==v.prevWidth||x!==v.prevHeight||S!==v.prevLayout||A!==v.prevStackOffset||!Fa(T,v.prevMargin)){var k=zO(d),$={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},j=X(X({},FO(v,b,S)),{},{updateId:v.updateId+1}),M=X(X(X({},k),$),j);return X(X(X({},M),p(X({props:d},M),v)),{},{prevDataKey:w,prevData:b,prevWidth:g,prevHeight:x,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(!Wy(_,v.prevChildren)){var I,q,F,N,R=vr(_,uo),L=R&&(I=(q=R.props)===null||q===void 0?void 0:q.startIndex)!==null&&I!==void 0?I:C,W=R&&(F=(N=R.props)===null||N===void 0?void 0:N.endIndex)!==null&&F!==void 0?F:P,Y=L!==C||W!==P,z=!gt(b),V=z&&!Y?v.updateId:v.updateId+1;return X(X({updateId:V},p(X(X({props:d},v),{},{updateId:V,dataStartIndex:L,dataEndIndex:W}),v)),{},{prevChildren:_,dataStartIndex:L,dataEndIndex:W})}return null}),pt(y,"renderActiveDot",function(d,v,w){var b;return O.isValidElement(d)?b=O.cloneElement(d,v):bt(d)?b=d(v):b=O.createElement(Xc,v),O.createElement(Rt,{className:"recharts-active-dot",key:w},b)});var m=O.forwardRef(function(v,w){return O.createElement(y,ja({},v,{ref:w}))});return m.displayName=y.displayName,m},NX=IX({chartName:"ComposedChart",GraphicalChild:[af,wi,Ro,sf],axisComponents:[{axisType:"xAxis",AxisComp:lf},{axisType:"yAxis",AxisComp:uf},{axisType:"zAxis",AxisComp:of}],formatAxisMap:o4});const ts=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},LX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),BX=e=>new Intl.NumberFormat("en-US").format(e);function qX(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return ts()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,m)=>y.timestamp-m.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&ts()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),h},[t]),o=O.useMemo(()=>{if(!r||r.length===0)return ts()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(ts()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(ts()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),m=h.filter(d=>!y.has(d.dataKey));m.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",m.map(d=>d.dataKey))}}return h},[r,a]),{minTimestamp:s,maxTimestamp:l}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const h=a[0],p=a[a.length-1];return{minTimestamp:(h==null?void 0:h.timestamp)??0,maxTimestamp:(p==null?void 0:p.timestamp)??0}},[a]),u=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(h=>o.reduce((p,y)=>{const m=h[y.dataKey];return p+(typeof m=="number"?m:0)},0))),[a,o]),c=O.useMemo(()=>n||LX,[n]),f=O.useMemo(()=>i||BX,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:l,maxTotalValue:u,dateFormatter:c,valueFormatter:f}}function FX(e,t){const r=t-1-e,n=ps.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return ps[a]??ps[0]??"#000000"}function zX(e){return Array.from({length:e},(t,r)=>FX(r,e))}const Ea=zX(5),$n={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:or.neoDigitalGreen[600],inProgress:"#007bff",farthest:Ea[0],far:Ea[1],close:Ea[2],closest:Ea[3],completed:Ea[4],primary:"#007bff",secondary:"#6c757d",success:or.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:or.neoGrey[200],dark:"#343a40"},Et={dimensions:{height:400,width:"100%",minHeight:200},margin:{top:10,right:30,left:0,bottom:0},animation:{enabled:!0,duration:1500,easing:"ease"},display:{showHeader:!0,showLegend:!0,showTooltip:!0,showXAxis:!0,showYAxis:!0,showGrid:!0},curve:{type:"monotone"},stack:{offset:"none"},axis:{strokeColor:or.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:or.neoGrey[400],borderWidth:1,borderRadius:4,padding:10},legend:{iconSize:14,iconType:"square",layout:"horizontal",align:"center",verticalAlign:"bottom"},marker:{strokeColor:"#666",strokeWidth:2,strokeDasharray:"5 5",labelColor:"#666"}},UX={migration:Ea,severity:[$n.critical,$n.high,$n.medium,$n.low,$n.info],status:[$n.danger,$n.warning,$n.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},WX={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},HX=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=Et.display.showHeader,height:o=Et.dimensions.height,width:s=Et.dimensions.width,showLegend:l=Et.display.showLegend,showTooltip:u=Et.display.showTooltip,showXAxis:c=Et.display.showXAxis,showYAxis:f=Et.display.showYAxis,showGrid:h=Et.display.showGrid,enableAnimation:p=Et.animation.enabled,animationDuration:y=Et.animation.duration,animationEasing:m=Et.animation.easing,formatDate:d,formatValue:v,tooltipFormatter:w,slotProps:b,margin:_=Et.margin,curveType:g=Et.curve.type,stackOffset:x=Et.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:T=!1,zoomToSelection:C=!1})=>{const{processedData:P,processedCategories:E,dateFormatter:k,valueFormatter:$}=qX({data:e,categories:t,formatDate:d,formatValue:v}),[j,M]=O.useState(null),[I,q]=O.useState(!1),[F,N]=O.useState(null),[R,L]=O.useState(null),W=O.useRef(null),Y=S?[S[0],S[1]]:["dataMin","dataMax"],z=P.length>0?P[0].timestamp:0,V=P.length>0?P[P.length-1].timestamp:0,J=O.useCallback((at,dt)=>{const xt=at/dt*100,$t=V-z;return z+xt/100*$t},[z,V]),K=O.useCallback(at=>{const dt=V-z;return dt===0?0:(at-z)/dt*100},[z,V]),B=O.useCallback(at=>{if(!T)return;const dt=at.currentTarget.getBoundingClientRect(),xt=at.clientX-dt.left,$t=J(xt,dt.width);q(!0),N($t),L($t)},[T,J]),G=O.useCallback(at=>{if(!W.current)return;const dt=at.currentTarget.getBoundingClientRect(),xt=at.clientX-dt.left,$t=dt.width,Kt=J(xt,$t);if(I)F!==null&&L(Kt);else{const Ct=r.find(Se=>Math.abs(Se.timestamp-Kt)<2592e5);M((Ct==null?void 0:Ct.timestamp)??null)}},[I,F,J,r]),Z=O.useCallback(()=>{if(I&&F!==null&&R!==null&&A){const at=Math.min(F,R),dt=Math.max(F,R);at!==dt&&A([at,dt])}q(!1),N(null),L(null)},[I,F,R,A]),D=O.useCallback(()=>{Z(),M(null)},[Z]),U=(C?I:!0)&&I&&F!==null&&R!==null?{left:K(Math.min(F,R)),width:Math.abs(K(R)-K(F))}:null,ft=(S?P.filter(at=>at.timestamp>=S[0]&&at.timestamp<=S[1]):P).slice().reverse().map(at=>{const dt=r.find(xt=>xt.timestamp===at.timestamp);return dt&&dt.label?{...at,__markerLabel:dt.label}:at}),st=at=>k(at),ht=at=>$(at),Tt=({active:at,payload:dt,label:xt})=>{if(!at||!dt||dt.length===0)return null;const $t=ft.find(St=>St.timestamp===xt);if($t&&"__markerLabel"in $t){const Ct=String($t.__markerLabel).split(" - "),Se=Ct[0]||"",Pr=Ct[1]||"";return H.jsxs(tt.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[H.jsx(tt.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Pr}),H.jsx(tt.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:Se})]})}return H.jsxs(tt.Box,{sx:{backgroundColor:Et.tooltip.backgroundColor,border:`${Et.tooltip.borderWidth}px solid ${Et.tooltip.borderColor}`,borderRadius:Et.tooltip.borderRadius,padding:Et.tooltip.padding},children:[H.jsx(tt.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:k(xt)}),dt.map((St,Ct)=>H.jsxs(tt.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[H.jsx(tt.Box,{sx:{width:10,height:10,backgroundColor:St.color,borderRadius:"2px"}}),H.jsxs(tt.Typography,{sx:{fontSize:"14px"},children:[St.name,": ",$(St.value)]})]},`item-${Ct}`))]})};return H.jsxs(tt.Stack,{sx:{width:"100%",alignItems:"center"},...b==null?void 0:b.container,children:[a&&(n||i)&&H.jsxs(tt.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...b==null?void 0:b.header,children:[n&&H.jsx(tt.Typography,{variant:"h5",sx:{fontWeight:500},...b==null?void 0:b.title,children:n}),i&&H.jsx(tt.Typography,{variant:"body2",sx:{color:"text.secondary"},...b==null?void 0:b.subtitle,children:i})]}),H.jsxs(tt.Box,{ref:W,sx:{width:"100%",height:`${o}px`,minHeight:Et.dimensions.minHeight,position:"relative"},...b==null?void 0:b.chartContainer,children:[H.jsx(T3,{width:s,height:"100%",children:H.jsxs(NX,{data:ft,margin:_,stackOffset:x,children:[h&&H.jsx(NM,{strokeDasharray:"3 3",stroke:Et.axis.strokeColor,opacity:.3}),c&&H.jsx(lf,{dataKey:"timestamp",type:"number",domain:Y,tickFormatter:st,stroke:Et.axis.strokeColor,tick:{fill:Et.axis.tickColor},scale:"time"}),f&&H.jsx(uf,{tickFormatter:ht,stroke:Et.axis.strokeColor,tick:{fill:Et.axis.tickColor}}),u&&H.jsx(dn,{content:H.jsx(Tt,{})}),l&&H.jsx(Xi,{iconSize:Et.legend.iconSize,iconType:Et.legend.iconType,layout:Et.legend.layout,align:Et.legend.align,verticalAlign:Et.legend.verticalAlign}),E.map((at,dt)=>H.jsx(wi,{type:g,dataKey:at.dataKey,name:at.label,stackId:"1",stroke:at.color,fill:at.strokeDasharray?"transparent":at.color,fillOpacity:at.strokeDasharray?0:at.fillOpacity??.7,strokeWidth:at.strokeWidth??2,strokeDasharray:at.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:m,animationBegin:p?(E.length-1-dt)*100:0},at.dataKey)),r.filter(at=>j===null||at.timestamp===j).map((at,dt)=>H.jsx(Qc,{x:at.timestamp,stroke:at.color??Et.marker.strokeColor,strokeWidth:at.strokeWidth??Et.marker.strokeWidth,strokeDasharray:at.strokeDasharray??Et.marker.strokeDasharray,strokeOpacity:j===null?0:1},`marker-${at.timestamp}-${dt}`))]},S?`${S[0]}-${S[1]}`:"default")}),T&&H.jsxs(tt.Box,{sx:{position:"absolute",top:_.top||0,left:_.left||0,right:_.right||0,bottom:_.bottom||0,cursor:I?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:B,onMouseMove:G,onMouseUp:Z,onMouseLeave:D,children:[U&&H.jsx(tt.Box,{sx:{position:"absolute",left:`${U.left}%`,width:`${U.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),j&&H.jsx(H.Fragment,{children:r.filter(at=>at.timestamp===j).map(at=>H.jsx(tt.Box,{sx:{position:"absolute",left:`${K(at.timestamp)}%`,top:"-50px",transform:"translateX(-50%)",backgroundColor:"#992FB9",color:"white",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:at.label||k(at.timestamp)},`tooltip-${at.timestamp}`))})]})]})]})},hn={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(31, 41, 55, 0.14)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},GX=(e="#4B5563")=>({startHandle:{sx:{position:"absolute",left:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}},endHandle:{sx:{position:"absolute",right:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}}}),Vr={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:hn.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${hn.dimensions.height}px`,backgroundColor:hn.colors.background,borderRadius:0,overflow:"visible",border:`1px solid ${hn.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${hn.dimensions.eventWidth}px`,height:"100%",backgroundColor:hn.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:hn.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${hn.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:hn.colors.tooltipText,fontSize:"11px"}}},KX=(e="#9CA3AF")=>({startHandle:{sx:{position:"absolute",left:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}},endHandle:{sx:{position:"absolute",right:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}}}),YX=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},XX=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{YX()&&e.length>1&&(e.every((V,J)=>J===0||V.timestamp>=e[J-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[s,l]=O.useState(!1),[u,c]=O.useState(null),[f,h]=O.useState(null),[p,y]=O.useState({start:null,end:null}),[m,d]=O.useState({start:null,end:null}),[v,w]=O.useState(null),b=O.useRef(null),_=t??p,g=a??m,x=O.useMemo(()=>{var z;return e.length>0?((z=e[0])==null?void 0:z.timestamp)??0:0},[e]),S=O.useMemo(()=>{var z;return e.length>0?((z=e[e.length-1])==null?void 0:z.timestamp)??0:0},[e]),A=O.useMemo(()=>i&&g.start&&g.end?g.start:x,[i,g,x]),T=O.useMemo(()=>i&&g.start&&g.end?g.end:S,[i,g,S]),C=O.useMemo(()=>T-A,[T,A]),P=O.useMemo(()=>!n&&_.start!==null&&_.end!==null,[n,_]),E=O.useCallback(z=>C===0?0:(z-A)/C*100,[A,C]),k=O.useCallback((z,V)=>{const J=z/V*100;return A+J/100*C},[A,C]),$=O.useCallback(z=>{t===void 0&&y(z),r==null||r(z)},[t,r]),j=O.useCallback(z=>{const V=z.currentTarget.getBoundingClientRect(),J=z.clientX-V.left,K=k(J,V.width);l(!0),c(K),$({start:K,end:K})},[k,$]),M=O.useCallback(z=>{if(!s||u===null)return;const V=z.currentTarget.getBoundingClientRect(),J=z.clientX-V.left,K=k(J,V.width);if(f==="start"){const B=Math.min(K,_.end-C*.01);$({start:Math.max(B,A),end:_.end})}else if(f==="end"){const B=Math.max(K,_.start+C*.01);$({start:_.start,end:Math.min(B,T)})}else if(f==="body"){const B=K-u,G=_.end-_.start;let Z=_.start+B,D=_.end+B;Z<A&&(Z=A,D=A+G),D>T&&(D=T,Z=T-G),$({start:Z,end:D}),c(K)}else $({start:Math.min(u,K),end:Math.max(u,K)})},[s,u,f,_,C,A,T,k,$]),I=O.useCallback(()=>{const z=s;if(l(!1),h(null),z&&i&&_.start&&_.end&&_.start!==_.end){const V={start:_.start,end:_.end};a===void 0&&d(V),o==null||o(V)}},[s,i,_,a,o]);O.useEffect(()=>{if(!s||u===null||!b.current)return;const z=J=>{const K=b.current;if(!K)return;const B=K.getBoundingClientRect(),G=J.clientX-B.left,Z=k(G,B.width);if(f==="start"){const D=Math.min(Z,_.end-C*.01);$({start:Math.max(D,A),end:_.end})}else if(f==="end"){const D=Math.max(Z,_.start+C*.01);$({start:_.start,end:Math.min(D,T)})}else if(f==="body"){const D=Z-u,ot=_.end-_.start;let U=_.start+D,it=_.end+D;U<A&&(U=A,it=A+ot),it>T&&(it=T,U=T-ot),$({start:U,end:it}),c(Z)}else $({start:Math.min(u,Z),end:Math.max(u,Z)})},V=()=>{I()};return document.addEventListener("mousemove",z),document.addEventListener("mouseup",V),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",V)}},[s,u,f,_,C,A,T,k,$,I]);const q=O.useCallback(z=>{z.stopPropagation(),_.start!==null&&(l(!0),c(_.start),h("start"))},[_]),F=O.useCallback(z=>{z.stopPropagation(),_.end!==null&&(l(!0),c(_.end),h("end"))},[_]),N=O.useCallback(z=>{z.stopPropagation();const V=b.current;if(!V)return;const J=V.getBoundingClientRect(),K=z.clientX-J.left,B=k(K,J.width);l(!0),c(B),h("body")},[k]),R=O.useCallback(z=>{if(z.cancelable&&n&&z.preventDefault(),!n||!_.start||!_.end||C===0)return;const V=(_.start+_.end)/2,J=_.end-_.start,K=z.deltaY>0?1.1:.9,B=Math.max(J*K,C*.01),G=C*1.5,Z=Math.min(B,G);let D=V-Z/2,ot=V+Z/2;D<A&&(D=A,ot=Math.min(A+Z,T)),ot>T&&(ot=T,D=Math.max(T-Z,A)),$({start:D,end:ot})},[n,_,C,A,T,$]),L=O.useCallback(()=>!_.start||!_.end?[]:e.filter(z=>z.timestamp>=_.start&&z.timestamp<=_.end),[e,_]),W=O.useCallback(()=>{const z={start:x,end:S};a===void 0&&d({start:null,end:null}),o==null||o(z)},[x,S,a,o]),Y=O.useCallback(()=>{i&&W()},[i,W]);return{isDragging:s,dragStart:u,dragHandleType:f,internalSelectedRange:_,internalVisibleRange:g,hoveredEvent:v,minDate:A,maxDate:T,timeSpan:C,timelineContainerRef:b,getPositionFromTimestamp:E,getTimestampFromPosition:k,handleMouseDown:j,handleMouseMove:M,handleMouseUp:I,handleWheel:R,handleDoubleClick:Y,handleStartHandleMouseDown:q,handleEndHandleMouseDown:F,handleSelectionBodyMouseDown:N,setHoveredEvent:w,getEventsInRange:L,resetZoom:W,showHandles:P}},VX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),ZX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),JX=e=>{const t=e/864e5;return t>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},QX=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},tV=(e,t="arrow",r)=>{const n=t==="grip"?KX(r||"#9CA3AF"):GX(r||"#4B5563");return{header:{...Vr.header,...e==null?void 0:e.header},title:{...Vr.title,...e==null?void 0:e.title},instructions:{...Vr.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...Vr.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...Vr.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...Vr.timeline,...e==null?void 0:e.timeline},event:{...Vr.event,...e==null?void 0:e.event},selection:{...Vr.selection,...e==null?void 0:e.selection},startHandle:{...n.startHandle,...e==null?void 0:e.startHandle},endHandle:{...n.endHandle,...e==null?void 0:e.endHandle},tooltip:{...Vr.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...Vr.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...Vr.tooltipDate,...e==null?void 0:e.tooltipDate}}},eV=({events:e,onSelectionChange:t,selectedRange:r,height:n=hn.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=VX,formatMonthYear:o=ZX,showMonthLabels:s=!0,monthLabelCount:l=6,enableZoom:u=!0,dragHandleVariant:c="arrow",dragHandleColor:f,showHeader:h=!0,title:p="Event Timeline Selector",zoomToSelection:y=!1,visibleRange:m,onVisibleRangeChange:d,timeRange:v,onTimeRangeChange:w,slotProps:b})=>{const _=v?{start:v[0],end:v[1]}:m,g=w?z=>{z.start!==null&&z.end!==null&&w([z.start,z.end])}:d;QX()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const x=O.useMemo(()=>tV(b,c,f),[b,c,f]),{isDragging:S,dragHandleType:A,internalSelectedRange:T,hoveredEvent:C,minDate:P,timeSpan:E,timelineContainerRef:k,getPositionFromTimestamp:$,handleMouseDown:j,handleWheel:M,handleDoubleClick:I,handleStartHandleMouseDown:q,handleEndHandleMouseDown:F,handleSelectionBodyMouseDown:N,setHoveredEvent:R,getEventsInRange:L,showHandles:W}=XX({events:e,selectedRange:r,onSelectionChange:t,enableZoom:u,zoomToSelection:y,visibleRange:_,onVisibleRangeChange:g}),Y=T.start&&T.end?`Selected: ${a(T.start)} - ${a(T.end)} (${L().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return H.jsxs(tt.Stack,{sx:{width:"100%"},children:[h&&H.jsxs(tt.Stack,{spacing:1,sx:{mb:3},...x.header,children:[H.jsx(tt.Typography,{variant:"h5",...x.title,children:p}),H.jsx(tt.Typography,{variant:"body2",...x.instructions,children:Y})]}),s&&H.jsx(tt.Stack,{direction:"row",...x.monthLabelsContainer,sx:{...x.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:l},(z,V)=>{const J=P+E/(l-1)*V,K=JX(E);return H.jsx(tt.Typography,{variant:"caption",...x.monthLabel,children:K(J)},V)})}),H.jsxs(tt.Box,{...x.timeline,sx:{...x.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[H.jsx(tt.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((z,V)=>{const J=$(z.timestamp);return H.jsx(tt.Box,{onMouseEnter:()=>R(z),onMouseLeave:()=>R(null),"aria-label":`Event: ${z.eventName} at ${a(z.timestamp)}`,...x.event,sx:{...x.event.sx,left:`${J}%`,transform:(C==null?void 0:C.timestamp)===z.timestamp?"scaleX(2)":"scaleX(1)"}},`${z.timestamp}-${V}`)})}),T.start&&T.end&&(!y||S)&&H.jsx(tt.Box,{...x.selection,onMouseDown:W&&!S?N:void 0,sx:{...x.selection.sx,left:`${$(T.start)}%`,width:`${$(T.end)-$(T.start)}%`,pointerEvents:W?"all":"none",zIndex:2,cursor:W&&!S?A==="body"?"grabbing":"grab":"default"},children:W&&!(S&&A===null)&&H.jsxs(H.Fragment,{children:[H.jsx(tt.Box,{...x.startHandle,onMouseDown:q,sx:{...x.startHandle.sx,cursor:"ew-resize",opacity:S&&A!=="start"?.5:1},"aria-label":"Drag to adjust start of selection"}),H.jsx(tt.Box,{...x.endHandle,onMouseDown:F,sx:{...x.endHandle.sx,cursor:"ew-resize",opacity:S&&A!=="end"?.5:1},"aria-label":"Drag to adjust end of selection"})]})}),H.jsx(tt.Box,{ref:k,role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":h?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair",pointerEvents:"all",zIndex:1},onMouseDown:j,onWheel:M,onDoubleClick:I}),!h&&H.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:Y}),C&&H.jsxs(tt.Box,{role:"tooltip","aria-live":"polite",...x.tooltip,sx:{...x.tooltip.sx,left:`${$(C.timestamp)}%`,transform:"translateX(-50%)"},children:[H.jsx(tt.Typography,{variant:"body2",...x.tooltipEventName,children:C.eventName}),H.jsx(tt.Typography,{variant:"caption",...x.tooltipDate,children:a(C.timestamp)})]})]})]})},rV="#8b5cf6",nV=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),iV=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=nV,primaryColor:i=rV})=>e.length===0?null:H.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[H.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),H.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>H.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[H.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),H.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=vs;exports.CAMPAIGN_NOT_APPLICABLE=ys;exports.CAMPAIGN_NO_LST=gs;exports.CATEGORY_LABELS=WX;exports.ChronoChart=PE;exports.ChronoPerspectiveChart=PE;exports.D3StackedAreaChart=ML;exports.DEFAULT_CHART_COLORS=or;exports.DEFAULT_CHART_CONFIG=Ke;exports.DEFAULT_STACKED_AREA_COLORS=$n;exports.DEFAULT_STACKED_AREA_CONFIG=Et;exports.MEASURE_GRADIENT_COLORS=ps;exports.MODERNE_VULNERABILITY_COLORS=qa;exports.MorphChart=hE;exports.ParliamentChart=JF;exports.STACKED_AREA_PALETTES=UX;exports.StackedAreaChart=HX;exports.TimelineChart=eV;exports.TimelineSelectedEvents=iV;exports.calculateDataSeries=sC;exports.calculateOptimalArcAngle=Vv;exports.calculateOptimalSeatSize=Zv;
154
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*y," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},_G=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+l),h=Math.max(o,o+l);return n>=u&&n<=c&&i>=f&&i<=h}return!1},wG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},C0=function(t){var r=IA(IA({},wG),t),n=O.useRef(),i=O.useState(-1),a=pG(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,h=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,b=r.isAnimationActive,v=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var x=Ct("recharts-rectangle",p);return v?O.createElement(sn,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:m,animationEasing:y,isActive:v},function(_){var g=_.width,w=_.height,S=_.x,A=_.y;return O.createElement(sn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,isActive:b,easing:y},O.createElement("path",oc({},St(r,!0),{className:x,d:NA(S,A,g,w,h),ref:n})))}):O.createElement("path",oc({},St(r,!0),{className:x,d:NA(l,u,c,f,h)}))};function Eg(){return Eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eg.apply(this,arguments)}var Qc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Ct("recharts-dot",a);return r===+r&&n===+n&&i===+i?Kr.createElement("circle",Eg({},St(t,!1),Uu(t),{className:o,cx:r,cy:n,r:i})):null};function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}var SG=["x","y","top","left","width","height","className"];function Mg(){return Mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mg.apply(this,arguments)}function LA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function AG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(r),!0).forEach(function(n){OG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OG(e,t,r){return t=TG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TG(e){var t=PG(e,"string");return yl(t)=="symbol"?t:t+""}function PG(e,t){if(yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EG(e,t){if(e==null)return{};var r=MG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var CG=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},kG=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,h=t.height,p=h===void 0?0:h,y=t.className,m=EG(t,SG),d=AG({x:n,y:a,top:s,left:u,width:f,height:p},m);return!st(n)||!st(a)||!st(f)||!st(p)||!st(s)||!st(u)?null:O.createElement("path",Mg({},St(d,!0),{className:Ct("recharts-cross",y),d:CG(n,a,f,p,s,u)}))},Im,BA;function $G(){if(BA)return Im;BA=1;var e=HE(),t=e(Object.getPrototypeOf,Object);return Im=t,Im}var Nm,qA;function jG(){if(qA)return Nm;qA=1;var e=Qn(),t=$G(),r=ti(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var h=s.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==l}return Nm=u,Nm}var RG=jG();const DG=Gt(RG);var Lm,FA;function IG(){if(FA)return Lm;FA=1;var e=Qn(),t=ti(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Lm=n,Lm}var NG=IG();const LG=Gt(NG);function gl(e){"@babel/helpers - typeof";return gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gl(e)}function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sc.apply(this,arguments)}function BG(e,t){return UG(e)||zG(e,t)||FG(e,t)||qG()}function qG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
155
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FG(e,t){if(e){if(typeof e=="string")return zA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zA(e,t)}}function zA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function UG(e){if(Array.isArray(e))return e}function UA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(r),!0).forEach(function(n){WG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WG(e,t,r){return t=HG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HG(e){var t=GG(e,"string");return gl(t)=="symbol"?t:t+""}function GG(e,t){if(gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HA=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},KG={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},XG=function(t){var r=WA(WA({},KG),t),n=O.useRef(),i=O.useState(-1),a=BG(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,b=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var v=Ct("recharts-trapezoid",p);return b?O.createElement(sn,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:h,x:l,y:u},duration:m,animationEasing:y,isActive:b},function(x){var _=x.upperWidth,g=x.lowerWidth,w=x.height,S=x.x,A=x.y;return O.createElement(sn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,easing:y},O.createElement("path",sc({},St(r,!0),{className:v,d:HA(S,A,_,g,w),ref:n})))}):O.createElement("g",null,O.createElement("path",sc({},St(r,!0),{className:v,d:HA(l,u,c,f,h)})))},YG=["option","shapeType","propTransformer","activeClassName","isActive"];function vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vl(e)}function VG(e,t){if(e==null)return{};var r=ZG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function GA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GA(Object(r),!0).forEach(function(n){JG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JG(e,t,r){return t=QG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QG(e){var t=t6(e,"string");return vl(t)=="symbol"?t:t+""}function t6(e,t){if(vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e6(e,t){return lc(lc({},t),e)}function r6(e,t){return e==="symbols"}function KA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(C0,r);case"trapezoid":return O.createElement(XG,r);case"sector":return O.createElement(VM,r);case"symbols":if(r6(t))return O.createElement(Xc,r);break;default:return null}}function n6(e){return O.isValidElement(e)?e.props:e}function Cg(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?e6:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=VG(e,YG),u;if(O.isValidElement(t))u=O.cloneElement(t,lc(lc({},l),n6(t)));else if(At(t))u=t(l);else if(DG(t)&&!LG(t)){var c=i(t,l);u=O.createElement(KA,{shapeType:r,elementProps:c})}else{var f=l;u=O.createElement(KA,{shapeType:r,elementProps:f})}return s?O.createElement(Bt,{className:o},u):u}function tf(e,t){return t!=null&&"trapezoids"in e.props}function ef(e,t){return t!=null&&"sectors"in e.props}function bl(e,t){return t!=null&&"points"in e.props}function i6(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function a6(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function o6(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function s6(e,t){var r;return tf(e,t)?r=i6:ef(e,t)?r=a6:bl(e,t)&&(r=o6),r}function l6(e,t){var r;return tf(e,t)?r="trapezoids":ef(e,t)?r="sectors":bl(e,t)&&(r="points"),r}function u6(e,t){if(tf(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(ef(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return bl(e,t)?t.payload:{}}function c6(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=l6(r,t),a=u6(r,t),o=n.filter(function(l,u){var c=pa(a,l),f=r.props[i].filter(function(y){var m=s6(r,t);return m(y,t)}),h=r.props[i].indexOf(f[f.length-1]),p=u===h;return c&&p}),s=n.indexOf(o[o.length-1]);return s}function xl(e){"@babel/helpers - typeof";return xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xl(e)}function XA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XA(Object(r),!0).forEach(function(n){oC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oC(e,t,r){return t=f6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f6(e){var t=h6(e,"string");return xl(t)=="symbol"?t:t+""}function h6(e,t){if(xl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p6=["Webkit","Moz","O","ms"],d6=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=p6.reduce(function(a,o){return YA(YA({},a),{},oC({},o+n,r))},{});return i[t]=r,i};function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uc.apply(this,arguments)}function VA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(r),!0).forEach(function(n){Or(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lC(n.key),n)}}function y6(e,t,r){return t&&ZA(e.prototype,t),r&&ZA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g6(e,t,r){return t=cc(t),v6(e,sC()?Reflect.construct(t,r||[],cc(e).constructor):t.apply(e,r))}function v6(e,t){if(t&&(go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b6(e)}function b6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sC=function(){return!!e})()}function cc(e){return cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cc(e)}function x6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kg(e,t)}function Or(e,t,r){return t=lC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lC(e){var t=_6(e,"string");return go(t)=="symbol"?t:t+""}function _6(e,t){if(go(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(go(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var w6=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=gs().domain(Xs(0,l)).range([a,a+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},JA=function(t){return t.changedTouches&&!!t.changedTouches.length},vo=(function(e){function t(r){var n;return m6(this,t),n=g6(this,t,[r]),Or(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Or(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Or(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Or(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Or(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Or(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Or(n,"handleSlideDragStart",function(i){var a=JA(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return x6(t,e),y6(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,f),y=t.getIndexInRange(o,h);return{startIndex:p-p%l,endIndex:y===c?c:y-y%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=Ee(a[n],s,n);return At(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,h=l.startIndex,p=l.endIndex,y=l.onChange,m=n.pageX-a;m>0?m=Math.min(m,u+c-f-s,u+c-f-o):m<0&&(m=Math.max(m,u-o,u-s));var d=this.getIndex({startX:o+m,endX:s+m});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=JA(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],c=this.props,f=c.x,h=c.width,p=c.travellerWidth,y=c.onChange,m=c.gap,d=c.data,b={startX:this.state.startX,endX:this.state.endX},v=n.pageX-a;v>0?v=Math.min(v,f+h-p-u):v<0&&(v=Math.max(v,f-u)),b[o]=u+v;var x=this.getIndex(b),_=x.startIndex,g=x.endIndex,w=function(){var A=d.length-1;return o==="startX"&&(s>l?_%m===0:g%m===0)||s<l&&g===A||o==="endX"&&(s>l?g%m===0:_%m===0)||s>l&&g===A};this.setState(Or(Or({},o,u+v),"brushMoveStartX",n.pageX),function(){y&&w()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var h=f+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(Or({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return O.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=O.Children.only(u);return f?O.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,h=l.traveller,p=l.ariaLabel,y=l.data,m=l.startIndex,d=l.endIndex,b=Math.max(n,this.props.x),v=Bm(Bm({},St(this.props,!1)),{},{x:b,y:u,width:c,height:f}),x=p||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return O.createElement(Bt,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),s.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,v))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,h=c.endX,p=5,y={pointerEvents:"none",fill:u};return O.createElement(Bt,{className:"recharts-brush-texts"},O.createElement(Yu,uc({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(Yu,uc({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+l+p,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,d=h.isSlideMoving,b=h.isTravellerMoving,v=h.isTravellerFocused;if(!i||!i.length||!st(s)||!st(l)||!st(u)||!st(c)||u<=0||c<=0)return null;var x=Ct("recharts-brush",a),_=O.Children.count(o)===1,g=d6("userSelect","none");return O.createElement(Bt,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||d||b||v||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),O.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):At(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Bm({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?w6({data:a,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])})(O.PureComponent);Or(vo,"displayName","Brush");Or(vo,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var qm,QA;function S6(){if(QA)return qm;QA=1;var e=x0();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return qm=t,qm}var Fm,tO;function A6(){if(tO)return Fm;tO=1;var e=BE(),t=Ei(),r=S6(),n=or(),i=Il();function a(o,s,l){var u=n(o)?e:r;return l&&i(o,s,l)&&(s=void 0),u(o,t(s,3))}return Fm=a,Fm}var O6=A6();const T6=Gt(O6);var En=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},zm,eO;function P6(){if(eO)return zm;eO=1;var e=JE();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return zm=t,zm}var Um,rO;function E6(){if(rO)return Um;rO=1;var e=P6(),t=VE(),r=Ei();function n(i,a){var o={};return a=r(a,3),t(i,function(s,l,u){e(o,l,a(s,l,u))}),o}return Um=n,Um}var M6=E6();const C6=Gt(M6);var Wm,nO;function k6(){if(nO)return Wm;nO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Wm=e,Wm}var Hm,iO;function $6(){if(iO)return Hm;iO=1;var e=x0();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Hm=t,Hm}var Gm,aO;function j6(){if(aO)return Gm;aO=1;var e=k6(),t=$6(),r=Ei(),n=or(),i=Il();function a(o,s,l){var u=n(o)?e:t;return l&&i(o,s,l)&&(s=void 0),u(o,r(s,3))}return Gm=a,Gm}var R6=j6();const uC=Gt(R6);var D6=["x","y"];function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$g.apply(this,arguments)}function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ss(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(n){I6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I6(e,t,r){return t=N6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N6(e){var t=L6(e,"string");return bo(t)=="symbol"?t:t+""}function L6(e,t){if(bo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B6(e,t){if(e==null)return{};var r=q6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function q6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function F6(e,t){var r=e.x,n=e.y,i=B6(e,D6),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),h=parseInt(f,10);return ss(ss(ss(ss(ss({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function sO(e){return O.createElement(Cg,$g({shapeType:"rectangle",propTransformer:F6,activeClassName:"recharts-active-bar"},e))}var z6=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=st(n)||c5(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?fr(!1,"minPointSize callback function received a value with type of ".concat(bo(n),". Currently only numbers or null/undefined are supported.")):fr()),r)}},U6=["value","background"],cC;function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function W6(e,t){if(e==null)return{};var r=H6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fc.apply(this,arguments)}function lO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lO(Object(r),!0).forEach(function(n){yi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hC(n.key),n)}}function K6(e,t,r){return t&&uO(e.prototype,t),r&&uO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function X6(e,t,r){return t=hc(t),Y6(e,fC()?Reflect.construct(t,r||[],hc(e).constructor):t.apply(e,r))}function Y6(e,t){if(t&&(xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V6(e)}function V6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fC=function(){return!!e})()}function hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hc(e)}function Z6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jg(e,t)}function jg(e,t){return jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jg(e,t)}function yi(e,t,r){return t=hC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hC(e){var t=J6(e,"string");return xo(t)=="symbol"?t:t+""}function J6(e,t){if(xo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zo=(function(e){function t(){var r;G6(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=X6(this,t,[].concat(i)),yi(r,"state",{isAnimationFinished:!1}),yi(r,"id",wa("recharts-bar-")),yi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),yi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return Z6(t,e),K6(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,c=St(this.props,!1);return n&&n.map(function(f,h){var p=h===l,y=p?u:o,m=xe(xe(xe({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(Bt,fc({className:"recharts-bar-rectangle"},Ys(i.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),O.createElement(sO,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,c=i.animationEasing,f=i.animationId,h=this.state.prevData;return O.createElement(sn,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=a.map(function(d,b){var v=h&&h[b];if(v){var x=ye(v.x,d.x),_=ye(v.y,d.y),g=ye(v.width,d.width),w=ye(v.height,d.height);return xe(xe({},d),{},{x:x(y),y:_(y),width:g(y),height:w(y)})}if(o==="horizontal"){var S=ye(0,d.height),A=S(y);return xe(xe({},d),{},{y:d.y+d.height-A,height:A})}var T=ye(0,d.width),M=T(y);return xe(xe({},d),{},{width:M})});return O.createElement(Bt,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!pa(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=St(this.props.background,!1);return a.map(function(u,c){u.value;var f=u.background,h=W6(u,U6);if(!f)return null;var p=xe(xe(xe(xe(xe({},h),{},{fill:"#eee"},f),l),Ys(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(sO,fc({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=gr(c,Fo);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(d,b){var v=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:v,errorVal:Ee(d,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(Bt,y,f.map(function(m){return O.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,h=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,b=Ct("recharts-bar",o),v=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,_=v||x,g=xt(m)?this.id:m;return O.createElement(Bt,{className:b},v||x?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:v?u:u-f/2,y:x?c:c-h/2,width:v?f:f*2,height:x?h:h*2}))):null,O.createElement(Bt,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,g),(!p||d)&&Pn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);cC=zo;yi(zo,"displayName","Bar");yi(zo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Mi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});yi(zo,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=yW(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,d=m!==void 0?xe(xe({},m),r.props):r.props,b=d.dataKey,v=d.children,x=d.minPointSize,_=y==="horizontal"?o:a,g=u?_.scale.domain():null,w=AW({numericAxis:_}),S=gr(v,O0),A=f.map(function(T,M){var P,E,C,$,j,k;u?P=gW(u[c+M],g):(P=Ee(T,b),Array.isArray(P)||(P=[w,P]));var R=z6(x,cC.defaultProps.minPointSize)(P[1],M);if(y==="horizontal"){var L,U=[o.scale(P[0]),o.scale(P[1])],I=U[0],B=U[1];E=US({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:T,index:M}),C=(L=B??I)!==null&&L!==void 0?L:void 0,$=p.size;var q=I-B;if(j=Number.isNaN(q)?0:q,k={x:E,y:o.y,width:$,height:o.height},Math.abs(R)>0&&Math.abs(j)<Math.abs(R)){var N=on(j||R)*(Math.abs(R)-Math.abs(j));C-=N,j+=N}}else{var G=[a.scale(P[0]),a.scale(P[1])],F=G[0],K=G[1];if(E=F,C=US({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:T,index:M}),$=K-F,j=p.size,k={x:a.x,y:C,width:a.width,height:j},Math.abs(R)>0&&Math.abs($)<Math.abs(R)){var Z=on($||R)*(Math.abs(R)-Math.abs($));$+=Z}}return xe(xe(xe({},T),{},{x:E,y:C,width:$,height:j,value:u?P:P[1],payload:T,background:k},S&&S[M]&&S[M].props),{},{tooltipPayload:[KM(r,T)],tooltipPosition:{x:E+$/2,y:C+j/2}})});return xe({data:A,layout:y},h)});function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}function Q6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pC(n.key),n)}}function t4(e,t,r){return t&&cO(e.prototype,t),r&&cO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function en(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rf(e,t,r){return t=pC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pC(e){var t=e4(e,"string");return _l(t)=="symbol"?t:t+""}function e4(e,t){if(_l(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_l(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r4=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},h=!!Tr(u,zo);return c.reduce(function(p,y){var m=r[y],d=m.orientation,b=m.domain,v=m.padding,x=v===void 0?{}:v,_=m.mirror,g=m.reversed,w="".concat(d).concat(_?"Mirror":""),S,A,T,M,P;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=b[1]-b[0],C=1/0,$=m.categoricalDomain.sort(d5);if($.forEach(function(G,F){F>0&&(C=Math.min((G||0)-($[F-1]||0),C))}),Number.isFinite(C)){var j=C/E,k=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(S=j*k/2),m.padding==="no-gap"){var R=ha(t.barCategoryGap,j*k),L=j*k/2;S=L-R-(L-R)/k*R}}}i==="xAxis"?A=[n.left+(x.left||0)+(S||0),n.left+n.width-(x.right||0)-(S||0)]:i==="yAxis"?A=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(S||0),n.top+n.height-(x.bottom||0)-(S||0)]:A=m.range,g&&(A=[A[1],A[0]]);var U=dW(m,a,h),I=U.scale,B=U.realScaleType;I.domain(b).range(A),mW(I);var q=SW(I,en(en({},m),{},{realScaleType:B}));i==="xAxis"?(P=d==="top"&&!_||d==="bottom"&&_,T=n.left,M=f[w]-P*m.height):i==="yAxis"&&(P=d==="left"&&!_||d==="right"&&_,T=f[w]-P*m.width,M=n.top);var N=en(en(en({},m),q),{},{realScaleType:B,x:T,y:M,scale:I,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return N.bandSize=Qu(N,q),!m.hide&&i==="xAxis"?f[w]+=(P?-1:1)*N.height:m.hide||(f[w]+=(P?-1:1)*N.width),en(en({},p),{},rf({},y,N))},{})},dC=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},n4=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return dC({x:r,y:n},{x:i,y:a})},mC=(function(){function e(t){Q6(this,e),this.scale=t}return t4(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();rf(mC,"EPS",1e-4);var k0=function(t){var r=Object.keys(t).reduce(function(n,i){return en(en({},n),{},rf({},i,mC.create(t[i])))},{});return en(en({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return C6(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return uC(i,function(a,o){return r[o].isInRange(a)})}})};function i4(e){return(e%180+180)%180}var a4=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=i4(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Km,hO;function o4(){if(hO)return Km;hO=1;var e=Ei(),t=Rl(),r=Dl();function n(i){return function(a,o,s){var l=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(l[f],f,l)}}var c=i(a,o,s);return c>-1?l[u?a[c]:c]:void 0}}return Km=n,Km}var Xm,pO;function s4(){if(pO)return Xm;pO=1;var e=hM(),t=Ei(),r=s0(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var u=s==null?0:r(s);return u<0&&(u=n(l+u,0)),e(a,t(o,3),u)}return Xm=i,Xm}var Ym,dO;function l4(){if(dO)return Ym;dO=1;var e=o4(),t=s4(),r=e(t);return Ym=r,Ym}var u4=l4();const c4=Gt(u4);var f4=DE();const h4=Gt(f4);var p4=h4(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(e)}var $0=O.createContext(void 0),j0=O.createContext(void 0),yC=O.createContext(void 0),gC=O.createContext({}),vC=O.createContext(void 0),bC=O.createContext(0),xC=O.createContext(0),mO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=p4(a);return O.createElement($0.Provider,{value:n},O.createElement(j0.Provider,{value:i},O.createElement(gC.Provider,{value:a},O.createElement(yC.Provider,{value:c},O.createElement(vC.Provider,{value:o},O.createElement(bC.Provider,{value:u},O.createElement(xC.Provider,{value:l},s)))))))},d4=function(){return O.useContext(vC)};function _C(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var wC=function(t){var r=O.useContext($0);r==null&&(process.env.NODE_ENV!=="production"?fr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):fr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?fr(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(pc(t),"]. ").concat(_C(r))):fr()),n},m4=function(){var t=O.useContext($0);return ci(t)},y4=function(){var t=O.useContext(j0),r=c4(t,function(n){return uC(n.domain,Number.isFinite)});return r||ci(t)},SC=function(t){var r=O.useContext(j0);r==null&&(process.env.NODE_ENV!=="production"?fr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):fr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?fr(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(pc(t),"]. ").concat(_C(r))):fr()),n},g4=function(){var t=O.useContext(yC);return t},v4=function(){return O.useContext(gC)},R0=function(){return O.useContext(xC)},D0=function(){return O.useContext(bC)};function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}function b4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OC(n.key),n)}}function _4(e,t,r){return t&&x4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function w4(e,t,r){return t=dc(t),S4(e,AC()?Reflect.construct(t,r||[],dc(e).constructor):t.apply(e,r))}function S4(e,t){if(t&&(_o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A4(e)}function A4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AC=function(){return!!e})()}function dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dc(e)}function O4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rg(e,t)}function yO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yO(Object(r),!0).forEach(function(n){I0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I0(e,t,r){return t=OC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OC(e){var t=T4(e,"string");return _o(t)=="symbol"?t:t+""}function T4(e,t){if(_o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function P4(e,t){return k4(e)||C4(e,t)||M4(e,t)||E4()}function E4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
156
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M4(e,t){if(e){if(typeof e=="string")return vO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vO(e,t)}}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function k4(e){if(Array.isArray(e))return e}function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dg.apply(this,arguments)}var $4=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):At(t)?n=t(r):n=O.createElement("line",Dg({},r,{className:"recharts-reference-line-line"})),n},j4=function(t,r,n,i,a,o,s,l,u){var c=a.x,f=a.y,h=a.width,p=a.height;if(n){var y=u.y,m=t.y.apply(y,{position:o});if(En(u,"discard")&&!t.y.isInRange(m))return null;var d=[{x:c+h,y:m},{x:c,y:m}];return l==="left"?d.reverse():d}if(r){var b=u.x,v=t.x.apply(b,{position:o});if(En(u,"discard")&&!t.x.isInRange(v))return null;var x=[{x:v,y:f+p},{x:v,y:f}];return s==="top"?x.reverse():x}if(i){var _=u.segment,g=_.map(function(w){return t.apply(w,{position:o})});return En(u,"discard")&&T6(g,function(w){return!t.isInRange(w)})?null:g}return null};function R4(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=d4(),c=wC(i),f=SC(a),h=g4();if(!u||!h)return null;Un(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=k0({x:c.scale,y:f.scale}),y=Pe(t),m=Pe(r),d=n&&n.length===2,b=j4(p,y,m,d,h,e.position,c.orientation,f.orientation,e);if(!b)return null;var v=P4(b,2),x=v[0],_=x.x,g=x.y,w=v[1],S=w.x,A=w.y,T=En(e,"hidden")?"url(#".concat(u,")"):void 0,M=gO(gO({clipPath:T},St(e,!0)),{},{x1:_,y1:g,x2:S,y2:A});return O.createElement(Bt,{className:Ct("recharts-reference-line",s)},$4(o,M),Ve.renderCallByParent(e,n4({x1:_,y1:g,x2:S,y2:A})))}var nf=(function(e){function t(){return b4(this,t),w4(this,t,arguments)}return O4(t,e),_4(t,[{key:"render",value:function(){return O.createElement(R4,this.props)}}])})(O.Component);I0(nf,"displayName","ReferenceLine");I0(nf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ig.apply(this,arguments)}function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function bO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bO(Object(r),!0).forEach(function(n){af(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PC(n.key),n)}}function N4(e,t,r){return t&&I4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function L4(e,t,r){return t=mc(t),B4(e,TC()?Reflect.construct(t,r||[],mc(e).constructor):t.apply(e,r))}function B4(e,t){if(t&&(wo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q4(e)}function q4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TC=function(){return!!e})()}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mc(e)}function F4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ng(e,t)}function Ng(e,t){return Ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ng(e,t)}function af(e,t,r){return t=PC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PC(e){var t=z4(e,"string");return wo(t)=="symbol"?t:t+""}function z4(e,t){if(wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var U4=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=k0({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return En(t,"discard")&&!o.isInRange(s)?null:s},of=(function(e){function t(){return D4(this,t),L4(this,t,arguments)}return F4(t,e),N4(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=Pe(i),c=Pe(a);if(Un(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=U4(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,m=y.shape,d=y.className,b=En(this.props,"hidden")?"url(#".concat(l,")"):void 0,v=xO(xO({clipPath:b},St(this.props,!0)),{},{cx:h,cy:p});return O.createElement(Bt,{className:Ct("recharts-reference-dot",d)},t.renderDot(m,v),Ve.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);af(of,"displayName","ReferenceDot");af(of,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});af(of,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):At(e)?r=e(t):r=O.createElement(Qc,Ig({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Lg(){return Lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lg.apply(this,arguments)}function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function _O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_O(Object(r),!0).forEach(function(n){sf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MC(n.key),n)}}function G4(e,t,r){return t&&H4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function K4(e,t,r){return t=yc(t),X4(e,EC()?Reflect.construct(t,r||[],yc(e).constructor):t.apply(e,r))}function X4(e,t){if(t&&(So(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y4(e)}function Y4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EC=function(){return!!e})()}function yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yc(e)}function V4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bg(e,t)}function Bg(e,t){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bg(e,t)}function sf(e,t,r){return t=MC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MC(e){var t=Z4(e,"string");return So(t)=="symbol"?t:t+""}function Z4(e,t){if(So(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(So(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var J4=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var h=k0({x:c.scale,y:f.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(l,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(u,{position:"end"}):h.y.rangeMax};return En(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:dC(p,y)},lf=(function(e){function t(){return W4(this,t),K4(this,t,arguments)}return V4(t,e),G4(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;Un(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Pe(i),h=Pe(a),p=Pe(o),y=Pe(s),m=this.props.shape;if(!f&&!h&&!p&&!y&&!m)return null;var d=J4(f,h,p,y,this.props);if(!d&&!m)return null;var b=En(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(Bt,{className:Ct("recharts-reference-area",l)},t.renderRect(m,wO(wO({clipPath:b},St(this.props,!0)),d)),Ve.renderCallByParent(this.props,d))}}])})(O.Component);sf(lf,"displayName","ReferenceArea");sf(lf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});sf(lf,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):At(e)?r=e(t):r=O.createElement(C0,Lg({},t,{className:"recharts-reference-area-rect"})),r});function CC(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function Q4(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return a4(n,r)}function tK(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function gc(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function eK(e,t){return CC(e,t+1)}function rK(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var y=n==null?void 0:n[l];if(y===void 0)return{v:CC(n,u)};var m=l,d,b=function(){return d===void 0&&(d=r(y,m)),d},v=y.coordinate,x=l===0||gc(e,v,b,c,s);x||(l=0,c=o,u+=1),x&&(c=v+e*(b()/2+i),l+=u)},h;u<=a.length;)if(h=f(),h)return h.v;return[]}function wl(e){"@babel/helpers - typeof";return wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wl(e)}function SO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(n){nK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nK(e,t,r){return t=iK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iK(e){var t=aK(e,"string");return wl(t)=="symbol"?t:t+""}function aK(e,t){if(wl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oK(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(h){var p=a[h],y,m=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*m()/2-l);a[h]=p=Xe(Xe({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Xe(Xe({},p),{},{tickCoord:p.coordinate});var b=gc(e,p.tickCoord,m,s,l);b&&(l=p.tickCoord-e*(m()/2+i),a[h]=Xe(Xe({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return a}function sK(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var c=n[s-1],f=r(c,s-1),h=e*(c.coordinate+e*f/2-u);o[s-1]=c=Xe(Xe({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=gc(e,c.tickCoord,function(){return f},l,u);p&&(u=c.tickCoord-e*(f/2+i),o[s-1]=Xe(Xe({},c),{},{isShow:!0}))}for(var y=a?s-1:s,m=function(v){var x=o[v],_,g=function(){return _===void 0&&(_=r(x,v)),_};if(v===0){var w=e*(x.coordinate-e*g()/2-l);o[v]=x=Xe(Xe({},x),{},{tickCoord:w<0?x.coordinate-w*e:x.coordinate})}else o[v]=x=Xe(Xe({},x),{},{tickCoord:x.coordinate});var S=gc(e,x.tickCoord,g,l,u);S&&(l=x.tickCoord+e*(g()/2+i),o[v]=Xe(Xe({},x),{},{isShow:!0}))},d=0;d<y;d++)m(d);return o}function N0(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(st(l)||Mi.isSsr)return eK(i,typeof l=="number"&&st(l)?l:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?Ps(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(x,_){var g=At(u)?u(x.value,_):x.value;return p==="width"?Q4(Ps(g,{fontSize:t,letterSpacing:r}),y,f):Ps(g,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?on(i[1].coordinate-i[0].coordinate):1,b=tK(a,d,p);return l==="equidistantPreserveStart"?rK(d,b,m,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=sK(d,b,m,i,o,l==="preserveStartEnd"):h=oK(d,b,m,i,o),h.filter(function(v){return v.isShow}))}var lK=["viewBox"],uK=["viewBox"],cK=["ticks"];function Ao(e){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(e)}function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ba.apply(this,arguments)}function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){L0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vm(e,t){if(e==null)return{};var r=fK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$C(n.key),n)}}function pK(e,t,r){return t&&OO(e.prototype,t),r&&OO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dK(e,t,r){return t=vc(t),mK(e,kC()?Reflect.construct(t,r||[],vc(e).constructor):t.apply(e,r))}function mK(e,t){if(t&&(Ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yK(e)}function yK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kC=function(){return!!e})()}function vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vc(e)}function gK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qg(e,t)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qg(e,t)}function L0(e,t,r){return t=$C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $C(e){var t=vK(e,"string");return Ao(t)=="symbol"?t:t+""}function vK(e,t){if(Ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Uo=(function(e){function t(r){var n;return hK(this,t),n=dK(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return gK(t,e),pK(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Vm(n,lK),s=this.props,l=s.viewBox,u=Vm(s,uK);return!Xa(a,l)||!Xa(o,u)||!Xa(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,c=i.tickSize,f=i.mirror,h=i.tickMargin,p,y,m,d,b,v,x=f?-1:1,_=n.tickSize||c,g=st(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=y=n.coordinate,d=o+ +!f*l,m=d-x*_,v=m-x*h,b=g;break;case"left":m=d=n.coordinate,y=a+ +!f*s,p=y-x*_,b=p-x*h,v=g;break;case"right":m=d=n.coordinate,y=a+ +f*s,p=y+x*_,b=p+x*h,v=g;break;default:p=y=n.coordinate,d=o+ +f*l,m=d+x*_,v=m+x*h,b=g;break}return{line:{x1:p,y1:m,x2:y,y2:d},tick:{x:b,y:v}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=Oe(Oe(Oe({},St(this.props,!1)),St(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!u||l==="bottom"&&u);f=Oe(Oe({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);f=Oe(Oe({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",Ba({},f,{className:Ct("recharts-cartesian-axis-line",Xr(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,h=s.unit,p=N0(Oe(Oe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),d=St(this.props,!1),b=St(c,!1),v=Oe(Oe({},d),{},{fill:"none"},St(l,!1)),x=p.map(function(_,g){var w=o.getTickLineCoord(_),S=w.line,A=w.tick,T=Oe(Oe(Oe(Oe({textAnchor:y,verticalAnchor:m},d),{},{stroke:"none",fill:u},b),A),{},{index:g,payload:_,visibleTicksCount:p.length,tickFormatter:f});return O.createElement(Bt,Ba({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},Ys(o.props,_,g)),l&&O.createElement("line",Ba({},v,S,{className:Ct("recharts-cartesian-axis-tick-line",Xr(l,"className"))})),c&&t.renderTickItem(c,T,"".concat(At(f)?f(_.value,g):_.value).concat(h||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,c=i.hide;if(c)return null;var f=this.props,h=f.ticks,p=Vm(f,cK),y=h;return At(l)&&(y=h&&h.length>0?l(this.props):l(p)),o<=0||s<=0||!y||!y.length?null:O.createElement(Bt,{className:Ct("recharts-cartesian-axis",u),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ve.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Ct(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,Oe(Oe({},i),{},{className:s})):At(n)?o=n(Oe(Oe({},i),{},{className:s})):o=O.createElement(Yu,Ba({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);L0(Uo,"displayName","CartesianAxis");L0(Uo,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var bK=["x1","y1","x2","y2","key"],xK=["offset"];function ma(e){"@babel/helpers - typeof";return ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ma(e)}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){_K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _K(e,t,r){return t=wK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wK(e){var t=SK(e,"string");return ma(t)=="symbol"?t:t+""}function SK(e,t){if(ma(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vi.apply(this,arguments)}function PO(e,t){if(e==null)return{};var r=AK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var OK=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return O.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function jC(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(At(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=PO(t,bK),u=St(l,!1);u.offset;var c=PO(u,xK);r=O.createElement("line",Vi({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function TK(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Ze(Ze({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return jC(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function PK(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Ze(Ze({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return jC(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function EK(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?i+o-h:c[p+1]-h;if(m<=0)return null;var d=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:m,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function MK(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?a+s-h:c[p+1]-h;if(m<=0)return null;var d=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:l,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var CK=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return HM(N0(Ze(Ze(Ze({},Uo.defaultProps),n),{},{ticks:Fn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},kK=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return HM(N0(Ze(Ze(Ze({},Uo.defaultProps),n),{},{ticks:Fn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},ja={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function RC(e){var t,r,n,i,a,o,s=R0(),l=D0(),u=v4(),c=Ze(Ze({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ja.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:ja.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:ja.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:ja.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:ja.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:ja.verticalFill,x:st(e.x)?e.x:u.left,y:st(e.y)?e.y:u.top,width:st(e.width)?e.width:u.width,height:st(e.height)?e.height:u.height}),f=c.x,h=c.y,p=c.width,y=c.height,m=c.syncWithTicks,d=c.horizontalValues,b=c.verticalValues,v=m4(),x=y4();if(!st(p)||p<=0||!st(y)||y<=0||!st(f)||f!==+f||!st(h)||h!==+h)return null;var _=c.verticalCoordinatesGenerator||CK,g=c.horizontalCoordinatesGenerator||kK,w=c.horizontalPoints,S=c.verticalPoints;if((!w||!w.length)&&At(g)){var A=d&&d.length,T=g({yAxis:x?Ze(Ze({},x),{},{ticks:A?d:x.ticks}):void 0,width:s,height:l,offset:u},A?!0:m);Un(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ma(T),"]")),Array.isArray(T)&&(w=T)}if((!S||!S.length)&&At(_)){var M=b&&b.length,P=_({xAxis:v?Ze(Ze({},v),{},{ticks:M?b:v.ticks}):void 0,width:s,height:l,offset:u},M?!0:m);Un(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ma(P),"]")),Array.isArray(P)&&(S=P)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(OK,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(TK,Vi({},c,{offset:u,horizontalPoints:w,xAxis:v,yAxis:x})),O.createElement(PK,Vi({},c,{offset:u,verticalPoints:S,xAxis:v,yAxis:x})),O.createElement(EK,Vi({},c,{horizontalPoints:w})),O.createElement(MK,Vi({},c,{verticalPoints:S})))}RC.displayName="CartesianGrid";var $K=["type","layout","connectNulls","ref"],jK=["key"];function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function EO(e,t){if(e==null)return{};var r=RK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cs.apply(this,arguments)}function MO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(r),!0).forEach(function(n){rn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ra(e){return LK(e)||NK(e)||IK(e)||DK()}function DK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
157
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IK(e,t){if(e){if(typeof e=="string")return Fg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fg(e,t)}}function NK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LK(e){if(Array.isArray(e))return Fg(e)}function Fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function BK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IC(n.key),n)}}function qK(e,t,r){return t&&CO(e.prototype,t),r&&CO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FK(e,t,r){return t=bc(t),zK(e,DC()?Reflect.construct(t,r||[],bc(e).constructor):t.apply(e,r))}function zK(e,t){if(t&&(Oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UK(e)}function UK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DC=function(){return!!e})()}function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bc(e)}function WK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zg(e,t)}function zg(e,t){return zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zg(e,t)}function rn(e,t,r){return t=IC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IC(e){var t=HK(e,"string");return Oo(t)=="symbol"?t:t+""}function HK(e,t){if(Oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uf=(function(e){function t(){var r;BK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=FK(this,t,[].concat(i)),rn(r,"state",{isAnimationFinished:!0,totalLength:0}),rn(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),rn(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(b,v){return b+v});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,h=s-o,p=[],y=0,m=0;y<l.length;m+=l[y],++y)if(m+l[y]>f){p=[].concat(Ra(l.slice(0,y)),[f-m]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(Ra(t.repeat(l,c)),Ra(p),d).map(function(b){return"".concat(b,"px")}).join(", ")}),rn(r,"id",wa("recharts-line-")),rn(r,"pathRef",function(o){r.mainCurve=o}),rn(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),rn(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return WK(t,e),qK(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=gr(c,Fo);if(!f)return null;var h=function(m,d){return{x:m.x,y:m.y,value:m.value,errorVal:Ee(m.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(Bt,p,f.map(function(y){return O.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=St(this.props,!1),h=St(l,!0),p=u.map(function(m,d){var b=Ar(Ar(Ar({key:"dot-".concat(d),r:3},f),h),{},{index:d,cx:m.x,cy:m.y,value:m.value,dataKey:c,payload:m.payload,points:u});return t.renderDotItem(l,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(Bt,Cs({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=EO(s,$K),h=Ar(Ar(Ar({},St(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return O.createElement(aa,Cs({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,d=o.height,b=this.state,v=b.prevPoints,x=b.totalLength;return O.createElement(sn,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var g=_.t;if(v){var w=v.length/s.length,S=s.map(function(E,C){var $=Math.floor(C*w);if(v[$]){var j=v[$],k=ye(j.x,E.x),R=ye(j.y,E.y);return Ar(Ar({},E),{},{x:k(g),y:R(g)})}if(y){var L=ye(m*2,E.x),U=ye(d/2,E.y);return Ar(Ar({},E),{},{x:L(g),y:U(g)})}return Ar(Ar({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=ye(0,x),T=A(g),M;if(l){var P="".concat(l).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});M=a.getStrokeDasharray(T,x,P)}else M=a.generateSimpleStrokeDasharray(x,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!pa(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,h=i.left,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var b=this.state.isAnimationFinished,v=s.length===1,x=Ct("recharts-line",l),_=u&&u.allowDataOverflow,g=c&&c.allowDataOverflow,w=_||g,S=xt(d)?this.id:d,A=(n=St(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=sM(o)?o:{},$=C.clipDot,j=$===void 0?!0:$,k=M*2+E;return O.createElement(Bt,{className:x},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?h:h-p/2,y:g?f:f-y/2,width:_?p:p*2,height:g?y:y*2})),!j&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-k/2,y:f-k/2,width:p+k,height:y+k}))):null,!v&&this.renderCurve(w,S),this.renderErrorBar(w,S),(v||o)&&this.renderDots(w,j,S),(!m||b)&&Pn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Ra(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Ra(o),Ra(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(At(n))a=n(i);else{var o=i.key,s=EO(i,jK),l=Ct("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Qc,Cs({key:o},s,{className:l}))}return a}}])})(O.PureComponent);rn(uf,"displayName","Line");rn(uf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Mi.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});rn(uf,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(h,p){var y=Ee(h,o);return c==="horizontal"?{x:mo({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:xt(y)?null:n.scale(y),value:y,payload:h}:{x:xt(y)?null:r.scale(y),y:mo({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return Ar({points:f,layout:c},u)});var GK=["layout","type","stroke","connectNulls","isRange","ref"],KK=["key"],NC;function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(e)}function LC(e,t){if(e==null)return{};var r=XK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zi.apply(this,arguments)}function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function li(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(n){On(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qC(n.key),n)}}function VK(e,t,r){return t&&$O(e.prototype,t),r&&$O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZK(e,t,r){return t=xc(t),JK(e,BC()?Reflect.construct(t,r||[],xc(e).constructor):t.apply(e,r))}function JK(e,t){if(t&&(To(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QK(e)}function QK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BC=function(){return!!e})()}function xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xc(e)}function tX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ug(e,t)}function Ug(e,t){return Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ug(e,t)}function On(e,t,r){return t=qC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qC(e){var t=eX(e,"string");return To(t)=="symbol"?t:t+""}function eX(e,t){if(To(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(To(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ki=(function(e){function t(){var r;YK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ZK(this,t,[].concat(i)),On(r,"state",{isAnimationFinished:!0}),On(r,"id",wa("recharts-area-")),On(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),At(o)&&o()}),On(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),At(o)&&o()}),r}return tX(t,e),VK(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,c=l.points,f=l.dataKey,h=St(this.props,!1),p=St(u,!0),y=c.map(function(d,b){var v=li(li(li({key:"dot-".concat(b),r:3},h),p),{},{index:b,cx:d.x,cy:d.y,dataKey:f,value:d.value,payload:d.payload,points:c});return t.renderDotItem(u,v)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(Bt,Zi({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,c=n*Math.abs(l-u),f=mi(o.map(function(h){return h.y||0}));return st(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(mi(a.map(function(h){return h.y||0})),f)),st(f)?O.createElement("rect",{x:l<u?l:l-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,c=n*Math.abs(l-u),f=mi(o.map(function(h){return h.x||0}));return st(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(mi(a.map(function(h){return h.x||0})),f)),st(f)?O.createElement("rect",{x:0,y:l<u?l:l-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,c=s.stroke,f=s.connectNulls,h=s.isRange;s.ref;var p=LC(s,GK);return O.createElement(Bt,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(aa,Zi({},St(p,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(aa,Zi({},St(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(aa,Zi({},St(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,d=y.prevBaseLine;return O.createElement(sn,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var v=b.t;if(m){var x=m.length/s.length,_=s.map(function(A,T){var M=Math.floor(T*x);if(m[M]){var P=m[M],E=ye(P.x,A.x),C=ye(P.y,A.y);return li(li({},A),{},{x:E(v),y:C(v)})}return A}),g;if(st(l)&&typeof l=="number"){var w=ye(d,l);g=w(v)}else if(xt(l)||Lo(l)){var S=ye(d,0);g=S(v)}else g=l.map(function(A,T){var M=Math.floor(T*x);if(d[M]){var P=d[M],E=ye(P.x,A.x),C=ye(P.y,A.y);return li(li({},A),{},{x:E(v),y:C(v)})}return A});return a.renderAreaStatically(_,g,n,i)}return O.createElement(Bt,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(v))),O.createElement(Bt,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,c=u.prevPoints,f=u.prevBaseLine,h=u.totalLength;return l&&o&&o.length&&(!c&&h>0||!pa(c,o)||!pa(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,c=i.left,f=i.xAxis,h=i.yAxis,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var b=this.state.isAnimationFinished,v=s.length===1,x=Ct("recharts-area",l),_=f&&f.allowDataOverflow,g=h&&h.allowDataOverflow,w=_||g,S=xt(d)?this.id:d,A=(n=St(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=sM(o)?o:{},$=C.clipDot,j=$===void 0?!0:$,k=M*2+E;return O.createElement(Bt,{className:x},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?c:c-p/2,y:g?u:u-y/2,width:_?p:p*2,height:g?y:y*2})),!j&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-k/2,y:u-k/2,width:p+k,height:y+k}))):null,v?null:this.renderArea(w,S),(o||v)&&this.renderDots(w,j,S),(!m||b)&&Pn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);NC=ki;On(ki,"displayName","Area");On(ki,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Mi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});On(ki,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(st(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});On(ki,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=u&&u.length,m=NC.getBaseValue(t,r,n,i),d=p==="horizontal",b=!1,v=f.map(function(_,g){var w;y?w=u[c+g]:(w=Ee(_,l),Array.isArray(w)?b=!0:w=[m,w]);var S=w[1]==null||y&&Ee(_,l)==null;return d?{x:mo({axis:n,ticks:a,bandSize:s,entry:_,index:g}),y:S?null:i.scale(w[1]),value:w,payload:_}:{x:S?null:n.scale(w[1]),y:mo({axis:i,ticks:o,bandSize:s,entry:_,index:g}),value:w,payload:_}}),x;return y||b?x=v.map(function(_){var g=Array.isArray(_.value)?_.value[0]:null;return d?{x:_.x,y:g!=null&&_.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:_.y}}):x=d?i.scale(m):n.scale(m),li({points:v,baseLine:x,layout:p,isRange:b},h)});On(ki,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(At(e))r=e(t);else{var n=Ct("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=LC(t,KK);r=O.createElement(Qc,Zi({},a,{key:i,className:n}))}return r});function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(e)}function rX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UC(n.key),n)}}function iX(e,t,r){return t&&nX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aX(e,t,r){return t=_c(t),oX(e,FC()?Reflect.construct(t,r||[],_c(e).constructor):t.apply(e,r))}function oX(e,t){if(t&&(Po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sX(e)}function sX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FC=function(){return!!e})()}function _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_c(e)}function lX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wg(e,t)}function Wg(e,t){return Wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wg(e,t)}function zC(e,t,r){return t=UC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UC(e){var t=uX(e,"string");return Po(t)=="symbol"?t:t+""}function uX(e,t){if(Po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cf=(function(e){function t(){return rX(this,t),aX(this,t,arguments)}return lX(t,e),iX(t,[{key:"render",value:function(){return null}}])})(Kr.Component);zC(cf,"displayName","ZAxis");zC(cf,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var cX=["option","isActive"];function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ks.apply(this,arguments)}function fX(e,t){if(e==null)return{};var r=hX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pX(e){var t=e.option,r=e.isActive,n=fX(e,cX);return typeof t=="string"?Kr.createElement(Cg,ks({option:Kr.createElement(Xc,ks({type:t},n)),isActive:r,shapeType:"symbols"},n)):Kr.createElement(Cg,ks({option:t,isActive:r,shapeType:"symbols"},n))}function Eo(e){"@babel/helpers - typeof";return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eo(e)}function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$s.apply(this,arguments)}function jO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(n){gi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HC(n.key),n)}}function mX(e,t,r){return t&&RO(e.prototype,t),r&&RO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yX(e,t,r){return t=wc(t),gX(e,WC()?Reflect.construct(t,r||[],wc(e).constructor):t.apply(e,r))}function gX(e,t){if(t&&(Eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vX(e)}function vX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WC=function(){return!!e})()}function wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wc(e)}function bX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hg(e,t)}function Hg(e,t){return Hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hg(e,t)}function gi(e,t,r){return t=HC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HC(e){var t=xX(e,"string");return Eo(t)=="symbol"?t:t+""}function xX(e,t){if(Eo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ff=(function(e){function t(){var r;dX(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=yX(this,t,[].concat(i)),gi(r,"state",{isAnimationFinished:!1}),gi(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),gi(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),gi(r,"id",wa("recharts-scatter-")),r}return bX(t,e),mX(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,l=a.activeIndex,u=St(this.props,!1);return n.map(function(c,f){var h=l===f,p=h?s:o,y=zr(zr({},u),c);return O.createElement(Bt,$s({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},Ys(i.props,c,f),{role:"img"}),O.createElement(pX,$s({option:p,isActive:h,key:"symbol-".concat(f)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return O.createElement(sn,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,y=a.map(function(m,d){var b=f&&f[d];if(b){var v=ye(b.cx,m.cx),x=ye(b.cy,m.cy),_=ye(b.size,m.size);return zr(zr({},m),{},{cx:v(p),cy:x(p),size:_(p)})}var g=ye(0,m.size);return zr(zr({},m),{},{size:g(p)})});return O.createElement(Bt,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!pa(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,l=i.children,u=gr(l,Fo);return u?u.map(function(c,f){var h=c.props,p=h.direction,y=h.dataKey;return O.cloneElement(c,{key:"".concat(p,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(d,b){return{x:d.cx,y:d.cy,value:p==="x"?+d.node.x:+d.node.y,errorVal:Ee(d,b)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,l=St(this.props,!1),u=St(a,!1),c,f;if(o==="joint")c=i.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var h=p5(i),p=h.xmin,y=h.xmax,m=h.a,d=h.b,b=function(_){return m*_+d};c=[{x:p,y:b(p)},{x:y,y:b(y)}]}var v=zr(zr(zr({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,v):At(a)?f=a(v):f=O.createElement(aa,$s({},v,{type:s})),O.createElement(Bt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,l=n.xAxis,u=n.yAxis,c=n.left,f=n.top,h=n.width,p=n.height,y=n.id,m=n.isAnimationActive;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,b=Ct("recharts-scatter",s),v=l&&l.allowDataOverflow,x=u&&u.allowDataOverflow,_=v||x,g=xt(y)?this.id:y;return O.createElement(Bt,{className:b,clipPath:_?"url(#clipPath-".concat(g,")"):null},v||x?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:v?c:c-h/2,y:x?f:f-p/2,width:v?h:h*2,height:x?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(Bt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||d)&&Pn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);gi(ff,"displayName","Scatter");gi(ff,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Mi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});gi(ff,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,c=gr(i.props.children,O0),f=xt(t.dataKey)?i.props.dataKey:t.dataKey,h=xt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:cf.defaultProps.range,m=y&&y[0],d=t.scale.bandwidth?t.scale.bandwidth():0,b=r.scale.bandwidth?r.scale.bandwidth():0,v=a.map(function(x,_){var g=Ee(x,f),w=Ee(x,h),S=!xt(p)&&Ee(x,p)||"-",A=[{name:xt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:g,payload:x,dataKey:f,type:u},{name:xt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:x,dataKey:h,type:u}];S!=="-"&&A.push({name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:x,dataKey:p,type:u});var T=mo({axis:t,ticks:o,bandSize:d,entry:x,index:_,dataKey:f}),M=mo({axis:r,ticks:s,bandSize:b,entry:x,index:_,dataKey:h}),P=S!=="-"?n.scale(S):m,E=Math.sqrt(Math.max(P,0)/Math.PI);return zr(zr({},x),{},{cx:T,cy:M,x:T-E,y:M-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:P,node:{x:g,y:w,z:S},tooltipPayload:A,tooltipPosition:{x:T,y:M},payload:x},c&&c[_]&&c[_].props)});return zr({points:v},l)});function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}function _X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XC(n.key),n)}}function SX(e,t,r){return t&&wX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AX(e,t,r){return t=Sc(t),OX(e,GC()?Reflect.construct(t,r||[],Sc(e).constructor):t.apply(e,r))}function OX(e,t){if(t&&(Mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TX(e)}function TX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GC=function(){return!!e})()}function Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sc(e)}function PX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gg(e,t)}function Gg(e,t){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gg(e,t)}function KC(e,t,r){return t=XC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XC(e){var t=EX(e,"string");return Mo(t)=="symbol"?t:t+""}function EX(e,t){if(Mo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kg.apply(this,arguments)}function MX(e){var t=e.xAxisId,r=R0(),n=D0(),i=wC(t);return i==null?null:Kr.createElement(Uo,Kg({},i,{className:Ct("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Fn(o,!0)}}))}var hf=(function(e){function t(){return _X(this,t),AX(this,t,arguments)}return PX(t,e),SX(t,[{key:"render",value:function(){return Kr.createElement(MX,this.props)}}])})(Kr.Component);KC(hf,"displayName","XAxis");KC(hf,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}function CX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZC(n.key),n)}}function $X(e,t,r){return t&&kX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jX(e,t,r){return t=Ac(t),RX(e,YC()?Reflect.construct(t,r||[],Ac(e).constructor):t.apply(e,r))}function RX(e,t){if(t&&(Co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DX(e)}function DX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YC=function(){return!!e})()}function Ac(e){return Ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ac(e)}function IX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xg(e,t)}function Xg(e,t){return Xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xg(e,t)}function VC(e,t,r){return t=ZC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZC(e){var t=NX(e,"string");return Co(t)=="symbol"?t:t+""}function NX(e,t){if(Co(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Co(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Yg(){return Yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yg.apply(this,arguments)}var LX=function(t){var r=t.yAxisId,n=R0(),i=D0(),a=SC(r);return a==null?null:Kr.createElement(Uo,Yg({},a,{className:Ct("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Fn(s,!0)}}))},pf=(function(e){function t(){return CX(this,t),jX(this,t,arguments)}return IX(t,e),$X(t,[{key:"render",value:function(){return Kr.createElement(LX,this.props)}}])})(Kr.Component);VC(pf,"displayName","YAxis");VC(pf,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function DO(e){return zX(e)||FX(e)||qX(e)||BX()}function BX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
158
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qX(e,t){if(e){if(typeof e=="string")return Vg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vg(e,t)}}function FX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zX(e){if(Array.isArray(e))return Vg(e)}function Vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Zg=function(t,r,n,i,a){var o=gr(t,nf),s=gr(t,of),l=[].concat(DO(o),DO(s)),u=gr(t,lf),c="".concat(i,"Id"),f=i[0],h=r;if(l.length&&(h=l.reduce(function(m,d){if(d.props[c]===n&&En(d.props,"extendDomain")&&st(d.props[f])){var b=d.props[f];return[Math.min(m[0],b),Math.max(m[1],b)]}return m},h)),u.length){var p="".concat(f,"1"),y="".concat(f,"2");h=u.reduce(function(m,d){if(d.props[c]===n&&En(d.props,"extendDomain")&&st(d.props[p])&&st(d.props[y])){var b=d.props[p],v=d.props[y];return[Math.min(m[0],b,v),Math.max(m[1],b,v)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,d){return st(d)?[Math.min(m[0],d),Math.max(m[1],d)]:m},h)),h},Zm={exports:{}},IO;function UX(){return IO||(IO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||l,h),y=r?r+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],p]:l._events[y].push(p):(l._events[y]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,h,p,y){var m=r?r+u:u;if(!this._events[m])return!1;var d=this._events[m],b=arguments.length,v,x;if(d.fn){switch(d.once&&this.removeListener(u,d.fn,void 0,!0),b){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,c),!0;case 3:return d.fn.call(d.context,c,f),!0;case 4:return d.fn.call(d.context,c,f,h),!0;case 5:return d.fn.call(d.context,c,f,h,p),!0;case 6:return d.fn.call(d.context,c,f,h,p,y),!0}for(x=1,v=new Array(b-1);x<b;x++)v[x-1]=arguments[x];d.fn.apply(d.context,v)}else{var _=d.length,g;for(x=0;x<_;x++)switch(d[x].once&&this.removeListener(u,d[x].fn,void 0,!0),b){case 1:d[x].fn.call(d[x].context);break;case 2:d[x].fn.call(d[x].context,c);break;case 3:d[x].fn.call(d[x].context,c,f);break;case 4:d[x].fn.call(d[x].context,c,f,h);break;default:if(!v)for(g=1,v=new Array(b-1);g<b;g++)v[g-1]=arguments[g];d[x].fn.apply(d[x].context,v)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,h){var p=r?r+u:u;if(!this._events[p])return this;if(!c)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===c&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var m=0,d=[],b=y.length;m<b;m++)(y[m].fn!==c||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(Zm)),Zm.exports}var WX=UX();const HX=Gt(WX);var Jm=new HX,Qm="recharts.syncMouseEvents";function Sl(e){"@babel/helpers - typeof";return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(e)}function GX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JC(n.key),n)}}function XX(e,t,r){return t&&KX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ty(e,t,r){return t=JC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JC(e){var t=YX(e,"string");return Sl(t)=="symbol"?t:t+""}function YX(e,t){if(Sl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var VX=(function(){function e(){GX(this,e),ty(this,"activeIndex",0),ty(this,"coordinateList",[]),ty(this,"layout","horizontal")}return XX(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+u,h=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])})();function ZX(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&st(n)&&st(i))return!0}return!1}function JX(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function QC(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=qe(t,r,n,i),s=qe(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function QX(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,h=qe(s,l,u,f),p=qe(s,l,c,f);n=h.x,i=h.y,a=p.x,o=p.y}else return QC(t);return[{x:n,y:i},{x:a,y:o}]}function Al(e){"@babel/helpers - typeof";return Al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Al(e)}function NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ou(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){tY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tY(e,t,r){return t=eY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eY(e){var t=rY(e,"string");return Al(t)=="symbol"?t:t+""}function rY(e,t){if(Al(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Al(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nY(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=aa;if(h==="ScatterChart")y=o,m=kG;else if(h==="BarChart")y=JX(f,o,l,c),m=C0;else if(f==="radial"){var d=QC(o),b=d.cx,v=d.cy,x=d.radius,_=d.startAngle,g=d.endAngle;y={cx:b,cy:v,startAngle:_,endAngle:g,innerRadius:x,outerRadius:x},m=VM}else y={points:QX(f,o,l)},m=aa;var w=ou(ou(ou(ou({stroke:"#ccc",pointerEvents:"none"},l),y),St(p,!1)),{},{payload:s,payloadIndex:u,className:Ct("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,w):O.createElement(m,w)}var iY=["item"],aY=["children","className","width","height","style","compact","title","desc"];function ko(e){"@babel/helpers - typeof";return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(e)}function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qa.apply(this,arguments)}function LO(e,t){return lY(e)||sY(e,t)||ek(e,t)||oY()}function oY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
159
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function lY(e){if(Array.isArray(e))return e}function BO(e,t){if(e==null)return{};var r=uY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rk(n.key),n)}}function hY(e,t,r){return t&&fY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pY(e,t,r){return t=Oc(t),dY(e,tk()?Reflect.construct(t,r||[],Oc(e).constructor):t.apply(e,r))}function dY(e,t){if(t&&(ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mY(e)}function mY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tk=function(){return!!e})()}function Oc(e){return Oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oc(e)}function yY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jg(e,t)}function Jg(e,t){return Jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jg(e,t)}function $o(e){return bY(e)||vY(e)||ek(e)||gY()}function gY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
160
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ek(e,t){if(e){if(typeof e=="string")return Qg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qg(e,t)}}function vY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bY(e){if(Array.isArray(e))return Qg(e)}function Qg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){vt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vt(e,t,r){return t=rk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rk(e){var t=xY(e,"string");return ko(t)=="symbol"?t:t+""}function xY(e,t){if(ko(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ko(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _Y={xAxis:["bottom","top"],yAxis:["left","right"]},wY={width:"100%",height:"100%"},nk={x:0,y:0};function su(e){return e}var SY=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},AY=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return J(J(J({},i),qe(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return J(J(J({},i),qe(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return nk},df=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat($o(s),$o(u)):s},[]);return o.length>0?o:t&&t.length&&st(i)&&st(a)?t.slice(i,a+1):[]};function ik(e){return e==="number"?[0,"auto"]:void 0}var tv=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=df(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?s:f;h=zu(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat($o(l),[KM(u,h)]):l},[])},FO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=SY(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=lW(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,h=tv(t,r,c,f),p=AY(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},OY=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=t.stackOffset,p=WM(c,a);return n.reduce(function(y,m){var d,b=m.type.defaultProps!==void 0?J(J({},m.type.defaultProps),m.props):m.props,v=b.type,x=b.dataKey,_=b.allowDataOverflow,g=b.allowDuplicatedCategory,w=b.scale,S=b.ticks,A=b.includeHidden,T=b[o];if(y[T])return y;var M=df(t.data,{graphicalItems:i.filter(function(q){var N,G=o in q.props?q.props[o]:(N=q.type.defaultProps)===null||N===void 0?void 0:N[o];return G===T}),dataStartIndex:l,dataEndIndex:u}),P=M.length,E,C,$;ZX(b.domain,_,v)&&(E=dg(b.domain,null,_),p&&(v==="number"||w!=="auto")&&($=Es(M,x,"category")));var j=ik(v);if(!E||E.length===0){var k,R=(k=b.domain)!==null&&k!==void 0?k:j;if(x){if(E=Es(M,x,v),v==="category"&&p){var L=h5(E);g&&L?(C=E,E=Xs(0,P)):g||(E=GS(R,E,m).reduce(function(q,N){return q.indexOf(N)>=0?q:[].concat($o(q),[N])},[]))}else if(v==="category")g?E=E.filter(function(q){return q!==""&&!xt(q)}):E=GS(R,E,m).reduce(function(q,N){return q.indexOf(N)>=0||N===""||xt(N)?q:[].concat($o(q),[N])},[]);else if(v==="number"){var U=pW(M,i.filter(function(q){var N,G,F=o in q.props?q.props[o]:(N=q.type.defaultProps)===null||N===void 0?void 0:N[o],K="hide"in q.props?q.props.hide:(G=q.type.defaultProps)===null||G===void 0?void 0:G.hide;return F===T&&(A||!K)}),x,a,c);U&&(E=U)}p&&(v==="number"||w!=="auto")&&($=Es(M,x,"category"))}else p?E=Xs(0,P):s&&s[T]&&s[T].hasStack&&v==="number"?E=h==="expand"?[0,1]:GM(s[T].stackGroups,l,u):E=UM(M,i.filter(function(q){var N=o in q.props?q.props[o]:q.type.defaultProps[o],G="hide"in q.props?q.props.hide:q.type.defaultProps.hide;return N===T&&(A||!G)}),v,c,!0);if(v==="number")E=Zg(f,E,T,a,S),R&&(E=dg(R,E,_));else if(v==="category"&&R){var I=R,B=E.every(function(q){return I.indexOf(q)>=0});B&&(E=I)}}return J(J({},y),{},vt({},T,J(J({},b),{},{axisType:a,domain:E,categoricalDomain:$,duplicateDomain:C,originalDomain:(d=b.domain)!==null&&d!==void 0?d:j,isCategorical:p,layout:c})))},{})},TY=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=df(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=h.length,y=WM(c,a),m=-1;return n.reduce(function(d,b){var v=b.type.defaultProps!==void 0?J(J({},b.type.defaultProps),b.props):b.props,x=v[o],_=ik("number");if(!d[x]){m++;var g;return y?g=Xs(0,p):s&&s[x]&&s[x].hasStack?(g=GM(s[x].stackGroups,l,u),g=Zg(f,g,x,a)):(g=dg(_,UM(h,n.filter(function(w){var S,A,T=o in w.props?w.props[o]:(S=w.type.defaultProps)===null||S===void 0?void 0:S[o],M="hide"in w.props?w.props.hide:(A=w.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===x&&!M}),"number",c),i.defaultProps.allowDataOverflow),g=Zg(f,g,x,a)),J(J({},d),{},vt({},x,J(J({axisType:a},i.defaultProps),{},{hide:!0,orientation:Xr(_Y,"".concat(a,".").concat(m%2),null),domain:g,originalDomain:_,isCategorical:y,layout:c})))}return d},{})},PY=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),h=gr(c,a),p={};return h&&h.length?p=OY(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=TY(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},EY=function(t){var r=ci(t),n=Fn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Gc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Qu(r,n)}},zO=function(t){var r=t.children,n=t.defaultShowTooltip,i=Tr(r,vo),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},MY=function(t){return!t||!t.length?!1:t.some(function(r){var n=zn(r&&r.type);return n&&n.indexOf("Bar")>=0})},UO=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},CY=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,h=n.margin||{},p=Tr(f,vo),y=Tr(f,na),m=Object.keys(l).reduce(function(g,w){var S=l[w],A=S.orientation;return!S.mirror&&!S.hide?J(J({},g),{},vt({},A,g[A]+S.width)):g},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(g,w){var S=o[w],A=S.orientation;return!S.mirror&&!S.hide?J(J({},g),{},vt({},A,Xr(g,"".concat(A))+S.height)):g},{top:h.top||0,bottom:h.bottom||0}),b=J(J({},d),m),v=b.bottom;p&&(b.bottom+=p.props.height||vo.defaultProps.height),y&&r&&(b=fW(b,i,n,r));var x=u-b.left-b.right,_=c-b.top-b.bottom;return J(J({brushBottom:v},b),{},{width:Math.max(x,0),height:Math.max(_,0)})},kY=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},$Y=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,h=function(b,v){var x=v.graphicalItems,_=v.stackGroups,g=v.offset,w=v.updateId,S=v.dataStartIndex,A=v.dataEndIndex,T=b.barSize,M=b.layout,P=b.barGap,E=b.barCategoryGap,C=b.maxBarSize,$=UO(M),j=$.numericAxisName,k=$.cateAxisName,R=MY(x),L=[];return x.forEach(function(U,I){var B=df(b.data,{graphicalItems:[U],dataStartIndex:S,dataEndIndex:A}),q=U.type.defaultProps!==void 0?J(J({},U.type.defaultProps),U.props):U.props,N=q.dataKey,G=q.maxBarSize,F=q["".concat(j,"Id")],K=q["".concat(k,"Id")],Z={},X=l.reduce(function(nt,pt){var jt,lt,Tt=v["".concat(pt.axisType,"Map")],yt=q["".concat(pt.axisType,"Id")];Tt&&Tt[yt]||pt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?fr(!1,"Specifying a(n) ".concat(pt.axisType,"Id requires a corresponding ").concat(pt.axisType,"Id on the targeted graphical component ").concat((jt=U==null||(lt=U.type)===null||lt===void 0?void 0:lt.displayName)!==null&&jt!==void 0?jt:"")):fr());var bt=Tt[yt];return J(J({},nt),{},vt(vt({},pt.axisType,bt),"".concat(pt.axisType,"Ticks"),Fn(bt)))},Z),z=X[k],Y=X["".concat(k,"Ticks")],V=_&&_[F]&&_[F].hasStack&&OW(U,_[F].stackGroups),D=zn(U.type).indexOf("Bar")>=0,rt=Qu(z,Y),W=[],tt=R&&uW({barSize:T,stackGroups:_,totalSize:kY(X,k)});if(D){var ct,at,mt=xt(G)?C:G,Et=(ct=(at=Qu(z,Y,!0))!==null&&at!==void 0?at:mt)!==null&&ct!==void 0?ct:0;W=cW({barGap:P,barCategoryGap:E,bandSize:Et!==rt?Et:rt,sizeList:tt[K],maxBarSize:mt}),Et!==rt&&(W=W.map(function(nt){return J(J({},nt),{},{position:J(J({},nt.position),{},{offset:nt.position.offset-Et/2})})}))}var dt=U&&U.type&&U.type.getComposedData;dt&&L.push({props:J(J({},dt(J(J({},X),{},{displayedData:B,props:b,dataKey:N,item:U,bandSize:rt,barPosition:W,offset:g,stackedData:V,layout:M,dataStartIndex:S,dataEndIndex:A}))),{},vt(vt(vt({key:U.key||"item-".concat(I)},j,X[j]),k,X[k]),"animationId",w)),childIndex:O5(U,b.children),item:U})}),L},p=function(b,v){var x=b.props,_=b.dataStartIndex,g=b.dataEndIndex,w=b.updateId;if(!Mw({props:x}))return null;var S=x.children,A=x.layout,T=x.stackOffset,M=x.data,P=x.reverseStackOrder,E=UO(A),C=E.numericAxisName,$=E.cateAxisName,j=gr(S,n),k=wW(M,j,"".concat(C,"Id"),"".concat($,"Id"),T,P),R=l.reduce(function(q,N){var G="".concat(N.axisType,"Map");return J(J({},q),{},vt({},G,PY(x,J(J({},N),{},{graphicalItems:j,stackGroups:N.axisType===C&&k,dataStartIndex:_,dataEndIndex:g}))))},{}),L=CY(J(J({},R),{},{props:x,graphicalItems:j}),v==null?void 0:v.legendBBox);Object.keys(R).forEach(function(q){R[q]=c(x,R[q],L,q.replace("Map",""),r)});var U=R["".concat($,"Map")],I=EY(U),B=h(x,J(J({},R),{},{dataStartIndex:_,dataEndIndex:g,updateId:w,graphicalItems:j,stackGroups:k,offset:L}));return J(J({formattedGraphicalItems:B,graphicalItems:j,offset:L,stackGroups:k},I),R)},y=(function(d){function b(v){var x,_,g;return cY(this,b),g=pY(this,b,[v]),vt(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),vt(g,"accessibilityManager",new VX),vt(g,"handleLegendBBoxUpdate",function(w){if(w){var S=g.state,A=S.dataStartIndex,T=S.dataEndIndex,M=S.updateId;g.setState(J({legendBBox:w},p({props:g.props,dataStartIndex:A,dataEndIndex:T,updateId:M},J(J({},g.state),{},{legendBBox:w}))))}}),vt(g,"handleReceiveSyncEvent",function(w,S,A){if(g.props.syncId===w){if(A===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(S)}}),vt(g,"handleBrushChange",function(w){var S=w.startIndex,A=w.endIndex;if(S!==g.state.dataStartIndex||A!==g.state.dataEndIndex){var T=g.state.updateId;g.setState(function(){return J({dataStartIndex:S,dataEndIndex:A},p({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:T},g.state))}),g.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),vt(g,"handleMouseEnter",function(w){var S=g.getMouseInfo(w);if(S){var A=J(J({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseEnter;At(T)&&T(A,w)}}),vt(g,"triggeredAfterMouseMove",function(w){var S=g.getMouseInfo(w),A=S?J(J({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseMove;At(T)&&T(A,w)}),vt(g,"handleItemMouseEnter",function(w){g.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),vt(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),vt(g,"handleMouseMove",function(w){w.persist(),g.throttleTriggeredAfterMouseMove(w)}),vt(g,"handleMouseLeave",function(w){g.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseLeave;At(A)&&A(S,w)}),vt(g,"handleOuterEvent",function(w){var S=A5(w),A=Xr(g.props,"".concat(S));if(S&&At(A)){var T,M;/.*touch.*/i.test(S)?M=g.getMouseInfo(w.changedTouches[0]):M=g.getMouseInfo(w),A((T=M)!==null&&T!==void 0?T:{},w)}}),vt(g,"handleClick",function(w){var S=g.getMouseInfo(w);if(S){var A=J(J({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onClick;At(T)&&T(A,w)}}),vt(g,"handleMouseDown",function(w){var S=g.props.onMouseDown;if(At(S)){var A=g.getMouseInfo(w);S(A,w)}}),vt(g,"handleMouseUp",function(w){var S=g.props.onMouseUp;if(At(S)){var A=g.getMouseInfo(w);S(A,w)}}),vt(g,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),vt(g,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseDown(w.changedTouches[0])}),vt(g,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseUp(w.changedTouches[0])}),vt(g,"handleDoubleClick",function(w){var S=g.props.onDoubleClick;if(At(S)){var A=g.getMouseInfo(w);S(A,w)}}),vt(g,"handleContextMenu",function(w){var S=g.props.onContextMenu;if(At(S)){var A=g.getMouseInfo(w);S(A,w)}}),vt(g,"triggerSyncEvent",function(w){g.props.syncId!==void 0&&Jm.emit(Qm,g.props.syncId,w,g.eventEmitterSymbol)}),vt(g,"applySyncEvent",function(w){var S=g.props,A=S.layout,T=S.syncMethod,M=g.state.updateId,P=w.dataStartIndex,E=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)g.setState(J({dataStartIndex:P,dataEndIndex:E},p({props:g.props,dataStartIndex:P,dataEndIndex:E,updateId:M},g.state)));else if(w.activeTooltipIndex!==void 0){var C=w.chartX,$=w.chartY,j=w.activeTooltipIndex,k=g.state,R=k.offset,L=k.tooltipTicks;if(!R)return;if(typeof T=="function")j=T(L,w);else if(T==="value"){j=-1;for(var U=0;U<L.length;U++)if(L[U].value===w.activeLabel){j=U;break}}var I=J(J({},R),{},{x:R.left,y:R.top}),B=Math.min(C,I.x+I.width),q=Math.min($,I.y+I.height),N=L[j]&&L[j].value,G=tv(g.state,g.props.data,j),F=L[j]?{x:A==="horizontal"?L[j].coordinate:B,y:A==="horizontal"?q:L[j].coordinate}:nk;g.setState(J(J({},w),{},{activeLabel:N,activeCoordinate:F,activePayload:G,activeTooltipIndex:j}))}else g.setState(w)}),vt(g,"renderCursor",function(w){var S,A=g.state,T=A.isTooltipActive,M=A.activeCoordinate,P=A.activePayload,E=A.offset,C=A.activeTooltipIndex,$=A.tooltipAxisBandSize,j=g.getTooltipEventType(),k=(S=w.props.active)!==null&&S!==void 0?S:T,R=g.props.layout,L=w.key||"_recharts-cursor";return O.createElement(nY,{key:L,activeCoordinate:M,activePayload:P,activeTooltipIndex:C,chartName:r,element:w,isActive:k,layout:R,offset:E,tooltipAxisBandSize:$,tooltipEventType:j})}),vt(g,"renderPolarAxis",function(w,S,A){var T=Xr(w,"type.axisType"),M=Xr(g.state,"".concat(T,"Map")),P=w.type.defaultProps,E=P!==void 0?J(J({},P),w.props):w.props,C=M&&M[E["".concat(T,"Id")]];return O.cloneElement(w,J(J({},C),{},{className:Ct(T,C.className),key:w.key||"".concat(S,"-").concat(A),ticks:Fn(C,!0)}))}),vt(g,"renderPolarGrid",function(w){var S=w.props,A=S.radialLines,T=S.polarAngles,M=S.polarRadius,P=g.state,E=P.radiusAxisMap,C=P.angleAxisMap,$=ci(E),j=ci(C),k=j.cx,R=j.cy,L=j.innerRadius,U=j.outerRadius;return O.cloneElement(w,{polarAngles:Array.isArray(T)?T:Fn(j,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(M)?M:Fn($,!0).map(function(I){return I.coordinate}),cx:k,cy:R,innerRadius:L,outerRadius:U,key:w.key||"polar-grid",radialLines:A})}),vt(g,"renderLegend",function(){var w=g.state.formattedGraphicalItems,S=g.props,A=S.children,T=S.width,M=S.height,P=g.props.margin||{},E=T-(P.left||0)-(P.right||0),C=FM({children:A,formattedGraphicalItems:w,legendWidth:E,legendContent:u});if(!C)return null;var $=C.item,j=BO(C,iY);return O.cloneElement($,J(J({},j),{},{chartWidth:T,chartHeight:M,margin:P,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),vt(g,"renderTooltip",function(){var w,S=g.props,A=S.children,T=S.accessibilityLayer,M=Tr(A,_n);if(!M)return null;var P=g.state,E=P.isTooltipActive,C=P.activeCoordinate,$=P.activePayload,j=P.activeLabel,k=P.offset,R=(w=M.props.active)!==null&&w!==void 0?w:E;return O.cloneElement(M,{viewBox:J(J({},k),{},{x:k.left,y:k.top}),active:R,label:j,payload:R?$:[],coordinate:C,accessibilityLayer:T})}),vt(g,"renderBrush",function(w){var S=g.props,A=S.margin,T=S.data,M=g.state,P=M.offset,E=M.dataStartIndex,C=M.dataEndIndex,$=M.updateId;return O.cloneElement(w,{key:w.key||"_recharts-brush",onChange:tu(g.handleBrushChange,w.props.onChange),data:T,x:st(w.props.x)?w.props.x:P.left,y:st(w.props.y)?w.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:st(w.props.width)?w.props.width:P.width,startIndex:E,endIndex:C,updateId:"brush-".concat($)})}),vt(g,"renderReferenceElement",function(w,S,A){if(!w)return null;var T=g,M=T.clipPathId,P=g.state,E=P.xAxisMap,C=P.yAxisMap,$=P.offset,j=w.type.defaultProps||{},k=w.props,R=k.xAxisId,L=R===void 0?j.xAxisId:R,U=k.yAxisId,I=U===void 0?j.yAxisId:U;return O.cloneElement(w,{key:w.key||"".concat(S,"-").concat(A),xAxis:E[L],yAxis:C[I],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),vt(g,"renderActivePoints",function(w){var S=w.item,A=w.activePoint,T=w.basePoint,M=w.childIndex,P=w.isRange,E=[],C=S.props.key,$=S.item.type.defaultProps!==void 0?J(J({},S.item.type.defaultProps),S.item.props):S.item.props,j=$.activeDot,k=$.dataKey,R=J(J({index:M,dataKey:k,cx:A.x,cy:A.y,r:4,fill:E0(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},St(j,!1)),Uu(j));return E.push(b.renderActiveDot(j,R,"".concat(C,"-activePoint-").concat(M))),T?E.push(b.renderActiveDot(j,J(J({},R),{},{cx:T.x,cy:T.y}),"".concat(C,"-basePoint-").concat(M))):P&&E.push(null),E}),vt(g,"renderGraphicChild",function(w,S,A){var T=g.filterFormatItem(w,S,A);if(!T)return null;var M=g.getTooltipEventType(),P=g.state,E=P.isTooltipActive,C=P.tooltipAxis,$=P.activeTooltipIndex,j=P.activeLabel,k=g.props.children,R=Tr(k,_n),L=T.props,U=L.points,I=L.isRange,B=L.baseLine,q=T.item.type.defaultProps!==void 0?J(J({},T.item.type.defaultProps),T.item.props):T.item.props,N=q.activeDot,G=q.hide,F=q.activeBar,K=q.activeShape,Z=!!(!G&&E&&R&&(N||F||K)),X={};M!=="axis"&&R&&R.props.trigger==="click"?X={onClick:tu(g.handleItemMouseEnter,w.props.onClick)}:M!=="axis"&&(X={onMouseLeave:tu(g.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:tu(g.handleItemMouseEnter,w.props.onMouseEnter)});var z=O.cloneElement(w,J(J({},T.props),X));function Y(pt){return typeof C.dataKey=="function"?C.dataKey(pt.payload):null}if(Z)if($>=0){var V,D;if(C.dataKey&&!C.allowDuplicatedCategory){var rt=typeof C.dataKey=="function"?Y:"payload.".concat(C.dataKey.toString());V=zu(U,rt,j),D=I&&B&&zu(B,rt,j)}else V=U==null?void 0:U[$],D=I&&B&&B[$];if(K||F){var W=w.props.activeIndex!==void 0?w.props.activeIndex:$;return[O.cloneElement(w,J(J(J({},T.props),X),{},{activeIndex:W})),null,null]}if(!xt(V))return[z].concat($o(g.renderActivePoints({item:T,activePoint:V,basePoint:D,childIndex:$,isRange:I})))}else{var tt,ct=(tt=g.getItemByXY(g.state.activeCoordinate))!==null&&tt!==void 0?tt:{graphicalItem:z},at=ct.graphicalItem,mt=at.item,Et=mt===void 0?w:mt,dt=at.childIndex,nt=J(J(J({},T.props),X),{},{activeIndex:dt});return[O.cloneElement(Et,nt),null,null]}return I?[z,null,null]:[z,null]}),vt(g,"renderCustomized",function(w,S,A){return O.cloneElement(w,J(J({key:"recharts-customized-".concat(A)},g.props),g.state))}),vt(g,"renderMap",{CartesianGrid:{handler:su,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:su},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:su},YAxis:{handler:su},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((x=v.id)!==null&&x!==void 0?x:wa("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=xM(g.triggeredAfterMouseMove,(_=v.throttleDelay)!==null&&_!==void 0?_:1e3/60),g.state={},g}return yY(b,d),hY(b,[{key:"componentDidMount",value:function(){var x,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,_=x.children,g=x.data,w=x.height,S=x.layout,A=Tr(_,_n);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=tv(this.state,g,T,M),E=this.state.tooltipTicks[T].coordinate,C=(this.state.offset.top+w)/2,$=S==="horizontal",j=$?{x:E,y:C}:{y:E,x:C},k=this.state.formattedGraphicalItems.find(function(L){var U=L.item;return U.type.name==="Scatter"});k&&(j=J(J({},j),k.props.points[T].tooltipPosition),P=k.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:j};this.setState(R),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var g,w;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(x){Ky([Tr(x.children,_n)],[Tr(this.props.children,_n)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Tr(this.props.children,_n);if(x&&typeof x.props.shared=="boolean"){var _=x.props.shared?"axis":"item";return s.indexOf(_)>=0?_:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var _=this.container,g=_.getBoundingClientRect(),w=M3(g),S={chartX:Math.round(x.pageX-w.left),chartY:Math.round(x.pageY-w.top)},A=g.width/_.offsetWidth||1,T=this.inRange(S.chartX,S.chartY,A);if(!T)return null;var M=this.state,P=M.xAxisMap,E=M.yAxisMap,C=this.getTooltipEventType(),$=FO(this.state,this.props.data,this.props.layout,T);if(C!=="axis"&&P&&E){var j=ci(P).scale,k=ci(E).scale,R=j&&j.invert?j.invert(S.chartX):null,L=k&&k.invert?k.invert(S.chartY):null;return J(J({},S),{},{xValue:R,yValue:L},$)}return $?J(J({},S),$):null}},{key:"inRange",value:function(x,_){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,S=x/g,A=_/g;if(w==="horizontal"||w==="vertical"){var T=this.state.offset,M=S>=T.left&&S<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return M?{x:S,y:A}:null}var P=this.state,E=P.angleAxisMap,C=P.radiusAxisMap;if(E&&C){var $=ci(E);return YS({x:S,y:A},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,_=this.getTooltipEventType(),g=Tr(x,_n),w={};g&&_==="axis"&&(g.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=Uu(this.props,this.handleOuterEvent);return J(J({},S),w)}},{key:"addListener",value:function(){Jm.on(Qm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Jm.removeListener(Qm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,_,g){for(var w=this.state.formattedGraphicalItems,S=0,A=w.length;S<A;S++){var T=w[S];if(T.item===x||T.props.key===x.key||_===zn(T.item.type)&&g===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,_=this.state.offset,g=_.left,w=_.top,S=_.height,A=_.width;return O.createElement("defs",null,O.createElement("clipPath",{id:x},O.createElement("rect",{x:g,y:w,height:S,width:A})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(_,g){var w=LO(g,2),S=w[0],A=w[1];return J(J({},_),{},vt({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(_,g){var w=LO(g,2),S=w[0],A=w[1];return J(J({},_),{},vt({},S,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[x])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(x){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[x])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(x){var _=this.state,g=_.formattedGraphicalItems,w=_.activeItem;if(g&&g.length)for(var S=0,A=g.length;S<A;S++){var T=g[S],M=T.props,P=T.item,E=P.type.defaultProps!==void 0?J(J({},P.type.defaultProps),P.props):P.props,C=zn(P.type);if(C==="Bar"){var $=(M.data||[]).find(function(L){return _G(x,L)});if($)return{graphicalItem:T,payload:$}}else if(C==="RadialBar"){var j=(M.data||[]).find(function(L){return YS(x,L)});if(j)return{graphicalItem:T,payload:j}}else if(tf(T,w)||ef(T,w)||bl(T,w)){var k=c6({graphicalItem:T,activeTooltipItem:w,itemData:E.data}),R=E.activeIndex===void 0?k:E.activeIndex;return{graphicalItem:J(J({},T),{},{childIndex:R}),payload:bl(T,w)?E.data[k]:T.props.data[k]}}}return null}},{key:"render",value:function(){var x=this;if(!Mw(this))return null;var _=this.props,g=_.children,w=_.className,S=_.width,A=_.height,T=_.style,M=_.compact,P=_.title,E=_.desc,C=BO(_,aY),$=St(C,!1);if(M)return O.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Yy,qa({},$,{width:S,height:A,title:P,desc:E}),this.renderClipPath(),kw(g,this.renderMap)));if(this.props.accessibilityLayer){var j,k;$.tabIndex=(j=this.props.tabIndex)!==null&&j!==void 0?j:0,$.role=(k=this.props.role)!==null&&k!==void 0?k:"application",$.onKeyDown=function(L){x.accessibilityManager.keyboardEvent(L)},$.onFocus=function(){x.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return O.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",qa({className:Ct("recharts-wrapper",w),style:J({position:"relative",cursor:"default",width:S,height:A},T)},R,{ref:function(U){x.container=U}}),O.createElement(Yy,qa({},$,{width:S,height:A,title:P,desc:E,style:wY}),this.renderClipPath(),kw(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);vt(y,"displayName",r),vt(y,"defaultProps",J({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),vt(y,"getDerivedStateFromProps",function(d,b){var v=d.dataKey,x=d.data,_=d.children,g=d.width,w=d.height,S=d.layout,A=d.stackOffset,T=d.margin,M=b.dataStartIndex,P=b.dataEndIndex;if(b.updateId===void 0){var E=zO(d);return J(J(J({},E),{},{updateId:0},p(J(J({props:d},E),{},{updateId:0}),b)),{},{prevDataKey:v,prevData:x,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(v!==b.prevDataKey||x!==b.prevData||g!==b.prevWidth||w!==b.prevHeight||S!==b.prevLayout||A!==b.prevStackOffset||!Xa(T,b.prevMargin)){var C=zO(d),$={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},j=J(J({},FO(b,x,S)),{},{updateId:b.updateId+1}),k=J(J(J({},C),$),j);return J(J(J({},k),p(J({props:d},k),b)),{},{prevDataKey:v,prevData:x,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(!Ky(_,b.prevChildren)){var R,L,U,I,B=Tr(_,vo),q=B&&(R=(L=B.props)===null||L===void 0?void 0:L.startIndex)!==null&&R!==void 0?R:M,N=B&&(U=(I=B.props)===null||I===void 0?void 0:I.endIndex)!==null&&U!==void 0?U:P,G=q!==M||N!==P,F=!xt(x),K=F&&!G?b.updateId:b.updateId+1;return J(J({updateId:K},p(J(J({props:d},b),{},{updateId:K,dataStartIndex:q,dataEndIndex:N}),b)),{},{prevChildren:_,dataStartIndex:q,dataEndIndex:N})}return null}),vt(y,"renderActiveDot",function(d,b,v){var x;return O.isValidElement(d)?x=O.cloneElement(d,b):At(d)?x=d(b):x=O.createElement(Qc,b),O.createElement(Bt,{className:"recharts-active-dot",key:v},x)});var m=O.forwardRef(function(b,v){return O.createElement(y,qa({},b,{ref:v}))});return m.displayName=y.displayName,m},jY=$Y({chartName:"ComposedChart",GraphicalChild:[uf,ki,zo,ff],axisComponents:[{axisType:"xAxis",AxisComp:hf},{axisType:"yAxis",AxisComp:pf},{axisType:"zAxis",AxisComp:cf}],formatAxisMap:r4});const ls=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},RY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),DY=e=>new Intl.NumberFormat("en-US").format(e);function IY(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return ls()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,m)=>y.timestamp-m.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&ls()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),h},[t]),o=O.useMemo(()=>{if(!r||r.length===0)return ls()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(ls()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(ls()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),m=h.filter(d=>!y.has(d.dataKey));m.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",m.map(d=>d.dataKey))}}return h},[r,a]),{minTimestamp:s,maxTimestamp:l}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const h=a[0],p=a[a.length-1];return{minTimestamp:(h==null?void 0:h.timestamp)??0,maxTimestamp:(p==null?void 0:p.timestamp)??0}},[a]),u=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(h=>o.reduce((p,y)=>{const m=h[y.dataKey];return p+(typeof m=="number"?m:0)},0))),[a,o]),c=O.useMemo(()=>n||RY,[n]),f=O.useMemo(()=>i||DY,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:l,maxTotalValue:u,dateFormatter:c,valueFormatter:f}}function NY(e,t){const r=t-1-e,n=_s.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return _s[a]??_s[0]??"#000000"}function LY(e){return Array.from({length:e},(t,r)=>NY(r,e))}const Da=LY(5),In={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:yr.neoDigitalGreen[600],inProgress:"#007bff",farthest:Da[0],far:Da[1],close:Da[2],closest:Da[3],completed:Da[4],primary:"#007bff",secondary:"#6c757d",success:yr.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:yr.neoGrey[200],dark:"#343a40"},$t={dimensions:{height:400,width:"100%",minHeight:200},margin:{top:10,right:30,left:0,bottom:0},animation:{enabled:!0,duration:1500,easing:"ease"},display:{showHeader:!0,showLegend:!0,showTooltip:!0,showXAxis:!0,showYAxis:!0,showGrid:!0},curve:{type:"monotone"},stack:{offset:"none"},axis:{strokeColor:yr.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:yr.neoGrey[400],borderWidth:1,borderRadius:4,padding:10},legend:{iconSize:14,iconType:"square",layout:"horizontal",align:"center",verticalAlign:"bottom"},marker:{strokeColor:"#666",strokeWidth:2,strokeDasharray:"5 5",labelColor:"#666"}},BY={migration:Da,severity:[In.critical,In.high,In.medium,In.low,In.info],status:[In.danger,In.warning,In.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},qY={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},FY=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=$t.display.showHeader,height:o=$t.dimensions.height,width:s=$t.dimensions.width,showLegend:l=$t.display.showLegend,showTooltip:u=$t.display.showTooltip,showXAxis:c=$t.display.showXAxis,showYAxis:f=$t.display.showYAxis,showGrid:h=$t.display.showGrid,enableAnimation:p=$t.animation.enabled,animationDuration:y=$t.animation.duration,animationEasing:m=$t.animation.easing,formatDate:d,formatValue:b,tooltipFormatter:v,slotProps:x,margin:_=$t.margin,curveType:g=$t.curve.type,stackOffset:w=$t.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:T=!1,zoomToSelection:M=!1})=>{const{processedData:P,processedCategories:E,dateFormatter:C,valueFormatter:$}=IY({data:e,categories:t,formatDate:d,formatValue:b}),[j,k]=O.useState(null),[R,L]=O.useState(!1),[U,I]=O.useState(null),[B,q]=O.useState(null),N=O.useRef(null),G=S?[S[0],S[1]]:["dataMin","dataMax"],F=P.length>0?P[0].timestamp:0,K=P.length>0?P[P.length-1].timestamp:0,Z=O.useMemo(()=>{const nt=S?S[0]:F,pt=S?S[1]:K,jt=6;if(nt===pt||nt===0)return[];const lt=(pt-nt)/(jt-1);return Array.from({length:jt},(Tt,yt)=>Math.round(nt+lt*yt))},[S,F,K]),X=O.useCallback((nt,pt)=>{const jt=nt/pt*100,lt=K-F;return F+jt/100*lt},[F,K]),z=O.useCallback(nt=>{const pt=K-F;return pt===0?0:(nt-F)/pt*100},[F,K]),Y=O.useCallback(nt=>{if(!T)return;const pt=nt.currentTarget.getBoundingClientRect(),jt=nt.clientX-pt.left,lt=X(jt,pt.width);L(!0),I(lt),q(lt)},[T,X]),V=O.useCallback(nt=>{if(!N.current)return;const pt=nt.currentTarget.getBoundingClientRect(),jt=nt.clientX-pt.left,lt=pt.width,Tt=X(jt,lt);if(R)U!==null&&q(Tt);else{const bt=r.find(qt=>Math.abs(qt.timestamp-Tt)<2592e5);k((bt==null?void 0:bt.timestamp)??null)}},[R,U,X,r]),D=O.useCallback(()=>{if(R&&U!==null&&B!==null&&A){const nt=Math.min(U,B),pt=Math.max(U,B);nt!==pt&&A([nt,pt])}L(!1),I(null),q(null)},[R,U,B,A]),rt=O.useCallback(()=>{D(),k(null)},[D]),tt=(M?R:!0)&&R&&U!==null&&B!==null?{left:z(Math.min(U,B)),width:Math.abs(z(B)-z(U))}:null,at=(S?P.filter(nt=>nt.timestamp>=S[0]&&nt.timestamp<=S[1]):P).slice().reverse().map(nt=>{const pt=r.find(jt=>jt.timestamp===nt.timestamp);return pt&&pt.label?{...nt,__markerLabel:pt.label}:nt}),mt=nt=>C(nt),Et=nt=>$(nt),dt=({active:nt,payload:pt,label:jt})=>{if(!nt||!pt||pt.length===0)return null;const lt=at.find(yt=>yt.timestamp===jt);if(lt&&"__markerLabel"in lt){const bt=String(lt.__markerLabel).split(" - "),qt=bt[0]||"",Nt=bt[1]||"";return H.jsxs(Q.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[H.jsx(Q.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Nt}),H.jsx(Q.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:qt})]})}return H.jsxs(Q.Box,{sx:{backgroundColor:$t.tooltip.backgroundColor,border:`${$t.tooltip.borderWidth}px solid ${$t.tooltip.borderColor}`,borderRadius:$t.tooltip.borderRadius,padding:$t.tooltip.padding},children:[H.jsx(Q.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:C(jt)}),pt.map((yt,bt)=>H.jsxs(Q.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[H.jsx(Q.Box,{sx:{width:10,height:10,backgroundColor:yt.color,borderRadius:"2px"}}),H.jsxs(Q.Typography,{sx:{fontSize:"14px"},children:[yt.name,": ",$(yt.value)]})]},`item-${bt}`))]})};return H.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center"},...x==null?void 0:x.container,children:[a&&(n||i)&&H.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...x==null?void 0:x.header,children:[n&&H.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},...x==null?void 0:x.title,children:n}),i&&H.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},...x==null?void 0:x.subtitle,children:i})]}),H.jsxs(Q.Box,{ref:N,sx:{width:"100%",height:`${o}px`,minHeight:$t.dimensions.minHeight,position:"relative"},...x==null?void 0:x.chartContainer,children:[H.jsx(w3,{width:s,height:"100%",children:H.jsxs(jY,{data:at,margin:_,stackOffset:w,children:[h&&H.jsx(RC,{strokeDasharray:"3 3",stroke:$t.axis.strokeColor,opacity:.3}),c&&H.jsx(hf,{dataKey:"timestamp",type:"number",domain:G,tickFormatter:mt,stroke:$t.axis.strokeColor,tick:{fill:$t.axis.tickColor},scale:"time",ticks:Z}),f&&H.jsx(pf,{tickFormatter:Et,stroke:$t.axis.strokeColor,tick:{fill:$t.axis.tickColor}}),u&&H.jsx(_n,{content:H.jsx(dt,{})}),l&&H.jsx(na,{iconSize:$t.legend.iconSize,iconType:$t.legend.iconType,layout:$t.legend.layout,align:$t.legend.align,verticalAlign:$t.legend.verticalAlign}),E.map((nt,pt)=>H.jsx(ki,{type:g,dataKey:nt.dataKey,name:nt.label,stackId:"1",stroke:nt.color,fill:nt.strokeDasharray?"transparent":nt.color,fillOpacity:nt.strokeDasharray?0:nt.fillOpacity??.7,strokeWidth:nt.strokeWidth??2,strokeDasharray:nt.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:m,animationBegin:p?(E.length-1-pt)*100:0},nt.dataKey)),r.filter(nt=>j===null||nt.timestamp===j).map((nt,pt)=>H.jsx(nf,{x:nt.timestamp,stroke:nt.color??$t.marker.strokeColor,strokeWidth:nt.strokeWidth??$t.marker.strokeWidth,strokeDasharray:nt.strokeDasharray??$t.marker.strokeDasharray,strokeOpacity:j===null?0:1},`marker-${nt.timestamp}-${pt}`))]},S?`${S[0]}-${S[1]}`:"default")}),T&&H.jsxs(Q.Box,{sx:{position:"absolute",top:_.top||0,left:_.left||0,right:_.right||0,bottom:_.bottom||0,cursor:R?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:Y,onMouseMove:V,onMouseUp:D,onMouseLeave:rt,children:[tt&&H.jsx(Q.Box,{sx:{position:"absolute",left:`${tt.left}%`,width:`${tt.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),j&&H.jsx(H.Fragment,{children:r.filter(nt=>nt.timestamp===j).map(nt=>H.jsx(Q.Box,{sx:{position:"absolute",left:`${z(nt.timestamp)}%`,top:"-50px",transform:"translateX(-50%)",backgroundColor:"#992FB9",color:"white",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:nt.label||C(nt.timestamp)},`tooltip-${nt.timestamp}`))})]})]})]})},zY=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timelineEvents:o=[],showTimeline:s=!0,timelineHeight:l=40,timelineOffset:u=35,timeRange:c,showGrid:f=!0,showAxes:h=!0,axisLabelColor:p,axisLabelSize:y=14,enableBrush:m=!1,onTimeRangeChange:d,minAllowedTime:b,maxAllowedTime:v,brushColor:x="#69b3a2",formatDate:_,formatValue:g,markers:w=[],onHoveredDataChange:S,hoveredCategory:A,onTimelineEventHover:T})=>{const[M,P]=O.useState(null),[E,C]=O.useState(null),[$,j]=O.useState([]),k=O.useRef(`sawt-${Math.random().toString(36).substr(2,9)}`),R=O.useCallback(L=>{P(L),T==null||T(L)},[T]);return O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const L=ee(e.current),U=n-a.left-a.right,I=i-a.top-a.bottom,B=k.current;L.selectAll("*").remove();const q=`main-chart-group main-chart-group-${B}`,N=L.append("g").attr("class",q).attr("transform",`translate(${a.left},${a.top})`),G=`sawt-clip-${B}`;L.append("defs").append("clipPath").attr("id",G).append("rect").attr("x",0).attr("y",0).attr("width",U).attr("height",I);const F=N.append("g").attr("clip-path",`url(#${G})`),Z=[...t.map(lt=>({timestamp:lt.timestamp,...lt.values}))].sort((lt,Tt)=>lt.timestamp-Tt.timestamp),X=r.map(lt=>lt.dataKey),z=Bs().keys(X),Y=z(Z),V=t.map(lt=>lt.timestamp),D=c?c[0]:Math.min(...V),rt=c?c[1]:Math.max(...V),W=Ls().domain([new Date(D),new Date(rt)]).range([0,U]),tt=Z.filter(lt=>lt.timestamp>=D&&lt.timestamp<=rt),ct=z(tt),at=ct.length>0?Math.max(...ct[ct.length-1].map(lt=>lt[1]??0)):0,mt=_i().domain([0,at*1.1]).range([I,0]).nice();f&&(F.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(oa(W).ticks(6).tickSize(I).tickFormat(()=>"")),F.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(sa(mt).ticks(5).tickSize(-U).tickFormat(()=>"")));const Et=fi().x(lt=>W(new Date(lt.data.timestamp))).y0(lt=>mt(lt[0])).y1(lt=>mt(lt[1])).curve(Yn),dt=F.append("g").attr("class","areas");Y.forEach((lt,Tt)=>{const yt=r[Tt];if(!yt)return;const bt=A===yt.dataKey,qt=A!=null;dt.append("path").datum(lt).attr("class",`area area-${yt.dataKey}`).attr("fill",yt.color).attr("fill-opacity",qt?bt?.9:.3:.7).attr("stroke",yt.color).attr("stroke-width",bt?2:1.5).attr("d",Et).on("mouseenter",()=>{const Nt=tt[tt.length-1],Rt=Nt?Nt[yt.dataKey]??0:0;S==null||S({label:yt.label,value:Rt,color:yt.color})}).on("mouseleave",()=>{S==null||S(null)})});const nt=w.filter(lt=>lt.timestamp>=D&&lt.timestamp<=rt).map(lt=>({...lt,x:W(new Date(lt.timestamp))}));j(lt=>lt.length!==nt.length||lt.some((Tt,yt)=>{var bt,qt;return Tt.timestamp!==((bt=nt[yt])==null?void 0:bt.timestamp)||Tt.x!==((qt=nt[yt])==null?void 0:qt.x)})?nt:lt);let pt=null;if(nt.length>0&&(pt=F.append("g").attr("class","markers"),nt.forEach(lt=>{pt.append("line").attr("class","marker-line").attr("data-timestamp",lt.timestamp).attr("x1",lt.x).attr("x2",lt.x).attr("y1",0).attr("y2",I).attr("stroke",lt.color??"#131E7A").attr("stroke-width",2).attr("opacity",0)})),h){const Tt=oa(W).ticks(6).tickPadding(12);_&&Tt.tickFormat(bt=>_(+bt)),N.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${I})`).call(Tt).selectAll("text").attr("font-size",y).attr("fill",p??null);const yt=sa(mt).ticks(5);yt.tickFormat(bt=>+bt==0?"":g?g(+bt):String(bt)),N.append("g").attr("class","axis axis-y").call(yt).selectAll("text").attr("font-size",y).attr("fill",p??null)}if(m&&d){const lt=Tl().extent([[0,0],[U,I]]).on("end",yt=>{if(!yt.selection)return;const[bt,qt]=yt.selection,Nt=[+W.invert(bt),+W.invert(qt)];b!==void 0&&(Nt[0]=Math.max(Nt[0],b)),v!==void 0&&(Nt[1]=Math.min(Nt[1],v)),d(Nt),L.select(".brush").call(lt.move,null)}),Tt=F.append("g").attr("class","brush").call(lt);Tt.selectAll(".selection").attr("fill",x).attr("fill-opacity",.2).attr("stroke",x).attr("stroke-width",1),Tt.selectAll(".handle").attr("fill",x).attr("fill-opacity",.8)}if(s&&o&&o.length>0&&Jv({svg:L,events:o,xScale:W,chartHeight:I,chartWidth:U,timelineHeight:l,timelineOffset:u,instanceId:B,setHoveredTimelineEvent:R,enableBrush:m,onTimeRangeChange:d,minAllowedTime:b,maxAllowedTime:v,brushColor:x,mainGroupSelector:`.main-chart-group-${B}`}),nt.length>0&&pt){let lt=null,Tt;m?Tt=F.select(".brush .overlay"):Tt=N.append("rect").attr("class","marker-hover-overlay").attr("width",U).attr("height",I).attr("fill","none").attr("pointer-events","all");const yt=pt,bt=Nt=>{let Rt=null,Lt=1/0;if(nt.forEach(ke=>{const Ie=Math.abs(Nt-ke.x);Ie<Lt&&(Lt=Ie,Rt=ke)}),!Rt||Lt>50)return lt!==null&&(lt=null,yt.selectAll(".marker-line").attr("opacity",0),C(null)),!1;const ze=Rt;return lt===ze.timestamp||(lt=ze.timestamp,yt.selectAll(".marker-line").attr("opacity",0),yt.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(ze.timestamp)}).attr("opacity",.6),C(ze)),!0},qt=function(Nt){const[Rt]=Za(Nt,this);bt(Rt)};Tt.on("mouseenter",qt),Tt.on("mousemove",qt),Tt.on("mouseleave",function(){lt=null,yt.selectAll(".marker-line").attr("opacity",0),C(null)})}return()=>{L.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,l,u,c,f,h,p,y,m,d,b,v,x,_,g,w,S,A,R]),{hoveredTimelineEvent:M,hoveredMarker:E,visibleMarkers:$}},UY=({data:e,categories:t,timelineEvents:r=[],showTimeline:n=!0,timelineHeight:i=40,timelineOffset:a,width:o=900,height:s=400,margin:l={top:10,right:30,bottom:40,left:60},showGrid:u=!0,showAxes:c=!0,axisLabelColor:f,axisLabelSize:h=14,formatDate:p,formatValue:y,timeRange:m,enableBrush:d=!1,onTimeRangeChange:b,minAllowedTime:v,maxAllowedTime:x,brushColor:_="#69b3a2",markers:g=[],onHoveredDataChange:w,hoveredCategory:S,onTimelineEventHover:A})=>{const T=O.useRef(null),M=12,E=a??6+M+h+M,C=n&&r&&r.length>0,$=C?s+i+E:s,{hoveredTimelineEvent:j,hoveredMarker:k,visibleMarkers:R}=zY({containerRef:T,data:e,categories:t,width:o,height:s,margin:l,timelineEvents:r,showTimeline:C,timelineHeight:i,timelineOffset:E,timeRange:m,showGrid:u,showAxes:c,axisLabelColor:f,axisLabelSize:h,enableBrush:d,onTimeRangeChange:b,minAllowedTime:v,maxAllowedTime:x,brushColor:_,formatDate:p,formatValue:y,markers:g,onHoveredDataChange:w,hoveredCategory:S,onTimelineEventHover:A});return H.jsxs(Q.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[H.jsx("svg",{ref:T,viewBox:`0 0 ${o} ${$}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),R.map(L=>{const U=(L.x+l.left)/o*100,I=l.top/$*100,B=new Date(L.timestamp),q=p?p(L.timestamp):B.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),N=H.jsxs(Q.Box,{children:[H.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:L.label?.5:0},children:q}),L.label&&H.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:L.label})]});return H.jsx(Q.Tooltip,{title:N,open:(k==null?void 0:k.timestamp)===L.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:H.jsx(Q.Box,{sx:{position:"absolute",left:`${U}%`,top:`${I}%`,width:"1px",height:`${(s-l.top-l.bottom)/$*100}%`,pointerEvents:"none"}})},L.timestamp)}),j&&C&&!k&&H.jsx(Q.Tooltip,{title:H.jsxs(Q.Box,{children:[H.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:p?p(j.timestamp):new Date(j.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),H.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:j.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:H.jsx(Q.Box,{sx:{position:"absolute",left:`${(j.x+l.left)/o*100}%`,top:`${(s+E+i/2)/$*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})})]})},bn={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(31, 41, 55, 0.14)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},WY=(e="#4B5563")=>({startHandle:{sx:{position:"absolute",left:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}},endHandle:{sx:{position:"absolute",right:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}}}),tn={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:bn.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${bn.dimensions.height}px`,backgroundColor:bn.colors.background,borderRadius:0,overflow:"visible",border:`1px solid ${bn.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${bn.dimensions.eventWidth}px`,height:"100%",backgroundColor:bn.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:bn.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${bn.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:bn.colors.tooltipText,fontSize:"11px"}}},HY=(e="#9CA3AF")=>({startHandle:{sx:{position:"absolute",left:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}},endHandle:{sx:{position:"absolute",right:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}}}),GY=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},KY=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{GY()&&e.length>1&&(e.every((K,Z)=>Z===0||K.timestamp>=e[Z-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[s,l]=O.useState(!1),[u,c]=O.useState(null),[f,h]=O.useState(null),[p,y]=O.useState({start:null,end:null}),[m,d]=O.useState({start:null,end:null}),[b,v]=O.useState(null),x=O.useRef(null),_=t??p,g=a??m,w=O.useMemo(()=>{var F;return e.length>0?((F=e[0])==null?void 0:F.timestamp)??0:0},[e]),S=O.useMemo(()=>{var F;return e.length>0?((F=e[e.length-1])==null?void 0:F.timestamp)??0:0},[e]),A=O.useMemo(()=>i&&g.start&&g.end?g.start:w,[i,g,w]),T=O.useMemo(()=>i&&g.start&&g.end?g.end:S,[i,g,S]),M=O.useMemo(()=>T-A,[T,A]),P=O.useMemo(()=>!n&&_.start!==null&&_.end!==null,[n,_]),E=O.useCallback(F=>M===0?0:(F-A)/M*100,[A,M]),C=O.useCallback((F,K)=>{const Z=F/K*100;return A+Z/100*M},[A,M]),$=O.useCallback(F=>{t===void 0&&y(F),r==null||r(F)},[t,r]),j=O.useCallback(F=>{const K=F.currentTarget.getBoundingClientRect(),Z=F.clientX-K.left,X=C(Z,K.width);l(!0),c(X),$({start:X,end:X})},[C,$]),k=O.useCallback(F=>{if(!s||u===null)return;const K=F.currentTarget.getBoundingClientRect(),Z=F.clientX-K.left,X=C(Z,K.width);if(f==="start"){const z=Math.min(X,_.end-M*.01);$({start:Math.max(z,A),end:_.end})}else if(f==="end"){const z=Math.max(X,_.start+M*.01);$({start:_.start,end:Math.min(z,T)})}else if(f==="body"){const z=X-u,Y=_.end-_.start;let V=_.start+z,D=_.end+z;V<A&&(V=A,D=A+Y),D>T&&(D=T,V=T-Y),$({start:V,end:D}),c(X)}else $({start:Math.min(u,X),end:Math.max(u,X)})},[s,u,f,_,M,A,T,C,$]),R=O.useCallback(()=>{const F=s;if(l(!1),h(null),F&&i&&_.start&&_.end&&_.start!==_.end){const K={start:_.start,end:_.end};a===void 0&&d(K),o==null||o(K)}},[s,i,_,a,o]);O.useEffect(()=>{if(!s||u===null||!x.current)return;const F=Z=>{const X=x.current;if(!X)return;const z=X.getBoundingClientRect(),Y=Z.clientX-z.left,V=C(Y,z.width);if(f==="start"){const D=Math.min(V,_.end-M*.01);$({start:Math.max(D,A),end:_.end})}else if(f==="end"){const D=Math.max(V,_.start+M*.01);$({start:_.start,end:Math.min(D,T)})}else if(f==="body"){const D=V-u,rt=_.end-_.start;let W=_.start+D,tt=_.end+D;W<A&&(W=A,tt=A+rt),tt>T&&(tt=T,W=T-rt),$({start:W,end:tt}),c(V)}else $({start:Math.min(u,V),end:Math.max(u,V)})},K=()=>{R()};return document.addEventListener("mousemove",F),document.addEventListener("mouseup",K),()=>{document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",K)}},[s,u,f,_,M,A,T,C,$,R]);const L=O.useCallback(F=>{F.stopPropagation(),_.start!==null&&(l(!0),c(_.start),h("start"))},[_]),U=O.useCallback(F=>{F.stopPropagation(),_.end!==null&&(l(!0),c(_.end),h("end"))},[_]),I=O.useCallback(F=>{F.stopPropagation();const K=x.current;if(!K)return;const Z=K.getBoundingClientRect(),X=F.clientX-Z.left,z=C(X,Z.width);l(!0),c(z),h("body")},[C]),B=O.useCallback(F=>{if(F.cancelable&&n&&F.preventDefault(),!n||!_.start||!_.end||M===0)return;const K=(_.start+_.end)/2,Z=_.end-_.start,X=F.deltaY>0?1.1:.9,z=Math.max(Z*X,M*.01),Y=M*1.5,V=Math.min(z,Y);let D=K-V/2,rt=K+V/2;D<A&&(D=A,rt=Math.min(A+V,T)),rt>T&&(rt=T,D=Math.max(T-V,A)),$({start:D,end:rt})},[n,_,M,A,T,$]),q=O.useCallback(()=>!_.start||!_.end?[]:e.filter(F=>F.timestamp>=_.start&&F.timestamp<=_.end),[e,_]),N=O.useCallback(()=>{const F={start:w,end:S};a===void 0&&d({start:null,end:null}),o==null||o(F)},[w,S,a,o]),G=O.useCallback(()=>{i&&N()},[i,N]);return{isDragging:s,dragStart:u,dragHandleType:f,internalSelectedRange:_,internalVisibleRange:g,hoveredEvent:b,minDate:A,maxDate:T,timeSpan:M,timelineContainerRef:x,getPositionFromTimestamp:E,getTimestampFromPosition:C,handleMouseDown:j,handleMouseMove:k,handleMouseUp:R,handleWheel:B,handleDoubleClick:G,handleStartHandleMouseDown:L,handleEndHandleMouseDown:U,handleSelectionBodyMouseDown:I,setHoveredEvent:v,getEventsInRange:q,resetZoom:N,showHandles:P}},XY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),YY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),VY=e=>{const t=e/864e5;return t>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},ZY=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},JY=(e,t="arrow",r)=>{const n=t==="grip"?HY(r||"#9CA3AF"):WY(r||"#4B5563");return{header:{...tn.header,...e==null?void 0:e.header},title:{...tn.title,...e==null?void 0:e.title},instructions:{...tn.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...tn.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...tn.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...tn.timeline,...e==null?void 0:e.timeline},event:{...tn.event,...e==null?void 0:e.event},selection:{...tn.selection,...e==null?void 0:e.selection},startHandle:{...n.startHandle,...e==null?void 0:e.startHandle},endHandle:{...n.endHandle,...e==null?void 0:e.endHandle},tooltip:{...tn.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...tn.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...tn.tooltipDate,...e==null?void 0:e.tooltipDate}}},QY=({events:e,onSelectionChange:t,selectedRange:r,height:n=bn.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=XY,formatMonthYear:o=YY,showMonthLabels:s=!0,monthLabelCount:l=6,enableZoom:u=!0,dragHandleVariant:c="arrow",dragHandleColor:f,showHeader:h=!0,title:p="Event Timeline Selector",zoomToSelection:y=!1,visibleRange:m,onVisibleRangeChange:d,timeRange:b,onTimeRangeChange:v,slotProps:x})=>{const _=b?{start:b[0],end:b[1]}:m,g=v?F=>{F.start!==null&&F.end!==null&&v([F.start,F.end])}:d;ZY()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const w=O.useMemo(()=>JY(x,c,f),[x,c,f]),{isDragging:S,dragHandleType:A,internalSelectedRange:T,hoveredEvent:M,minDate:P,timeSpan:E,timelineContainerRef:C,getPositionFromTimestamp:$,handleMouseDown:j,handleWheel:k,handleDoubleClick:R,handleStartHandleMouseDown:L,handleEndHandleMouseDown:U,handleSelectionBodyMouseDown:I,setHoveredEvent:B,getEventsInRange:q,showHandles:N}=KY({events:e,selectedRange:r,onSelectionChange:t,enableZoom:u,zoomToSelection:y,visibleRange:_,onVisibleRangeChange:g}),G=T.start&&T.end?`Selected: ${a(T.start)} - ${a(T.end)} (${q().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return H.jsxs(Q.Stack,{sx:{width:"100%"},children:[h&&H.jsxs(Q.Stack,{spacing:1,sx:{mb:3},...w.header,children:[H.jsx(Q.Typography,{variant:"h5",...w.title,children:p}),H.jsx(Q.Typography,{variant:"body2",...w.instructions,children:G})]}),s&&H.jsx(Q.Stack,{direction:"row",...w.monthLabelsContainer,sx:{...w.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:l},(F,K)=>{const Z=P+E/(l-1)*K,X=VY(E);return H.jsx(Q.Typography,{variant:"caption",...w.monthLabel,children:X(Z)},K)})}),H.jsxs(Q.Box,{...w.timeline,sx:{...w.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[H.jsx(Q.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((F,K)=>{const Z=$(F.timestamp);return H.jsx(Q.Box,{onMouseEnter:()=>B(F),onMouseLeave:()=>B(null),"aria-label":`Event: ${F.eventName} at ${a(F.timestamp)}`,...w.event,sx:{...w.event.sx,left:`${Z}%`,transform:(M==null?void 0:M.timestamp)===F.timestamp?"scaleX(2)":"scaleX(1)"}},`${F.timestamp}-${K}`)})}),T.start&&T.end&&(!y||S)&&H.jsx(Q.Box,{...w.selection,onMouseDown:N&&!S?I:void 0,sx:{...w.selection.sx,left:`${$(T.start)}%`,width:`${$(T.end)-$(T.start)}%`,pointerEvents:N?"all":"none",zIndex:2,cursor:N&&!S?A==="body"?"grabbing":"grab":"default"},children:N&&!(S&&A===null)&&H.jsxs(H.Fragment,{children:[H.jsx(Q.Box,{...w.startHandle,onMouseDown:L,sx:{...w.startHandle.sx,cursor:"ew-resize",opacity:S&&A!=="start"?.5:1},"aria-label":"Drag to adjust start of selection"}),H.jsx(Q.Box,{...w.endHandle,onMouseDown:U,sx:{...w.endHandle.sx,cursor:"ew-resize",opacity:S&&A!=="end"?.5:1},"aria-label":"Drag to adjust end of selection"})]})}),H.jsx(Q.Box,{ref:C,role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":h?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair",pointerEvents:"all",zIndex:1},onMouseDown:j,onWheel:k,onDoubleClick:R}),!h&&H.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:G}),M&&H.jsxs(Q.Box,{role:"tooltip","aria-live":"polite",...w.tooltip,sx:{...w.tooltip.sx,left:`${$(M.timestamp)}%`,transform:"translateX(-50%)"},children:[H.jsx(Q.Typography,{variant:"body2",...w.tooltipEventName,children:M.eventName}),H.jsx(Q.Typography,{variant:"caption",...w.tooltipDate,children:a(M.timestamp)})]})]})]})},tV="#8b5cf6",eV=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),rV=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=eV,primaryColor:i=tV})=>e.length===0?null:H.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[H.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),H.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>H.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[H.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),H.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=Ts;exports.CAMPAIGN_NOT_APPLICABLE=As;exports.CAMPAIGN_NO_LST=Os;exports.CATEGORY_LABELS=qY;exports.ChronoChart=AE;exports.ChronoPerspectiveChart=AE;exports.D3StackedAreaChart=TL;exports.DEFAULT_CHART_COLORS=yr;exports.DEFAULT_CHART_CONFIG=ir;exports.DEFAULT_STACKED_AREA_COLORS=In;exports.DEFAULT_STACKED_AREA_CONFIG=$t;exports.MEASURE_GRADIENT_COLORS=_s;exports.MODERNE_VULNERABILITY_COLORS=Ka;exports.MorphChart=uE;exports.ParliamentChart=XF;exports.STACKED_AREA_PALETTES=BY;exports.StackedAreaChart=FY;exports.StackedAreaWithTimeline=UY;exports.TimelineChart=QY;exports.TimelineSelectedEvents=rV;exports.calculateDataSeries=iM;exports.calculateOptimalArcAngle=t0;exports.calculateOptimalSeatSize=e0;