=d&&h<=p}else{for(;h>d;)h-=360;for(;h=p&&h<=d}return a?ey(ey({},t),{},{radius:l,angle:h+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null},"polarToCartesian",0,em],768970);var eb=e.i(430224),ex=(0,o.createContext)(null);e.s(["RechartsReduxContext",0,ex],676277);var ew=e=>e,eA=()=>{var e=(0,o.useContext)(ex);return e?e.store.dispatch:ew},eS=()=>{},eO=()=>eS,eE=(e,t)=>e===t;function eP(e){var t=(0,o.useContext)(ex),r=(0,o.useMemo)(()=>t?t=>{if(null!=t)return e(t)}:eS,[t,e]);return(0,eb.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:eO,t?t.store.getState:eS,t?t.store.getState:eS,r,eE)}e.s(["useAppDispatch",0,eA,"useAppSelector",0,eP],127241);var eI=Symbol.for("immer-nothing"),eC=Symbol.for("immer-draftable"),eT=Symbol.for("immer-state");function ej(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ek=Object,eD=ek.getPrototypeOf,eM="constructor",e_="prototype",eN="configurable",eL="enumerable",eR="writable",eB="value",ez=e=>!!e&&!!e[eT];function eF(e){return!!e&&(eW(e)||eY(e)||!!e[eC]||!!e[eM]?.[eC]||eX(e)||eZ(e))}var eU=ek[e_][eM].toString(),e$=new WeakMap;function eW(e){if(!e||!eQ(e))return!1;let t=eD(e);if(null===t||t===ek[e_])return!0;let r=ek.hasOwnProperty.call(t,eM)&&t[eM];if(r===Object)return!0;if(!eJ(r))return!1;let n=e$.get(r);return void 0===n&&(n=Function.toString.call(r),e$.set(r,n)),n===eU}function eK(e,t,r=!0){0===eV(e)?(r?Reflect.ownKeys(e):ek.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function eV(e){let t=e[eT];return t?t.type_:eY(e)?1:eX(e)?2:3*!!eZ(e)}var eG=(e,t,r=eV(e))=>2===r?e.has(t):ek[e_].hasOwnProperty.call(e,t),eH=(e,t,r=eV(e))=>2===r?e.get(t):e[t],eq=(e,t,r,n=eV(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r},eY=Array.isArray,eX=e=>e instanceof Map,eZ=e=>e instanceof Set,eQ=e=>"object"==typeof e,eJ=e=>"function"==typeof e,e0=e=>e.modified_?e.copy_:e.base_;function e1(e,t){if(eX(e))return new Map(e);if(eZ(e))return new Set(e);if(eY(e))return Array[e_].slice.call(e);let r=eW(e);if(!0!==t&&("class_only"!==t||r)){let t=eD(e);if(null!==t&&r)return{...e};let n=ek.create(t);return ek.assign(n,e)}{let t=ek.getOwnPropertyDescriptors(e);delete t[eT];let r=Reflect.ownKeys(t);for(let n=0;n1&&ek.defineProperties(e,{set:e6,add:e6,clear:e6,delete:e6}),ek.freeze(e),t&&eK(e,(e,t)=>{e2(t,!0)},!1)),e}var e6={[eB]:function(){ej(2)}};function e5(e){return!(null!==e&&eQ(e))||ek.isFrozen(e)}var e3="MapSet",e9="Patches",e7="ArrayMethods",e4={};function e8(e){let t=e4[e];return t||ej(0),t}var te=e=>!!e4[e];function tt(e,t){t&&(e.patchPlugin_=e8(e9),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function tr(e){tn(e),e.drafts_.forEach(ta),e.drafts_=null}function tn(e){e===a&&(a=e.parent_)}var ti=e=>a={drafts_:[],parent_:a,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:te(e3)?e8(e3):void 0,arrayMethodsPlugin_:te(e7)?e8(e7):void 0};function ta(e){let t=e[eT];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function to(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(void 0!==e&&e!==r){r[eT].modified_&&(tr(t),ej(4)),eF(e)&&(e=tl(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[eT].base_,e,t)}else e=tl(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&e2(t,r)}(t,e,!0),tr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==eI?e:void 0}function tl(e,t){if(e5(t))return t;let r=t[eT];if(!r)return tp(t,e.handledSet_,e);if(!tu(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);td(r,e)}return r.copy_}function tc(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var tu=(e,t)=>e.scope_===t,ts=[];function tf(e,t,r,n){let i=e.copy_||e.base_,a=e.type_;if(void 0!==n&&eH(i,n,a)===t)return void eq(i,n,r,a);if(!e.draftLocations_){let t=e.draftLocations_=new Map;eK(i,(e,r)=>{if(ez(r)){let n=t.get(r)||[];n.push(e),t.set(r,n)}})}for(let n of e.draftLocations_.get(t)??ts)eq(i,n,r,a)}function td(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:r}=t;if(r){let n=r.getPath(e);n&&r.generatePatches_(e,n,t)}tc(e)}}function tp(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ez(e)||t.has(e)||!eF(e)||e5(e)||(t.add(e),eK(e,(n,i)=>{if(ez(i)){let t=i[eT];tu(t,r)&&(eq(e,n,e0(t),e.type_),tc(t))}else eF(i)&&tp(i,t,r)})),e}var th={get(e,t){let r;if(t===eT)return e;if("constructor"===t||"__proto__"===t)return new Proxy((e.copy_||e.base_)[t]||{},{get:(e,t)=>"__proto__"===t||"prototype"===t?Object.freeze(Object.create(null)):Reflect.get(e,t),set:()=>!0,apply:(e,t,r)=>Reflect.apply(e,t,r)});let n=e.scope_.arrayMethodsPlugin_,i=1===e.type_&&"string"==typeof t;if(i&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let a=e.copy_||e.base_;if(!eG(a,t,e.type_)){var o;let r;return o=e,(r=tm(a,t))?eB in r?r[eB]:r.get?.call(o.draft_):void 0}let l=a[t];if(e.finalized_||!eF(l)||i&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Number.isInteger(r=+t)&&String(r)===t)return l;if(l===tv(e.base_,t)){tb(e);let r=1===e.type_?+t:t,n=tx(e.scope_,l,e,r);return e.copy_[r]=n}return l},has:(e,t)=>"constructor"!==t&&"__proto__"!==t&&"prototype"!==t&&t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,r){if("constructor"===t||"__proto__"===t||"prototype"===t)return!0;let n=tm(e.copy_||e.base_,t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=tv(e.copy_||e.base_,t),i=n?.[eT];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||eG(e.base_,t,e.type_)))return!0;tb(e),tg(e)}return!!(e.copy_[t]===r&&(void 0!==r||eG(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_.set(t,!0),!function(e,t,r){let{scope_:n}=e;if(ez(r)){let i=r[eT];tu(i,n)&&i.callbacks_.push(function(){tb(e),tf(e,r,e0(i),t)})}else eF(r)&&e.callbacks_.push(function(){let i=e.copy_||e.base_;3===e.type_?i.has(r)&&tp(r,n.handledSet_,n):eH(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&tp(eH(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r),!0)},deleteProperty:(e,t)=>(tb(e),void 0!==tv(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),tg(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=e.copy_||e.base_,n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[eR]:!0,[eN]:1!==e.type_||"length"!==t,[eL]:n[eL],[eB]:r[t]}:n},defineProperty(){ej(11)},getPrototypeOf:e=>eD(e.base_),setPrototypeOf(){ej(12)}},ty={};for(let e in th){let t=th[e];ty[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function tv(e,t){let r=e[eT];return(r?r.copy_||r.base_:e)[t]}function tm(e,t){if(!(t in e))return;let r=eD(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=eD(r)}}function tg(e){!e.modified_&&(e.modified_=!0,e.parent_&&tg(e.parent_))}function tb(e){e.copy_||(e.assigned_=new Map,e.copy_=e1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function tx(e,t,r,n){let[i,o]=eX(t)?e8(e3).proxyMap_(t,r):eZ(t)?e8(e3).proxySet_(t,r):function(e,t){let r=eY(e),n={type_:+!!r,scope_:t?t.scope_:a,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,o=th;r&&(i=[n],o=ty);let{revoke:l,proxy:c}=Proxy.revocable(i,o);return n.draft_=c,n.revoke_=l,[c,n]}(t,r);if((r?.scope_??a).drafts_.push(i),o.callbacks_=r?.callbacks_??[],o.key_=n,r&&void 0!==n)r.callbacks_.push(function(e){if(!o||!tu(o,e))return;e.mapSetPlugin_?.fixSetContents(o);let t=e0(o);tf(r,o.draft_??o,t,n),td(o,e)});else o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)});return i}function tw(e){return ez(e)||ej(10),function e(t){let r;if(!eF(t)||e5(t))return t;let n=t[eT],i=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=e1(t,n.scope_.immer_.useStrictShallowCopy_),i=n.scope_.immer_.shouldUseStrictIteration()}else r=e1(t,!0);return eK(r,(t,n)=>{eq(r,t,e(n))},i),n&&(n.finalized_=!1),r}(e)}ty.deleteProperty=function(e,t){return ty.set.call(this,e,t,void 0)},ty.set=function(e,t,r){return th.set.call(this,e[0],t,r,e[0])};var tA=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{let n;if(eJ(e)&&!eJ(t)){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if(eJ(t)||ej(6),void 0===r||eJ(r)||ej(7),eF(e)){let i=ti(this),a=tx(i,e,void 0),o=!0;try{n=t(a),o=!1}finally{o?tr(i):tn(i)}return tt(i,r),to(n,i)}if(e&&eQ(e))ej(1);else{if(void 0===(n=t(e))&&(n=e),n===eI&&(n=void 0),this.autoFreeze_&&e2(n,!0),r){let t=[],i=[];e8(e9).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:i}),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return eJ(e)?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},(e=>"boolean"==typeof e)(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),(e=>"boolean"==typeof e)(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),(e=>"boolean"==typeof e)(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){eF(e)||ej(8),ez(e)&&(e=tw(e));let t=ti(this),r=tx(t,e,void 0);return r[eT].isManual_=!0,tn(t),r}finishDraft(e,t){let r=e&&e[eT];r&&r.isManual_||ej(9);let{scope_:n}=r;return tt(n,t),to(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=e8(e9).applyPatches_;return ez(e)?n(e,t):this.produce(e,e=>n(e,t))}}().produce,tS=e=>e;e.s(["castDraft",0,tS,"current",0,tw,"freeze",0,e2,"isDraft",0,ez,"isDraftable",0,eF,"original",0,function(e){return ez(e)||ej(15),e[eT].base_},"produce",0,tA],606368);var tO=Symbol("NOT_FOUND"),tE=e=>Array.isArray(e)?e:[e],tP=0,tI=class{revision=tP;_value;_lastValue;_isEqual=tC;constructor(e,t=tC){this._value=this._lastValue=e,this._isEqual=t}get value(){return this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++tP)}};function tC(e,t){return e===t}function tT(e){return e instanceof tI||console.warn("Not a valid cell! ",e),e.value}var tj=(e,t)=>!1;function tk(){return function(e=tC){return new tI(null,e)}(tj)}var tD=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=tk()),tT(t)},tM=0,t_=Object.getPrototypeOf({}),tN=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,tL);tag=tk();tags={};children={};collectionTag=null;id=tM++},tL={get:(e,t)=>(function(){let{value:r}=e,n=Reflect.get(r,t);if("symbol"==typeof t||t in t_)return n;if("object"==typeof n&&null!==n){var i;let r=e.children[t];return void 0===r&&(r=e.children[t]=Array.isArray(i=n)?new tR(i):new tN(i)),r.tag&&tT(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&((r=e.tags[t]=tk()).value=n),tT(r),n}})(),ownKeys:e=>(tD(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},tR=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],tB);tag=tk();tags={};children={};collectionTag=null;id=tM++},tB={get:([e],t)=>("length"===t&&tD(e),tL.get(e,t)),ownKeys:([e])=>tL.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>tL.getOwnPropertyDescriptor(e,t),has:([e],t)=>tL.has(e,t)},tz=(e,t)=>e===t,tF="u"{n=tU(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function tW(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n,i=0,a=0,o={},l=e.pop();"object"==typeof l&&(o=l,l=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);let{memoize:c,memoizeOptions:u=[],argsMemoize:s=t$,argsMemoizeOptions:f=[]}={...r,...o},d=tE(u),p=tE(f),h=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),y=c(function(){return i++,l.apply(null,arguments)},...d);return Object.assign(s(function(){a++;let e=function(e,t){let r=[],{length:n}=e;for(let i=0;ia,resetDependencyRecomputations:()=>{a=0},lastResult:()=>n,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:c,argsMemoize:s})};return Object.assign(n,{withTypes:()=>n}),n}var tK=tW(t$),tV=Object.assign((e,t=tK)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>tV});function tG(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}e.s(["createSelector",0,tK,"createSelectorCreator",0,tW,"lruMemoize",0,function(e,t){let r,{equalityCheck:n=tz,maxSize:i=1,resultEqualityCheck:a}="object"==typeof t?t:{equalityCheck:t},o=function(e,t){if(null===e||null===t||e.length!==t.length)return!1;let{length:r}=e;for(let i=0;ir&&o(r.key,e)?r.value:tO,put(e,t){r={key:e,value:t}},getEntries:()=>r?[r]:[],clear(){r=void 0}}:function(e,t){let r=[];function n(e){let n=r.findIndex(r=>t(e,r.key));if(n>-1){let e=r[n];return n>0&&(r.splice(n,1),r.unshift(e)),e.value}return tO}return{get:n,put:function(t,i){n(t)===tO&&(r.unshift({key:t,value:i}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(i,o);function u(){let t=c.get(arguments);if(t===tO){if(t=e.apply(null,arguments),l++,a){let e=c.getEntries().find(e=>a(e.value,t));e&&(t=e.value,0!==l&&l--)}c.put(arguments,t)}return t}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>l,u.resetResultsCount=()=>{l=0},u},"weakMapMemoize",0,t$],661849);var tH="function"==typeof Symbol&&Symbol.observable||"@@observable",tq=()=>Math.random().toString(36).substring(7).split("").join("."),tY={INIT:`@@redux/INIT${tq()}`,REPLACE:`@@redux/REPLACE${tq()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${tq()}`};function tX(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function tZ(e,t,r){if("function"!=typeof e)throw Error(tG(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(tG(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(tG(1));return r(tZ)(e,t)}let n=e,i=t,a=new Map,o=a,l=0,c=!1;function u(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function s(){if(c)throw Error(tG(3));return i}function f(e){if("function"!=typeof e)throw Error(tG(4));if(c)throw Error(tG(5));let t=!0;u();let r=l++;return o.set(r,e),function(){if(t){if(c)throw Error(tG(6));t=!1,u(),o.delete(r),a=null}}}function d(e){if(!tX(e))throw Error(tG(7));if(void 0===e.type)throw Error(tG(8));if("string"!=typeof e.type)throw Error(tG(17));if(c)throw Error(tG(9));try{c=!0,i=n(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}return d({type:tY.INIT}),{dispatch:d,subscribe:f,getState:s,replaceReducer:function(e){if("function"!=typeof e)throw Error(tG(10));n=e,d({type:tY.REPLACE})},[tH]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(tG(11));function t(){e.next&&e.next(s())}return t(),{unsubscribe:f(t)}},[tH](){return this}}}}}function tQ(e){let t,r=Object.keys(e),n={};for(let t=0;t{let t=n[e];if(void 0===t(void 0,{type:tY.INIT}))throw Error(tG(12));if(void 0===t(void 0,{type:tY.PROBE_UNKNOWN_ACTION()}))throw Error(tG(13))})}catch(e){t=e}return function(e={},r){if(t)throw t;let a=!1,o={};for(let t=0;te:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function t0(...e){return t=>(r,n)=>{let i=t(r,n),a=()=>{throw Error(tG(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=tJ(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function t1(e){return tX(e)&&"type"in e&&"string"==typeof e.type}function t2(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}e.s(["applyMiddleware",0,t0,"combineReducers",0,tQ,"compose",0,tJ,"createStore",0,tZ,"isAction",0,t1,"isPlainObject",0,tX],308158);var t6=t2(),t5="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?tJ:tJ.apply(null,arguments)};function t3(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(rR(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>t1(t)&&t.type===e,r}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var t9=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function t7(e){return eF(e)?tA(e,()=>{}):e}function t4(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var t8="RTK_autoBatch",re=()=>e=>({payload:e,meta:{[t8]:!0}}),rt=e=>t=>{setTimeout(t,e)},rr=(e={type:"raf"})=>t=>(...r)=>{let n,i=t(...r),a=!0,o=!1,l=!1,c=new Set,u="tick"===e.type?queueMicrotask:"raf"===e.type?"u">typeof window&&window.requestAnimationFrame?(n=window.requestAnimationFrame,e=>{let t=!1,r=()=>{t||(t=!0,cancelAnimationFrame(i),clearTimeout(a),e())},i=n(r),a=setTimeout(r,100)}):rt(10):"callback"===e.type?e.queueNotification:rt(e.timeout),s=()=>{l=!1,o&&(o=!1,c.forEach(e=>e()))};return Object.assign({},i,{subscribe(e){let t=i.subscribe(()=>a&&e());return c.add(e),()=>{t(),c.delete(e)}},dispatch(e){try{return(o=!(a=!e?.meta?.[t8]))&&!l&&(l=!0,u(s)),i.dispatch(e)}finally{a=!0}}})};function rn(e){let t,r={},n=[],i={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(rR(28));if(n in r)throw Error(rR(29));return r[n]=t,i},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&n.push({matcher:e.settled,reducer:t.settled}),i),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[r,n,t]}var ri=Symbol.for("rtk-slice-createasyncthunk"),ra=((i=ra||{}).reducer="reducer",i.reducerWithPrepare="reducerWithPrepare",i.asyncThunk="asyncThunk",i),ro=function({creators:e}={}){let t=e?.asyncThunk?.[ri];return function(e){let r,{name:n,reducerPath:i=n}=e;if(!n)throw Error(rR(11));let a=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(a),l={},c={},u={},s=[],f={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(rR(12));if(r in c)throw Error(rR(13));return c[r]=t,f},addMatcher:(e,t)=>(s.push({matcher:e,reducer:t}),f),exposeAction:(e,t)=>(u[e]=t,f),exposeCaseReducer:(e,t)=>(l[e]=t,f)};function d(){let[t={},r=[],n]="function"==typeof e.extraReducers?rn(e.extraReducers):[e.extraReducers],i={...t,...c};return function(e,t){let r,[n,i,a]=rn(t);if("function"==typeof e)r=()=>t7(e());else{let t=t7(e);r=()=>t}function o(e=r(),t){let l=[n[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===l.filter(e=>!!e).length&&(l=[a]),l.reduce((e,r)=>{if(r)if(ez(e)){let n=r(e,t);return void 0===n?e:n}else{if(eF(e))return tA(e,e=>r(e,t));let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return e},e)}return o.getInitialState=r,o}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of s)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}o.forEach(r=>{let i=a[r],o={reducerName:r,type:`${n}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===i._reducerDefinitionType?function({type:e,reducerName:t},r,n,i){if(!i)throw Error(rR(18));let{payloadCreator:a,fulfilled:o,pending:l,rejected:c,settled:u,options:s}=r,f=i(e,a,s);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),l&&n.addCase(f.pending,l),c&&n.addCase(f.rejected,c),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:o||rl,pending:l||rl,rejected:c||rl,settled:u||rl})}(o,i,f,t):function({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(rR(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?t3(e,o):t3(e))}(o,i,f)});let p=e=>e,h=new Map,y=new WeakMap;function v(e,t){return r||(r=d()),r(e,t)}function m(){return r||(r=d()),r.getInitialState()}function g(t,r=!1){function n(e){let i=e[t];return void 0===i&&r&&(i=t4(y,n,m)),i}function i(t=p){let n=t4(h,r,()=>new WeakMap);return t4(n,t,()=>{let n={};for(let[i,a]of Object.entries(e.selectors??{}))n[i]=function(e,t,r,n){function i(a,...o){let l=t(a);return void 0===l&&n&&(l=r()),e(l,...o)}return i.unwrapped=e,i}(a,t,()=>t4(y,t,m),r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}let b={name:n,reducer:v,actions:u,caseReducers:l,getInitialState:m,...g(i),injectInto(e,{reducerPath:t,...r}={}){let n=t??i;return e.inject({reducerPath:n,reducer:v},r),{...b,...g(n,!0)}}};return b}}();function rl(){}var rc="listener",ru="completed",rs="cancelled",rf=`task-${rs}`,rd=`task-${ru}`,rp=`${rc}-${rs}`,rh=`${rc}-${ru}`,ry=class{constructor(e){this.code=e,this.message=`task ${rs} (reason: ${e})`}code;name="TaskAbortError";message},rv=(e,t)=>{if("function"!=typeof e)throw TypeError(rR(32))},rm=()=>{},rg=(e,t=rm)=>(e.catch(t),e),rb=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),rx=e=>{if(e.aborted)throw new ry(e.reason)};function rw(e,t){let r=rm;return new Promise((n,i)=>{let a=()=>i(new ry(e.reason));e.aborted?a():(r=rb(e,a),t.finally(()=>r()).then(n,i))}).finally(()=>{r=rm})}var rA=async(e,t)=>{try{await Promise.resolve();let t=await e();return{status:"ok",value:t}}catch(e){return{status:e instanceof ry?"cancelled":"rejected",error:e}}finally{t?.()}},rS=e=>t=>rg(rw(e,t).then(t=>(rx(e),t))),rO=e=>{let t=rS(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:rE}=Object,rP={},rI="listenerMiddleware",rC=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=t3(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(i);else throw Error(rR(21));return rv(a,"options.listener"),{predicate:i,type:t,effect:a}},rT=rE(e=>{let{type:t,predicate:r,effect:n}=rC(e);return{id:((e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t})(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(rR(22))}}},{withTypes:()=>rT}),rj=(e,t)=>{let{type:r,effect:n,predicate:i}=rC(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===i)&&e.effect===n)},rk=e=>{e.pending.forEach(e=>{e.abort(rp)})},rD=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},rM=rE(t3(`${rI}/add`),{withTypes:()=>rM}),r_=t3(`${rI}/removeAll`),rN=rE(t3(`${rI}/remove`),{withTypes:()=>rN}),rL=(...e)=>{console.error(`${rI}/error`,...e)};function rR(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}e.s(["autoBatchEnhancer",0,rr,"configureStore",0,function(e){let t,r,n,i=function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{},a=new t9;return t&&("boolean"==typeof t?a.push(t6):a.push(t2(t.extraArgument))),a},{reducer:a,middleware:o,devTools:l=!0,duplicateMiddlewareCheck:c=!0,preloadedState:u,enhancers:s}=e||{};if("function"==typeof a)t=a;else if(tX(a))t=tQ(a);else throw Error(rR(1));r="function"==typeof o?o(i):i();let f=tJ;l&&(f=t5({trace:!1,..."object"==typeof l&&l}));let d=(n=t0(...r),function(e){let{autoBatch:t=!0}=e??{},r=new t9(n);return t&&r.push(rr("object"==typeof t?t:void 0)),r});return tZ(t,u,f(..."function"==typeof s?s(d):d()))},"createAction",0,t3,"createListenerMiddleware",0,(e={})=>{let t=new Map,r=new Map,{extra:n,onError:i=rL}=e;rv(i,"onError");let a=e=>{var r;return(r=rj(t,e)??rT(e)).unsubscribe=()=>t.delete(r.id),t.set(r.id,r),e=>{r.unsubscribe(),e?.cancelActive&&rk(r)}};rE(a,{withTypes:()=>a});let o=e=>{let r=rj(t,e);return r&&(r.unsubscribe(),e.cancelActive&&rk(r)),!!r};rE(o,{withTypes:()=>o});let l=async(e,o,l,c)=>{var u,s;let f,d=new AbortController,p=(u=d.signal,f=async(e,t)=>{rx(u);let r=()=>{},n=[new Promise((t,n)=>{let i=a({predicate:e,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});r=()=>{i(),n()}})];null!=t&&n.push(new Promise(e=>setTimeout(e,t,null)));try{let e=await rw(u,Promise.race(n));return rx(u),e}finally{r()}},(e,t)=>rg(f(e,t))),h=[];try{let i;e.pending.add(d),i=r.get(e)??0,r.set(e,i+1),await Promise.resolve(e.effect(o,rE({},l,{getOriginalState:c,condition:(e,t)=>p(e,t).then(Boolean),take:p,delay:rO(d.signal),pause:rS(d.signal),extra:n,signal:d.signal,fork:(s=d.signal,(e,t)=>{rv(e,"taskExecutor");let r=new AbortController;rb(s,()=>r.abort(s.reason));let n=rA(async()=>{rx(s),rx(r.signal);let t=await e({pause:rS(r.signal),delay:rO(r.signal),signal:r.signal});return rx(r.signal),t},()=>r.abort(rd));return t?.autoJoin&&h.push(n.catch(rm)),{result:rS(s)(n),cancel(){r.abort(rf)}}}),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==d&&(e.abort(rp),r.delete(e))})},cancel:()=>{d.abort(rp),e.pending.delete(d)},throwIfCancelled:()=>{rx(d.signal)}})))}catch(e){e instanceof ry||rD(i,e,{raisedBy:"effect"})}finally{let t;await Promise.all(h),d.abort(rh),1===(t=r.get(e)??1)?r.delete(e):r.set(e,t-1),e.pending.delete(d)}},c=()=>{for(let e of r.keys())rk(e);t.clear()};return{middleware:e=>r=>n=>{let u;if(!t1(n))return r(n);if(rM.match(n))return a(n.payload);if(r_.match(n))return void c();if(rN.match(n))return o(n.payload);let s=e.getState(),f=()=>{if(s===rP)throw Error(rR(23));return s};try{if(u=r(n),t.size>0){let r=e.getState();for(let a of Array.from(t.values())){let t=!1;try{t=a.predicate(n,r,s)}catch(e){t=!1,rD(i,e,{raisedBy:"predicate"})}t&&l(a,n,e,f)}}}finally{s=rP}return u},startListening:a,stopListening:o,clearListeners:c}},"createSlice",0,ro,"prepareAutoBatched",0,re],164645);var rB=ro({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=null!=(r=t.payload.top)?r:0,e.margin.right=null!=(n=t.payload.right)?n:0,e.margin.bottom=null!=(i=t.payload.bottom)?i:0,e.margin.left=null!=(a=t.payload.left)?a:0},setScale(e,t){e.scale=t.payload}}}),rz=rB.actions,rF=rz.setMargin,rU=rz.setLayout,r$=rz.setChartSize,rW=rz.setScale,rK=rB.reducer;function rV(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function rG(e){var t;return null!=e&&"function"!=typeof e&&Number.isSafeInteger(t=e.length)&&t>=0}function rH(e){return null!==e&&("object"==typeof e||"function"==typeof e)}e.s(["chartLayoutReducer",0,rK,"setChartSize",0,r$,"setLayout",0,rU,"setMargin",0,rF,"setScale",0,rW],320437),e.s(["isEqualsSameValueZero",0,rV],7482),e.s(["isArrayLike",0,rG],532780),e.s(["isObject",0,rH],65242);let rq=/^(?:0|[1-9]\d*)$/;function rY(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e{if(e!==t){let n=rZ(e),i=rZ(t);if(n===i&&0===n){if(et)return"desc"===r?-1:1}return"desc"===r?i-n:n-i}return 0};function rJ(e){return"symbol"==typeof e||e instanceof Symbol}e.s(["isSymbol",0,rJ],33134);let r0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r1=/^\w*$/;function r2(e,...t){let r=t.length;return r>1&&rX(e,t[0],t[1])?t=[]:r>2&&rX(t[0],t[1],t[2])&&(t=[t[0]]),function(e,t,r){if(null==e)return[];Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=null==t?[null]:[t]),0===t.length&&(t=[null]),Array.isArray(r)||(r=null==r?[]:[r]),r=r.map(e=>String(e));let n=(e,t)=>{let r=e;for(let e=0;e{var t;return(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||!Array.isArray(t=e)&&("number"==typeof t||"boolean"==typeof t||null==t||rJ(t)||"string"==typeof t&&(r1.test(t)||!r0.test(t))||0))?e:{key:e,path:f(e)}});return e.map(e=>({original:e,criteria:i.map(t=>{var r,i;return r=t,null==(i=e)||null==r?i:"object"==typeof r&&"key"in r?Object.hasOwn(i,r.key)?i[r.key]:n(i,r.path):"function"==typeof r?r(i):Array.isArray(r)?n(i,r):"object"==typeof i?i[r]:i})})).slice().sort((e,t)=>{for(let n=0;ne.original)}(e,function(e,t=1){let r=[],n=Math.floor(t),i=(e,t)=>{for(let a=0;ae.legend.settings,r5=e=>e.legend.size,r3=tK([e=>e.legend.payload,r6],(e,t)=>{var r=t.itemSorter,n=e.flat(1);return r?r2(n,r):n});function r9(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function r7(e){return function(){return e}}function r4(e,t){if((i=e.length)>1)for(var r,n,i,a=1,o=e[t[0]],l=o.length;a=0;)r[t]=t;return r}function ne(e,t){return e[t]}function nt(e){let t=[];return t.key=e,t}function nr(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function nn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ni(e){for(var t=1;t{if(t&&r){var n=r.width,i=r.height,a=t.align,o=t.verticalAlign,l=t.layout;if(("vertical"===l||"horizontal"===l&&"middle"===o)&&"center"!==a&&m(e[a]))return ni(ni({},e),{},{[a]:e[a]+(n||0)});if(("horizontal"===l||"vertical"===l&&"center"===a)&&"middle"!==o&&m(e[o]))return ni(ni({},e),{},{[o]:e[o]+(i||0)})}return e},nl=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,nc={sign:e=>{var t,r=e.length;if(!(r<=0)){var n=null==(t=e[0])?void 0:t.length;if(null!=n&&!(n<=0))for(var i=0;i=0?(u[0]=a,a+=d,u[1]=a):(u[0]=o,o+=d,u[1]=o)}}}},expand:function(e,t){if((n=e.length)>0){for(var r,n,i,a=0,o=e[0].length;a0){for(var r,n=0,i=e[t[0]],a=i.length;n0&&(n=(r=e[t[0]]).length)>0){for(var r,n,i,a=0,o=1;o{var t,r=e.length;if(!(r<=0)){var n=null==(t=e[0])?void 0:t.length;if(null!=n&&!(n<=0))for(var i=0;i=0?(c[0]=a,a+=u,c[1]=a):(c[0]=0,c[1]=0)}}}}};e.s(["MAX_VALUE_REG",0,/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,"MIN_VALUE_REG",0,/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,"appendOffsetOfLegend",0,no,"calculateCartesianTooltipPos",0,(e,t)=>"horizontal"===t?e.relativeX:"vertical"===t?e.relativeY:void 0,"calculatePolarTooltipPos",0,(e,t)=>"centric"===t?e.angle:e.radius,"getBandSizeOfAxis",0,(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=r2(t,e=>e.coordinate),a=1/0,o=1,l=i.length;o{var t=e.numericAxis,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},"getCateCoordinateOfBar",0,e=>{var t=e.axis,r=e.ticks,n=e.offset,i=e.bandSize,a=e.entry,o=e.index;if("category"===t.type)return r[o]?r[o].coordinate+n:null;var l=na(a,t.dataKey,t.scale.domain()[o]);if(S(l))return null;var c=t.scale.map(l);return m(c)?c-i/2+n:null},"getCateCoordinateOfLine",0,function(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!S(i[t.dataKey])){var l=A(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return null!=r&&r[a]?r[a].coordinate+n/2:null}var c=na(i,S(o)?t.dataKey:o),u=t.scale.map(c);return m(u)?u:null},"getCoordinatesOfGrid",0,(e,t,r,n)=>{if(n)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===r&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(r),o},"getDomainOfStackGroups",0,(e,t,r)=>{if(null!=e&&0!==Object.keys(e).length){let n;return[(n=Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var o=a.stackedData.reduce((e,n)=>{var i,a=[Math.min(...i=nr(n,t,r).flat(2).filter(m)),Math.max(...i)];return Y(a[0])&&Y(a[1])?[Math.min(e[0],a[0]),Math.max(e[1],a[1])]:e},[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]},[1/0,-1/0]))[0]===1/0?0:n[0],n[1]===-1/0?0:n[1]]}},"getNormalizedStackId",0,function(e){return null==e?void 0:String(e)},"getStackedData",0,(e,t,r)=>{var n,i=null!=(n=nc[r])?n:r4,a=(function(){var e=r7([]),t=r8,r=r4,n=ne;function i(i){var a,o,l=Array.from(e.apply(this,arguments),nt),c=l.length,u=-1;for(let e of i)for(a=0,++u;aNumber(na(e,t,0))).order(r8).offset(i)(e);return a.forEach((r,n)=>{r.forEach((r,i)=>{var a=na(e[i],t[n],0);Array.isArray(a)&&2===a.length&&m(a[0])&&m(a[1])&&(r[0]=a[0],r[1]=a[1])})}),a},"getTicksOfAxis",0,(e,t,r)=>{if(!e)return null;var n=e.duplicateDomain,i=e.type,a=e.range,o=e.scale,l=e.realScaleType,c=e.isCategorical,u=e.categoricalDomain,s=e.tickCount,f=e.ticks,d=e.niceTicks,p=e.axisType;if(!o)return null;var y="scaleBand"===l&&o.bandwidth?o.bandwidth()/2:2,v=(t||r)&&"category"===i&&o.bandwidth?o.bandwidth()/y:0;return(v="angleAxis"===p&&a&&a.length>=2?2*h(a[0]-a[1])*v:v,t&&(f||d))?(f||d||[]).map((e,t)=>{var r=n?n.indexOf(e):e,i=o.map(r);return Y(i)?{coordinate:i+v,value:e,offset:v,index:t}:null}).filter(O):c&&u?u.map((e,t)=>{var r=o.map(e);return Y(r)?{coordinate:r+v,value:e,index:t,offset:v}:null}).filter(O):o.ticks&&!r&&null!=s?o.ticks(s).map((e,t)=>{var r=o.map(e);return Y(r)?{coordinate:r+v,value:e,index:t,offset:v}:null}).filter(O):o.domain().map((e,t)=>{var r=o.map(e);return Y(r)?{coordinate:r+v,value:n?n[e]:e,index:t,offset:v}:null}).filter(O)},"getTooltipEntry",0,function(e){var t=e.tooltipEntrySettings,r=e.dataKey,n=e.payload,i=e.value,a=e.name;return ni(ni({},t),{},{dataKey:r,payload:n,value:i,name:a})},"getTooltipNameProp",0,function(e,t){return null!=e?String(e):"string"==typeof t?t:void 0},"getValueByDataKey",0,na,"isCategoricalAxis",0,nl,"truncateByDomain",0,(e,t)=>{if(!t||2!==t.length||!m(t[0])||!m(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!m(e[0])||e[0]n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]e.layout.width,ns=e=>e.layout.height,nf=e=>e.layout.margin;e.s(["selectChartHeight",0,ns,"selectChartWidth",0,nu,"selectContainerScale",0,e=>e.layout.scale,"selectMargin",0,nf],15892);var nd=tK(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),np=tK(e=>e.cartesianAxis.yAxis,e=>Object.values(e));function nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ny(e){for(var t=1;te.brush.height,function(e){return np(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return np(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return nd(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return nd(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},r6,r5],(e,t,r,n,i,a,o,l,c,u)=>{var s={left:(r.left||0)+i,right:(r.right||0)+a},f=ny(ny({},{top:(r.top||0)+o,bottom:(r.bottom||0)+l}),s),d=f.bottom;f.bottom+=n;var p=e-(f=no(f,c,u)).left-f.right,h=t-f.top-f.bottom;return ny(ny({brushBottom:d},f),{},{width:Math.max(p,0),height:Math.max(h,0)})}),nm=tK(nv,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),ng=tK(nu,ns,(e,t)=>({x:0,y:0,width:e,height:t}));e.s(["selectAxisViewBox",0,ng,"selectChartOffsetInternal",0,nv,"selectChartViewBox",0,nm],541088);var nb=(0,o.createContext)(null),nx=()=>null!=(0,o.useContext)(nb);e.s(["useIsPanorama",0,nx],375337);var nw=e=>e.brush,nA=tK([nw,nv,nf],(e,t,r)=>({height:e.height,x:m(e.x)?e.x:t.left,y:m(e.y)?e.y:t.top+t.height+t.brushBottom-((null==r?void 0:r.bottom)||0),width:m(e.width)?e.width:t.width}));e.s(["selectBrushDimensions",0,nA,"selectBrushSettings",0,nw],916842);var nS=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;itypeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(t.replace(/%s/g,()=>n[a++]))}};e.s(["warn",0,nS],129071);var nO="100%",nE="100%",nP={width:-1,height:-1},nI=(e,t,r)=>{var n=r.width,i=void 0===n?nO:n,a=r.height,o=void 0===a?nE:a,l=r.aspect,c=r.maxHeight,u=v(i)?e:Number(i),s=v(o)?t:Number(o);return l&&l>0&&(u?s=u/l:s&&(u=s*l),c&&null!=s&&s>c&&(s=c)),{calculatedWidth:u,calculatedHeight:s}},nC={width:0,height:0,overflow:"visible"},nT={width:0,overflowX:"visible"},nj={height:0,overflowY:"visible"},nk={},nD=["aspect","initialDimension","width","height","minWidth","minHeight","maxHeight","children","debounce","id","className","onResize","style"];function nM(){return(nM=Object.assign.bind()).apply(null,arguments)}function n_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nN(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r({width:r,height:n}),[r,n]);return X(i.width)&&X(i.height)?o.createElement(nR.Provider,{value:i},t):null}var nz=()=>(0,o.useContext)(nR),nF=(0,o.forwardRef)((e,t)=>{var r,n,i,a,c,u,s=e.aspect,f=e.initialDimension,d=void 0===f?nP:f,p=e.width,h=e.height,y=e.minWidth,m=void 0===y?0:y,g=e.minHeight,b=e.maxHeight,x=e.children,w=e.debounce,A=void 0===w?0:w,S=e.id,O=e.className,P=e.onResize,I=e.style,C=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;nT.current);var k=function(e){if(Array.isArray(e))return e}(r=(0,o.useState)({containerWidth:d.width,containerHeight:d.height}))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,i,a,o=[],l=!0,c=!1;try{i=(t=t.call(e)).next,!1;for(;!(l=(r=i.call(t)).done)&&(o.push(r.value),2!==o.length);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(r)||function(e){if(e){if("string"==typeof e)return nL(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?nL(e,2):void 0}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),D=k[0],M=k[1],_=(0,o.useCallback)((e,t)=>{M(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);(0,o.useEffect)(()=>{if(null==T.current||"u"{var t,r=e[0];if(null!=r){var n=r.contentRect,i=n.width,a=n.height;_(i,a),null==(t=j.current)||t.call(j,i,a)}};A>0&&(e=function(e,t=0,r={}){let{leading:n=!0,trailing:i=!0}=r;return function(e,t=0,r={}){let n;"object"!=typeof r&&(r={});let{leading:i=!1,trailing:a=!0,maxWait:o}=r,l=[,,];i&&(l[0]="leading"),a&&(l[1]="trailing");let c=null,u=function(e,t,{signal:r,edges:n}={}){let i,a=null,o=null!=n&&n.includes("leading"),l=null==n||n.includes("trailing"),c=()=>{null!==a&&(e.apply(i,a),i=void 0,a=null)},u=null,s=()=>{null!=u&&clearTimeout(u),u=setTimeout(()=>{u=null,l&&c(),f()},t)},f=()=>{null!==u&&(clearTimeout(u),u=null),i=void 0,a=null},d=function(...e){if(r?.aborted)return;i=this,a=e;let t=null==u;s(),o&&t&&c()};return d.schedule=s,d.cancel=f,d.flush=()=>{c()},r?.addEventListener("abort",f,{once:!0}),d}(function(...t){n=e.apply(this,t),c=null},t,{edges:l}),s=function(...t){return null!=o&&(null===c&&(c=Date.now()),Date.now()-c>=o)?(n=e.apply(this,t),c=Date.now(),u.cancel(),u.schedule(),n):(u.apply(this,t),n)};return s.cancel=u.cancel,s.flush=()=>(u.flush(),n),s}(e,t,{leading:n,maxWait:t,trailing:i})}(e,A,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),r=T.current.getBoundingClientRect();return _(r.width,r.height),t.observe(T.current),()=>{t.disconnect()}},[_,A]);var N=D.containerWidth,L=D.containerHeight;nS(!s||s>0,"The aspect(%s) must be greater than zero.",s);var R=nI(N,L,{width:p,height:h,aspect:s,maxHeight:b}),B=R.calculatedWidth,z=R.calculatedHeight;return nS(N<0||L<0||null!=B&&B>0||null!=z&&z>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",B,z,p,h,m,g,s),o.createElement("div",nM({id:S?"".concat(S):void 0,className:(0,l.clsx)("recharts-responsive-container",O),style:nN(nN({},void 0===I?{}:I),{},{width:p,height:h,minWidth:m,minHeight:g,maxHeight:b}),ref:T},C),o.createElement("div",{style:(i=(n={width:p,height:h}).width,a=n.height,c=v(i),u=v(a),c&&u?nC:c?nT:u?nj:nk)},o.createElement(nB,{width:B,height:z},x)))}),nU=(0,o.forwardRef)((e,t)=>{var r,n,i,a,l,c,u=nz();if(X(u.width)&&X(u.height))return e.children;var s=(n=(r={width:e.width,height:e.height,aspect:e.aspect}).width,i=r.height,a=r.aspect,l=n,c=i,void 0===l&&void 0===c?(l=nO,c=nE):void 0===l?l=a&&a>0?void 0:nO:void 0===c&&(c=a&&a>0?void 0:nE),{width:l,height:c}),f=s.width,d=s.height,p=nI(void 0,void 0,{width:f,height:d,aspect:e.aspect,maxHeight:e.maxHeight}),h=p.calculatedWidth,y=p.calculatedHeight;return m(h)&&m(y)?o.createElement(nB,{width:h,height:y},e.children):o.createElement(nF,nM({},e,{width:f,height:d,ref:t}))});function n$(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}e.s(["ResponsiveContainer",0,nU,"useResponsiveContainerContext",0,nz],731195);var nW=()=>{var e,t=nx(),r=eP(nm),n=eP(nA),i=null==(e=eP(nw))?void 0:e.padding;return t&&n&&i?{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}:r},nK={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},nV=e=>e.layout.layoutType,nG=()=>eP(nV),nH=e=>{var t=e.layout.layoutType;if("centric"===t||"radial"===t)return t},nq=()=>void 0!==nG();e.s(["ReportChartMargin",0,e=>{var t=e.margin,r=eA();return(0,o.useEffect)(()=>{r(rF(t))},[r,t]),null},"ReportChartSize",0,e=>{var t=eA(),r=nx(),n=e.width,i=e.height,a=nz(),l=n,c=i;return a&&(l=a.width>0?a.width:n,c=a.height>0?a.height:i),(0,o.useEffect)(()=>{!r&&X(l)&&X(c)&&t(r$({width:l,height:c}))},[t,r,l,c]),null},"cartesianViewBoxToTrapezoid",0,n$,"selectChartLayout",0,nV,"selectPolarChartLayout",0,nH,"useCartesianChartLayout",0,()=>{var e=nG();if("horizontal"===e||"vertical"===e)return e},"useChartHeight",0,()=>eP(ns),"useChartLayout",0,nG,"useChartWidth",0,()=>eP(nu),"useIsInChartContext",0,nq,"useMargin",0,()=>eP(e=>e.layout.margin),"useOffsetInternal",0,()=>{var e;return null!=(e=eP(nv))?e:nK},"usePolarChartLayout",0,()=>eP(nH),"useViewBox",0,nW],846710);var nY={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3};e.s(["DefaultZIndexes",0,nY],318457);var nX={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:"auto",orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"auto",zIndex:nY.axis},nZ={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:"auto",label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,tickLine:!0,type:"auto",zIndex:nY.axis},nQ=(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t};function nJ(e,t,r){return"auto"!==r?r:null!=e?nl(e,t)?"category":"number":void 0}function n0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n1(e){for(var t=1;t{if(null!=t)return e.polarAxis.angleAxis[t]},nH],(e,t)=>{if(null!=e)return e;var r,n=null!=(r=nJ(t,"angleAxis",n2.type))?r:"category";return n1(n1({},n2),{},{type:n})}),n3=tK([(e,t)=>e.polarAxis.radiusAxis[t],nH],(e,t)=>{if(null!=e)return e;var r,n=null!=(r=nJ(t,"radiusAxis",n6.type))?r:"category";return n1(n1({},n6),{},{type:n})}),n9=e=>e.polarOptions,n7=tK([nu,ns,nv],eg),n4=tK([n9,n7],(e,t)=>{if(null!=e)return w(e.innerRadius,t,0)}),n8=tK([n9,n7],(e,t)=>{if(null!=e)return w(e.outerRadius,t,.8*t)}),ie=tK([n9],e=>null==e?[0,0]:[e.startAngle,e.endAngle]);tK([n5,ie],nQ);var it=tK([n7,n4,n8],(e,t,r)=>{if(null!=e&&null!=t&&null!=r)return[t,r]});tK([n3,it],nQ);var ir=tK([nV,n9,n4,n8,nu,ns],(e,t,r,n,i,a)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=r&&null!=n){var o=t.cx,l=t.cy,c=t.startAngle,u=t.endAngle;return{cx:w(o,i,i/2),cy:w(l,a,a/2),innerRadius:r,outerRadius:n,startAngle:c,endAngle:u,clockWise:!1}}});e.s(["selectAngleAxis",0,n5,"selectAngleAxisRange",0,ie,"selectPolarViewBox",0,ir,"selectRadiusAxis",0,n3,"selectRadiusAxisRange",0,it],78836);var ii=e.i(174080);function ia(e,t){if(e.length===t.length){for(var r=0;re.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(null!=t){var n=e[t];if(null!=n)return r?n.panoramaElement:n.element}}),il=tK(e=>e.zIndex.zIndexMap,e=>Array.from(new Set(Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(nY)))).sort((e,t)=>e-t),{memoizeOptions:{resultEqualityCheck:ia}});function ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function iu(e){for(var t=1;tiu(iu({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},id=new Set(Object.values(nY)),ip=ro({name:"zIndex",initialState:is,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var r=t.payload.zIndex;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:re()},unregisterZIndexPortal:{reducer:(e,t)=>{var r=t.payload.zIndex;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!id.has(r)&&delete e.zIndexMap[r])},prepare:re()},registerZIndexPortalElement:{reducer:(e,t)=>{var r=t.payload,n=r.zIndex,i=r.element,a=r.isPanorama;e.zIndexMap[n]?a?e.zIndexMap[n].panoramaElement=tS(i):e.zIndexMap[n].element=tS(i):e.zIndexMap[n]={consumers:0,element:a?void 0:tS(i),panoramaElement:a?tS(i):void 0}},prepare:re()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var r=t.payload.zIndex;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:re()}}}),ih=ip.actions,iy=ih.registerZIndexPortal,iv=ih.unregisterZIndexPortal,im=ih.registerZIndexPortalElement,ig=ih.unregisterZIndexPortalElement,ib=ip.reducer;function ix(e){var t=e.zIndex,r=e.children,n=nq()&&void 0!==t&&0!==t,i=nx(),a=(0,o.useRef)(void 0),l=(0,o.useRef)(new Set),c=eA(),u=eP(e=>io(e,t,i));if((0,o.useLayoutEffect)(()=>{if(!n){var e=l.current;e.forEach(e=>{c(iv({zIndex:e}))}),e.clear(),a.current=void 0;return}if(l.current.has(t)||(c(iy({zIndex:t})),l.current.add(t)),u){a.current=u;var r=l.current;r.forEach(e=>{e!==t&&(c(iv({zIndex:e})),r.delete(e))})}},[c,t,n,u]),(0,o.useLayoutEffect)(()=>{var e=l.current;return()=>{e.forEach(e=>{c(iv({zIndex:e}))}),e.clear()}},[c]),!n)return r;var s=null!=u?u:a.current;return s?(0,ii.createPortal)(r,s):null}function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function iA(e){for(var t=1;t{var e=(0,o.useContext)(iT),t=nW();return e||(t?n$(t):void 0)},ik=(0,o.createContext)(null),iD=e=>null!=e&&"function"==typeof e,iM=e=>null!=e&&"cx"in e&&m(e.cx),i_={angle:0,offset:5,zIndex:nY.label,position:"middle",textBreakAll:!1};function iN(e){var t,r,n,i,a,c,u,s,f=q(e,i_),d=f.viewBox,p=f.parentViewBox,y=f.position,g=f.value,b=f.children,A=f.content,O=f.className,E=f.textBreakAll,P=f.labelRef,I=(t=(0,o.useContext)(ik),r=eP(ir),t||r),C=ij(),T=function(e){if(!iM(e))return e;var t=e.cx,r=e.cy,n=e.outerRadius,i=2*n;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}(c=null==d?"center"===y?C:null!=I?I:C:iM(d)?d:n$(d));if(!c||S(g)&&S(b)&&!(0,o.isValidElement)(A)&&"function"!=typeof A)return null;var j=iI(iI({},f),{},{viewBox:c});if((0,o.isValidElement)(A)){j.labelRef;var k=iE(j,iS);return(0,o.cloneElement)(A,k)}if("function"==typeof A){j.content;var D=iE(j,iO);if(u=(0,o.createElement)(A,D),(0,o.isValidElement)(u))return u}else n=f.value,i=f.formatter,a=S(f.children)?n:f.children,u="function"==typeof i?i(a):a;var M=(0,G.svgPropertiesAndEvents)(f);if(iM(c)){if("insideStart"===y||"insideEnd"===y||"end"===y)return((e,t,r,n,i)=>{var a,c,u=e.offset,s=e.className,f=i.cx,d=i.cy,p=i.innerRadius,y=i.outerRadius,v=i.startAngle,m=i.endAngle,g=i.clockWise,b=(p+y)/2,w=h(m-v)*Math.min(Math.abs(m-v),360),A=w>=0?1:-1;switch(t){case"insideStart":a=v+A*u,c=g;break;case"insideEnd":a=m-A*u,c=!g;break;case"end":a=m+A*u,c=g;break;default:throw Error("Unsupported position ".concat(t))}c=w<=0?c:!c;var O=em(f,d,b,a),E=em(f,d,b,a+(c?1:-1)*359),P="M".concat(O.x,",").concat(O.y,"\n A").concat(b,",").concat(b,",0,1,").concat(+!c,",\n ").concat(E.x,",").concat(E.y),I=S(e.id)?x("recharts-radial-line-"):e.id;return o.createElement("text",iC({},n,{dominantBaseline:"central",className:(0,l.clsx)("recharts-radial-bar-label",s)}),o.createElement("defs",null,o.createElement("path",{id:I,d:P})),o.createElement("textPath",{xlinkHref:"#".concat(I)},r))})(f,y,u,M,c);s=((e,t,r)=>{var n=e.cx,i=e.cy,a=e.innerRadius,o=e.outerRadius,l=(e.startAngle+e.endAngle)/2;if("outside"===r){var c=em(n,i,o+t,l),u=c.x;return{x:u,y:c.y,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var s=em(n,i,(a+o)/2,l);return{x:s.x,y:s.y,textAnchor:"middle",verticalAnchor:"middle"}})(c,f.offset,f.position)}else{if(!T)return null;var _=(e=>{var t=e.viewBox,r=e.position,n=e.offset,i=void 0===n?0:n,a=e.parentViewBox,o=e.clamp,l=n$(t),c=l.x,u=l.y,s=l.height,f=l.upperWidth,d=l.lowerWidth,p=c+(f-d)/2,h=(c+p)/2,y=(f+d)/2,g=s>=0?1:-1,b=g*i,x=g>0?"end":"start",A=g>0?"start":"end",S=f>=0?1:-1,O=S*i,E=S>0?"end":"start",P=S>0?"start":"end";if("top"===r){var I={x:c+f/2,y:u-b,horizontalAnchor:"middle",verticalAnchor:x};return o&&a&&(I.height=Math.max(u-a.y,0),I.width=f),I}if("bottom"===r){var C={x:p+d/2,y:u+s+b,horizontalAnchor:"middle",verticalAnchor:A};return o&&a&&(C.height=Math.max(a.y+a.height-(u+s),0),C.width=d),C}if("left"===r){var T={x:h-O,y:u+s/2,horizontalAnchor:E,verticalAnchor:"middle"};return o&&a&&(T.width=Math.max(T.x-a.x,0),T.height=s),T}if("right"===r){var j={x:h+y+O,y:u+s/2,horizontalAnchor:P,verticalAnchor:"middle"};return o&&a&&(j.width=Math.max(a.x+a.width-j.x,0),j.height=s),j}var k=o&&a?{width:y,height:s}:{};return"insideLeft"===r?iA({x:h+O,y:u+s/2,horizontalAnchor:P,verticalAnchor:"middle"},k):"insideRight"===r?iA({x:h+y-O,y:u+s/2,horizontalAnchor:E,verticalAnchor:"middle"},k):"insideTop"===r?iA({x:c+f/2,y:u+b,horizontalAnchor:"middle",verticalAnchor:A},k):"insideBottom"===r?iA({x:p+d/2,y:u+s-b,horizontalAnchor:"middle",verticalAnchor:x},k):"insideTopLeft"===r?iA({x:c+O,y:u+b,horizontalAnchor:P,verticalAnchor:A},k):"insideTopRight"===r?iA({x:c+f-O,y:u+b,horizontalAnchor:E,verticalAnchor:A},k):"insideBottomLeft"===r?iA({x:p+O,y:u+s-b,horizontalAnchor:P,verticalAnchor:x},k):"insideBottomRight"===r?iA({x:p+d-O,y:u+s-b,horizontalAnchor:E,verticalAnchor:x},k):r&&"object"==typeof r&&(m(r.x)||v(r.x))&&(m(r.y)||v(r.y))?iA({x:c+w(r.x,y),y:u+w(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},k):iA({x:c+f/2,y:u+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},k)})({viewBox:T,position:y,offset:f.offset,parentViewBox:iM(p)?void 0:p,clamp:!0});s=iI(iI({x:_.x,y:_.y,textAnchor:_.horizontalAnchor,verticalAnchor:_.verticalAnchor},void 0!==_.width?{width:_.width}:{}),void 0!==_.height?{height:_.height}:{})}return o.createElement(ix,{zIndex:f.zIndex},o.createElement(ep,iC({ref:P,className:(0,l.clsx)("recharts-label",void 0===O?"":O)},M,s,{textAnchor:ea(M.textAnchor)?M.textAnchor:s.textAnchor,breakAll:E}),u))}iN.displayName="Label",e.s(["CartesianLabelContextProvider",0,e=>{var t=e.x,r=e.y,n=e.upperWidth,i=e.lowerWidth,a=e.width,l=e.height,c=e.children,u=(0,o.useMemo)(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:l}),[t,r,n,i,a,l]);return o.createElement(iT.Provider,{value:u},c)},"CartesianLabelFromLabelProp",0,function(e){var t=e.label,r=e.labelRef;return((e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return!0===e?o.createElement(iN,iC({key:"label-implicit"},n)):g(e)?o.createElement(iN,iC({key:"label-implicit",value:e},n)):(0,o.isValidElement)(e)?e.type===iN?(0,o.cloneElement)(e,iI({key:"label-implicit"},n)):o.createElement(iN,iC({key:"label-implicit",content:e},n)):iD(e)?o.createElement(iN,iC({key:"label-implicit",content:e},n)):e&&"object"==typeof e?o.createElement(iN,iC({},e,{key:"label-implicit"},n)):null})(t,ij(),r)||null},"Label",0,iN,"isLabelContentAFunction",0,iD],800494);var iL=e.i(997865),iR=["valueAccessor"],iB=["dataKey","clockWise","id","textBreakAll","zIndex"];function iz(){return(iz=Object.assign.bind()).apply(null,arguments)}function iF(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(eo(t))return t},i$=(0,o.createContext)(void 0),iW=i$.Provider,iK=(0,o.createContext)(void 0),iV=iK.Provider;function iG(e){var t=e.valueAccessor,r=void 0===t?iU:t,n=iF(e,iR),i=n.dataKey,a=(n.clockWise,n.id),l=n.textBreakAll,c=n.zIndex,u=iF(n,iB),s=(0,o.useContext)(i$),f=(0,o.useContext)(iK),d=s||f;return d&&d.length?o.createElement(ix,{zIndex:null!=c?c:nY.label},o.createElement(iL.Layer,{className:"recharts-label-list"},d.map((e,t)=>{var c,s=S(i)?r(e,t):na(e.payload,i),f=S(a)?{}:{id:"".concat(a,"-").concat(t)};return o.createElement(iN,iz({key:"label-".concat(t)},(0,G.svgPropertiesAndEvents)(e),u,f,{fill:null!=(c=n.fill)?c:e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:l,viewBox:e.viewBox,index:t,zIndex:0}))}))):null}iG.displayName="LabelList",e.s(["CartesianLabelListContextProvider",0,iW,"LabelListFromLabelProp",0,function(e){var t=e.label;return t?!0===t?o.createElement(iG,{key:"labelList-implicit"}):o.isValidElement(t)||iD(t)?o.createElement(iG,{key:"labelList-implicit",content:t}):"object"==typeof t?o.createElement(iG,iz({key:"labelList-implicit"},t,{type:String(t.type)})):null:null},"PolarLabelListContextProvider",0,iV],969212)},997865,630194,257999,43404,e=>{"use strict";var t=e.i(271645),r=e.i(207670),n=["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"];function i(e){return"string"==typeof e&&n.includes(e)}e.s(["isEventKey",0,i],630194);var a=new Set(["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"]);function o(e){return"string"==typeof e&&a.has(e)}function l(e){return"string"==typeof e&&e.startsWith("data-")}function c(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o(r)||l(r))&&(t[r]=e[r]);return t}function u(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o(r)||l(r)||i(r))&&(t[r]=e[r]);return t}e.s(["isDataAttribute",0,l,"isSvgElementPropKey",0,o,"svgPropertiesNoEvents",0,c,"svgPropertiesNoEventsFromUnknown",0,function(e){return null==e?null:(0,t.isValidElement)(e)&&"object"==typeof e.props&&null!==e.props?c(e.props):"object"!=typeof e||Array.isArray(e)?null:c(e)}],257999),e.s(["svgPropertiesAndEvents",0,u,"svgPropertiesAndEventsFromUnknown",0,function(e){return null==e?null:(0,t.isValidElement)(e)?u(e.props):"object"!=typeof e||Array.isArray(e)?null:u(e)}],43404);var s=["children","className"];function f(){return(f=Object.assign.bind()).apply(null,arguments)}var d=t.forwardRef((e,n)=>{var i=e.children,a=e.className,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n{"use strict";var t=e.i(271645),r=["children"],n=(0,t.createContext)({data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});e.s(["SetErrorBarContext",0,function(e){var i=e.children,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n{"use strict";var t,r=e.i(271645),n=e.i(794395);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{var e;return(function(e){if(Array.isArray(e))return e}(e=r.useState(()=>(0,n.uniqueId)("uid-")))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,i,a,o=[],l=!0,c=!1;try{i=(t=t.call(e)).next,!1;for(;!(l=(r=i.call(t)).done)&&(o.push(r.value),1!==o.length);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return i(e,1);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,1):void 0}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0]};function o(e,t){var r=a();return t||(e?"".concat(e,"-").concat(r):r)}e.s(["useId",0,a],408191),e.s(["useUniqueId",0,o],319346);var l=(0,r.createContext)(void 0);e.s(["RegisterGraphicalItemId",0,e=>{var t=e.id,n=e.type,i=e.children,a=o("recharts-".concat(n),t);return r.createElement(l.Provider,{value:a},i(a))}],415549);var c=e.i(127241),u=e.i(164645),s=e.i(606368),f=(0,u.createSlice)({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push((0,s.castDraft)(t.payload))},prepare:(0,u.prepareAutoBatched)()},replaceCartesianGraphicalItem:{reducer(e,t){var r=t.payload,n=r.prev,i=r.next,a=(0,s.current)(e).cartesianItems.indexOf((0,s.castDraft)(n));a>-1&&(e.cartesianItems[a]=(0,s.castDraft)(i))},prepare:(0,u.prepareAutoBatched)()},removeCartesianGraphicalItem:{reducer(e,t){var r=(0,s.current)(e).cartesianItems.indexOf((0,s.castDraft)(t.payload));r>-1&&e.cartesianItems.splice(r,1)},prepare:(0,u.prepareAutoBatched)()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push((0,s.castDraft)(t.payload))},prepare:(0,u.prepareAutoBatched)()},removePolarGraphicalItem:{reducer(e,t){var r=(0,s.current)(e).polarItems.indexOf((0,s.castDraft)(t.payload));r>-1&&e.polarItems.splice(r,1)},prepare:(0,u.prepareAutoBatched)()},replacePolarGraphicalItem:{reducer(e,t){var r=t.payload,n=r.prev,i=r.next,a=(0,s.current)(e).polarItems.indexOf((0,s.castDraft)(n));a>-1&&(e.polarItems[a]=(0,s.castDraft)(i))},prepare:(0,u.prepareAutoBatched)()}}}),d=f.actions,p=d.addCartesianGraphicalItem,h=d.replaceCartesianGraphicalItem,y=d.removeCartesianGraphicalItem,v=d.addPolarGraphicalItem,m=d.removePolarGraphicalItem,g=d.replacePolarGraphicalItem,b=f.reducer;e.s(["addCartesianGraphicalItem",0,p,"addPolarGraphicalItem",0,v,"graphicalItemsReducer",0,b,"removeCartesianGraphicalItem",0,y,"removePolarGraphicalItem",0,m,"replaceCartesianGraphicalItem",0,h,"replacePolarGraphicalItem",0,g],825604);var x=(0,r.memo)(e=>{var t=(0,c.useAppDispatch)(),n=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{null===n.current?t(p(e)):n.current!==e&&t(h({prev:n.current,next:e})),n.current=e},[t,e]),(0,r.useLayoutEffect)(()=>()=>{n.current&&(t(y(n.current)),n.current=null)},[t]),null}),w=(0,r.memo)(e=>{var t=(0,c.useAppDispatch)(),n=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{null===n.current?t(v(e)):n.current!==e&&t(g({prev:n.current,next:e})),n.current=e},[t,e]),(0,r.useLayoutEffect)(()=>()=>{n.current&&(t(m(n.current)),n.current=null)},[t]),null});e.s(["SetCartesianGraphicalItem",0,x,"SetPolarGraphicalItem",0,w],591187)},394585,e=>{"use strict";var t=e.i(127241),r=e.i(698982);e.s(["useMouseClickItemDispatch",0,(e,n,i)=>{var a=(0,t.useAppDispatch)();return(t,o)=>l=>{null==e||e(t,o,l),a((0,r.setActiveClickItemIndex)({activeIndex:String(o),activeDataKey:n,activeCoordinate:t.tooltipPosition,activeGraphicalItemId:i}))}},"useMouseEnterItemDispatch",0,(e,n,i)=>{var a=(0,t.useAppDispatch)();return(t,o)=>l=>{null==e||e(t,o,l),a((0,r.setActiveMouseOverItemIndex)({activeIndex:String(o),activeDataKey:n,activeCoordinate:t.tooltipPosition,activeGraphicalItemId:i}))}},"useMouseLeaveItemDispatch",0,e=>{var n=(0,t.useAppDispatch)();return(t,i)=>a=>{null==e||e(t,i,a),n((0,r.mouseLeaveItem)())}}])},352734,e=>{"use strict";e.i(929194),e.i(661764);var t=e.i(127241);e.i(375337);var r=e.i(676735),n=e.i(661849),i=e.i(541088),a=(0,n.createSelector)([i.selectChartOffsetInternal],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),o=e.i(15892),l=(0,n.createSelector)([a,o.selectChartWidth,o.selectChartHeight],(e,t,r)=>{if(e&&null!=t&&null!=r)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}});e.s(["useActiveTooltipDataPoints",0,()=>(0,t.useAppSelector)(r.selectActiveTooltipDataPoints),"usePlotArea",0,()=>(0,t.useAppSelector)(l)],352734)},942203,157741,e=>{"use strict";var t=e.i(271645),r=e.i(207670),n=e.i(794395),i=e.i(43404),a=["x","y","top","left","width","height","className"];function o(){return(o=Object.assign.bind()).apply(null,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}e.s(["Cross",0,e=>{var c=e.x,u=void 0===c?0:c,s=e.y,f=void 0===s?0:s,d=e.top,p=void 0===d?0:d,h=e.left,y=void 0===h?0:h,v=e.width,m=void 0===v?0:v,g=e.height,b=void 0===g?0:g,x=e.className,w=function(e){for(var t=1;t{"use strict";var t=e.i(271645),r=e.i(62990),n=e.i(475058);function i(e){this._context=e}function a(e){return new i(e)}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,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)}}};let o=Math.PI,l=2*o,c=l-1e-6;function u(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return u;let r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t1e-6)if(Math.abs(f*c-u*s)>1e-6&&i){let p=r-a,h=n-l,y=c*c+u*u,v=Math.sqrt(y),m=Math.sqrt(d),g=i*Math.tan((o-Math.acos((y+d-(p*p+h*h))/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>1e-6&&this._append`L${e+b*s},${t+b*f}`,this._append`A${i},${i},0,0,${+(f*p>s*h)},${this._x1=e+x*c},${this._y1=t+x*u}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,r,n,i,a){if(e*=1,t*=1,r*=1,a=!!a,r<0)throw Error(`negative radius: ${r}`);let u=r*Math.cos(n),s=r*Math.sin(n),f=e+u,d=t+s,p=1^a,h=a?n-i:i-n;null===this._x1?this._append`M${f},${d}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-d)>1e-6)&&this._append`L${f},${d}`,r&&(h<0&&(h=h%l+l),h>c?this._append`A${r},${r},0,1,${p},${e-u},${t-s}A${r},${r},0,1,${p},${this._x1=f},${this._y1=d}`:h>1e-6&&this._append`A${r},${r},0,${+(h>=o)},${p},${this._x1=e+r*Math.cos(i)},${this._y1=t+r*Math.sin(i)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function f(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{let e=Math.floor(r);if(!(e>=0))throw RangeError(`invalid digits: ${r}`);t=e}return e},()=>new s(t)}function d(e){return e[0]}function p(e){return e[1]}function h(e,t){var i=(0,n.default)(!0),o=null,l=a,c=null,u=f(s);function s(n){var a,s,f,d=(n=(0,r.default)(n)).length,p=!1;for(null==o&&(c=l(f=u())),a=0;a<=d;++a)!(a=f;--d)s.point(g[d],b[d]);s.lineEnd(),s.areaEnd()}m&&(g[a]=+e(p,a,n),b[a]=+t(p,a,n),s.point(o?+o(p,a,n):g[a],i?+i(p,a,n):b[a]))}if(h)return s=null,h+""||null}function m(){return h().defined(l).curve(u).context(c)}return e="function"==typeof e?e:void 0===e?d:(0,n.default)(+e),t="function"==typeof t?t:void 0===t?(0,n.default)(0):(0,n.default)(+t),i="function"==typeof i?i:void 0===i?p:(0,n.default)(+i),v.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(+t),o=null,v):e},v.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(+t),v):e},v.x1=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:(0,n.default)(+e),v):o},v.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),i=null,v):t},v.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),v):t},v.y1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:(0,n.default)(+e),v):i},v.lineX0=v.lineY0=function(){return m().x(e).y(t)},v.lineY1=function(){return m().x(e).y(i)},v.lineX1=function(){return m().x(o).y(t)},v.defined=function(e){return arguments.length?(l="function"==typeof e?e:(0,n.default)(!!e),v):l},v.curve=function(e){return arguments.length?(u=e,null!=c&&(s=u(c)),v):u},v.context=function(e){return arguments.length?(null==e?c=s=null:s=u(c=e),v):c},v}function v(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 m(e){this._context=e}function g(){}function b(e){this._context=e}function x(e){this._context=e}s.prototype,e.s(["withPath",0,f],216888),m.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:v(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,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:v(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},b.prototype={areaStart:g,areaEnd:g,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,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:v(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},x.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,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:v(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class w{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function A(e){this._context=e}A.prototype={areaStart:g,areaEnd:g,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function S(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);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*n)/(n+i)))||0}function O(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function E(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function P(e){this._context=e}function I(e){this._context=new C(e)}function C(e){this._context=e}function T(e){this._context=e}function j(e){var t,r,n=e.length-1,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t