(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ku=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jw={exports:{}},pc={},Mw={exports:{}},le={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Eu=Symbol.for("react.element"),XP=Symbol.for("react.portal"),YP=Symbol.for("react.fragment"),QP=Symbol.for("react.strict_mode"),ZP=Symbol.for("react.profiler"),JP=Symbol.for("react.provider"),eE=Symbol.for("react.context"),tE=Symbol.for("react.forward_ref"),nE=Symbol.for("react.suspense"),rE=Symbol.for("react.memo"),iE=Symbol.for("react.lazy"),vm=Symbol.iterator;function oE(e){return e===null||typeof e!="object"?null:(e=vm&&e[vm]||e["@@iterator"],typeof e=="function"?e:null)}var Nw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Iw=Object.assign,Rw={};function To(e,t,n){this.props=e,this.context=t,this.refs=Rw,this.updater=n||Nw}To.prototype.isReactComponent={};To.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};To.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dw(){}Dw.prototype=To.prototype;function fy(e,t,n){this.props=e,this.context=t,this.refs=Rw,this.updater=n||Nw}var dy=fy.prototype=new Dw;dy.constructor=fy;Iw(dy,To.prototype);dy.isPureReactComponent=!0;var mm=Array.isArray,Lw=Object.prototype.hasOwnProperty,py={current:null},Bw={key:!0,ref:!0,__self:!0,__source:!0};function Fw(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Lw.call(t,r)&&!Bw.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1>>1,W=k[H];if(0>>1;Hi(se,D))Oei(Ne,se)?(k[H]=Ne,k[Oe]=D,H=Oe):(k[H]=se,k[re]=D,H=re);else if(Oei(Ne,D))k[H]=Ne,k[Oe]=D,H=Oe;else break e}}return I}function i(k,I){var D=k.sortIndex-I.sortIndex;return D!==0?D:k.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var l=[],s=[],c=1,f=null,d=3,p=!1,g=!1,v=!1,m=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(k){for(var I=n(s);I!==null;){if(I.callback===null)r(s);else if(I.startTime<=k)r(s),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(s)}}function S(k){if(v=!1,b(k),!g)if(n(l)!==null)g=!0,L(w);else{var I=n(s);I!==null&&F(S,I.startTime-k)}}function w(k,I){g=!1,v&&(v=!1,h(_),_=-1),p=!0;var D=d;try{for(b(I),f=n(l);f!==null&&(!(f.expirationTime>I)||k&&!C());){var H=f.callback;if(typeof H=="function"){f.callback=null,d=f.priorityLevel;var W=H(f.expirationTime<=I);I=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(l)&&r(l),b(I)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var re=n(s);re!==null&&F(S,re.startTime-I),q=!1}return q}finally{f=null,d=D,p=!1}}var x=!1,O=null,_=-1,A=5,T=-1;function C(){return!(e.unstable_now()-Tk||125H?(k.sortIndex=D,t(s,k),n(l)===null&&k===n(s)&&(v?(h(_),_=-1):v=!0,F(S,D-H))):(k.sortIndex=W,t(l,k),g||p||(g=!0,L(w))),k},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(k){var I=d;return function(){var D=d;d=I;try{return k.apply(this,arguments)}finally{d=D}}}})(Kw);Hw.exports=Kw;var vE=Hw.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var mE=B,Rt=vE;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zd=Object.prototype.hasOwnProperty,gE=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,bm={},wm={};function bE(e){return zd.call(wm,e)?!0:zd.call(bm,e)?!1:gE.test(e)?wm[e]=!0:(bm[e]=!0,!1)}function wE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xE(e,t,n,r){if(t===null||typeof t>"u"||wE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function bt(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new bt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new bt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new bt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new bt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){it[e]=new bt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new bt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new bt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new bt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new bt(e,5,!1,e.toLowerCase(),null,!1,!1)});var yy=/[\-:]([a-z])/g;function vy(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(yy,vy);it[t]=new bt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(yy,vy);it[t]=new bt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(yy,vy);it[t]=new bt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new bt(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new bt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new bt(e,1,!1,e.toLowerCase(),null,!0,!0)});function my(e,t,n,r){var i=it.hasOwnProperty(t)?it[t]:null;(i!==null?i.type!==0:r||!(2u||i[a]!==o[u]){var l=` `+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=u);break}}}finally{Df=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sa(e):""}function SE(e){switch(e.tag){case 5:return sa(e.type);case 16:return sa("Lazy");case 13:return sa("Suspense");case 19:return sa("SuspenseList");case 0:case 2:case 15:return e=Lf(e.type,!1),e;case 11:return e=Lf(e.type.render,!1),e;case 1:return e=Lf(e.type,!0),e;default:return""}}function Kd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _i:return"Fragment";case Oi:return"Portal";case Ud:return"Profiler";case gy:return"StrictMode";case Wd:return"Suspense";case Hd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gw:return(e.displayName||"Context")+".Consumer";case qw:return(e._context.displayName||"Context")+".Provider";case by:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wy:return t=e.displayName||null,t!==null?t:Kd(e.type)||"Memo";case Jn:t=e._payload,e=e._init;try{return Kd(e(t))}catch{}}return null}function OE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kd(t);case 8:return t===gy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function gr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _E(e){var t=Yw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gu(e){e._valueTracker||(e._valueTracker=_E(e))}function Qw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vd(e,t){var n=t.checked;return Me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zw(e,t){t=t.checked,t!=null&&my(e,"checked",t,!1)}function qd(e,t){Zw(e,t);var n=gr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Gd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gd(e,t.type,gr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Om(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Gd(e,t,n){(t!=="number"||zl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ca=Array.isArray;function Fi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Xu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ka(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ha={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},AE=["Webkit","ms","Moz","O"];Object.keys(ha).forEach(function(e){AE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ha[t]=ha[e]})});function nx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ha.hasOwnProperty(e)&&ha[e]?(""+t).trim():t+"px"}function rx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=nx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var PE=Me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qd(e,t){if(t){if(PE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Zd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jd=null;function xy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ep=null,zi=null,Ui=null;function Pm(e){if(e=ku(e)){if(typeof ep!="function")throw Error(U(280));var t=e.stateNode;t&&(t=gc(t),ep(e.stateNode,e.type,t))}}function ix(e){zi?Ui?Ui.push(e):Ui=[e]:zi=e}function ox(){if(zi){var e=zi,t=Ui;if(Ui=zi=null,Pm(e),t)for(e=0;e>>=0,e===0?32:31-(DE(e)/LE|0)|0}var Yu=64,Qu=4194304;function fa(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Kl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var u=a&~i;u!==0?r=fa(u):(o&=a,o!==0&&(r=fa(o)))}else a=n&~i,a!==0?r=fa(a):o!==0&&(r=fa(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Tu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-sn(t),e[t]=n}function UE(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=va),Im=" ",Rm=!1;function Ax(e,t){switch(e){case"keyup":return vT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Px(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ai=!1;function gT(e,t){switch(e){case"compositionend":return Px(t);case"keypress":return t.which!==32?null:(Rm=!0,Im);case"textInput":return e=t.data,e===Im&&Rm?null:e;default:return null}}function bT(e,t){if(Ai)return e==="compositionend"||!$y&&Ax(e,t)?(e=Ox(),Tl=Py=or=null,Ai=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Fm(n)}}function kx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cx(){for(var e=window,t=zl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zl(e.document)}return t}function ky(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function TT(e){var t=Cx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kx(n.ownerDocument.documentElement,n)){if(r!==null&&ky(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=zm(n,o);var a=zm(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pi=null,ap=null,ga=null,up=!1;function Um(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;up||Pi==null||Pi!==zl(r)||(r=Pi,"selectionStart"in r&&ky(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ga&&Ra(ga,r)||(ga=r,r=Gl(ap,"onSelect"),0$i||(e.current=pp[$i],pp[$i]=null,$i--)}function xe(e,t){$i++,pp[$i]=e.current,e.current=t}var br={},ft=xr(br),_t=xr(!1),Jr=br;function Yi(e,t){var n=e.type.contextTypes;if(!n)return br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function At(e){return e=e.childContextTypes,e!=null}function Yl(){Ee(_t),Ee(ft)}function Xm(e,t,n){if(ft.current!==br)throw Error(U(168));xe(ft,t),xe(_t,n)}function Fx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(U(108,OE(e)||"Unknown",i));return Me({},n,r)}function Ql(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||br,Jr=ft.current,xe(ft,e),xe(_t,_t.current),!0}function Ym(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=Fx(e,t,Jr),r.__reactInternalMemoizedMergedChildContext=e,Ee(_t),Ee(ft),xe(ft,e)):Ee(_t),xe(_t,n)}var Tn=null,bc=!1,Zf=!1;function zx(e){Tn===null?Tn=[e]:Tn.push(e)}function FT(e){bc=!0,zx(e)}function Sr(){if(!Zf&&Tn!==null){Zf=!0;var e=0,t=he;try{var n=Tn;for(he=1;e>=a,i-=a,$n=1<<32-sn(t)+i|n<_?(A=O,O=null):A=O.sibling;var T=d(h,O,b[_],S);if(T===null){O===null&&(O=A);break}e&&O&&T.alternate===null&&t(h,O),y=o(T,y,_),x===null?w=T:x.sibling=T,x=T,O=A}if(_===b.length)return n(h,O),$e&&Mr(h,_),w;if(O===null){for(;__?(A=O,O=null):A=O.sibling;var C=d(h,O,T.value,S);if(C===null){O===null&&(O=A);break}e&&O&&C.alternate===null&&t(h,O),y=o(C,y,_),x===null?w=C:x.sibling=C,x=C,O=A}if(T.done)return n(h,O),$e&&Mr(h,_),w;if(O===null){for(;!T.done;_++,T=b.next())T=f(h,T.value,S),T!==null&&(y=o(T,y,_),x===null?w=T:x.sibling=T,x=T);return $e&&Mr(h,_),w}for(O=r(h,O);!T.done;_++,T=b.next())T=p(O,h,_,T.value,S),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?_:T.key),y=o(T,y,_),x===null?w=T:x.sibling=T,x=T);return e&&O.forEach(function(E){return t(h,E)}),$e&&Mr(h,_),w}function m(h,y,b,S){if(typeof b=="object"&&b!==null&&b.type===_i&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case qu:e:{for(var w=b.key,x=y;x!==null;){if(x.key===w){if(w=b.type,w===_i){if(x.tag===7){n(h,x.sibling),y=i(x,b.props.children),y.return=h,h=y;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Jn&&Jm(w)===x.type){n(h,x.sibling),y=i(x,b.props),y.ref=Xo(h,x,b),y.return=h,h=y;break e}n(h,x);break}else t(h,x);x=x.sibling}b.type===_i?(y=Gr(b.props.children,h.mode,S,b.key),y.return=h,h=y):(S=Rl(b.type,b.key,b.props,null,h.mode,S),S.ref=Xo(h,y,b),S.return=h,h=S)}return a(h);case Oi:e:{for(x=b.key;y!==null;){if(y.key===x)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(h,y.sibling),y=i(y,b.children||[]),y.return=h,h=y;break e}else{n(h,y);break}else t(h,y);y=y.sibling}y=ad(b,h.mode,S),y.return=h,h=y}return a(h);case Jn:return x=b._init,m(h,y,x(b._payload),S)}if(ca(b))return g(h,y,b,S);if(Ho(b))return v(h,y,b,S);il(h,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(n(h,y.sibling),y=i(y,b),y.return=h,h=y):(n(h,y),y=od(b,h.mode,S),y.return=h,h=y),a(h)):n(h,y)}return m}var Zi=Kx(!0),Vx=Kx(!1),es=xr(null),ts=null,ji=null,Ny=null;function Iy(){Ny=ji=ts=null}function Ry(e){var t=es.current;Ee(es),e._currentValue=t}function vp(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Hi(e,t){ts=e,Ny=ji=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(St=!0),e.firstContext=null)}function Yt(e){var t=e._currentValue;if(Ny!==e)if(e={context:e,memoizedValue:t,next:null},ji===null){if(ts===null)throw Error(U(308));ji=e,ts.dependencies={lanes:0,firstContext:e}}else ji=ji.next=e;return t}var Fr=null;function Dy(e){Fr===null?Fr=[e]:Fr.push(e)}function qx(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Dy(t)):(n.next=i.next,i.next=n),t.interleaved=n,Fn(e,r)}function Fn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var er=!1;function Ly(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Fn(e,n)}return i=r.interleaved,i===null?(t.next=t,Dy(r)):(t.next=i.next,i.next=t),r.interleaved=t,Fn(e,n)}function kl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Oy(e,n)}}function eg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ns(e,t,n,r){var i=e.updateQueue;er=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var l=u,s=l.next;l.next=null,a===null?o=s:a.next=s,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,u=c.lastBaseUpdate,u!==a&&(u===null?c.firstBaseUpdate=s:u.next=s,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,c=s=l=null,u=o;do{var d=u.lane,p=u.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,v=u;switch(d=t,p=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(p,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(p,f,d):g,d==null)break e;f=Me({},f,d);break e;case 2:er=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[u]:d.push(u))}else p={eventTime:p,lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},c===null?(s=c=p,l=f):c=c.next=p,a|=d;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;d=u,u=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=s,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ni|=a,e.lanes=a,e.memoizedState=f}}function tg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ed.transition;ed.transition={};try{e(!1),t()}finally{he=n,ed.transition=r}}function fS(){return Qt().memoizedState}function HT(e,t,n){var r=hr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dS(e))pS(t,n);else if(n=qx(e,t,n,r),n!==null){var i=vt();cn(n,e,r,i),hS(n,t,r)}}function KT(e,t,n){var r=hr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dS(e))pS(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,u=o(a,n);if(i.hasEagerState=!0,i.eagerState=u,fn(u,a)){var l=t.interleaved;l===null?(i.next=i,Dy(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=qx(e,t,i,r),n!==null&&(i=vt(),cn(n,e,r,i),hS(n,t,r))}}function dS(e){var t=e.alternate;return e===je||t!==null&&t===je}function pS(e,t){ba=is=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Oy(e,n)}}var os={readContext:Yt,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},VT={readContext:Yt,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Yt,useEffect:rg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,jl(4194308,4,aS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jl(4194308,4,e,t)},useInsertionEffect:function(e,t){return jl(4,2,e,t)},useMemo:function(e,t){var n=yn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=HT.bind(null,je,e),[r.memoizedState,e]},useRef:function(e){var t=yn();return e={current:e},t.memoizedState=e},useState:ng,useDebugValue:Vy,useDeferredValue:function(e){return yn().memoizedState=e},useTransition:function(){var e=ng(!1),t=e[0];return e=WT.bind(null,e[1]),yn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=je,i=yn();if($e){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Je===null)throw Error(U(349));ti&30||Zx(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,rg(eS.bind(null,r,o,e),[e]),r.flags|=2048,Ha(9,Jx.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=yn(),t=Je.identifierPrefix;if($e){var n=kn,r=$n;n=(r&~(1<<32-sn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ua++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[mn]=t,e[Ba]=r,_S(e,t,!1,!1),t.stateNode=e;e:{switch(a=Zd(n,r),n){case"dialog":_e("cancel",e),_e("close",e),i=r;break;case"iframe":case"object":case"embed":_e("load",e),i=r;break;case"video":case"audio":for(i=0;ito&&(t.flags|=128,r=!0,Yo(o,!1),t.lanes=4194304)}else{if(!r)if(e=rs(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Yo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!$e)return at(t),null}else 2*De()-o.renderingStartTime>to&&n!==1073741824&&(t.flags|=128,r=!0,Yo(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=De(),t.sibling=null,n=Ce.current,xe(Ce,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return Zy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kt&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function e$(e,t){switch(jy(t),t.tag){case 1:return At(t.type)&&Yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ji(),Ee(_t),Ee(ft),zy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fy(t),null;case 13:if(Ee(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Ce),null;case 4:return Ji(),null;case 10:return Ry(t.type._context),null;case 22:case 23:return Zy(),null;case 24:return null;default:return null}}var al=!1,lt=!1,t$=typeof WeakSet=="function"?WeakSet:Set,G=null;function Mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Ap(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var hg=!1;function n$(e,t){if(lp=Vl,e=Cx(),ky(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,u=-1,l=-1,s=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(u=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++s===i&&(u=a),d===o&&++c===r&&(l=a),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=u===-1||l===-1?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sp={focusedElem:e,selectionRange:n},Vl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,m=g.memoizedState,h=t.stateNode,y=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:rn(t.type,v),m);h.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(S){Ie(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return g=hg,hg=!1,g}function wa(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ap(t,n,o)}i=i.next}while(i!==r)}}function Sc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ES(e){var t=e.alternate;t!==null&&(e.alternate=null,ES(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mn],delete t[Ba],delete t[dp],delete t[LT],delete t[BT])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function TS(e){return e.tag===5||e.tag===3||e.tag===4}function yg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ep(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xl));else if(r!==4&&(e=e.child,e!==null))for(Ep(e,t,n),e=e.sibling;e!==null;)Ep(e,t,n),e=e.sibling}function Tp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tp(e,t,n),e=e.sibling;e!==null;)Tp(e,t,n),e=e.sibling}var nt=null,on=!1;function Zn(e,t,n){for(n=n.child;n!==null;)$S(e,t,n),n=n.sibling}function $S(e,t,n){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(hc,n)}catch{}switch(n.tag){case 5:lt||Mi(n,t);case 6:var r=nt,i=on;nt=null,Zn(e,t,n),nt=r,on=i,nt!==null&&(on?(e=nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):nt.removeChild(n.stateNode));break;case 18:nt!==null&&(on?(e=nt,n=n.stateNode,e.nodeType===8?Qf(e.parentNode,n):e.nodeType===1&&Qf(e,n),Na(e)):Qf(nt,n.stateNode));break;case 4:r=nt,i=on,nt=n.stateNode.containerInfo,on=!0,Zn(e,t,n),nt=r,on=i;break;case 0:case 11:case 14:case 15:if(!lt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Ap(n,t,a),i=i.next}while(i!==r)}Zn(e,t,n);break;case 1:if(!lt&&(Mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Ie(n,t,u)}Zn(e,t,n);break;case 21:Zn(e,t,n);break;case 22:n.mode&1?(lt=(r=lt)||n.memoizedState!==null,Zn(e,t,n),lt=r):Zn(e,t,n);break;default:Zn(e,t,n)}}function vg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new t$),t.forEach(function(r){var i=f$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function tn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*i$(r/1960))-r,10e?16:e,ar===null)var r=!1;else{if(e=ar,ar=null,ls=0,ce&6)throw Error(U(331));var i=ce;for(ce|=4,G=e.current;G!==null;){var o=G,a=o.child;if(G.flags&16){var u=o.deletions;if(u!==null){for(var l=0;lDe()-Yy?qr(e,0):Xy|=n),Pt(e,t)}function DS(e,t){t===0&&(e.mode&1?(t=Qu,Qu<<=1,!(Qu&130023424)&&(Qu=4194304)):t=1);var n=vt();e=Fn(e,t),e!==null&&(Tu(e,t,n),Pt(e,n))}function c$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),DS(e,n)}function f$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),DS(e,n)}var LS;LS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)St=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return St=!1,ZT(e,t,n);St=!!(e.flags&131072)}else St=!1,$e&&t.flags&1048576&&Ux(t,Jl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ml(e,t),e=t.pendingProps;var i=Yi(t,ft.current);Hi(t,n),i=Wy(null,t,r,e,i,n);var o=Hy();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,At(r)?(o=!0,Ql(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ly(t),i.updater=xc,t.stateNode=i,i._reactInternals=t,gp(t,r,e,n),t=xp(null,t,r,!0,o,n)):(t.tag=0,$e&&o&&Cy(t),dt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=p$(r),e=rn(r,e),i){case 0:t=wp(null,t,r,e,n);break e;case 1:t=fg(null,t,r,e,n);break e;case 11:t=sg(null,t,r,e,n);break e;case 14:t=cg(null,t,r,rn(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),wp(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),fg(e,t,r,i,n);case 3:e:{if(xS(t),e===null)throw Error(U(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Gx(e,t),ns(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=eo(Error(U(423)),t),t=dg(e,t,r,n,i);break e}else if(r!==i){i=eo(Error(U(424)),t),t=dg(e,t,r,n,i);break e}else for(Mt=fr(t.stateNode.containerInfo.firstChild),Nt=t,$e=!0,un=null,n=Vx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qi(),r===i){t=zn(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 5:return Xx(t),e===null&&yp(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,cp(r,i)?a=null:o!==null&&cp(r,o)&&(t.flags|=32),wS(e,t),dt(e,t,a,n),t.child;case 6:return e===null&&yp(t),null;case 13:return SS(e,t,n);case 4:return By(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zi(t,null,r,n):dt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),sg(e,t,r,i,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,xe(es,r._currentValue),r._currentValue=a,o!==null)if(fn(o.value,a)){if(o.children===i.children&&!_t.current){t=zn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){a=o.child;for(var l=u.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Mn(-1,n&-n),l.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?l.next=l:(l.next=c.next,c.next=l),s.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),vp(o.return,n,t),u.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(U(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),vp(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}dt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hi(t,n),i=Yt(i),r=r(i),t.flags|=1,dt(e,t,r,n),t.child;case 14:return r=t.type,i=rn(r,t.pendingProps),i=rn(r.type,i),cg(e,t,r,i,n);case 15:return gS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rn(r,i),Ml(e,t),t.tag=1,At(r)?(e=!0,Ql(t)):e=!1,Hi(t,n),yS(t,r,i),gp(t,r,i,n),xp(null,t,r,!0,e,n);case 19:return OS(e,t,n);case 22:return bS(e,t,n)}throw Error(U(156,t.tag))};function BS(e,t){return dx(e,t)}function d$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,n,r){return new d$(e,t,n,r)}function ev(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p$(e){if(typeof e=="function")return ev(e)?1:0;if(e!=null){if(e=e.$$typeof,e===by)return 11;if(e===wy)return 14}return 2}function yr(e,t){var n=e.alternate;return n===null?(n=Vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rl(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")ev(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case _i:return Gr(n.children,i,o,t);case gy:a=8,i|=8;break;case Ud:return e=Vt(12,n,t,i|2),e.elementType=Ud,e.lanes=o,e;case Wd:return e=Vt(13,n,t,i),e.elementType=Wd,e.lanes=o,e;case Hd:return e=Vt(19,n,t,i),e.elementType=Hd,e.lanes=o,e;case Xw:return _c(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qw:a=10;break e;case Gw:a=9;break e;case by:a=11;break e;case wy:a=14;break e;case Jn:a=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Vt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Gr(e,t,n,r){return e=Vt(7,e,r,t),e.lanes=n,e}function _c(e,t,n,r){return e=Vt(22,e,r,t),e.elementType=Xw,e.lanes=n,e.stateNode={isHidden:!1},e}function od(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function ad(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function h$(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ff(0),this.expirationTimes=Ff(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ff(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function tv(e,t,n,r,i,o,a,u,l){return e=new h$(e,t,n,u,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Vt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ly(o),e}function y$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WS)}catch(e){console.error(e)}}WS(),Ww.exports=Dt;var w$=Ww.exports,_g=w$;Fd.createRoot=_g.createRoot,Fd.hydrateRoot=_g.hydrateRoot;/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const x$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),HS=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var S$={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const O$=B.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...u},l)=>B.createElement("svg",{ref:l,...S$,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:HS("lucide",i),...u},[...a.map(([s,c])=>B.createElement(s,c)),...Array.isArray(o)?o:[o]]));/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const di=(e,t)=>{const n=B.forwardRef(({className:r,...i},o)=>B.createElement(O$,{ref:o,iconNode:t,className:HS(`lucide-${x$(e)}`,r),...i}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _$=di("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A$=di("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P$=di("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E$=di("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const T$=di("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $$=di("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.395.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const k$=di("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function KS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t-1}var $C=TC,kC=kc;function CC(e,t){var n=this.__data__,r=kC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var jC=CC,MC=yC,NC=OC,IC=PC,RC=$C,DC=jC;function No(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0?1:-1},Ur=function(t){return ii(t)&&t.indexOf("%")===t.length-1},K=function(t){return r2(t)&&!Mu(t)},u2=function(t){return ue(t)},Ge=function(t){return K(t)||ii(t)},l2=0,Nu=function(t){var n=++l2;return"".concat(t||"").concat(n)},ht=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!K(t)&&!ii(t))return r;var o;if(Ur(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Mu(o)&&(o=r),i&&o>n&&(o=n),o},Si=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},s2=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v2(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Rg={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"},Nn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Dg=null,sd=null,vv=function e(t){if(t===Dg&&Array.isArray(sd))return sd;var n=[];return B.Children.forEach(t,function(r){ue(r)||(Zj.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),sd=n,Dg=t,n};function Xt(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Nn(i)}):r=[Nn(t)],vv(e).forEach(function(i){var o=It(i,"type.displayName")||It(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Ct(e,t){var n=Xt(e,t);return n&&n[0]}var Lg=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!K(r)||r<=0||!K(i)||i<=0)},m2=["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"],g2=function(t){return t&&t.type&&ii(t.type)&&m2.indexOf(t.type)>=0},b2=function(t,n,r,i){var o,a=(o=ld==null?void 0:ld[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!ne(t)&&(i&&a.includes(n)||d2.includes(n))||r&&yv.includes(n)},J=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(B.isValidElement(t)&&(i=t.props),!jo(i))return null;var o={};return Object.keys(i).forEach(function(a){var u;b2((u=i)===null||u===void 0?void 0:u[a],a,n,r)&&(o[a]=i[a])}),o},Ip=function e(t,n){if(t===n)return!0;var r=B.Children.count(t);if(r!==B.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Bg(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _2(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Dp(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,u=e.title,l=e.desc,s=O2(e,S2),c=i||{width:n,height:r,x:0,y:0},f=ae("recharts-surface",o);return P.createElement("svg",Rp({},J(s,!0,"svg"),{className:f,width:n,height:r,style:a,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),P.createElement("title",null,u),P.createElement("desc",null,l),t)}var A2=["children","className"];function Lp(){return Lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function E2(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var pe=P.forwardRef(function(e,t){var n=e.children,r=e.className,i=P2(e,A2),o=ae("recharts-layer",r);return P.createElement("g",Lp({className:o},J(i,!0),{ref:t}),n)}),In=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;oi?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:k2(e,t,n)}var j2=C2,M2="\\ud800-\\udfff",N2="\\u0300-\\u036f",I2="\\ufe20-\\ufe2f",R2="\\u20d0-\\u20ff",D2=N2+I2+R2,L2="\\ufe0e\\ufe0f",B2="\\u200d",F2=RegExp("["+B2+M2+D2+L2+"]");function z2(e){return F2.test(e)}var iO=z2;function U2(e){return e.split("")}var W2=U2,oO="\\ud800-\\udfff",H2="\\u0300-\\u036f",K2="\\ufe20-\\ufe2f",V2="\\u20d0-\\u20ff",q2=H2+K2+V2,G2="\\ufe0e\\ufe0f",X2="["+oO+"]",Bp="["+q2+"]",Fp="\\ud83c[\\udffb-\\udfff]",Y2="(?:"+Bp+"|"+Fp+")",aO="[^"+oO+"]",uO="(?:\\ud83c[\\udde6-\\uddff]){2}",lO="[\\ud800-\\udbff][\\udc00-\\udfff]",Q2="\\u200d",sO=Y2+"?",cO="["+G2+"]?",Z2="(?:"+Q2+"(?:"+[aO,uO,lO].join("|")+")"+cO+sO+")*",J2=cO+sO+Z2,eM="(?:"+[aO+Bp+"?",Bp,uO,lO,X2].join("|")+")",tM=RegExp(Fp+"(?="+Fp+")|"+eM+J2,"g");function nM(e){return e.match(tM)||[]}var rM=nM,iM=W2,oM=iO,aM=rM;function uM(e){return oM(e)?aM(e):iM(e)}var lM=uM,sM=j2,cM=iO,fM=lM,dM=ZS;function pM(e){return function(t){t=dM(t);var n=cM(t)?fM(t):void 0,r=n?n[0]:t.charAt(0),i=n?sM(n,1).join(""):t.slice(1);return r[e]()+i}}var hM=pM,yM=hM,vM=yM("toUpperCase"),mM=vM;const Hc=me(mM);function we(e){return function(){return e}}const fO=Math.cos,ds=Math.sin,dn=Math.sqrt,ps=Math.PI,Kc=2*ps,zp=Math.PI,Up=2*zp,Ir=1e-6,gM=Up-Ir;function dO(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return dO;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;iIr)if(!(Math.abs(f*l-s*c)>Ir)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,g=i-u,v=l*l+s*s,m=p*p+g*g,h=Math.sqrt(v),y=Math.sqrt(d),b=o*Math.tan((zp-Math.acos((v+d-m)/(2*h*y)))/2),S=b/y,w=b/h;Math.abs(S-1)>Ir&&this._append`L${t+S*c},${n+S*f}`,this._append`A${o},${o},0,0,${+(f*p>c*g)},${this._x1=t+w*l},${this._y1=n+w*s}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),l=r*Math.sin(i),s=t+u,c=n+l,f=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>Ir||Math.abs(this._y1-c)>Ir)&&this._append`L${s},${c}`,r&&(d<0&&(d=d%Up+Up),d>gM?this._append`A${r},${r},0,1,${f},${t-u},${n-l}A${r},${r},0,1,${f},${this._x1=s},${this._y1=c}`:d>Ir&&this._append`A${r},${r},0,${+(d>=zp)},${f},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function mv(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new wM(t)}function gv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function pO(e){this._context=e}pO.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 Vc(e){return new pO(e)}function hO(e){return e[0]}function yO(e){return e[1]}function vO(e,t){var n=we(!0),r=null,i=Vc,o=null,a=mv(u);e=typeof e=="function"?e:e===void 0?hO:we(e),t=typeof t=="function"?t:t===void 0?yO:we(t);function u(l){var s,c=(l=gv(l)).length,f,d=!1,p;for(r==null&&(o=i(p=a())),s=0;s<=c;++s)!(s=p;--g)u.point(b[g],S[g]);u.lineEnd(),u.areaEnd()}h&&(b[d]=+e(m,d,f),S[d]=+t(m,d,f),u.point(r?+r(m,d,f):b[d],n?+n(m,d,f):S[d]))}if(y)return u=null,y+""||null}function c(){return vO().defined(i).curve(a).context(o)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),r=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),s):e},s.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:we(+f),s):r},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),n=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),s):t},s.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:we(+f),s):n},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(n)},s.lineX1=function(){return c().x(r).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:we(!!f),s):i},s.curve=function(f){return arguments.length?(a=f,o!=null&&(u=a(o)),s):a},s.context=function(f){return arguments.length?(f==null?o=u=null:u=a(o=f),s):o},s}class mO{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function xM(e){return new mO(e,!0)}function SM(e){return new mO(e,!1)}const bv={draw(e,t){const n=dn(t/ps);e.moveTo(n,0),e.arc(0,0,n,0,Kc)}},OM={draw(e,t){const n=dn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},gO=dn(1/3),_M=gO*2,AM={draw(e,t){const n=dn(t/_M),r=n*gO;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},PM={draw(e,t){const n=dn(t),r=-n/2;e.rect(r,r,n,n)}},EM=.8908130915292852,bO=ds(ps/10)/ds(7*ps/10),TM=ds(Kc/10)*bO,$M=-fO(Kc/10)*bO,kM={draw(e,t){const n=dn(t*EM),r=TM*n,i=$M*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Kc*o/5,u=fO(a),l=ds(a);e.lineTo(l*n,-u*n),e.lineTo(u*r-l*i,l*r+u*i)}e.closePath()}},cd=dn(3),CM={draw(e,t){const n=-dn(t/(cd*3));e.moveTo(0,n*2),e.lineTo(-cd*n,-n),e.lineTo(cd*n,-n),e.closePath()}},Bt=-.5,Ft=dn(3)/2,Wp=1/dn(12),jM=(Wp/2+1)*3,MM={draw(e,t){const n=dn(t/jM),r=n/2,i=n*Wp,o=r,a=n*Wp+n,u=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(u,l),e.lineTo(Bt*r-Ft*i,Ft*r+Bt*i),e.lineTo(Bt*o-Ft*a,Ft*o+Bt*a),e.lineTo(Bt*u-Ft*l,Ft*u+Bt*l),e.lineTo(Bt*r+Ft*i,Bt*i-Ft*r),e.lineTo(Bt*o+Ft*a,Bt*a-Ft*o),e.lineTo(Bt*u+Ft*l,Bt*l-Ft*u),e.closePath()}};function NM(e,t){let n=null,r=mv(i);e=typeof e=="function"?e:we(e||bv),t=typeof t=="function"?t:we(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:we(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:we(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function hs(){}function ys(e,t,n){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+n)/6)}function wO(e){this._context=e}wO.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:ys(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:ys(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function IM(e){return new wO(e)}function xO(e){this._context=e}xO.prototype={areaStart:hs,areaEnd:hs,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:ys(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RM(e){return new xO(e)}function SO(e){this._context=e}SO.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ys(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DM(e){return new SO(e)}function OO(e){this._context=e}OO.prototype={areaStart:hs,areaEnd:hs,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 LM(e){return new OO(e)}function zg(e){return e<0?-1:1}function Ug(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(zg(o)+zg(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function Wg(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fd(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,u=(o-r)/3;e._context.bezierCurveTo(r+u,i+u*t,o-u,a-u*n,o,a)}function vs(e){this._context=e}vs.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:fd(this,this._t0,Wg(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 n=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,fd(this,Wg(this,n=Ug(this,e,t)),n);break;default:fd(this,this._t0,n=Ug(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function _O(e){this._context=new AO(e)}(_O.prototype=Object.create(vs.prototype)).point=function(e,t){vs.prototype.point.call(this,t,e)};function AO(e){this._context=e}AO.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,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function BM(e){return new vs(e)}function FM(e){return new _O(e)}function PO(e){this._context=e}PO.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Hg(e),i=Hg(t),o=0,a=1;a=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t=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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function UM(e){return new qc(e,.5)}function WM(e){return new qc(e,0)}function HM(e){return new qc(e,1)}function no(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,u=o.length;n=0;)n[t]=t;return n}function KM(e,t){return e[t]}function VM(e){const t=[];return t.key=e,t}function qM(){var e=we([]),t=Hp,n=no,r=KM;function i(o){var a=Array.from(e.apply(this,arguments),VM),u,l=a.length,s=-1,c;for(const f of o)for(u=0,++s;u0){for(var n,r,i=0,o=e[0].length,a;i0){for(var n=0,r=e[t[0]],i,o=r.length;n0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nN(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var EO={symbolCircle:bv,symbolCross:OM,symbolDiamond:AM,symbolSquare:PM,symbolStar:kM,symbolTriangle:CM,symbolWye:MM},rN=Math.PI/180,iN=function(t){var n="symbol".concat(Hc(t));return EO[n]||bv},oN=function(t,n,r){if(n==="area")return t;switch(r){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*rN;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}},aN=function(t,n){EO["symbol".concat(Hc(t))]=n},wv=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,u=a===void 0?"area":a,l=tN(t,QM),s=Vg(Vg({},l),{},{type:r,size:o,sizeType:u}),c=function(){var m=iN(r),h=NM().type(m).size(oN(o,u,r));return h()},f=s.className,d=s.cx,p=s.cy,g=J(s,!0);return d===+d&&p===+p&&o===+o?P.createElement("path",Kp({},g,{className:ae("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:c()})):null};wv.registerSymbol=aN;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)}function Vp(){return Vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var y=p.inactive?s:p.color;return P.createElement("li",Vp({className:m,style:f,key:"legend-item-".concat(g)},oi(r.props,p,g)),P.createElement(Dp,{width:a,height:a,viewBox:c,style:d},r.renderIcon(p)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},v?v(h,p,g):h))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(B.PureComponent);qa(xv,"displayName","Legend");qa(xv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var vN=Cc;function mN(){this.__data__=new vN,this.size=0}var gN=mN;function bN(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var wN=bN;function xN(e){return this.__data__.get(e)}var SN=xN;function ON(e){return this.__data__.has(e)}var _N=ON,AN=Cc,PN=lv,EN=sv,TN=200;function $N(e,t){var n=this.__data__;if(n instanceof AN){var r=n.__data__;if(!PN||r.lengthu))return!1;var s=o.get(e),c=o.get(t);if(s&&c)return s==t&&c==e;var f=-1,d=!0,p=n&QN?new qN:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=tR}var Av=nR,rR=qn,iR=Av,oR=Gn,aR="[object Arguments]",uR="[object Array]",lR="[object Boolean]",sR="[object Date]",cR="[object Error]",fR="[object Function]",dR="[object Map]",pR="[object Number]",hR="[object Object]",yR="[object RegExp]",vR="[object Set]",mR="[object String]",gR="[object WeakMap]",bR="[object ArrayBuffer]",wR="[object DataView]",xR="[object Float32Array]",SR="[object Float64Array]",OR="[object Int8Array]",_R="[object Int16Array]",AR="[object Int32Array]",PR="[object Uint8Array]",ER="[object Uint8ClampedArray]",TR="[object Uint16Array]",$R="[object Uint32Array]",Ae={};Ae[xR]=Ae[SR]=Ae[OR]=Ae[_R]=Ae[AR]=Ae[PR]=Ae[ER]=Ae[TR]=Ae[$R]=!0;Ae[aR]=Ae[uR]=Ae[bR]=Ae[lR]=Ae[wR]=Ae[sR]=Ae[cR]=Ae[fR]=Ae[dR]=Ae[pR]=Ae[hR]=Ae[yR]=Ae[vR]=Ae[mR]=Ae[gR]=!1;function kR(e){return oR(e)&&iR(e.length)&&!!Ae[rR(e)]}var CR=kR;function jR(e){return function(t){return e(t)}}var LO=jR,ws={exports:{}};ws.exports;(function(e,t){var n=VS,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=u})(ws,ws.exports);var MR=ws.exports,NR=CR,IR=LO,Jg=MR,e0=Jg&&Jg.isTypedArray,RR=e0?IR(e0):NR,BO=RR,DR=FI,LR=Ov,BR=Tt,FR=DO,zR=_v,UR=BO,WR=Object.prototype,HR=WR.hasOwnProperty;function KR(e,t){var n=BR(e),r=!n&&LR(e),i=!n&&!r&&FR(e),o=!n&&!r&&!i&&UR(e),a=n||r||i||o,u=a?DR(e.length,String):[],l=u.length;for(var s in e)(t||HR.call(e,s))&&!(a&&(s=="length"||i&&(s=="offset"||s=="parent")||o&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||zR(s,l)))&&u.push(s);return u}var VR=KR,qR=Object.prototype;function GR(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qR;return e===n}var XR=GR;function YR(e,t){return function(n){return e(t(n))}}var FO=YR,QR=FO,ZR=QR(Object.keys,Object),JR=ZR,eD=XR,tD=JR,nD=Object.prototype,rD=nD.hasOwnProperty;function iD(e){if(!eD(e))return tD(e);var t=[];for(var n in Object(e))rD.call(e,n)&&n!="constructor"&&t.push(n);return t}var oD=iD,aD=av,uD=Av;function lD(e){return e!=null&&uD(e.length)&&!aD(e)}var Gc=lD,sD=VR,cD=oD,fD=Gc;function dD(e){return fD(e)?sD(e):cD(e)}var Pv=dD,pD=TI,hD=LI,yD=Pv;function vD(e){return pD(e,yD,hD)}var mD=vD,t0=mD,gD=1,bD=Object.prototype,wD=bD.hasOwnProperty;function xD(e,t,n,r,i,o){var a=n&gD,u=t0(e),l=u.length,s=t0(t),c=s.length;if(l!=c&&!a)return!1;for(var f=l;f--;){var d=u[f];if(!(a?d in t:wD.call(t,d)))return!1}var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var v=!0;o.set(e,t),o.set(t,e);for(var m=a;++f-1}var w3=b3;function x3(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=R3){var s=t?null:N3(e);if(s)return I3(s);a=!1,i=M3,l=new k3}else l=t?[]:u;e:for(;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z3(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function J3(e){return e.value}function eB(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var n=Q3(t,W3);return P.createElement(xv,n)}var m0=1,Xr=function(e){function t(){var n;H3(this,t);for(var r=arguments.length,i=new Array(r),o=0;om0||Math.abs(i.height-this.lastBoundingBox.height)>m0)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?An({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,u=i.verticalAlign,l=i.margin,s=i.chartWidth,c=i.chartHeight,f,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var p=this.getBBoxSnapshot();f={left:((s||0)-p.width)/2}}else f=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(u==="middle"){var g=this.getBBoxSnapshot();d={top:((c||0)-g.height)/2}}else d=u==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return An(An({},f),d)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,u=i.height,l=i.wrapperStyle,s=i.payloadUniqBy,c=i.payload,f=An(An({position:"absolute",width:a||"auto",height:u||"auto"},this.getDefaultPosition(l)),l);return P.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},eB(o,An(An({},this.props),{},{payload:VO(c,s,J3)})))}}],[{key:"getWithHeight",value:function(r,i){var o=An(An({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&K(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])}(B.PureComponent);Xc(Xr,"displayName","Legend");Xc(Xr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var g0=ju,tB=Ov,nB=Tt,b0=g0?g0.isConcatSpreadable:void 0;function rB(e){return nB(e)||tB(e)||!!(b0&&e&&e[b0])}var iB=rB,oB=IO,aB=iB;function XO(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=aB),i||(i=[]);++o0&&n(u)?t>1?XO(u,t-1,n,r,i):oB(i,u):r||(i[i.length]=u)}return i}var YO=XO;function uB(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),u=a.length;u--;){var l=a[e?u:++i];if(n(o[l],l,o)===!1)break}return t}}var lB=uB,sB=lB,cB=sB(),fB=cB,dB=fB,pB=Pv;function hB(e,t){return e&&dB(e,t,pB)}var QO=hB,yB=Gc;function vB(e,t){return function(n,r){if(n==null)return n;if(!yB(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++ot||o&&a&&l&&!u&&!s||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!s&&e=u)return l;var s=n[r];return l*(s=="desc"?-1:1)}}return e.index-t.index}var kB=$B,yd=fv,CB=dv,jB=_r,MB=ZO,NB=AB,IB=LO,RB=kB,DB=Lo,LB=Tt;function BB(e,t,n){t.length?t=yd(t,function(o){return LB(o)?function(a){return CB(a,o.length===1?o[0]:o)}:o}):t=[DB];var r=-1;t=yd(t,IB(jB));var i=MB(e,function(o,a,u){var l=yd(t,function(s){return s(o)});return{criteria:l,index:++r,value:o}});return NB(i,function(o,a){return RB(o,a,n)})}var FB=BB;function zB(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var UB=zB,WB=UB,x0=Math.max;function HB(e,t,n){return t=x0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=x0(r.length-t,0),a=Array(o);++i0){if(++t>=e4)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i4=r4,o4=JB,a4=i4,u4=a4(o4),l4=u4,s4=Lo,c4=KB,f4=l4;function d4(e,t){return f4(c4(e,t,s4),e+"")}var p4=d4,h4=uv,y4=Gc,v4=_v,m4=Or;function g4(e,t,n){if(!m4(n))return!1;var r=typeof t;return(r=="number"?y4(n)&&v4(t,n.length):r=="string"&&t in n)?h4(n[t],e):!1}var Yc=g4,b4=YO,w4=FB,x4=p4,O0=Yc,S4=x4(function(e,t){if(e==null)return[];var n=t.length;return n>1&&O0(e,t[0],t[1])?t=[]:n>2&&O0(t[0],t[1],t[2])&&(t=[t[0]]),w4(e,b4(t,1),[])}),O4=S4;const $v=me(O4);function Ga(e){"@babel/helpers - typeof";return Ga=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},Ga(e)}function eh(){return eh=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(Jo,"-left"),K(n)&&t&&K(t.x)&&n=t.y),"".concat(Jo,"-top"),K(r)&&t&&K(t.y)&&rv?Math.max(c,l[r]):Math.max(f,l[r])}function L4(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function B4(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,u=e.useTranslate3d,l=e.viewBox,s,c,f;return a.height>0&&a.width>0&&n?(c=P0({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),f=P0({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),s=L4({translateX:c,translateY:f,useTranslate3d:u})):s=R4,{cssProperties:s,cssClasses:D4({translateX:c,translateY:f,coordinate:n})}}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 E0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function T0(e){for(var t=1;t$0||Math.abs(r.height-this.state.lastBoundingBox.height)>$0)&&this.setState({lastBoundingBox:{width:r.width,height:r.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 r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.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 r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,u=i.animationDuration,l=i.animationEasing,s=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,p=i.offset,g=i.position,v=i.reverseDirection,m=i.useTranslate3d,h=i.viewBox,y=i.wrapperStyle,b=B4({allowEscapeViewBox:a,coordinate:c,offsetTopLeft:p,position:g,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:h}),S=b.cssClasses,w=b.cssProperties,x=T0(T0({transition:d&&o?"transform ".concat(u,"ms ").concat(l):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},y);return P.createElement("div",{tabIndex:-1,className:S,style:x,ref:function(_){r.wrapperNode=_}},s)}}])}(B.PureComponent),X4=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Bo={isSsr:X4()};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 k0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function C0(e){for(var t=1;t0;return P.createElement(G4,{allowEscapeViewBox:a,animationDuration:u,animationEasing:l,isAnimationActive:d,active:o,coordinate:c,hasPayload:x,offset:p,position:m,reverseDirection:h,useTranslate3d:y,viewBox:b,wrapperStyle:S},oF(s,C0(C0({},this.props),{},{payload:w})))}}])}(B.PureComponent);kv(vn,"displayName","Tooltip");kv(vn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Bo.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 aF=_n,uF=function(){return aF.Date.now()},lF=uF,sF=/\s/;function cF(e){for(var t=e.length;t--&&sF.test(e.charAt(t)););return t}var fF=cF,dF=fF,pF=/^\s+/;function hF(e){return e&&e.slice(0,dF(e)+1).replace(pF,"")}var yF=hF,vF=yF,j0=Or,mF=Co,M0=NaN,gF=/^[-+]0x[0-9a-f]+$/i,bF=/^0b[01]+$/i,wF=/^0o[0-7]+$/i,xF=parseInt;function SF(e){if(typeof e=="number")return e;if(mF(e))return M0;if(j0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=j0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vF(e);var n=bF.test(e);return n||wF.test(e)?xF(e.slice(2),n?2:8):gF.test(e)?M0:+e}var i_=SF,OF=Or,md=lF,N0=i_,_F="Expected a function",AF=Math.max,PF=Math.min;function EF(e,t,n){var r,i,o,a,u,l,s=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(_F);t=N0(t)||0,OF(n)&&(c=!!n.leading,f="maxWait"in n,o=f?AF(N0(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(x){var O=r,_=i;return r=i=void 0,s=x,a=e.apply(_,O),a}function g(x){return s=x,u=setTimeout(h,t),c?p(x):a}function v(x){var O=x-l,_=x-s,A=t-O;return f?PF(A,o-_):A}function m(x){var O=x-l,_=x-s;return l===void 0||O>=t||O<0||f&&_>=o}function h(){var x=md();if(m(x))return y(x);u=setTimeout(h,v(x))}function y(x){return u=void 0,d&&r?p(x):(r=i=void 0,a)}function b(){u!==void 0&&clearTimeout(u),s=0,r=l=i=u=void 0}function S(){return u===void 0?a:y(md())}function w(){var x=md(),O=m(x);if(r=arguments,i=this,l=x,O){if(u===void 0)return g(l);if(f)return clearTimeout(u),u=setTimeout(h,t),p(l)}return u===void 0&&(u=setTimeout(h,t)),a}return w.cancel=b,w.flush=S,w}var TF=EF,$F=TF,kF=Or,CF="Expected a function";function jF(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(CF);return kF(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),$F(e,t,{leading:r,maxWait:t,trailing:i})}var MF=jF;const o_=me(MF);function Ya(e){"@babel/helpers - typeof";return Ya=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},Ya(e)}function I0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dl(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(R=o_(R,v,{trailing:!0,leading:!1}));var j=new ResizeObserver(R),M=w.current.getBoundingClientRect(),L=M.width,F=M.height;return C(L,F),j.observe(w.current),function(){j.disconnect()}},[C,v]);var E=B.useMemo(function(){var R=A.containerWidth,j=A.containerHeight;if(R<0||j<0)return null;In(Ur(a)||Ur(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,a,l),In(!n||n>0,"The aspect(%s) must be greater than zero.",n);var M=Ur(a)?R:a,L=Ur(l)?j:l;n&&n>0&&(M?L=M/n:L&&(M=L*n),d&&L>d&&(L=d)),In(M>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the height and width.`,M,L,a,l,c,f,n);var F=!Array.isArray(p)&&Nn(p.type).endsWith("Chart");return P.Children.map(p,function(k){return P.isValidElement(k)?B.cloneElement(k,dl({width:M,height:L},F?{style:dl({height:"100%",width:"100%",maxHeight:L,maxWidth:M},k.props.style)}:{})):k})},[n,p,l,d,f,c,A,a]);return P.createElement("div",{id:m?"".concat(m):void 0,className:ae("recharts-responsive-container",h),style:dl(dl({},S),{},{width:a,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:w},E)}),Qc=function(t){return null};Qc.displayName="Cell";function Qa(e){"@babel/helpers - typeof";return Qa=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},Qa(e)}function L0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ih(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Bo.isSsr)return{width:0,height:0};var r=qF(n),i=JSON.stringify({text:t,copyStyle:r});if(bi.widthCache[i])return bi.widthCache[i];try{var o=document.getElementById(B0);o||(o=document.createElement("span"),o.setAttribute("id",B0),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=ih(ih({},VF),r);Object.assign(o.style,a),o.textContent="".concat(t);var u=o.getBoundingClientRect(),l={width:u.width,height:u.height};return bi.widthCache[i]=l,++bi.cacheCount>KF&&(bi.cacheCount=0,bi.widthCache={}),l}catch{return{width:0,height:0}}},GF=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Za(e){"@babel/helpers - typeof";return Za=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},Za(e)}function _s(e,t){return ZF(e)||QF(e,t)||YF(e,t)||XF()}function XF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YF(e,t){if(e){if(typeof e=="string")return F0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F0(e,t)}}function F0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function d8(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function V0(e,t){return v8(e)||y8(e,t)||h8(e,t)||p8()}function p8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h8(e,t){if(e){if(typeof e=="string")return q0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q0(e,t)}}function q0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(L,F){var k=F.word,I=F.width,D=L[L.length-1];if(D&&(i==null||o||D.width+I+rF.width?L:F})};if(!c)return p;for(var v="…",m=function(M){var L=f.slice(0,M),F=s_({breakAll:s,style:l,children:L+v}).wordsWithComputedWidth,k=d(F),I=k.length>a||g(k).width>Number(i);return[I,k]},h=0,y=f.length-1,b=0,S;h<=y&&b<=f.length-1;){var w=Math.floor((h+y)/2),x=w-1,O=m(x),_=V0(O,2),A=_[0],T=_[1],C=m(w),E=V0(C,1),R=E[0];if(!A&&!R&&(h=w+1),A&&R&&(y=w-1),!A&&R){S=T;break}b++}return S||p},G0=function(t){var n=ue(t)?[]:t.toString().split(l_);return[{words:n}]},g8=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,u=t.maxLines;if((n||r)&&!Bo.isSsr){var l,s,c=s_({breakAll:a,children:i,style:o});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,s=d}else return G0(i);return m8({breakAll:a,children:i,maxLines:u,style:o},l,s,n,r)}return G0(i)},X0="#808080",ai=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,u=a===void 0?"1em":a,l=t.capHeight,s=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,p=d===void 0?"start":d,g=t.verticalAnchor,v=g===void 0?"end":g,m=t.fill,h=m===void 0?X0:m,y=K0(t,c8),b=B.useMemo(function(){return g8({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:f,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,f,y.style,y.width]),S=y.dx,w=y.dy,x=y.angle,O=y.className,_=y.breakAll,A=K0(y,f8);if(!Ge(r)||!Ge(o))return null;var T=r+(K(S)?S:0),C=o+(K(w)?w:0),E;switch(v){case"start":E=gd("calc(".concat(s,")"));break;case"middle":E=gd("calc(".concat((b.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:E=gd("calc(".concat(b.length-1," * -").concat(u,")"));break}var R=[];if(f){var j=b[0].width,M=y.width;R.push("scale(".concat((K(M)?M/j:1)/j,")"))}return x&&R.push("rotate(".concat(x,", ").concat(T,", ").concat(C,")")),R.length&&(A.transform=R.join(" ")),P.createElement("text",oh({},J(A,!0),{x:T,y:C,className:ae("recharts-text",O),textAnchor:p,fill:h.includes("url")?X0:h}),b.map(function(L,F){var k=L.words.join(_?"":" ");return P.createElement("tspan",{x:T,dy:F===0?E:u,key:"".concat(k,"-").concat(F)},k)}))};function vr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function b8(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Cv(e){let t,n,r;e.length!==2?(t=vr,n=(u,l)=>vr(e(u),l),r=(u,l)=>e(u)-l):(t=e===vr||e===b8?e:w8,n=e,r=e);function i(u,l,s=0,c=u.length){if(s>>1;n(u[f],l)<0?s=f+1:c=f}while(s>>1;n(u[f],l)<=0?s=f+1:c=f}while(ss&&r(u[f-1],l)>-r(u[f],l)?f-1:f}return{left:i,center:a,right:o}}function w8(){return 0}function c_(e){return e===null?NaN:+e}function*x8(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const S8=Cv(vr),Iu=S8.right;Cv(c_).center;class Y0 extends Map{constructor(t,n=A8){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Q0(this,t))}has(t){return super.has(Q0(this,t))}set(t,n){return super.set(O8(this,t),n)}delete(t){return super.delete(_8(this,t))}}function Q0({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function O8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function _8({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function A8(e){return e!==null&&typeof e=="object"?e.valueOf():e}function P8(e=vr){if(e===vr)return f_;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function f_(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const E8=Math.sqrt(50),T8=Math.sqrt(10),$8=Math.sqrt(2);function As(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=E8?10:o>=T8?5:o>=$8?2:1;let u,l,s;return i<0?(s=Math.pow(10,-i)/a,u=Math.round(e*s),l=Math.round(t*s),u/st&&--l,s=-s):(s=Math.pow(10,i)*a,u=Math.round(e/s),l=Math.round(t/s),u*st&&--l),l0))return[];if(e===t)return[e];const r=t=i))return[];const u=o-i+1,l=new Array(u);if(r)if(a<0)for(let s=0;s=r)&&(n=r);return n}function J0(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function d_(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?f_:P8(i);r>n;){if(r-n>600){const l=r-n+1,s=t-n+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(s-l/2<0?-1:1),p=Math.max(n,Math.floor(t-s*f/l+d)),g=Math.min(r,Math.floor(t+(l-s)*f/l+d));d_(e,t,p,g,i)}const o=e[t];let a=n,u=r;for(ea(e,n,t),i(e[r],o)>0&&ea(e,n,r);a0;)--u}i(e[n],o)===0?ea(e,n,u):(++u,ea(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function ea(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function k8(e,t,n){if(e=Float64Array.from(x8(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return J0(e);if(t>=1)return Z0(e);var r,i=(r-1)*t,o=Math.floor(i),a=Z0(d_(e,o).subarray(0,o+1)),u=J0(e.subarray(o+1));return a+(u-a)*(i-o)}}function C8(e,t,n=c_){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),u=+n(e[o+1],o+1,e);return a+(u-a)*(i-o)}}function j8(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?hl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?hl(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=N8.exec(e))?new Ot(t[1],t[2],t[3],1):(t=I8.exec(e))?new Ot(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=R8.exec(e))?hl(t[1],t[2],t[3],t[4]):(t=D8.exec(e))?hl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=L8.exec(e))?ab(t[1],t[2]/100,t[3]/100,1):(t=B8.exec(e))?ab(t[1],t[2]/100,t[3]/100,t[4]):eb.hasOwnProperty(e)?rb(eb[e]):e==="transparent"?new Ot(NaN,NaN,NaN,0):null}function rb(e){return new Ot(e>>16&255,e>>8&255,e&255,1)}function hl(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ot(e,t,n,r)}function U8(e){return e instanceof Ru||(e=nu(e)),e?(e=e.rgb(),new Ot(e.r,e.g,e.b,e.opacity)):new Ot}function ch(e,t,n,r){return arguments.length===1?U8(e):new Ot(e,t,n,r??1)}function Ot(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Mv(Ot,ch,h_(Ru,{brighter(e){return e=e==null?Ps:Math.pow(Ps,e),new Ot(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?eu:Math.pow(eu,e),new Ot(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ot(Yr(this.r),Yr(this.g),Yr(this.b),Es(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:ib,formatHex:ib,formatHex8:W8,formatRgb:ob,toString:ob}));function ib(){return`#${Wr(this.r)}${Wr(this.g)}${Wr(this.b)}`}function W8(){return`#${Wr(this.r)}${Wr(this.g)}${Wr(this.b)}${Wr((isNaN(this.opacity)?1:this.opacity)*255)}`}function ob(){const e=Es(this.opacity);return`${e===1?"rgb(":"rgba("}${Yr(this.r)}, ${Yr(this.g)}, ${Yr(this.b)}${e===1?")":`, ${e})`}`}function Es(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wr(e){return e=Yr(e),(e<16?"0":"")+e.toString(16)}function ab(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ln(e,t,n,r)}function y_(e){if(e instanceof ln)return new ln(e.h,e.s,e.l,e.opacity);if(e instanceof Ru||(e=nu(e)),!e)return new ln;if(e instanceof ln)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,u=o-i,l=(o+i)/2;return u?(t===o?a=(n-r)/u+(n0&&l<1?0:a,new ln(a,u,l,e.opacity)}function H8(e,t,n,r){return arguments.length===1?y_(e):new ln(e,t,n,r??1)}function ln(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mv(ln,H8,h_(Ru,{brighter(e){return e=e==null?Ps:Math.pow(Ps,e),new ln(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?eu:Math.pow(eu,e),new ln(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ot(bd(e>=240?e-240:e+120,i,r),bd(e,i,r),bd(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ln(ub(this.h),yl(this.s),yl(this.l),Es(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=Es(this.opacity);return`${e===1?"hsl(":"hsla("}${ub(this.h)}, ${yl(this.s)*100}%, ${yl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ub(e){return e=(e||0)%360,e<0?e+360:e}function yl(e){return Math.max(0,Math.min(1,e||0))}function bd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Nv=e=>()=>e;function K8(e,t){return function(n){return e+n*t}}function V8(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function q8(e){return(e=+e)==1?v_:function(t,n){return n-t?V8(t,n,e):Nv(isNaN(t)?n:t)}}function v_(e,t){var n=t-e;return n?K8(e,n):Nv(isNaN(e)?t:e)}const lb=function e(t){var n=q8(t);function r(i,o){var a=n((i=ch(i)).r,(o=ch(o)).r),u=n(i.g,o.g),l=n(i.b,o.b),s=v_(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=u(c),i.b=l(c),i.opacity=s(c),i+""}}return r.gamma=e,r}(1);function G8(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;in&&(o=t.slice(n,o),u[a]?u[a]+=o:u[++a]=o),(r=r[0])===(i=i[0])?u[a]?u[a]+=i:u[++a]=i:(u[++a]=null,l.push({i:a,x:Ts(r,i)})),n=wd.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function oz(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i2?az:oz,l=s=null,f}function f(d){return d==null||isNaN(d=+d)?o:(l||(l=u(e.map(r),t,n)))(r(a(d)))}return f.invert=function(d){return a(i((s||(s=u(t,e.map(r),Ts)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,$s),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=Iv,c()},f.clamp=function(d){return arguments.length?(a=d?!0:yt,c()):a!==yt},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(o=d,f):o},function(d,p){return r=d,i=p,c()}}function Rv(){return Zc()(yt,yt)}function uz(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ks(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function uo(e){return e=ks(Math.abs(e)),e?e[1]:NaN}function lz(e,t){return function(n,r){for(var i=n.length,o=[],a=0,u=e[0],l=0;i>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),o.push(n.substring(i-=u,i+u)),!((l+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(t)}}function sz(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var cz=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ru(e){if(!(t=cz.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]})}ru.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 fz(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Cs;function dz(e,t){var n=ks(e,t);if(!n)return Cs=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(Cs=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ks(e,Math.max(0,t+o-1))[0]}function cb(e,t){var n=ks(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const fb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:uz,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)=>cb(e*100,t),r:cb,s:dz,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function db(e){return e}var pb=Array.prototype.map,hb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pz(e){var t=e.grouping===void 0||e.thousands===void 0?db:lz(pb.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?db:sz(pb.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(f,d){f=ru(f);var p=f.fill,g=f.align,v=f.sign,m=f.symbol,h=f.zero,y=f.width,b=f.comma,S=f.precision,w=f.trim,x=f.type;x==="n"?(b=!0,x="g"):fb[x]||(S===void 0&&(S=12),w=!0,x="g"),(h||p==="0"&&g==="=")&&(h=!0,p="0",g="=");var O=(d&&d.prefix!==void 0?d.prefix:"")+(m==="$"?n:m==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),_=(m==="$"?r:/[%p]/.test(x)?a:"")+(d&&d.suffix!==void 0?d.suffix:""),A=fb[x],T=/[defgprs%]/.test(x);S=S===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function C(E){var R=O,j=_,M,L,F;if(x==="c")j=A(E)+j,E="";else{E=+E;var k=E<0||1/E<0;if(E=isNaN(E)?l:A(Math.abs(E),S),w&&(E=fz(E)),k&&+E==0&&v!=="+"&&(k=!1),R=(k?v==="("?v:u:v==="-"||v==="("?"":v)+R,j=(x==="s"&&!isNaN(E)&&Cs!==void 0?hb[8+Cs/3]:"")+j+(k&&v==="("?")":""),T){for(M=-1,L=E.length;++MF||F>57){j=(F===46?i+E.slice(M+1):E.slice(M))+j,E=E.slice(0,M);break}}}b&&!h&&(E=t(E,1/0));var I=R.length+E.length+j.length,D=I>1)+R+E+j+D.slice(I);break;default:E=D+R+E+j;break}return o(E)}return C.toString=function(){return f+""},C}function c(f,d){var p=Math.max(-8,Math.min(8,Math.floor(uo(d)/3)))*3,g=Math.pow(10,-p),v=s((f=ru(f),f.type="f",f),{suffix:hb[8+p/3]});return function(m){return v(g*m)}}return{format:s,formatPrefix:c}}var vl,Lv,m_;hz({thousands:",",grouping:[3],currency:["$",""]});function hz(e){return vl=pz(e),Lv=vl.format,m_=vl.formatPrefix,vl}function yz(e){return Math.max(0,-uo(Math.abs(e)))}function vz(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(uo(t)/3)))*3-uo(Math.abs(e)))}function mz(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,uo(t)-uo(e))+1}function g_(e,t,n,r){var i=lh(e,t,n),o;switch(r=ru(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=vz(i,a))&&(r.precision=o),m_(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=mz(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=yz(i))&&(r.precision=o-(r.type==="%")*2);break}}return Lv(r)}function Ar(e){var t=e.domain;return e.ticks=function(n){var r=t();return ah(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return g_(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],u=r[o],l,s,c=10;for(u0;){if(s=uh(a,u,n),s===l)return r[i]=a,r[o]=u,t(r);if(s>0)a=Math.floor(a/s)*s,u=Math.ceil(u/s)*s;else if(s<0)a=Math.ceil(a*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function js(){var e=Rv();return e.copy=function(){return Du(e,js())},en.apply(e,arguments),Ar(e)}function b_(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,$s),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return b_(e).unknown(t)},e=arguments.length?Array.from(e,$s):[0,1],Ar(n)}function w_(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return oMath.pow(e,t)}function Sz(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 mb(e){return(t,n)=>-e(-t,n)}function Bv(e){const t=e(yb,vb),n=t.domain;let r=10,i,o;function a(){return i=Sz(r),o=xz(r),n()[0]<0?(i=mb(i),o=mb(o),e(gz,bz)):e(yb,vb),t}return t.base=function(u){return arguments.length?(r=+u,a()):r},t.domain=function(u){return arguments.length?(n(u),a()):n()},t.ticks=u=>{const l=n();let s=l[0],c=l[l.length-1];const f=c0){for(;d<=p;++d)for(g=1;gc)break;h.push(v)}}else for(;d<=p;++d)for(g=r-1;g>=1;--g)if(v=d>0?g/o(-d):g*o(d),!(vc)break;h.push(v)}h.length*2{if(u==null&&(u=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=ru(l)).precision==null&&(l.trim=!0),l=Lv(l)),u===1/0)return l;const s=Math.max(1,r*u/t.ticks().length);return c=>{let f=c/o(Math.round(i(c)));return f*rn(w_(n(),{floor:u=>o(Math.floor(i(u))),ceil:u=>o(Math.ceil(i(u)))})),t}function x_(){const e=Bv(Zc()).domain([1,10]);return e.copy=()=>Du(e,x_()).base(e.base()),en.apply(e,arguments),e}function gb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Fv(e){var t=1,n=e(gb(t),bb(t));return n.constant=function(r){return arguments.length?e(gb(t=+r),bb(t)):t},Ar(n)}function S_(){var e=Fv(Zc());return e.copy=function(){return Du(e,S_()).constant(e.constant())},en.apply(e,arguments)}function wb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Oz(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function _z(e){return e<0?-e*e:e*e}function zv(e){var t=e(yt,yt),n=1;function r(){return n===1?e(yt,yt):n===.5?e(Oz,_z):e(wb(n),wb(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Ar(t)}function Uv(){var e=zv(Zc());return e.copy=function(){return Du(e,Uv()).exponent(e.exponent())},en.apply(e,arguments),e}function Az(){return Uv.apply(null,arguments).exponent(.5)}function xb(e){return Math.sign(e)*e*e}function Pz(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function O_(){var e=Rv(),t=[0,1],n=!1,r;function i(o){var a=Pz(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(xb(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,$s)).map(xb)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return O_(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},en.apply(i,arguments),Ar(i)}function __(){var e=[],t=[],n=[],r;function i(){var a=0,u=Math.max(1,t.length);for(n=new Array(u-1);++a0?n[u-1]:e[0],u=n?[r[n-1],t]:[r[s-1],r[s]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return A_().domain([e,t]).range(i).unknown(o)},en.apply(Ar(a),arguments)}function P_(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Iu(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return P_().domain(e).range(t).unknown(n)},en.apply(i,arguments)}const xd=new Date,Sd=new Date;function Xe(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),u=i.ceil(o);return o-a(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,u)=>{const l=[];if(o=i.ceil(o),u=u==null?1:Math.floor(u),!(o0))return l;let s;do l.push(s=new Date(+o)),t(o,u),e(o);while(sXe(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,u)=>{if(a>=a)if(u<0)for(;++u<=0;)for(;t(a,-1),!o(a););else for(;--u>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(xd.setTime(+o),Sd.setTime(+a),e(xd),e(Sd),Math.floor(n(xd,Sd))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Ms=Xe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ms.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xe(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ms);Ms.range;const Cn=1e3,qt=Cn*60,jn=qt*60,Un=jn*24,Wv=Un*7,Sb=Un*30,Od=Un*365,Hr=Xe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getUTCSeconds());Hr.range;const Hv=Xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Cn)},(e,t)=>{e.setTime(+e+t*qt)},(e,t)=>(t-e)/qt,e=>e.getMinutes());Hv.range;const Kv=Xe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*qt)},(e,t)=>(t-e)/qt,e=>e.getUTCMinutes());Kv.range;const Vv=Xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Cn-e.getMinutes()*qt)},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getHours());Vv.range;const qv=Xe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getUTCHours());qv.range;const Lu=Xe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qt)/Un,e=>e.getDate()-1);Lu.range;const Jc=Xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Un,e=>e.getUTCDate()-1);Jc.range;const E_=Xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Un,e=>Math.floor(e/Un));E_.range;function hi(e){return Xe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*qt)/Wv)}const ef=hi(0),Ns=hi(1),Ez=hi(2),Tz=hi(3),lo=hi(4),$z=hi(5),kz=hi(6);ef.range;Ns.range;Ez.range;Tz.range;lo.range;$z.range;kz.range;function yi(e){return Xe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Wv)}const tf=yi(0),Is=yi(1),Cz=yi(2),jz=yi(3),so=yi(4),Mz=yi(5),Nz=yi(6);tf.range;Is.range;Cz.range;jz.range;so.range;Mz.range;Nz.range;const Gv=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());Gv.range;const Xv=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());Xv.range;const Wn=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());Wn.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,n)=>{t.setFullYear(t.getFullYear()+n*e)});Wn.range;const Hn=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());Hn.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,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Hn.range;function T_(e,t,n,r,i,o){const a=[[Hr,1,Cn],[Hr,5,5*Cn],[Hr,15,15*Cn],[Hr,30,30*Cn],[o,1,qt],[o,5,5*qt],[o,15,15*qt],[o,30,30*qt],[i,1,jn],[i,3,3*jn],[i,6,6*jn],[i,12,12*jn],[r,1,Un],[r,2,2*Un],[n,1,Wv],[t,1,Sb],[t,3,3*Sb],[e,1,Od]];function u(s,c,f){const d=cm).right(a,d);if(p===a.length)return e.every(lh(s/Od,c/Od,f));if(p===0)return Ms.every(Math.max(lh(s,c,f),1));const[g,v]=a[d/a[p-1][2]53)return null;"w"in z||(z.w=1),"Z"in z?(oe=Ad(ta(z.y,0,1)),Ue=oe.getUTCDay(),oe=Ue>4||Ue===0?Is.ceil(oe):Is(oe),oe=Jc.offset(oe,(z.V-1)*7),z.y=oe.getUTCFullYear(),z.m=oe.getUTCMonth(),z.d=oe.getUTCDate()+(z.w+6)%7):(oe=_d(ta(z.y,0,1)),Ue=oe.getDay(),oe=Ue>4||Ue===0?Ns.ceil(oe):Ns(oe),oe=Lu.offset(oe,(z.V-1)*7),z.y=oe.getFullYear(),z.m=oe.getMonth(),z.d=oe.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),Ue="Z"in z?Ad(ta(z.y,0,1)).getUTCDay():_d(ta(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(Ue+5)%7:z.w+z.U*7-(Ue+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,Ad(z)):_d(z)}}function _(V,ee,te,z){for(var Te=0,oe=ee.length,Ue=te.length,We,wt;Te=Ue)return-1;if(We=ee.charCodeAt(Te++),We===37){if(We=ee.charAt(Te++),wt=w[We in Ob?ee.charAt(Te++):We],!wt||(z=wt(V,te,z))<0)return-1}else if(We!=te.charCodeAt(z++))return-1}return z}function A(V,ee,te){var z=s.exec(ee.slice(te));return z?(V.p=c.get(z[0].toLowerCase()),te+z[0].length):-1}function T(V,ee,te){var z=p.exec(ee.slice(te));return z?(V.w=g.get(z[0].toLowerCase()),te+z[0].length):-1}function C(V,ee,te){var z=f.exec(ee.slice(te));return z?(V.w=d.get(z[0].toLowerCase()),te+z[0].length):-1}function E(V,ee,te){var z=h.exec(ee.slice(te));return z?(V.m=y.get(z[0].toLowerCase()),te+z[0].length):-1}function R(V,ee,te){var z=v.exec(ee.slice(te));return z?(V.m=m.get(z[0].toLowerCase()),te+z[0].length):-1}function j(V,ee,te){return _(V,t,ee,te)}function M(V,ee,te){return _(V,n,ee,te)}function L(V,ee,te){return _(V,r,ee,te)}function F(V){return a[V.getDay()]}function k(V){return o[V.getDay()]}function I(V){return l[V.getMonth()]}function D(V){return u[V.getMonth()]}function H(V){return i[+(V.getHours()>=12)]}function W(V){return 1+~~(V.getMonth()/3)}function q(V){return a[V.getUTCDay()]}function re(V){return o[V.getUTCDay()]}function se(V){return l[V.getUTCMonth()]}function Oe(V){return u[V.getUTCMonth()]}function Ne(V){return i[+(V.getUTCHours()>=12)]}function ie(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var ee=x(V+="",b);return ee.toString=function(){return V},ee},parse:function(V){var ee=O(V+="",!1);return ee.toString=function(){return V},ee},utcFormat:function(V){var ee=x(V+="",S);return ee.toString=function(){return V},ee},utcParse:function(V){var ee=O(V+="",!0);return ee.toString=function(){return V},ee}}}var Ob={"-":"",_:" ",0:"0"},et=/^\s*\d+/,Fz=/^%/,zz=/[\\^$*+?|[\]().{}]/g;function fe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o[t.toLowerCase(),n]))}function Wz(e,t,n){var r=et.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Hz(e,t,n){var r=et.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Kz(e,t,n){var r=et.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Vz(e,t,n){var r=et.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function qz(e,t,n){var r=et.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function _b(e,t,n){var r=et.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ab(e,t,n){var r=et.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Gz(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Xz(e,t,n){var r=et.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Yz(e,t,n){var r=et.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Pb(e,t,n){var r=et.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Qz(e,t,n){var r=et.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Eb(e,t,n){var r=et.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Zz(e,t,n){var r=et.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Jz(e,t,n){var r=et.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function e5(e,t,n){var r=et.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function t5(e,t,n){var r=et.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function n5(e,t,n){var r=Fz.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function r5(e,t,n){var r=et.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function i5(e,t,n){var r=et.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Tb(e,t){return fe(e.getDate(),t,2)}function o5(e,t){return fe(e.getHours(),t,2)}function a5(e,t){return fe(e.getHours()%12||12,t,2)}function u5(e,t){return fe(1+Lu.count(Wn(e),e),t,3)}function $_(e,t){return fe(e.getMilliseconds(),t,3)}function l5(e,t){return $_(e,t)+"000"}function s5(e,t){return fe(e.getMonth()+1,t,2)}function c5(e,t){return fe(e.getMinutes(),t,2)}function f5(e,t){return fe(e.getSeconds(),t,2)}function d5(e){var t=e.getDay();return t===0?7:t}function p5(e,t){return fe(ef.count(Wn(e)-1,e),t,2)}function k_(e){var t=e.getDay();return t>=4||t===0?lo(e):lo.ceil(e)}function h5(e,t){return e=k_(e),fe(lo.count(Wn(e),e)+(Wn(e).getDay()===4),t,2)}function y5(e){return e.getDay()}function v5(e,t){return fe(Ns.count(Wn(e)-1,e),t,2)}function m5(e,t){return fe(e.getFullYear()%100,t,2)}function g5(e,t){return e=k_(e),fe(e.getFullYear()%100,t,2)}function b5(e,t){return fe(e.getFullYear()%1e4,t,4)}function w5(e,t){var n=e.getDay();return e=n>=4||n===0?lo(e):lo.ceil(e),fe(e.getFullYear()%1e4,t,4)}function x5(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fe(t/60|0,"0",2)+fe(t%60,"0",2)}function $b(e,t){return fe(e.getUTCDate(),t,2)}function S5(e,t){return fe(e.getUTCHours(),t,2)}function O5(e,t){return fe(e.getUTCHours()%12||12,t,2)}function _5(e,t){return fe(1+Jc.count(Hn(e),e),t,3)}function C_(e,t){return fe(e.getUTCMilliseconds(),t,3)}function A5(e,t){return C_(e,t)+"000"}function P5(e,t){return fe(e.getUTCMonth()+1,t,2)}function E5(e,t){return fe(e.getUTCMinutes(),t,2)}function T5(e,t){return fe(e.getUTCSeconds(),t,2)}function $5(e){var t=e.getUTCDay();return t===0?7:t}function k5(e,t){return fe(tf.count(Hn(e)-1,e),t,2)}function j_(e){var t=e.getUTCDay();return t>=4||t===0?so(e):so.ceil(e)}function C5(e,t){return e=j_(e),fe(so.count(Hn(e),e)+(Hn(e).getUTCDay()===4),t,2)}function j5(e){return e.getUTCDay()}function M5(e,t){return fe(Is.count(Hn(e)-1,e),t,2)}function N5(e,t){return fe(e.getUTCFullYear()%100,t,2)}function I5(e,t){return e=j_(e),fe(e.getUTCFullYear()%100,t,2)}function R5(e,t){return fe(e.getUTCFullYear()%1e4,t,4)}function D5(e,t){var n=e.getUTCDay();return e=n>=4||n===0?so(e):so.ceil(e),fe(e.getUTCFullYear()%1e4,t,4)}function L5(){return"+0000"}function kb(){return"%"}function Cb(e){return+e}function jb(e){return Math.floor(+e/1e3)}var wi,M_,N_;B5({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 B5(e){return wi=Bz(e),M_=wi.format,wi.parse,N_=wi.utcFormat,wi.utcParse,wi}function F5(e){return new Date(e)}function z5(e){return e instanceof Date?+e:+new Date(+e)}function Yv(e,t,n,r,i,o,a,u,l,s){var c=Rv(),f=c.invert,d=c.domain,p=s(".%L"),g=s(":%S"),v=s("%I:%M"),m=s("%I %p"),h=s("%a %d"),y=s("%b %d"),b=s("%B"),S=s("%Y");function w(x){return(l(x)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>k8(e,o/r))},n.copy=function(){return L_(t).domain(e)},Xn.apply(n,arguments)}function rf(){var e=0,t=.5,n=1,r=1,i,o,a,u,l,s=yt,c,f=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+c(v))-o)*(r*vt}var U_=G5,X5=of,Y5=U_,Q5=Lo;function Z5(e){return e&&e.length?X5(e,Q5,Y5):void 0}var J5=Z5;const af=me(J5);function eU(e,t){return ee.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=re.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};X.decimalPlaces=X.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Pe;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};X.dividedBy=X.div=function(e){return Rn(this,new this.constructor(e))};X.dividedToIntegerBy=X.idiv=function(e){var t=this,n=t.constructor;return ge(Rn(t,new n(e),0,1),n.precision)};X.equals=X.eq=function(e){return!this.cmp(e)};X.exponent=function(){return ze(this)};X.greaterThan=X.gt=function(e){return this.cmp(e)>0};X.greaterThanOrEqualTo=X.gte=function(e){return this.cmp(e)>=0};X.isInteger=X.isint=function(){return this.e>this.d.length-2};X.isNegative=X.isneg=function(){return this.s<0};X.isPositive=X.ispos=function(){return this.s>0};X.isZero=function(){return this.s===0};X.lessThan=X.lt=function(e){return this.cmp(e)<0};X.lessThanOrEqualTo=X.lte=function(e){return this.cmp(e)<1};X.logarithm=X.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(jt))throw Error(Zt+"NaN");if(n.s<1)throw Error(Zt+(n.s?"NaN":"-Infinity"));return n.eq(jt)?new r(0):(ke=!1,t=Rn(iu(n,o),iu(e,o),o),ke=!0,ge(t,i))};X.minus=X.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?q_(t,e):K_(t,(e.s=-e.s,e))};X.modulo=X.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Zt+"NaN");return n.s?(ke=!1,t=Rn(n,e,0,1).times(e),ke=!0,n.minus(t)):ge(new r(n),i)};X.naturalExponential=X.exp=function(){return V_(this)};X.naturalLogarithm=X.ln=function(){return iu(this)};X.negated=X.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};X.plus=X.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?K_(t,e):q_(t,(e.s=-e.s,e))};X.precision=X.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qr+e);if(t=ze(i)+1,r=i.d.length-1,n=r*Pe+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};X.squareRoot=X.sqrt=function(){var e,t,n,r,i,o,a,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(Zt+"NaN")}for(e=ze(u),ke=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=gn(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Uo((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),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(Rn(u,o,a+2)).times(.5),gn(o.d).slice(0,a)===(t=gn(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(ge(o,n+1,0),o.times(o).eq(u)){r=o;break}}else if(t!="9999")break;a+=4}return ke=!0,ge(r,n)};X.times=X.mul=function(e){var t,n,r,i,o,a,u,l,s,c=this,f=c.constructor,d=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,n=c.e+e.e,l=d.length,s=p.length,l=0;){for(t=0,i=l+r;i>r;)u=o[i]+p[r]*d[i-r-1]+t,o[i--]=u%Ye|0,t=u/Ye|0;o[i]=(o[i]+t)%Ye|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,ke?ge(e,f.precision):e};X.toDecimalPlaces=X.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(On(e,0,zo),t===void 0?t=r.rounding:On(t,0,8),ge(n,e+ze(n)+1,t))};X.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ui(r,!0):(On(e,0,zo),t===void 0?t=i.rounding:On(t,0,8),r=ge(new i(r),e+1,t),n=ui(r,!0,e+1)),n};X.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?ui(i):(On(e,0,zo),t===void 0?t=o.rounding:On(t,0,8),r=ge(new o(i),e+ze(i)+1,t),n=ui(r.abs(),!1,e+ze(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};X.toInteger=X.toint=function(){var e=this,t=e.constructor;return ge(new t(e),ze(e)+1,t.rounding)};X.toNumber=function(){return+this};X.toPower=X.pow=function(e){var t,n,r,i,o,a,u=this,l=u.constructor,s=12,c=+(e=new l(e));if(!e.s)return new l(jt);if(u=new l(u),!u.s){if(e.s<1)throw Error(Zt+"Infinity");return u}if(u.eq(jt))return u;if(r=l.precision,e.eq(jt))return ge(u,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=u.s,a){if((n=c<0?-c:c)<=H_){for(i=new l(jt),t=Math.ceil(r/Pe+4),ke=!1;n%2&&(i=i.times(u),Ib(i.d,t)),n=Uo(n/2),n!==0;)u=u.times(u),Ib(u.d,t);return ke=!0,e.s<0?new l(jt).div(i):ge(i,r)}}else if(o<0)throw Error(Zt+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,ke=!1,i=e.times(iu(u,r+s)),ke=!0,i=V_(i),i.s=o,i};X.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=ze(i),r=ui(i,n<=o.toExpNeg||n>=o.toExpPos)):(On(e,1,zo),t===void 0?t=o.rounding:On(t,0,8),i=ge(new o(i),e,t),n=ze(i),r=ui(i,e<=n||n<=o.toExpNeg,e)),r};X.toSignificantDigits=X.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(On(e,1,zo),t===void 0?t=r.rounding:On(t,0,8)),ge(new r(n),e,t)};X.toString=X.valueOf=X.val=X.toJSON=X[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ze(e),n=e.constructor;return ui(e,t<=n.toExpNeg||t>=n.toExpPos)};function K_(e,t){var n,r,i,o,a,u,l,s,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),ke?ge(t,f):t;if(l=e.d,s=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,u=s.length):(r=s,i=a,u=l.length),a=Math.ceil(f/Pe),u=a>u?a+1:u+1,o>u&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(u=l.length,o=s.length,u-o<0&&(o=u,r=s,s=l,l=r),n=0;o;)n=(l[--o]=l[o]+s[o]+n)/Ye|0,l[o]%=Ye;for(n&&(l.unshift(n),++i),u=l.length;l[--u]==0;)l.pop();return t.d=l,t.e=i,ke?ge(t,f):t}function On(e,t,n){if(e!==~~e||en)throw Error(Qr+e)}function gn(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;ta?1:-1;else for(u=l=0;ui[u]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]1;)r.shift()}return function(r,i,o,a){var u,l,s,c,f,d,p,g,v,m,h,y,b,S,w,x,O,_,A=r.constructor,T=r.s==i.s?1:-1,C=r.d,E=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(Zt+"Division by zero");for(l=r.e-i.e,O=E.length,w=C.length,p=new A(T),g=p.d=[],s=0;E[s]==(C[s]||0);)++s;if(E[s]>(C[s]||0)&&--l,o==null?y=o=A.precision:a?y=o+(ze(r)-ze(i))+1:y=o,y<0)return new A(0);if(y=y/Pe+2|0,s=0,O==1)for(c=0,E=E[0],y++;(s1&&(E=e(E,c),C=e(C,c),O=E.length,w=C.length),S=O,v=C.slice(0,O),m=v.length;m=Ye/2&&++x;do c=0,u=t(E,v,O,m),u<0?(h=v[0],O!=m&&(h=h*Ye+(v[1]||0)),c=h/x|0,c>1?(c>=Ye&&(c=Ye-1),f=e(E,c),d=f.length,m=v.length,u=t(f,v,d,m),u==1&&(c--,n(f,O16)throw Error(Jv+ze(e));if(!e.s)return new c(jt);for(ke=!1,u=f,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),s+=5;for(r=Math.log(Dr(2,s))/Math.LN10*2+5|0,u+=r,n=i=o=new c(jt),c.precision=u;;){if(i=ge(i.times(e),u),n=n.times(++l),a=o.plus(Rn(i,n,u)),gn(a.d).slice(0,u)===gn(o.d).slice(0,u)){for(;s--;)o=ge(o.times(o),u);return c.precision=f,t==null?(ke=!0,ge(o,f)):o}o=a}}function ze(e){for(var t=e.e*Pe,n=e.d[0];n>=10;n/=10)t++;return t}function Pd(e,t,n){if(t>e.LN10.sd())throw ke=!0,n&&(e.precision=n),Error(Zt+"LN10 precision limit exceeded");return ge(new e(e.LN10),t)}function nr(e){for(var t="";e--;)t+="0";return t}function iu(e,t){var n,r,i,o,a,u,l,s,c,f=1,d=10,p=e,g=p.d,v=p.constructor,m=v.precision;if(p.s<1)throw Error(Zt+(p.s?"NaN":"-Infinity"));if(p.eq(jt))return new v(0);if(t==null?(ke=!1,s=m):s=t,p.eq(10))return t==null&&(ke=!0),Pd(v,s);if(s+=d,v.precision=s,n=gn(g),r=n.charAt(0),o=ze(p),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=gn(p.d),r=n.charAt(0),f++;o=ze(p),r>1?(p=new v("0."+n),o++):p=new v(r+"."+n.slice(1))}else return l=Pd(v,s+2,m).times(o+""),p=iu(new v(r+"."+n.slice(1)),s-d).plus(l),v.precision=m,t==null?(ke=!0,ge(p,m)):p;for(u=a=p=Rn(p.minus(jt),p.plus(jt),s),c=ge(p.times(p),s),i=3;;){if(a=ge(a.times(c),s),l=u.plus(Rn(a,new v(i),s)),gn(l.d).slice(0,s)===gn(u.d).slice(0,s))return u=u.times(2),o!==0&&(u=u.plus(Pd(v,s+2,m).times(o+""))),u=Rn(u,new v(f),s),v.precision=m,t==null?(ke=!0,ge(u,m)):u;u=l,i+=2}}function Nb(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Uo(n/Pe),e.d=[],r=(n+1)%Pe,n<0&&(r+=Pe),rRs||e.e<-Rs))throw Error(Jv+n)}else e.s=0,e.e=0,e.d=[0];return e}function ge(e,t,n){var r,i,o,a,u,l,s,c,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Pe,i=t,s=f[c=0];else{if(c=Math.ceil((r+1)/Pe),o=f.length,c>=o)return e;for(s=o=f[c],a=1;o>=10;o/=10)a++;r%=Pe,i=r-Pe+a}if(n!==void 0&&(o=Dr(10,a-i-1),u=s/o%10|0,l=t<0||f[c+1]!==void 0||s%o,l=n<4?(u||l)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||l||n==6&&(r>0?i>0?s/Dr(10,a-i):0:f[c-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return l?(o=ze(e),f.length=1,t=t-o-1,f[0]=Dr(10,(Pe-t%Pe)%Pe),e.e=Uo(-t/Pe)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=c,o=1,c--):(f.length=c+1,o=Dr(10,Pe-r),f[c]=i>0?(s/Dr(10,a-i)%Dr(10,i)|0)*o:0),l)for(;;)if(c==0){(f[0]+=o)==Ye&&(f[0]=1,++e.e);break}else{if(f[c]+=o,f[c]!=Ye)break;f[c--]=0,o=1}for(r=f.length;f[--r]===0;)f.pop();if(ke&&(e.e>Rs||e.e<-Rs))throw Error(Jv+ze(e));return e}function q_(e,t){var n,r,i,o,a,u,l,s,c,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ke?ge(t,p):t;if(l=e.d,f=t.d,r=t.e,s=e.e,l=l.slice(),a=s-r,a){for(c=a<0,c?(n=l,a=-a,u=f.length):(n=f,r=s,u=l.length),i=Math.max(Math.ceil(p/Pe),u)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,u=f.length,c=i0;--i)l[u++]=0;for(i=f.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+nr(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+nr(-i-1)+o,n&&(r=n-a)>0&&(o+=nr(r))):i>=a?(o+=nr(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+nr(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=nr(r))),e.s<0?"-"+o:o}function Ib(e,t){if(e.length>t)return e.length=t,!0}function G_(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Qr+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return Nb(a,o.toString())}else if(typeof o!="string")throw Error(Qr+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,xU.test(o))Nb(a,o);else throw Error(Qr+o)}if(i.prototype=X,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=G_,i.config=i.set=SU,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Qr+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Qr+n+": "+r);return this}var em=G_(wU);jt=new em(1);const ve=em;function OU(e){return EU(e)||PU(e)||AU(e)||_U()}function _U(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AU(e,t){if(e){if(typeof e=="string")return ph(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ph(e,t)}}function PU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function EU(e){if(Array.isArray(e))return ph(e)}function ph(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,i):e(t-a,Rb(function(){for(var u=arguments.length,l=new Array(u),s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),u;!(r=(u=a.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function UU(e){if(Array.isArray(e))return e}function J_(e){var t=ou(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function eA(e,t,n){if(e.lte(0))return new ve(0);var r=cf.getDigitCount(e.toNumber()),i=new ve(10).pow(r),o=e.div(i),a=r!==1?.05:.1,u=new ve(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=u.mul(i);return t?l:new ve(Math.ceil(l))}function WU(e,t,n){var r=1,i=new ve(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new ve(10).pow(cf.getDigitCount(e)-1),i=new ve(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new ve(Math.floor(e)))}else e===0?i=new ve(Math.floor((t-1)/2)):n||(i=new ve(Math.floor(e)));var a=Math.floor((t-1)/2),u=CU(kU(function(l){return i.add(new ve(l-a).mul(r)).toNumber()}),hh);return u(0,t)}function tA(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new ve(0),tickMin:new ve(0),tickMax:new ve(0)};var o=eA(new ve(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new ve(0):(a=new ve(e).add(t).div(2),a=a.sub(new ve(a).mod(o)));var u=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new ve(t).sub(a).div(o).toNumber()),s=u+l+1;return s>n?tA(e,t,n,r,i+1):(s0?l+(n-s):l,u=t>0?u:u+(n-s)),{step:o,tickMin:a.sub(new ve(u).mul(o)),tickMax:a.add(new ve(l).mul(o))})}function HU(e){var t=ou(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),u=J_([n,r]),l=ou(u,2),s=l[0],c=l[1];if(s===-1/0||c===1/0){var f=c===1/0?[s].concat(vh(hh(0,i-1).map(function(){return 1/0}))):[].concat(vh(hh(0,i-1).map(function(){return-1/0})),[c]);return n>r?yh(f):f}if(s===c)return WU(s,i,o);var d=tA(s,c,a,o),p=d.step,g=d.tickMin,v=d.tickMax,m=cf.rangeStep(g,v.add(new ve(.1).mul(p)),p);return n>r?yh(m):m}function KU(e,t){var n=ou(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=J_([r,i]),u=ou(a,2),l=u[0],s=u[1];if(l===-1/0||s===1/0)return[r,i];if(l===s)return[l];var c=Math.max(t,2),f=eA(new ve(s).sub(l).div(c-1),o,0),d=[].concat(vh(cf.rangeStep(new ve(l),new ve(s).sub(new ve(.99).mul(f)),f)),[s]);return r>i?yh(d):d}var VU=Q_(HU),qU=Q_(KU),GU="Invariant failed";function li(e,t){throw new Error(GU)}var XU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function n6(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function r6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i6(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,u=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(u<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,s=0;s0?i[s-1].coordinate:i[u-1].coordinate,f=i[s].coordinate,d=s>=u-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(pt(f-c)!==pt(d-f)){var g=[];if(pt(d-f)===pt(l[1]-l[0])){p=d;var v=f+l[1]-l[0];g[0]=Math.min(v,(v+c)/2),g[1]=Math.max(v,(v+c)/2)}else{p=c;var m=d+l[1]-l[0];g[0]=Math.min(f,(m+f)/2),g[1]=Math.max(f,(m+f)/2)}var h=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>h[0]&&t<=h[1]||t>=g[0]&&t<=g[1]){a=i[s].index;break}}else{var y=Math.min(c,d),b=Math.max(c,d);if(t>(y+f)/2&&t<=(b+f)/2){a=i[s].index;break}}}else for(var S=0;S0&&S(r[S].coordinate+r[S-1].coordinate)/2&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S===u-1&&t>(r[S].coordinate+r[S-1].coordinate)/2){a=r[S].index;break}return a},tm=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Re(Re({},t.type.defaultProps),t.props):t.props,a=o.stroke,u=o.fill,l;switch(i){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:u;break;default:l=u;break}return l},x6=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},u=Object.keys(o),l=0,s=u.length;l=0});if(h&&h.length){var y=h[0].type.defaultProps,b=y!==void 0?Re(Re({},y),h[0].props):h[0].props,S=b.barSize,w=b[m];a[w]||(a[w]=[]);var x=ue(S)?n:S;a[w].push({item:h[0],stackList:h.slice(1),barSize:ue(x)?void 0:ht(x,r,0)})}}return a},S6=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,u=t.maxBarSize,l=a.length;if(l<1)return null;var s=ht(n,i,0,!0),c,f=[];if(a[0].barSize===+a[0].barSize){var d=!1,p=i/l,g=a.reduce(function(S,w){return S+w.barSize||0},0);g+=(l-1)*s,g>=i&&(g-=(l-1)*s,s=0),g>=i&&p>0&&(d=!0,p*=.9,g=l*p);var v=(i-g)/2>>0,m={offset:v-s,size:0};c=a.reduce(function(S,w){var x={item:w.item,position:{offset:m.offset+m.size+s,size:d?p:w.barSize}},O=[].concat(Bb(S),[x]);return m=O[O.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(_){O.push({item:_,position:m})}),O},f)}else{var h=ht(r,i,0,!0);i-2*h-(l-1)*s<=0&&(s=0);var y=(i-2*h-(l-1)*s)/l;y>1&&(y>>=0);var b=u===+u?Math.min(y,u):y;c=a.reduce(function(S,w,x){var O=[].concat(Bb(S),[{item:w.item,position:{offset:h+(y+s)*x+(y-b)/2,size:b}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(_){O.push({item:_,position:O[O.length-1].position})}),O},f)}return c},O6=function(t,n,r,i){var o=r.children,a=r.width,u=r.margin,l=a-(u.left||0)-(u.right||0),s=oA({children:o,legendWidth:l});if(s){var c=i||{},f=c.width,d=c.height,p=s.align,g=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&g==="middle")&&p!=="center"&&K(t[p]))return Re(Re({},t),{},Gi({},p,t[p]+(f||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&g!=="middle"&&K(t[g]))return Re(Re({},t),{},Gi({},g,t[g]+(d||0)))}return t},_6=function(t,n,r){return ue(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},aA=function(t,n,r,i,o){var a=n.props.children,u=Xt(a,ff).filter(function(s){return _6(i,o,s.props.direction)});if(u&&u.length){var l=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,c){var f=st(c,r);if(ue(f))return s;var d=Array.isArray(f)?[uf(f),af(f)]:[f,f],p=l.reduce(function(g,v){var m=st(c,v,0),h=d[0]-Math.abs(Array.isArray(m)?m[0]:m),y=d[1]+Math.abs(Array.isArray(m)?m[1]:m);return[Math.min(h,g[0]),Math.max(y,g[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},A6=function(t,n,r,i,o){var a=n.map(function(u){return aA(t,u,r,o,i)}).filter(function(u){return!ue(u)});return a&&a.length?a.reduce(function(u,l){return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]):null},uA=function(t,n,r,i,o){var a=n.map(function(l){var s=l.props.dataKey;return r==="number"&&s&&aA(t,l,s,i)||Aa(t,s,r,o)});if(r==="number")return a.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]);var u={};return a.reduce(function(l,s){for(var c=0,f=s.length;c=2?pt(u[0]-u[1])*2*s:s,n&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=o?o.indexOf(f):f;return{coordinate:i(d)+s,value:f,offset:s}});return c.filter(function(f){return!Mu(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+s,value:f,index:d,offset:s}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+s,value:f,offset:s}}):i.domain().map(function(f,d){return{coordinate:i(f)+s,value:o?o[f]:f,index:d,offset:s}})},Ed=new WeakMap,ml=function(t,n){if(typeof n!="function")return t;Ed.has(t)||Ed.set(t,new WeakMap);var r=Ed.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},sA=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,u=t.axisType;if(i==="auto")return a==="radial"&&u==="radiusAxis"?{scale:Ja(),realScaleType:"band"}:a==="radial"&&u==="angleAxis"?{scale:js(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:_a(),realScaleType:"point"}:o==="category"?{scale:Ja(),realScaleType:"band"}:{scale:js(),realScaleType:"linear"};if(ii(i)){var l="scale".concat(Hc(i));return{scale:(Mb[l]||_a)(),realScaleType:Mb[l]?l:"point"}}return ne(i)?{scale:i}:{scale:_a(),realScaleType:"point"}},zb=1e-4,cA=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-zb,a=Math.max(i[0],i[1])+zb,u=t(n[0]),l=t(n[r-1]);(ua||la)&&t.domain([n[0],n[r-1]])}},P6=function(t,n){if(!t)return null;for(var r=0,i=t.length;ri)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]=0?(t[u][r][0]=o,t[u][r][1]=o+l,o=t[u][r][1]):(t[u][r][0]=a,t[u][r][1]=a+l,a=t[u][r][1])}},$6=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},k6={sign:T6,expand:GM,none:no,silhouette:XM,wiggle:YM,positive:$6},C6=function(t,n,r){var i=n.map(function(u){return u.props.dataKey}),o=k6[r],a=qM().keys(i).value(function(u,l){return+st(u,l,0)}).order(Hp).offset(o);return a(t)},j6=function(t,n,r,i,o,a){if(!t)return null;var u=a?n.reverse():n,l={},s=u.reduce(function(f,d){var p,g=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Re(Re({},d.type.defaultProps),d.props):d.props,v=g.stackId,m=g.hide;if(m)return f;var h=g[r],y=f[h]||{hasStack:!1,stackGroups:{}};if(Ge(v)){var b=y.stackGroups[v]||{numericAxisId:r,cateAxisId:i,items:[]};b.items.push(d),y.hasStack=!0,y.stackGroups[v]=b}else y.stackGroups[Nu("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return Re(Re({},f),{},Gi({},h,y))},l),c={};return Object.keys(s).reduce(function(f,d){var p=s[d];if(p.hasStack){var g={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,m){var h=p.stackGroups[m];return Re(Re({},v),{},Gi({},m,{numericAxisId:r,cateAxisId:i,items:h.items,stackedData:C6(t,h.items,o)}))},g)}return Re(Re({},f),{},Gi({},d,p))},c)},fA=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,u=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var s=t.domain();if(!s.length)return null;var c=VU(s,o,u);return t.domain([uf(c),af(c)]),{niceTicks:c}}if(o&&i==="number"){var f=t.domain(),d=qU(f,o,u);return{niceTicks:d}}return null},Ub=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,u=t.index;if(n.type==="category")return r[u]?r[u].coordinate+i:null;var l=st(a,n.dataKey,n.domain[u]);return ue(l)?null:n.scale(l)-o/2+i},M6=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},N6=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Re(Re({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Ge(o)){var a=n[o];if(a){var u=a.items.indexOf(t);return u>=0?a.stackedData[u]:null}}return null},I6=function(t){return t.reduce(function(n,r){return[uf(r.concat([n[0]]).filter(K)),af(r.concat([n[1]]).filter(K))]},[1/0,-1/0])},dA=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],u=a.stackedData,l=u.reduce(function(s,c){var f=I6(c.slice(n,r+1));return[Math.min(s[0],f[0]),Math.max(s[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})},Wb=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hb=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,wh=function(t,n,r){if(ne(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(K(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(Wb.test(t[0])){var o=+Wb.exec(t[0])[1];i[0]=n[0]-o}else ne(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(K(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(Hb.test(t[1])){var a=+Hb.exec(t[1])[1];i[1]=n[1]+a}else ne(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Bs=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=$v(n,function(f){return f.coordinate}),a=1/0,u=1,l=o.length;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},H6=function(t,n,r,i,o){var a=t.width,u=t.height,l=t.startAngle,s=t.endAngle,c=ht(t.cx,a,a/2),f=ht(t.cy,u,u/2),d=yA(a,u,r),p=ht(t.innerRadius,d,0),g=ht(t.outerRadius,d,d*.8),v=Object.keys(n);return v.reduce(function(m,h){var y=n[h],b=y.domain,S=y.reversed,w;if(ue(y.range))i==="angleAxis"?w=[l,s]:i==="radiusAxis"&&(w=[p,g]),S&&(w=[w[1],w[0]]);else{w=y.range;var x=w,O=L6(x,2);l=O[0],s=O[1]}var _=sA(y,o),A=_.realScaleType,T=_.scale;T.domain(b).range(w),cA(T);var C=fA(T,En(En({},y),{},{realScaleType:A})),E=En(En(En({},y),C),{},{range:w,radius:g,realScaleType:A,scale:T,cx:c,cy:f,innerRadius:p,outerRadius:g,startAngle:l,endAngle:s});return En(En({},m),{},hA({},h,E))},{})},K6=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},V6=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,u=K6({x:r,y:i},{x:o,y:a});if(u<=0)return{radius:u};var l=(r-o)/u,s=Math.acos(l);return i>a&&(s=2*Math.PI-s),{radius:u,angle:W6(s),angleInRadian:s}},q6=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},G6=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),u=Math.min(o,a);return t+u*360},Gb=function(t,n){var r=t.x,i=t.y,o=V6({x:r,y:i},n),a=o.radius,u=o.angle,l=n.innerRadius,s=n.outerRadius;if(as)return!1;if(a===0)return!0;var c=q6(n),f=c.startAngle,d=c.endAngle,p=u,g;if(f<=d){for(;p>d;)p-=360;for(;p=f&&p<=d}else{for(;p>f;)p-=360;for(;p=d&&p<=f}return g?En(En({},n),{},{radius:a,angle:G6(p,n)}):null},vA=function(t){return!B.isValidElement(t)&&!ne(t)&&typeof t!="boolean"?t.className:""};function su(e){"@babel/helpers - typeof";return su=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},su(e)}var X6=["offset"];function Y6(e){return eW(e)||J6(e)||Z6(e)||Q6()}function Q6(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z6(e,t){if(e){if(typeof e=="string")return xh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xh(e,t)}}function J6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eW(e){if(Array.isArray(e))return xh(e)}function xh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nW(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t=0?1:-1,b,S;i==="insideStart"?(b=p+y*a,S=v):i==="insideEnd"?(b=g-y*a,S=!v):i==="end"&&(b=g+y*a,S=v),S=h<=0?S:!S;var w=Se(s,c,m,b),x=Se(s,c,m,b+(S?1:-1)*359),O="M".concat(w.x,",").concat(w.y,` A`).concat(m,",").concat(m,",0,1,").concat(S?0:1,`, `).concat(x.x,",").concat(x.y),_=ue(t.id)?Nu("recharts-radial-line-"):t.id;return P.createElement("text",cu({},r,{dominantBaseline:"central",className:ae("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:_,d:O})),P.createElement("textPath",{xlinkHref:"#".concat(_)},n))},sW=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,u=o.cy,l=o.innerRadius,s=o.outerRadius,c=o.startAngle,f=o.endAngle,d=(c+f)/2;if(i==="outside"){var p=Se(a,u,s+r,d),g=p.x,v=p.y;return{x:g,y:v,textAnchor:g>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:u,textAnchor:"middle",verticalAnchor:"end"};var m=(l+s)/2,h=Se(a,u,m,d),y=h.x,b=h.y;return{x:y,y:b,textAnchor:"middle",verticalAnchor:"middle"}},cW=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,u=a.x,l=a.y,s=a.width,c=a.height,f=c>=0?1:-1,d=f*i,p=f>0?"end":"start",g=f>0?"start":"end",v=s>=0?1:-1,m=v*i,h=v>0?"end":"start",y=v>0?"start":"end";if(o==="top"){var b={x:u+s/2,y:l-f*i,textAnchor:"middle",verticalAnchor:p};return Ke(Ke({},b),r?{height:Math.max(l-r.y,0),width:s}:{})}if(o==="bottom"){var S={x:u+s/2,y:l+c+d,textAnchor:"middle",verticalAnchor:g};return Ke(Ke({},S),r?{height:Math.max(r.y+r.height-(l+c),0),width:s}:{})}if(o==="left"){var w={x:u-m,y:l+c/2,textAnchor:h,verticalAnchor:"middle"};return Ke(Ke({},w),r?{width:Math.max(w.x-r.x,0),height:c}:{})}if(o==="right"){var x={x:u+s+m,y:l+c/2,textAnchor:y,verticalAnchor:"middle"};return Ke(Ke({},x),r?{width:Math.max(r.x+r.width-x.x,0),height:c}:{})}var O=r?{width:s,height:c}:{};return o==="insideLeft"?Ke({x:u+m,y:l+c/2,textAnchor:y,verticalAnchor:"middle"},O):o==="insideRight"?Ke({x:u+s-m,y:l+c/2,textAnchor:h,verticalAnchor:"middle"},O):o==="insideTop"?Ke({x:u+s/2,y:l+d,textAnchor:"middle",verticalAnchor:g},O):o==="insideBottom"?Ke({x:u+s/2,y:l+c-d,textAnchor:"middle",verticalAnchor:p},O):o==="insideTopLeft"?Ke({x:u+m,y:l+d,textAnchor:y,verticalAnchor:g},O):o==="insideTopRight"?Ke({x:u+s-m,y:l+d,textAnchor:h,verticalAnchor:g},O):o==="insideBottomLeft"?Ke({x:u+m,y:l+c-d,textAnchor:y,verticalAnchor:p},O):o==="insideBottomRight"?Ke({x:u+s-m,y:l+c-d,textAnchor:h,verticalAnchor:p},O):jo(o)&&(K(o.x)||Ur(o.x))&&(K(o.y)||Ur(o.y))?Ke({x:u+ht(o.x,s),y:l+ht(o.y,c),textAnchor:"end",verticalAnchor:"end"},O):Ke({x:u+s/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)},fW=function(t){return"cx"in t&&K(t.cx)};function Ze(e){var t=e.offset,n=t===void 0?5:t,r=tW(e,X6),i=Ke({offset:n},r),o=i.viewBox,a=i.position,u=i.value,l=i.children,s=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!o||ue(u)&&ue(l)&&!B.isValidElement(s)&&!ne(s))return null;if(B.isValidElement(s))return B.cloneElement(s,i);var p;if(ne(s)){if(p=B.createElement(s,i),B.isValidElement(p))return p}else p=aW(i);var g=fW(o),v=J(i,!0);if(g&&(a==="insideStart"||a==="insideEnd"||a==="end"))return lW(i,p,v);var m=g?sW(i):cW(i);return P.createElement(ai,cu({className:ae("recharts-label",f)},v,m,{breakAll:d}),p)}Ze.displayName="Label";var mA=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,u=t.r,l=t.radius,s=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,p=t.top,g=t.left,v=t.width,m=t.height,h=t.clockWise,y=t.labelViewBox;if(y)return y;if(K(v)&&K(m)){if(K(f)&&K(d))return{x:f,y:d,width:v,height:m};if(K(p)&&K(g))return{x:p,y:g,width:v,height:m}}return K(f)&&K(d)?{x:f,y:d,width:0,height:0}:K(n)&&K(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:s||0,outerRadius:c||l||u||0,clockWise:h}:t.viewBox?t.viewBox:{}},dW=function(t,n){return t?t===!0?P.createElement(Ze,{key:"label-implicit",viewBox:n}):Ge(t)?P.createElement(Ze,{key:"label-implicit",viewBox:n,value:t}):B.isValidElement(t)?t.type===Ze?B.cloneElement(t,{key:"label-implicit",viewBox:n}):P.createElement(Ze,{key:"label-implicit",content:t,viewBox:n}):ne(t)?P.createElement(Ze,{key:"label-implicit",content:t,viewBox:n}):jo(t)?P.createElement(Ze,cu({viewBox:n},t,{key:"label-implicit"})):null:null},pW=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=mA(t),a=Xt(i,Ze).map(function(l,s){return B.cloneElement(l,{viewBox:n||o,key:"label-".concat(s)})});if(!r)return a;var u=dW(t.label,n||o);return[u].concat(Y6(a))};Ze.parseViewBox=mA;Ze.renderCallByParent=pW;function hW(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var yW=hW;const vW=me(yW);function fu(e){"@babel/helpers - typeof";return fu=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},fu(e)}var mW=["valueAccessor"],gW=["data","dataKey","clockWise","id","textBreakAll"];function bW(e){return OW(e)||SW(e)||xW(e)||wW()}function wW(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xW(e,t){if(e){if(typeof e=="string")return Sh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sh(e,t)}}function SW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OW(e){if(Array.isArray(e))return Sh(e)}function Sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EW(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var TW=function(t){return Array.isArray(t.value)?vW(t.value):t.value};function mr(e){var t=e.valueAccessor,n=t===void 0?TW:t,r=Zb(e,mW),i=r.data,o=r.dataKey,a=r.clockWise,u=r.id,l=r.textBreakAll,s=Zb(r,gW);return!i||!i.length?null:P.createElement(pe,{className:"recharts-label-list"},i.map(function(c,f){var d=ue(o)?n(c,f):st(c&&c.payload,o),p=ue(u)?{}:{id:"".concat(u,"-").concat(f)};return P.createElement(Ze,zs({},J(c,!0),s,p,{parentViewBox:c.parentViewBox,value:d,textBreakAll:l,viewBox:Ze.parseViewBox(ue(a)?c:Qb(Qb({},c),{},{clockWise:a})),key:"label-".concat(f),index:f}))}))}mr.displayName="LabelList";function $W(e,t){return e?e===!0?P.createElement(mr,{key:"labelList-implicit",data:t}):P.isValidElement(e)||ne(e)?P.createElement(mr,{key:"labelList-implicit",data:t,content:e}):jo(e)?P.createElement(mr,zs({data:t},e,{key:"labelList-implicit"})):null:null}function kW(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Xt(r,mr).map(function(a,u){return B.cloneElement(a,{data:t,key:"labelList-".concat(u)})});if(!n)return i;var o=$W(e.label,t);return[o].concat(bW(i))}mr.renderCallByParent=kW;function du(e){"@babel/helpers - typeof";return du=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},du(e)}function Oh(){return Oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(a>s),`, `).concat(f.x,",").concat(f.y,` `);if(i>0){var p=Se(n,r,i,a),g=Se(n,r,i,s);d+="L ".concat(g.x,",").concat(g.y,` A `).concat(i,",").concat(i,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(a<=s),`, `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},IW=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,u=t.forceCornerRadius,l=t.cornerIsExternal,s=t.startAngle,c=t.endAngle,f=pt(c-s),d=gl({cx:n,cy:r,radius:o,angle:s,sign:f,cornerRadius:a,cornerIsExternal:l}),p=d.circleTangency,g=d.lineTangency,v=d.theta,m=gl({cx:n,cy:r,radius:o,angle:c,sign:-f,cornerRadius:a,cornerIsExternal:l}),h=m.circleTangency,y=m.lineTangency,b=m.theta,S=l?Math.abs(s-c):Math.abs(s-c)-v-b;if(S<0)return u?"M ".concat(g.x,",").concat(g.y,` a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0 a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0 `):gA({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:s,endAngle:c});var w="M ".concat(g.x,",").concat(g.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,` A`).concat(o,",").concat(o,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(h.x,",").concat(h.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,` `);if(i>0){var x=gl({cx:n,cy:r,radius:i,angle:s,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),O=x.circleTangency,_=x.lineTangency,A=x.theta,T=gl({cx:n,cy:r,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),C=T.circleTangency,E=T.lineTangency,R=T.theta,j=l?Math.abs(s-c):Math.abs(s-c)-A-R;if(j<0&&a===0)return"".concat(w,"L").concat(n,",").concat(r,"Z");w+="L".concat(E.x,",").concat(E.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,` A`).concat(i,",").concat(i,",0,").concat(+(j>180),",").concat(+(f>0),",").concat(O.x,",").concat(O.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(n,",").concat(r,"Z");return w},RW={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},bA=function(t){var n=e1(e1({},RW),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,u=n.cornerRadius,l=n.forceCornerRadius,s=n.cornerIsExternal,c=n.startAngle,f=n.endAngle,d=n.className;if(a0&&Math.abs(c-f)<360?m=IW({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(v,g/2),forceCornerRadius:l,cornerIsExternal:s,startAngle:c,endAngle:f}):m=gA({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:c,endAngle:f}),P.createElement("path",Oh({},J(n,!0),{className:p,d:m,role:"img"}))};function pu(e){"@babel/helpers - typeof";return pu=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},pu(e)}function _h(){return _h=Object.assign?Object.assign.bind():function(e){for(var t=1;tXW.call(e,t));function vi(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const ZW="__v",JW="__o",eH="_owner",{getOwnPropertyDescriptor:o1,keys:a1}=Object;function tH(e,t){return e.byteLength===t.byteLength&&Us(new Uint8Array(e),new Uint8Array(t))}function nH(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function rH(e,t){return e.byteLength===t.byteLength&&Us(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function iH(e,t){return vi(e.getTime(),t.getTime())}function oH(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function aH(e,t){return e===t}function u1(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.entries();let a,u,l=0;for(;(a=o.next())&&!a.done;){const s=t.entries();let c=!1,f=0;for(;(u=s.next())&&!u.done;){if(i[f]){f++;continue}const d=a.value,p=u.value;if(n.equals(d[0],p[0],l,f,e,t,n)&&n.equals(d[1],p[1],d[0],p[0],e,t,n)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}const uH=vi;function lH(e,t,n){const r=a1(e);let i=r.length;if(a1(t).length!==i)return!1;for(;i-- >0;)if(!OA(e,t,n,r[i]))return!1;return!0}function aa(e,t,n){const r=i1(e);let i=r.length;if(i1(t).length!==i)return!1;let o,a,u;for(;i-- >0;)if(o=r[i],!OA(e,t,n,o)||(a=o1(e,o),u=o1(t,o),(a||u)&&(!a||!u||a.configurable!==u.configurable||a.enumerable!==u.enumerable||a.writable!==u.writable)))return!1;return!0}function sH(e,t){return vi(e.valueOf(),t.valueOf())}function cH(e,t){return e.source===t.source&&e.flags===t.flags}function l1(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.values();let a,u;for(;(a=o.next())&&!a.done;){const l=t.values();let s=!1,c=0;for(;(u=l.next())&&!u.done;){if(!i[c]&&n.equals(a.value,u.value,a.value,u.value,e,t,n)){s=i[c]=!0;break}c++}if(!s)return!1}return!0}function Us(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function fH(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 OA(e,t,n,r){return(r===eH||r===JW||r===ZW)&&(e.$$typeof||t.$$typeof)?!0:QW(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const dH="[object ArrayBuffer]",pH="[object Arguments]",hH="[object Boolean]",yH="[object DataView]",vH="[object Date]",mH="[object Error]",gH="[object Map]",bH="[object Number]",wH="[object Object]",xH="[object RegExp]",SH="[object Set]",OH="[object String]",_H={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},AH="[object URL]",PH=Object.prototype.toString;function EH({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:a,areNumbersEqual:u,areObjectsEqual:l,arePrimitiveWrappersEqual:s,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:g}){return function(m,h,y){if(m===h)return!0;if(m==null||h==null)return!1;const b=typeof m;if(b!==typeof h)return!1;if(b!=="object")return b==="number"?u(m,h,y):b==="function"?o(m,h,y):!1;const S=m.constructor;if(S!==h.constructor)return!1;if(S===Object)return l(m,h,y);if(Array.isArray(m))return t(m,h,y);if(S===Date)return r(m,h,y);if(S===RegExp)return c(m,h,y);if(S===Map)return a(m,h,y);if(S===Set)return f(m,h,y);const w=PH.call(m);if(w===vH)return r(m,h,y);if(w===xH)return c(m,h,y);if(w===gH)return a(m,h,y);if(w===SH)return f(m,h,y);if(w===wH)return typeof m.then!="function"&&typeof h.then!="function"&&l(m,h,y);if(w===AH)return p(m,h,y);if(w===mH)return i(m,h,y);if(w===pH)return l(m,h,y);if(_H[w])return d(m,h,y);if(w===dH)return e(m,h,y);if(w===yH)return n(m,h,y);if(w===hH||w===bH||w===OH)return s(m,h,y);if(g){let x=g[w];if(!x){const O=YW(m);O&&(x=g[O])}if(x)return x(m,h,y)}return!1}}function TH({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:tH,areArraysEqual:n?aa:nH,areDataViewsEqual:rH,areDatesEqual:iH,areErrorsEqual:oH,areFunctionsEqual:aH,areMapsEqual:n?Td(u1,aa):u1,areNumbersEqual:uH,areObjectsEqual:n?aa:lH,arePrimitiveWrappersEqual:sH,areRegExpsEqual:cH,areSetsEqual:n?Td(l1,aa):l1,areTypedArraysEqual:n?Td(Us,aa):Us,areUrlsEqual:fH,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=wl(r.areArraysEqual),o=wl(r.areMapsEqual),a=wl(r.areObjectsEqual),u=wl(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:u})}return r}function $H(e){return function(t,n,r,i,o,a,u){return e(t,n,u)}}function kH({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(u,l){const{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(u,l,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(u,l){return t(u,l,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const o={cache:void 0,equals:r,meta:void 0,strict:i};return function(u,l){return t(u,l,o)}}const CH=Er();Er({strict:!0});Er({circular:!0});Er({circular:!0,strict:!0});Er({createInternalComparator:()=>vi});Er({strict:!0,createInternalComparator:()=>vi});Er({circular:!0,createInternalComparator:()=>vi});Er({circular:!0,createInternalComparator:()=>vi,strict:!0});function Er(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=TH(e),a=EH(o),u=n?n(a):$H(a);return kH({circular:t,comparator:a,createState:r,equals:u,strict:i})}function jH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function s1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):jH(i)};requestAnimationFrame(r)}function Ph(e){"@babel/helpers - typeof";return Ph=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},Ph(e)}function MH(e){return DH(e)||RH(e)||IH(e)||NH()}function NH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IH(e,t){if(e){if(typeof e=="string")return c1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c1(e,t)}}function c1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:h<0?0:h},v=function(h){for(var y=h>1?1:h,b=y,S=0;S<8;++S){var w=f(b)-y,x=p(b);if(Math.abs(w-y)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,u=a===void 0?17:a,l=function(c,f,d){var p=-(c-f)*r,g=d*o,v=d+(p-g)*u/1e3,m=d*u/1e3+c;return Math.abs(m-f)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function $d(e){return g9(e)||m9(e)||v9(e)||y9()}function y9(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v9(e,t){if(e){if(typeof e=="string")return Ch(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ch(e,t)}}function m9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function g9(e){if(Array.isArray(e))return Ch(e)}function Ch(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Ks(e){return Ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ks(e)}var Kn=function(e){O9(n,e);var t=_9(n);function n(r,i){var o;b9(this,n),o=t.call(this,r,i);var a=o.props,u=a.isActive,l=a.attributeName,s=a.from,c=a.to,f=a.steps,d=a.children,p=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(Nh(o)),o.changeStyle=o.changeStyle.bind(Nh(o)),!u||p<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:c}),Mh(o);if(f&&f.length)o.state={style:f[0].style};else if(s){if(typeof d=="function")return o.state={style:s},Mh(o);o.state={style:l?pa({},l,s):s}}else o.state={style:{}};return o}return x9(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,u=o.canBegin,l=o.attributeName,s=o.shouldReAnimate,c=o.to,f=o.from,d=this.state.style;if(u){if(!a){var p={style:l?pa({},l,c):c};this.state&&d&&(l&&d[l]!==c||!l&&d!==c)&&this.setState(p);return}if(!(CH(i.to,c)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=g||s?f:i.to;if(this.state&&d){var m={style:l?pa({},l,v):v};(l&&d[l]!==v||!l&&d!==v)&&this.setState(m)}this.runAnimation(nn(nn({},this.props),{},{from:v,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 o=this,a=i.from,u=i.to,l=i.duration,s=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,p=f9(a,u,e9(s),l,this.changeStyle),g=function(){o.stopJSAnimation=p()};this.manager.start([d,c,g,l,f])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,u=i.begin,l=i.onAnimationStart,s=a[0],c=s.style,f=s.duration,d=f===void 0?0:f,p=function(v,m,h){if(h===0)return v;var y=m.duration,b=m.easing,S=b===void 0?"ease":b,w=m.style,x=m.properties,O=m.onAnimationEnd,_=h>0?a[h-1]:m,A=x||Object.keys(w);if(typeof S=="function"||S==="spring")return[].concat($d(v),[o.runJSAnimation.bind(o,{from:_.style,to:w,duration:y,easing:S}),y]);var T=p1(A,y,S),C=nn(nn(nn({},_.style),w),{},{transition:T});return[].concat($d(v),[C,y,O]).filter(UH)};return this.manager.start([l].concat($d(a.reduce(p,[c,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=LH());var o=i.begin,a=i.duration,u=i.attributeName,l=i.to,s=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,p=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof s=="function"||typeof p=="function"||s==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?pa({},u,l):l,m=p1(Object.keys(v),a,s);g.start([c,o,nn(nn({},v),{},{transition:m}),a,f])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=p9(i,d9),s=B.Children.count(o),c=this.state.style;if(typeof o=="function")return o(c);if(!u||s===0||a<=0)return o;var f=function(p){var g=p.props,v=g.style,m=v===void 0?{}:v,h=g.className,y=B.cloneElement(p,nn(nn({},l),{},{style:nn(nn({},m),c),className:h}));return y};return s===1?f(B.Children.only(o)):P.createElement("div",null,B.Children.map(o,function(d){return f(d)}))}}]),n}(B.PureComponent);Kn.displayName="Animate";Kn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Kn.propTypes={from:de.oneOfType([de.object,de.string]),to:de.oneOfType([de.object,de.string]),attributeName:de.string,duration:de.number,begin:de.number,easing:de.oneOfType([de.string,de.func]),steps:de.arrayOf(de.shape({duration:de.number.isRequired,style:de.object.isRequired,easing:de.oneOfType([de.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),de.func]),properties:de.arrayOf("string"),onAnimationEnd:de.func})),children:de.oneOfType([de.node,de.func]),isActive:de.bool,canBegin:de.bool,onAnimationEnd:de.func,shouldReAnimate:de.bool,onAnimationStart:de.func,onAnimationReStart:de.func};function vu(e){"@babel/helpers - typeof";return vu=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},vu(e)}function Vs(){return Vs=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,l=r>=0?1:-1,s=i>=0&&r>=0||i<0&&r<0?1:0,c;if(a>0&&o instanceof Array){for(var f=[0,0,0,0],d=0,p=4;da?a:o[d];c="M".concat(t,",").concat(n+u*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(s,",").concat(t+l*f[0],",").concat(n)),c+="L ".concat(t+r-l*f[1],",").concat(n),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(s,`, `).concat(t+r,",").concat(n+u*f[1])),c+="L ".concat(t+r,",").concat(n+i-u*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(s,`, `).concat(t+r-l*f[2],",").concat(n+i)),c+="L ".concat(t+l*f[3],",").concat(n+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(s,`, `).concat(t,",").concat(n+i-u*f[3])),c+="Z"}else if(a>0&&o===+o&&o>0){var g=Math.min(a,o);c="M ".concat(t,",").concat(n+u*g,` A `).concat(g,",").concat(g,",0,0,").concat(s,",").concat(t+l*g,",").concat(n,` L `).concat(t+r-l*g,",").concat(n,` A `).concat(g,",").concat(g,",0,0,").concat(s,",").concat(t+r,",").concat(n+u*g,` L `).concat(t+r,",").concat(n+i-u*g,` A `).concat(g,",").concat(g,",0,0,").concat(s,",").concat(t+r-l*g,",").concat(n+i,` L `).concat(t+l*g,",").concat(n+i,` A `).concat(g,",").concat(g,",0,0,").concat(s,",").concat(t,",").concat(n+i-u*g," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return c},N9=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,u=n.width,l=n.height;if(Math.abs(u)>0&&Math.abs(l)>0){var s=Math.min(o,o+u),c=Math.max(o,o+u),f=Math.min(a,a+l),d=Math.max(a,a+l);return r>=s&&r<=c&&i>=f&&i<=d}return!1},I9={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nm=function(t){var n=x1(x1({},I9),t),r=B.useRef(),i=B.useState(-1),o=P9(i,2),a=o[0],u=o[1];B.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&u(S)}catch{}},[]);var l=n.x,s=n.y,c=n.width,f=n.height,d=n.radius,p=n.className,g=n.animationEasing,v=n.animationDuration,m=n.animationBegin,h=n.isAnimationActive,y=n.isUpdateAnimationActive;if(l!==+l||s!==+s||c!==+c||f!==+f||c===0||f===0)return null;var b=ae("recharts-rectangle",p);return y?P.createElement(Kn,{canBegin:a>0,from:{width:c,height:f,x:l,y:s},to:{width:c,height:f,x:l,y:s},duration:v,animationEasing:g,isActive:y},function(S){var w=S.width,x=S.height,O=S.x,_=S.y;return P.createElement(Kn,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,isActive:h,easing:g},P.createElement("path",Vs({},J(n,!0),{className:b,d:S1(O,_,w,x,d),ref:r})))}):P.createElement("path",Vs({},J(n,!0),{className:b,d:S1(l,s,c,f,d)}))},R9=["points","className","baseLinePoints","connectNulls"];function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function L9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function O1(e){return U9(e)||z9(e)||F9(e)||B9()}function B9(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F9(e,t){if(e){if(typeof e=="string")return Ih(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ih(e,t)}}function z9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function U9(e){if(Array.isArray(e))return Ih(e)}function Ih(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){_1(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),_1(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Ea=function(t,n){var r=W9(t);n&&(r=[r.reduce(function(o,a){return[].concat(O1(o),O1(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,u,l){return"".concat(a).concat(l===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},H9=function(t,n,r){var i=Ea(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Ea(n.reverse(),r).slice(1))},K9=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=D9(t,R9);if(!n||!n.length)return null;var u=ae("recharts-polygon",r);if(i&&i.length){var l=a.stroke&&a.stroke!=="none",s=H9(n,i,o);return P.createElement("g",{className:u},P.createElement("path",Ri({},J(a,!0),{fill:s.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:s})),l?P.createElement("path",Ri({},J(a,!0),{fill:"none",d:Ea(n,o)})):null,l?P.createElement("path",Ri({},J(a,!0),{fill:"none",d:Ea(i,o)})):null)}var c=Ea(n,o);return P.createElement("path",Ri({},J(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",className:u,d:c}))};function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var J9=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},e7=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,u=a===void 0?0:a,l=t.left,s=l===void 0?0:l,c=t.width,f=c===void 0?0:c,d=t.height,p=d===void 0?0:d,g=t.className,v=Q9(t,V9),m=q9({x:r,y:o,top:u,left:s,width:f,height:p},v);return!K(r)||!K(o)||!K(f)||!K(p)||!K(u)||!K(s)?null:P.createElement("path",Dh({},J(m,!0),{className:ae("recharts-cross",g),d:J9(r,o,f,p,u,s)}))},t7=of,n7=U_,r7=_r;function i7(e,t){return e&&e.length?t7(e,r7(t),n7):void 0}var o7=i7;const a7=me(o7);var u7=of,l7=_r,s7=W_;function c7(e,t){return e&&e.length?u7(e,l7(t),s7):void 0}var f7=c7;const d7=me(f7);var p7=["cx","cy","angle","ticks","axisLine"],h7=["ticks","tick","angle","tickFormatter","stroke"];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 Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function y7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function v7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T1(e,t){for(var n=0;nC1?a=i==="outer"?"start":"end":o<-C1?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,u=r.axisLine,l=r.axisLineType,s=jr(jr({},J(this.props,!1)),{},{fill:"none"},J(u,!1));if(l==="circle")return P.createElement(rm,Lr({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:o,r:a}));var c=this.props.ticks,f=c.map(function(d){return Se(i,o,a,d.coordinate)});return P.createElement(K9,Lr({className:"recharts-polar-angle-axis-line"},s,{points:f}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,u=i.tickLine,l=i.tickFormatter,s=i.stroke,c=J(this.props,!1),f=J(a,!1),d=jr(jr({},c),{},{fill:"none"},J(u,!1)),p=o.map(function(g,v){var m=r.getTickLineCoord(g),h=r.getTickTextAnchor(g),y=jr(jr(jr({textAnchor:h},c),{},{stroke:"none",fill:s},f),{},{index:v,payload:g,x:m.x2,y:m.y2});return P.createElement(pe,Lr({className:ae("recharts-polar-angle-axis-tick",vA(a)),key:"tick-".concat(g.coordinate)},oi(r.props,g,v)),u&&P.createElement("line",Lr({className:"recharts-polar-angle-axis-tick-line"},d,m)),a&&t.renderTickItem(a,y,l?l(g.value,v):g.value))});return P.createElement(pe,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:P.createElement(pe,{className:ae("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return P.isValidElement(r)?a=P.cloneElement(r,i):ne(r)?a=r(i):a=P.createElement(ai,Lr({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(B.PureComponent);hf(yf,"displayName","PolarAngleAxis");hf(yf,"axisType","angleAxis");hf(yf,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var C7=FO,j7=C7(Object.getPrototypeOf,Object),M7=j7,N7=qn,I7=M7,R7=Gn,D7="[object Object]",L7=Function.prototype,B7=Object.prototype,NA=L7.toString,F7=B7.hasOwnProperty,z7=NA.call(Object);function U7(e){if(!R7(e)||N7(e)!=D7)return!1;var t=I7(e);if(t===null)return!0;var n=F7.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&NA.call(n)==z7}var W7=U7;const H7=me(W7);var K7=qn,V7=Gn,q7="[object Boolean]";function G7(e){return e===!0||e===!1||V7(e)&&K7(e)==q7}var X7=G7;const Y7=me(X7);function gu(e){"@babel/helpers - typeof";return gu=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},gu(e)}function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:c,lowerWidth:f,height:d,x:l,y:s},duration:v,animationEasing:g,isActive:h},function(b){var S=b.upperWidth,w=b.lowerWidth,x=b.height,O=b.x,_=b.y;return P.createElement(Kn,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,easing:g},P.createElement("path",Xs({},J(n,!0),{className:y,d:I1(O,_,S,w,x),ref:r})))}):P.createElement("g",null,P.createElement("path",Xs({},J(n,!0),{className:y,d:I1(l,s,c,f,d)})))},uK=["option","shapeType","propTransformer","activeClassName","isActive"];function bu(e){"@babel/helpers - typeof";return bu=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},bu(e)}function lK(e,t){if(e==null)return{};var n=sK(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function R1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ys(e){for(var t=1;t0?It(b,"paddingAngle",0):0;if(w){var O=tr(w.endAngle-w.startAngle,b.endAngle-b.startAngle),_=be(be({},b),{},{startAngle:y+x,endAngle:y+O(v)+x});m.push(_),y=_.endAngle}else{var A=b.endAngle,T=b.startAngle,C=tr(0,A-T),E=C(v),R=be(be({},b),{},{startAngle:y+x,endAngle:y+E+x});m.push(R),y=R.endAngle}}),P.createElement(pe,null,r.renderSectorsStatically(m))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!lf(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,u=i.className,l=i.label,s=i.cx,c=i.cy,f=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,g=this.state.isAnimationFinished;if(o||!a||!a.length||!K(s)||!K(c)||!K(f)||!K(d))return null;var v=ae("recharts-pie",u);return P.createElement(pe,{tabIndex:this.props.rootTabIndex,className:v,ref:function(h){r.pieRef=h}},this.renderSectors(),l&&this.renderLabels(a),Ze.renderCallByParent(this.props,null,!1),(!p||g)&&mr.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r=360?y:y-1)*l,S=m-y*p-b,w=i.reduce(function(_,A){var T=st(A,h,0);return _+(K(T)?T:0)},0),x;if(w>0){var O;x=i.map(function(_,A){var T=st(_,h,0),C=st(_,c,A),E=(K(T)?T:0)/w,R;A?R=O.endAngle+pt(v)*l*(T!==0?1:0):R=a;var j=R+pt(v)*((T!==0?p:0)+E*S),M=(R+j)/2,L=(g.innerRadius+g.outerRadius)/2,F=[{name:C,value:T,payload:_,dataKey:h,type:d}],k=Se(g.cx,g.cy,L,M);return O=be(be(be({percent:E,cornerRadius:o,name:C,tooltipPayload:F,midAngle:M,middleRadius:L,tooltipPosition:k},_),g),{},{value:st(_,h),startAngle:R,endAngle:j,payload:_,paddingAngle:pt(v)*l}),O})}return be(be({},g),{},{sectors:x,data:i})});var kK=Math.ceil,CK=Math.max;function jK(e,t,n,r){for(var i=-1,o=CK(kK((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var MK=jK,NK=i_,F1=1/0,IK=17976931348623157e292;function RK(e){if(!e)return e===0?e:0;if(e=NK(e),e===F1||e===-F1){var t=e<0?-1:1;return t*IK}return e===e?e:0}var DK=RK,LK=MK,BK=Yc,kd=DK;function FK(e){return function(t,n,r){return r&&typeof r!="number"&&BK(t,n,r)&&(n=r=void 0),t=kd(t),n===void 0?(n=t,t=0):n=kd(n),r=r===void 0?t0&&r.handleDrag(i.changedTouches[0])}),$t(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,u=i.startIndex;a==null||a({endIndex:o,startIndex:u})}),r.detachDragEndListener()}),$t(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),$t(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),$t(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),$t(r,"handleSlideDragStart",function(i){var o=K1(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return eV(t,e),YK(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,u=this.props,l=u.gap,s=u.data,c=s.length-1,f=Math.min(i,o),d=Math.max(i,o),p=t.getIndexInRange(a,f),g=t.getIndexInRange(a,d);return{startIndex:p-p%l,endIndex:g===c?c:g-g%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,u=i.dataKey,l=st(o[r],u,r);return ne(a)?a(l,r):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(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,u=i.endX,l=this.props,s=l.x,c=l.width,f=l.travellerWidth,d=l.startIndex,p=l.endIndex,g=l.onChange,v=r.pageX-o;v>0?v=Math.min(v,s+c-f-u,s+c-f-a):v<0&&(v=Math.max(v,s-a,s-u));var m=this.getIndex({startX:a+v,endX:u+v});(m.startIndex!==d||m.endIndex!==p)&&g&&g(m),this.setState({startX:a+v,endX:u+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=K1(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,u=i.endX,l=i.startX,s=this.state[a],c=this.props,f=c.x,d=c.width,p=c.travellerWidth,g=c.onChange,v=c.gap,m=c.data,h={startX:this.state.startX,endX:this.state.endX},y=r.pageX-o;y>0?y=Math.min(y,f+d-p-s):y<0&&(y=Math.max(y,f-s)),h[a]=s+y;var b=this.getIndex(h),S=b.startIndex,w=b.endIndex,x=function(){var _=m.length-1;return a==="startX"&&(u>l?S%v===0:w%v===0)||ul?w%v===0:S%v===0)||u>l&&w===_};this.setState($t($t({},a,s+y),"brushMoveStartX",r.pageX),function(){g&&x()&&g(b)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,u=a.scaleValues,l=a.startX,s=a.endX,c=this.state[i],f=u.indexOf(c);if(f!==-1){var d=f+r;if(!(d===-1||d>=u.length)){var p=u[d];i==="startX"&&p>=s||i==="endX"&&p<=l||this.setState($t({},i,p),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,u=r.height,l=r.fill,s=r.stroke;return P.createElement("rect",{stroke:s,fill:l,x:i,y:o,width:a,height:u})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,u=r.height,l=r.data,s=r.children,c=r.padding,f=B.Children.only(s);return f?P.cloneElement(f,{x:i,y:o,width:a,height:u,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,u=this,l=this.props,s=l.y,c=l.travellerWidth,f=l.height,d=l.traveller,p=l.ariaLabel,g=l.data,v=l.startIndex,m=l.endIndex,h=Math.max(r,this.props.x),y=Cd(Cd({},J(this.props,!1)),{},{x:h,y:s,width:c,height:f}),b=p||"Min value: ".concat((o=g[v])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=g[m])===null||a===void 0?void 0:a.name);return P.createElement(pe,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),u.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,y))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,u=o.height,l=o.stroke,s=o.travellerWidth,c=Math.min(r,i)+s,f=Math.max(Math.abs(i-r)-s,0);return P.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:a,width:f,height:u})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,u=r.height,l=r.travellerWidth,s=r.stroke,c=this.state,f=c.startX,d=c.endX,p=5,g={pointerEvents:"none",fill:s};return P.createElement(pe,{className:"recharts-brush-texts"},P.createElement(ai,Js({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-p,y:a+u/2},g),this.getTextOfTick(i)),P.createElement(ai,Js({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+p,y:a+u/2},g),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,u=r.x,l=r.y,s=r.width,c=r.height,f=r.alwaysShowText,d=this.state,p=d.startX,g=d.endX,v=d.isTextActive,m=d.isSlideMoving,h=d.isTravellerMoving,y=d.isTravellerFocused;if(!i||!i.length||!K(u)||!K(l)||!K(s)||!K(c)||s<=0||c<=0)return null;var b=ae("recharts-brush",o),S=P.Children.count(a)===1,w=GK("userSelect","none");return P.createElement(pe,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,g),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(g,"endX"),(v||m||h||y||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,u=r.height,l=r.stroke,s=Math.floor(o+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:o,width:a,height:u,fill:l,stroke:"none"}),P.createElement("line",{x1:i+1,y1:s,x2:i+a-1,y2:s,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:s+2,x2:i+a-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return P.isValidElement(r)?o=P.cloneElement(r,i):ne(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,u=r.x,l=r.travellerWidth,s=r.updateId,c=r.startIndex,f=r.endIndex;if(o!==i.prevData||s!==i.prevUpdateId)return Cd({prevData:o,prevTravellerWidth:l,prevUpdateId:s,prevX:u,prevWidth:a},o&&o.length?nV({data:o,width:a,x:u,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||u!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([u,u+a-l]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:s,prevX:u,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,u=o-1;u-a>1;){var l=Math.floor((a+u)/2);r[l]>i?u=l:a=l}return i>=r[u]?u:a}}])}(B.PureComponent);$t(mo,"displayName","Brush");$t(mo,"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 rV=Tv;function iV(e,t){var n;return rV(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var oV=iV,aV=jO,uV=_r,lV=oV,sV=Tt,cV=Yc;function fV(e,t,n){var r=sV(e)?aV:lV;return n&&cV(e,t,n)&&(t=void 0),r(e,uV(t))}var dV=fV;const pV=me(dV);var Sn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},V1=JO;function hV(e,t,n){t=="__proto__"&&V1?V1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var yV=hV,vV=yV,mV=QO,gV=_r;function bV(e,t){var n={};return t=gV(t),mV(e,function(r,i,o){vV(n,i,t(r,i,o))}),n}var wV=bV;const xV=me(wV);function SV(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function zV(e,t){var n=e.x,r=e.y,i=BV(e,IV),o="".concat(n),a=parseInt(o,10),u="".concat(r),l=parseInt(u,10),s="".concat(t.height||i.height),c=parseInt(s,10),f="".concat(t.width||i.width),d=parseInt(f,10);return ua(ua(ua(ua(ua({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function G1(e){return P.createElement(IA,Uh({shapeType:"rectangle",propTransformer:zV,activeClassName:"recharts-active-bar"},e))}var UV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=K(r)||u2(r);return o?t(r,i):(o||li(),n)}},WV=["value","background"],zA;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 HV(e,t){if(e==null)return{};var n=KV(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(M)0&&Math.abs(j)0&&(R=Math.min((re||0)-(j[se-1]||0),R))}),Number.isFinite(R)){var M=R/E,L=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(O=M*L/2),v.padding==="no-gap"){var F=ht(t.barCategoryGap,M*L),k=M*L/2;O=k-F-(k-F)/L*F}}}i==="xAxis"?_=[r.left+(b.left||0)+(O||0),r.left+r.width-(b.right||0)-(O||0)]:i==="yAxis"?_=l==="horizontal"?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(O||0),r.top+r.height-(b.bottom||0)-(O||0)]:_=v.range,w&&(_=[_[1],_[0]]);var I=sA(v,o,d),D=I.scale,H=I.realScaleType;D.domain(h).range(_),cA(D);var W=fA(D,an(an({},v),{},{realScaleType:H}));i==="xAxis"?(C=m==="top"&&!S||m==="bottom"&&S,A=r.left,T=f[x]-C*v.height):i==="yAxis"&&(C=m==="left"&&!S||m==="right"&&S,A=f[x]-C*v.width,T=r.top);var q=an(an(an({},v),W),{},{realScaleType:H,x:A,y:T,scale:D,width:i==="xAxis"?r.width:v.width,height:i==="yAxis"?r.height:v.height});return q.bandSize=Bs(q,W),!v.hide&&i==="xAxis"?f[x]+=(C?-1:1)*q.height:v.hide||(f[x]+=(C?-1:1)*q.width),an(an({},p),{},gf({},g,q))},{})},KA=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return{x:Math.min(r,o),y:Math.min(i,a),width:Math.abs(o-r),height:Math.abs(a-i)}},rq=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return KA({x:n,y:r},{x:i,y:o})},VA=function(){function e(t){JV(this,e),this.scale=t}return eq(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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(n)+u}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();gf(VA,"EPS",1e-4);var im=function(t){var n=Object.keys(t).reduce(function(r,i){return an(an({},r),{},gf({},i,VA.create(t[i])))},{});return an(an({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,u=o.position;return xV(i,function(l,s){return n[s].apply(l,{bandAware:a,position:u})})},isInRange:function(i){return NV(i,function(o,a){return n[a].isInRange(o)})}})};function iq(e){return(e%180+180)%180}var oq=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=iq(i),a=o*Math.PI/180,u=Math.atan(r/n),l=a>u&&ae.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function Vq(e,t){return sP(e,t+1)}function qq(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,u=t.end,l=0,s=1,c=a,f=function(){var g=r==null?void 0:r[l];if(g===void 0)return{v:sP(r,s)};var v=l,m,h=function(){return m===void 0&&(m=n(g,v)),m},y=g.coordinate,b=l===0||ac(e,y,h,c,u);b||(l=0,c=a,s+=1),b&&(c=y+e*(h()/2+i),l+=s)},d;s<=o.length;)if(d=f(),d)return d.v;return[]}function _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}function uw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t0?p.coordinate-m*e:p.coordinate})}else o[d]=p=ut(ut({},p),{},{tickCoord:p.coordinate});var h=ac(e,p.tickCoord,v,u,l);h&&(l=p.tickCoord-e*(v()/2+i),o[d]=ut(ut({},p),{},{isShow:!0}))},c=a-1;c>=0;c--)s(c);return o}function Zq(e,t,n,r,i,o){var a=(r||[]).slice(),u=a.length,l=t.start,s=t.end;if(o){var c=r[u-1],f=n(c,u-1),d=e*(c.coordinate+e*f/2-s);a[u-1]=c=ut(ut({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate});var p=ac(e,c.tickCoord,function(){return f},l,s);p&&(s=c.tickCoord-e*(f/2+i),a[u-1]=ut(ut({},c),{},{isShow:!0}))}for(var g=o?u-1:u,v=function(y){var b=a[y],S,w=function(){return S===void 0&&(S=n(b,y)),S};if(y===0){var x=e*(b.coordinate-e*w()/2-l);a[y]=b=ut(ut({},b),{},{tickCoord:x<0?b.coordinate-x*e:b.coordinate})}else a[y]=b=ut(ut({},b),{},{tickCoord:b.coordinate});var O=ac(e,b.tickCoord,w,l,s);O&&(l=b.tickCoord+e*(w()/2+i),a[y]=ut(ut({},b),{},{isShow:!0}))},m=0;m=2?pt(i[1].coordinate-i[0].coordinate):1,h=Kq(o,m,p);return l==="equidistantPreserveStart"?qq(m,h,v,i,a):(l==="preserveStart"||l==="preserveStartEnd"?d=Zq(m,h,v,i,a,l==="preserveStartEnd"):d=Qq(m,h,v,i,a),d.filter(function(y){return y.isShow}))}var eG=["viewBox"],tG=["viewBox"],nG=["ticks"];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 Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function iG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sw(e,t){for(var n=0;n0?l(this.props):l(p)),a<=0||u<=0||!g||!g.length?null:P.createElement(pe,{className:ae("recharts-cartesian-axis",s),ref:function(m){r.layerReference=m}},o&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),Ze.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a,u=ae(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(r)?a=P.cloneElement(r,He(He({},i),{},{className:u})):ne(r)?a=r(He(He({},i),{},{className:u})):a=P.createElement(ai,Li({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}(B.Component);um(Of,"displayName","CartesianAxis");um(Of,"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"});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 fG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dG(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function JG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eX(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a:t&&t.length&&K(i)&&K(o)?t.slice(i,o+1):[]};function AP(e){return e==="number"?[0,"auto"]:void 0}var oy=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,u=Pf(n,t);return r<0||!o||!o.length||r>=u.length?null:o.reduce(function(l,s){var c,f=(c=s.props.data)!==null&&c!==void 0?c:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(a.dataKey&&!a.allowDuplicatedCategory){var p=f===void 0?u:f;d=Mp(p,a.dataKey,i)}else d=f&&f[r]||u[r];return d?[].concat(Po(l),[pA(s,d)]):l},[])},yw=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=dX(o,r),u=t.orderedTooltipTicks,l=t.tooltipAxis,s=t.tooltipTicks,c=w6(a,u,s,l);if(c>=0&&s){var f=s[c]&&s[c].value,d=oy(t,n,c,f),p=pX(r,u,c,o);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},hX=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,u=n.stackGroups,l=n.dataStartIndex,s=n.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,p=lA(c,o);return r.reduce(function(g,v){var m,h=v.type.defaultProps!==void 0?N(N({},v.type.defaultProps),v.props):v.props,y=h.type,b=h.dataKey,S=h.allowDataOverflow,w=h.allowDuplicatedCategory,x=h.scale,O=h.ticks,_=h.includeHidden,A=h[a];if(g[A])return g;var T=Pf(t.data,{graphicalItems:i.filter(function(W){var q,re=a in W.props?W.props[a]:(q=W.type.defaultProps)===null||q===void 0?void 0:q[a];return re===A}),dataStartIndex:l,dataEndIndex:s}),C=T.length,E,R,j;FG(h.domain,S,y)&&(E=wh(h.domain,null,S),p&&(y==="number"||x!=="auto")&&(j=Aa(T,b,"category")));var M=AP(y);if(!E||E.length===0){var L,F=(L=h.domain)!==null&&L!==void 0?L:M;if(b){if(E=Aa(T,b,y),y==="category"&&p){var k=s2(E);w&&k?(R=E,E=Zs(0,C)):w||(E=Kb(F,E,v).reduce(function(W,q){return W.indexOf(q)>=0?W:[].concat(Po(W),[q])},[]))}else if(y==="category")w?E=E.filter(function(W){return W!==""&&!ue(W)}):E=Kb(F,E,v).reduce(function(W,q){return W.indexOf(q)>=0||q===""||ue(q)?W:[].concat(Po(W),[q])},[]);else if(y==="number"){var I=A6(T,i.filter(function(W){var q,re,se=a in W.props?W.props[a]:(q=W.type.defaultProps)===null||q===void 0?void 0:q[a],Oe="hide"in W.props?W.props.hide:(re=W.type.defaultProps)===null||re===void 0?void 0:re.hide;return se===A&&(_||!Oe)}),b,o,c);I&&(E=I)}p&&(y==="number"||x!=="auto")&&(j=Aa(T,b,"category"))}else p?E=Zs(0,C):u&&u[A]&&u[A].hasStack&&y==="number"?E=d==="expand"?[0,1]:dA(u[A].stackGroups,l,s):E=uA(T,i.filter(function(W){var q=a in W.props?W.props[a]:W.type.defaultProps[a],re="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return q===A&&(_||!re)}),y,c,!0);if(y==="number")E=ny(f,E,A,o,O),F&&(E=wh(F,E,S));else if(y==="category"&&F){var D=F,H=E.every(function(W){return D.indexOf(W)>=0});H&&(E=D)}}return N(N({},g),{},Z({},A,N(N({},h),{},{axisType:o,domain:E,categoricalDomain:j,duplicateDomain:R,originalDomain:(m=h.domain)!==null&&m!==void 0?m:M,isCategorical:p,layout:c})))},{})},yX=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,u=n.stackGroups,l=n.dataStartIndex,s=n.dataEndIndex,c=t.layout,f=t.children,d=Pf(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:s}),p=d.length,g=lA(c,o),v=-1;return r.reduce(function(m,h){var y=h.type.defaultProps!==void 0?N(N({},h.type.defaultProps),h.props):h.props,b=y[a],S=AP("number");if(!m[b]){v++;var w;return g?w=Zs(0,p):u&&u[b]&&u[b].hasStack?(w=dA(u[b].stackGroups,l,s),w=ny(f,w,b,o)):(w=wh(S,uA(d,r.filter(function(x){var O,_,A=a in x.props?x.props[a]:(O=x.type.defaultProps)===null||O===void 0?void 0:O[a],T="hide"in x.props?x.props.hide:(_=x.type.defaultProps)===null||_===void 0?void 0:_.hide;return A===b&&!T}),"number",c),i.defaultProps.allowDataOverflow),w=ny(f,w,b,o)),N(N({},m),{},Z({},b,N(N({axisType:o},i.defaultProps),{},{hide:!0,orientation:It(cX,"".concat(o,".").concat(v%2),null),domain:w,originalDomain:S,isCategorical:g,layout:c})))}return m},{})},vX=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,u=n.stackGroups,l=n.dataStartIndex,s=n.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=Xt(c,o),p={};return d&&d.length?p=hX(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:u,dataStartIndex:l,dataEndIndex:s}):a&&a.length&&(p=yX(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:u,dataStartIndex:l,dataEndIndex:s})),p},mX=function(t){var n=Si(t),r=Kr(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:$v(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Bs(n,r)}},vw=function(t){var n=t.children,r=t.defaultShowTooltip,i=Ct(n,mo),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},gX=function(t){return!t||!t.length?!1:t.some(function(n){var r=Nn(n&&n.type);return r&&r.indexOf("Bar")>=0})},mw=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"}},bX=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,u=t.yAxisMap,l=u===void 0?{}:u,s=r.width,c=r.height,f=r.children,d=r.margin||{},p=Ct(f,mo),g=Ct(f,Xr),v=Object.keys(l).reduce(function(w,x){var O=l[x],_=O.orientation;return!O.mirror&&!O.hide?N(N({},w),{},Z({},_,w[_]+O.width)):w},{left:d.left||0,right:d.right||0}),m=Object.keys(a).reduce(function(w,x){var O=a[x],_=O.orientation;return!O.mirror&&!O.hide?N(N({},w),{},Z({},_,It(w,"".concat(_))+O.height)):w},{top:d.top||0,bottom:d.bottom||0}),h=N(N({},m),v),y=h.bottom;p&&(h.bottom+=p.props.height||mo.defaultProps.height),g&&n&&(h=O6(h,i,r,n));var b=s-h.left-h.right,S=c-h.top-h.bottom;return N(N({brushBottom:y},h),{},{width:Math.max(b,0),height:Math.max(S,0)})},wX=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},PP=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,u=a===void 0?["axis"]:a,l=t.axisComponents,s=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,d=function(h,y){var b=y.graphicalItems,S=y.stackGroups,w=y.offset,x=y.updateId,O=y.dataStartIndex,_=y.dataEndIndex,A=h.barSize,T=h.layout,C=h.barGap,E=h.barCategoryGap,R=h.maxBarSize,j=mw(T),M=j.numericAxisName,L=j.cateAxisName,F=gX(b),k=[];return b.forEach(function(I,D){var H=Pf(h.data,{graphicalItems:[I],dataStartIndex:O,dataEndIndex:_}),W=I.type.defaultProps!==void 0?N(N({},I.type.defaultProps),I.props):I.props,q=W.dataKey,re=W.maxBarSize,se=W["".concat(M,"Id")],Oe=W["".concat(L,"Id")],Ne={},ie=l.reduce(function(Tr,$r){var Nf=y["".concat($r.axisType,"Map")],hm=W["".concat($r.axisType,"Id")];Nf&&Nf[hm]||$r.axisType==="zAxis"||li();var ym=Nf[hm];return N(N({},Tr),{},Z(Z({},$r.axisType,ym),"".concat($r.axisType,"Ticks"),Kr(ym)))},Ne),V=ie[L],ee=ie["".concat(L,"Ticks")],te=S&&S[se]&&S[se].hasStack&&N6(I,S[se].stackGroups),z=Nn(I.type).indexOf("Bar")>=0,Te=Bs(V,ee),oe=[],Ue=F&&x6({barSize:A,stackGroups:S,totalSize:wX(ie,L)});if(z){var We,wt,Qn=ue(re)?R:re,mi=(We=(wt=Bs(V,ee,!0))!==null&&wt!==void 0?wt:Qn)!==null&&We!==void 0?We:0;oe=S6({barGap:C,barCategoryGap:E,bandSize:mi!==Te?mi:Te,sizeList:Ue[Oe],maxBarSize:Qn}),mi!==Te&&(oe=oe.map(function(Tr){return N(N({},Tr),{},{position:N(N({},Tr.position),{},{offset:Tr.position.offset-mi/2})})}))}var Hu=I&&I.type&&I.type.getComposedData;Hu&&k.push({props:N(N({},Hu(N(N({},ie),{},{displayedData:H,props:h,dataKey:q,item:I,bandSize:Te,barPosition:oe,offset:w,stackedData:te,layout:T,dataStartIndex:O,dataEndIndex:_}))),{},Z(Z(Z({key:I.key||"item-".concat(D)},M,ie[M]),L,ie[L]),"animationId",x)),childIndex:x2(I,h.children),item:I})}),k},p=function(h,y){var b=h.props,S=h.dataStartIndex,w=h.dataEndIndex,x=h.updateId;if(!Lg({props:b}))return null;var O=b.children,_=b.layout,A=b.stackOffset,T=b.data,C=b.reverseStackOrder,E=mw(_),R=E.numericAxisName,j=E.cateAxisName,M=Xt(O,r),L=j6(T,M,"".concat(R,"Id"),"".concat(j,"Id"),A,C),F=l.reduce(function(W,q){var re="".concat(q.axisType,"Map");return N(N({},W),{},Z({},re,vX(b,N(N({},q),{},{graphicalItems:M,stackGroups:q.axisType===R&&L,dataStartIndex:S,dataEndIndex:w}))))},{}),k=bX(N(N({},F),{},{props:b,graphicalItems:M}),y==null?void 0:y.legendBBox);Object.keys(F).forEach(function(W){F[W]=c(b,F[W],k,W.replace("Map",""),n)});var I=F["".concat(j,"Map")],D=mX(I),H=d(b,N(N({},F),{},{dataStartIndex:S,dataEndIndex:w,updateId:x,graphicalItems:M,stackGroups:L,offset:k}));return N(N({formattedGraphicalItems:H,graphicalItems:M,offset:k,stackGroups:L},D),F)},g=function(m){function h(y){var b,S,w;return JG(this,h),w=nX(this,h,[y]),Z(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Z(w,"accessibilityManager",new BG),Z(w,"handleLegendBBoxUpdate",function(x){if(x){var O=w.state,_=O.dataStartIndex,A=O.dataEndIndex,T=O.updateId;w.setState(N({legendBBox:x},p({props:w.props,dataStartIndex:_,dataEndIndex:A,updateId:T},N(N({},w.state),{},{legendBBox:x}))))}}),Z(w,"handleReceiveSyncEvent",function(x,O,_){if(w.props.syncId===x){if(_===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(O)}}),Z(w,"handleBrushChange",function(x){var O=x.startIndex,_=x.endIndex;if(O!==w.state.dataStartIndex||_!==w.state.dataEndIndex){var A=w.state.updateId;w.setState(function(){return N({dataStartIndex:O,dataEndIndex:_},p({props:w.props,dataStartIndex:O,dataEndIndex:_,updateId:A},w.state))}),w.triggerSyncEvent({dataStartIndex:O,dataEndIndex:_})}}),Z(w,"handleMouseEnter",function(x){var O=w.getMouseInfo(x);if(O){var _=N(N({},O),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var A=w.props.onMouseEnter;ne(A)&&A(_,x)}}),Z(w,"triggeredAfterMouseMove",function(x){var O=w.getMouseInfo(x),_=O?N(N({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(_),w.triggerSyncEvent(_);var A=w.props.onMouseMove;ne(A)&&A(_,x)}),Z(w,"handleItemMouseEnter",function(x){w.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),Z(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),Z(w,"handleMouseMove",function(x){x.persist(),w.throttleTriggeredAfterMouseMove(x)}),Z(w,"handleMouseLeave",function(x){w.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};w.setState(O),w.triggerSyncEvent(O);var _=w.props.onMouseLeave;ne(_)&&_(O,x)}),Z(w,"handleOuterEvent",function(x){var O=w2(x),_=It(w.props,"".concat(O));if(O&&ne(_)){var A,T;/.*touch.*/i.test(O)?T=w.getMouseInfo(x.changedTouches[0]):T=w.getMouseInfo(x),_((A=T)!==null&&A!==void 0?A:{},x)}}),Z(w,"handleClick",function(x){var O=w.getMouseInfo(x);if(O){var _=N(N({},O),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var A=w.props.onClick;ne(A)&&A(_,x)}}),Z(w,"handleMouseDown",function(x){var O=w.props.onMouseDown;if(ne(O)){var _=w.getMouseInfo(x);O(_,x)}}),Z(w,"handleMouseUp",function(x){var O=w.props.onMouseUp;if(ne(O)){var _=w.getMouseInfo(x);O(_,x)}}),Z(w,"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),Z(w,"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.handleMouseDown(x.changedTouches[0])}),Z(w,"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.handleMouseUp(x.changedTouches[0])}),Z(w,"handleDoubleClick",function(x){var O=w.props.onDoubleClick;if(ne(O)){var _=w.getMouseInfo(x);O(_,x)}}),Z(w,"handleContextMenu",function(x){var O=w.props.onContextMenu;if(ne(O)){var _=w.getMouseInfo(x);O(_,x)}}),Z(w,"triggerSyncEvent",function(x){w.props.syncId!==void 0&&Md.emit(Nd,w.props.syncId,x,w.eventEmitterSymbol)}),Z(w,"applySyncEvent",function(x){var O=w.props,_=O.layout,A=O.syncMethod,T=w.state.updateId,C=x.dataStartIndex,E=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)w.setState(N({dataStartIndex:C,dataEndIndex:E},p({props:w.props,dataStartIndex:C,dataEndIndex:E,updateId:T},w.state)));else if(x.activeTooltipIndex!==void 0){var R=x.chartX,j=x.chartY,M=x.activeTooltipIndex,L=w.state,F=L.offset,k=L.tooltipTicks;if(!F)return;if(typeof A=="function")M=A(k,x);else if(A==="value"){M=-1;for(var I=0;I=0){var te,z;if(R.dataKey&&!R.allowDuplicatedCategory){var Te=typeof R.dataKey=="function"?ee:"payload.".concat(R.dataKey.toString());te=Mp(I,Te,M),z=D&&H&&Mp(H,Te,M)}else te=I==null?void 0:I[j],z=D&&H&&H[j];if(Oe||se){var oe=x.props.activeIndex!==void 0?x.props.activeIndex:j;return[B.cloneElement(x,N(N(N({},A.props),ie),{},{activeIndex:oe})),null,null]}if(!ue(te))return[V].concat(Po(w.renderActivePoints({item:A,activePoint:te,basePoint:z,childIndex:j,isRange:D})))}else{var Ue,We=(Ue=w.getItemByXY(w.state.activeCoordinate))!==null&&Ue!==void 0?Ue:{graphicalItem:V},wt=We.graphicalItem,Qn=wt.item,mi=Qn===void 0?x:Qn,Hu=wt.childIndex,Tr=N(N(N({},A.props),ie),{},{activeIndex:Hu});return[B.cloneElement(mi,Tr),null,null]}return D?[V,null,null]:[V,null]}),Z(w,"renderCustomized",function(x,O,_){return B.cloneElement(x,N(N({key:"recharts-customized-".concat(_)},w.props),w.state))}),Z(w,"renderMap",{CartesianGrid:{handler:Sl,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Sl},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Sl},YAxis:{handler:Sl},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((b=y.id)!==null&&b!==void 0?b:Nu("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=o_(w.triggeredAfterMouseMove,(S=y.throttleDelay)!==null&&S!==void 0?S:1e3/60),w.state={},w}return oX(h,m),tX(h,[{key:"componentDidMount",value:function(){var b,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,S=b.children,w=b.data,x=b.height,O=b.layout,_=Ct(S,vn);if(_){var A=_.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,C=oy(this.state,w,A,T),E=this.state.tooltipTicks[A].coordinate,R=(this.state.offset.top+x)/2,j=O==="horizontal",M=j?{x:E,y:R}:{y:E,x:R},L=this.state.formattedGraphicalItems.find(function(k){var I=k.item;return I.type.name==="Scatter"});L&&(M=N(N({},M),L.props.points[A].tooltipPosition),C=L.props.points[A].tooltipPayload);var F={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:T,activePayload:C,activeCoordinate:M};this.setState(F),this.renderCursor(_),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.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 w,x;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(b){Ip([Ct(b.children,vn)],[Ct(this.props.children,vn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Ct(this.props.children,vn);if(b&&typeof b.props.shared=="boolean"){var S=b.props.shared?"axis":"item";return u.indexOf(S)>=0?S:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var S=this.container,w=S.getBoundingClientRect(),x=GF(w),O={chartX:Math.round(b.pageX-x.left),chartY:Math.round(b.pageY-x.top)},_=w.width/S.offsetWidth||1,A=this.inRange(O.chartX,O.chartY,_);if(!A)return null;var T=this.state,C=T.xAxisMap,E=T.yAxisMap,R=this.getTooltipEventType(),j=yw(this.state,this.props.data,this.props.layout,A);if(R!=="axis"&&C&&E){var M=Si(C).scale,L=Si(E).scale,F=M&&M.invert?M.invert(O.chartX):null,k=L&&L.invert?L.invert(O.chartY):null;return N(N({},O),{},{xValue:F,yValue:k},j)}return j?N(N({},O),j):null}},{key:"inRange",value:function(b,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,O=b/w,_=S/w;if(x==="horizontal"||x==="vertical"){var A=this.state.offset,T=O>=A.left&&O<=A.left+A.width&&_>=A.top&&_<=A.top+A.height;return T?{x:O,y:_}:null}var C=this.state,E=C.angleAxisMap,R=C.radiusAxisMap;if(E&&R){var j=Si(E);return Gb({x:O,y:_},j)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,S=this.getTooltipEventType(),w=Ct(b,vn),x={};w&&S==="axis"&&(w.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 O=fs(this.props,this.handleOuterEvent);return N(N({},O),x)}},{key:"addListener",value:function(){Md.on(Nd,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Md.removeListener(Nd,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,S,w){for(var x=this.state.formattedGraphicalItems,O=0,_=x.length;O<_;O++){var A=x[O];if(A.item===b||A.props.key===b.key||S===Nn(A.item.type)&&w===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,S=this.state.offset,w=S.left,x=S.top,O=S.height,_=S.width;return P.createElement("defs",null,P.createElement("clipPath",{id:b},P.createElement("rect",{x:w,y:x,height:O,width:_})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(S,w){var x=dw(w,2),O=x[0],_=x[1];return N(N({},S),{},Z({},O,_.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(S,w){var x=dw(w,2),O=x[0],_=x[1];return N(N({},S),{},Z({},O,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[b])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(b){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[b])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(b){var S=this.state,w=S.formattedGraphicalItems,x=S.activeItem;if(w&&w.length)for(var O=0,_=w.length;O<_;O++){var A=w[O],T=A.props,C=A.item,E=C.type.defaultProps!==void 0?N(N({},C.type.defaultProps),C.props):C.props,R=Nn(C.type);if(R==="Bar"){var j=(T.data||[]).find(function(k){return N9(b,k)});if(j)return{graphicalItem:A,payload:j}}else if(R==="RadialBar"){var M=(T.data||[]).find(function(k){return Gb(b,k)});if(M)return{graphicalItem:A,payload:M}}else if(vf(A,x)||mf(A,x)||wu(A,x)){var L=SK({graphicalItem:A,activeTooltipItem:x,itemData:E.data}),F=E.activeIndex===void 0?L:E.activeIndex;return{graphicalItem:N(N({},A),{},{childIndex:F}),payload:wu(A,x)?E.data[L]:A.props.data[L]}}}return null}},{key:"render",value:function(){var b=this;if(!Lg(this))return null;var S=this.props,w=S.children,x=S.className,O=S.width,_=S.height,A=S.style,T=S.compact,C=S.title,E=S.desc,R=pw(S,GG),j=J(R,!1);if(T)return P.createElement(J1,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(Dp,Bi({},j,{width:O,height:_,title:C,desc:E}),this.renderClipPath(),Fg(w,this.renderMap)));if(this.props.accessibilityLayer){var M,L;j.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,j.role=(L=this.props.role)!==null&&L!==void 0?L:"application",j.onKeyDown=function(k){b.accessibilityManager.keyboardEvent(k)},j.onFocus=function(){b.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return P.createElement(J1,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Bi({className:ae("recharts-wrapper",x),style:N({position:"relative",cursor:"default",width:O,height:_},A)},F,{ref:function(I){b.container=I}}),P.createElement(Dp,Bi({},j,{width:O,height:_,title:C,desc:E,style:fX}),this.renderClipPath(),Fg(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(B.Component);Z(g,"displayName",n),Z(g,"defaultProps",N({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Z(g,"getDerivedStateFromProps",function(m,h){var y=m.dataKey,b=m.data,S=m.children,w=m.width,x=m.height,O=m.layout,_=m.stackOffset,A=m.margin,T=h.dataStartIndex,C=h.dataEndIndex;if(h.updateId===void 0){var E=vw(m);return N(N(N({},E),{},{updateId:0},p(N(N({props:m},E),{},{updateId:0}),h)),{},{prevDataKey:y,prevData:b,prevWidth:w,prevHeight:x,prevLayout:O,prevStackOffset:_,prevMargin:A,prevChildren:S})}if(y!==h.prevDataKey||b!==h.prevData||w!==h.prevWidth||x!==h.prevHeight||O!==h.prevLayout||_!==h.prevStackOffset||!Vi(A,h.prevMargin)){var R=vw(m),j={chartX:h.chartX,chartY:h.chartY,isTooltipActive:h.isTooltipActive},M=N(N({},yw(h,b,O)),{},{updateId:h.updateId+1}),L=N(N(N({},R),j),M);return N(N(N({},L),p(N({props:m},L),h)),{},{prevDataKey:y,prevData:b,prevWidth:w,prevHeight:x,prevLayout:O,prevStackOffset:_,prevMargin:A,prevChildren:S})}if(!Ip(S,h.prevChildren)){var F,k,I,D,H=Ct(S,mo),W=H&&(F=(k=H.props)===null||k===void 0?void 0:k.startIndex)!==null&&F!==void 0?F:T,q=H&&(I=(D=H.props)===null||D===void 0?void 0:D.endIndex)!==null&&I!==void 0?I:C,re=W!==T||q!==C,se=!ue(b),Oe=se&&!re?h.updateId:h.updateId+1;return N(N({updateId:Oe},p(N(N({props:m},h),{},{updateId:Oe,dataStartIndex:W,dataEndIndex:q}),h)),{},{prevChildren:S,dataStartIndex:W,dataEndIndex:q})}return null}),Z(g,"renderActiveDot",function(m,h,y){var b;return B.isValidElement(m)?b=B.cloneElement(m,h):ne(m)?b=m(h):b=P.createElement(rm,h),P.createElement(pe,{className:"recharts-active-dot",key:y},b)});var v=B.forwardRef(function(h,y){return P.createElement(g,Bi({},h,{ref:y}))});return v.displayName=g.displayName,v},xX=PP({chartName:"BarChart",GraphicalChild:Dn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:_f},{axisType:"yAxis",AxisComp:Af}],formatAxisMap:nq}),SX=PP({chartName:"PieChart",GraphicalChild:Yn,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:yf},{axisType:"radiusAxis",AxisComp:pf}],formatAxisMap:H6,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function EP(e,t){return function(){return e.apply(t,arguments)}}const{toString:OX}=Object.prototype,{getPrototypeOf:Ef}=Object,{iterator:Tf,toStringTag:TP}=Symbol,$f=(e=>t=>{const n=OX.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pn=e=>(e=e.toLowerCase(),t=>$f(t)===e),kf=e=>t=>typeof t===e,{isArray:Wo}=Array,Eo=kf("undefined");function Bu(e){return e!==null&&!Eo(e)&&e.constructor!==null&&!Eo(e.constructor)&&Et(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $P=pn("ArrayBuffer");function _X(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$P(e.buffer),t}const AX=kf("string"),Et=kf("function"),kP=kf("number"),Fu=e=>e!==null&&typeof e=="object",PX=e=>e===!0||e===!1,Ll=e=>{if($f(e)!=="object")return!1;const t=Ef(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(TP in e)&&!(Tf in e)},EX=e=>{if(!Fu(e)||Bu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},TX=pn("Date"),$X=pn("File"),kX=e=>!!(e&&typeof e.uri<"u"),CX=e=>e&&typeof e.getParts<"u",jX=pn("Blob"),MX=pn("FileList"),NX=e=>Fu(e)&&Et(e.pipe);function IX(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const gw=IX(),bw=typeof gw.FormData<"u"?gw.FormData:void 0,RX=e=>{if(!e)return!1;if(bw&&e instanceof bw)return!0;const t=Ef(e);if(!t||t===Object.prototype||!Et(e.append))return!1;const n=$f(e);return n==="formdata"||n==="object"&&Et(e.toString)&&e.toString()==="[object FormData]"},DX=pn("URLSearchParams"),[LX,BX,FX,zX]=["ReadableStream","Request","Response","Headers"].map(pn),UX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Wo(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jP=e=>!Eo(e)&&e!==Vr;function ay(...e){const{caseless:t,skipUndefined:n}=jP(this)&&this||{},r={},i=(o,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const u=t&&CP(r,a)||a,l=uy(r,u)?r[u]:void 0;Ll(l)&&Ll(o)?r[u]=ay(l,o):Ll(o)?r[u]=ay({},o):Wo(o)?r[u]=o.slice():(!n||!Eo(o))&&(r[u]=o)};for(let o=0,a=e.length;o(zu(t,(i,o)=>{n&&Et(i)?Object.defineProperty(e,o,{__proto__:null,value:EP(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),HX=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KX=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},VX=(e,t,n,r)=>{let i,o,a;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=n!==!1&&Ef(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qX=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},GX=e=>{if(!e)return null;if(Wo(e))return e;let t=e.length;if(!kP(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},XX=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ef(Uint8Array)),YX=(e,t)=>{const r=(e&&e[Tf]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},QX=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ZX=pn("HTMLFormElement"),JX=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),uy=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),eY=pn("RegExp"),MP=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zu(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},tY=e=>{MP(e,(t,n)=>{if(Et(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Et(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nY=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Wo(e)?r(e):r(String(e).split(t)),n},rY=()=>{},iY=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function oY(e){return!!(e&&Et(e.append)&&e[TP]==="FormData"&&e[Tf])}const aY=e=>{const t=new WeakSet,n=r=>{if(Fu(r)){if(t.has(r))return;if(Bu(r))return r;if(!("toJSON"in r)){t.add(r);const i=Wo(r)?[]:{};return zu(r,(o,a)=>{const u=n(o);!Eo(u)&&(i[a]=u)}),t.delete(r),i}}return r};return n(e)},uY=pn("AsyncFunction"),lY=e=>e&&(Fu(e)||Et(e))&&Et(e.then)&&Et(e.catch),NP=((e,t)=>e?setImmediate:t?((n,r)=>(Vr.addEventListener("message",({source:i,data:o})=>{i===Vr&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Vr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Et(Vr.postMessage)),sY=typeof queueMicrotask<"u"?queueMicrotask.bind(Vr):typeof process<"u"&&process.nextTick||NP,cY=e=>e!=null&&Et(e[Tf]),$={isArray:Wo,isArrayBuffer:$P,isBuffer:Bu,isFormData:RX,isArrayBufferView:_X,isString:AX,isNumber:kP,isBoolean:PX,isObject:Fu,isPlainObject:Ll,isEmptyObject:EX,isReadableStream:LX,isRequest:BX,isResponse:FX,isHeaders:zX,isUndefined:Eo,isDate:TX,isFile:$X,isReactNativeBlob:kX,isReactNative:CX,isBlob:jX,isRegExp:eY,isFunction:Et,isStream:NX,isURLSearchParams:DX,isTypedArray:XX,isFileList:MX,forEach:zu,merge:ay,extend:WX,trim:UX,stripBOM:HX,inherits:KX,toFlatObject:VX,kindOf:$f,kindOfTest:pn,endsWith:qX,toArray:GX,forEachEntry:YX,matchAll:QX,isHTMLForm:ZX,hasOwnProperty:uy,hasOwnProp:uy,reduceDescriptors:MP,freezeMethods:tY,toObjectSet:nY,toCamelCase:JX,noop:rY,toFiniteNumber:iY,findKey:CP,global:Vr,isContextDefined:jP,isSpecCompliantForm:oY,toJSONObject:aY,isAsyncFn:uY,isThenable:lY,setImmediate:NP,asap:sY,isIterable:cY},fY=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dY=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&fY[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function pY(e){let t=0,n=e.length;for(;tt;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const hY=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),yY=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function lm(e,t){return $.isArray(e)?e.map(n=>lm(n,t)):pY(String(e).replace(t,""))}const vY=e=>lm(e,hY),mY=e=>lm(e,yY);function IP(e){const t=Object.create(null);return $.forEach(e.toJSON(),(n,r)=>{t[r]=mY(n)}),t}const ww=Symbol("internals");function la(e){return e&&String(e).trim().toLowerCase()}function Bl(e){return e===!1||e==null?e:$.isArray(e)?e.map(Bl):vY(String(e))}function gY(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const bY=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rd(e,t,n,r,i){if($.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!$.isString(t)){if($.isString(r))return t.indexOf(r)!==-1;if($.isRegExp(r))return r.test(t)}}function wY(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function xY(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let mt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(u,l,s){const c=la(l);if(!c)throw new Error("header name must be a non-empty string");const f=$.findKey(i,c);(!f||i[f]===void 0||s===!0||s===void 0&&i[f]!==!1)&&(i[f||l]=Bl(u))}const a=(u,l)=>$.forEach(u,(s,c)=>o(s,c,l));if($.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if($.isString(t)&&(t=t.trim())&&!bY(t))a(dY(t),n);else if($.isObject(t)&&$.isIterable(t)){let u={},l,s;for(const c of t){if(!$.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[s=c[0]]=(l=u[s])?$.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}a(u,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=la(t),t){const r=$.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return gY(i);if($.isFunction(n))return n.call(this,i,r);if($.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=la(t),t){const r=$.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Rd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=la(a),a){const u=$.findKey(r,a);u&&(!n||Rd(r,r[u],u,n))&&(delete r[u],i=!0)}}return $.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Rd(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return $.forEach(this,(i,o)=>{const a=$.findKey(r,o);if(a){n[a]=Bl(i),delete n[o];return}const u=t?wY(o):String(o).trim();u!==o&&delete n[o],n[u]=Bl(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&$.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[ww]=this[ww]={accessors:{}}).accessors,i=this.prototype;function o(a){const u=la(a);r[u]||(xY(i,a),r[u]=!0)}return $.isArray(t)?t.forEach(o):o(t),this}};mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(mt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});$.freezeMethods(mt);const SY="[REDACTED ****]";function OY(e){if($.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if($.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function _Y(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],i=o=>{if(o===null||typeof o!="object"||$.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof mt&&(o=o.toJSON()),r.push(o);let a;if($.isArray(o))a=[],o.forEach((u,l)=>{const s=i(u);$.isUndefined(s)||(a[l]=s)});else{if(!$.isPlainObject(o)&&OY(o))return r.pop(),o;a=Object.create(null);for(const[u,l]of Object.entries(o)){const s=n.has(u.toLowerCase())?SY:i(l);$.isUndefined(s)||(a[u]=s)}}return r.pop(),a};return i(e)}let Y=class RP extends Error{static from(t,n,r,i,o,a){const u=new RP(t.message,n||t.code,r,i,o);return u.cause=t,u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),a&&Object.assign(u,a),u}constructor(t,n,r,i,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&$.hasOwnProp(t,"redact")?t.redact:void 0,r=$.isArray(n)&&n.length>0?_Y(t,n):$.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};Y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Y.ERR_BAD_OPTION="ERR_BAD_OPTION";Y.ECONNABORTED="ECONNABORTED";Y.ETIMEDOUT="ETIMEDOUT";Y.ECONNREFUSED="ECONNREFUSED";Y.ERR_NETWORK="ERR_NETWORK";Y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Y.ERR_DEPRECATED="ERR_DEPRECATED";Y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Y.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Y.ERR_CANCELED="ERR_CANCELED";Y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Y.ERR_INVALID_URL="ERR_INVALID_URL";Y.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const AY=null;function ly(e){return $.isPlainObject(e)||$.isArray(e)}function DP(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function Dd(e,t,n){return e?e.concat(t).map(function(i,o){return i=DP(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function PY(e){return $.isArray(e)&&!e.some(ly)}const EY=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Cf(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!$.isUndefined(h[m])});const r=n.metaTokens,i=n.visitor||f,o=n.dots,a=n.indexes,u=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,s=u&&$.isSpecCompliantForm(t);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if($.isDate(v))return v.toISOString();if($.isBoolean(v))return v.toString();if(!s&&$.isBlob(v))throw new Y("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(v)||$.isTypedArray(v)?s&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,m,h){let y=v;if($.isReactNative(t)&&$.isReactNativeBlob(v))return t.append(Dd(h,m,o),c(v)),!1;if(v&&!h&&typeof v=="object"){if($.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if($.isArray(v)&&PY(v)||($.isFileList(v)||$.endsWith(m,"[]"))&&(y=$.toArray(v)))return m=DP(m),y.forEach(function(S,w){!($.isUndefined(S)||S===null)&&t.append(a===!0?Dd([m],w,o):a===null?m:m+"[]",c(S))}),!1}return ly(v)?!0:(t.append(Dd(h,m,o),c(v)),!1)}const d=[],p=Object.assign(EY,{defaultVisitor:f,convertValue:c,isVisitable:ly});function g(v,m,h=0){if(!$.isUndefined(v)){if(h>l)throw new Y("Object is too deeply nested ("+h+" levels). Max depth: "+l,Y.ERR_FORM_DATA_DEPTH_EXCEEDED);if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(v),$.forEach(v,function(b,S){(!($.isUndefined(b)||b===null)&&i.call(t,b,$.isString(S)?S.trim():S,m,p))===!0&&g(b,m?m.concat(S):[S],h+1)}),d.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return g(e),t}function xw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function sm(e,t){this._pairs=[],e&&Cf(e,this,t)}const LP=sm.prototype;LP.append=function(t,n){this._pairs.push([t,n])};LP.toString=function(t){const n=t?function(r){return t.call(this,r,xw)}:xw;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function TY(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function BP(e,t,n){if(!t)return e;const r=n&&n.encode||TY,i=$.isFunction(n)?{serialize:n}:n,o=i&&i.serialize;let a;if(o?a=o(t,i):a=$.isURLSearchParams(t)?t.toString():new sm(t,i).toString(r),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Sw{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(r){r!==null&&t(r)})}}const cm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},$Y=typeof URLSearchParams<"u"?URLSearchParams:sm,kY=typeof FormData<"u"?FormData:null,CY=typeof Blob<"u"?Blob:null,jY={isBrowser:!0,classes:{URLSearchParams:$Y,FormData:kY,Blob:CY},protocols:["http","https","file","blob","url","data"]},fm=typeof window<"u"&&typeof document<"u",sy=typeof navigator=="object"&&navigator||void 0,MY=fm&&(!sy||["ReactNative","NativeScript","NS"].indexOf(sy.product)<0),NY=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",IY=fm&&window.location.href||"http://localhost",RY=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fm,hasStandardBrowserEnv:MY,hasStandardBrowserWebWorkerEnv:NY,navigator:sy,origin:IY},Symbol.toStringTag,{value:"Module"})),ct={...RY,...jY};function DY(e,t){return Cf(e,new ct.classes.URLSearchParams,{visitor:function(n,r,i,o){return ct.isNode&&$.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function LY(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function BY(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&$.isArray(i)?i.length:a,l?($.hasOwnProp(i,a)?i[a]=$.isArray(i[a])?i[a].concat(r):[i[a],r]:i[a]=r,!u):((!$.hasOwnProp(i,a)||!$.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&$.isArray(i[a])&&(i[a]=BY(i[a])),!u)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(r,i)=>{t(LY(r),i,n,0)}),n}return null}const xi=(e,t)=>e!=null&&$.hasOwnProp(e,t)?e[t]:void 0;function FY(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Uu={transitional:cm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=$.isObject(t);if(o&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return i?JSON.stringify(FP(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){const l=xi(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return DY(t,l).toString();if((u=$.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=xi(this,"env"),c=s&&s.FormData;return Cf(u?{"files[]":t}:t,c&&new c,l)}}return o||i?(n.setContentType("application/json",!1),FY(t)):t}],transformResponse:[function(t){const n=xi(this,"transitional")||Uu.transitional,r=n&&n.forcedJSONParsing,i=xi(this,"responseType"),o=i==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(r&&!i||o)){const u=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,xi(this,"parseReviver"))}catch(l){if(u)throw l.name==="SyntaxError"?Y.from(l,Y.ERR_BAD_RESPONSE,this,null,xi(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch","query"],e=>{Uu.headers[e]={}});function Ld(e,t){const n=this||Uu,r=t||n,i=mt.from(r.headers);let o=r.data;return $.forEach(e,function(u){o=u.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function zP(e){return!!(e&&e.__CANCEL__)}let Wu=class extends Y{constructor(t,n,r){super(t??"canceled",Y.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function UP(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Y("Request failed with status code "+n.status,n.status>=400&&n.status<500?Y.ERR_BAD_REQUEST:Y.ERR_BAD_RESPONSE,n.config,n.request,n))}function zY(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function UY(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const s=Date.now(),c=r[o];a||(a=s),n[i]=l,r[i]=s;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),s-a{n=c,i=null,o&&(clearTimeout(o),o=null),e(...s)};return[(...s)=>{const c=Date.now(),f=c-n;f>=r?a(s,c):(i=s,o||(o=setTimeout(()=>{o=null,a(i)},r-f)))},()=>i&&a(i)]}const fc=(e,t,n=3)=>{let r=0;const i=UY(50,250);return WY(o=>{if(!o||typeof o.loaded!="number")return;const a=o.loaded,u=o.lengthComputable?o.total:void 0,l=u!=null?Math.min(a,u):a,s=Math.max(0,l-r),c=i(s);r=Math.max(r,l);const f={loaded:l,total:u,progress:u?l/u:void 0,bytes:s,rate:c||void 0,estimated:c&&u?(u-l)/c:void 0,event:o,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},n)},Ow=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},_w=e=>(...t)=>$.asap(()=>e(...t)),HY=ct.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ct.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ct.origin),ct.navigator&&/(msie|trident)/i.test(ct.navigator.userAgent)):()=>!0,KY=ct.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];$.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),$.isString(r)&&u.push(`path=${r}`),$.isString(i)&&u.push(`domain=${i}`),o===!0&&u.push("secure"),$.isString(a)&&u.push(`SameSite=${a}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;ne instanceof mt?{...e}:e;function si(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(s,c,f,d){return $.isPlainObject(s)&&$.isPlainObject(c)?$.merge.call({caseless:d},s,c):$.isPlainObject(c)?$.merge({},c):$.isArray(c)?c.slice():c}function i(s,c,f,d){if($.isUndefined(c)){if(!$.isUndefined(s))return r(void 0,s,f,d)}else return r(s,c,f,d)}function o(s,c){if(!$.isUndefined(c))return r(void 0,c)}function a(s,c){if($.isUndefined(c)){if(!$.isUndefined(s))return r(void 0,s)}else return r(void 0,c)}function u(s,c,f){if($.hasOwnProp(t,f))return r(s,c);if($.hasOwnProp(e,f))return r(void 0,s)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:u,headers:(s,c,f)=>i(Aw(s),Aw(c),f,!0)};return $.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=$.hasOwnProp(l,c)?l[c]:i,d=$.hasOwnProp(e,c)?e[c]:void 0,p=$.hasOwnProp(t,c)?t[c]:void 0,g=f(d,p,c);$.isUndefined(g)&&f!==u||(n[c]=g)}),n}const GY=["content-type","content-length"];function XY(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,i])=>{GY.includes(r.toLowerCase())&&e.set(r,i)})}const YY=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),HP=e=>{const t=si({},e),n=d=>$.hasOwnProp(t,d)?t[d]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),a=n("xsrfCookieName");let u=n("headers");const l=n("auth"),s=n("baseURL"),c=n("allowAbsoluteUrls"),f=n("url");if(t.headers=u=mt.from(u),t.url=BP(WP(s,f,c),e.params,e.paramsSerializer),l&&u.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?YY(l.password):""))),$.isFormData(r)&&(ct.hasStandardBrowserEnv||ct.hasStandardBrowserWebWorkerEnv?u.setContentType(void 0):$.isFunction(r.getHeaders)&&XY(u,r.getHeaders(),n("formDataHeaderPolicy"))),ct.hasStandardBrowserEnv&&($.isFunction(i)&&(i=i(t)),i===!0||i==null&&HY(t.url))){const p=o&&a&&KY.read(a);p&&u.set(o,p)}return t},QY=typeof XMLHttpRequest<"u",ZY=QY&&function(e){return new Promise(function(n,r){const i=HP(e);let o=i.data;const a=mt.from(i.headers).normalize();let{responseType:u,onUploadProgress:l,onDownloadProgress:s}=i,c,f,d,p,g;function v(){p&&p(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function h(){if(!m)return;const b=mt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),w={data:!u||u==="text"||u==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};UP(function(O){n(O),v()},function(O){r(O),v()},w),m=null}"onloadend"in m?m.onloadend=h:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(h)},m.onabort=function(){m&&(r(new Y("Request aborted",Y.ECONNABORTED,e,m)),v(),m=null)},m.onerror=function(S){const w=S&&S.message?S.message:"Network Error",x=new Y(w,Y.ERR_NETWORK,e,m);x.event=S||null,r(x),v(),m=null},m.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||cm;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Y(S,w.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,m)),v(),m=null},o===void 0&&a.setContentType(null),"setRequestHeader"in m&&$.forEach(IP(a),function(S,w){m.setRequestHeader(w,S)}),$.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),u&&u!=="json"&&(m.responseType=i.responseType),s&&([d,g]=fc(s,!0),m.addEventListener("progress",d)),l&&m.upload&&([f,p]=fc(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(c=b=>{m&&(r(!b||b.type?new Wu(null,e,m):b),m.abort(),v(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const y=zY(i.url);if(y&&!ct.protocols.includes(y)){r(new Y("Unsupported protocol "+y+":",Y.ERR_BAD_REQUEST,e));return}m.send(o||null)})},JY=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(l){if(!r){r=!0,a();const s=l instanceof Error?l:this.reason;n.abort(s instanceof Y?s:new Wu(s instanceof Error?s.message:s))}};let o=t&&setTimeout(()=>{o=null,i(new Y(`timeout of ${t}ms exceeded`,Y.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:u}=n;return u.unsubscribe=()=>$.asap(a),u},eQ=function*(e,t){let n=e.byteLength;if(n{const i=tQ(e,t);let o=0,a,u=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:s,value:c}=await i.next();if(s){u(),l.close();return}let f=c.byteLength;if(n){let d=o+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(s){throw u(s),s}},cancel(l){return u(l),i.return()}},{highWaterMark:2})};function rQ(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let a=r.length;const u=r.length;for(let p=0;p=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(a-=2,p+=2)}let l=0,s=u-1;const c=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);s>=0&&(r.charCodeAt(s)===61?(l++,s--):c(s)&&(l++,s-=3)),l===1&&s>=0&&(r.charCodeAt(s)===61||c(s))&&l++;const d=Math.floor(a/4)*3-(l||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let o=0;for(let a=0,u=r.length;a=55296&&l<=56319&&a+1=56320&&s<=57343?(o+=4,a++):o+=3}else o+=3}return o}const dm="1.16.1",Ew=64*1024,{isFunction:Ol}=$,Tw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},iQ=e=>{const t=$.global!==void 0&&$.global!==null?$.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=$.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:o,Response:a}=e,u=i?Ol(i):typeof fetch=="function",l=Ol(o),s=Ol(a);if(!u)return!1;const c=u&&Ol(n),f=u&&(typeof r=="function"?(h=>y=>h.encode(y))(new r):async h=>new Uint8Array(await new o(h).arrayBuffer())),d=l&&c&&Tw(()=>{let h=!1;const y=new o(ct.origin,{body:new n,method:"POST",get duplex(){return h=!0,"half"}}),b=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),h&&!b}),p=s&&c&&Tw(()=>$.isReadableStream(new a("").body)),g={stream:p&&(h=>h.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!g[h]&&(g[h]=(y,b)=>{let S=y&&y[h];if(S)return S.call(y);throw new Y(`Response type '${h}' is not supported`,Y.ERR_NOT_SUPPORT,b)})});const v=async h=>{if(h==null)return 0;if($.isBlob(h))return h.size;if($.isSpecCompliantForm(h))return(await new o(ct.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if($.isArrayBufferView(h)||$.isArrayBuffer(h))return h.byteLength;if($.isURLSearchParams(h)&&(h=h+""),$.isString(h))return(await f(h)).byteLength},m=async(h,y)=>{const b=$.toFiniteNumber(h.getContentLength());return b??v(y)};return async h=>{let{url:y,method:b,data:S,signal:w,cancelToken:x,timeout:O,onDownloadProgress:_,onUploadProgress:A,responseType:T,headers:C,withCredentials:E="same-origin",fetchOptions:R,maxContentLength:j,maxBodyLength:M}=HP(h);const L=$.isNumber(j)&&j>-1,F=$.isNumber(M)&&M>-1;let k=i||fetch;T=T?(T+"").toLowerCase():"text";let I=JY([w,x&&x.toAbortSignal()],O),D=null;const H=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let W;try{if(L&&typeof y=="string"&&y.startsWith("data:")&&rQ(y)>j)throw new Y("maxContentLength size of "+j+" exceeded",Y.ERR_BAD_RESPONSE,h,D);if(F&&b!=="get"&&b!=="head"){const ie=await m(C,S);if(typeof ie=="number"&&isFinite(ie)&&ie>M)throw new Y("Request body larger than maxBodyLength limit",Y.ERR_BAD_REQUEST,h,D)}if(A&&d&&b!=="get"&&b!=="head"&&(W=await m(C,S))!==0){let ie=new o(y,{method:"POST",body:S,duplex:"half"}),V;if($.isFormData(S)&&(V=ie.headers.get("content-type"))&&C.setContentType(V),ie.body){const[ee,te]=Ow(W,fc(_w(A)));S=Pw(ie.body,Ew,ee,te)}}$.isString(E)||(E=E?"include":"omit");const q=l&&"credentials"in o.prototype;if($.isFormData(S)){const ie=C.getContentType();ie&&/^multipart\/form-data/i.test(ie)&&!/boundary=/i.test(ie)&&C.delete("content-type")}C.set("User-Agent","axios/"+dm,!1);const re={...R,signal:I,method:b.toUpperCase(),headers:IP(C.normalize()),body:S,duplex:"half",credentials:q?E:void 0};D=l&&new o(y,re);let se=await(l?k(D,R):k(y,re));if(L){const ie=$.toFiniteNumber(se.headers.get("content-length"));if(ie!=null&&ie>j)throw new Y("maxContentLength size of "+j+" exceeded",Y.ERR_BAD_RESPONSE,h,D)}const Oe=p&&(T==="stream"||T==="response");if(p&&se.body&&(_||L||Oe&&H)){const ie={};["status","statusText","headers"].forEach(oe=>{ie[oe]=se[oe]});const V=$.toFiniteNumber(se.headers.get("content-length")),[ee,te]=_&&Ow(V,fc(_w(_),!0))||[];let z=0;const Te=oe=>{if(L&&(z=oe,z>j))throw new Y("maxContentLength size of "+j+" exceeded",Y.ERR_BAD_RESPONSE,h,D);ee&&ee(oe)};se=new a(Pw(se.body,Ew,Te,()=>{te&&te(),H&&H()}),ie)}T=T||"text";let Ne=await g[$.findKey(g,T)||"text"](se,h);if(L&&!p&&!Oe){let ie;if(Ne!=null&&(typeof Ne.byteLength=="number"?ie=Ne.byteLength:typeof Ne.size=="number"?ie=Ne.size:typeof Ne=="string"&&(ie=typeof r=="function"?new r().encode(Ne).byteLength:Ne.length)),typeof ie=="number"&&ie>j)throw new Y("maxContentLength size of "+j+" exceeded",Y.ERR_BAD_RESPONSE,h,D)}return!Oe&&H&&H(),await new Promise((ie,V)=>{UP(ie,V,{data:Ne,headers:mt.from(se.headers),status:se.status,statusText:se.statusText,config:h,request:D})})}catch(q){if(H&&H(),I&&I.aborted&&I.reason instanceof Y){const re=I.reason;throw re.config=h,D&&(re.request=D),q!==re&&(re.cause=q),re}throw q&&q.name==="TypeError"&&/Load failed|fetch/i.test(q.message)?Object.assign(new Y("Network Error",Y.ERR_NETWORK,h,D,q&&q.response),{cause:q.cause||q}):Y.from(q,q&&q.code,h,D,q&&q.response)}}},oQ=new Map,KP=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,u=a,l,s,c=oQ;for(;u--;)l=o[u],s=c.get(l),s===void 0&&c.set(l,s=u?new Map:iQ(t)),c=s;return s};KP();const pm={http:AY,xhr:ZY,fetch:{get:KP}};$.forEach(pm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const $w=e=>`- ${e}`,aQ=e=>$.isFunction(e)||e===null||e===!1;function uQ(e,t){e=$.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let u=n?a.length>1?`since : `+a.map($w).join(` `):" "+$w(a[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}const VP={getAdapter:uQ,adapters:pm};function Bd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wu(null,e)}function kw(e){return Bd(e),e.headers=mt.from(e.headers),e.data=Ld.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),VP.getAdapter(e.adapter||Uu.adapter,e)(e).then(function(r){Bd(e),e.response=r;try{r.data=Ld.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=mt.from(r.headers),r},function(r){if(!zP(r)&&(Bd(e),r&&r.response)){e.response=r.response;try{r.response.data=Ld.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=mt.from(r.response.headers)}return Promise.reject(r)})}const jf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{jf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Cw={};jf.transitional=function(t,n,r){function i(o,a){return"[Axios v"+dm+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,u)=>{if(t===!1)throw new Y(i(a," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!Cw[a]&&(Cw[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,u):!0}};jf.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function lQ(e,t,n){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){const u=e[o],l=u===void 0||a(u,o,e);if(l!==!0)throw new Y("option "+o+" must be "+l,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}}const Fl={assertOptions:lQ,validators:jf},Ut=Fl.validators;let Zr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Sw,response:new Sw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=(()=>{if(!i.stack)return"";const a=i.stack.indexOf(` `);return a===-1?"":i.stack.slice(a+1)})();try{if(!r.stack)r.stack=o;else if(o){const a=o.indexOf(` `),u=a===-1?-1:o.indexOf(` `,a+1),l=u===-1?"":o.slice(u+1);String(r.stack).endsWith(l)||(r.stack+=` `+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=si(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Fl.assertOptions(r,{silentJSONParsing:Ut.transitional(Ut.boolean),forcedJSONParsing:Ut.transitional(Ut.boolean),clarifyTimeoutError:Ut.transitional(Ut.boolean),legacyInterceptorReqResOrdering:Ut.transitional(Ut.boolean)},!1),i!=null&&($.isFunction(i)?n.paramsSerializer={serialize:i}:Fl.assertOptions(i,{encode:Ut.function,serialize:Ut.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fl.assertOptions(n,{baseUrl:Ut.spelling("baseURL"),withXsrfToken:Ut.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&$.merge(o.common,o[n.method]);o&&$.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete o[g]}),n.headers=mt.concat(a,o);const u=[];let l=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;l=l&&v.synchronous;const m=n.transitional||cm;m&&m.legacyInterceptorReqResOrdering?u.unshift(v.fulfilled,v.rejected):u.push(v.fulfilled,v.rejected)});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const g=[kw.bind(this),void 0];for(g.unshift(...u),g.push(...s),d=g.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(u=>{r.subscribe(u),o=u}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,u){r.reason||(r.reason=new Wu(o,a,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new qP(function(i){t=i}),cancel:t}}};function cQ(e){return function(n){return e.apply(null,n)}}function fQ(e){return $.isObject(e)&&e.isAxiosError===!0}const cy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cy).forEach(([e,t])=>{cy[t]=e});function GP(e){const t=new Zr(e),n=EP(Zr.prototype.request,t);return $.extend(n,Zr.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return GP(si(e,i))},n}const Le=GP(Uu);Le.Axios=Zr;Le.CanceledError=Wu;Le.CancelToken=sQ;Le.isCancel=zP;Le.VERSION=dm;Le.toFormData=Cf;Le.AxiosError=Y;Le.Cancel=Le.CanceledError;Le.all=function(t){return Promise.all(t)};Le.spread=cQ;Le.isAxiosError=fQ;Le.mergeConfig=si;Le.AxiosHeaders=mt;Le.formToJSON=e=>FP($.isHTMLForm(e)?new FormData(e):e);Le.getAdapter=VP.getAdapter;Le.HttpStatusCode=cy;Le.default=Le;const{Axios:OQ,AxiosError:_Q,CanceledError:AQ,isCancel:PQ,CancelToken:EQ,VERSION:TQ,all:$Q,Cancel:kQ,isAxiosError:CQ,spread:jQ,toFormData:MQ,AxiosHeaders:NQ,HttpStatusCode:IQ,formToJSON:RQ,getAdapter:DQ,mergeConfig:LQ,create:BQ}=Le,dQ="https://api.sharre-captcha.com";function dc(){return localStorage.getItem("sc_api_key")||""}function pQ(e){localStorage.setItem("sc_api_key",e)}const Mf=Le.create({baseURL:dQ});async function hQ(){return(await Mf.get("/api/v1/stats")).data}async function yQ(){return(await Mf.get("/api/v1/health")).data}async function vQ(e,t,n){return(await Mf.post("/createTask",{clientKey:dc(),task:{type:e,websiteURL:t,websiteKey:n}})).data}async function mQ(e){for(let t=0;t<30;t++){await new Promise(r=>setTimeout(r,3e3));const n=await Mf.post("/getTaskResult",{clientKey:dc(),taskId:e});if(n.data.status!=="processing")return n.data}throw new Error("Timeout waiting for result")}const gQ=["#6366f1","#22d3ee"];function _l({icon:e,label:t,value:n,sub:r,color:i="indigo"}){const o={indigo:"bg-indigo-500/10 text-indigo-400",green:"bg-green-500/10 text-green-400",yellow:"bg-yellow-500/10 text-yellow-400",red:"bg-red-500/10 text-red-400"};return Q.jsxs("div",{className:"bg-gray-900 rounded-xl p-5 border border-gray-800",children:[Q.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[Q.jsx("div",{className:`p-2 rounded-lg ${o[i]}`,children:Q.jsx(e,{size:18})}),Q.jsx("span",{className:"text-sm text-gray-400",children:t})]}),Q.jsx("div",{className:"text-3xl font-bold text-white",children:n}),r&&Q.jsx("div",{className:"text-xs text-gray-500 mt-1",children:r})]})}function bQ(){const[e,t]=B.useState(null),[n,r]=B.useState(dc()),[i,o]=B.useState("checking..."),[a,u]=B.useState(!1),[l,s]=B.useState("ReCaptchaV2TaskProxyLess"),[c,f]=B.useState("https://www.google.com/recaptcha/api2/demo"),[d,p]=B.useState("6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"),[g,v]=B.useState(null),[m,h]=B.useState(!1),y=B.useCallback(async()=>{try{const _=await hQ();t(_)}catch{}},[]),b=B.useCallback(async()=>{try{const _=await yQ();o(_.status==="ok"?"✅ Online":"⚠️ Degraded")}catch{o("❌ Offline")}},[]);B.useEffect(()=>{y(),b();const _=setInterval(()=>{y(),b()},3e4);return()=>clearInterval(_)},[y,b]);const S=()=>{pQ(n),y()},w=async()=>{h(!0),v(null);try{const _=await vQ(l,c,d);if(_.errorId!==0){v(_);return}const A=await mQ(_.taskId);v(A)}catch(_){v({error:_.message})}finally{h(!1)}},x=e==null?void 0:e.today,O=x?[{name:"Enterprise",value:x.enterprise},{name:"Standard",value:x.standard}]:[];return Q.jsxs("div",{className:"min-h-screen bg-gray-950 p-6 max-w-7xl mx-auto",children:[Q.jsxs("div",{className:"flex items-center justify-between mb-8",children:[Q.jsxs("div",{children:[Q.jsx("h1",{className:"text-2xl font-bold text-white",children:"ShareCaptcha"}),Q.jsx("p",{className:"text-gray-400 text-sm",children:"Self-hosted reCAPTCHA solving service"})]}),Q.jsxs("div",{className:"flex items-center gap-3",children:[Q.jsx("span",{className:"text-sm text-gray-400",children:i}),Q.jsx("button",{onClick:()=>{u(!0),y().finally(()=>u(!1))},className:"p-2 rounded-lg bg-gray-800 hover:bg-gray-700 text-gray-300 transition",children:Q.jsx(P$,{size:16,className:a?"animate-spin":""})})]})]}),Q.jsxs("div",{className:"bg-gray-900 rounded-xl p-4 border border-gray-800 mb-6 flex gap-3",children:[Q.jsx(A$,{size:18,className:"text-gray-400 mt-2 shrink-0"}),Q.jsx("input",{type:"text",value:n,onChange:_=>r(_.target.value),placeholder:"Enter your API key...",className:"flex-1 bg-transparent text-white text-sm outline-none placeholder-gray-600"}),Q.jsx("button",{onClick:S,className:"px-4 py-1.5 bg-indigo-600 hover:bg-indigo-500 text-white text-sm rounded-lg transition",children:"Save"})]}),Q.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[Q.jsx(_l,{icon:_$,label:"Solves Today",value:(x==null?void 0:x.total.toLocaleString())??"—",color:"indigo"}),Q.jsx(_l,{icon:T$,label:"Success Rate",value:x?`${x.success_rate}%`:"—",sub:`${(x==null?void 0:x.successful.toLocaleString())??0} successful`,color:"green"}),Q.jsx(_l,{icon:k$,label:"Avg Solve Time",value:x?`${(x.avg_solve_ms/1e3).toFixed(1)}s`:"—",color:"indigo"}),Q.jsx(_l,{icon:$$,label:"Fallback Rate",value:x?`${x.fallback_rate}%`:"—",sub:`${(x==null?void 0:x.fallback)??0} via CapSolver`,color:x&&x.fallback_rate>10?"yellow":"green"})]}),Q.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6",children:[Q.jsxs("div",{className:"lg:col-span-2 bg-gray-900 rounded-xl p-5 border border-gray-800",children:[Q.jsx("h2",{className:"text-sm font-medium text-gray-400 mb-4",children:"Last 7 Days"}),Q.jsx(D0,{width:"100%",height:200,children:Q.jsxs(xX,{data:(e==null?void 0:e.week)??[],children:[Q.jsx(_f,{dataKey:"date",tick:{fill:"#6b7280",fontSize:11},tickFormatter:_=>_.slice(5)}),Q.jsx(Af,{tick:{fill:"#6b7280",fontSize:11}}),Q.jsx(vn,{contentStyle:{background:"#111827",border:"1px solid #374151",borderRadius:8}}),Q.jsx(Dn,{dataKey:"successful",name:"Successful",fill:"#6366f1",radius:[3,3,0,0]}),Q.jsx(Dn,{dataKey:"failed",name:"Failed",fill:"#ef4444",radius:[3,3,0,0]}),Q.jsx(Dn,{dataKey:"fallback",name:"Fallback",fill:"#f59e0b",radius:[3,3,0,0]})]})})]}),Q.jsxs("div",{className:"bg-gray-900 rounded-xl p-5 border border-gray-800",children:[Q.jsx("h2",{className:"text-sm font-medium text-gray-400 mb-4",children:"Type Breakdown"}),Q.jsx(D0,{width:"100%",height:200,children:Q.jsxs(SX,{children:[Q.jsx(Yn,{data:O,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:70,label:({name:_,percent:A})=>`${_} ${(A*100).toFixed(0)}%`,labelLine:!1,children:O.map((_,A)=>Q.jsx(Qc,{fill:gQ[A]},A))}),Q.jsx(Xr,{wrapperStyle:{fontSize:12,color:"#9ca3af"}})]})})]})]}),Q.jsxs("div",{className:"bg-gray-900 rounded-xl p-5 border border-gray-800",children:[Q.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[Q.jsx(E$,{size:16,className:"text-indigo-400"}),Q.jsx("h2",{className:"text-sm font-medium text-gray-300",children:"Test Console"})]}),Q.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 mb-4",children:[Q.jsxs("select",{value:l,onChange:_=>s(_.target.value),className:"bg-gray-800 border border-gray-700 text-white text-sm rounded-lg px-3 py-2 outline-none",children:[Q.jsx("option",{value:"ReCaptchaV2TaskProxyLess",children:"Standard v2"}),Q.jsx("option",{value:"ReCaptchaV2EnterpriseTaskProxyLess",children:"Enterprise v2"})]}),Q.jsx("input",{value:c,onChange:_=>f(_.target.value),placeholder:"websiteURL",className:"bg-gray-800 border border-gray-700 text-white text-sm rounded-lg px-3 py-2 outline-none placeholder-gray-600"}),Q.jsx("input",{value:d,onChange:_=>p(_.target.value),placeholder:"websiteKey",className:"bg-gray-800 border border-gray-700 text-white text-sm rounded-lg px-3 py-2 outline-none placeholder-gray-600"})]}),Q.jsx("button",{onClick:w,disabled:m||!dc(),className:"px-5 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white text-sm rounded-lg transition",children:m?"Solving...":"Submit Task"}),g&&Q.jsx("pre",{className:"mt-4 p-3 bg-gray-950 rounded-lg text-xs text-green-400 overflow-auto max-h-48",children:JSON.stringify(g,null,2)})]})]})}Fd.createRoot(document.getElementById("root")).render(Q.jsx(P.StrictMode,{children:Q.jsx(bQ,{})}));