function vE(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var _s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sw={exports:{}},Lc={},_w={exports:{}},ce={};/** * @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 Jl=Symbol.for("react.element"),mE=Symbol.for("react.portal"),gE=Symbol.for("react.fragment"),yE=Symbol.for("react.strict_mode"),bE=Symbol.for("react.profiler"),xE=Symbol.for("react.provider"),wE=Symbol.for("react.context"),SE=Symbol.for("react.forward_ref"),_E=Symbol.for("react.suspense"),OE=Symbol.for("react.memo"),kE=Symbol.for("react.lazy"),iy=Symbol.iterator;function AE(e){return e===null||typeof e!="object"?null:(e=iy&&e[iy]||e["@@iterator"],typeof e=="function"?e:null)}var Ow={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kw=Object.assign,Aw={};function Ka(e,t,r){this.props=e,this.context=t,this.refs=Aw,this.updater=r||Ow}Ka.prototype.isReactComponent={};Ka.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")};Ka.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ew(){}Ew.prototype=Ka.prototype;function Dv(e,t,r){this.props=e,this.context=t,this.refs=Aw,this.updater=r||Ow}var Fv=Dv.prototype=new Ew;Fv.constructor=Dv;kw(Fv,Ka.prototype);Fv.isPureReactComponent=!0;var ay=Array.isArray,Pw=Object.prototype.hasOwnProperty,Bv={current:null},Tw={key:!0,ref:!0,__self:!0,__source:!0};function $w(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Pw.call(t,n)&&!Tw.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1>>1,X=M[G];if(0>>1;Gi(Z,B))nei(Se,Z)?(M[G]=Se,M[ne]=B,G=ne):(M[G]=Z,M[V]=B,G=V);else if(nei(Se,B))M[G]=Se,M[ne]=B,G=ne;else break e}}return R}function i(M,R){var B=M.sortIndex-R.sortIndex;return B!==0?B:M.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,f=null,d=3,y=!1,v=!1,p=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(M){for(var R=r(u);R!==null;){if(R.callback===null)n(u);else if(R.startTime<=M)n(u),R.sortIndex=R.expirationTime,t(s,R);else break;R=r(u)}}function x(M){if(p=!1,h(M),!v)if(r(s)!==null)v=!0,H(S);else{var R=r(u);R!==null&&U(x,R.startTime-M)}}function S(M,R){v=!1,p&&(p=!1,m(O),O=-1),y=!0;var B=d;try{for(h(R),f=r(s);f!==null&&(!(f.expirationTime>R)||M&&!E());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var X=G(f.expirationTime<=R);R=e.unstable_now(),typeof X=="function"?f.callback=X:f===r(s)&&n(s),h(R)}else n(s);f=r(s)}if(f!==null)var Q=!0;else{var V=r(u);V!==null&&U(x,V.startTime-R),Q=!1}return Q}finally{f=null,d=B,y=!1}}var w=!1,_=null,O=-1,P=5,A=-1;function E(){return!(e.unstable_now()-AM||125G?(M.sortIndex=B,t(u,M),r(s)===null&&M===r(u)&&(p?(m(O),O=-1):p=!0,U(x,B-G))):(M.sortIndex=X,t(s,M),v||y||(v=!0,H(S))),M},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(M){var R=d;return function(){var B=d;d=R;try{return M.apply(this,arguments)}finally{d=B}}}})(Rw);Iw.exports=Rw;var LE=Iw.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 Nw=k,Zt=LE;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ph=Object.prototype.hasOwnProperty,DE=/^[: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]*$/,ly={},sy={};function FE(e){return ph.call(sy,e)?!0:ph.call(ly,e)?!1:DE.test(e)?sy[e]=!0:(ly[e]=!0,!1)}function BE(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zE(e,t,r,n){if(t===null||typeof t>"u"||BE(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 Et(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dt[e]=new Et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dt[t]=new Et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dt[e]=new Et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dt[e]=new Et(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){dt[e]=new Et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dt[e]=new Et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dt[e]=new Et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dt[e]=new Et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dt[e]=new Et(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uv=/[\-:]([a-z])/g;function Hv(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(Uv,Hv);dt[t]=new Et(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(Uv,Hv);dt[t]=new Et(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(Uv,Hv);dt[t]=new Et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dt[e]=new Et(e,1,!1,e.toLowerCase(),null,!1,!1)});dt.xlinkHref=new Et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dt[e]=new Et(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wv(e,t,r,n){var i=dt.hasOwnProperty(t)?dt[t]:null;(i!==null?i.type!==0:n||!(2l||i[o]!==a[l]){var s=` `+i[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{td=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?No(e):""}function UE(e){switch(e.tag){case 5:return No(e.type);case 16:return No("Lazy");case 13:return No("Suspense");case 19:return No("SuspenseList");case 0:case 2:case 15:return e=rd(e.type,!1),e;case 11:return e=rd(e.type.render,!1),e;case 1:return e=rd(e.type,!0),e;default:return""}}function yh(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 Xi:return"Fragment";case Yi:return"Portal";case vh:return"Profiler";case Vv:return"StrictMode";case mh:return"Suspense";case gh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dw:return(e.displayName||"Context")+".Consumer";case Lw:return(e._context.displayName||"Context")+".Provider";case Gv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qv:return t=e.displayName||null,t!==null?t:yh(e.type)||"Memo";case _n:t=e._payload,e=e._init;try{return yh(e(t))}catch{}}return null}function HE(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 yh(t);case 8:return t===Vv?"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 Vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function WE(e){var t=Bw(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function As(e){e._valueTracker||(e._valueTracker=WE(e))}function zw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Bw(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Su(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 bh(e,t){var r=t.checked;return Be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function cy(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Vn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Uw(e,t){t=t.checked,t!=null&&Wv(e,"checked",t,!1)}function xh(e,t){Uw(e,t);var r=Vn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wh(e,t.type,r):t.hasOwnProperty("defaultValue")&&wh(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fy(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function wh(e,t,r){(t!=="number"||Su(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var jo=Array.isArray;function fa(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Es.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function al(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var zo={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},VE=["Webkit","ms","Moz","O"];Object.keys(zo).forEach(function(e){VE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zo[t]=zo[e]})});function Gw(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||zo.hasOwnProperty(e)&&zo[e]?(""+t).trim():t+"px"}function qw(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Gw(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var GE=Be({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 Oh(e,t){if(t){if(GE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function kh(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 Ah=null;function Kv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Eh=null,da=null,ha=null;function py(e){if(e=rs(e)){if(typeof Eh!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Uc(t),Eh(e.stateNode,e.type,t))}}function Kw(e){da?ha?ha.push(e):ha=[e]:da=e}function Yw(){if(da){var e=da,t=ha;if(ha=da=null,py(e),t)for(e=0;e>>=0,e===0?32:31-(n2(e)/i2|0)|0}var Ps=64,Ts=4194304;function Lo(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 Au(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~i;l!==0?n=Lo(l):(a&=o,a!==0&&(n=Lo(a)))}else o=r&~i,o!==0?n=Lo(o):a!==0&&(n=Lo(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function es(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Or(t),e[t]=r}function s2(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Ho),_y=String.fromCharCode(32),Oy=!1;function vS(e,t){switch(e){case"keyup":return j2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qi=!1;function D2(e,t){switch(e){case"compositionend":return mS(t);case"keypress":return t.which!==32?null:(Oy=!0,_y);case"textInput":return e=t.data,e===_y&&Oy?null:e;default:return null}}function F2(e,t){if(Qi)return e==="compositionend"||!rm&&vS(e,t)?(e=hS(),su=Jv=Pn=null,Qi=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Py(r)}}function xS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wS(){for(var e=window,t=Su();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Su(e.document)}return t}function nm(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 K2(e){var t=wS(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&xS(r.ownerDocument.documentElement,r)){if(n!==null&&nm(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=Ty(r,a);var o=Ty(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Zi=null,Ih=null,Vo=null,Rh=!1;function $y(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Rh||Zi==null||Zi!==Su(n)||(n=Zi,"selectionStart"in n&&nm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Vo&&fl(Vo,n)||(Vo=n,n=Tu(Ih,"onSelect"),0ta||(e.current=Bh[ta],Bh[ta]=null,ta--)}function Ae(e,t){ta++,Bh[ta]=e.current,e.current=t}var Gn={},xt=Qn(Gn),jt=Qn(!1),ki=Gn;function _a(e,t){var r=e.type.contextTypes;if(!r)return Gn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lt(e){return e=e.childContextTypes,e!=null}function Cu(){Me(jt),Me(xt)}function Ly(e,t,r){if(xt.current!==Gn)throw Error(D(168));Ae(xt,t),Ae(jt,r)}function $S(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(D(108,HE(e)||"Unknown",i));return Be({},r,n)}function Mu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gn,ki=xt.current,Ae(xt,e),Ae(jt,jt.current),!0}function Dy(e,t,r){var n=e.stateNode;if(!n)throw Error(D(169));r?(e=$S(e,t,ki),n.__reactInternalMemoizedMergedChildContext=e,Me(jt),Me(xt),Ae(xt,e)):Me(jt),Ae(jt,r)}var Xr=null,Hc=!1,md=!1;function CS(e){Xr===null?Xr=[e]:Xr.push(e)}function oP(e){Hc=!0,CS(e)}function Zn(){if(!md&&Xr!==null){md=!0;var e=0,t=be;try{var r=Xr;for(be=1;e>=o,i-=o,Qr=1<<32-Or(t)+i|r<O?(P=_,_=null):P=_.sibling;var A=d(m,_,h[O],x);if(A===null){_===null&&(_=P);break}e&&_&&A.alternate===null&&t(m,_),b=a(A,b,O),w===null?S=A:w.sibling=A,w=A,_=P}if(O===h.length)return r(m,_),Ne&&li(m,O),S;if(_===null){for(;OO?(P=_,_=null):P=_.sibling;var E=d(m,_,A.value,x);if(E===null){_===null&&(_=P);break}e&&_&&E.alternate===null&&t(m,_),b=a(E,b,O),w===null?S=E:w.sibling=E,w=E,_=P}if(A.done)return r(m,_),Ne&&li(m,O),S;if(_===null){for(;!A.done;O++,A=h.next())A=f(m,A.value,x),A!==null&&(b=a(A,b,O),w===null?S=A:w.sibling=A,w=A);return Ne&&li(m,O),S}for(_=n(m,_);!A.done;O++,A=h.next())A=y(_,m,O,A.value,x),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?O:A.key),b=a(A,b,O),w===null?S=A:w.sibling=A,w=A);return e&&_.forEach(function(C){return t(m,C)}),Ne&&li(m,O),S}function g(m,b,h,x){if(typeof h=="object"&&h!==null&&h.type===Xi&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case ks:e:{for(var S=h.key,w=b;w!==null;){if(w.key===S){if(S=h.type,S===Xi){if(w.tag===7){r(m,w.sibling),b=i(w,h.props.children),b.return=m,m=b;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===_n&&Vy(S)===w.type){r(m,w.sibling),b=i(w,h.props),b.ref=yo(m,w,h),b.return=m,m=b;break e}r(m,w);break}else t(m,w);w=w.sibling}h.type===Xi?(b=wi(h.props.children,m.mode,x,h.key),b.return=m,m=b):(x=mu(h.type,h.key,h.props,null,m.mode,x),x.ref=yo(m,b,h),x.return=m,m=x)}return o(m);case Yi:e:{for(w=h.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===h.containerInfo&&b.stateNode.implementation===h.implementation){r(m,b.sibling),b=i(b,h.children||[]),b.return=m,m=b;break e}else{r(m,b);break}else t(m,b);b=b.sibling}b=Od(h,m.mode,x),b.return=m,m=b}return o(m);case _n:return w=h._init,g(m,b,w(h._payload),x)}if(jo(h))return v(m,b,h,x);if(ho(h))return p(m,b,h,x);js(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,b!==null&&b.tag===6?(r(m,b.sibling),b=i(b,h),b.return=m,m=b):(r(m,b),b=_d(h,m.mode,x),b.return=m,m=b),o(m)):r(m,b)}return g}var ka=FS(!0),BS=FS(!1),ns={},Dr=Qn(ns),vl=Qn(ns),ml=Qn(ns);function mi(e){if(e===ns)throw Error(D(174));return e}function dm(e,t){switch(Ae(ml,t),Ae(vl,e),Ae(Dr,ns),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_h(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_h(t,e)}Me(Dr),Ae(Dr,t)}function Aa(){Me(Dr),Me(vl),Me(ml)}function zS(e){mi(ml.current);var t=mi(Dr.current),r=_h(t,e.type);t!==r&&(Ae(vl,e),Ae(Dr,r))}function hm(e){vl.current===e&&(Me(Dr),Me(vl))}var Le=Qn(0);function Du(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gd=[];function pm(){for(var e=0;er?r:4,e(!0);var n=yd.transition;yd.transition={};try{e(!1),t()}finally{be=r,yd.transition=n}}function n_(){return pr().memoizedState}function cP(e,t,r){var n=Dn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},i_(e))a_(t,r);else if(r=NS(e,t,r,n),r!==null){var i=kt();kr(r,e,n,i),o_(r,t,n)}}function fP(e,t,r){var n=Dn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(i_(e))a_(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,r);if(i.hasEagerState=!0,i.eagerState=l,Ar(l,o)){var s=t.interleaved;s===null?(i.next=i,cm(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}r=NS(e,t,i,n),r!==null&&(i=kt(),kr(r,e,n,i),o_(r,t,n))}}function i_(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function a_(e,t){Go=Fu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function o_(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Xv(e,r)}}var Bu={readContext:hr,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useInsertionEffect:ht,useLayoutEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useMutableSource:ht,useSyncExternalStore:ht,useId:ht,unstable_isNewReconciler:!1},dP={readContext:hr,useCallback:function(e,t){return $r().memoizedState=[e,t===void 0?null:t],e},useContext:hr,useEffect:qy,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,du(4194308,4,ZS.bind(null,t,e),r)},useLayoutEffect:function(e,t){return du(4194308,4,e,t)},useInsertionEffect:function(e,t){return du(4,2,e,t)},useMemo:function(e,t){var r=$r();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=$r();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=cP.bind(null,Fe,e),[n.memoizedState,e]},useRef:function(e){var t=$r();return e={current:e},t.memoizedState=e},useState:Gy,useDebugValue:bm,useDeferredValue:function(e){return $r().memoizedState=e},useTransition:function(){var e=Gy(!1),t=e[0];return e=uP.bind(null,e[1]),$r().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Fe,i=$r();if(Ne){if(r===void 0)throw Error(D(407));r=r()}else{if(r=t(),it===null)throw Error(D(349));Ei&30||WS(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,qy(GS.bind(null,n,a,e),[e]),n.flags|=2048,bl(9,VS.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=$r(),t=it.identifierPrefix;if(Ne){var r=Zr,n=Qr;r=(n&~(1<<32-Or(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=gl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Ir]=t,e[pl]=n,v_(e,t,!1,!1),t.stateNode=e;e:{switch(o=kh(r,n),r){case"dialog":Te("cancel",e),Te("close",e),i=n;break;case"iframe":case"object":case"embed":Te("load",e),i=n;break;case"video":case"audio":for(i=0;iPa&&(t.flags|=128,n=!0,bo(a,!1),t.lanes=4194304)}else{if(!n)if(e=Du(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),bo(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ne)return pt(t),null}else 2*Ve()-a.renderingStartTime>Pa&&r!==1073741824&&(t.flags|=128,n=!0,bo(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ve(),t.sibling=null,r=Le.current,Ae(Le,n?r&1|2:r&1),t):(pt(t),null);case 22:case 23:return km(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?zt&1073741824&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function xP(e,t){switch(am(t),t.tag){case 1:return Lt(t.type)&&Cu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Aa(),Me(jt),Me(xt),pm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hm(t),null;case 13:if(Me(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me(Le),null;case 4:return Aa(),null;case 10:return um(t.type._context),null;case 22:case 23:return km(),null;case 24:return null;default:return null}}var Ds=!1,yt=!1,wP=typeof WeakSet=="function"?WeakSet:Set,K=null;function aa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){We(e,t,n)}else r.current=null}function Zh(e,t,r){try{r()}catch(n){We(e,t,n)}}var r0=!1;function SP(e,t){if(Nh=Eu,e=wS(),nm(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var y;f!==r||i!==0&&f.nodeType!==3||(l=o+i),f!==a||n!==0&&f.nodeType!==3||(s=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(y=f.firstChild)!==null;)d=f,f=y;for(;;){if(f===e)break t;if(d===r&&++u===i&&(l=o),d===a&&++c===n&&(s=o),(y=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=y}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(jh={focusedElem:e,selectionRange:r},Eu=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,g=v.memoizedState,m=t.stateNode,b=m.getSnapshotBeforeUpdate(t.elementType===t.type?p:br(t.type,p),g);m.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(x){We(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return v=r0,r0=!1,v}function qo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Zh(t,r,a)}i=i.next}while(i!==n)}}function Gc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Jh(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function y_(e){var t=e.alternate;t!==null&&(e.alternate=null,y_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ir],delete t[pl],delete t[Fh],delete t[iP],delete t[aP])),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 b_(e){return e.tag===5||e.tag===3||e.tag===4}function n0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b_(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,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$u));else if(n!==4&&(e=e.child,e!==null))for(ep(e,t,r),e=e.sibling;e!==null;)ep(e,t,r),e=e.sibling}function tp(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(tp(e,t,r),e=e.sibling;e!==null;)tp(e,t,r),e=e.sibling}var st=null,xr=!1;function bn(e,t,r){for(r=r.child;r!==null;)x_(e,t,r),r=r.sibling}function x_(e,t,r){if(Lr&&typeof Lr.onCommitFiberUnmount=="function")try{Lr.onCommitFiberUnmount(Dc,r)}catch{}switch(r.tag){case 5:yt||aa(r,t);case 6:var n=st,i=xr;st=null,bn(e,t,r),st=n,xr=i,st!==null&&(xr?(e=st,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):st.removeChild(r.stateNode));break;case 18:st!==null&&(xr?(e=st,r=r.stateNode,e.nodeType===8?vd(e.parentNode,r):e.nodeType===1&&vd(e,r),ul(e)):vd(st,r.stateNode));break;case 4:n=st,i=xr,st=r.stateNode.containerInfo,xr=!0,bn(e,t,r),st=n,xr=i;break;case 0:case 11:case 14:case 15:if(!yt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Zh(r,t,o),i=i.next}while(i!==n)}bn(e,t,r);break;case 1:if(!yt&&(aa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){We(r,t,l)}bn(e,t,r);break;case 21:bn(e,t,r);break;case 22:r.mode&1?(yt=(n=yt)||r.memoizedState!==null,bn(e,t,r),yt=n):bn(e,t,r);break;default:bn(e,t,r)}}function i0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new wP),t.forEach(function(n){var i=CP.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function gr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=Ve()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*OP(n/1960))-n,10e?16:e,Tn===null)var n=!1;else{if(e=Tn,Tn=null,Hu=0,de&6)throw Error(D(331));var i=de;for(de|=4,K=e.current;K!==null;){var a=K,o=a.child;if(K.flags&16){var l=a.deletions;if(l!==null){for(var s=0;sVe()-_m?xi(e,0):Sm|=r),Dt(e,t)}function P_(e,t){t===0&&(e.mode&1?(t=Ts,Ts<<=1,!(Ts&130023424)&&(Ts=4194304)):t=1);var r=kt();e=ln(e,t),e!==null&&(es(e,t,r),Dt(e,r))}function $P(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),P_(e,r)}function CP(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(D(314))}n!==null&&n.delete(t),P_(e,r)}var T_;T_=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||jt.current)Mt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Mt=!1,yP(e,t,r);Mt=!!(e.flags&131072)}else Mt=!1,Ne&&t.flags&1048576&&MS(t,Ru,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;hu(e,t),e=t.pendingProps;var i=_a(t,xt.current);va(t,r),i=mm(null,t,n,e,i,r);var a=gm();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,Lt(n)?(a=!0,Mu(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,fm(t),i.updater=Wc,t.stateNode=i,i._reactInternals=t,Vh(t,n,e,r),t=Kh(null,t,n,!0,a,r)):(t.tag=0,Ne&&a&&im(t),St(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(hu(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=IP(n),e=br(n,e),i){case 0:t=qh(null,t,n,e,r);break e;case 1:t=Jy(null,t,n,e,r);break e;case 11:t=Qy(null,t,n,e,r);break e;case 14:t=Zy(null,t,n,br(n.type,e),r);break e}throw Error(D(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:br(n,i),qh(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:br(n,i),Jy(e,t,n,i,r);case 3:e:{if(d_(t),e===null)throw Error(D(387));n=t.pendingProps,a=t.memoizedState,i=a.element,jS(e,t),Lu(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ea(Error(D(423)),t),t=e0(e,t,n,r,i);break e}else if(n!==i){i=Ea(Error(D(424)),t),t=e0(e,t,n,r,i);break e}else for(qt=Nn(t.stateNode.containerInfo.firstChild),Yt=t,Ne=!0,wr=null,r=BS(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Oa(),n===i){t=sn(e,t,r);break e}St(e,t,n,r)}t=t.child}return t;case 5:return zS(t),e===null&&Uh(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Lh(n,i)?o=null:a!==null&&Lh(n,a)&&(t.flags|=32),f_(e,t),St(e,t,o,r),t.child;case 6:return e===null&&Uh(t),null;case 13:return h_(e,t,r);case 4:return dm(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ka(t,null,n,r):St(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:br(n,i),Qy(e,t,n,i,r);case 7:return St(e,t,t.pendingProps,r),t.child;case 8:return St(e,t,t.pendingProps.children,r),t.child;case 12:return St(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ae(Nu,n._currentValue),n._currentValue=o,a!==null)if(Ar(a.value,o)){if(a.children===i.children&&!jt.current){t=sn(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(a.tag===1){s=tn(-1,r&-r),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Hh(a.return,r,t),l.lanes|=r;break}s=s.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(D(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Hh(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}St(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,va(t,r),i=hr(i),n=n(i),t.flags|=1,St(e,t,n,r),t.child;case 14:return n=t.type,i=br(n,t.pendingProps),i=br(n.type,i),Zy(e,t,n,i,r);case 15:return u_(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:br(n,i),hu(e,t),t.tag=1,Lt(n)?(e=!0,Mu(t)):e=!1,va(t,r),DS(t,n,i),Vh(t,n,i,r),Kh(null,t,n,!0,e,r);case 19:return p_(e,t,r);case 22:return c_(e,t,r)}throw Error(D(156,t.tag))};function $_(e,t){return rS(e,t)}function MP(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cr(e,t,r,n){return new MP(e,t,r,n)}function Em(e){return e=e.prototype,!(!e||!e.isReactComponent)}function IP(e){if(typeof e=="function")return Em(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gv)return 11;if(e===qv)return 14}return 2}function Fn(e,t){var r=e.alternate;return r===null?(r=cr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function mu(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Em(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Xi:return wi(r.children,i,a,t);case Vv:o=8,i|=8;break;case vh:return e=cr(12,r,t,i|2),e.elementType=vh,e.lanes=a,e;case mh:return e=cr(13,r,t,i),e.elementType=mh,e.lanes=a,e;case gh:return e=cr(19,r,t,i),e.elementType=gh,e.lanes=a,e;case Fw:return Kc(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lw:o=10;break e;case Dw:o=9;break e;case Gv:o=11;break e;case qv:o=14;break e;case _n:o=16,n=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=cr(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function wi(e,t,r,n){return e=cr(7,e,n,t),e.lanes=r,e}function Kc(e,t,r,n){return e=cr(22,e,n,t),e.elementType=Fw,e.lanes=r,e.stateNode={isHidden:!1},e}function _d(e,t,r){return e=cr(6,e,null,t),e.lanes=r,e}function Od(e,t,r){return t=cr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RP(e,t,r,n,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=id(0),this.expirationTimes=id(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=id(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Pm(e,t,r,n,i,a,o,l,s){return e=new RP(e,t,r,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=cr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},fm(a),e}function NP(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R_)}catch(e){console.error(e)}}R_(),Mw.exports=er;var Mm=Mw.exports,d0=Mm;hh.createRoot=d0.createRoot,hh.hydrateRoot=d0.hydrateRoot;/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var op=function(e,t){return op=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},op(e,t)};function BP(e,t){op(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var zP=100,UP=100,h0=50,lp=50,sp=50;function p0(e){var t=e.className,r=e.counterClockwise,n=e.dashRatio,i=e.pathRadius,a=e.strokeWidth,o=e.style;return k.createElement("path",{className:t,style:Object.assign({},o,WP({pathRadius:i,dashRatio:n,counterClockwise:r})),d:HP({pathRadius:i,counterClockwise:r}),strokeWidth:a,fillOpacity:0})}function HP(e){var t=e.pathRadius,r=e.counterClockwise,n=t,i=r?1:0;return` M `+lp+","+sp+` m 0,-`+n+` a `+n+","+n+" "+i+" 1 1 0,"+2*n+` a `+n+","+n+" "+i+" 1 1 0,-"+2*n+` `}function WP(e){var t=e.counterClockwise,r=e.dashRatio,n=e.pathRadius,i=Math.PI*2*n,a=(1-r)*i;return{strokeDasharray:i+"px "+i+"px",strokeDashoffset:(t?-a:a)+"px"}}var VP=function(e){BP(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},t.prototype.getPathRadius=function(){return h0-this.props.strokeWidth/2-this.getBackgroundPadding()},t.prototype.getPathRatio=function(){var r=this.props,n=r.value,i=r.minValue,a=r.maxValue,o=Math.min(Math.max(n,i),a);return(o-i)/(a-i)},t.prototype.render=function(){var r=this.props,n=r.circleRatio,i=r.className,a=r.classes,o=r.counterClockwise,l=r.styles,s=r.strokeWidth,u=r.text,c=this.getPathRadius(),f=this.getPathRatio();return k.createElement("svg",{className:a.root+" "+i,style:l.root,viewBox:"0 0 "+zP+" "+UP,"data-test-id":"CircularProgressbar"},this.props.background?k.createElement("circle",{className:a.background,style:l.background,cx:lp,cy:sp,r:h0}):null,k.createElement(p0,{className:a.trail,counterClockwise:o,dashRatio:n,pathRadius:c,strokeWidth:s,style:l.trail}),k.createElement(p0,{className:a.path,counterClockwise:o,dashRatio:f*n,pathRadius:c,strokeWidth:s,style:l.path}),u?k.createElement("text",{className:a.text,style:l.text,x:lp,y:sp},u):null)},t.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},t}(k.Component);function GP(e){var t=e.rotation,r=e.strokeLinecap,n=e.textColor,i=e.textSize,a=e.pathColor,o=e.pathTransition,l=e.pathTransitionDuration,s=e.trailColor,u=e.backgroundColor,c=t==null?void 0:"rotate("+t+"turn)",f=t==null?void 0:"center center";return{root:{},path:zs({stroke:a,strokeLinecap:r,transform:c,transformOrigin:f,transition:o,transitionDuration:l==null?void 0:l+"s"}),trail:zs({stroke:s,strokeLinecap:r,transform:c,transformOrigin:f}),text:zs({fill:n,fontSize:i}),background:zs({fill:u})}}function zs(e){return Object.keys(e).forEach(function(t){e[t]==null&&delete e[t]}),e}function v0({item:e}){return z.jsxs("div",{className:"shadow-lg flex flex-col items-center justify-center rounded-[30px] p-6 bg-white",children:[z.jsx("p",{style:{color:"#000000",fontSize:"18px",fontWeight:500},children:e.seconds||e.actionName}),z.jsx("p",{style:{color:"#000000",fontWeight:500,fontSize:"14px"},children:e.title}),z.jsx("div",{children:z.jsx(qP,{targetPoint:e.targetPoint,value:e.score})}),z.jsx("span",{children:e.percent??z.jsx(z.Fragment,{children:" "})}),z.jsx("button",{className:"border-rammp-orange border-2 rounded-md text-rammp-orange px-8 py-2",id:`quick-view-${e.id}`,children:"Quick View"})]})}function qP({value:e,targetPoint:t,isViewTips:r}){return z.jsxs("div",{className:"progressChartContainer",children:[z.jsx(VP,{value:e,styles:GP({pathColor:e>=t?"#5D3365":"#F26554",trailColor:r?"#fff":"#E7EEEF"})}),z.jsx("div",{className:"progressChartTargetContainer",style:{transform:`rotate(${t/100*360}deg)`},children:z.jsx("div",{className:"circulatProgessBarTarget",style:{backgroundColor:e>=t?"#fff":"#F26554"}})}),z.jsxs("div",{className:"progressChartLabelBox",children:[z.jsx("p",{className:"progressChartLabel",children:e}),z.jsxs("span",{className:"progressChartLabelIdeal",style:{color:"#000"},children:["Ideal: ",t]})]})]})}var N_={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i-1}var J$=Z$,eC=ef;function tC(e,t){var r=this.__data__,n=eC(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var rC=tC,nC=F$,iC=q$,aC=X$,oC=J$,lC=rC;function eo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},gi=function(t){return as(t)&&t.indexOf("%")===t.length-1},W=function(t){return AM(t)&&!os(t)},Ze=function(t){return W(t)||as(t)},$M=0,vf=function(t){var r=++$M;return"".concat(t||"").concat(r)},Kt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!W(t)&&!as(t))return n;var a;if(gi(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return os(a)&&(a=n),i&&a>r&&(a=r),a},wn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},CM=function(t){if(!bt(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var P0={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Bn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},T0=null,Ed=null,Vm=function e(t){if(t===T0&&bt(Ed))return Ed;var r=[];return k.Children.forEach(t,function(n){ee(n)||(wM.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Ed=r,T0=t,r};function Fr(e,t){var r=[],n=[];return bt(t)?n=t.map(function(i){return Bn(i)}):n=[Bn(t)],Vm(e).forEach(function(i){var a=Xt(i,"type.displayName")||Xt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function $n(e,t){var r=Fr(e,t);return r&&r[0]}var $0=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!W(n)||n<=0||!W(i)||i<=0)},DM=["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"],FM=function(t){return t&&t.type&&as(t.type)&&DM.indexOf(t.type)>=0},BM=function(t,r,n,i){var a,o=(a=Ad==null?void 0:Ad[i])!==null&&a!==void 0?a:[];return!te(t)&&(i&&o.includes(r)||IM.includes(r))||n&&Wm.includes(r)},ae=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(k.isValidElement(t)&&(i=t.props),!Qa(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;BM((l=i)===null||l===void 0?void 0:l[o],o,r,n)&&(a[o]=i[o])}),a},q_=function e(t,r){if(t===r)return!0;var n=k.Children.count(t);if(n!==k.Children.count(r))return!1;if(n===0)return!0;if(n===1)return C0(bt(t)?t[0]:t,bt(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function dp(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,l=WM(e,HM),s=i||{width:r,height:n,x:0,y:0},u=Oe("recharts-surface",a);return T.createElement("svg",fp({},ae(l,!0,"svg"),{className:u,width:r,height:n,style:o,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),T.createElement("title",null,e.title),T.createElement("desc",null,e.desc),t)}var GM=["children","className"];function hp(){return hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var De=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=qM(e,GM),a=Oe("recharts-layer",n);return T.createElement("g",hp({className:a},ae(i,!0),{ref:t}),r)}),YM=tf;function XM(){this.__data__=new YM,this.size=0}var QM=XM;function ZM(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var JM=ZM;function eI(e){return this.__data__.get(e)}var tI=eI;function rI(e){return this.__data__.has(e)}var nI=rI,iI=tf,aI=jm,oI=Lm,lI=200;function sI(e,t){var r=this.__data__;if(r instanceof iI){var n=r.__data__;if(!aI||n.lengthl))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,y=r&$I?new AI:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=RR}var Ym=NR,jR=pn,LR=Ym,DR=vn,FR="[object Arguments]",BR="[object Array]",zR="[object Boolean]",UR="[object Date]",HR="[object Error]",WR="[object Function]",VR="[object Map]",GR="[object Number]",qR="[object Object]",KR="[object RegExp]",YR="[object Set]",XR="[object String]",QR="[object WeakMap]",ZR="[object ArrayBuffer]",JR="[object DataView]",e3="[object Float32Array]",t3="[object Float64Array]",r3="[object Int8Array]",n3="[object Int16Array]",i3="[object Int32Array]",a3="[object Uint8Array]",o3="[object Uint8ClampedArray]",l3="[object Uint16Array]",s3="[object Uint32Array]",$e={};$e[e3]=$e[t3]=$e[r3]=$e[n3]=$e[i3]=$e[a3]=$e[o3]=$e[l3]=$e[s3]=!0;$e[FR]=$e[BR]=$e[ZR]=$e[zR]=$e[JR]=$e[UR]=$e[HR]=$e[WR]=$e[VR]=$e[GR]=$e[qR]=$e[KR]=$e[YR]=$e[XR]=$e[QR]=!1;function u3(e){return DR(e)&&LR(e.length)&&!!$e[jR(e)]}var c3=u3;function f3(e){return function(t){return e(t)}}var rO=f3,Yu={exports:{}};Yu.exports;(function(e,t){var r=j_,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,l=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Yu,Yu.exports);var d3=Yu.exports,h3=c3,p3=rO,D0=d3,F0=D0&&D0.isTypedArray,v3=F0?p3(F0):h3,nO=v3,m3=bR,g3=qm,y3=Pt,b3=tO,x3=Km,w3=nO,S3=Object.prototype,_3=S3.hasOwnProperty;function O3(e,t){var r=y3(e),n=!r&&g3(e),i=!r&&!n&&b3(e),a=!r&&!n&&!i&&w3(e),o=r||n||i||a,l=o?m3(e.length,String):[],s=l.length;for(var u in e)(t||_3.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||x3(u,s)))&&l.push(u);return l}var k3=O3,A3=Object.prototype;function E3(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||A3;return e===r}var P3=E3;function T3(e,t){return function(r){return e(t(r))}}var iO=T3,$3=iO,C3=$3(Object.keys,Object),M3=C3,I3=P3,R3=M3,N3=Object.prototype,j3=N3.hasOwnProperty;function L3(e){if(!I3(e))return R3(e);var t=[];for(var r in Object(e))j3.call(e,r)&&r!="constructor"&&t.push(r);return t}var D3=L3,F3=Im,B3=Ym;function z3(e){return e!=null&&B3(e.length)&&!F3(e)}var ss=z3,U3=k3,H3=D3,W3=ss;function V3(e){return W3(e)?U3(e):H3(e)}var mf=V3,G3=lR,q3=gR,K3=mf;function Y3(e){return G3(e,K3,q3)}var X3=Y3,B0=X3,Q3=1,Z3=Object.prototype,J3=Z3.hasOwnProperty;function eN(e,t,r,n,i,a){var o=r&Q3,l=B0(e),s=l.length,u=B0(t),c=u.length;if(s!=c&&!o)return!1;for(var f=s;f--;){var d=l[f];if(!(o?d in t:J3.call(t,d)))return!1}var y=a.get(e),v=a.get(t);if(y&&v)return y==t&&v==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=o;++f-1}var Zj=Qj;function Jj(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=p5){var u=t?null:d5(e);if(u)return h5(u);o=!1,i=f5,s=new s5}else s=t?[]:l;e:for(;++ni?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:_5(e,t,r)}var k5=O5,A5="\\ud800-\\udfff",E5="\\u0300-\\u036f",P5="\\ufe20-\\ufe2f",T5="\\u20d0-\\u20ff",$5=E5+P5+T5,C5="\\ufe0e\\ufe0f",M5="\\u200d",I5=RegExp("["+M5+A5+$5+C5+"]");function R5(e){return I5.test(e)}var fO=R5;function N5(e){return e.split("")}var j5=N5,dO="\\ud800-\\udfff",L5="\\u0300-\\u036f",D5="\\ufe20-\\ufe2f",F5="\\u20d0-\\u20ff",B5=L5+D5+F5,z5="\\ufe0e\\ufe0f",U5="["+dO+"]",bp="["+B5+"]",xp="\\ud83c[\\udffb-\\udfff]",H5="(?:"+bp+"|"+xp+")",hO="[^"+dO+"]",pO="(?:\\ud83c[\\udde6-\\uddff]){2}",vO="[\\ud800-\\udbff][\\udc00-\\udfff]",W5="\\u200d",mO=H5+"?",gO="["+z5+"]?",V5="(?:"+W5+"(?:"+[hO,pO,vO].join("|")+")"+gO+mO+")*",G5=gO+mO+V5,q5="(?:"+[hO+bp+"?",bp,pO,vO,U5].join("|")+")",K5=RegExp(xp+"(?="+xp+")|"+q5+G5,"g");function Y5(e){return e.match(K5)||[]}var X5=Y5,Q5=j5,Z5=fO,J5=X5;function e4(e){return Z5(e)?J5(e):Q5(e)}var t4=e4,r4=k5,n4=fO,i4=t4,a4=z_;function o4(e){return function(t){t=a4(t);var r=n4(t)?i4(t):void 0,n=r?r[0]:t.charAt(0),i=r?r4(r,1).join(""):t.slice(1);return n[e]()+i}}var l4=o4,s4=l4,u4=s4("toUpperCase"),c4=u4;const gf=ve(c4);function ke(e){return function(){return e}}const yO=Math.cos,Qu=Math.sin,Er=Math.sqrt,Zu=Math.PI,yf=2*Zu,wp=Math.PI,Sp=2*wp,ci=1e-6,f4=Sp-ci;function bO(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return bO;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;ici)if(!(Math.abs(f*s-u*c)>ci)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let y=n-o,v=i-l,p=s*s+u*u,g=y*y+v*v,m=Math.sqrt(p),b=Math.sqrt(d),h=a*Math.tan((wp-Math.acos((p+d-g)/(2*m*b)))/2),x=h/b,S=h/m;Math.abs(x-1)>ci&&this._append`L${t+x*c},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*y>c*v)},${this._x1=t+S*s},${this._y1=r+S*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),s=n*Math.sin(i),u=t+l,c=r+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>ci||Math.abs(this._y1-c)>ci)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%Sp+Sp),d>f4?this._append`A${n},${n},0,1,${f},${t-l},${r-s}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>ci&&this._append`A${n},${n},0,${+(d>=wp)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Qm(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new h4(t)}function Zm(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xO(e){this._context=e}xO.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 bf(e){return new xO(e)}function wO(e){return e[0]}function SO(e){return e[1]}function _O(e,t){var r=ke(!0),n=null,i=bf,a=null,o=Qm(l);e=typeof e=="function"?e:e===void 0?wO:ke(e),t=typeof t=="function"?t:t===void 0?SO:ke(t);function l(s){var u,c=(s=Zm(s)).length,f,d=!1,y;for(n==null&&(a=i(y=o())),u=0;u<=c;++u)!(u=y;--v)l.point(h[v],x[v]);l.lineEnd(),l.areaEnd()}m&&(h[d]=+e(g,d,f),x[d]=+t(g,d,f),l.point(n?+n(g,d,f):h[d],r?+r(g,d,f):x[d]))}if(b)return l=null,b+""||null}function c(){return _O().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:ke(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ke(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ke(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:ke(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ke(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ke(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:ke(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),u):a},u}class OO{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function p4(e){return new OO(e,!0)}function v4(e){return new OO(e,!1)}const Jm={draw(e,t){const r=Er(t/Zu);e.moveTo(r,0),e.arc(0,0,r,0,yf)}},m4={draw(e,t){const r=Er(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},kO=Er(1/3),g4=kO*2,y4={draw(e,t){const r=Er(t/g4),n=r*kO;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},b4={draw(e,t){const r=Er(t),n=-r/2;e.rect(n,n,r,r)}},x4=.8908130915292852,AO=Qu(Zu/10)/Qu(7*Zu/10),w4=Qu(yf/10)*AO,S4=-yO(yf/10)*AO,_4={draw(e,t){const r=Er(t*x4),n=w4*r,i=S4*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=yf*a/5,l=yO(o),s=Qu(o);e.lineTo(s*r,-l*r),e.lineTo(l*n-s*i,s*n+l*i)}e.closePath()}},Cd=Er(3),O4={draw(e,t){const r=-Er(t/(Cd*3));e.moveTo(0,r*2),e.lineTo(-Cd*r,-r),e.lineTo(Cd*r,-r),e.closePath()}},nr=-.5,ir=Er(3)/2,_p=1/Er(12),k4=(_p/2+1)*3,A4={draw(e,t){const r=Er(t/k4),n=r/2,i=r*_p,a=n,o=r*_p+r,l=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(nr*n-ir*i,ir*n+nr*i),e.lineTo(nr*a-ir*o,ir*a+nr*o),e.lineTo(nr*l-ir*s,ir*l+nr*s),e.lineTo(nr*n+ir*i,nr*i-ir*n),e.lineTo(nr*a+ir*o,nr*o-ir*a),e.lineTo(nr*l+ir*s,nr*s-ir*l),e.closePath()}};function E4(e,t){let r=null,n=Qm(i);e=typeof e=="function"?e:ke(e||Jm),t=typeof t=="function"?t:ke(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ke(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ke(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ju(){}function ec(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function EO(e){this._context=e}EO.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:ec(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:ec(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function P4(e){return new EO(e)}function PO(e){this._context=e}PO.prototype={areaStart:Ju,areaEnd:Ju,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:ec(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function T4(e){return new PO(e)}function TO(e){this._context=e}TO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ec(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $4(e){return new TO(e)}function $O(e){this._context=e}$O.prototype={areaStart:Ju,areaEnd:Ju,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 C4(e){return new $O(e)}function J0(e){return e<0?-1:1}function e1(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(J0(a)+J0(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function t1(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Md(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function tc(e){this._context=e}tc.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:Md(this,this._t0,t1(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Md(this,t1(this,r=e1(this,e,t)),r);break;default:Md(this,this._t0,r=e1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function CO(e){this._context=new MO(e)}(CO.prototype=Object.create(tc.prototype)).point=function(e,t){tc.prototype.point.call(this,t,e)};function MO(e){this._context=e}MO.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function M4(e){return new tc(e)}function I4(e){return new CO(e)}function IO(e){this._context=e}IO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=r1(e),i=r1(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function N4(e){return new xf(e,.5)}function j4(e){return new xf(e,0)}function L4(e){return new xf(e,1)}function Ta(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r=0;)r[t]=t;return r}function D4(e,t){return e[t]}function F4(e){const t=[];return t.key=e,t}function B4(){var e=ke([]),t=Op,r=Ta,n=D4;function i(a){var o=Array.from(e.apply(this,arguments),F4),l,s=o.length,u=-1,c;for(const f of a)for(l=0,++u;l0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;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 rc(e){return rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rc(e)}function wl(e,t,r){return t=NO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NO(e){var t=nL(e,"string");return $a(t)==="symbol"?t:String(t)}function nL(e,t){if($a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ar=32,tg=function(e){Z4(r,e);var t=J4(r);function r(){return X4(this,r),t.apply(this,arguments)}return Q4(r,[{key:"renderIcon",value:function(i){var a=this.props.inactiveColor,o=ar/2,l=ar/6,s=ar/3,u=i.inactive?a:i.color;if(i.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:i.payload.strokeDasharray,x1:0,y1:o,x2:ar,y2:o,className:"recharts-legend-icon"});if(i.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(s,` A`).concat(l,",").concat(l,",0,1,1,").concat(2*s,",").concat(o,` H`).concat(ar,"M").concat(2*s,",").concat(o,` A`).concat(l,",").concat(l,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(i.type==="rect")return T.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(ar/8,"h").concat(ar,"v").concat(ar*3/4,"h").concat(-ar,"z"),className:"recharts-legend-icon"});if(T.isValidElement(i.legendIcon)){var c=Y4({},i);return delete c.legendIcon,T.cloneElement(i.legendIcon,c)}return T.createElement(eg,{fill:u,cx:o,cy:o,size:ar,sizeType:"diameter",type:i.type})}},{key:"renderItems",value:function(){var i=this,a=this.props,o=a.payload,l=a.iconSize,s=a.layout,u=a.formatter,c=a.inactiveColor,f={x:0,y:0,width:ar,height:ar},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,p){var g,m=v.formatter||u,b=Oe((g={"recharts-legend-item":!0},wl(g,"legend-item-".concat(p),!0),wl(g,"inactive",v.inactive),g));if(v.type==="none")return null;var h=v.inactive?c:v.color;return T.createElement("li",Ap({className:b,style:d,key:"legend-item-".concat(p)},ls(i.props,v,p)),T.createElement(dp,{width:l,height:l,viewBox:f,style:y},i.renderIcon(v)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},m?m(v.value,v,p):v.value))})}},{key:"render",value:function(){var i=this.props,a=i.payload,o=i.layout,l=i.align;if(!a||!a.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?l:"left"};return T.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}]),r}(k.PureComponent);wl(tg,"displayName","Legend");wl(tg,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function Ca(e){"@babel/helpers - typeof";return Ca=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},Ca(e)}var iL=["ref"];function a1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fi(e){for(var t=1;t"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 nc(e){return nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nc(e)}function wf(e,t,r){return t=LO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LO(e){var t=fL(e,"string");return Ca(t)==="symbol"?t:String(t)}function fL(e,t){if(Ca(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ca(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dL(e,t){if(e==null)return{};var r=hL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hL(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function pL(e){return e.value}function vL(e,t){return e===!0?Xu(t,pL):te(e)?Xu(t,e):t}function mL(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(te(e))return T.createElement(e,t);t.ref;var r=dL(t,iL);return T.createElement(tg,r)}var l1=1,Sl=function(e){lL(r,e);var t=sL(r);function r(){var n;aL(this,r);for(var i=arguments.length,a=new Array(i),o=0;o=0&&o>=0?{width:a,height:o}:null}},{key:"getDefaultPosition",value:function(i){var a=this.props,o=a.layout,l=a.align,s=a.verticalAlign,u=a.margin,c=a.chartWidth,f=a.chartHeight,d,y;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(l==="center"&&o==="vertical"){var v=this.getBBoxSnapshot()||{width:0};d={left:((c||0)-v.width)/2}}else d=l==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(s==="middle"){var p=this.getBBoxSnapshot()||{height:0};y={top:((f||0)-p.height)/2}}else y=s==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Fi(Fi({},d),y)}},{key:"updateBBox",value:function(){var i=this.state,a=i.boxWidth,o=i.boxHeight,l=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var s=this.wrapperNode.getBoundingClientRect();(Math.abs(s.width-a)>l1||Math.abs(s.height-o)>l1)&&this.setState({boxWidth:s.width,boxHeight:s.height},function(){l&&l(s)})}else(a!==-1||o!==-1)&&this.setState({boxWidth:-1,boxHeight:-1},function(){l&&l(null)})}},{key:"render",value:function(){var i=this,a=this.props,o=a.content,l=a.width,s=a.height,u=a.wrapperStyle,c=a.payloadUniqBy,f=a.payload,d=Fi(Fi({position:"absolute",width:l||"auto",height:s||"auto"},this.getDefaultPosition(u)),u);return T.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){i.wrapperNode=v}},mL(o,Fi(Fi({},this.props),{},{payload:vL(c,f)})))}}],[{key:"getWithHeight",value:function(i,a){var o=i.props.layout;return o==="vertical"&&W(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||a}:null}}]),r}(k.PureComponent);wf(Sl,"displayName","Legend");wf(Sl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var DO={exports:{}},gL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yL=gL,bL=yL;function FO(){}function BO(){}BO.resetWarningCache=FO;var xL=function(){function e(n,i,a,o,l,s){if(s!==bL){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:BO,resetWarningCache:FO};return r.PropTypes=r,r};DO.exports=xL();var wL=DO.exports;const oe=ve(wL);var SL=Object.getOwnPropertyNames,_L=Object.getOwnPropertySymbols,OL=Object.prototype.hasOwnProperty;function s1(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Ws(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),l=a.get(n);if(o&&l)return o===n&&l===r;a.set(r,n),a.set(n,r);var s=e(r,n,i);return a.delete(r),a.delete(n),s}}function u1(e){return SL(e).concat(_L(e))}var zO=Object.hasOwn||function(e,t){return OL.call(e,t)};function ao(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var UO="_owner",c1=Object.getOwnPropertyDescriptor,f1=Object.keys;function kL(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function AL(e,t){return ao(e.getTime(),t.getTime())}function d1(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),a=0,o,l;(o=i.next())&&!o.done;){for(var s=t.entries(),u=!1,c=0;(l=s.next())&&!l.done;){var f=o.value,d=f[0],y=f[1],v=l.value,p=v[0],g=v[1];!u&&!n[c]&&(u=r.equals(d,p,a,c,e,t,r)&&r.equals(y,g,d,p,e,t,r))&&(n[c]=!0),c++}if(!u)return!1;a++}return!0}function EL(e,t,r){var n=f1(e),i=n.length;if(f1(t).length!==i)return!1;for(var a;i-- >0;)if(a=n[i],a===UO&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!zO(t,a)||!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function So(e,t,r){var n=u1(e),i=n.length;if(u1(t).length!==i)return!1;for(var a,o,l;i-- >0;)if(a=n[i],a===UO&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!zO(t,a)||!r.equals(e[a],t[a],a,a,e,t,r)||(o=c1(e,a),l=c1(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function PL(e,t){return ao(e.valueOf(),t.valueOf())}function TL(e,t){return e.source===t.source&&e.flags===t.flags}function h1(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var l=t.values(),s=!1,u=0;(o=l.next())&&!o.done;)!s&&!n[u]&&(s=r.equals(a.value,o.value,a.value,o.value,e,t,r))&&(n[u]=!0),u++;if(!s)return!1}return!0}function $L(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var CL="[object Arguments]",ML="[object Boolean]",IL="[object Date]",RL="[object Map]",NL="[object Number]",jL="[object Object]",LL="[object RegExp]",DL="[object Set]",FL="[object String]",BL=Array.isArray,p1=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,v1=Object.assign,zL=Object.prototype.toString.call.bind(Object.prototype.toString);function UL(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,l=e.areSetsEqual,s=e.areTypedArraysEqual;return function(c,f,d){if(c===f)return!0;if(c==null||f==null||typeof c!="object"||typeof f!="object")return c!==c&&f!==f;var y=c.constructor;if(y!==f.constructor)return!1;if(y===Object)return i(c,f,d);if(BL(c))return t(c,f,d);if(p1!=null&&p1(c))return s(c,f,d);if(y===Date)return r(c,f,d);if(y===RegExp)return o(c,f,d);if(y===Map)return n(c,f,d);if(y===Set)return l(c,f,d);var v=zL(c);return v===IL?r(c,f,d):v===LL?o(c,f,d):v===RL?n(c,f,d):v===DL?l(c,f,d):v===jL?typeof c.then!="function"&&typeof f.then!="function"&&i(c,f,d):v===CL?i(c,f,d):v===ML||v===NL||v===FL?a(c,f,d):!1}}function HL(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?So:kL,areDatesEqual:AL,areMapsEqual:n?s1(d1,So):d1,areObjectsEqual:n?So:EL,arePrimitiveWrappersEqual:PL,areRegExpsEqual:TL,areSetsEqual:n?s1(h1,So):h1,areTypedArraysEqual:n?So:$L};if(r&&(i=v1({},i,r(i))),t){var a=Ws(i.areArraysEqual),o=Ws(i.areMapsEqual),l=Ws(i.areObjectsEqual),s=Ws(i.areSetsEqual);i=v1({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:s})}return i}function WL(e){return function(t,r,n,i,a,o,l){return e(t,r,l)}}function VL(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(s,u){var c=n(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,y=c.meta;return r(s,u,{cache:d,equals:i,meta:y,strict:a})};if(t)return function(s,u){return r(s,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,u){return r(s,u,o)}}var GL=ei();ei({strict:!0});ei({circular:!0});ei({circular:!0,strict:!0});ei({createInternalComparator:function(){return ao}});ei({strict:!0,createInternalComparator:function(){return ao}});ei({circular:!0,createInternalComparator:function(){return ao}});ei({circular:!0,createInternalComparator:function(){return ao},strict:!0});function ei(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,l=HL(e),s=UL(l),u=n?n(s):WL(s);return VL({circular:r,comparator:s,createState:i,equals:u,strict:o})}function m1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):requestAnimationFrame(i)};requestAnimationFrame(n)}function Tp(e){"@babel/helpers - typeof";return Tp=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},Tp(e)}function qL(e){return QL(e)||XL(e)||YL(e)||KL()}function KL(){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 YL(e,t){if(e){if(typeof e=="string")return g1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g1(e,t)}}function g1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:m<0?0:m},p=function(m){for(var b=m>1?1:m,h=b,x=0;x<8;++x){var S=f(h)-b,w=y(h);if(Math.abs(S-b)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,s=function(c,f,d){var y=-(c-f)*n,v=d*a,p=d+(y-v)*l/1e3,g=d*l/1e3+c;return Math.abs(g-f)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MD(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Id(e){return jD(e)||ND(e)||RD(e)||ID()}function ID(){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 RD(e,t){if(e){if(typeof e=="string")return Np(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Np(e,t)}}function ND(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jD(e){if(Array.isArray(e))return Np(e)}function Np(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"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 lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lc(e)}var Ra=function(e){BD(r,e);var t=zD(r);function r(n,i){var a;LD(this,r),a=t.call(this,n,i);var o=a.props,l=o.isActive,s=o.attributeName,u=o.from,c=o.to,f=o.steps,d=o.children,y=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Dp(a)),a.changeStyle=a.changeStyle.bind(Dp(a)),!l||y<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:c}),Lp(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},Lp(a);a.state={style:s?Fo({},s,u):u}}else a.state={style:{}};return a}return DD(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,l=a.canBegin,s=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,d=this.state.style;if(l){if(!o){var y={style:s?Fo({},s,c):c};this.state&&d&&(s&&d[s]!==c||!s&&d!==c)&&this.setState(y);return}if(!(GL(i.to,c)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=v||u?f:i.to;if(this.state&&d){var g={style:s?Fo({},s,p):p};(s&&[s]!==p||!s&&d!==p)&&this.setState(g)}this.runAnimation(yr(yr({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,l=i.to,s=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,y=TD(o,l,yD(u),s,this.changeStyle),v=function(){a.stopJSAnimation=y()};this.manager.start([d,c,v,s,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,s=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,d=f===void 0?0:f,y=function(p,g,m){if(m===0)return p;var b=g.duration,h=g.easing,x=h===void 0?"ease":h,S=g.style,w=g.properties,_=g.onAnimationEnd,O=m>0?o[m-1]:g,P=w||Object.keys(S);if(typeof x=="function"||x==="spring")return[].concat(Id(p),[a.runJSAnimation.bind(a,{from:O.style,to:S,duration:b,easing:x}),b]);var A=b1(P,b,x),E=yr(yr(yr({},O.style),S),{},{transition:A});return[].concat(Id(p),[E,b,_]).filter(aD)};return this.manager.start([s].concat(Id(o.reduce(y,[c,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=ZL());var a=i.begin,o=i.duration,l=i.attributeName,s=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,y=i.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof u=="function"||typeof y=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=l?Fo({},l,s):s,g=b1(Object.keys(p),o,u);v.start([c,a,yr(yr({},p),{},{transition:g}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=CD(i,$D),u=k.Children.count(a),c=$p(this.state.style);if(typeof a=="function")return a(c);if(!l||u===0||o<=0)return a;var f=function(y){var v=y.props,p=v.style,g=p===void 0?{}:p,m=v.className,b=k.cloneElement(y,yr(yr({},s),{},{style:yr(yr({},g),c),className:m}));return b};return u===1?f(k.Children.only(a)):T.createElement("div",null,k.Children.map(a,function(d){return f(d)}))}}]),r}(k.PureComponent);Ra.displayName="Animate";Ra.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ra.propTypes={from:oe.oneOfType([oe.object,oe.string]),to:oe.oneOfType([oe.object,oe.string]),attributeName:oe.string,duration:oe.number,begin:oe.number,easing:oe.oneOfType([oe.string,oe.func]),steps:oe.arrayOf(oe.shape({duration:oe.number.isRequired,style:oe.object.isRequired,easing:oe.oneOfType([oe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),oe.func]),properties:oe.arrayOf("string"),onAnimationEnd:oe.func})),children:oe.oneOfType([oe.node,oe.func]),isActive:oe.bool,canBegin:oe.bool,onAnimationEnd:oe.func,shouldReAnimate:oe.bool,onAnimationStart:oe.func,onAnimationReStart:oe.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});oe.object,oe.object,oe.object,oe.element;oe.object,oe.object,oe.object,oe.oneOfType([oe.array,oe.element]),oe.any;var A1=is,HD=qm,WD=Pt,E1=A1?A1.isConcatSpreadable:void 0;function VD(e){return WD(e)||HD(e)||!!(E1&&e&&e[E1])}var GD=VD,qD=J_,KD=GD;function KO(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=KD),i||(i=[]);++a0&&r(l)?t>1?KO(l,t-1,r,n,i):qD(i,l):n||(i[i.length]=l)}return i}var YO=KO;function YD(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),l=o.length;l--;){var s=o[e?l:++i];if(r(a[s],s,a)===!1)break}return t}}var XD=YD,QD=XD,ZD=QD(),JD=ZD,e8=JD,t8=mf;function r8(e,t){return e&&e8(e,t,t8)}var XO=r8,n8=ss;function i8(e,t){return function(r,n){if(r==null)return r;if(!n8(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&s&&!l&&!u||n&&o&&s||!r&&s||!i)return 1;if(!n&&!a&&!u&&e=l)return s;var u=r[n];return s*(u=="desc"?-1:1)}}return e.index-t.index}var y8=g8,Rd=Fm,b8=Bm,x8=Gr,w8=QO,S8=h8,_8=rO,O8=y8,k8=io,A8=Pt;function E8(e,t,r){t.length?t=Rd(t,function(a){return A8(a)?function(o){return b8(o,a.length===1?a[0]:a)}:a}):t=[k8];var n=-1;t=Rd(t,_8(x8));var i=w8(e,function(a,o,l){var s=Rd(t,function(u){return u(a)});return{criteria:s,index:++n,value:a}});return S8(i,function(a,o){return O8(a,o,r)})}var P8=E8;function T8(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var $8=T8,C8=$8,T1=Math.max;function M8(e,t,r){return t=T1(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=T1(n.length-t,0),o=Array(a);++i0){if(++t>=U8)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var G8=V8,q8=z8,K8=G8,Y8=K8(q8),X8=Y8,Q8=io,Z8=I8,J8=X8;function e6(e,t){return J8(Z8(e,t,Q8),e+"")}var t6=e6,r6=Nm,n6=ss,i6=Km,a6=Jn;function o6(e,t,r){if(!a6(r))return!1;var n=typeof t;return(n=="number"?n6(r)&&i6(t,r.length):n=="string"&&t in r)?r6(r[t],e):!1}var Sf=o6,l6=YO,s6=P8,u6=t6,C1=Sf,c6=u6(function(e,t){if(e==null)return[];var r=t.length;return r>1&&C1(e,t[0],t[1])?t=[]:r>2&&C1(t[0],t[1],t[2])&&(t=[t[0]]),s6(e,l6(t,1),[])}),f6=c6;const ng=ve(f6);function kl(e){"@babel/helpers - typeof";return kl=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},kl(e)}function d6(e,t){return m6(e)||v6(e,t)||p6(e,t)||h6()}function h6(){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 p6(e,t){if(e){if(typeof e=="string")return M1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M1(e,t)}}function M1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);rj1||Math.abs(q.height-u)>j1)&&(o(q.width),c(q.height))}else(a!==-1||u!==-1)&&(o(-1),c(-1))};return ie(),function(){document.removeEventListener("keydown",A)}},[u,a,w,y,m.x,m.y,A]);var E=function(F){var q=F.key,re=F.tooltipDimension,L=F.viewBoxDimension;if(O&&W(O[q]))return O[q];var fe=w[q]-re-_,le=w[q]+_;if(x!=null&&x[q])return S[q]?fe:le;if(S!=null&&S[q]){var Pe=fe,ze=P[q];return Peii?Math.max(fe,P[q]):Math.max(le,P[q])},C=t.payload,$=t.payloadUniqBy,N=t.filterNull,I=t.active,H=t.wrapperStyle,U=t.useTranslate3d,M=t.isAnimationActive,R=t.animationDuration,B=t.animationEasing,G=$6($,N&&C&&C.length?C.filter(function(ie){return!ee(ie.value)}):C),X=G&&G.length,Q=t.content,V=qr({pointerEvents:"none",visibility:!y&&I&&X?"visible":"hidden",position:"absolute",top:0,left:0},H),Z,ne;O&&W(O.x)&&W(O.y)?(Z=O.x,ne=O.y):a>0&&u>0&&w?(Z=E({key:"x",tooltipDimension:a,viewBoxDimension:P.width}),ne=E({key:"y",tooltipDimension:u,viewBoxDimension:P.height})):V.visibility="hidden",V=qr(qr({},$p({transform:U?"translate3d(".concat(Z,"px, ").concat(ne,"px, 0)"):"translate(".concat(Z,"px, ").concat(ne,"px)")})),V),M&&I&&(V=qr(qr({},$p({transition:"transform ".concat(R,"ms ").concat(B)})),V));var Se=Oe(_o,(r={},Bo(r,"".concat(_o,"-right"),W(Z)&&w&&W(w.x)&&Z>=w.x),Bo(r,"".concat(_o,"-left"),W(Z)&&w&&W(w.x)&&Z=w.y),Bo(r,"".concat(_o,"-top"),W(ne)&&w&&W(w.y)&&ne=t||_<0||f&&O>=a}function m(){var w=jd();if(g(w))return b(w);l=setTimeout(m,p(w))}function b(w){return l=void 0,d&&n?y(w):(n=i=void 0,o)}function h(){l!==void 0&&clearTimeout(l),u=0,n=s=i=l=void 0}function x(){return l===void 0?o:b(jd())}function S(){var w=jd(),_=g(w);if(n=arguments,i=this,s=w,_){if(l===void 0)return v(s);if(f)return clearTimeout(l),l=setTimeout(m,t),y(s)}return l===void 0&&(l=setTimeout(m,t)),o}return S.cancel=h,S.flush=x,S}var ek=eF;const tk=ve(ek);var tF=ek,rF=Jn,nF="Expected a function";function iF(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(nF);return rF(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),tF(e,t,{leading:n,maxWait:t,trailing:i})}var aF=iF;const ig=ve(aF);var Fp=function(e,t){return Fp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Fp(e,t)};function oF(e,t){Fp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function lF(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i"u"},z1=function(e){return e instanceof Element||e instanceof HTMLDocument},uF=function(e,t,r){return function(n){var i=n.width,a=n.height;e(function(o){return o.width===i&&o.height===a||o.width===i&&!r||o.height===a&&!t?o:{width:i,height:a}})}},cF=function(e){oF(t,e);function t(r){var n=e.call(this,r)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var u=n.props,c=u.targetRef,f=u.observerOptions;if(!Oo()){c&&c.current&&(n.targetRef.current=c.current);var d=n.getElement();d&&(n.observableElement&&n.observableElement===d||(n.observableElement=d,n.resizeObserver.observe(d,f)))}},n.getElement=function(){var u=n.props,c=u.querySelector,f=u.targetDomEl;if(Oo())return null;if(c)return document.querySelector(c);if(f&&z1(f))return f;if(n.targetRef&&z1(n.targetRef.current))return n.targetRef.current;var d=Mm.findDOMNode(n);if(!d)return null;var y=n.getRenderType();switch(y){case"renderProp":return d;case"childFunction":return d;case"child":return d;case"childArray":return d;default:return d.parentElement}},n.createResizeHandler=function(u){var c=n.props,f=c.handleWidth,d=f===void 0?!0:f,y=c.handleHeight,v=y===void 0?!0:y,p=c.onResize;if(!(!d&&!v)){var g=uF(function(m){return n.setState(m,function(){return p==null?void 0:p(n.state.width,n.state.height)})},d,v);u.forEach(function(m){var b=m&&m.contentRect||{},h=b.width,x=b.height,S=!n.skipOnMount&&!Oo();S&&g({width:h,height:x}),n.skipOnMount=!1})}},n.getRenderType=function(){var u=n.props,c=u.render,f=u.children;return B1(c)?"renderProp":B1(f)?"childFunction":k.isValidElement(f)?"child":Array.isArray(f)?"childArray":"parent"};var i=r.skipOnMount,a=r.refreshMode,o=r.refreshRate,l=o===void 0?1e3:o,s=r.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=i,n.targetRef=k.createRef(),n.observableElement=null,Oo()||(n.resizeHandler=sF(n.createResizeHandler,a,l,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){Oo()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var r=this.props,n=r.render,i=r.children,a=r.nodeType,o=a===void 0?"div":a,l=this.state,s=l.width,u=l.height,c={width:s,height:u,targetRef:this.targetRef},f=this.getRenderType();switch(f){case"renderProp":return n==null?void 0:n(c);case"childFunction":{var d=i;return d==null?void 0:d(c)}case"child":{var y=i;if(y.type&&typeof y.type=="string"){c.targetRef;var v=lF(c,["targetRef"]);return k.cloneElement(y,v)}return k.cloneElement(y,c)}case"childArray":{var p=i;return p.map(function(g){return!!g&&k.cloneElement(g,c)})}default:return T.createElement(o,null)}},t}(k.PureComponent),Un=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,"The aspect(%s) must be greater than zero.",r);var N=gi(o)?C:o,I=gi(s)?$:s;return r&&r>0&&(N?I=N/r:I&&(N=I*r),d&&I>d&&(I=d)),Un(N>0||I>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.`,N,I,o,s,c,f,r),k.cloneElement(y,{width:N,height:I})},[r,y,s,d,f,c,S,o]);k.useEffect(function(){var C=O();C&&w(C)},[O]);var E={width:o,height:s,minWidth:c,minHeight:f,maxHeight:d};return T.createElement(cF,{handleWidth:!0,handleHeight:!0,onResize:P,targetRef:_,refreshMode:p>0?"debounce":void 0,refreshRate:p},T.createElement("div",Bp({},g!=null?{id:"".concat(g)}:{},{className:Oe("recharts-responsive-container",m),style:E,ref:_}),A))}),ag=function(t){return null};ag.displayName="Cell";var zp={exports:{}},Ld="(".charCodeAt(0),Dd=")".charCodeAt(0),Gs="'".charCodeAt(0),Fd='"'.charCodeAt(0),Bd="\\".charCodeAt(0),qs="/".charCodeAt(0),zd=",".charCodeAt(0),Ud=":".charCodeAt(0),H1="*".charCodeAt(0),gF=function(e){for(var t=[],r=e,n,i,a,o,l,s,u,c=0,f=r.charCodeAt(c),d=r.length,y=[{nodes:t}],v=0,p,g="",m="",b="";c=48&&f<=57)c=!0;else if(f===n||f===i){if(u>-1)break;u=o}else if(f===r){if(s)break;s=!0}else if(f===t||f===e){if(o!==0)break}else break;o+=1}return u+1===o&&o--,c?{number:a.slice(0,o),unit:a.slice(o)}:!1},Hd}var wF=gF,nk=yF,ik=bF;function qn(e){return this instanceof qn?(this.nodes=wF(e),this):new qn(e)}qn.prototype.toString=function(){return Array.isArray(this.nodes)?ik(this.nodes):""};qn.prototype.walk=function(e,t){return nk(this.nodes,e,t),this};qn.unit=xF();qn.walk=nk;qn.stringify=ik;var SF=qn;function _F(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ak={};(function(e){var t=function(){function r(d,y){Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),d==null&&(d="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:d}),this.hash=y;var v;if(y&&y.exception instanceof Error){var p=y.exception;this.message=p.message||d,v=p.stack}v||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):v=new Error(d).stack),v&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:v})}typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(r.prototype,Error.prototype):r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.name="JisonParserError";function n(d){for(var y=[],v=d.pop,p=d.rule,g=0,m=v.length;g"u"&&Object.prototype.hasOwnProperty.call(F,q)&&(ie[q]=F[q])}P(O,this.yy),O.lexer=_,O.parser=this,typeof O.parseError=="function"?this.parseError=function(F,q,re){return re||(re=this.JisonParserError),O.parseError.call(this,F,q,re)}:this.parseError=this.originalParseError,typeof O.quoteName=="function"?this.quoteName=function(F){return O.quoteName.call(this,F)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(F,q,re){var L;if(q){var fe;(O.post_parse||this.post_parse)&&(fe=this.constructParseErrorInfo(null,null,null,!1)),O.post_parse&&(L=O.post_parse.call(this,O,F,fe),typeof L<"u"&&(F=L)),this.post_parse&&(L=this.post_parse.call(this,O,F,fe),typeof L<"u"&&(F=L)),fe&&fe.destroy&&fe.destroy()}if(this.__reentrant_call_depth>1)return F;if(_.cleanupAfterLex&&_.cleanupAfterLex(re),O&&(O.lexer=void 0,O.parser=void 0,_.yy===O&&(_.yy=void 0)),O=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,p.length=0,g.length=0,m.length=0,h=0,!re){for(var le=this.__error_infos.length-1;le>=0;le--){var Pe=this.__error_infos[le];Pe&&typeof Pe.destroy=="function"&&Pe.destroy()}this.__error_infos.length=0}return F},this.constructParseErrorInfo=function(F,q,re,L){var fe={errStr:F,exception:q,text:_.match,value:_.yytext,token:this.describeSymbol(x)||x,token_id:x,line:_.yylineno,expected:re,recoverable:L,state:$,action:N,new_state:G,symbol_stack:p,state_stack:g,value_stack:m,stack_pointer:h,yy:O,lexer:_,parser:this,destroy:function(){var Pe=!!this.recoverable;for(var ze in this)this.hasOwnProperty(ze)&&typeof ze=="object"&&(this[ze]=void 0);this.recoverable=Pe}};return this.__error_infos.push(fe),fe};function A(){var ie=_.lex();return typeof ie!="number"&&(ie=v.symbols_[ie]||ie),ie||S}function E(){var ie=_.fastLex();return typeof ie!="number"&&(ie=v.symbols_[ie]||ie),ie||S}var C=A,$,N,I,H,U={$:!0,_$:void 0,yy:O},M,R,B,G,X=!1;try{if(this.__reentrant_call_depth++,_.setInput(y,O),typeof _.canIUse=="function"){var Q=_.canIUse();Q.fastLex&&typeof E=="function"&&(C=E)}for(m[h]=null,g[h]=0,p[h]=0,++h,this.pre_parse&&this.pre_parse.call(this,O),O.pre_parse&&O.pre_parse.call(this,O),G=g[h-1];;){if($=G,this.defaultActions[$])N=2,G=this.defaultActions[$];else if(x||(x=C()),H=b[$]&&b[$][x]||w,G=H[1],N=H[0],!N){var V,Z=this.describeSymbol(x)||x,ne=this.collect_expected_token_set($);typeof _.yylineno=="number"?V="Parse error on line "+(_.yylineno+1)+": ":V="Parse error: ",typeof _.showPosition=="function"&&(V+=` `+_.showPosition(79-10,10)+` `),ne.length?V+="Expecting "+ne.join(", ")+", got unexpected "+Z:V+="Unexpected "+Z,M=this.constructParseErrorInfo(V,null,ne,!1),I=this.parseError(M.errStr,M,this.JisonParserError),typeof I<"u"&&(X=I);break}switch(N){default:if(N instanceof Array){M=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+$+", token: "+x,null,null,!1),I=this.parseError(M.errStr,M,this.JisonParserError),typeof I<"u"&&(X=I);break}M=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),I=this.parseError(M.errStr,M,this.JisonParserError),typeof I<"u"&&(X=I);break;case 1:p[h]=x,m[h]=_.yytext,g[h]=G,++h,x=0;continue;case 2:if(B=this.productions_[G-1],R=B[1],I=this.performAction.call(U,G,h-1,m),typeof I<"u"){X=I;break}h-=R;var Se=B[0];p[h]=Se,m[h]=U.$,G=b[g[h-1]][Se],g[h]=G,++h;continue;case 3:h!==-2&&(X=!0,h--,typeof m[h]<"u"&&(X=m[h]));break}break}}catch(ie){if(ie instanceof this.JisonParserError)throw ie;if(_&&typeof _.JisonLexerError=="function"&&ie instanceof _.JisonLexerError)throw ie;M=this.constructParseErrorInfo("Parsing aborted due to exception.",ie,null,!1),X=!1,I=this.parseError(M.errStr,M,this.JisonParserError),typeof I<"u"&&(X=I)}finally{X=this.cleanupAfterParse(X,!0,!0),this.__reentrant_call_depth--}return X}};u.originalParseError=u.parseError,u.originalQuoteName=u.quoteName;var c=function(){function d(v,p){Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),v==null&&(v="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:v}),this.hash=p;var g;if(p&&p.exception instanceof Error){var m=p.exception;this.message=m.message||v,g=m.stack}g||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):g=new Error(v).stack),g&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:g})}typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(d.prototype,Error.prototype):d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.name="JisonLexerError";var y={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(p,g,m){if(p=""+p,m==null&&(m=!(p.indexOf(` `)>0&&p.indexOf("^")>0)),this.yylloc&&m){if(typeof this.prettyPrintRange=="function")this.prettyPrintRange(this.yylloc),/\n\s*$/.test(p)||(p+=` `),p+=` Erroneous area: `+this.prettyPrintRange(this.yylloc);else if(typeof this.showPosition=="function"){var b=this.showPosition();b&&(p.length&&p[p.length-1]!==` `&&b[0]!==` `?p+=` `+b:p+=b)}}var h={errStr:p,recoverable:!!g,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var S=!!this.recoverable;for(var w in this)this.hasOwnProperty(w)&&typeof w=="object"&&(this[w]=void 0);this.recoverable=S}};return this.__error_infos.push(h),h},parseError:function(p,g,m){if(m||(m=this.JisonLexerError),this.yy){if(this.yy.parser&&typeof this.yy.parser.parseError=="function")return this.yy.parser.parseError.call(this,p,g,m)||this.ERROR;if(typeof this.yy.parseError=="function")return this.yy.parseError.call(this,p,g,m)||this.ERROR}throw new m(p,g)},yyerror:function(p){var g="";this.yylloc&&(g=" on line "+(this.yylineno+1));var m=this.constructLexErrorInfo("Lexical error"+g+": "+p,this.options.lexerErrorsAreRecoverable),b=Array.prototype.slice.call(arguments,1);return b.length&&(m.extra_error_attributes=b),this.parseError(m.errStr,m,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(p){if(this.setInput("",{}),!p){for(var g=this.__error_infos.length-1;g>=0;g--){var m=this.__error_infos[g];m&&typeof m.destroy=="function"&&m.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var p=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:p,last_line:this.yylineno+1,last_column:p,range:[this.offset,this.offset]}},setInput:function(p,g){if(this.yy=g||this.yy||{},!this.__decompressed){for(var m=this.rules,b=0,h=m.length;b1){this.yylineno-=m.length-1,this.yylloc.last_line=this.yylineno+1;var b=this.match,h=b.split(/(?:\r\n?|\n)/g);h.length===1&&(b=this.matched,h=b.split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=h[h.length-1].length}else this.yylloc.last_column-=g;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var p="";this.yylloc&&(p=" on line "+(this.yylineno+1));var g=this.constructLexErrorInfo("Lexical error"+p+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(g.errStr,g,this.JisonLexerError)||this.ERROR}return this},less:function(p){return this.unput(this.match.slice(p))},pastInput:function(p,g){var m=this.matched.substring(0,this.matched.length-this.match.length);p<0?p=m.length:p||(p=20),g<0?g=m.length:g||(g=1),m=m.substr(-p*2-2);var b=m.replace(/\r\n|\r/g,` `).split(` `);return b=b.slice(-g),m=b.join(` `),m.length>p&&(m="..."+m.substr(-p)),m},upcomingInput:function(p,g){var m=this.match;p<0?p=m.length+this._input.length:p||(p=20),g<0?g=p:g||(g=1),m.lengthp&&(m=m.substring(0,p)+"..."),m},showPosition:function(p,g){var m=this.pastInput(p).replace(/\s/g," "),b=new Array(m.length+1).join("-");return m+this.upcomingInput(g).replace(/\s/g," ")+` `+b+"^"},deriveLocationInfo:function(p,g,m,b){var h={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return p&&(h.first_line=p.first_line|0,h.last_line=p.last_line|0,h.first_column=p.first_column|0,h.last_column=p.last_column|0,p.range&&(h.range[0]=p.range[0]|0,h.range[1]=p.range[1]|0)),(h.first_line<=0||h.last_line=h.first_line)&&(h.last_line=b.last_line|0,h.last_column=b.last_column|0,b.range&&(h.range[1]=b.range[1]|0))),h.last_line<=0&&(h.first_line<=0?(h.first_line=this.yylloc.first_line,h.last_line=this.yylloc.last_line,h.first_column=this.yylloc.first_column,h.last_column=this.yylloc.last_column,h.range[0]=this.yylloc.range[0],h.range[1]=this.yylloc.range[1]):(h.last_line=this.yylloc.last_line,h.last_column=this.yylloc.last_column,h.range[1]=this.yylloc.range[1])),h.first_line<=0&&(h.first_line=h.last_line,h.first_column=0,h.range[1]=h.range[0]),h.first_column<0&&(h.first_column=0),h.last_column<0&&(h.last_column=h.first_column>0?h.first_column:80),h},prettyPrintRange:function(p,g,m){p=this.deriveLocationInfo(p,g,m);const b=3,h=1,x=2;var S=this.matched+this._input,w=S.split(` `),_=Math.max(1,g?g.first_line:p.first_line-b),O=Math.max(1,m?m.last_line:p.last_line+h),P=1+Math.log10(O|1)|0,A=new Array(P).join(" "),E=[],C=w.slice(_-1,O+1).map(function(U,M){var R=M+_,B=(A+R).substr(-P),G=B+": "+U,X=new Array(P+1).join("^"),Q=2+1,V=0;if(R===p.first_line?(Q+=p.first_column,V=Math.max(2,(R===p.last_line?p.last_column:U.length)-p.first_column+1)):R===p.last_line?V=Math.max(2,p.last_column+1):R>p.first_line&&R0&&E.push(M)}return G=G.replace(/\t/g," "),G});if(E.length>2*x){var $=E[x-1]+1,N=E[E.length-x]-1,I=new Array(P+1).join(" ")+" (...continued...)";I+=` `+new Array(P+1).join("-")+" (---------------)",C.splice($,N-$+1,I)}return C.join(` `)},describeYYLLOC:function(p,g){var m=p.first_line,b=p.last_line,h=p.first_column,x=p.last_column,S=b-m,w=x-h,_;if(S===0?(_="line "+m+", ",w<=1?_+="column "+h:_+="columns "+h+" .. "+x):_="lines "+m+"(column "+h+") .. "+b+"(column "+x+")",p.range&&g){var O=p.range[0],P=p.range[1]-1;P<=O?_+=" {String Offset: "+O+"}":_+=" {String Offset range: "+O+" .. "+P+"}"}return _},test_match:function(p,g){var m,b,h,x,S;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),x=p[0],S=x.length,b=x.split(/(?:\r\n?|\n)/g),b.length>1?(this.yylineno+=b.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=b[b.length-1].length):this.yylloc.last_column+=S,this.yytext+=x,this.match+=x,this.matched+=x,this.matches=p,this.yyleng=this.yytext.length,this.yylloc.range[1]+=S,this.offset+=S,this._more=!1,this._backtrack=!1,this._input=this._input.slice(S),m=this.performAction.call(this,this.yy,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var w in h)this[w]=h[w];return this.__currentRuleSet__=null,!1}else if(this._signaled_error_token)return m=this._signaled_error_token,this._signaled_error_token=!1,m;return!1},next:function(){if(this.done)return this.clear(),this.EOF;this._input||(this.done=!0);var p,g,m,b;this._more||this.clear();var h=this.__currentRuleSet__;if(!h&&(h=this.__currentRuleSet__=this._currentRules(),!h||!h.rules)){var x="";this.options.trackPosition&&(x=" on line "+(this.yylineno+1));var S=this.constructLexErrorInfo("Internal lexer engine error"+x+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(S.errStr,S,this.JisonLexerError)||this.ERROR}for(var w=h.rules,_=h.__rule_regexes,O=h.__rule_count,P=1;P<=O;P++)if(m=this._input.match(_[P]),m&&(!g||m[0].length>g[0].length)){if(g=m,b=P,this.options.backtrack_lexer){if(p=this.test_match(m,w[P]),p!==!1)return p;if(this._backtrack){g=void 0;continue}else return!1}else if(!this.options.flex)break}if(g)return p=this.test_match(g,w[b]),p!==!1?p:!1;if(this._input){var x="";this.options.trackPosition&&(x=" on line "+(this.yylineno+1));var S=this.constructLexErrorInfo("Lexical error"+x+": Unrecognized text.",this.options.lexerErrorsAreRecoverable),A=this._input,E=this.topState(),C=this.conditionStack.length;return p=this.parseError(S.errStr,S,this.JisonLexerError)||this.ERROR,p===this.ERROR&&!this.matches&&A===this._input&&E===this.topState()&&C===this.conditionStack.length&&this.input(),p}else return this.done=!0,this.clear(),this.EOF},lex:function(){var p;for(typeof this.pre_lex=="function"&&(p=this.pre_lex.call(this,0)),typeof this.options.pre_lex=="function"&&(p=this.options.pre_lex.call(this,p)||p),this.yy&&typeof this.yy.pre_lex=="function"&&(p=this.yy.pre_lex.call(this,p)||p);!p;)p=this.next();return this.yy&&typeof this.yy.post_lex=="function"&&(p=this.yy.post_lex.call(this,p)||p),typeof this.options.post_lex=="function"&&(p=this.options.post_lex.call(this,p)||p),typeof this.post_lex=="function"&&(p=this.post_lex.call(this,p)||p),p},fastLex:function(){for(var p;!p;)p=this.next();return p},canIUse:function(){var p={fastLex:!(typeof this.pre_lex=="function"||typeof this.options.pre_lex=="function"||this.yy&&typeof this.yy.pre_lex=="function"||this.yy&&typeof this.yy.post_lex=="function"||typeof this.options.post_lex=="function"||typeof this.post_lex=="function")&&typeof this.fastLex=="function"};return p},begin:function(p){return this.pushState(p)},pushState:function(p){return this.conditionStack.push(p),this.__currentRuleSet__=null,this},popState:function(){var p=this.conditionStack.length-1;return p>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:d,performAction:function(p,g,m){switch(g){case 1:break;default:return this.simpleCaseActionClusters[g]}},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return y}();u.lexer=c;function f(){this.yy={}}return f.prototype=u,u.Parser=f,new f}();typeof _F<"u"&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})})(ak);var us={},Up={exports:{}},Wd={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:Math.PI*2},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:1/1e3},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:1/1e3,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},OF=function(e,t,r,n){if(!Wd.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!Wd[r].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+r);var i=Wd[r][t]*e;return n!==!1?(n=Math.pow(10,parseInt(n)||5),Math.round(i*n)/n):i};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=OF,n=i(r);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s,u){switch(l.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return o(l,s,u);default:return{left:l,right:s}}}function o(l,s,u){return s.type===l.type&&(s={type:l.type,value:(0,n.default)(s.value,s.unit,l.unit,u),unit:l.unit}),{left:l,right:s}}t.default=a,e.exports=t.default})(Up,Up.exports);var kF=Up.exports;Object.defineProperty(us,"__esModule",{value:!0});us.flip=Hp;var AF=kF,Vd=EF(AF);function EF(e){return e&&e.__esModule?e:{default:e}}function gt(e,t){return e.type==="MathExpression"?MF(e,t):e.type==="Calc"?gt(e.value,t):e}function G1(e,t){return e.type===t.type&&e.value===t.value}function Ct(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function PF(e,t){var r=(0,Vd.default)(e.left,e.right,t),n=gt(r.left,t),i=gt(r.right,t);return n.type==="MathExpression"&&i.type==="MathExpression"&&(n.operator==="/"&&i.operator==="*"||n.operator==="-"&&i.operator==="+"||n.operator==="*"&&i.operator==="/"||n.operator==="+"&&i.operator==="-")&&(G1(n.right,i.right)?r=(0,Vd.default)(n.left,i.left,t):G1(n.right,i.left)&&(r=(0,Vd.default)(n.left,i.right,t)),n=gt(r.left,t),i=gt(r.right,t)),e.left=n,e.right=i,e}function Hp(e){return e==="+"?"-":"+"}function Wp(e){return Ct(e.type)?e.value=-e.value:e.type=="MathExpression"&&(e.left=Wp(e.left),e.right=Wp(e.right)),e}function TF(e,t){var r=e,n=r.left,i=r.right,a=r.operator;if(n.type==="CssVariable"||i.type==="CssVariable")return e;if(i.value===0)return n;if(n.value===0&&a==="+")return i;if(n.value===0&&a==="-")return Wp(i);if(n.type===i.type&&Ct(n.type)&&(e=Object.assign({},n),a==="+"?e.value=n.value+i.value:e.value=n.value-i.value),Ct(n.type)&&(i.operator==="+"||i.operator==="-")&&i.type==="MathExpression"){if(n.type===i.left.type)return e=Object.assign({},e),e.left=gt({type:"MathExpression",operator:a,left:n,right:i.left},t),e.right=i.right,e.operator=a==="-"?Hp(i.operator):i.operator,gt(e,t);if(n.type===i.right.type)return e=Object.assign({},e),e.left=gt({type:"MathExpression",operator:a==="-"?Hp(i.operator):i.operator,left:n,right:i.right},t),e.right=i.left,gt(e,t)}if(n.type==="MathExpression"&&(n.operator==="+"||n.operator==="-")&&Ct(i.type)){if(i.type===n.left.type)return e=Object.assign({},n),e.left=gt({type:"MathExpression",operator:a,left:n.left,right:i},t),gt(e,t);if(i.type===n.right.type)return e=Object.assign({},n),n.operator==="-"?(e.right=gt({type:"MathExpression",operator:a==="-"?"+":"-",left:i,right:n.right},t),e.operator=a==="-"?"-":"+"):e.right=gt({type:"MathExpression",operator:a,left:n.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator=e.operator==="-"?"+":"-"),gt(e,t)}return e}function $F(e,t){if(!Ct(e.right.type))return e;if(e.right.type!=="Value")throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(e.right.value===0)throw new Error("Cannot divide by zero");return e.left.type==="MathExpression"?Ct(e.left.left.type)&&Ct(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,gt(e.left,t)):e:Ct(e.left.type)?(e.left.value/=e.right.value,e.left):e}function CF(e){if(e.left.type==="MathExpression"&&e.right.type==="Value"){if(Ct(e.left.left.type)&&Ct(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Ct(e.left.type)&&e.right.type==="Value")return e.left.value*=e.right.value,e.left;if(e.left.type==="Value"&&e.right.type==="MathExpression"){if(Ct(e.right.left.type)&&Ct(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if(e.left.type==="Value"&&Ct(e.right.type))return e.right.value*=e.left.value,e.right}return e}function MF(e,t){switch(e=PF(e,t),e.operator){case"+":case"-":return TF(e,t);case"/":return $F(e,t);case"*":return CF(e)}return e}us.default=gt;var Vp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(o,l,s){var u=a(l,s);return l.type==="MathExpression"&&(u=o+"("+u+")"),u};var r=us,n={"*":0,"/":0,"+":1,"-":1};function i(o,l){if(l!==!1){var s=Math.pow(10,l);return Math.round(o*s)/s}return o}function a(o,l){switch(o.type){case"MathExpression":{var s=o.left,u=o.right,c=o.operator,f="";return s.type==="MathExpression"&&n[c]1&&arguments[1]!==void 0?arguments[1]:5;return(0,n.default)(f).walk(function(y){if(!(y.type!=="function"||!c.test(y.value))){var v=n.default.stringify(y.nodes);if(!(v.indexOf("constant")>=0||v.indexOf("env")>=0)){var p=i.parser.parse(v),g=(0,o.default)(p,d);y.type="word",y.value=(0,s.default)(y.value,g,d)}}},!0).toString()},e.exports=t.default})(zp,zp.exports);var RF=zp.exports;const Gd=ve(RF);function El(e){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(e)}function q1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function K1(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0&&t===+t?"".concat(t,"px"):t}function GF(e){var t=e.split(""),r=t.reduce(function(n,i){return i===i.toUpperCase()?[].concat(Y1(n),["-",i.toLowerCase()]):[].concat(Y1(n),[i])},[]);return r.join("")}var qF=function(t){return Object.keys(t).reduce(function(r,n){return"".concat(r).concat(GF(n),":").concat(VF(n,t[n]),";")},"")},Rr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||zn.isSsr)return{width:0,height:0};var n="".concat(t),i=qF(r),a="".concat(n,"-").concat(i);if(Bi.widthCache[a])return Bi.widthCache[a];try{var o=document.getElementById(X1);o||(o=document.createElement("span"),o.setAttribute("id",X1),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var l=K1(K1({},HF),r);Object.keys(l).map(function(c){return o.style[c]=l[c],c}),o.textContent=n;var s=o.getBoundingClientRect(),u={width:s.width,height:s.height};return Bi.widthCache[a]=u,++Bi.cacheCount>UF&&(Bi.cacheCount=0,Bi.widthCache={}),u}catch{return{width:0,height:0}}},KF=function(t){var r=t.ownerDocument.documentElement,n={top:0,left:0};return typeof t.getBoundingClientRect<"u"&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-r.clientTop,left:n.left+window.pageXOffset-r.clientLeft}},YF=function(t,r){return{chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)}},XF=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function qp(){return qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZF(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Q1(e,t){return rB(e)||tB(e,t)||eB(e,t)||JF()}function JF(){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 eB(e,t){if(e){if(typeof e=="string")return Z1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Z1(e,t)}}function Z1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(H,U){var M=U.word,R=U.width,B=H[H.length-1];if(B&&(i==null||a||B.width+R+nU.width?H:U})};if(!c)return y;for(var p="…",g=function(I){var H=f.slice(0,I),U=lk({breakAll:u,style:s,children:H+p}).wordsWithComputedWidth,M=d(U),R=M.length>o||v(M).width>Number(i);return[R,M]},m=0,b=f.length-1,h=0,x;m<=b&&h<=f.length-1;){var S=Math.floor((m+b)/2),w=S-1,_=g(w),O=Q1(_,2),P=O[0],A=O[1],E=g(S),C=Q1(E,1),$=C[0];if(!P&&!$&&(m=S+1),P&&$&&(b=S-1),!P&&$){x=A;break}h++}return x||y},J1=function(t){var r=ee(t)?[]:t.toString().split(ok);return[{words:r}]},iB=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!zn.isSsr){var s,u,c=lk({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;s=f,u=d}else return J1(i);return nB({breakAll:o,children:i,maxLines:l,style:a},s,u,r,n)}return J1(i)},sk={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"},Kn=function(t){var r=k.useMemo(function(){return iB({breakAll:t.breakAll,children:t.children,maxLines:t.maxLines,scaleToFit:t.scaleToFit,style:t.style,width:t.width})},[t.breakAll,t.children,t.maxLines,t.scaleToFit,t.style,t.width]),n=t.dx,i=t.dy,a=t.textAnchor,o=t.verticalAnchor,l=t.scaleToFit,s=t.angle,u=t.lineHeight,c=t.capHeight,f=t.className,d=t.breakAll,y=QF(t,XF);if(!Ze(y.x)||!Ze(y.y))return null;var v=y.x+(W(n)?n:0),p=y.y+(W(i)?i:0),g;switch(o){case"start":g=Gd("calc(".concat(c,")"));break;case"middle":g=Gd("calc(".concat((r.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:g=Gd("calc(".concat(r.length-1," * -").concat(u,")"));break}var m=[];if(l){var b=r[0].width,h=t.width;m.push("scale(".concat((W(h)?h/b:1)/b,")"))}return s&&m.push("rotate(".concat(s,", ").concat(v,", ").concat(p,")")),m.length&&(y.transform=m.join(" ")),T.createElement("text",qp({},ae(y,!0),{x:v,y:p,className:Oe("recharts-text",f),textAnchor:a,fill:y.fill.includes("url")?sk.fill:y.fill}),r.map(function(x,S){return T.createElement("tspan",{x:v,dy:S===0?g:u,key:S},x.words.join(d?"":" "))}))};Kn.defaultProps=sk;var aB=Xm;function oB(e,t){return aB(e,t)}var lB=oB;const uk=ve(lB);var sB=Za;function uB(e,t,r){for(var n=-1,i=e.length;++nt}var ck=cB,fB=_f,dB=ck,hB=io;function pB(e){return e&&e.length?fB(e,hB,dB):void 0}var vB=pB;const Of=ve(vB);function mB(e,t){return et?1:e>=t?0:NaN}function IB(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function og(e){let t,r,n;e.length!==2?(t=Hn,r=(l,s)=>Hn(e(l),s),n=(l,s)=>e(l)-s):(t=e===Hn||e===IB?e:RB,r=e,n=e);function i(l,s,u=0,c=l.length){if(u>>1;r(l[f],s)<0?u=f+1:c=f}while(u>>1;r(l[f],s)<=0?u=f+1:c=f}while(uu&&n(l[f-1],s)>-n(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function RB(){return 0}function dk(e){return e===null?NaN:+e}function*NB(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const jB=og(Hn),LB=jB.right;og(dk).center;const cs=LB;class eb extends Map{constructor(t,r=BB){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(tb(this,t))}has(t){return super.has(tb(this,t))}set(t,r){return super.set(DB(this,t),r)}delete(t){return super.delete(FB(this,t))}}function tb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function DB({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function FB({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function BB(e){return e!==null&&typeof e=="object"?e.valueOf():e}function zB(e=Hn){if(e===Hn)return hk;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function hk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const UB=Math.sqrt(50),HB=Math.sqrt(10),WB=Math.sqrt(2);function sc(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=UB?10:a>=HB?5:a>=WB?2:1;let l,s,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(e*u),s=Math.round(t*u),l/ut&&--s,u=-u):(u=Math.pow(10,i)*o,l=Math.round(e/u),s=Math.round(t/u),l*ut&&--s),s0))return[];if(e===t)return[e];const n=t=i))return[];const l=a-i+1,s=new Array(l);if(n)if(o<0)for(let u=0;u=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}function nb(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function pk(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?hk:zB(i);n>r;){if(n-r>600){const s=n-r+1,u=t-r+1,c=Math.log(s),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(s-f)/s)*(u-s/2<0?-1:1),y=Math.max(r,Math.floor(t-u*f/s+d)),v=Math.min(n,Math.floor(t+(s-u)*f/s+d));pk(e,t,y,v,i)}const a=e[t];let o=r,l=n;for(ko(e,r,t),i(e[n],a)>0&&ko(e,r,n);o0;)--l}i(e[r],a)===0?ko(e,r,l):(++l,ko(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function ko(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function VB(e,t,r){if(e=Float64Array.from(NB(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return nb(e);if(t>=1)return rb(e);var n,i=(n-1)*t,a=Math.floor(i),o=rb(pk(e,a).subarray(0,a+1)),l=nb(e.subarray(a+1));return o+(l-o)*(i-a)}}function GB(e,t,r=dk){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function qB(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ks(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ks(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=YB.exec(e))?new Rt(t[1],t[2],t[3],1):(t=XB.exec(e))?new Rt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=QB.exec(e))?Ks(t[1],t[2],t[3],t[4]):(t=ZB.exec(e))?Ks(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=JB.exec(e))?cb(t[1],t[2]/100,t[3]/100,1):(t=ez.exec(e))?cb(t[1],t[2]/100,t[3]/100,t[4]):ib.hasOwnProperty(e)?lb(ib[e]):e==="transparent"?new Rt(NaN,NaN,NaN,0):null}function lb(e){return new Rt(e>>16&255,e>>8&255,e&255,1)}function Ks(e,t,r,n){return n<=0&&(e=t=r=NaN),new Rt(e,t,r,n)}function nz(e){return e instanceof fs||(e=Cl(e)),e?(e=e.rgb(),new Rt(e.r,e.g,e.b,e.opacity)):new Rt}function Zp(e,t,r,n){return arguments.length===1?nz(e):new Rt(e,t,r,n??1)}function Rt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}sg(Rt,Zp,mk(fs,{brighter(e){return e=e==null?uc:Math.pow(uc,e),new Rt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tl:Math.pow(Tl,e),new Rt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rt(Si(this.r),Si(this.g),Si(this.b),cc(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:sb,formatHex:sb,formatHex8:iz,formatRgb:ub,toString:ub}));function sb(){return`#${yi(this.r)}${yi(this.g)}${yi(this.b)}`}function iz(){return`#${yi(this.r)}${yi(this.g)}${yi(this.b)}${yi((isNaN(this.opacity)?1:this.opacity)*255)}`}function ub(){const e=cc(this.opacity);return`${e===1?"rgb(":"rgba("}${Si(this.r)}, ${Si(this.g)}, ${Si(this.b)}${e===1?")":`, ${e})`}`}function cc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Si(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yi(e){return e=Si(e),(e<16?"0":"")+e.toString(16)}function cb(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Sr(e,t,r,n)}function gk(e){if(e instanceof Sr)return new Sr(e.h,e.s,e.l,e.opacity);if(e instanceof fs||(e=Cl(e)),!e)return new Sr;if(e instanceof Sr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r0&&s<1?0:o,new Sr(o,l,s,e.opacity)}function az(e,t,r,n){return arguments.length===1?gk(e):new Sr(e,t,r,n??1)}function Sr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}sg(Sr,az,mk(fs,{brighter(e){return e=e==null?uc:Math.pow(uc,e),new Sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tl:Math.pow(Tl,e),new Sr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Rt(qd(e>=240?e-240:e+120,i,n),qd(e,i,n),qd(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Sr(fb(this.h),Ys(this.s),Ys(this.l),cc(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=cc(this.opacity);return`${e===1?"hsl(":"hsla("}${fb(this.h)}, ${Ys(this.s)*100}%, ${Ys(this.l)*100}%${e===1?")":`, ${e})`}`}}));function fb(e){return e=(e||0)%360,e<0?e+360:e}function Ys(e){return Math.max(0,Math.min(1,e||0))}function qd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ug=e=>()=>e;function oz(e,t){return function(r){return e+r*t}}function lz(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function sz(e){return(e=+e)==1?yk:function(t,r){return r-t?lz(t,r,e):ug(isNaN(t)?r:t)}}function yk(e,t){var r=t-e;return r?oz(e,r):ug(isNaN(e)?t:e)}const db=function e(t){var r=sz(t);function n(i,a){var o=r((i=Zp(i)).r,(a=Zp(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),u=yk(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=l(c),i.b=s(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);function uz(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:fc(n,i)})),r=Kd.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function xz(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?wz:xz,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=l(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=l(t,e.map(n),fc)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,dc),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),r=cg,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Ot,c()):o!==Ot},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,y){return n=d,i=y,c()}}function fg(){return Af()(Ot,Ot)}function Sz(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function hc(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Na(e){return e=hc(Math.abs(e)),e?e[1]:NaN}function _z(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Oz(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var kz=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ml(e){if(!(t=kz.exec(e)))throw new Error("invalid format: "+e);var t;return new dg({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]})}Ml.prototype=dg.prototype;function dg(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+""}dg.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 Az(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var bk;function Ez(e,t){var r=hc(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(bk=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+hc(e,Math.max(0,t+a-1))[0]}function pb(e,t){var r=hc(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const vb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Sz,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)=>pb(e*100,t),r:pb,s:Ez,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function mb(e){return e}var gb=Array.prototype.map,yb=["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?mb:_z(gb.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?mb:Oz(gb.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Ml(f);var d=f.fill,y=f.align,v=f.sign,p=f.symbol,g=f.zero,m=f.width,b=f.comma,h=f.precision,x=f.trim,S=f.type;S==="n"?(b=!0,S="g"):vb[S]||(h===void 0&&(h=12),x=!0,S="g"),(g||d==="0"&&y==="=")&&(g=!0,d="0",y="=");var w=p==="$"?r:p==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",_=p==="$"?n:/[%p]/.test(S)?o:"",O=vb[S],P=/[defgprs%]/.test(S);h=h===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h));function A(E){var C=w,$=_,N,I,H;if(S==="c")$=O(E)+$,E="";else{E=+E;var U=E<0||1/E<0;if(E=isNaN(E)?s:O(Math.abs(E),h),x&&(E=Az(E)),U&&+E==0&&v!=="+"&&(U=!1),C=(U?v==="("?v:l:v==="-"||v==="("?"":v)+C,$=(S==="s"?yb[8+bk/3]:"")+$+(U&&v==="("?")":""),P){for(N=-1,I=E.length;++NH||H>57){$=(H===46?i+E.slice(N+1):E.slice(N))+$,E=E.slice(0,N);break}}}b&&!g&&(E=t(E,1/0));var M=C.length+E.length+$.length,R=M>1)+C+E+$+R.slice(M);break;default:E=R+C+E+$;break}return a(E)}return A.toString=function(){return f+""},A}function c(f,d){var y=u((f=Ml(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(Na(d)/3)))*3,p=Math.pow(10,-v),g=yb[8+v/3];return function(m){return y(p*m)+g}}return{format:u,formatPrefix:c}}var Xs,hg,xk;Tz({thousands:",",grouping:[3],currency:["$",""]});function Tz(e){return Xs=Pz(e),hg=Xs.format,xk=Xs.formatPrefix,Xs}function $z(e){return Math.max(0,-Na(Math.abs(e)))}function Cz(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Na(t)/3)))*3-Na(Math.abs(e)))}function Mz(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Na(t)-Na(e))+1}function wk(e,t,r,n){var i=Xp(e,t,r),a;switch(n=Ml(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Cz(i,o))&&(n.precision=a),xk(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Mz(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=$z(i))&&(n.precision=a-(n.type==="%")*2);break}}return hg(n)}function ti(e){var t=e.domain;return e.ticks=function(r){var n=t();return Kp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return wk(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],l=n[a],s,u,c=10;for(l0;){if(u=Yp(o,l,r),u===s)return n[i]=o,n[a]=l,t(n);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function pc(){var e=fg();return e.copy=function(){return ds(e,pc())},mr.apply(e,arguments),ti(e)}function Sk(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,dc),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Sk(e).unknown(t)},e=arguments.length?Array.from(e,dc):[0,1],ti(r)}function _k(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function Lz(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 wb(e){return(t,r)=>-e(-t,r)}function pg(e){const t=e(bb,xb),r=t.domain;let n=10,i,a;function o(){return i=Lz(n),a=jz(n),r()[0]<0?(i=wb(i),a=wb(a),e(Iz,Rz)):e(bb,xb),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const s=r();let u=s[0],c=s[s.length-1];const f=c0){for(;d<=y;++d)for(v=1;vc)break;m.push(p)}}else for(;d<=y;++d)for(v=n-1;v>=1;--v)if(p=d>0?v/a(-d):v*a(d),!(pc)break;m.push(p)}m.length*2{if(l==null&&(l=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=Ml(s)).precision==null&&(s.trim=!0),s=hg(s)),l===1/0)return s;const u=Math.max(1,n*l/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*nr(_k(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function Ok(){const e=pg(Af()).domain([1,10]);return e.copy=()=>ds(e,Ok()).base(e.base()),mr.apply(e,arguments),e}function Sb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _b(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vg(e){var t=1,r=e(Sb(t),_b(t));return r.constant=function(n){return arguments.length?e(Sb(t=+n),_b(t)):t},ti(r)}function kk(){var e=vg(Af());return e.copy=function(){return ds(e,kk()).constant(e.constant())},mr.apply(e,arguments)}function Ob(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Dz(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Fz(e){return e<0?-e*e:e*e}function mg(e){var t=e(Ot,Ot),r=1;function n(){return r===1?e(Ot,Ot):r===.5?e(Dz,Fz):e(Ob(r),Ob(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},ti(t)}function gg(){var e=mg(Af());return e.copy=function(){return ds(e,gg()).exponent(e.exponent())},mr.apply(e,arguments),e}function Bz(){return gg.apply(null,arguments).exponent(.5)}function kb(e){return Math.sign(e)*e*e}function zz(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Ak(){var e=fg(),t=[0,1],r=!1,n;function i(a){var o=zz(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(kb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,dc)).map(kb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Ak(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},mr.apply(i,arguments),ti(i)}function Ek(){var e=[],t=[],r=[],n;function i(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o0?r[l-1]:e[0],l=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Pk().domain([e,t]).range(i).unknown(a)},mr.apply(ti(o),arguments)}function Tk(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[cs(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Tk().domain(e).range(t).unknown(r)},mr.apply(i,arguments)}const Yd=new Date,Xd=new Date;function Je(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a0))return s;let u;do s.push(u=new Date(+a)),t(a,l),e(a);while(uJe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Yd.setTime(+a),Xd.setTime(+o),e(Yd),e(Xd),Math.floor(r(Yd,Xd))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const vc=Je(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);vc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Je(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):vc);vc.range;const Jr=1e3,fr=Jr*60,en=fr*60,un=en*24,yg=un*7,Ab=un*30,Qd=un*365,bi=Je(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getUTCSeconds());bi.range;const bg=Je(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jr)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getMinutes());bg.range;const xg=Je(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getUTCMinutes());xg.range;const wg=Je(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jr-e.getMinutes()*fr)},(e,t)=>{e.setTime(+e+t*en)},(e,t)=>(t-e)/en,e=>e.getHours());wg.range;const Sg=Je(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*en)},(e,t)=>(t-e)/en,e=>e.getUTCHours());Sg.range;const hs=Je(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fr)/un,e=>e.getDate()-1);hs.range;const Ef=Je(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/un,e=>e.getUTCDate()-1);Ef.range;const $k=Je(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/un,e=>Math.floor(e/un));$k.range;function Ni(e){return Je(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*fr)/yg)}const Pf=Ni(0),mc=Ni(1),Uz=Ni(2),Hz=Ni(3),ja=Ni(4),Wz=Ni(5),Vz=Ni(6);Pf.range;mc.range;Uz.range;Hz.range;ja.range;Wz.range;Vz.range;function ji(e){return Je(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/yg)}const Tf=ji(0),gc=ji(1),Gz=ji(2),qz=ji(3),La=ji(4),Kz=ji(5),Yz=ji(6);Tf.range;gc.range;Gz.range;qz.range;La.range;Kz.range;Yz.range;const _g=Je(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());_g.range;const Og=Je(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());Og.range;const cn=Je(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());cn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Je(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});cn.range;const fn=Je(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());fn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Je(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});fn.range;function Ck(e,t,r,n,i,a){const o=[[bi,1,Jr],[bi,5,5*Jr],[bi,15,15*Jr],[bi,30,30*Jr],[a,1,fr],[a,5,5*fr],[a,15,15*fr],[a,30,30*fr],[i,1,en],[i,3,3*en],[i,6,6*en],[i,12,12*en],[n,1,un],[n,2,2*un],[r,1,yg],[t,1,Ab],[t,3,3*Ab],[e,1,Qd]];function l(u,c,f){const d=cg).right(o,d);if(y===o.length)return e.every(Xp(u/Qd,c/Qd,f));if(y===0)return vc.every(Math.max(Xp(u,c,f),1));const[v,p]=o[d/o[y-1][2]53)return null;"w"in L||(L.w=1),"Z"in L?(le=Jd(Ao(L.y,0,1)),Pe=le.getUTCDay(),le=Pe>4||Pe===0?gc.ceil(le):gc(le),le=Ef.offset(le,(L.V-1)*7),L.y=le.getUTCFullYear(),L.m=le.getUTCMonth(),L.d=le.getUTCDate()+(L.w+6)%7):(le=Zd(Ao(L.y,0,1)),Pe=le.getDay(),le=Pe>4||Pe===0?mc.ceil(le):mc(le),le=hs.offset(le,(L.V-1)*7),L.y=le.getFullYear(),L.m=le.getMonth(),L.d=le.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),Pe="Z"in L?Jd(Ao(L.y,0,1)).getUTCDay():Zd(Ao(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(Pe+5)%7:L.w+L.U*7-(Pe+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,Jd(L)):Zd(L)}}function O(F,q,re,L){for(var fe=0,le=q.length,Pe=re.length,ze,Tt;fe=Pe)return-1;if(ze=q.charCodeAt(fe++),ze===37){if(ze=q.charAt(fe++),Tt=S[ze in Eb?q.charAt(fe++):ze],!Tt||(L=Tt(F,re,L))<0)return-1}else if(ze!=re.charCodeAt(L++))return-1}return L}function P(F,q,re){var L=u.exec(q.slice(re));return L?(F.p=c.get(L[0].toLowerCase()),re+L[0].length):-1}function A(F,q,re){var L=y.exec(q.slice(re));return L?(F.w=v.get(L[0].toLowerCase()),re+L[0].length):-1}function E(F,q,re){var L=f.exec(q.slice(re));return L?(F.w=d.get(L[0].toLowerCase()),re+L[0].length):-1}function C(F,q,re){var L=m.exec(q.slice(re));return L?(F.m=b.get(L[0].toLowerCase()),re+L[0].length):-1}function $(F,q,re){var L=p.exec(q.slice(re));return L?(F.m=g.get(L[0].toLowerCase()),re+L[0].length):-1}function N(F,q,re){return O(F,t,q,re)}function I(F,q,re){return O(F,r,q,re)}function H(F,q,re){return O(F,n,q,re)}function U(F){return o[F.getDay()]}function M(F){return a[F.getDay()]}function R(F){return s[F.getMonth()]}function B(F){return l[F.getMonth()]}function G(F){return i[+(F.getHours()>=12)]}function X(F){return 1+~~(F.getMonth()/3)}function Q(F){return o[F.getUTCDay()]}function V(F){return a[F.getUTCDay()]}function Z(F){return s[F.getUTCMonth()]}function ne(F){return l[F.getUTCMonth()]}function Se(F){return i[+(F.getUTCHours()>=12)]}function ie(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var q=w(F+="",h);return q.toString=function(){return F},q},parse:function(F){var q=_(F+="",!1);return q.toString=function(){return F},q},utcFormat:function(F){var q=w(F+="",x);return q.toString=function(){return F},q},utcParse:function(F){var q=_(F+="",!0);return q.toString=function(){return F},q}}}var Eb={"-":"",_:" ",0:"0"},ot=/^\s*\d+/,tU=/^%/,rU=/[\\^$*+?|[\]().{}]/g;function pe(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function iU(e,t,r){var n=ot.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function aU(e,t,r){var n=ot.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function oU(e,t,r){var n=ot.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function lU(e,t,r){var n=ot.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function sU(e,t,r){var n=ot.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Pb(e,t,r){var n=ot.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Tb(e,t,r){var n=ot.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function uU(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function cU(e,t,r){var n=ot.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function fU(e,t,r){var n=ot.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function $b(e,t,r){var n=ot.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function dU(e,t,r){var n=ot.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Cb(e,t,r){var n=ot.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function hU(e,t,r){var n=ot.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function pU(e,t,r){var n=ot.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function vU(e,t,r){var n=ot.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function mU(e,t,r){var n=ot.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gU(e,t,r){var n=tU.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function yU(e,t,r){var n=ot.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function bU(e,t,r){var n=ot.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Mb(e,t){return pe(e.getDate(),t,2)}function xU(e,t){return pe(e.getHours(),t,2)}function wU(e,t){return pe(e.getHours()%12||12,t,2)}function SU(e,t){return pe(1+hs.count(cn(e),e),t,3)}function Mk(e,t){return pe(e.getMilliseconds(),t,3)}function _U(e,t){return Mk(e,t)+"000"}function OU(e,t){return pe(e.getMonth()+1,t,2)}function kU(e,t){return pe(e.getMinutes(),t,2)}function AU(e,t){return pe(e.getSeconds(),t,2)}function EU(e){var t=e.getDay();return t===0?7:t}function PU(e,t){return pe(Pf.count(cn(e)-1,e),t,2)}function Ik(e){var t=e.getDay();return t>=4||t===0?ja(e):ja.ceil(e)}function TU(e,t){return e=Ik(e),pe(ja.count(cn(e),e)+(cn(e).getDay()===4),t,2)}function $U(e){return e.getDay()}function CU(e,t){return pe(mc.count(cn(e)-1,e),t,2)}function MU(e,t){return pe(e.getFullYear()%100,t,2)}function IU(e,t){return e=Ik(e),pe(e.getFullYear()%100,t,2)}function RU(e,t){return pe(e.getFullYear()%1e4,t,4)}function NU(e,t){var r=e.getDay();return e=r>=4||r===0?ja(e):ja.ceil(e),pe(e.getFullYear()%1e4,t,4)}function jU(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pe(t/60|0,"0",2)+pe(t%60,"0",2)}function Ib(e,t){return pe(e.getUTCDate(),t,2)}function LU(e,t){return pe(e.getUTCHours(),t,2)}function DU(e,t){return pe(e.getUTCHours()%12||12,t,2)}function FU(e,t){return pe(1+Ef.count(fn(e),e),t,3)}function Rk(e,t){return pe(e.getUTCMilliseconds(),t,3)}function BU(e,t){return Rk(e,t)+"000"}function zU(e,t){return pe(e.getUTCMonth()+1,t,2)}function UU(e,t){return pe(e.getUTCMinutes(),t,2)}function HU(e,t){return pe(e.getUTCSeconds(),t,2)}function WU(e){var t=e.getUTCDay();return t===0?7:t}function VU(e,t){return pe(Tf.count(fn(e)-1,e),t,2)}function Nk(e){var t=e.getUTCDay();return t>=4||t===0?La(e):La.ceil(e)}function GU(e,t){return e=Nk(e),pe(La.count(fn(e),e)+(fn(e).getUTCDay()===4),t,2)}function qU(e){return e.getUTCDay()}function KU(e,t){return pe(gc.count(fn(e)-1,e),t,2)}function YU(e,t){return pe(e.getUTCFullYear()%100,t,2)}function XU(e,t){return e=Nk(e),pe(e.getUTCFullYear()%100,t,2)}function QU(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function ZU(e,t){var r=e.getUTCDay();return e=r>=4||r===0?La(e):La.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function JU(){return"+0000"}function Rb(){return"%"}function Nb(e){return+e}function jb(e){return Math.floor(+e/1e3)}var zi,jk,Lk;e7({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 e7(e){return zi=eU(e),jk=zi.format,zi.parse,Lk=zi.utcFormat,zi.utcParse,zi}function t7(e){return new Date(e)}function r7(e){return e instanceof Date?+e:+new Date(+e)}function kg(e,t,r,n,i,a,o,l,s,u){var c=fg(),f=c.invert,d=c.domain,y=u(".%L"),v=u(":%S"),p=u("%I:%M"),g=u("%I %p"),m=u("%a %d"),b=u("%b %d"),h=u("%B"),x=u("%Y");function S(w){return(s(w)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>VB(e,a/n))},r.copy=function(){return zk(t).domain(e)},mn.apply(r,arguments)}function Cf(){var e=0,t=.5,r=1,n=1,i,a,o,l,s,u=Ot,c,f=!1,d;function y(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-a)*(n*pe.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};Y.decimalPlaces=Y.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ce;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Y.dividedBy=Y.div=function(e){return rn(this,new this.constructor(e))};Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,r=t.constructor;return _e(rn(t,new r(e),0,1),r.precision)};Y.equals=Y.eq=function(e){return!this.cmp(e)};Y.exponent=function(){return Ke(this)};Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0};Y.greaterThanOrEqualTo=Y.gte=function(e){return this.cmp(e)>=0};Y.isInteger=Y.isint=function(){return this.e>this.d.length-2};Y.isNegative=Y.isneg=function(){return this.s<0};Y.isPositive=Y.ispos=function(){return this.s>0};Y.isZero=function(){return this.s===0};Y.lessThan=Y.lt=function(e){return this.cmp(e)<0};Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1};Y.logarithm=Y.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Wt))throw Error(vr+"NaN");if(r.s<1)throw Error(vr+(r.s?"NaN":"-Infinity"));return r.eq(Wt)?new n(0):(je=!1,t=rn(Il(r,a),Il(e,a),a),je=!0,_e(t,i))};Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Kk(t,e):Gk(t,(e.s=-e.s,e))};Y.modulo=Y.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(vr+"NaN");return r.s?(je=!1,t=rn(r,e,0,1).times(e),je=!0,r.minus(t)):_e(new n(r),i)};Y.naturalExponential=Y.exp=function(){return qk(this)};Y.naturalLogarithm=Y.ln=function(){return Il(this)};Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Y.plus=Y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Gk(t,e):Kk(t,(e.s=-e.s,e))};Y.precision=Y.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(_i+e);if(t=Ke(i)+1,n=i.d.length-1,r=n*Ce+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Y.squareRoot=Y.sqrt=function(){var e,t,r,n,i,a,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(vr+"NaN")}for(e=Ke(l),je=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=jr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=so((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(rn(l,a,o+2)).times(.5),jr(a.d).slice(0,o)===(t=jr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(_e(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;o+=4}return je=!0,_e(n,r)};Y.times=Y.mul=function(e){var t,r,n,i,a,o,l,s,u,c=this,f=c.constructor,d=c.d,y=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,s=d.length,u=y.length,s=0;){for(t=0,i=s+n;i>n;)l=a[i]+y[n]*d[i-n-1]+t,a[i--]=l%rt|0,t=l/rt|0;a[i]=(a[i]+t)%rt|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,je?_e(e,f.precision):e};Y.toDecimalPlaces=Y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Wr(e,0,lo),t===void 0?t=n.rounding:Wr(t,0,8),_e(r,e+Ke(r)+1,t))};Y.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=$i(n,!0):(Wr(e,0,lo),t===void 0?t=i.rounding:Wr(t,0,8),n=_e(new i(n),e+1,t),r=$i(n,!0,e+1)),r};Y.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?$i(i):(Wr(e,0,lo),t===void 0?t=a.rounding:Wr(t,0,8),n=_e(new a(i),e+Ke(i)+1,t),r=$i(n.abs(),!1,e+Ke(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return _e(new t(e),Ke(e)+1,t.rounding)};Y.toNumber=function(){return+this};Y.toPower=Y.pow=function(e){var t,r,n,i,a,o,l=this,s=l.constructor,u=12,c=+(e=new s(e));if(!e.s)return new s(Wt);if(l=new s(l),!l.s){if(e.s<1)throw Error(vr+"Infinity");return l}if(l.eq(Wt))return l;if(n=s.precision,e.eq(Wt))return _e(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=l.s,o){if((r=c<0?-c:c)<=Vk){for(i=new s(Wt),t=Math.ceil(n/Ce+4),je=!1;r%2&&(i=i.times(l),Fb(i.d,t)),r=so(r/2),r!==0;)l=l.times(l),Fb(l.d,t);return je=!0,e.s<0?new s(Wt).div(i):_e(i,n)}}else if(a<0)throw Error(vr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,je=!1,i=e.times(Il(l,n+u)),je=!0,i=qk(i),i.s=a,i};Y.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Ke(i),n=$i(i,r<=a.toExpNeg||r>=a.toExpPos)):(Wr(e,1,lo),t===void 0?t=a.rounding:Wr(t,0,8),i=_e(new a(i),e,t),r=Ke(i),n=$i(i,e<=r||r<=a.toExpNeg,e)),n};Y.toSignificantDigits=Y.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Wr(e,1,lo),t===void 0?t=n.rounding:Wr(t,0,8)),_e(new n(r),e,t)};Y.toString=Y.valueOf=Y.val=Y.toJSON=Y[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ke(e),r=e.constructor;return $i(e,t<=r.toExpNeg||t>=r.toExpPos)};function Gk(e,t){var r,n,i,a,o,l,s,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),je?_e(t,f):t;if(s=e.d,u=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,l=u.length):(n=u,i=o,l=s.length),o=Math.ceil(f/Ce),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=s.length,a=u.length,l-a<0&&(a=l,n=u,u=s,s=n),r=0;a;)r=(s[--a]=s[a]+u[a]+r)/rt|0,s[a]%=rt;for(r&&(s.unshift(r),++i),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=i,je?_e(t,f):t}function Wr(e,t,r){if(e!==~~e||er)throw Error(_i+e)}function jr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(l=s=0;li[l]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var l,s,u,c,f,d,y,v,p,g,m,b,h,x,S,w,_,O,P=n.constructor,A=n.s==i.s?1:-1,E=n.d,C=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(vr+"Division by zero");for(s=n.e-i.e,_=C.length,S=E.length,y=new P(A),v=y.d=[],u=0;C[u]==(E[u]||0);)++u;if(C[u]>(E[u]||0)&&--s,a==null?b=a=P.precision:o?b=a+(Ke(n)-Ke(i))+1:b=a,b<0)return new P(0);if(b=b/Ce+2|0,u=0,_==1)for(c=0,C=C[0],b++;(u1&&(C=e(C,c),E=e(E,c),_=C.length,S=E.length),x=_,p=E.slice(0,_),g=p.length;g<_;)p[g++]=0;O=C.slice(),O.unshift(0),w=C[0],C[1]>=rt/2&&++w;do c=0,l=t(C,p,_,g),l<0?(m=p[0],_!=g&&(m=m*rt+(p[1]||0)),c=m/w|0,c>1?(c>=rt&&(c=rt-1),f=e(C,c),d=f.length,g=p.length,l=t(f,p,d,g),l==1&&(c--,r(f,_16)throw Error(Pg+Ke(e));if(!e.s)return new c(Wt);for(t==null?(je=!1,l=f):l=t,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(fi(2,u))/Math.LN10*2+5|0,l+=n,r=i=a=new c(Wt),c.precision=l;;){if(i=_e(i.times(e),l),r=r.times(++s),o=a.plus(rn(i,r,l)),jr(o.d).slice(0,l)===jr(a.d).slice(0,l)){for(;u--;)a=_e(a.times(a),l);return c.precision=f,t==null?(je=!0,_e(a,f)):a}a=o}}function Ke(e){for(var t=e.e*Ce,r=e.d[0];r>=10;r/=10)t++;return t}function eh(e,t,r){if(t>e.LN10.sd())throw je=!0,r&&(e.precision=r),Error(vr+"LN10 precision limit exceeded");return _e(new e(e.LN10),t)}function kn(e){for(var t="";e--;)t+="0";return t}function Il(e,t){var r,n,i,a,o,l,s,u,c,f=1,d=10,y=e,v=y.d,p=y.constructor,g=p.precision;if(y.s<1)throw Error(vr+(y.s?"NaN":"-Infinity"));if(y.eq(Wt))return new p(0);if(t==null?(je=!1,u=g):u=t,y.eq(10))return t==null&&(je=!0),eh(p,u);if(u+=d,p.precision=u,r=jr(v),n=r.charAt(0),a=Ke(y),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)y=y.times(e),r=jr(y.d),n=r.charAt(0),f++;a=Ke(y),n>1?(y=new p("0."+r),a++):y=new p(n+"."+r.slice(1))}else return s=eh(p,u+2,g).times(a+""),y=Il(new p(n+"."+r.slice(1)),u-d).plus(s),p.precision=g,t==null?(je=!0,_e(y,g)):y;for(l=o=y=rn(y.minus(Wt),y.plus(Wt),u),c=_e(y.times(y),u),i=3;;){if(o=_e(o.times(c),u),s=l.plus(rn(o,new p(i),u)),jr(s.d).slice(0,u)===jr(l.d).slice(0,u))return l=l.times(2),a!==0&&(l=l.plus(eh(p,u+2,g).times(a+""))),l=rn(l,new p(f),u),p.precision=g,t==null?(je=!0,_e(l,g)):l;l=s,i+=2}}function Db(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=so(r/Ce),e.d=[],n=(r+1)%Ce,r<0&&(n+=Ce),nyc||e.e<-yc))throw Error(Pg+r)}else e.s=0,e.e=0,e.d=[0];return e}function _e(e,t,r){var n,i,a,o,l,s,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ce,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Ce),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=Ce,i=n-Ce+o}if(r!==void 0&&(a=fi(10,o-i-1),l=u/a%10|0,s=t<0||f[c+1]!==void 0||u%a,s=r<4?(l||s)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||s||r==6&&(n>0?i>0?u/fi(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return s?(a=Ke(e),f.length=1,t=t-a-1,f[0]=fi(10,(Ce-t%Ce)%Ce),e.e=so(-t/Ce)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=fi(10,Ce-n),f[c]=i>0?(u/fi(10,o-i)%fi(10,i)|0)*a:0),s)for(;;)if(c==0){(f[0]+=a)==rt&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=rt)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(je&&(e.e>yc||e.e<-yc))throw Error(Pg+Ke(e));return e}function Kk(e,t){var r,n,i,a,o,l,s,u,c,f,d=e.constructor,y=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),je?_e(t,y):t;if(s=e.d,f=t.d,n=t.e,u=e.e,s=s.slice(),o=u-n,o){for(c=o<0,c?(r=s,o=-o,l=f.length):(r=f,n=u,l=s.length),i=Math.max(Math.ceil(y/Ce),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,l=f.length,c=i0;--i)s[l++]=0;for(i=f.length;i>o;){if(s[--i]0?a=a.charAt(0)+"."+a.slice(1)+kn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+kn(-i-1)+a,r&&(n=r-o)>0&&(a+=kn(n))):i>=o?(a+=kn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+kn(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=kn(n))),e.s<0?"-"+a:a}function Fb(e,t){if(e.length>t)return e.length=t,!0}function Yk(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(_i+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Db(o,a.toString())}else if(typeof a!="string")throw Error(_i+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,s7.test(a))Db(o,a);else throw Error(_i+a)}if(i.prototype=Y,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=Yk,i.config=i.set=u7,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(_i+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(_i+r+": "+n);return this}var Tg=Yk(l7);Wt=new Tg(1);const we=Tg;function c7(e){return p7(e)||h7(e)||d7(e)||f7()}function f7(){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 d7(e,t){if(e){if(typeof e=="string")return tv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tv(e,t)}}function h7(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function p7(e){if(Array.isArray(e))return tv(e)}function tv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,Bb(function(){for(var l=arguments.length,s=new Array(l),u=0;ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function T7(e){if(Array.isArray(e))return e}function eA(e){var t=Rl(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function tA(e,t,r){if(e.lte(0))return new we(0);var n=If.getDigitCount(e.toNumber()),i=new we(10).pow(n),a=e.div(i),o=n!==1?.05:.1,l=new we(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=l.mul(i);return t?s:new we(Math.ceil(s))}function $7(e,t,r){var n=1,i=new we(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new we(10).pow(If.getDigitCount(e)-1),i=new we(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new we(Math.floor(e)))}else e===0?i=new we(Math.floor((t-1)/2)):r||(i=new we(Math.floor(e)));var o=Math.floor((t-1)/2),l=y7(g7(function(s){return i.add(new we(s-o).mul(n)).toNumber()}),rv);return l(0,t)}function rA(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new we(0),tickMin:new we(0),tickMax:new we(0)};var a=tA(new we(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new we(0):(o=new we(e).add(t).div(2),o=o.sub(new we(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new we(t).sub(o).div(a).toNumber()),u=l+s+1;return u>r?rA(e,t,r,n,i+1):(u0?s+(r-u):s,l=t>0?l:l+(r-u)),{step:a,tickMin:o.sub(new we(l).mul(a)),tickMax:o.add(new we(s).mul(a))})}function C7(e){var t=Rl(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),l=eA([r,n]),s=Rl(l,2),u=s[0],c=s[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(iv(rv(0,i-1).map(function(){return 1/0}))):[].concat(iv(rv(0,i-1).map(function(){return-1/0})),[c]);return r>n?nv(f):f}if(u===c)return $7(u,i,a);var d=rA(u,c,o,a),y=d.step,v=d.tickMin,p=d.tickMax,g=If.rangeStep(v,p.add(new we(.1).mul(y)),y);return r>n?nv(g):g}function M7(e,t){var r=Rl(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=eA([n,i]),l=Rl(o,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[n,i];if(s===u)return[s];var c=Math.max(t,2),f=tA(new we(u).sub(s).div(c-1),a,0),d=[].concat(iv(If.rangeStep(new we(s),new we(u).sub(new we(.99).mul(f)),f)),[u]);return n>i?nv(d):d}var I7=Zk(C7),R7=Zk(M7),N7=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function bc(){return bc=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function U7(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function $g(e){var t=e.offset,r=e.layout,n=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,l=e.xAxis,s=e.yAxis,u=z7(e,N7),c=ae(u),f=a.map(function(d,y){var v=o(d,i),p=v.x,g=v.y,m=v.value,b=v.errorVal;if(!b)return null;var h=[],x,S;if(Array.isArray(b)){var w=j7(b,2);x=w[0],S=w[1]}else x=S=b;if(r==="vertical"){var _=l.scale,O=g+t,P=O+n,A=O-n,E=_(m-x),C=_(m+S);h.push({x1:C,y1:P,x2:C,y2:A}),h.push({x1:E,y1:O,x2:C,y2:O}),h.push({x1:E,y1:P,x2:E,y2:A})}else if(r==="horizontal"){var $=s.scale,N=p+t,I=N-n,H=N+n,U=$(m-x),M=$(m+S);h.push({x1:I,y1:M,x2:H,y2:M}),h.push({x1:N,y1:U,x2:N,y2:M}),h.push({x1:I,y1:U,x2:H,y2:U})}return T.createElement(De,bc({className:"recharts-errorBar",key:"bar-".concat(y)},c),h.map(function(R,B){return T.createElement("line",bc({},R,{key:"line-".concat(B)}))}))});return T.createElement(De,{className:"recharts-errorBars"},f)}$g.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};$g.displayName="ErrorBar";function Nl(e){"@babel/helpers - typeof";return Nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nl(e)}function Ub(e){return G7(e)||V7(e)||W7(e)||H7()}function H7(){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 W7(e,t){if(e){if(typeof e=="string")return ov(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ov(e,t)}}function V7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function G7(e){if(Array.isArray(e))return ov(e)}function ov(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,u=0;u0?i[u-1].coordinate:i[l-1].coordinate,f=i[u].coordinate,d=u>=l-1?i[0].coordinate:i[u+1].coordinate,y=void 0;if(It(f-c)!==It(d-f)){var v=[];if(It(d-f)===It(s[1]-s[0])){y=d;var p=f+s[1]-s[0];v[0]=Math.min(p,(p+c)/2),v[1]=Math.max(p,(p+c)/2)}else{y=c;var g=d+s[1]-s[0];v[0]=Math.min(f,(g+f)/2),v[1]=Math.max(f,(g+f)/2)}var m=[Math.min(f,(y+f)/2),Math.max(f,(y+f)/2)];if(t>m[0]&&t<=m[1]||t>=v[0]&&t<=v[1]){o=i[u].index;break}}else{var b=Math.min(c,d),h=Math.max(c,d);if(t>(b+f)/2&&t<=(h+f)/2){o=i[u].index;break}}}else for(var x=0;x0&&x(n[x].coordinate+n[x-1].coordinate)/2&&t<=(n[x].coordinate+n[x+1].coordinate)/2||x===l-1&&t>(n[x].coordinate+n[x-1].coordinate)/2){o=n[x].index;break}return o},Cg=function(t){var r=t,n=r.type.displayName,i=t.props,a=i.stroke,o=i.fill,l;switch(n){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:o;break;default:l=o;break}return l},nA=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=$n(r,Sl);if(!o)return null;var l;return o.props&&o.props.payload?l=o.props&&o.props.payload:a==="children"?l=(n||[]).reduce(function(s,u){var c=u.item,f=u.props,d=f.sectors||f.data||[];return s.concat(d.map(function(y){return{type:o.props.iconType||c.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):l=(n||[]).map(function(s){var u=s.item,c=u.props,f=c.dataKey,d=c.name,y=c.legendType,v=c.hide;return{inactive:v,dataKey:f,type:o.props.iconType||y||"square",color:Cg(u),value:d||f,payload:u.props}}),_t(_t(_t({},o.props),Sl.getWithHeight(o,i)),{},{payload:l,item:o})},X7=function(t){var r=t.barSize,n=t.stackGroups,i=n===void 0?{}:n;if(!i)return{};for(var a={},o=Object.keys(i),l=0,s=o.length;l=0});if(g&&g.length){var m=g[0].props.barSize,b=g[0].props[p];a[b]||(a[b]=[]),a[b].push({item:g[0],stackList:g.slice(1),barSize:ee(m)?r:m})}}return a},Q7=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,s=o.length;if(s<1)return null;var u=Kt(r,i,0,!0),c;if(o[0].barSize===+o[0].barSize){var f=!1,d=i/s,y=o.reduce(function(h,x){return h+x.barSize||0},0);y+=(s-1)*u,y>=i&&(y-=(s-1)*u,u=0),y>=i&&d>0&&(f=!0,d*=.9,y=s*d);var v=(i-y)/2>>0,p={offset:v-u,size:0};c=o.reduce(function(h,x){var S=[].concat(Ub(h),[{item:x.item,position:{offset:p.offset+p.size+u,size:f?d:x.barSize}}]);return p=S[S.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(w){S.push({item:w,position:p})}),S},[])}else{var g=Kt(n,i,0,!0);i-2*g-(s-1)*u<=0&&(u=0);var m=(i-2*g-(s-1)*u)/s;m>1&&(m>>=0);var b=l===+l?Math.min(m,l):m;c=o.reduce(function(h,x,S){var w=[].concat(Ub(h),[{item:x.item,position:{offset:g+(m+u)*S+(m-b)/2,size:b}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(_){w.push({item:_,position:w[w.length-1].position})}),w},[])}return c},Z7=function(t,r,n,i){var a=n.children,o=n.width,l=n.margin,s=o-(l.left||0)-(l.right||0),u=nA({children:a,legendWidth:s}),c=t;if(u){var f=i||{},d=u.align,y=u.verticalAlign,v=u.layout;(v==="vertical"||v==="horizontal"&&y==="middle")&&W(t[d])&&(c=_t(_t({},t),{},ba({},d,c[d]+(f.width||0)))),(v==="horizontal"||v==="vertical"&&d==="center")&&W(t[y])&&(c=_t(_t({},t),{},ba({},y,c[y]+(f.height||0))))}return c},J7=function(t,r,n){return ee(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},iA=function(t,r,n,i,a){var o=r.props.children,l=Fr(o,$g).filter(function(u){return J7(i,a,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=Vt(c,n,0),d=bt(f)?[kf(f),Of(f)]:[f,f],y=s.reduce(function(v,p){var g=Vt(c,p,0),m=d[0]-Math.abs(bt(g)?g[0]:g),b=d[1]+Math.abs(bt(g)?g[1]:g);return[Math.min(m,v[0]),Math.max(b,v[1])]},[1/0,-1/0]);return[Math.min(y[0],u[0]),Math.max(y[1],u[1])]},[1/0,-1/0])}return null},e9=function(t,r,n,i,a){var o=r.map(function(l){return iA(t,l,n,a,i)}).filter(function(l){return!ee(l)});return o&&o.length?o.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]):null},aA=function(t,r,n,i,a){var o=r.map(function(s){var u=s.props.dataKey;return n==="number"&&u&&iA(t,s,u,i)||Zo(t,u,n,a)});if(n==="number")return o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(s,u){for(var c=0,f=u.length;c=2?It(l[0]-l[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!os(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},Qs=function(t,r,n){var i;return te(n)?i=n:te(r)&&(i=r),te(t)||i?function(a,o,l,s){te(t)&&t(a,o,l,s),te(i)&&i(a,o,l,s)}:null},t9=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Pl(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:pc(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Qo(),realScaleType:"point"}:a==="category"?{scale:Pl(),realScaleType:"band"}:{scale:pc(),realScaleType:"linear"};if(as(i)){var s="scale".concat(gf(i));return{scale:(Lb[s]||Qo)(),realScaleType:Lb[s]?s:"point"}}return te(i)?{scale:i}:{scale:Qo(),realScaleType:"point"}},Vb=1e-4,r9=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Vb,o=Math.max(i[0],i[1])+Vb,l=t(r[0]),s=t(r[n-1]);(lo||so)&&t.domain([r[0],r[n-1]])}},n9=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[l][n][0]=a,t[l][n][1]=a+s,a=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+s,o=t[l][n][1])}},i9=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+l,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},a9={sign:n9,expand:z4,none:Ta,silhouette:U4,wiggle:H4,positive:i9},o9=function(t,r,n){var i=r.map(function(o){return o.props.dataKey}),a=B4().keys(i).value(function(o,l){return+Vt(o,l,0)}).order(Op).offset(a9[n]);return a(t)},l9=function(t,r,n,i,a,o){if(!t)return null;var l=o?r.reverse():r,s=l.reduce(function(u,c){var f=c.props,d=f.stackId,y=f.hide;if(y)return u;var v=c.props[n],p=u[v]||{hasStack:!1,stackGroups:{}};if(Ze(d)){var g=p.stackGroups[d]||{numericAxisId:n,cateAxisId:i,items:[]};g.items.push(c),p.hasStack=!0,p.stackGroups[d]=g}else p.stackGroups[vf("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[c]};return _t(_t({},u),{},ba({},v,p))},{});return Object.keys(s).reduce(function(u,c){var f=s[c];return f.hasStack&&(f.stackGroups=Object.keys(f.stackGroups).reduce(function(d,y){var v=f.stackGroups[y];return _t(_t({},d),{},ba({},y,{numericAxisId:n,cateAxisId:i,items:v.items,stackedData:o9(t,v.items,a)}))},{})),_t(_t({},u),{},ba({},c,f))},{})},s9=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,l=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=I7(u,a,l);return t.domain([kf(c),Of(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),d=R7(f,a,l);return{niceTicks:d}}return null},u9=function(t,r){var n=t.props.stackId;if(Ze(n)){var i=r[n];if(i&&i.items.length){for(var a=-1,o=0,l=i.items.length;o=0?i.stackedData[a]:null}}return null},c9=function(t){return t.reduce(function(r,n){return[kf(n.concat([r[0]]).filter(W)),Of(n.concat([r[1]]).filter(W))]},[1/0,-1/0])},lA=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,s=l.reduce(function(u,c){var f=c9(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Gb=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qb=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lv=function(t,r,n){if(te(t))return t(r,n);if(!bt(t))return r;var i=[];if(W(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Gb.test(t[0])){var a=+Gb.exec(t[0])[1];i[0]=r[0]-a}else te(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(W(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(qb.test(t[1])){var o=+qb.exec(t[1])[1];i[1]=r[1]+o}else te(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},sv=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=ng(r,function(f){return f.coordinate}),o=1/0,l=1,s=a.length;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},x9=function(t,r,n,i,a){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,c=Kt(t.cx,o,o/2),f=Kt(t.cy,l,l/2),d=uA(o,l,n),y=Kt(t.innerRadius,d,0),v=Kt(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(g,m){var b=r[m],h=b.domain,x=b.reversed,S;if(ee(b.range))i==="angleAxis"?S=[s,u]:i==="radiusAxis"&&(S=[y,v]),x&&(S=[S[1],S[0]]);else{S=b.range;var w=S,_=p9(w,2);s=_[0],u=_[1]}var O=t9(b,a),P=O.realScaleType,A=O.scale;A.domain(h).range(S),r9(A);var E=s9(A,Yr(Yr({},b),{},{realScaleType:P})),C=Yr(Yr(Yr({},b),E),{},{range:S,radius:v,realScaleType:P,scale:A,cx:c,cy:f,innerRadius:y,outerRadius:v,startAngle:s,endAngle:u});return Yr(Yr({},g),{},sA({},m,C))},{})},w9=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},S9=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,l=w9({x:n,y:i},{x:a,y:o});if(l<=0)return{radius:l};var s=(n-a)/l,u=Math.acos(s);return i>o&&(u=2*Math.PI-u),{radius:l,angle:b9(u),angleInRadian:u}},_9=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},O9=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},Qb=function(t,r){var n=t.x,i=t.y,a=S9({x:n,y:i},r),o=a.radius,l=a.angle,s=r.innerRadius,u=r.outerRadius;if(ou)return!1;if(o===0)return!0;var c=_9(r),f=c.startAngle,d=c.endAngle,y=l,v;if(f<=d){for(;y>d;)y-=360;for(;y=f&&y<=d}else{for(;y>f;)y-=360;for(;y=d&&y<=f}return v?Yr(Yr({},r),{},{radius:o,angle:O9(y,r)}):null};function Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}function k9(e){return T9(e)||P9(e)||E9(e)||A9()}function A9(){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 E9(e,t){if(e){if(typeof e=="string")return uv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uv(e,t)}}function P9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T9(e){if(Array.isArray(e))return uv(e)}function uv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,h,x;i==="insideStart"?(h=y+b*o,x=p):i==="insideEnd"?(h=v-b*o,x=!p):i==="end"&&(h=v+b*o,x=p),x=m<=0?x:!x;var S=Ee(u,c,g,h),w=Ee(u,c,g,h+(x?1:-1)*359),_="M".concat(S.x,",").concat(S.y,` A`).concat(g,",").concat(g,",0,1,").concat(x?0:1,`, `).concat(w.x,",").concat(w.y),O=ee(t.id)?vf("recharts-radial-line-"):t.id;return T.createElement("text",Dl({},n,{dominantBaseline:"central",className:Oe("recharts-radial-bar-label",l)}),T.createElement("defs",null,T.createElement("path",{id:O,d:_})),T.createElement("textPath",{xlinkHref:"#".concat(O)},r))},j9=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,l=a.cy,s=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,d=(c+f)/2;if(i==="outside"){var y=Ee(o,l,u+n,d),v=y.x,p=y.y;return{x:v,y:p,textAnchor:v>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var g=(s+u)/2,m=Ee(o,l,g,d),b=m.x,h=m.y;return{x:b,y:h,textAnchor:"middle",verticalAnchor:"middle"}},L9=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,l=o.x,s=o.y,u=o.width,c=o.height,f=c>=0?1:-1,d=f*i,y=f>0?"end":"start",v=f>0?"start":"end",p=u>=0?1:-1,g=p*i,m=p>0?"end":"start",b=p>0?"start":"end";if(a==="top"){var h={x:l+u/2,y:s-f*i,textAnchor:"middle",verticalAnchor:y};return et(et({},h),n?{height:Math.max(s-n.y,0),width:u}:{})}if(a==="bottom"){var x={x:l+u/2,y:s+c+d,textAnchor:"middle",verticalAnchor:v};return et(et({},x),n?{height:Math.max(n.y+n.height-(s+c),0),width:u}:{})}if(a==="left"){var S={x:l-g,y:s+c/2,textAnchor:m,verticalAnchor:"middle"};return et(et({},S),n?{width:Math.max(S.x-n.x,0),height:c}:{})}if(a==="right"){var w={x:l+u+g,y:s+c/2,textAnchor:b,verticalAnchor:"middle"};return et(et({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var _=n?{width:u,height:c}:{};return a==="insideLeft"?et({x:l+g,y:s+c/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideRight"?et({x:l+u-g,y:s+c/2,textAnchor:m,verticalAnchor:"middle"},_):a==="insideTop"?et({x:l+u/2,y:s+d,textAnchor:"middle",verticalAnchor:v},_):a==="insideBottom"?et({x:l+u/2,y:s+c-d,textAnchor:"middle",verticalAnchor:y},_):a==="insideTopLeft"?et({x:l+g,y:s+d,textAnchor:b,verticalAnchor:v},_):a==="insideTopRight"?et({x:l+u-g,y:s+d,textAnchor:m,verticalAnchor:v},_):a==="insideBottomLeft"?et({x:l+g,y:s+c-d,textAnchor:b,verticalAnchor:y},_):a==="insideBottomRight"?et({x:l+u-g,y:s+c-d,textAnchor:m,verticalAnchor:y},_):Qa(a)&&(W(a.x)||gi(a.x))&&(W(a.y)||gi(a.y))?et({x:l+Kt(a.x,u),y:s+Kt(a.y,c),textAnchor:"end",verticalAnchor:"end"},_):et({x:l+u/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},_)},D9=function(t){return"cx"in t&&W(t.cx)};function Xe(e){var t=e.viewBox,r=e.position,n=e.value,i=e.children,a=e.content,o=e.className,l=o===void 0?"":o,s=e.textBreakAll;if(!t||ee(n)&&ee(i)&&!k.isValidElement(a)&&!te(a))return null;if(k.isValidElement(a))return k.cloneElement(a,e);var u;if(te(a)){if(u=k.createElement(a,e),k.isValidElement(u))return u}else u=I9(e);var c=D9(t),f=ae(e,!0);if(c&&(r==="insideStart"||r==="insideEnd"||r==="end"))return N9(e,u,f);var d=c?j9(e):L9(e);return T.createElement(Kn,Dl({className:Oe("recharts-label",l)},f,d,{breakAll:s}),u)}Xe.displayName="Label";Xe.defaultProps={offset:5};var cA=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,s=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,y=t.top,v=t.left,p=t.width,g=t.height,m=t.clockWise,b=t.labelViewBox;if(b)return b;if(W(p)&&W(g)){if(W(f)&&W(d))return{x:f,y:d,width:p,height:g};if(W(y)&&W(v))return{x:y,y:v,width:p,height:g}}return W(f)&&W(d)?{x:f,y:d,width:0,height:0}:W(r)&&W(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||s||l||0,clockWise:m}:t.viewBox?t.viewBox:{}},F9=function(t,r){return t?t===!0?T.createElement(Xe,{key:"label-implicit",viewBox:r}):Ze(t)?T.createElement(Xe,{key:"label-implicit",viewBox:r,value:t}):k.isValidElement(t)?t.type===Xe?k.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(Xe,{key:"label-implicit",content:t,viewBox:r}):te(t)?T.createElement(Xe,{key:"label-implicit",content:t,viewBox:r}):Qa(t)?T.createElement(Xe,Dl({viewBox:r},t,{key:"label-implicit"})):null:null},B9=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=cA(t),o=Fr(i,Xe).map(function(s,u){return k.cloneElement(s,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var l=F9(t.label,r||a);return[l].concat(k9(o))};Xe.parseViewBox=cA;Xe.renderCallByParent=B9;function z9(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var U9=z9;const H9=ve(U9);function Fl(e){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}var W9=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function V9(e){return Y9(e)||K9(e)||q9(e)||G9()}function G9(){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 q9(e,t){if(e){if(typeof e=="string")return cv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cv(e,t)}}function K9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y9(e){if(Array.isArray(e))return cv(e)}function cv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var tH={valueAccessor:function(t){return bt(t.value)?H9(t.value):t.value}};function Wn(e){var t=e.data,r=e.valueAccessor,n=e.dataKey,i=e.clockWise,a=e.id,o=e.textBreakAll,l=J9(e,W9);return!t||!t.length?null:T.createElement(De,{className:"recharts-label-list"},t.map(function(s,u){var c=ee(n)?r(s,u):Vt(s&&s.payload,n),f=ee(a)?{}:{id:"".concat(a,"-").concat(u)};return T.createElement(Xe,wc({},ae(s,!0),l,f,{parentViewBox:s.parentViewBox,index:u,value:c,textBreakAll:o,viewBox:Xe.parseViewBox(ee(i)?s:ex(ex({},s),{},{clockWise:i})),key:"label-".concat(u)}))}))}Wn.displayName="LabelList";function rH(e,t){return e?e===!0?T.createElement(Wn,{key:"labelList-implicit",data:t}):T.isValidElement(e)||te(e)?T.createElement(Wn,{key:"labelList-implicit",data:t,content:e}):Qa(e)?T.createElement(Wn,wc({data:t},e,{key:"labelList-implicit"})):null:null}function nH(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Fr(n,Wn).map(function(o,l){return k.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return i;var a=rH(e.label,t);return[a].concat(V9(i))}Wn.renderCallByParent=nH;Wn.defaultProps=tH;function fv(){return fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>u),`, `).concat(f.x,",").concat(f.y,` `);if(i>0){var y=Ee(r,n,i,o),v=Ee(r,n,i,u);d+="L ".concat(v.x,",").concat(v.y,` A `).concat(i,",").concat(i,`,0, `).concat(+(Math.abs(s)>180),",").concat(+(o<=u),`, `).concat(y.x,",").concat(y.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},aH=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=It(c-u),d=Zs({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:s}),y=d.circleTangency,v=d.lineTangency,p=d.theta,g=Zs({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:s}),m=g.circleTangency,b=g.lineTangency,h=g.theta,x=s?Math.abs(u-c):Math.abs(u-c)-p-h;if(x<0)return l?"M ".concat(v.x,",").concat(v.y,` a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 `):fA({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var S="M ".concat(v.x,",").concat(v.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,` A`).concat(a,",").concat(a,",0,").concat(+(x>180),",").concat(+(f<0),",").concat(m.x,",").concat(m.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,` `);if(i>0){var w=Zs({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=w.circleTangency,O=w.lineTangency,P=w.theta,A=Zs({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),E=A.circleTangency,C=A.lineTangency,$=A.theta,N=s?Math.abs(u-c):Math.abs(u-c)-P-$;if(N<0&&o===0)return"".concat(S,"L").concat(r,",").concat(n,"Z");S+="L".concat(C.x,",").concat(C.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,` A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(f>0),",").concat(_.x,",").concat(_.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(O.x,",").concat(O.y,"Z")}else S+="L".concat(r,",").concat(n,"Z");return S},Sc=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=t.className;if(a0&&Math.abs(u-c)<360?p=aH({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,y/2),forceCornerRadius:l,cornerIsExternal:s,startAngle:u,endAngle:c}):p=fA({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c}),T.createElement("path",fv({},ae(t,!0),{className:d,d:p,role:"img"}))};Sc.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};function Bl(e){"@babel/helpers - typeof";return Bl=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},Bl(e)}function dv(){return dv=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,s=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,y=4;do?o:a[d];c="M".concat(t,",").concat(r+l*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+s*f[0],",").concat(r)),c+="L ".concat(t+n-s*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, `).concat(t+n,",").concat(r+l*f[1])),c+="L ".concat(t+n,",").concat(r+i-l*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`, `).concat(t+n-s*f[2],",").concat(r+i)),c+="L ".concat(t+s*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`, `).concat(t,",").concat(r+i-l*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var v=Math.min(o,a);c="M ".concat(t,",").concat(r+l*v,` A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+s*v,",").concat(r,` L `).concat(t+n-s*v,",").concat(r,` A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+n,",").concat(r+l*v,` L `).concat(t+n,",").concat(r+i-l*v,` A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+n-s*v,",").concat(r+i,` L `).concat(t+s*v,",").concat(r+i,` A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t,",").concat(r+i-l*v," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},mH=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,l=r.width,s=r.height;if(Math.abs(l)>0&&Math.abs(s)>0){var u=Math.min(a,a+l),c=Math.max(a,a+l),f=Math.min(o,o+s),d=Math.max(o,o+s);return n>=u&&n<=c&&i>=f&&i<=d}return!1},Mg=function(t){var r=k.useRef(),n=k.useState(-1),i=fH(n,2),a=i[0],o=i[1];k.useLayoutEffect(function(){if(r.current&&r.current.getTotalLength)try{var h=r.current.getTotalLength();h&&o(h)}catch{}},[]);var l=t.x,s=t.y,u=t.width,c=t.height,f=t.radius,d=t.className,y=t.animationEasing,v=t.animationDuration,p=t.animationBegin,g=t.isAnimationActive,m=t.isUpdateAnimationActive;if(l!==+l||s!==+s||u!==+u||c!==+c||u===0||c===0)return null;var b=Oe("recharts-rectangle",d);return m?T.createElement(Ra,{canBegin:a>0,from:{width:u,height:c,x:l,y:s},to:{width:u,height:c,x:l,y:s},duration:v,animationEasing:y,isActive:m},function(h){var x=h.width,S=h.height,w=h.x,_=h.y;return T.createElement(Ra,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:g,easing:y},T.createElement("path",Oc({},ae(t,!0),{className:b,d:ax(w,_,x,S,f),ref:r})))}):T.createElement("path",Oc({},ae(t,!0),{className:b,d:ax(l,s,u,c,f)}))};Mg.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var gH=["points","className","baseLinePoints","connectNulls"];function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function ox(e){return _H(e)||SH(e)||wH(e)||xH()}function xH(){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 wH(e,t){if(e){if(typeof e=="string")return hv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hv(e,t)}}function SH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _H(e){if(Array.isArray(e))return hv(e)}function hv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){lx(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),lx(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Jo=function(t,r){var n=OH(t);r&&(n=[n.reduce(function(a,o){return[].concat(ox(a),ox(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,l,s){return"".concat(o).concat(s===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},kH=function(t,r,n){var i=Jo(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Jo(r.reverse(),n).slice(1))},AH=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=yH(t,gH);if(!r||!r.length)return null;var l=Oe("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",u=kH(r,i,a);return T.createElement("g",{className:l},T.createElement("path",sa({},ae(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?T.createElement("path",sa({},ae(o,!0),{fill:"none",d:Jo(r,a)})):null,s?T.createElement("path",sa({},ae(o,!0),{fill:"none",d:Jo(i,a)})):null)}var c=Jo(r,a);return T.createElement("path",sa({},ae(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",className:l,d:c}))};function pv(){return pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UH(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function HH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cx(e,t){for(var r=0;r"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 kc(e){return kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kc(e)}function Rf(e,t,r){return t=hA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hA(e){var t=XH(e,"string");return Da(t)==="symbol"?t:String(t)}function XH(e,t){if(Da(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Da(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nf=function(e){VH(r,e);var t=GH(r);function r(){return HH(this,r),t.apply(this,arguments)}return WH(r,[{key:"getTickValueCoord",value:function(i){var a=i.coordinate,o=this.props,l=o.angle,s=o.cx,u=o.cy;return Ee(s,u,a,l)}},{key:"getTickTextAnchor",value:function(){var i=this.props.orientation,a;switch(i){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var i=this.props,a=i.cx,o=i.cy,l=i.angle,s=i.ticks,u=FH(s,function(f){return f.coordinate||0}),c=IH(s,function(f){return f.coordinate||0});return{cx:a,cy:o,startAngle:l,endAngle:l,innerRadius:c.coordinate||0,outerRadius:u.coordinate||0}}},{key:"renderAxisLine",value:function(){var i=this.props,a=i.cx,o=i.cy,l=i.angle,s=i.ticks,u=i.axisLine,c=ux(i,BH),f=s.reduce(function(p,g){return[Math.min(p[0],g.coordinate),Math.max(p[1],g.coordinate)]},[1/0,-1/0]),d=Ee(a,o,f[0],l),y=Ee(a,o,f[1],l),v=ai(ai(ai({},ae(c)),{},{fill:"none"},ae(u)),{},{x1:d.x,y1:d.y,x2:y.x,y2:y.y});return T.createElement("line",el({className:"recharts-polar-radius-axis-line"},v))}},{key:"renderTicks",value:function(){var i=this,a=this.props,o=a.ticks,l=a.tick,s=a.angle,u=a.tickFormatter,c=a.stroke,f=ux(a,zH),d=this.getTickTextAnchor(),y=ae(f),v=ae(l),p=o.map(function(g,m){var b=i.getTickValueCoord(g),h=ai(ai(ai(ai({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(b.x,", ").concat(b.y,")")},y),{},{stroke:"none",fill:c},v),{},{index:m},b),{},{payload:g});return T.createElement(De,el({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(m)},ls(i.props,g,m)),r.renderTickItem(l,h,u?u(g.value,m):g.value))});return T.createElement(De,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var i=this.props,a=i.ticks,o=i.axisLine,l=i.tick;return!a||!a.length?null:T.createElement(De,{className:"recharts-polar-radius-axis"},o&&this.renderAxisLine(),l&&this.renderTicks(),Xe.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(i,a,o){var l;return T.isValidElement(i)?l=T.cloneElement(i,a):te(i)?l=i(a):l=T.createElement(Kn,el({},a,{className:"recharts-polar-radius-axis-tick-value"}),o),l}}]),r}(k.PureComponent);Rf(Nf,"displayName","PolarRadiusAxis");Rf(Nf,"axisType","radiusAxis");Rf(Nf,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Fa(e){"@babel/helpers - typeof";return Fa=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},Fa(e)}function di(){return di=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ac(e){return Ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ac(e)}function jf(e,t,r){return t=pA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pA(e){var t=iW(e,"string");return Fa(t)==="symbol"?t:String(t)}function iW(e,t){if(Fa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aW=Math.PI/180,hx=1e-5,Lf=function(e){JH(r,e);var t=eW(r);function r(){return QH(this,r),t.apply(this,arguments)}return ZH(r,[{key:"getTickLineCoord",value:function(i){var a=this.props,o=a.cx,l=a.cy,s=a.radius,u=a.orientation,c=a.tickSize,f=c||8,d=Ee(o,l,s,i.coordinate),y=Ee(o,l,s+(u==="inner"?-1:1)*f,i.coordinate);return{x1:d.x,y1:d.y,x2:y.x,y2:y.y}}},{key:"getTickTextAnchor",value:function(i){var a=this.props.orientation,o=Math.cos(-i.coordinate*aW),l;return o>hx?l=a==="outer"?"start":"end":o<-hx?l=a==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var i=this.props,a=i.cx,o=i.cy,l=i.radius,s=i.axisLine,u=i.axisLineType,c=oi(oi({},ae(this.props)),{},{fill:"none"},ae(s));if(u==="circle")return T.createElement(Ig,di({className:"recharts-polar-angle-axis-line"},c,{cx:a,cy:o,r:l}));var f=this.props.ticks,d=f.map(function(y){return Ee(a,o,l,y.coordinate)});return T.createElement(AH,di({className:"recharts-polar-angle-axis-line"},c,{points:d}))}},{key:"renderTicks",value:function(){var i=this,a=this.props,o=a.ticks,l=a.tick,s=a.tickLine,u=a.tickFormatter,c=a.stroke,f=ae(this.props),d=ae(l),y=oi(oi({},f),{},{fill:"none"},ae(s)),v=o.map(function(p,g){var m=i.getTickLineCoord(p),b=i.getTickTextAnchor(p),h=oi(oi(oi({textAnchor:b},f),{},{stroke:"none",fill:c},d),{},{index:g,payload:p,x:m.x2,y:m.y2});return T.createElement(De,di({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(g)},ls(i.props,p,g)),s&&T.createElement("line",di({className:"recharts-polar-angle-axis-tick-line"},y,m)),l&&r.renderTickItem(l,h,u?u(p.value,g):p.value))});return T.createElement(De,{className:"recharts-polar-angle-axis-ticks"},v)}},{key:"render",value:function(){var i=this.props,a=i.ticks,o=i.radius,l=i.axisLine;return o<=0||!a||!a.length?null:T.createElement(De,{className:"recharts-polar-angle-axis"},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(i,a,o){var l;return T.isValidElement(i)?l=T.cloneElement(i,a):te(i)?l=i(a):l=T.createElement(Kn,di({},a,{className:"recharts-polar-angle-axis-tick-value"}),o),l}}]),r}(k.PureComponent);jf(Lf,"displayName","PolarAngleAxis");jf(Lf,"axisType","angleAxis");jf(Lf,"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 oW=iO,lW=oW(Object.getPrototypeOf,Object),sW=lW,uW=pn,cW=sW,fW=vn,dW="[object Object]",hW=Function.prototype,pW=Object.prototype,vA=hW.toString,vW=pW.hasOwnProperty,mW=vA.call(Object);function gW(e){if(!fW(e)||uW(e)!=dW)return!1;var t=cW(e);if(t===null)return!0;var r=vW.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&vA.call(r)==mW}var yW=gW;const bW=ve(yW);function Ba(e){"@babel/helpers - typeof";return Ba=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},Ba(e)}function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 Ec(e){return Ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ec(e)}function ur(e,t,r){return t=mA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mA(e){var t=AW(e,"string");return Ba(t)==="symbol"?t:String(t)}function AW(e,t){if(Ba(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ba(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _r=function(e){SW(r,e);var t=_W(r);function r(n){var i;return xW(this,r),i=t.call(this,n),ur(qi(i),"pieRef",null),ur(qi(i),"sectorRefs",[]),ur(qi(i),"id",vf("recharts-pie-")),ur(qi(i),"handleAnimationEnd",function(){var a=i.props.onAnimationEnd;i.setState({isAnimationFinished:!0}),te(a)&&a()}),ur(qi(i),"handleAnimationStart",function(){var a=i.props.onAnimationStart;i.setState({isAnimationFinished:!1}),te(a)&&a()}),i.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},i}return wW(r,[{key:"isActiveIndex",value:function(i){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(i)!==-1:i===a}},{key:"hasActiveIndex",value:function(){var i=this.props.activeIndex;return Array.isArray(i)?i.length!==0:i||i===0}},{key:"renderLabels",value:function(i){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.label,s=o.labelLine,u=o.dataKey,c=o.valueKey,f=ae(this.props),d=ae(l),y=ae(s),v=l&&l.offsetRadius||20,p=i.map(function(g,m){var b=(g.startAngle+g.endAngle)/2,h=Ee(g.cx,g.cy,g.outerRadius+v,b),x=Re(Re(Re(Re({},f),g),{},{stroke:"none"},d),{},{index:m,textAnchor:r.getTextAnchor(h.x,g.cx)},h),S=Re(Re(Re(Re({},f),g),{},{fill:"none",stroke:g.fill},y),{},{index:m,points:[Ee(g.cx,g.cy,g.outerRadius,b),h],key:"line"}),w=u;return ee(u)&&ee(c)?w="value":ee(u)&&(w=c),T.createElement(De,{key:"label-".concat(m)},s&&r.renderLabelLineItem(s,S),r.renderLabelItem(l,x,Vt(g,w)))});return T.createElement(De,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(i){var a=this,o=this.props,l=o.activeShape,s=o.blendStroke,u=o.inactiveShape;return i.map(function(c,f){var d=u&&a.hasActiveIndex()?u:null,y=a.isActiveIndex(f)?l:d,v=Re(Re({},c),{},{stroke:s?c.fill:c.stroke});return T.createElement(De,hi({ref:function(g){g&&!a.sectorRefs.includes(g)&&a.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},ls(a.props,c,f),{key:"sector-".concat(f)}),r.renderSectorItem(y,v))})}},{key:"renderSectorsWithAnimation",value:function(){var i=this,a=this.props,o=a.sectors,l=a.isAnimationActive,s=a.animationBegin,u=a.animationDuration,c=a.animationEasing,f=a.animationId,d=this.state,y=d.prevSectors,v=d.prevIsAnimationActive;return T.createElement(Ra,{begin:s,duration:u,isActive:l,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(p){var g=p.t,m=[],b=o&&o[0],h=b.startAngle;return o.forEach(function(x,S){var w=y&&y[S],_=S>0?Xt(x,"paddingAngle",0):0;if(w){var O=k0(w.endAngle-w.startAngle,x.endAngle-x.startAngle),P=Re(Re({},x),{},{startAngle:h+_,endAngle:h+O(g)+_});m.push(P),h=P.endAngle}else{var A=x.endAngle,E=x.startAngle,C=k0(0,A-E),$=C(g),N=Re(Re({},x),{},{startAngle:h+_,endAngle:h+$+_});m.push(N),h=N.endAngle}}),T.createElement(De,null,i.renderSectorsStatically(m))})}},{key:"attachKeyboardHandlers",value:function(i){var a=this;i.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var l=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"ArrowRight":{var s=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[s].focus(),a.setState({sectorToFocus:s});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var i=this.props,a=i.sectors,o=i.isAnimationActive,l=this.state.prevSectors;return o&&a&&a.length&&(!l||!uk(l,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var i=this,a=this.props,o=a.hide,l=a.sectors,s=a.className,u=a.label,c=a.cx,f=a.cy,d=a.innerRadius,y=a.outerRadius,v=a.isAnimationActive,p=this.state.isAnimationFinished;if(o||!l||!l.length||!W(c)||!W(f)||!W(d)||!W(y))return null;var g=Oe("recharts-pie",s);return T.createElement(De,{tabIndex:0,className:g,ref:function(b){i.pieRef=b}},this.renderSectors(),u&&this.renderLabels(l),Xe.renderCallByParent(this.props,null,!1),(!v||p)&&Wn.renderCallByParent(this.props,l,!1))}}],[{key:"getDerivedStateFromProps",value:function(i,a){return a.prevIsAnimationActive!==i.isAnimationActive?{prevIsAnimationActive:i.isAnimationActive,prevAnimationId:i.animationId,curSectors:i.sectors,prevSectors:[],isAnimationFinished:!0}:i.isAnimationActive&&i.animationId!==a.prevAnimationId?{prevAnimationId:i.animationId,curSectors:i.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:i.sectors!==a.curSectors?{curSectors:i.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(i,a){return i>a?"start":i=360?b:b-1)*s,x=g-b*y-h,S=n.reduce(function(O,P){var A=Vt(P,m,0);return O+(W(A)?A:0)},0),w;if(S>0){var _;w=n.map(function(O,P){var A=Vt(O,m,0),E=Vt(O,c,P),C=(W(A)?A:0)/S,$;P?$=_.endAngle+It(p)*s*(A!==0?1:0):$=o;var N=$+It(p)*((A!==0?y:0)+C*x),I=($+N)/2,H=(v.innerRadius+v.outerRadius)/2,U=[{name:E,value:A,payload:O,dataKey:m,type:d}],M=Ee(v.cx,v.cy,H,I);return _=Re(Re(Re({percent:C,cornerRadius:a,name:E,tooltipPayload:U,midAngle:I,middleRadius:H,tooltipPosition:M},O),v),{},{value:Vt(O,m),startAngle:$,endAngle:N,payload:O,paddingAngle:It(p)*s}),_})}return Re(Re({},v),{},{sectors:w,data:n})});var EW=Math.ceil,PW=Math.max;function TW(e,t,r,n){for(var i=-1,a=PW(EW((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var $W=TW,CW=JO,mx=1/0,MW=17976931348623157e292;function IW(e){if(!e)return e===0?e:0;if(e=CW(e),e===mx||e===-mx){var t=e<0?-1:1;return t*MW}return e===e?e:0}var gA=IW,RW=$W,NW=Sf,th=gA;function jW(e){return function(t,r,n){return n&&typeof n!="number"&&NW(t,r,n)&&(r=n=void 0),t=th(t),r===void 0?(r=t,t=0):r=th(r),n=n===void 0?t"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 $c(e){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$c(e)}function or(e,t,r){return t=bA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bA(e){var t=QW(e,"string");return za(t)==="symbol"?t:String(t)}function QW(e,t){if(za(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(za(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZW=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,l=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,u=Qo().domain(Pc(0,s)).range([a,a+o-l]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},wx=function(t){return t.changedTouches&&!!t.changedTouches.length},Ul=function(e){qW(r,e);var t=KW(r);function r(n){var i;return VW(this,r),i=t.call(this,n),or(Tr(i),"handleDrag",function(a){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(a):i.state.isSlideMoving&&i.handleSlideDrag(a)}),or(Tr(i),"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&i.handleDrag(a.changedTouches[0])}),or(Tr(i),"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1}),i.detachDragEndListener()}),or(Tr(i),"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),or(Tr(i),"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),or(Tr(i),"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),or(Tr(i),"handleSlideDragStart",function(a){var o=wx(a)?a.changedTouches[0]:a;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(Tr(i),"startX"),endX:i.handleTravellerDragStart.bind(Tr(i),"endX")},i.state={},i}return GW(r,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var a=i.startX,o=i.endX,l=this.state.scaleValues,s=this.props,u=s.gap,c=s.data,f=c.length-1,d=Math.min(a,o),y=Math.max(a,o),v=r.getIndexInRange(l,d),p=r.getIndexInRange(l,y);return{startIndex:v-v%u,endIndex:p===f?f:p-p%u}}},{key:"getTextOfTick",value:function(i){var a=this.props,o=a.data,l=a.tickFormatter,s=a.dataKey,u=Vt(o[i],s,i);return te(l)?l(u,i):u}},{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(i){var a=this.state,o=a.slideMoveStartX,l=a.startX,s=a.endX,u=this.props,c=u.x,f=u.width,d=u.travellerWidth,y=u.startIndex,v=u.endIndex,p=u.onChange,g=i.pageX-o;g>0?g=Math.min(g,c+f-d-s,c+f-d-l):g<0&&(g=Math.max(g,c-l,c-s));var m=this.getIndex({startX:l+g,endX:s+g});(m.startIndex!==y||m.endIndex!==v)&&p&&p(m),this.setState({startX:l+g,endX:s+g,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,a){var o=wx(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var a,o=this.state,l=o.brushMoveStartX,s=o.movingTravellerId,u=o.endX,c=o.startX,f=this.state[s],d=this.props,y=d.x,v=d.width,p=d.travellerWidth,g=d.onChange,m=d.gap,b=d.data,h={startX:this.state.startX,endX:this.state.endX},x=i.pageX-l;x>0?x=Math.min(x,y+v-p-f):x<0&&(x=Math.max(x,y-f)),h[s]=f+x;var S=this.getIndex(h),w=S.startIndex,_=S.endIndex,O=function(){var A=b.length-1;return s==="startX"&&(u>c?w%m===0:_%m===0)||uc?_%m===0:w%m===0)||u>c&&_===A};this.setState((a={},or(a,s,f+x),or(a,"brushMoveStartX",i.pageX),a),function(){g&&O()&&g(S)})}},{key:"renderBackground",value:function(){var i=this.props,a=i.x,o=i.y,l=i.width,s=i.height,u=i.fill,c=i.stroke;return T.createElement("rect",{stroke:c,fill:u,x:a,y:o,width:l,height:s})}},{key:"renderPanorama",value:function(){var i=this.props,a=i.x,o=i.y,l=i.width,s=i.height,u=i.data,c=i.children,f=i.padding,d=k.Children.only(c);return d?T.cloneElement(d,{x:a,y:o,width:l,height:s,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(i,a){var o=this.props,l=o.y,s=o.travellerWidth,u=o.height,c=o.traveller,f=Math.max(i,this.props.x),d=rh(rh({},ae(this.props)),{},{x:f,y:l,width:s,height:u});return T.createElement(De,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],style:{cursor:"col-resize"}},r.renderTraveller(c,d))}},{key:"renderSlide",value:function(i,a){var o=this.props,l=o.y,s=o.height,u=o.stroke,c=o.travellerWidth,f=Math.min(i,a)+c,d=Math.max(Math.abs(a-i)-c,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:l,width:d,height:s})}},{key:"renderText",value:function(){var i=this.props,a=i.startIndex,o=i.endIndex,l=i.y,s=i.height,u=i.travellerWidth,c=i.stroke,f=this.state,d=f.startX,y=f.endX,v=5,p={pointerEvents:"none",fill:c};return T.createElement(De,{className:"recharts-brush-texts"},T.createElement(Kn,Tc({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,y)-v,y:l+s/2},p),this.getTextOfTick(a)),T.createElement(Kn,Tc({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,y)+u+v,y:l+s/2},p),this.getTextOfTick(o)))}},{key:"render",value:function(){var i=this.props,a=i.data,o=i.className,l=i.children,s=i.x,u=i.y,c=i.width,f=i.height,d=i.alwaysShowText,y=this.state,v=y.startX,p=y.endX,g=y.isTextActive,m=y.isSlideMoving,b=y.isTravellerMoving;if(!a||!a.length||!W(s)||!W(u)||!W(c)||!W(f)||c<=0||f<=0)return null;var h=Oe("recharts-brush",o),x=T.Children.count(l)===1,S=WW("userSelect","none");return T.createElement(De,{className:h,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(v,p),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(p,"endX"),(g||m||b||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var a=i.x,o=i.y,l=i.width,s=i.height,u=i.stroke,c=Math.floor(o+s/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:a,y:o,width:l,height:s,fill:u,stroke:"none"}),T.createElement("line",{x1:a+1,y1:c,x2:a+l-1,y2:c,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:a+1,y1:c+2,x2:a+l-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,a){var o;return T.isValidElement(i)?o=T.cloneElement(i,a):te(i)?o=i(a):o=r.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(i,a){var o=i.data,l=i.width,s=i.x,u=i.travellerWidth,c=i.updateId,f=i.startIndex,d=i.endIndex;if(o!==a.prevData||c!==a.prevUpdateId)return rh({prevData:o,prevTravellerWidth:u,prevUpdateId:c,prevX:s,prevWidth:l},o&&o.length?ZW({data:o,width:l,x:s,travellerWidth:u,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||s!==a.prevX||u!==a.prevTravellerWidth)){a.scale.range([s,s+l-u]);var y=a.scale.domain().map(function(v){return a.scale(v)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:c,prevX:s,prevWidth:l,startX:a.scale(i.startIndex),endX:a.scale(i.endIndex),scaleValues:y}}return null}},{key:"getIndexInRange",value:function(i,a){for(var o=i.length,l=0,s=o-1;s-l>1;){var u=Math.floor((l+s)/2);i[u]>a?s=u:l=u}return a>=i[s]?s:l}}]),r}(k.PureComponent);or(Ul,"displayName","Brush");or(Ul,"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 JW=rg;function eV(e,t){var r;return JW(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var tV=eV,rV=X_,nV=Gr,iV=tV,aV=Pt,oV=Sf;function lV(e,t,r){var n=aV(e)?rV:iV;return r&&oV(e,t,r)&&(t=void 0),n(e,nV(t))}var sV=lV;const uV=ve(sV);var zr=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r};function cV(e,t){for(var r=-1,n=e==null?0:e.length;++r1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}]),e}();Rg(_A,"EPS",1e-4);var Ng=function(t){var r=Object.keys(t).reduce(function(n,i){return eu(eu({},n),{},Rg({},i,_A.create(t[i])))},{});return eu(eu({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return TV(i,function(s,u){return r[u].apply(s,{bandAware:o,position:l})})},isInRange:function(i){return xA(i,function(a,o){return r[o].isInRange(a)})}})};function RV(e){return(e%180+180)%180}var NV=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=RV(i),o=a*Math.PI/180,l=Math.atan(n/r),s=o>l&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2?It(g[1].coordinate-g[0].coordinate):1,h,x;b===1?(h=v==="width"?c:f,x=v==="width"?c+d:f+y):(h=v==="width"?c+d:f+y,x=v==="width"?c:f);for(var S=m-1;S>=0;S--){var w=g[S],_=te(n)?n(w.value,m-S-1):w.value,O=v==="width"?Ov(Rr(_,{fontSize:s,letterSpacing:u}),p,t):Rr(_,{fontSize:s,letterSpacing:u})[v];if(S===m-1){var P=b*(w.coordinate+b*O/2-x);g[S]=w=mt(mt({},w),{},{tickCoord:P>0?w.coordinate-P*b:w.coordinate})}else g[S]=w=mt(mt({},w),{},{tickCoord:w.coordinate});var A=b*(w.tickCoord-b*O/2-h)>=0&&b*(w.tickCoord+b*O/2-x)<=0;A&&(x=w.tickCoord-b*(O/2+o),g[S]=mt(mt({},w),{},{isShow:!0}))}return g}function Ix(e,t){var r=e.angle,n=e.ticks,i=e.tickFormatter,a=e.viewBox,o=e.orientation,l=e.minTickGap,s=e.unit,u=e.fontSize,c=e.letterSpacing,f=a.x,d=a.y,y=a.width,v=a.height,p=o==="top"||o==="bottom"?"width":"height",g=(n||[]).slice(),m=s&&p==="width"?Rr(s,{fontSize:u,letterSpacing:c}):{width:0,height:0},b=g.length,h=b>=2?It(g[1].coordinate-g[0].coordinate):1,x,S;if(h===1?(x=p==="width"?f:d,S=p==="width"?f+y:d+v):(x=p==="width"?f+y:d+v,S=p==="width"?f:d),t){var w=n[b-1],_=te(i)?i(w.value,b-1):w.value,O=p==="width"?Ov(Rr(_,{fontSize:u,letterSpacing:c}),m,r):Rr(_,{fontSize:u,letterSpacing:c})[p],P=h*(w.coordinate+h*O/2-S);g[b-1]=w=mt(mt({},w),{},{tickCoord:P>0?w.coordinate-P*h:w.coordinate});var A=h*(w.tickCoord-h*O/2-x)>=0&&h*(w.tickCoord+h*O/2-S)<=0;A&&(S=w.tickCoord-h*(O/2+l),g[b-1]=mt(mt({},w),{},{isShow:!0}))}for(var E=t?b-1:b,C=0;C=0&&h*($.tickCoord+h*I/2-S)<=0;U&&(x=$.tickCoord+h*(I/2+l),g[C]=mt(mt({},$),{},{isShow:!0}))}return g}function kv(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,l=e.orientation,s=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(W(s)||zn.isSsr)return iG(i,typeof s=="number"&&W(s)?s:0);var d=[];return s==="equidistantPreserveStart"?(d=Ix({angle:f,ticks:i,tickFormatter:u,viewBox:a,orientation:l,minTickGap:o,unit:c,fontSize:t,letterSpacing:r}),nG(d)):(s==="preserveStart"||s==="preserveStartEnd"?d=Ix({angle:f,ticks:i,tickFormatter:u,viewBox:a,orientation:l,minTickGap:o,unit:c,fontSize:t,letterSpacing:r},s==="preserveStartEnd"):d=aG({angle:f,ticks:i,tickFormatter:u,viewBox:a,orientation:l,minTickGap:o,unit:c,fontSize:t,letterSpacing:r}),d.filter(function(y){return y.isShow}))}var oG=["viewBox"],lG=["viewBox"],sG=["ticks"];function Ua(e){"@babel/helpers - typeof";return Ua=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},Ua(e)}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function cG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nx(e,t){for(var r=0;r"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 Cc(e){return Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cc(e)}function Lg(e,t,r){return t=OA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OA(e){var t=gG(e,"string");return Ua(t)==="symbol"?t:String(t)}function gG(e,t){if(Ua(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ua(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tl=function(e){dG(r,e);var t=hG(r);function r(n){var i;return cG(this,r),i=t.call(this,n),i.state={fontSize:"",letterSpacing:""},i}return fG(r,[{key:"shouldComponentUpdate",value:function(i,a){var o=i.viewBox,l=nh(i,oG),s=this.props,u=s.viewBox,c=nh(s,lG);return!ga(o,u)||!ga(l,c)||!ga(a,this.state)}},{key:"componentDidMount",value:function(){var i=this.layerReference;if(i){var a=i.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(i){var a=this.props,o=a.x,l=a.y,s=a.width,u=a.height,c=a.orientation,f=a.tickSize,d=a.mirror,y=a.tickMargin,v,p,g,m,b,h,x=d?-1:1,S=i.tickSize||f,w=W(i.tickCoord)?i.tickCoord:i.coordinate;switch(c){case"top":v=p=i.coordinate,m=l+ +!d*u,g=m-x*S,h=g-x*y,b=w;break;case"left":g=m=i.coordinate,p=o+ +!d*s,v=p-x*S,b=v-x*y,h=w;break;case"right":g=m=i.coordinate,p=o+ +d*s,v=p+x*S,b=v+x*y,h=w;break;default:v=p=i.coordinate,m=l+ +d*u,g=m+x*S,h=g+x*y,b=w;break}return{line:{x1:v,y1:g,x2:p,y2:m},tick:{x:b,y:h}}}},{key:"getTickTextAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,l;switch(a){case"left":l=o?"start":"end";break;case"right":l=o?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=o?"start":"end";break;default:l=o?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var i=this.props,a=i.x,o=i.y,l=i.width,s=i.height,u=i.orientation,c=i.mirror,f=i.axisLine,d=wt(wt(wt({},ae(this.props)),ae(f)),{},{fill:"none"});if(u==="top"||u==="bottom"){var y=+(u==="top"&&!c||u==="bottom"&&c);d=wt(wt({},d),{},{x1:a,y1:o+y*s,x2:a+l,y2:o+y*s})}else{var v=+(u==="left"&&!c||u==="right"&&c);d=wt(wt({},d),{},{x1:a+v*l,y1:o,x2:a+v*l,y2:o+s})}return T.createElement("line",ua({},d,{className:Oe("recharts-cartesian-axis-line",Xt(f,"className"))}))}},{key:"renderTicks",value:function(i,a,o){var l=this,s=this.props,u=s.tickLine,c=s.stroke,f=s.tick,d=s.tickFormatter,y=s.unit,v=kv(wt(wt({},this.props),{},{ticks:i}),a,o),p=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),m=ae(this.props),b=ae(f),h=wt(wt({},m),{},{fill:"none"},ae(u)),x=v.map(function(S,w){var _=l.getTickLineCoord(S),O=_.line,P=_.tick,A=wt(wt(wt(wt({textAnchor:p,verticalAnchor:g},m),{},{stroke:"none",fill:c},b),P),{},{index:w,payload:S,visibleTicksCount:v.length,tickFormatter:d});return T.createElement(De,ua({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w)},ls(l.props,S,w)),u&&T.createElement("line",ua({},h,O,{className:Oe("recharts-cartesian-axis-tick-line",Xt(u,"className"))})),f&&r.renderTickItem(f,A,"".concat(te(d)?d(S.value,w):S.value).concat(y||"")))});return T.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var i=this,a=this.props,o=a.axisLine,l=a.width,s=a.height,u=a.ticksGenerator,c=a.className,f=a.hide;if(f)return null;var d=this.props,y=d.ticks,v=nh(d,sG),p=y;return te(u)&&(p=y&&y.length>0?u(this.props):u(v)),l<=0||s<=0||!p||!p.length?null:T.createElement(De,{className:Oe("recharts-cartesian-axis",c),ref:function(m){i.layerReference=m}},o&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),Xe.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,a,o){var l;return T.isValidElement(i)?l=T.cloneElement(i,a):te(i)?l=i(a):l=T.createElement(Kn,ua({},a,{className:"recharts-cartesian-axis-tick-value"}),o),l}}]),r}(k.Component);Lg(tl,"displayName","CartesianAxis");Lg(tl,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var yG=Gr,bG=ss,xG=mf;function wG(e){return function(t,r,n){var i=Object(t);if(!bG(t)){var a=yG(r);t=xG(t),r=function(l){return a(i[l],l,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var SG=wG,_G=gA;function OG(e){var t=_G(e),r=t%1;return t===t?r?t-r:t:0}var kG=OG,AG=cO,EG=Gr,PG=kG,TG=Math.max;function $G(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:PG(r);return i<0&&(i=TG(n+i,0)),AG(e,EG(t),i)}var CG=$G,MG=SG,IG=CG,RG=MG(IG),NG=RG;const jG=ve(NG);var LG=pn,DG=vn,FG="[object Boolean]";function BG(e){return e===!0||e===!1||DG(e)&&LG(e)==FG}var zG=BG;const UG=ve(zG);function jx(e){return GG(e)||VG(e)||WG(e)||HG()}function HG(){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 WG(e,t){if(e){if(typeof e=="string")return Ev(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ev(e,t)}}function VG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GG(e){if(Array.isArray(e))return Ev(e)}function Ev(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function aq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bx(e,t){for(var r=0;r"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 Mc(e){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mc(e)}function Wa(e){return hq(e)||dq(e)||EA(e)||fq()}function fq(){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 EA(e,t){if(e){if(typeof e=="string")return $v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $v(e,t)}}function dq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hq(e){if(Array.isArray(e))return $v(e)}function $v(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?l:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:t&&t.length&&W(a)&&W(o)?t.slice(a,o+1):[]};function bq(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&W(n)&&W(i))return!0}return!1}function $A(e){return e==="number"?[0,"auto"]:void 0}var CA=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,l=Df(r,t);return n<0||!a||!a.length||n>=l.length?null:a.reduce(function(s,u){var c=u.props.hide;if(c)return s;var f=u.props.data,d;if(o.dataKey&&!o.allowDuplicatedCategory){var y=f===void 0?l:f;d=up(y,o.dataKey,i)}else d=f&&f[n]||l[n];return d?[].concat(Wa(s),[f9(u,d)]):s},[])},Wx=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=gq(a,n),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,c=Y7(o,l,u,s);if(c>=0&&u){var f=u[c]&&u[c].value,d=CA(t,r,c,f),y=yq(n,l,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:y}}return null},xq=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,s=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,y=oA(c,a),v=n.reduce(function(p,g){var m,b=g.props,h=b.type,x=b.dataKey,S=b.allowDataOverflow,w=b.allowDuplicatedCategory,_=b.scale,O=b.ticks,P=b.includeHidden,A=g.props[o];if(p[A])return p;var E=Df(t.data,{graphicalItems:i.filter(function(Q){return Q.props[o]===A}),dataStartIndex:s,dataEndIndex:u}),C=E.length,$,N,I;bq(g.props.domain,S,h)&&($=lv(g.props.domain,null,S),y&&(h==="number"||_!=="auto")&&(I=Zo(E,x,"category")));var H=$A(h);if(!$||$.length===0){var U,M=(U=g.props.domain)!==null&&U!==void 0?U:H;if(x){if($=Zo(E,x,h),h==="category"&&y){var R=CM($);w&&R?(N=$,$=Pc(0,C)):w||($=Kb(M,$,g).reduce(function(Q,V){return Q.indexOf(V)>=0?Q:[].concat(Wa(Q),[V])},[]))}else if(h==="category")w?$=$.filter(function(Q){return Q!==""&&!ee(Q)}):$=Kb(M,$,g).reduce(function(Q,V){return Q.indexOf(V)>=0||V===""||ee(V)?Q:[].concat(Wa(Q),[V])},[]);else if(h==="number"){var B=e9(E,i.filter(function(Q){return Q.props[o]===A&&(P||!Q.props.hide)}),x,a,c);B&&($=B)}y&&(h==="number"||_!=="auto")&&(I=Zo(E,x,"category"))}else y?$=Pc(0,C):l&&l[A]&&l[A].hasStack&&h==="number"?$=d==="expand"?[0,1]:lA(l[A].stackGroups,s,u):$=aA(E,i.filter(function(Q){return Q.props[o]===A&&(P||!Q.props.hide)}),h,c,!0);if(h==="number")$=Pv(f,$,A,a,O),M&&($=lv(M,$,S));else if(h==="category"&&M){var G=M,X=$.every(function(Q){return G.indexOf(Q)>=0});X&&($=G)}}return j(j({},p),{},J({},A,j(j({},g.props),{},{axisType:a,domain:$,categoricalDomain:I,duplicateDomain:N,originalDomain:(m=g.props.domain)!==null&&m!==void 0?m:H,isCategorical:y,layout:c})))},{});return v},wq=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,s=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=Df(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),y=d.length,v=oA(c,a),p=-1,g=n.reduce(function(m,b){var h=b.props[o],x=$A("number");if(!m[h]){p++;var S;return v?S=Pc(0,y):l&&l[h]&&l[h].hasStack?(S=lA(l[h].stackGroups,s,u),S=Pv(f,S,h,a)):(S=lv(x,aA(d,n.filter(function(w){return w.props[o]===h&&!w.props.hide}),"number",c),i.defaultProps.allowDataOverflow),S=Pv(f,S,h,a)),j(j({},m),{},J({},h,j(j({axisType:a},i.defaultProps),{},{hide:!0,orientation:Xt(vq,"".concat(a,".").concat(p%2),null),domain:S,originalDomain:x,isCategorical:v,layout:c})))}return m},{});return g},Sq=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,s=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=Fr(c,a),y={};return d&&d.length?y=xq(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(y=wq(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),y},_q=function(t){var r=wn(t),n=Sn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:ng(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:sv(r,n)}},Vx=function(t){var r,n,i=t.children,a=t.defaultShowTooltip,o=$n(i,Ul),l=o&&o.props&&o.props.startIndex||0,s=(o==null||(r=o.props)===null||r===void 0?void 0:r.endIndex)!==void 0?o==null||(n=o.props)===null||n===void 0?void 0:n.endIndex:t.data&&t.data.length-1||0;return{chartX:0,chartY:0,dataStartIndex:l,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:ee(a)?!1:a}},Oq=function(t){return!t||!t.length?!1:t.some(function(r){var n=Bn(r&&r.type);return n&&n.indexOf("Bar")>=0})},Gx=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"}},kq=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,s=l===void 0?{}:l,u=n.width,c=n.height,f=n.children,d=n.margin||{},y=$n(f,Ul),v=$n(f,Sl),p=Object.keys(s).reduce(function(h,x){var S=s[x],w=S.orientation;return!S.mirror&&!S.hide?j(j({},h),{},J({},w,h[w]+S.width)):h},{left:d.left||0,right:d.right||0}),g=Object.keys(o).reduce(function(h,x){var S=o[x],w=S.orientation;return!S.mirror&&!S.hide?j(j({},h),{},J({},w,Xt(h,"".concat(w))+S.height)):h},{top:d.top||0,bottom:d.bottom||0}),m=j(j({},g),p),b=m.bottom;return y&&(m.bottom+=y.props.height||Ul.defaultProps.height),v&&r&&(m=Z7(m,i,n,r)),j(j({brushBottom:b},m),{},{width:u-m.left-m.right,height:c-m.top-m.bottom})},Aq=function(t){var r,n=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,l=t.validateTooltipEventTypes,s=l===void 0?["axis"]:l,u=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,y=function(g,m){var b=m.graphicalItems,h=m.stackGroups,x=m.offset,S=m.updateId,w=m.dataStartIndex,_=m.dataEndIndex,O=g.barSize,P=g.layout,A=g.barGap,E=g.barCategoryGap,C=g.maxBarSize,$=Gx(P),N=$.numericAxisName,I=$.cateAxisName,H=Oq(b),U=H&&X7({barSize:O,stackGroups:h}),M=[];return b.forEach(function(R,B){var G=Df(g.data,{dataStartIndex:w,dataEndIndex:_},R),X=R.props,Q=X.dataKey,V=X.maxBarSize,Z=R.props["".concat(N,"Id")],ne=R.props["".concat(I,"Id")],Se=u.reduce(function(fo,ws){var Ss,ry=m["".concat(ws.axisType,"Map")],pE=R.props["".concat(ws.axisType,"Id")],ny=ry&&ry[pE];return j(j({},fo),{},(Ss={},J(Ss,ws.axisType,ny),J(Ss,"".concat(ws.axisType,"Ticks"),Sn(ny)),Ss))},{}),ie=Se[I],F=Se["".concat(I,"Ticks")],q=h&&h[Z]&&h[Z].hasStack&&u9(R,h[Z].stackGroups),re=Bn(R.type).indexOf("Bar")>=0,L=sv(ie,F),fe=[];if(re){var le,Pe,ze=ee(V)?C:V,Tt=(le=(Pe=sv(ie,F,!0))!==null&&Pe!==void 0?Pe:ze)!==null&&le!==void 0?le:0;fe=Q7({barGap:A,barCategoryGap:E,bandSize:Tt!==L?Tt:L,sizeList:U[ne],maxBarSize:ze}),Tt!==L&&(fe=fe.map(function(fo){return j(j({},fo),{},{position:j(j({},fo.position),{},{offset:fo.position.offset-Tt/2})})}))}var ii=R&&R.type&&R.type.getComposedData;if(ii){var co;M.push({props:j(j({},ii(j(j({},Se),{},{displayedData:G,props:g,dataKey:Q,item:R,bandSize:L,barPosition:fe,offset:x,stackedData:q,layout:P,dataStartIndex:w,dataEndIndex:_}))),{},(co={key:R.key||"item-".concat(B)},J(co,N,Se[N]),J(co,I,Se[I]),J(co,"animationId",S),co)),childIndex:UM(R,g.children),item:R})}}),M},v=function(g,m){var b=g.props,h=g.dataStartIndex,x=g.dataEndIndex,S=g.updateId;if(!$0({props:b}))return null;var w=b.children,_=b.layout,O=b.stackOffset,P=b.data,A=b.reverseStackOrder,E=Gx(_),C=E.numericAxisName,$=E.cateAxisName,N=Fr(w,i),I=l9(P,N,"".concat(C,"Id"),"".concat($,"Id"),O,A),H=u.reduce(function(G,X){var Q="".concat(X.axisType,"Map");return j(j({},G),{},J({},Q,Sq(b,j(j({},X),{},{graphicalItems:N,stackGroups:X.axisType===C&&I,dataStartIndex:h,dataEndIndex:x}))))},{}),U=kq(j(j({},H),{},{props:b,graphicalItems:N}),m==null?void 0:m.legendBBox);Object.keys(H).forEach(function(G){H[G]=f(b,H[G],U,G.replace("Map",""),n)});var M=H["".concat($,"Map")],R=_q(M),B=y(b,j(j({},H),{},{dataStartIndex:h,dataEndIndex:x,updateId:S,graphicalItems:N,stackGroups:I,offset:U}));return j(j({formattedGraphicalItems:B,graphicalItems:N,offset:U,stackGroups:I},R),H)};return r=function(p){lq(m,p);var g=sq(m);function m(b){var h;return aq(this,m),h=g.call(this,b),J(se(h),"accessibilityManager",new ZG),J(se(h),"clearDeferId",function(){!ee(h.deferId)&&Hx&&Hx(h.deferId),h.deferId=null}),J(se(h),"handleLegendBBoxUpdate",function(x){if(x){var S=h.state,w=S.dataStartIndex,_=S.dataEndIndex,O=S.updateId;h.setState(j({legendBBox:x},v({props:h.props,dataStartIndex:w,dataEndIndex:_,updateId:O},j(j({},h.state),{},{legendBBox:x}))))}}),J(se(h),"handleReceiveSyncEvent",function(x,S,w){var _=h.props.syncId;_===x&&S!==h.uniqueChartId&&(h.clearDeferId(),h.deferId=Ux&&Ux(h.applySyncEvent.bind(se(h),w)))}),J(se(h),"handleBrushChange",function(x){var S=x.startIndex,w=x.endIndex;if(S!==h.state.dataStartIndex||w!==h.state.dataEndIndex){var _=h.state.updateId;h.setState(function(){return j({dataStartIndex:S,dataEndIndex:w},v({props:h.props,dataStartIndex:S,dataEndIndex:w,updateId:_},h.state))}),h.triggerSyncEvent({dataStartIndex:S,dataEndIndex:w})}}),J(se(h),"handleMouseEnter",function(x){var S=h.props.onMouseEnter,w=h.getMouseInfo(x);if(w){var _=j(j({},w),{},{isTooltipActive:!0});h.setState(_),h.triggerSyncEvent(_),te(S)&&S(_,x)}}),J(se(h),"triggeredAfterMouseMove",function(x){var S=h.props.onMouseMove,w=h.getMouseInfo(x),_=w?j(j({},w),{},{isTooltipActive:!0}):{isTooltipActive:!1};h.setState(_),h.triggerSyncEvent(_),te(S)&&S(_,x)}),J(se(h),"handleItemMouseEnter",function(x){h.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),J(se(h),"handleItemMouseLeave",function(){h.setState(function(){return{isTooltipActive:!1}})}),J(se(h),"handleMouseMove",function(x){x&&te(x.persist)&&x.persist(),h.triggeredAfterMouseMove(x)}),J(se(h),"handleMouseLeave",function(x){var S=h.props.onMouseLeave,w={isTooltipActive:!1};h.setState(w),h.triggerSyncEvent(w),te(S)&&S(w,x),h.cancelThrottledTriggerAfterMouseMove()}),J(se(h),"handleOuterEvent",function(x){var S=zM(x),w=Xt(h.props,"".concat(S));if(S&&te(w)){var _;/.*touch.*/i.test(S)?_=h.getMouseInfo(x.changedTouches[0]):_=h.getMouseInfo(x);var O=w;O(_,x)}}),J(se(h),"handleClick",function(x){var S=h.props.onClick,w=h.getMouseInfo(x);if(w){var _=j(j({},w),{},{isTooltipActive:!0});h.setState(_),h.triggerSyncEvent(_),te(S)&&S(_,x)}}),J(se(h),"handleMouseDown",function(x){var S=h.props.onMouseDown;if(te(S)){var w=h.getMouseInfo(x);S(w,x)}}),J(se(h),"handleMouseUp",function(x){var S=h.props.onMouseUp;if(te(S)){var w=h.getMouseInfo(x);S(w,x)}}),J(se(h),"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&h.handleMouseMove(x.changedTouches[0])}),J(se(h),"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&h.handleMouseDown(x.changedTouches[0])}),J(se(h),"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&h.handleMouseUp(x.changedTouches[0])}),J(se(h),"verticalCoordinatesGenerator",function(x){var S=x.xAxis,w=x.width,_=x.height,O=x.offset;return Wb(kv(j(j(j({},tl.defaultProps),S),{},{ticks:Sn(S,!0),viewBox:{x:0,y:0,width:w,height:_}})),O.left,O.left+O.width)}),J(se(h),"horizontalCoordinatesGenerator",function(x){var S=x.yAxis,w=x.width,_=x.height,O=x.offset;return Wb(kv(j(j(j({},tl.defaultProps),S),{},{ticks:Sn(S,!0),viewBox:{x:0,y:0,width:w,height:_}})),O.top,O.top+O.height)}),J(se(h),"axesTicksGenerator",function(x){return Sn(x,!0)}),J(se(h),"renderCursor",function(x){var S=h.state,w=S.isTooltipActive,_=S.activeCoordinate,O=S.activePayload,P=S.offset,A=S.activeTooltipIndex,E=h.getTooltipEventType();if(!x||!x.props.cursor||!w||!_||n!=="ScatterChart"&&E!=="axis")return null;var C=h.props.layout,$,N=_c;if(n==="ScatterChart")$=_,N=dA;else if(n==="BarChart")$=h.getCursorRectangle(),N=Mg;else if(C==="radial"){var I=h.getCursorPoints(),H=I.cx,U=I.cy,M=I.radius,R=I.startAngle,B=I.endAngle;$={cx:H,cy:U,startAngle:R,endAngle:B,innerRadius:M,outerRadius:M},N=Sc}else $={points:h.getCursorPoints()},N=_c;var G=x.key||"_recharts-cursor",X=j(j(j(j({stroke:"#ccc",pointerEvents:"none"},P),$),ae(x.props.cursor)),{},{payload:O,payloadIndex:A,key:G,className:"recharts-tooltip-cursor"});return k.isValidElement(x.props.cursor)?k.cloneElement(x.props.cursor,X):k.createElement(N,X)}),J(se(h),"renderPolarAxis",function(x,S,w){var _=Xt(x,"type.axisType"),O=Xt(h.state,"".concat(_,"Map")),P=O&&O[x.props["".concat(_,"Id")]];return k.cloneElement(x,j(j({},P),{},{className:_,key:x.key||"".concat(S,"-").concat(w),ticks:Sn(P,!0)}))}),J(se(h),"renderXAxis",function(x,S,w){var _=h.state.xAxisMap,O=_[x.props.xAxisId];return h.renderAxis(O,x,S,w)}),J(se(h),"renderYAxis",function(x,S,w){var _=h.state.yAxisMap,O=_[x.props.yAxisId];return h.renderAxis(O,x,S,w)}),J(se(h),"renderGrid",function(x){var S=h.state,w=S.xAxisMap,_=S.yAxisMap,O=S.offset,P=h.props,A=P.width,E=P.height,C=wn(w),$=jG(_,function(H){return xA(H.domain,mq)}),N=$||wn(_),I=x.props||{};return k.cloneElement(x,{key:x.key||"grid",x:W(I.x)?I.x:O.left,y:W(I.y)?I.y:O.top,width:W(I.width)?I.width:O.width,height:W(I.height)?I.height:O.height,xAxis:C,yAxis:N,offset:O,chartWidth:A,chartHeight:E,verticalCoordinatesGenerator:I.verticalCoordinatesGenerator||h.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:I.horizontalCoordinatesGenerator||h.horizontalCoordinatesGenerator})}),J(se(h),"renderPolarGrid",function(x){var S=x.props,w=S.radialLines,_=S.polarAngles,O=S.polarRadius,P=h.state,A=P.radiusAxisMap,E=P.angleAxisMap,C=wn(A),$=wn(E),N=$.cx,I=$.cy,H=$.innerRadius,U=$.outerRadius;return k.cloneElement(x,{polarAngles:bt(_)?_:Sn($,!0).map(function(M){return M.coordinate}),polarRadius:bt(O)?O:Sn(C,!0).map(function(M){return M.coordinate}),cx:N,cy:I,innerRadius:H,outerRadius:U,key:x.key||"polar-grid",radialLines:w})}),J(se(h),"renderLegend",function(){var x=h.state.formattedGraphicalItems,S=h.props,w=S.children,_=S.width,O=S.height,P=h.props.margin||{},A=_-(P.left||0)-(P.right||0),E=nA({children:w,formattedGraphicalItems:x,legendWidth:A,legendContent:c});if(!E)return null;var C=E.item,$=Fx(E,JG);return k.cloneElement(C,j(j({},$),{},{chartWidth:_,chartHeight:O,margin:P,ref:function(I){h.legendInstance=I},onBBoxUpdate:h.handleLegendBBoxUpdate}))}),J(se(h),"renderTooltip",function(){var x=h.props.children,S=$n(x,la);if(!S)return null;var w=h.state,_=w.isTooltipActive,O=w.activeCoordinate,P=w.activePayload,A=w.activeLabel,E=w.offset;return k.cloneElement(S,{viewBox:j(j({},E),{},{x:E.left,y:E.top}),active:_,label:A,payload:_?P:[],coordinate:O})}),J(se(h),"renderBrush",function(x){var S=h.props,w=S.margin,_=S.data,O=h.state,P=O.offset,A=O.dataStartIndex,E=O.dataEndIndex,C=O.updateId;return k.cloneElement(x,{key:x.key||"_recharts-brush",onChange:Qs(h.handleBrushChange,null,x.props.onChange),data:_,x:W(x.props.x)?x.props.x:P.left,y:W(x.props.y)?x.props.y:P.top+P.height+P.brushBottom-(w.bottom||0),width:W(x.props.width)?x.props.width:P.width,startIndex:A,endIndex:E,updateId:"brush-".concat(C)})}),J(se(h),"renderReferenceElement",function(x,S,w){if(!x)return null;var _=se(h),O=_.clipPathId,P=h.state,A=P.xAxisMap,E=P.yAxisMap,C=P.offset,$=x.props,N=$.xAxisId,I=$.yAxisId;return k.cloneElement(x,{key:x.key||"".concat(S,"-").concat(w),xAxis:A[N],yAxis:E[I],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:O})}),J(se(h),"renderActivePoints",function(x){var S=x.item,w=x.activePoint,_=x.basePoint,O=x.childIndex,P=x.isRange,A=[],E=S.props.key,C=S.item.props,$=C.activeDot,N=C.dataKey,I=j(j({index:O,dataKey:N,cx:w.x,cy:w.y,r:4,fill:Cg(S.item),strokeWidth:2,stroke:"#fff",payload:w.payload,value:w.value,key:"".concat(E,"-activePoint-").concat(O)},ae($)),Gu($));return A.push(m.renderActiveDot($,I)),_?A.push(m.renderActiveDot($,j(j({},I),{},{cx:_.x,cy:_.y,key:"".concat(E,"-basePoint-").concat(O)}))):P&&A.push(null),A}),J(se(h),"renderGraphicChild",function(x,S,w){var _=h.filterFormatItem(x,S,w);if(!_)return null;var O=h.getTooltipEventType(),P=h.state,A=P.isTooltipActive,E=P.tooltipAxis,C=P.activeTooltipIndex,$=P.activeLabel,N=h.props.children,I=$n(N,la),H=_.props,U=H.points,M=H.isRange,R=H.baseLine,B=_.item.props,G=B.activeDot,X=B.hide,Q=!X&&A&&I&&G&&C>=0,V={};O!=="axis"&&I&&I.props.trigger==="click"?V={onClick:Qs(h.handleItemMouseEnter,null,x.props.onCLick)}:O!=="axis"&&(V={onMouseLeave:Qs(h.handleItemMouseLeave,null,x.props.onMouseLeave),onMouseEnter:Qs(h.handleItemMouseEnter,null,x.props.onMouseEnter)});var Z=k.cloneElement(x,j(j({},_.props),V));function ne(q){return typeof E.dataKey=="function"?E.dataKey(q.payload):null}if(Q){var Se,ie;if(E.dataKey&&!E.allowDuplicatedCategory){var F=typeof E.dataKey=="function"?ne:"payload.".concat(E.dataKey.toString());Se=up(U,F,$),ie=M&&R&&up(R,F,$)}else Se=U[C],ie=M&&R&&R[C];if(!ee(Se))return[Z].concat(Wa(h.renderActivePoints({item:_,activePoint:Se,basePoint:ie,childIndex:C,isRange:M})))}return M?[Z,null,null]:[Z,null]}),J(se(h),"renderCustomized",function(x,S,w){return k.cloneElement(x,j(j({key:"recharts-customized-".concat(w)},h.props),h.state))}),h.uniqueChartId=ee(b.id)?vf("recharts"):b.id,h.clipPathId="".concat(h.uniqueChartId,"-clip"),b.throttleDelay&&(h.triggeredAfterMouseMove=ig(h.triggeredAfterMouseMove,b.throttleDelay)),h.state={},h}return oq(m,[{key:"componentDidMount",value:function(){var h,x;ee(this.props.syncId)||this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(h=this.props.margin.left)!==null&&h!==void 0?h:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.handleMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(h,x){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==x.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==h.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==h.margin){var S,w;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(h){ee(h.syncId)&&!ee(this.props.syncId)&&this.addListener(),!ee(h.syncId)&&ee(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),ee(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){typeof this.triggeredAfterMouseMove.cancel=="function"&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var h=$n(this.props.children,la);if(h&&UG(h.props.shared)){var x=h.props.shared?"axis":"item";return s.indexOf(x)>=0?x:o}return o}},{key:"getMouseInfo",value:function(h){if(!this.container)return null;var x=KF(this.container),S=YF(h,x),w=this.inRange(S.chartX,S.chartY);if(!w)return null;var _=this.state,O=_.xAxisMap,P=_.yAxisMap,A=this.getTooltipEventType();if(A!=="axis"&&O&&P){var E=wn(O).scale,C=wn(P).scale,$=E&&E.invert?E.invert(S.chartX):null,N=C&&C.invert?C.invert(S.chartY):null;return j(j({},S),{},{xValue:$,yValue:N})}var I=Wx(this.state,this.props.data,this.props.layout,w);return I?j(j({},S),I):null}},{key:"getCursorRectangle",value:function(){var h=this.props.layout,x=this.state,S=x.activeCoordinate,w=x.offset,_=x.tooltipAxisBandSize,O=_/2;return{stroke:"none",fill:"#ccc",x:h==="horizontal"?S.x-O:w.left+.5,y:h==="horizontal"?w.top+.5:S.y-O,width:h==="horizontal"?_:w.width-1,height:h==="horizontal"?w.height-1:_}}},{key:"getCursorPoints",value:function(){var h=this.props.layout,x=this.state,S=x.activeCoordinate,w=x.offset,_,O,P,A;if(h==="horizontal")_=S.x,P=_,O=w.top,A=w.top+w.height;else if(h==="vertical")O=S.y,A=O,_=w.left,P=w.left+w.width;else if(!ee(S.cx)||!ee(S.cy))if(h==="centric"){var E=S.cx,C=S.cy,$=S.innerRadius,N=S.outerRadius,I=S.angle,H=Ee(E,C,$,I),U=Ee(E,C,N,I);_=H.x,O=H.y,P=U.x,A=U.y}else{var M=S.cx,R=S.cy,B=S.radius,G=S.startAngle,X=S.endAngle,Q=Ee(M,R,B,G),V=Ee(M,R,B,X);return{points:[Q,V],cx:M,cy:R,radius:B,startAngle:G,endAngle:X}}return[{x:_,y:O},{x:P,y:A}]}},{key:"inRange",value:function(h,x){var S=this.props.layout;if(S==="horizontal"||S==="vertical"){var w=this.state.offset,_=h>=w.left&&h<=w.left+w.width&&x>=w.top&&x<=w.top+w.height;return _?{x:h,y:x}:null}var O=this.state,P=O.angleAxisMap,A=O.radiusAxisMap;if(P&&A){var E=wn(P);return Qb({x:h,y:x},E)}return null}},{key:"parseEventsOfWrapper",value:function(){var h=this.props.children,x=this.getTooltipEventType(),S=$n(h,la),w={};S&&x==="axis"&&(S.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var _=Gu(this.props,this.handleOuterEvent);return j(j({},_),w)}},{key:"addListener",value:function(){Bt.on(ih,this.handleReceiveSyncEvent),Bt.setMaxListeners&&Bt._maxListeners&&Bt.setMaxListeners(Bt._maxListeners+1)}},{key:"removeListener",value:function(){Bt.removeListener(ih,this.handleReceiveSyncEvent),Bt.setMaxListeners&&Bt._maxListeners&&Bt.setMaxListeners(Bt._maxListeners-1)}},{key:"triggerSyncEvent",value:function(h){var x=this.props.syncId;ee(x)||Bt.emit(ih,x,this.uniqueChartId,h)}},{key:"applySyncEvent",value:function(h){var x=this.props,S=x.layout,w=x.syncMethod,_=this.state.updateId,O=h.dataStartIndex,P=h.dataEndIndex;if(!ee(h.dataStartIndex)||!ee(h.dataEndIndex))this.setState(j({dataStartIndex:O,dataEndIndex:P},v({props:this.props,dataStartIndex:O,dataEndIndex:P,updateId:_},this.state)));else if(ee(h.activeTooltipIndex))this.setState(h);else{var A=h.chartX,E=h.chartY,C=h.activeTooltipIndex,$=this.state,N=$.offset,I=$.tooltipTicks;if(!N)return;if(typeof w=="function")C=w(I,h);else if(w==="value"){C=-1;for(var H=0;H"u"},Kx=function(e){return e instanceof Element||e instanceof HTMLDocument};(function(e){Pq(t,e);function t(r){var n=e.call(this,r)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var u=n.props,c=u.targetRef,f=u.observerOptions;if(!Co()){c&&c.current&&(n.targetRef.current=c.current);var d=n.getElement();d&&(n.observableElement&&n.observableElement===d||(n.observableElement=d,n.resizeObserver.observe(d,f)))}},n.getElement=function(){var u=n.props,c=u.querySelector,f=u.targetDomEl;if(Co())return null;if(c)return document.querySelector(c);if(f&&Kx(f))return f;if(n.targetRef&&Kx(n.targetRef.current))return n.targetRef.current;var d=Mm.findDOMNode(n);if(!d)return null;var y=n.getRenderType();switch(y){case"renderProp":return d;case"childFunction":return d;case"child":return d;case"childArray":return d;default:return d.parentElement}},n.createResizeHandler=function(u){var c=n.props,f=c.handleWidth,d=f===void 0?!0:f,y=c.handleHeight,v=y===void 0?!0:y,p=c.onResize;if(!(!d&&!v)){var g=function(m){var b=m.width,h=m.height;n.state.width===b&&n.state.height===h||n.state.width===b&&!v||n.state.height===h&&!d||(p==null||p(b,h),n.setState({width:b,height:h}))};u.forEach(function(m){var b=m&&m.contentRect||{},h=b.width,x=b.height,S=!n.skipOnMount&&!Co();S&&g({width:h,height:x}),n.skipOnMount=!1})}},n.getRenderType=function(){var u=n.props,c=u.render,f=u.children;return qx(c)?"renderProp":qx(f)?"childFunction":k.isValidElement(f)?"child":Array.isArray(f)?"childArray":"parent"};var i=r.skipOnMount,a=r.refreshMode,o=r.refreshRate,l=o===void 0?1e3:o,s=r.refreshOptions;return n.state={width:void 0,height:void 0},n.sizeRef={current:n.state},n.skipOnMount=i,n.targetRef=k.createRef(),n.observableElement=null,Co()||(n.resizeHandler=MA(n.createResizeHandler,a,l,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver(),this.sizeRef.current=this.state},t.prototype.componentWillUnmount=function(){Co()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var r=this.props,n=r.render,i=r.children,a=r.nodeType,o=a===void 0?"div":a,l=this.state,s=l.width,u=l.height,c={width:s,height:u,targetRef:this.targetRef},f=this.getRenderType();switch(f){case"renderProp":return n==null?void 0:n(c);case"childFunction":{var d=i;return d==null?void 0:d(c)}case"child":{var y=i;if(y.type&&typeof y.type=="string"){c.targetRef;var v=Tq(c,["targetRef"]);return k.cloneElement(y,v)}return k.cloneElement(y,c)}case"childArray":{var p=i;return p.map(function(g){return!!g&&k.cloneElement(g,c)})}default:return T.createElement(o,null)}},t})(k.PureComponent);function $q(e){var t=e===void 0?{}:e,r=t.skipOnMount,n=r===void 0?!1:r,i=t.refreshMode,a=t.refreshRate,o=a===void 0?1e3:a,l=t.refreshOptions,s=t.handleWidth,u=s===void 0?!0:s,c=t.handleHeight,f=c===void 0?!0:c,d=t.targetRef,y=t.observerOptions,v=t.onResize,p=k.useRef(n),g=k.useState({width:void 0,height:void 0}),m=g[0],b=g[1],h=k.useState((d==null?void 0:d.current)||null),x=h[0],S=h[1];d&&setTimeout(function(){d.current!==x&&S(d.current)},0);var w=k.useCallback(function(A){A!==x&&S(A)},[x]);w.current=x,k.useEffect(function(){return function(){S(null),w.current=null}},[]);var _=k.useCallback(function(A,E){return!(A.width===E.width&&A.height===E.height||A.width===E.width&&!f||A.height===E.height&&!u)},[u,f]),O=k.useCallback(function(A){if(!(!u&&!f)){if(p.current){p.current=!1;return}A.forEach(function(E){var C=(E==null?void 0:E.contentRect)||{},$=C.width,N=C.height;b(function(I){return _(I,{width:$,height:N})?{width:$,height:N}:I})})}},[u,f,p,_]),P=k.useCallback(MA(O,i,o,l),[O,i,o,l]);return k.useEffect(function(){var A;return x?(A=new window.ResizeObserver(P),A.observe(x,y)):(m.width||m.height)&&b({width:void 0,height:void 0}),function(){var E,C,$;(E=A==null?void 0:A.disconnect)===null||E===void 0||E.call(A),($=(C=P).cancel)===null||$===void 0||$.call(C)}},[P,x]),k.useEffect(function(){v==null||v(m.width,m.height)},[m]),Mv({ref:w},m)}const Cq="/assets/locked-caad86a9.svg",Mq={black:"#000",white:"#fff"},Yl=Mq,Iq={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ui=Iq,Rq={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Hi=Rq,Nq={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Wi=Nq,jq={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Vi=jq,Lq={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Gi=Lq,Dq={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Mo=Dq,Fq={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Bq=Fq;function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[r]=IA(e[r])}),t}function nn(e,t,r={clone:!0}){const n=r.clone?ue({},e):e;return Ki(e)&&Ki(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Ki(t[i])&&i in e&&Ki(e[i])?n[i]=nn(e[i],t[i],r):r.clone?n[i]=Ki(t[i])?IA(t[i]):t[i]:n[i]=t[i])}),n}function Va(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r{if(n.toString().match(/^(components|slots)$/))r[n]=ue({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=ue({},a),Object.keys(i).forEach(o=>{r[n][o]=RA(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function zq(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const l=t(o);l!==""&&a.push(l),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const Yx=e=>e,Uq=()=>{let e=Yx;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Yx}}},Hq=Uq(),Wq=Hq,Vq={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function NA(e,t,r="Mui"){const n=Vq[t];return n?`${r}-${n}`:`${Wq.generate(e)}-${t}`}function Gq(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=NA(e,i,r)}),n}const jA="$$material";function gn(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function LA(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var qq=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Kq=LA(function(e){return qq.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Yq(e){if(e.sheet)return e.sheet;for(var t=0;t0?ut(uo,--Ft):0,Ga--,Ge===10&&(Ga=1,Bf--),Ge}function Qt(){return Ge=Ft2||Ql(Ge)>3?"":" "}function sK(e,t){for(;--t&&Qt()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return ms(e,gu()+(t<6&&Ur()==32&&Qt()==32))}function Rv(e){for(;Qt();)switch(Ge){case e:return Ft;case 34:case 39:e!==34&&e!==39&&Rv(Ge);break;case 40:e===41&&Rv(e);break;case 92:Qt();break}return Ft}function uK(e,t){for(;Qt()&&e+Ge!==47+10;)if(e+Ge===42+42&&Ur()===47)break;return"/*"+ms(t,Ft-1)+"*"+Ff(e===47?e:Qt())}function cK(e){for(;!Ql(Ur());)Qt();return ms(e,Ft)}function fK(e){return HA(bu("",null,null,null,[""],e=UA(e),0,[0],e))}function bu(e,t,r,n,i,a,o,l,s){for(var u=0,c=0,f=o,d=0,y=0,v=0,p=1,g=1,m=1,b=0,h="",x=i,S=a,w=n,_=h;g;)switch(v=b,b=Qt()){case 40:if(v!=108&&ut(_,f-1)==58){Iv(_+=ge(yu(b),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:_+=yu(b);break;case 9:case 10:case 13:case 32:_+=lK(v);break;case 92:_+=sK(gu()-1,7);continue;case 47:switch(Ur()){case 42:case 47:tu(dK(uK(Qt(),gu()),t,r),s);break;default:_+="/"}break;case 123*p:l[u++]=Cr(_)*m;case 125*p:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:m==-1&&(_=ge(_,/\f/g,"")),y>0&&Cr(_)-f&&tu(y>32?Qx(_+";",n,r,f-1):Qx(ge(_," ","")+";",n,r,f-2),s);break;case 59:_+=";";default:if(tu(w=Xx(_,t,r,u,c,i,l,h,x=[],S=[],f),a),b===123)if(c===0)bu(_,t,w,w,x,a,f,l,S);else switch(d===99&&ut(_,3)===110?100:d){case 100:case 108:case 109:case 115:bu(e,w,w,n&&tu(Xx(e,w,w,0,0,i,l,h,i,x=[],f),S),i,S,f,l,n?x:S);break;default:bu(_,w,w,w,[""],S,0,l,S)}}u=c=y=0,p=m=1,h=_="",f=o;break;case 58:f=1+Cr(_),y=v;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&oK()==125)continue}switch(_+=Ff(b),b*p){case 38:m=c>0?1:(_+="\f",-1);break;case 44:l[u++]=(Cr(_)-1)*m,m=1;break;case 64:Ur()===45&&(_+=yu(Qt())),d=Ur(),c=f=Cr(h=_+=cK(gu())),b++;break;case 45:v===45&&Cr(_)==2&&(p=0)}}return a}function Xx(e,t,r,n,i,a,o,l,s,u,c){for(var f=i-1,d=i===0?a:[""],y=Bg(d),v=0,p=0,g=0;v0?d[m]+" "+b:ge(b,/&\f/g,d[m])))&&(s[g++]=h);return zf(e,t,r,i===0?Dg:l,s,u,c)}function dK(e,t,r){return zf(e,t,r,DA,Ff(aK()),Xl(e,2,-2),0)}function Qx(e,t,r,n){return zf(e,t,r,Fg,Xl(e,0,n),Xl(e,n+1,-1),n)}function xa(e,t){for(var r="",n=Bg(e),i=0;i6)switch(ut(e,t+1)){case 109:if(ut(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+me+"$2-$3$1"+Ic+(ut(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Iv(e,"stretch")?WA(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ut(e,t+1)!==115)break;case 6444:switch(ut(e,Cr(e)-3-(~Iv(e,"!important")&&10))){case 107:return ge(e,":",":"+me)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+me+(ut(e,14)===45?"inline-":"")+"box$3$1"+me+"$2$3$1"+vt+"$2box$3")+e}break;case 5936:switch(ut(e,t+11)){case 114:return me+e+vt+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return me+e+vt+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return me+e+vt+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return me+e+vt+e+e}return e}var wK=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Fg:t.return=WA(t.value,t.length);break;case FA:return xa([Io(t,{value:ge(t.value,"@","@"+me)})],i);case Dg:if(t.length)return iK(t.props,function(a){switch(nK(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xa([Io(t,{props:[ge(a,/:(read-\w+)/,":"+Ic+"$1")]})],i);case"::placeholder":return xa([Io(t,{props:[ge(a,/:(plac\w+)/,":"+me+"input-$1")]}),Io(t,{props:[ge(a,/:(plac\w+)/,":"+Ic+"$1")]}),Io(t,{props:[ge(a,/:(plac\w+)/,vt+"input-$1")]})],i)}return""})}},SK=[wK],_K=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||SK,a={},o,l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),m=1;m=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var PK={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TK=/[A-Z]|^ms/g,$K=/_EMO_([^_]+?)_([^]*?)_EMO_/g,GA=function(t){return t.charCodeAt(1)===45},Jx=function(t){return t!=null&&typeof t!="boolean"},oh=LA(function(e){return GA(e)?e:e.replace(TK,"-$&").toLowerCase()}),ew=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace($K,function(n,i,a){return Mr={name:i,styles:a,next:Mr},i})}return PK[t]!==1&&!GA(t)&&typeof r=="number"&&r!==0?r+"px":r};function Zl(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Mr={name:r.name,styles:r.styles,next:Mr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Mr={name:n.name,styles:n.styles,next:Mr},n=n.next;var i=r.styles+";";return i}return CK(e,t,r)}case"function":{if(e!==void 0){var a=Mr,o=r(e);return Mr=a,Zl(e,t,o)}break}}if(t==null)return r;var l=t[r];return l!==void 0?l:r}function CK(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?LK:DK},nw=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},FK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return VA(r,n,i),NK(function(){return AK(r,n,i)}),null},BK=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var l=nw(t,r,n),s=l||rw(i),u=!s("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,y=1;y{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},WK=["values","unit","step"],VK=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>ue({},r,{[n.key]:n.val}),{})};function GK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=gn(e,WK),a=VK(t),o=Object.keys(a);function l(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function s(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,y){const v=o.indexOf(y);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:y)-n/100}${r})`}function c(d){return o.indexOf(d)+1`@media (min-width:${zg[e]}px)`};function dn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||iw;return t.reduce((o,l,s)=>(o[a.up(a.keys[s])]=r(t[s]),o),{})}if(typeof t=="object"){const a=n.breakpoints||iw;return Object.keys(t).reduce((o,l)=>{if(Object.keys(a.values||zg).indexOf(l)!==-1){const s=a.up(l);o[s]=r(t[l],l)}else{const s=l;o[s]=t[s]}return o},{})}return r(t)}function YK(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function XK(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function Uf(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Rc(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Uf(e,r)||n,t&&(i=t(i,n,e)),i}function ye(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const l=o[t],s=o.theme,u=Uf(s,n)||{};return dn(o,l,f=>{let d=Rc(u,i,f);return f===d&&typeof f=="string"&&(d=Rc(u,i,`${t}${f==="default"?"":rl(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function QK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const ZK={m:"margin",p:"padding"},JK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aw={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},eY=QK(e=>{if(e.length>2)if(aw[e])e=aw[e];else return[e];const[t,r]=e.split(""),n=ZK[t],i=JK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Ug=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ug,...Hg];function gs(e,t,r,n){var i;const a=(i=Uf(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function YA(e){return gs(e,"spacing",8)}function ys(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function tY(e,t){return r=>e.reduce((n,i)=>(n[i]=ys(t,r),n),{})}function rY(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=eY(r),a=tY(i,n),o=e[r];return dn(e,o,a)}function XA(e,t){const r=YA(e.theme);return Object.keys(e).map(n=>rY(e,t,n,r)).reduce(nl,{})}function Ue(e){return XA(e,Ug)}Ue.propTypes={};Ue.filterProps=Ug;function He(e){return XA(e,Hg)}He.propTypes={};He.filterProps=Hg;function nY(e=8){if(e.mui)return e;const t=YA({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function Hf(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?nl(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Nr(e){return typeof e!="number"?e:`${e}px solid`}const iY=ye({prop:"border",themeKey:"borders",transform:Nr}),aY=ye({prop:"borderTop",themeKey:"borders",transform:Nr}),oY=ye({prop:"borderRight",themeKey:"borders",transform:Nr}),lY=ye({prop:"borderBottom",themeKey:"borders",transform:Nr}),sY=ye({prop:"borderLeft",themeKey:"borders",transform:Nr}),uY=ye({prop:"borderColor",themeKey:"palette"}),cY=ye({prop:"borderTopColor",themeKey:"palette"}),fY=ye({prop:"borderRightColor",themeKey:"palette"}),dY=ye({prop:"borderBottomColor",themeKey:"palette"}),hY=ye({prop:"borderLeftColor",themeKey:"palette"}),Wf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=gs(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:ys(t,n)});return dn(e,e.borderRadius,r)}return null};Wf.propTypes={};Wf.filterProps=["borderRadius"];Hf(iY,aY,oY,lY,sY,uY,cY,fY,dY,hY,Wf);const Vf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=gs(e.theme,"spacing",8),r=n=>({gap:ys(t,n)});return dn(e,e.gap,r)}return null};Vf.propTypes={};Vf.filterProps=["gap"];const Gf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=gs(e.theme,"spacing",8),r=n=>({columnGap:ys(t,n)});return dn(e,e.columnGap,r)}return null};Gf.propTypes={};Gf.filterProps=["columnGap"];const qf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=gs(e.theme,"spacing",8),r=n=>({rowGap:ys(t,n)});return dn(e,e.rowGap,r)}return null};qf.propTypes={};qf.filterProps=["rowGap"];const pY=ye({prop:"gridColumn"}),vY=ye({prop:"gridRow"}),mY=ye({prop:"gridAutoFlow"}),gY=ye({prop:"gridAutoColumns"}),yY=ye({prop:"gridAutoRows"}),bY=ye({prop:"gridTemplateColumns"}),xY=ye({prop:"gridTemplateRows"}),wY=ye({prop:"gridTemplateAreas"}),SY=ye({prop:"gridArea"});Hf(Vf,Gf,qf,pY,vY,mY,gY,yY,bY,xY,wY,SY);function wa(e,t){return t==="grey"?t:e}const _Y=ye({prop:"color",themeKey:"palette",transform:wa}),OY=ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:wa}),kY=ye({prop:"backgroundColor",themeKey:"palette",transform:wa});Hf(_Y,OY,kY);function Gt(e){return e<=1&&e!==0?`${e*100}%`:e}const AY=ye({prop:"width",transform:Gt}),Wg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n;return{maxWidth:((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||zg[r]||Gt(r)}};return dn(e,e.maxWidth,t)}return null};Wg.filterProps=["maxWidth"];const EY=ye({prop:"minWidth",transform:Gt}),PY=ye({prop:"height",transform:Gt}),TY=ye({prop:"maxHeight",transform:Gt}),$Y=ye({prop:"minHeight",transform:Gt});ye({prop:"size",cssProperty:"width",transform:Gt});ye({prop:"size",cssProperty:"height",transform:Gt});const CY=ye({prop:"boxSizing"});Hf(AY,Wg,EY,PY,TY,$Y,CY);const MY={border:{themeKey:"borders",transform:Nr},borderTop:{themeKey:"borders",transform:Nr},borderRight:{themeKey:"borders",transform:Nr},borderBottom:{themeKey:"borders",transform:Nr},borderLeft:{themeKey:"borders",transform:Nr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wf},color:{themeKey:"palette",transform:wa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:wa},backgroundColor:{themeKey:"palette",transform:wa},p:{style:He},pt:{style:He},pr:{style:He},pb:{style:He},pl:{style:He},px:{style:He},py:{style:He},padding:{style:He},paddingTop:{style:He},paddingRight:{style:He},paddingBottom:{style:He},paddingLeft:{style:He},paddingX:{style:He},paddingY:{style:He},paddingInline:{style:He},paddingInlineStart:{style:He},paddingInlineEnd:{style:He},paddingBlock:{style:He},paddingBlockStart:{style:He},paddingBlockEnd:{style:He},m:{style:Ue},mt:{style:Ue},mr:{style:Ue},mb:{style:Ue},ml:{style:Ue},mx:{style:Ue},my:{style:Ue},margin:{style:Ue},marginTop:{style:Ue},marginRight:{style:Ue},marginBottom:{style:Ue},marginLeft:{style:Ue},marginX:{style:Ue},marginY:{style:Ue},marginInline:{style:Ue},marginInlineStart:{style:Ue},marginInlineEnd:{style:Ue},marginBlock:{style:Ue},marginBlockStart:{style:Ue},marginBlockEnd:{style:Ue},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Vf},rowGap:{style:qf},columnGap:{style:Gf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gt},maxWidth:{style:Wg},minWidth:{transform:Gt},height:{transform:Gt},maxHeight:{transform:Gt},minHeight:{transform:Gt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Vg=MY;function IY(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function RY(e,t){return typeof e=="function"?e(t):e}function NY(){function e(r,n,i,a){const o={[r]:n,theme:i},l=a[r];if(!l)return{[r]:n};const{cssProperty:s=r,themeKey:u,transform:c,style:f}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=Uf(i,u)||{};return f?f(o):dn(o,n,v=>{let p=Rc(d,c,v);return v===p&&typeof v=="string"&&(p=Rc(d,c,`${r}${v==="default"?"":rl(v)}`,v)),s===!1?p:{[s]:p}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:Vg;function l(s){let u=s;if(typeof s=="function")u=s(a);else if(typeof s!="object")return s;if(!u)return null;const c=YK(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(y=>{const v=RY(u[y],a);if(v!=null)if(typeof v=="object")if(o[y])d=nl(d,e(y,v,a,o));else{const p=dn({theme:a},v,g=>({[y]:g}));IY(p,v)?d[y]=t({sx:v,theme:a}):d=nl(d,p)}else d=nl(d,e(y,v,a,o))}),XK(f,d)}return Array.isArray(i)?i.map(l):l(i)}return t}const QA=NY();QA.filterProps=["sx"];const Gg=QA,jY=["breakpoints","palette","spacing","shape"];function qg(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=gn(e,jY),l=GK(r),s=nY(i);let u=nn({breakpoints:l,direction:"ltr",components:{},palette:ue({mode:"light"},n),spacing:s,shape:ue({},KK,a)},o);return u=t.reduce((c,f)=>nn(c,f),u),u.unstable_sxConfig=ue({},Vg,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return Gg({sx:f,theme:this})},u}function LY(e){return Object.keys(e).length===0}function DY(e=null){const t=k.useContext(KA);return!t||LY(t)?e:t}const FY=qg();function BY(e=FY){return DY(e)}function ZA(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{i==="color"?n+=ow(n)?e[i]:rl(e[i]):n+=`${ow(n)?i:rl(i)}${rl(e[i].toString())}`}),n}const HY=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function WY(e){return Object.keys(e).length===0}function VY(e){return typeof e=="string"&&e.charCodeAt(0)>96}const GY=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,qY=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=JA(i.props);n[a]=i.style}),n},KY=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],l=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return l&&l.forEach(s=>{let u=!0;Object.keys(s.props).forEach(c=>{a[c]!==s.props[c]&&e[c]!==s.props[c]&&(u=!1)}),u&&o.push(t[JA(s.props)])}),o};function xu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const YY=qg(),XY=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ro({defaultTheme:e,theme:t,themeId:r}){return WY(t)?e:t[r]||t}function QY(e){return e?(t,r)=>r[e]:null}function ZY(e={}){const{themeId:t,defaultTheme:r=YY,rootShouldForwardProp:n=xu,slotShouldForwardProp:i=xu}=e,a=o=>Gg(ue({},o,{theme:Ro(ue({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,l={})=>{HK(o,x=>x.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=QY(XY(u))}=l,y=gn(l,HY),v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,p=f||!1;let g,m=xu;u==="Root"||u==="root"?m=n:u?m=i:VY(o)&&(m=void 0);const b=UK(o,ue({shouldForwardProp:m,label:g},y)),h=(x,...S)=>{const w=S?S.map(A=>typeof A=="function"&&A.__emotion_real!==A?E=>A(ue({},E,{theme:Ro(ue({},E,{defaultTheme:r,themeId:t}))})):A):[];let _=x;s&&d&&w.push(A=>{const E=Ro(ue({},A,{defaultTheme:r,themeId:t})),C=GY(s,E);if(C){const $={};return Object.entries(C).forEach(([N,I])=>{$[N]=typeof I=="function"?I(ue({},A,{theme:E})):I}),d(A,$)}return null}),s&&!v&&w.push(A=>{const E=Ro(ue({},A,{defaultTheme:r,themeId:t}));return KY(A,qY(s,E),E,s)}),p||w.push(a);const O=w.length-S.length;if(Array.isArray(x)&&O>0){const A=new Array(O).fill("");_=[...x,...A],_.raw=[...x.raw,...A]}else typeof x=="function"&&x.__emotion_real!==x&&(_=A=>x(ue({},A,{theme:Ro(ue({},A,{defaultTheme:r,themeId:t}))})));const P=b(_,...w);return o.muiName&&(P.muiName=o.muiName),P};return b.withConfig&&(h.withConfig=b.withConfig),h}}function JY(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:RA(t.components[r].defaultProps,n)}function eX({props:e,name:t,defaultTheme:r,themeId:n}){let i=BY(r);return n&&(i=i[n]||i),JY({theme:i,name:t,props:e})}function Kg(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function tX(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ci(e){if(e.type)return e;if(e.charAt(0)==="#")return Ci(tX(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Va(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Va(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function Kf(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function rX(e){e=Ci(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const s=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(l+="a",s.push(t[3])),Kf({type:l,values:s})}function lw(e){e=Ci(e);let t=e.type==="hsl"||e.type==="hsla"?Ci(rX(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nX(e,t){const r=lw(e),n=lw(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function sw(e,t){return e=Ci(e),t=Kg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Kf(e)}function iX(e,t){if(e=Ci(e),t=Kg(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Kf(e)}function aX(e,t){if(e=Ci(e),t=Kg(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Kf(e)}function oX(e,t){return ue({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const lX=["mode","contrastThreshold","tonalOffset"],uw={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Yl.white,default:Yl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},lh={text:{primary:Yl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Yl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cw(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=aX(e.main,i):t==="dark"&&(e.dark=iX(e.main,a)))}function sX(e="light"){return e==="dark"?{main:Wi[200],light:Wi[50],dark:Wi[400]}:{main:Wi[700],light:Wi[400],dark:Wi[800]}}function uX(e="light"){return e==="dark"?{main:Hi[200],light:Hi[50],dark:Hi[400]}:{main:Hi[500],light:Hi[300],dark:Hi[700]}}function cX(e="light"){return e==="dark"?{main:Ui[500],light:Ui[300],dark:Ui[700]}:{main:Ui[700],light:Ui[400],dark:Ui[800]}}function fX(e="light"){return e==="dark"?{main:Vi[400],light:Vi[300],dark:Vi[700]}:{main:Vi[700],light:Vi[500],dark:Vi[900]}}function dX(e="light"){return e==="dark"?{main:Gi[400],light:Gi[300],dark:Gi[700]}:{main:Gi[800],light:Gi[500],dark:Gi[900]}}function hX(e="light"){return e==="dark"?{main:Mo[400],light:Mo[300],dark:Mo[700]}:{main:"#ed6c02",light:Mo[500],dark:Mo[900]}}function pX(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=gn(e,lX),a=e.primary||sX(t),o=e.secondary||uX(t),l=e.error||cX(t),s=e.info||fX(t),u=e.success||dX(t),c=e.warning||hX(t);function f(p){return nX(p,lh.text.primary)>=r?lh.text.primary:uw.text.primary}const d=({color:p,name:g,mainShade:m=500,lightShade:b=300,darkShade:h=700})=>{if(p=ue({},p),!p.main&&p[m]&&(p.main=p[m]),!p.hasOwnProperty("main"))throw new Error(Va(11,g?` (${g})`:"",m));if(typeof p.main!="string")throw new Error(Va(12,g?` (${g})`:"",JSON.stringify(p.main)));return cw(p,"light",b,n),cw(p,"dark",h,n),p.contrastText||(p.contrastText=f(p.main)),p},y={dark:lh,light:uw};return nn(ue({common:ue({},Yl),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:l,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:u,name:"success"}),grey:Bq,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},y[t]),i)}const vX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function mX(e){return Math.round(e*1e5)/1e5}const fw={textTransform:"uppercase"},dw='"Roboto", "Helvetica", "Arial", sans-serif';function gX(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=dw,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=gn(r,vX),y=i/14,v=f||(m=>`${m/u*y}rem`),p=(m,b,h,x,S)=>ue({fontFamily:n,fontWeight:m,fontSize:v(b),lineHeight:h},n===dw?{letterSpacing:`${mX(x/b)}em`}:{},S,c),g={h1:p(a,96,1.167,-1.5),h2:p(a,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(l,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(l,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(l,14,1.75,.4,fw),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,fw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nn(ue({htmlFontSize:u,pxToRem:v,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:l,fontWeightBold:s},g),d,{clone:!1})}const yX=.2,bX=.14,xX=.12;function Ie(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${yX})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${bX})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${xX})`].join(",")}const wX=["none",Ie(0,2,1,-1,0,1,1,0,0,1,3,0),Ie(0,3,1,-2,0,2,2,0,0,1,5,0),Ie(0,3,3,-2,0,3,4,0,0,1,8,0),Ie(0,2,4,-1,0,4,5,0,0,1,10,0),Ie(0,3,5,-1,0,5,8,0,0,1,14,0),Ie(0,3,5,-1,0,6,10,0,0,1,18,0),Ie(0,4,5,-2,0,7,10,1,0,2,16,1),Ie(0,5,5,-3,0,8,10,1,0,3,14,2),Ie(0,5,6,-3,0,9,12,1,0,3,16,2),Ie(0,6,6,-3,0,10,14,1,0,4,18,3),Ie(0,6,7,-4,0,11,15,1,0,4,20,3),Ie(0,7,8,-4,0,12,17,2,0,5,22,4),Ie(0,7,8,-4,0,13,19,2,0,5,24,4),Ie(0,7,9,-4,0,14,21,2,0,5,26,4),Ie(0,8,9,-5,0,15,22,2,0,6,28,5),Ie(0,8,10,-5,0,16,24,2,0,6,30,5),Ie(0,8,11,-5,0,17,26,2,0,6,32,5),Ie(0,9,11,-5,0,18,28,2,0,7,34,6),Ie(0,9,12,-6,0,19,29,2,0,7,36,6),Ie(0,10,13,-6,0,20,31,3,0,8,38,7),Ie(0,10,13,-6,0,21,33,3,0,8,40,7),Ie(0,10,14,-6,0,22,35,3,0,8,42,7),Ie(0,11,14,-7,0,23,36,3,0,9,44,8),Ie(0,11,15,-7,0,24,38,3,0,9,46,8)],SX=wX,_X=["duration","easing","delay"],OX={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},kX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hw(e){return`${Math.round(e)}ms`}function AX(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function EX(e){const t=ue({},OX,e.easing),r=ue({},kX,e.duration);return ue({getAutoHeightDuration:AX,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:l=t.easeInOut,delay:s=0}=a;return gn(a,_X),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:hw(o)} ${l} ${typeof s=="string"?s:hw(s)}`).join(",")}},e,{easing:t,duration:r})}const PX={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},TX=PX,$X=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function CX(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=gn(e,$X);if(e.vars)throw new Error(Va(18));const l=pX(n),s=qg(e);let u=nn(s,{mixins:oX(s.breakpoints,r),palette:l,shadows:SX.slice(),typography:gX(l,a),transitions:EX(i),zIndex:ue({},TX)});return u=nn(u,o),u=t.reduce((c,f)=>nn(c,f),u),u.unstable_sxConfig=ue({},Vg,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return Gg({sx:f,theme:this})},u}const MX=CX(),eE=MX;function IX({props:e,name:t}){return eX({props:e,name:t,defaultTheme:eE,themeId:jA})}const RX=e=>xu(e)&&e!=="classes",NX=ZY({themeId:jA,defaultTheme:eE,rootShouldForwardProp:RX}),jX=NX,LX=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},pw=LX;function DX(e){return NA("MuiPaper",e)}Gq("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const FX=["className","component","elevation","square","variant"],BX=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return zq(a,DX,i)},zX=jX("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return ue({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&ue({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${sw("#fff",pw(t.elevation))}, ${sw("#fff",pw(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),UX=k.forwardRef(function(t,r){const n=IX({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:l=!1,variant:s="elevation"}=n,u=gn(n,FX),c=ue({},n,{component:a,elevation:o,square:l,variant:s}),f=BX(c);return z.jsx(zX,ue({as:a,ownerState:c,className:zY(f.root,i),ref:r},u))}),HX=UX;function WX(e){const{ref:t}=$q(),{scores:r}=e.report;if(!r)return null;const n=r.f0>=Ut.f0,i=r.f10Sec>=Ut.f10Sec,a=r.f3Min>=Ut.f3Min,o=(r==null?void 0:r.fSignUp)>=Ut.fSignUp,l=(r==null?void 0:r.f48Hours)>=Ut.f48Hours,s=(r==null?void 0:r.fBuy)>=Ut.fBuy,d=[{order:1,name:"Zero second milestone",value:300,title:"0 Seconds",color:n?"#53345E":"#F16552",target:!0,locked:!1,class:"zero-second-milestone"},{order:2,name:"Ten second milestone",value:300,title:"10 Seconds",color:i?"#53345E":"#F16552",target:!0,locked:!1,class:"ten-second-milestone"},{order:3,name:"Three minutes milestone",value:300,title:"3 minutes",color:a?"#53345E":"#F16552",target:!0,class:"three-second-milestone"},{order:4,name:"Signup milestone",value:300,color:o?"#53345E":"#F16552",target:!0,locked:!1,class:"signup-milestone-lock",href:"#SignupMilestone",title:"Sign Up"},{order:5,name:"The Reality milestone",value:300,color:l?"#53345E":"#F16552",target:!0,locked:!1,class:"reality-milestone-lock",href:"#RealityMilestone",title:"48 Hours"},{order:6,name:"Upgrade milestone",value:300,color:s?"#53345E":"#F16552",target:!0,locked:!1,class:"upgrade-milestone-lock",href:"#UpgradeMilestone",title:"Upgrade"}],y=v=>{const{cx:p,cy:g,index:m}=v;if(m===0)return z.jsxs("g",{children:[z.jsx("text",{x:p,y:g,dy:"6%",textAnchor:"middle",fill:"#000",fontSize:"45px",fontWeight:"bold",children:(r==null?void 0:r.rammpScore)??0}),z.jsxs("text",{x:p,y:g,dy:"15.2%",textAnchor:"middle",fill:"black",fontSize:"12px",children:["Ideal score: ",Ut.overall]})]})};return z.jsx("div",{className:"milestonesSummaryChartContainer",ref:t,children:z.jsx("div",{className:"metricsBox",children:z.jsxs("div",{className:"chart-with-labels",children:[z.jsx("div",{className:"chart-container",children:z.jsx(mF,{width:200,aspect:1,children:z.jsx(Eq,{children:z.jsx(_r,{isAnimationActive:!1,data:d,dataKey:"value",nameKey:"name",label:y,startAngle:450,endAngle:90,innerRadius:"70%",outerRadius:"95%",paddingAngle:2,fill:"#82CA9D",children:d.map((v,p)=>z.jsx(ag,{fill:v.locked?"#E7EEEF":v.color},`cell-${p}`))})})})}),d.map((v,p)=>z.jsx(HX,{className:`unlock-button ${v.class}`,children:v.locked?z.jsxs("div",{className:"step-title",children:[z.jsx("img",{src:Cq,alt:"Unlocked",style:{margin:"0 5px",width:"16px"}}),z.jsx("div",{children:"Locked"})]}):z.jsx("div",{className:"step-title",children:v.title})},p))]})})})}const VX={f3Min:{id:"f3Min",image:"assets/Group_1586.svg",title:"3 Minutes Milestone",subTitle:"The first date",description:"Bring the best! Unfold your story in the right way to engage, and get the site visitor interested enough to want more. This is not the time to tell them your brand’s whole life story.",overview:["Your Three Minute Score measures the effectiveness of your brand story in engaging your target audience."],riskOfNotReaching:["There is an 88% chance that a disengaged site visitor will not return to your site again"],rewardForReaching:["You are in total control of whether your site visitor engages with your brand story, and engagement is necessary to evolve their relationship with your brand"],resourceBottom:{content:"The worksheets for the three minute milestone will help you to unpack the key elements of your brand story and show you the ideal order in which to present these on your home page and landing pages. Use these notes as a brief or conversation starter with your Web Design or UX Agency.",buttonName:"Download worksheet",downloadableAsset:"/RAMMP-Worksheets-ThreeMinutes.pdf"},recommentdations:{violet:"Nice work! You are telling your brand story in an engaging way, so use this time to experiment a little (and also, please enter a web design competition 🏆 🙂 )",pink:"Great news! The Three minute milestone is one of the easiest to optimise. Simply follow the guidelines in the worksheets below to ensure that these three elements are doing the heavy lifting to promote engagement with your site visitors. A great UX Agency or Web Design Agency can help you with this task."},steps:{violet:[{title:"Collect stories of success",description:["Collect new customer testimonials and update your case studies. Ideally capture these on video and add in customer testimonials","Use the new materials to build a content calendar for the year ahead"]}],pink:[{title:"Structure your page to build trust and convert more",description:["Order the elements on your page to mirror the progression of the relationship between your site visitor and your brand. You would never tell someone your entire life story at the first date - so too, unfolding your brand story to maintain interest, without overwhelming, will have a significant impact on how many people stay and engage"]},{title:"Direct desired behaviour with CTAs",description:["One of the most common mistakes that brands make is placement of aggressive Call to Actions (CTAs) too early in the relationship arc with the site visitor. Book a Demo may be your desired action, but placing it too early on your page is akin to asking your first date to marry you. Red flags in real life, and in digital too. Key thing to remember: your CTA should take me to the next level of commitment. Not all the way to the end"]},{title:"Engage deeper with your Site Navigation",description:["Like the structure of a page, the structure of your site also has the power to tell your brand story, and deepen the relationship with your site visitor. Follow the guidelines in the worksheet pack"]}]},quickVideoUrl:"https://player.vimeo.com/video/729882090?h=a4479bd897"},f0:{id:"f0",image:"assets/Group_1543.svg",title:"Zero Seconds Milestone",subTitle:"The arrival",description:"The moment that a site visitor lands on your website - the inception point of the relationship with your brand.",overview:["Your Zero Seconds Score measures the effectiveness of your marketing spend"],riskOfNotReaching:["Underperformance at Zero seconds indicates that your marketing efforts are not aligning with your target audience.The party is on, but no one is showing up."],rewardForReaching:["Success at Zero seconds feeds your funnel and creates the opportunity for engagement with your brand"],resourceBottom:{content:"The worksheets for the Zero second milestone will help you to brainstorm ideas to create more effective marketing activations. Use these notes as a brief or conversation starter with your Marketing Agency or CRO/SEO Expert.",buttonName:"Download worksheet",downloadableAsset:"/RAMMP-Worksheets-ZeroSeconds.pdf"},recommentdations:{violet:"You’re killing it this month, so please ask your boss for a holiday and promotion 🙂 Bonus points for thinking about the following…",pink:"Investments in driving more traffic to your website are best left to the end - focus on optimising the rest of your funnel first, and then come back to optimise the Zero seconds milestone."},steps:{violet:[{title:"Diversify your marketing strategy",description:["Diversify your marketing strategy beyond adwords to reduce the risk of price increases beyond your control. It is not uncommon for adword prices to increase by 40+% from month to month","Create a backup strategy, e.g. consider fostering relationships with nodes or channels that will drive your target audience to your site at volume"]},{title:"Look beyond vanity stats",description:["Focus on quality over quantity. Fewer interested site visitors who buy will drive higher revenue than a glut of lookers. Get more of these site visitors by forming relationships with specialised nodes and channels"]},{title:"Tune in to customer complaints",description:["Integrate your marketing strategy with the Customer Success team. Very often a change in site traffic is preceded by an increase in customer complaints. Be ready for this, and manage it proactively if it happens","A quick way to do this is to run a sentiment analyser or word cloud tool over an export of last month’s conversations with Customer Support"]}],pink:[{title:"Develop a marketing strategy",description:["Work with a Marketing Agency to develop an appropriate marketing strategy. Where possible, look for ways to get to your target audience at scale and though meaningful partnerships over strategies that target individual buyers, e.g. deliver a keynote at an event, or solve an issue for a partner that can deliver warm leads to your brand. Map out desires and money flows for all stakeholders using the worksheet below"]},{title:"Invest in SEO for paid search",description:["If your marketing strategy relies on adwords, ensure that you are paying for the words that your target audience is using to find brands like yours. Misalignment here can chew up your marketing budget by sending the wrong people to your site. A good Marketing Performance Agency can help refine your plan"]},{title:"Improve your organic ranking on Google",description:[z.jsxs("span",{children:["Ensure that your website ranks well organically on Google by working with an SEO Agency. At a minimum, check that your HTML is error free, that your website is fully mobile responsive and that your website copy uses the right keywords. Tools like"," ",z.jsx("a",{href:"https://www.site-analyzer.com/",rel:"noopener noreferrer",target:"_blank",children:"Site Analyser"})," ","and"," ",z.jsx("a",{href:"https://neilpatel.com/ubersuggest/",target:"_blank",rel:"noreferrer",children:"Ubersuggest"})," ","can help you with structural issues, and"," ",z.jsx("a",{href:"https://keywordseverywhere.com/",target:"_blank",rel:"noreferrer",children:"KeywordsEverywhere"})," ","or a good Copywriter or SEO specialist can help with keyword alignment"]})]}]},quickVideoUrl:"https://player.vimeo.com/video/729878353?h=974dc975b5"},f10Sec:{id:"f10Sec",image:"assets/Group_1543.svg",title:"Ten seconds milestone",subTitle:"The first impression",description:"You have at most 10 seconds to make the right first impression.This is your one chance to get it right.",overview:["Your Ten Seconds Score measures the effectiveness of your branding, visuals and value proposition"],riskOfNotReaching:["A site visitor who leaves without engaging with your brand will spend up to 16% more with your competitor"],rewardForReaching:["Success at Ten seconds creates the right first impression, and unlocks the opportunity to turn that site visitor into a buyer and brand advocate. It gives your marketing dollars a chance of generating ROI"],resourceBottom:{content:"The worksheets for the ten second milestone will help you to understand how to tune your vibe and visuals, and how to refine your value proposition in order to uplift your first impression. Use these notes as a brief or conversation starter with your Branding Agency or Graphic Designer.",buttonName:"Download worksheet",downloadableAsset:"/RAMMP-Worksheets-TenSeconds.pdf"},recommentdations:{violet:"Great work this month, you’re ahead of the game. Use this time to collect ideas for the future… standing still is going backwards in a digital world",pink:"It is critical to get the Ten seconds milestone right, as without the right first impression, you don’t even get a chance to dance. Your Ten second milestone is made up of three critical elements, which can be refined by working with a great Branding Agency or Graphic Designer."},steps:{violet:[{title:"Explore what great looks like in other industries",description:["Explore what “great branding” looks like in other industries. Have your competitors launched a new site? What are today’s web design trends? You don’t need to follow, simply keep abreast of the direction so that you are prepared to adjust when needed"]},{title:"Consistency builds trust",description:["Ensure that all your brand assets, such as pitch decks, pdf downloads, social media cards and email templates are all on brand and aligned. Brand consistency across channels builds Digital Trust"]}],pink:[{title:"Invest in your Vibe and Visuals",description:["A large component of your first impression is made up of the visual elements on your site: the imagery used, the fonts, the colours, your logo. All of these ingredients come together to answer the one question your site visitor asks on arrival: do people like me, engage with brands like yours? You must get this right to have the opportunity for the site visitor to engage with your brand further"]},{title:"Refine your Value Proposition",description:["Your site visitor comes to your website in the context of their busy day, not in a vacuum. Your job is to connect the dots between how you will make their life better. Your value proposition is not why you get out of bed in the morning (sorry Simon, but in digital, you should never start with why), it is how you solve for them"]},{title:"Establish your Credbility and Authority",description:["Gartner recommends. Nine out of ten dentists use. Powering 33% of the internet. Statements that connect your brand with a higher authority and provide credibility instantly influence your site visitor into staying longer to explore your brand story"]}]},quickVideoUrl:"https://player.vimeo.com/video/729880328?h=18ba6efe6d"},fSignUp:{id:"fSignUp",image:"assets/Group_1543.svg",title:"Sign-up milestone",subTitle:"The honeymoon",description:"A critical moment of commitment and intent. By signing-up, your site visitor is signalling that they are interested",overview:["Your Sign-up Score measures the effectiveness of your CTA’s and desirability of your product"],riskOfNotReaching:["Underperformance reduces conversion rates and suppresses lead generation"],rewardForReaching:["A sign-up is a clear signal of intent - the site visitor you have been dating wants to make a commitment to your brand!"],resourceBottom:{content:"The worksheets for the sign-up milestone will help you to create digital assets that deliver value to your site visitor, i.e. they are things worth signing-up for. Use these notes as a brief or conversation starter with your Product Design or UX Agency.",buttonName:"Download worksheet",downloadableAsset:"/RAMMP-Worksheets-Sign-up.pdf"},recommentdations:{violet:"You’re on target with enticing site visitors to deepen their commitment to your brand by signing-up! Congratulations 🎉",pink:"The core issue to address at the Sign-up milestone is to get the balance of resistance (to sign-up) to value (from sign-up) just right. There has to be a need or desire that is filled by signing-up (to your newsletter, to download a pdf brochure, to a free trial of your product, to a demo). Work with an experienced Product Design Agency to ensure you are placing the right levers to encourage the site visitor to make a commitment."},steps:{violet:[{title:"Active play increases conversion rates",description:["Create interactive elements to promote site visitors to engage with your brand, e.g. virtual change-rooms, product customisation tools and calculators will help to draw site visitors deeper into your brand story"]},{title:"Explore opportunity to create new revenue streams",description:["Take stock of all your gated and interactive content - are there opportunities for packaging these up as a tool or product-add on?"]}],pink:[{title:"Reduce resistance to sign-up",description:["You may be wanting to collect all kinds of information to feed your marketing funnel, without checking-in to see whether you need the info on the first place… or whether you would be willing to fill out that Hubspot signup form yourself. As a rule of thumb, collect only the one piece of info that renders the rest unimportant. For example, do you need my Company Name and URL if you have a Work Email? No"]},{title:"Sometimes… increasing resistance raises perceived value",description:["Are you giving away too much for free, or solving your site visitor’s needs without them needing to commit? The old “marry me or else” ultimatum may need to be issued to reduce the free riders and improve the effectiveness of your digital assets"]},{title:"Resolve all anxieties to reduce perceived risk",description:["If you have not optimised the Three minute milestone you may leave your site visitor with too many unanswered anxieties about your product to entice a sign-up. Remember that even a “free trial” carries with it risk in the eyes of your site visitor: it may not cost dollars but it does cost effort"]},{title:"Simplify your pricing model",description:["Often overlooked! Price guidelines remove blockers that may prevent site visitors from signing-up. You don’t need to provide precise pricing, but do include elements that provide an indication of the “t-shirt size”, e.g. an infographic showing a customised integration step immediately scales up the pricing expectations for your site visitors. Pro-tip: include an ROI calculator or pdf download to steer the conversation to value instead of price",z.jsxs("span",{children:["Optimising this milestone may involve a series of experiments, and depending on your product, you could benefit from"," ",z.jsx("a",{href:"https://uxdesign.cc/7-common-ux-testing-mistakes-and-how-to-avoid-them-8ed73ee9ab5e",rel:"noopener noreferrer",target:"_blank",children:"running A/B Testing or small-scale Usability Tests."})," ","Work with a good ",z.jsx("b",{children:"UX Agency"})," to help refine your strategy and set up systems to measure progress."]})]}]},quickVideoUrl:"https://player.vimeo.com/video/729881454?h=a0594d7dbc"},f48Hours:{id:"f48Hours",image:"assets/Group_1543.svg",title:"First 48 hours milestone",subTitle:"The reality",description:"Can you deliver on the promises made? The most expensive milestone to lose a potential customer, and often the easiest to fix. Losses here steal from your future success",overview:["Your First 48 Hours Score measures the effectiveness of your onboarding process"],riskOfNotReaching:["Huge opportunity cost of underperforming at the First 48 hours milestone"],rewardForReaching:["Success at First 48 hours significantly tips the odds of brand loyalty in your favour"],resourceBottom:{content:"The worksheets for the first 48 hours milestone will help you to structure effective usability tests and observation sessions. Use these notes as a brief or conversation starter with your UX Agency.",buttonName:"Download worksheet",downloadableAsset:"/RAMMP-Worksheets-First48Hours.pdf"},recommentdations:{violet:"Low after-sign on churn rates are an awesome achievement, well done and while the heat if off, use the time to plan ahead.",pink:"The one thing that creates a huge impact at First 48 hours is providing the shortest possible pathway to a first win with your product. For a SaaS business, that could mean setting a simple task that can be completed after signup. For a physical product, it could mean delivering a beautiful unboxing experience, or having the package arrive earlier than expected."},steps:{violet:[{title:"A complaint is a gift",description:["While things are working well with your onboarding, review your feedback loops between Customer Service and Product Design. Very often, a complaint is an early sign of friction in the onboarding process"]},{title:"Monitor churn rates",description:["A spike in churn rates can be a silent indicator of glitches in onboarding. This is quite common in flows that require 3rd party integrations or authentication… oh, thanks [social media giant] for changing your public API’s again 🤦‍♀️"]}],pink:[{title:"Reduce onboarding blockers",description:["Work with a great UX Designer to ensure that your onboarding process is smooth and delivers a pathway to a first win as quickly as possible."]},{title:"Test your onboarding process",description:[z.jsxs("span",{children:["You only need to watch 5 users struggling with your product to gain invaluable insights. Follow the"," ",z.jsx("a",{href:"https://uxdesign.cc/7-common-ux-testing-mistakes-and-how-to-avoid-them-8ed73ee9ab5e",rel:"noopener noreferrer",target:"_blank",children:"usability testing guidelines"})," ","in this article, and watch the video below for more pro-tips"]})]},{title:"Ensure first win is an attainable WOW",description:["Align your first win with a moment of perceived value for your customers, e.g. sending your first message inside Slack, or adding a new calendar event into Google. An experienced UX designer, or a seasoned Sales Professional can help you map out these moments"]}]},quickVideoUrl:"https://player.vimeo.com/video/729879495?h=be71b79d69"},fBuy:{id:"fBuy",image:"assets/Group_1543.svg",title:"Upgrade milestone",subTitle:"The moment of truth",description:"The ultimate litmus test. Did you deliver value? Did you facilitate an upgrade at the peak moment of need and desire?",overview:["Your Upgrade Score measures the effectiveness of your product pricing and packaging"],riskOfNotReaching:["Failures at the Upgrade milestone rob your business of revenue"],rewardForReaching:["Your reward for success is the monetization of the customer journey"],resourceBottom:{content:"The worksheets for the upgrade milestone will help you to deconstruct your pricing model, and understand whether you leveraging the right moments in the buying journey to inspire your customer to buy. Use these notes as a brief or conversation starter with your Product Designer, Sales Expert or Strategic Designer.",buttonName:"Download worksheet",downloadableAsset:"/RAMMP-Worksheets-Upgrade.pdf"},recommentdations:{violet:"Great work!! Your ability to close the deal is shining this month, so give yourself a pat on the back before getting back to the grind.",pink:"Optimisations at Upgrade milestone may need input from a good Product Designer, Sales Professional or Strategic Advisor. Consider the following in your discovery phase."},steps:{violet:[{title:"Transfer what works to other channels",description:["Hitting your ideal score in this milestone frees you up to transfer all that is working into other channels such as email nurturing campaigns"]},{title:"Explore perceived value",description:["Speak to your high-margin customers about what they value most about your product - it is often surprising. The insights can lead to opportunities to refine your pricing model and create new leverage points inside your product"]}],pink:[{title:"High after sign-up dropoffs",description:["High after sign-up dropoffs are a likely indication that your product is too hard to use. Work with a UX Designer to refine your onboarding experience, and test that your product is easy for a typical user to use"]},{title:"Ratio of Sign-ups to Upgrades is low",description:["Typically, if your churn rates are reasonable, you could be simply giving away too much in your free product, or not providing the right cues to promote an upgrade to your premium offerings. Lean on your Customer Success team to make some calls and ask the question of your customers - a few phone calls can provide invaluable insights"]},{title:"Repeat buys are low or zero",description:["In exceptional cases, like online dating apps, lack of a repeat buy can be an indicator of success (Yay! Found someone don’t need your app anymore). In most cases, it is a signal to investigate the root case. Once again, lean on your Customer Success team to interview customers and explore from there"]},{title:"None of the above, but your revenue is still suffering",description:["If you are performing well in all of the milestones, there is a chance that the cause of underperformance at Upgrade is related to something outside of your digital presence. Take a broader look at the industry and your competitors - is there a new entrant with a superior model, product or price? A Marketing Research company may be useful to assess changes in market"]}]},quickVideoUrl:"https://player.vimeo.com/video/729877436?h=4872fb4145"}},tE=[{user:"enterpriselms.com",isUnlocked:!0,scores:{f3Min:67.7,f48Hours:20,rammpScore:50.8,f0:100,f10Sec:22,fSignUp:91.7,fBuy:100},metrics:{timeOnSite:"01:23",visitors:3e5,returnVisitors:23,revenue:8e5,buyers:45,averageSignups48:2e3,averageBuy:2e4,pagesVisited:2.74,lastMilestoneUnlocked:!0,averageSignups:5e4,bounceRate:78}},{user:"missymassy.com",isUnlocked:!0,scores:{rammpScore:45.7,f0:57.5,f10Sec:22,f3Min:69.4,fSignUp:92.5,f48Hours:30,fBuy:57.5},metrics:{timeOnSite:"01:23",returnVisitors:20,visitors:1e4,newUsers:8e3,revenue:6e4,buyers:230,averageSignups48:120,averageBuy:150,pagesVisited:3,lastMilestoneUnlocked:!0,bounceRate:78,averageSignups:2e3}},{user:"airnewzealand.com.au",isUnlocked:!0,scores:{rammpScore:87.4,f0:100,f10Sec:66.7,f3Min:98.1,fSignUp:60,f48Hours:100,fBuy:100},metrics:{visitors:533e3,timeOnSite:"07:52",returnVisitors:43.73,revenue:1e7,newUsers:299900,buyers:1e4,averageSignups48:1e4,averageBuy:1e3,pagesVisited:3.65,lastMilestoneUnlocked:!0,bounceRate:33.27,averageSignups:2e4}},{user:"cashrewards.com.au",isUnlocked:!0,scores:{rammpScore:59.8,f0:8.6,f10Sec:63.6,f3Min:100,fSignUp:82.2,f48Hours:63.3,fBuy:8.6},metrics:{visitors:15e5,timeOnSite:"05:33",returnVisitors:50.71,newUsers:739400,revenue:1833333,buyers:22666,averageSignups48:15277,averageBuy:6.92,pagesVisited:3.3,lastMilestoneUnlocked:!0,bounceRate:36.36,averageSignups:91666}},{user:"waverton.co.uk",isUnlocked:!0,scores:{rammpScore:40.8,f0:20,f10Sec:78.6,f3Min:70,fSignUp:36.4,f48Hours:10,fBuy:20},metrics:{visitors:2200,timeOnSite:"03:19",returnVisitors:0,newUsers:2200,revenue:5e5,buyers:4,averageSignups48:1,averageBuy:25e3,pagesVisited:3.36,lastMilestoneUnlocked:!0,bounceRate:21.37,averageSignups:50}},{user:"mytrucking.com",isUnlocked:!0,scores:{rammpScore:75,f0:100,f10Sec:77.3,f3Min:50.1,fSignUp:11.2,f48Hours:90.2,fBuy:100},metrics:{visitors:4706,timeOnSite:"01:15",returnVisitors:12.66,newUsers:4110,revenue:5e3,buyers:20,averageSignups48:10,averageBuy:300,pagesVisited:2.01,lastMilestoneUnlocked:!0,bounceRate:22.74,averageSignups:33}},{user:"mebank.com.au",isUnlocked:!0,scores:{rammpScore:88.5,f0:90.8,f10Sec:76,f3Min:100,fSignUp:72,f48Hours:97.2,fBuy:90.8},metrics:{visitors:1e6,timeOnSite:"06:21",returnVisitors:62.87,newUsers:371300,revenue:41891666,buyers:551e3,averageSignups48:2e4,averageBuy:69,pagesVisited:4.59,lastMilestoneUnlocked:!0,bounceRate:24,averageSignups:45e3}}];var GX=Object.defineProperty,qX=(e,t,r)=>t in e?GX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sh=(e,t,r)=>(qX(e,typeof t!="symbol"?t+"":t,r),r);let KX=class{constructor(){sh(this,"current",this.detect()),sh(this,"handoffState","pending"),sh(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Oi=new KX,Jt=(e,t)=>{Oi.isServer?k.useEffect(e,t):k.useLayoutEffect(e,t)};function Hr(e){let t=k.useRef(e);return Jt(()=>{t.current=e},[e]),t}function rE(e,t){let[r,n]=k.useState(e),i=Hr(e);return Jt(()=>n(i.current),[i,n,...t]),r}function YX(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Yn(){let e=[],t={addEventListener(r,n,i,a){return r.addEventListener(n,i,a),t.add(()=>r.removeEventListener(n,i,a))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return YX(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let a=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:a})})},group(r){let n=Yn();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function qa(){let[e]=k.useState(Yn);return k.useEffect(()=>()=>e.dispose(),[e]),e}let he=function(e){let t=Hr(e);return T.useCallback((...r)=>t.current(...r),[t])};function XX(){let e=typeof document>"u";return"useSyncExternalStore"in wu?(t=>t.useSyncExternalStore)(wu)(()=>()=>{},()=>!1,()=>!e):!1}function Yg(){let e=XX(),[t,r]=k.useState(Oi.isHandoffComplete);return t&&Oi.isHandoffComplete===!1&&r(!1),k.useEffect(()=>{t!==!0&&r(!0)},[t]),k.useEffect(()=>Oi.handoff(),[]),e?!1:t}var vw;let Yf=(vw=T.useId)!=null?vw:function(){let e=Yg(),[t,r]=T.useState(e?()=>Oi.nextId():null);return Jt(()=>{t===null&&r(Oi.nextId())},[t]),t!=null?""+t:void 0};function ct(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ct),n}function nE(e){return Oi.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let mw=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var QX=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(QX||{}),ZX=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ZX||{}),JX=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(JX||{}),Xg=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Xg||{});function iE(e,t=0){var r;return e===((r=nE(e))==null?void 0:r.body)?!1:ct(t,{0(){return e.matches(mw)},1(){let n=e;for(;n!==null;){if(n.matches(mw))return!0;n=n.parentElement}return!1}})}var eQ=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(eQ||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function tQ(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),a=t(n);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ru(e,t,r){let n=Hr(t);k.useEffect(()=>{function i(a){n.current(a)}return document.addEventListener(e,i,r),()=>document.removeEventListener(e,i,r)},[e,r])}function rQ(e,t,r){let n=Hr(t);k.useEffect(()=>{function i(a){n.current(a)}return window.addEventListener(e,i,r),()=>window.removeEventListener(e,i,r)},[e,r])}function nQ(e,t,r=!0){let n=k.useRef(!1);k.useEffect(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function i(o,l){if(!n.current||o.defaultPrevented)return;let s=l(o);if(s===null||!s.getRootNode().contains(s)||!s.isConnected)return;let u=function c(f){return typeof f=="function"?c(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let c of u){if(c===null)continue;let f=c instanceof HTMLElement?c:c.current;if(f!=null&&f.contains(s)||o.composed&&o.composedPath().includes(f))return}return!iE(s,Xg.Loose)&&s.tabIndex!==-1&&o.preventDefault(),t(o,s)}let a=k.useRef(null);ru("pointerdown",o=>{var l,s;n.current&&(a.current=((s=(l=o.composedPath)==null?void 0:l.call(o))==null?void 0:s[0])||o.target)},!0),ru("mousedown",o=>{var l,s;n.current&&(a.current=((s=(l=o.composedPath)==null?void 0:l.call(o))==null?void 0:s[0])||o.target)},!0),ru("click",o=>{a.current&&(i(o,()=>a.current),a.current=null)},!0),ru("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),rQ("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function gw(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function iQ(e,t){let[r,n]=k.useState(()=>gw(e));return Jt(()=>{n(gw(e))},[e.type,e.as]),Jt(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}let aQ=Symbol();function Li(...e){let t=k.useRef(e);k.useEffect(()=>{t.current=e},[e]);let r=he(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[aQ]))?void 0:r}function oQ(e){throw new Error("Unexpected object: "+e)}var Nt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Nt||{});function lQ(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1,a=(()=>{switch(e.focus){case 0:return r.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=r.slice().reverse().findIndex((l,s,u)=>i!==-1&&u.length-s-1>=i?!1:!t.resolveDisabled(l));return o===-1?o:r.length-1-o}case 2:return r.findIndex((o,l)=>l<=i?!1:!t.resolveDisabled(o));case 3:{let o=r.slice().reverse().findIndex(l=>!t.resolveDisabled(l));return o===-1?o:r.length-1-o}case 4:return r.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:oQ(e)}})();return a===-1?n:a}function Nc(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var jc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(jc||{}),Cn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Cn||{});function ni({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:a=!0,name:o}){let l=aE(t,e);if(a)return nu(l,r,n,o);let s=i??0;if(s&2){let{static:u=!1,...c}=l;if(u)return nu(c,r,n,o)}if(s&1){let{unmount:u=!0,...c}=l;return ct(u?0:1,{0(){return null},1(){return nu({...c,hidden:!0,style:{display:"none"}},r,n,o)}})}return nu(l,r,n,o)}function nu(e,t={},r,n){let{as:i=r,children:a,refName:o="ref",...l}=uh(e,["unmount","static"]),s=e.ref!==void 0?{[o]:e.ref}:{},u=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let c={};if(t){let f=!1,d=[];for(let[y,v]of Object.entries(t))typeof v=="boolean"&&(f=!0),v===!0&&d.push(y);f&&(c["data-headlessui-state"]=d.join(" "))}if(i===k.Fragment&&Object.keys(jv(l)).length>0){if(!k.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(v=>` - ${v}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(` `)].join(` `));let f=u.props,d=typeof(f==null?void 0:f.className)=="function"?(...v)=>Nc(f==null?void 0:f.className(...v),l.className):Nc(f==null?void 0:f.className,l.className),y=d?{className:d}:{};return k.cloneElement(u,Object.assign({},aE(u.props,jv(uh(l,["ref"]))),c,s,sQ(u.ref,s.ref),y))}return k.createElement(i,Object.assign({},uh(l,["ref"]),i!==k.Fragment&&s,i!==k.Fragment&&c),u)}function sQ(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}}function aE(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...a){let o=r[n];for(let l of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;l(i,...a)}}});return t}function yn(e){var t;return Object.assign(k.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function jv(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function uh(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function uQ(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&cQ(r)?!1:n}function cQ(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function oE(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))sE(r,lE(t,n),i);return r}function lE(e,t){return e?e+"["+t+"]":t}function sE(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())sE(e,lE(t,n.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):oE(r,t,e)}let fQ="div";var uE=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(uE||{});function dQ(e,t){let{features:r=1,...n}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ni({ourProps:i,theirProps:n,slot:{},defaultTag:fQ,name:"Hidden"})}let hQ=yn(dQ),Qg=k.createContext(null);Qg.displayName="OpenClosedContext";var Ht=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ht||{});function Zg(){return k.useContext(Qg)}function cE({value:e,children:t}){return T.createElement(Qg.Provider,{value:e},t)}var tt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(tt||{});function pQ(e,t,r){let[n,i]=k.useState(r),a=e!==void 0,o=k.useRef(a),l=k.useRef(!1),s=k.useRef(!1);return a&&!o.current&&!l.current?(l.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!s.current&&(s.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:n,he(u=>(a||i(u),t==null?void 0:t(u)))]}function yw(e){return[e.screenX,e.screenY]}function vQ(){let e=k.useRef([-1,-1]);return{wasMoved(t){let r=yw(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=yw(t)}}}function Jg(){let e=k.useRef(!1);return Jt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let bw=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function xw(e){var t,r;let n=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let a=!1;for(let l of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),a=!0;let o=a?(r=i.innerText)!=null?r:"":n;return bw.test(o)&&(o=o.replace(bw,"")),o}function mQ(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let n=r.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():xw(a).trim()}return null}).filter(Boolean);if(n.length>0)return n.join(", ")}return xw(e).trim()}function gQ(e){let t=k.useRef(""),r=k.useRef("");return he(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let a=mQ(n).trim().toLowerCase();return t.current=i,r.current=a,a})}var yQ=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(yQ||{}),bQ=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(bQ||{}),xQ=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(xQ||{}),wQ=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(wQ||{});function ch(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=tQ(t(e.options.slice()),a=>a.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}let SQ={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(i=>r(i.dataRef.current.value));return n!==-1&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=ch(e),i=lQ(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:i,activationTrigger:(r=t.trigger)!=null?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(o=>{var l;return!o.dataRef.current.disabled&&((l=o.dataRef.current.textValue)==null?void 0:l.startsWith(n))}),a=i?e.options.indexOf(i):-1;return a===-1||a===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:a,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=ch(e,i=>[...i,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=ch(e,n=>{let i=n.findIndex(a=>a.id===t.id);return i!==-1&&n.splice(i,1),n});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},ey=k.createContext(null);ey.displayName="ListboxActionsContext";function bs(e){let t=k.useContext(ey);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,bs),r}return t}let ty=k.createContext(null);ty.displayName="ListboxDataContext";function xs(e){let t=k.useContext(ty);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,xs),r}return t}function _Q(e,t){return ct(t.type,SQ,e,t)}let OQ=k.Fragment;function kQ(e,t){let{value:r,defaultValue:n,form:i,name:a,onChange:o,by:l=(V,Z)=>V===Z,disabled:s=!1,horizontal:u=!1,multiple:c=!1,...f}=e;const d=u?"horizontal":"vertical";let y=Li(t),[v=c?[]:void 0,p]=pQ(r,o,n),[g,m]=k.useReducer(_Q,{dataRef:k.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),b=k.useRef({static:!1,hold:!1}),h=k.useRef(null),x=k.useRef(null),S=k.useRef(null),w=he(typeof l=="string"?(V,Z)=>{let ne=l;return(V==null?void 0:V[ne])===(Z==null?void 0:Z[ne])}:l),_=k.useCallback(V=>ct(O.mode,{1:()=>v.some(Z=>w(Z,V)),0:()=>w(v,V)}),[v]),O=k.useMemo(()=>({...g,value:v,disabled:s,mode:c?1:0,orientation:d,compare:w,isSelected:_,optionsPropsRef:b,labelRef:h,buttonRef:x,optionsRef:S}),[v,s,c,g]);Jt(()=>{g.dataRef.current=O},[O]),nQ([O.buttonRef,O.optionsRef],(V,Z)=>{var ne;m({type:1}),iE(Z,Xg.Loose)||(V.preventDefault(),(ne=O.buttonRef.current)==null||ne.focus())},O.listboxState===0);let P=k.useMemo(()=>({open:O.listboxState===0,disabled:s,value:v}),[O,s,v]),A=he(V=>{let Z=O.options.find(ne=>ne.id===V);Z&&U(Z.dataRef.current.value)}),E=he(()=>{if(O.activeOptionIndex!==null){let{dataRef:V,id:Z}=O.options[O.activeOptionIndex];U(V.current.value),m({type:2,focus:Nt.Specific,id:Z})}}),C=he(()=>m({type:0})),$=he(()=>m({type:1})),N=he((V,Z,ne)=>V===Nt.Specific?m({type:2,focus:Nt.Specific,id:Z,trigger:ne}):m({type:2,focus:V,trigger:ne})),I=he((V,Z)=>(m({type:5,id:V,dataRef:Z}),()=>m({type:6,id:V}))),H=he(V=>(m({type:7,id:V}),()=>m({type:7,id:null}))),U=he(V=>ct(O.mode,{0(){return p==null?void 0:p(V)},1(){let Z=O.value.slice(),ne=Z.findIndex(Se=>w(Se,V));return ne===-1?Z.push(V):Z.splice(ne,1),p==null?void 0:p(Z)}})),M=he(V=>m({type:3,value:V})),R=he(()=>m({type:4})),B=k.useMemo(()=>({onChange:U,registerOption:I,registerLabel:H,goToOption:N,closeListbox:$,openListbox:C,selectActiveOption:E,selectOption:A,search:M,clearSearch:R}),[]),G={ref:y},X=k.useRef(null),Q=qa();return k.useEffect(()=>{X.current&&n!==void 0&&Q.addEventListener(X.current,"reset",()=>{p==null||p(n)})},[X,p]),T.createElement(ey.Provider,{value:B},T.createElement(ty.Provider,{value:O},T.createElement(cE,{value:ct(O.listboxState,{0:Ht.Open,1:Ht.Closed})},a!=null&&v!=null&&oE({[a]:v}).map(([V,Z],ne)=>T.createElement(hQ,{features:uE.Hidden,ref:ne===0?Se=>{var ie;X.current=(ie=Se==null?void 0:Se.closest("form"))!=null?ie:null}:void 0,...jv({key:V,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:V,value:Z})})),ni({ourProps:G,theirProps:f,slot:P,defaultTag:OQ,name:"Listbox"}))))}let AQ="button";function EQ(e,t){var r;let n=Yf(),{id:i=`headlessui-listbox-button-${n}`,...a}=e,o=xs("Listbox.Button"),l=bs("Listbox.Button"),s=Li(o.buttonRef,t),u=qa(),c=he(g=>{switch(g.key){case tt.Space:case tt.Enter:case tt.ArrowDown:g.preventDefault(),l.openListbox(),u.nextFrame(()=>{o.value||l.goToOption(Nt.First)});break;case tt.ArrowUp:g.preventDefault(),l.openListbox(),u.nextFrame(()=>{o.value||l.goToOption(Nt.Last)});break}}),f=he(g=>{switch(g.key){case tt.Space:g.preventDefault();break}}),d=he(g=>{if(uQ(g.currentTarget))return g.preventDefault();o.listboxState===0?(l.closeListbox(),u.nextFrame(()=>{var m;return(m=o.buttonRef.current)==null?void 0:m.focus({preventScroll:!0})})):(g.preventDefault(),l.openListbox())}),y=rE(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),v=k.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),p={ref:s,id:i,type:iQ(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(r=o.optionsRef.current)==null?void 0:r.id,"aria-expanded":o.listboxState===0,"aria-labelledby":y,disabled:o.disabled,onKeyDown:c,onKeyUp:f,onClick:d};return ni({ourProps:p,theirProps:a,slot:v,defaultTag:AQ,name:"Listbox.Button"})}let PQ="label";function TQ(e,t){let r=Yf(),{id:n=`headlessui-listbox-label-${r}`,...i}=e,a=xs("Listbox.Label"),o=bs("Listbox.Label"),l=Li(a.labelRef,t);Jt(()=>o.registerLabel(n),[n]);let s=he(()=>{var c;return(c=a.buttonRef.current)==null?void 0:c.focus({preventScroll:!0})}),u=k.useMemo(()=>({open:a.listboxState===0,disabled:a.disabled}),[a]);return ni({ourProps:{ref:l,id:n,onClick:s},theirProps:i,slot:u,defaultTag:PQ,name:"Listbox.Label"})}let $Q="ul",CQ=jc.RenderStrategy|jc.Static;function MQ(e,t){var r;let n=Yf(),{id:i=`headlessui-listbox-options-${n}`,...a}=e,o=xs("Listbox.Options"),l=bs("Listbox.Options"),s=Li(o.optionsRef,t),u=qa(),c=qa(),f=Zg(),d=(()=>f!==null?(f&Ht.Open)===Ht.Open:o.listboxState===0)();k.useEffect(()=>{var m;let b=o.optionsRef.current;b&&o.listboxState===0&&b!==((m=nE(b))==null?void 0:m.activeElement)&&b.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let y=he(m=>{switch(c.dispose(),m.key){case tt.Space:if(o.searchQuery!=="")return m.preventDefault(),m.stopPropagation(),l.search(m.key);case tt.Enter:if(m.preventDefault(),m.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:b}=o.options[o.activeOptionIndex];l.onChange(b.current.value)}o.mode===0&&(l.closeListbox(),Yn().nextFrame(()=>{var b;return(b=o.buttonRef.current)==null?void 0:b.focus({preventScroll:!0})}));break;case ct(o.orientation,{vertical:tt.ArrowDown,horizontal:tt.ArrowRight}):return m.preventDefault(),m.stopPropagation(),l.goToOption(Nt.Next);case ct(o.orientation,{vertical:tt.ArrowUp,horizontal:tt.ArrowLeft}):return m.preventDefault(),m.stopPropagation(),l.goToOption(Nt.Previous);case tt.Home:case tt.PageUp:return m.preventDefault(),m.stopPropagation(),l.goToOption(Nt.First);case tt.End:case tt.PageDown:return m.preventDefault(),m.stopPropagation(),l.goToOption(Nt.Last);case tt.Escape:return m.preventDefault(),m.stopPropagation(),l.closeListbox(),u.nextFrame(()=>{var b;return(b=o.buttonRef.current)==null?void 0:b.focus({preventScroll:!0})});case tt.Tab:m.preventDefault(),m.stopPropagation();break;default:m.key.length===1&&(l.search(m.key),c.setTimeout(()=>l.clearSearch(),350));break}}),v=rE(()=>{var m,b,h;return(h=(m=o.labelRef.current)==null?void 0:m.id)!=null?h:(b=o.buttonRef.current)==null?void 0:b.id},[o.labelRef.current,o.buttonRef.current]),p=k.useMemo(()=>({open:o.listboxState===0}),[o]),g={"aria-activedescendant":o.activeOptionIndex===null||(r=o.options[o.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":v,"aria-orientation":o.orientation,id:i,onKeyDown:y,role:"listbox",tabIndex:0,ref:s};return ni({ourProps:g,theirProps:a,slot:p,defaultTag:$Q,features:CQ,visible:d,name:"Listbox.Options"})}let IQ="li";function RQ(e,t){let r=Yf(),{id:n=`headlessui-listbox-option-${r}`,disabled:i=!1,value:a,...o}=e,l=xs("Listbox.Option"),s=bs("Listbox.Option"),u=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===n:!1,c=l.isSelected(a),f=k.useRef(null),d=gQ(f),y=Hr({disabled:i,value:a,domRef:f,get textValue(){return d()}}),v=Li(t,f);Jt(()=>{if(l.listboxState!==0||!u||l.activationTrigger===0)return;let w=Yn();return w.requestAnimationFrame(()=>{var _,O;(O=(_=f.current)==null?void 0:_.scrollIntoView)==null||O.call(_,{block:"nearest"})}),w.dispose},[f,u,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Jt(()=>s.registerOption(n,y),[y,n]);let p=he(w=>{if(i)return w.preventDefault();s.onChange(a),l.mode===0&&(s.closeListbox(),Yn().nextFrame(()=>{var _;return(_=l.buttonRef.current)==null?void 0:_.focus({preventScroll:!0})}))}),g=he(()=>{if(i)return s.goToOption(Nt.Nothing);s.goToOption(Nt.Specific,n)}),m=vQ(),b=he(w=>m.update(w)),h=he(w=>{m.wasMoved(w)&&(i||u||s.goToOption(Nt.Specific,n,0))}),x=he(w=>{m.wasMoved(w)&&(i||u&&s.goToOption(Nt.Nothing))}),S=k.useMemo(()=>({active:u,selected:c,disabled:i}),[u,c,i]);return ni({ourProps:{id:n,ref:v,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":c,disabled:void 0,onClick:p,onFocus:g,onPointerEnter:b,onMouseEnter:b,onPointerMove:h,onMouseMove:h,onPointerLeave:x,onMouseLeave:x},theirProps:o,slot:S,defaultTag:IQ,name:"Listbox.Option"})}let NQ=yn(kQ),jQ=yn(EQ),LQ=yn(TQ),DQ=yn(MQ),FQ=yn(RQ),iu=Object.assign(NQ,{Button:jQ,Label:LQ,Options:DQ,Option:FQ});function BQ(e=0){let[t,r]=k.useState(e),n=Jg(),i=k.useCallback(s=>{n.current&&r(u=>u|s)},[t,n]),a=k.useCallback(s=>!!(t&s),[t]),o=k.useCallback(s=>{n.current&&r(u=>u&~s)},[r,n]),l=k.useCallback(s=>{n.current&&r(u=>u^s)},[r]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:l}}function zQ(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function fh(e,...t){e&&t.length>0&&e.classList.add(...t)}function dh(e,...t){e&&t.length>0&&e.classList.remove(...t)}function UQ(e,t){let r=Yn();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[a,o]=[n,i].map(s=>{let[u=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,f)=>f-c);return u}),l=a+o;if(l!==0){r.group(u=>{u.setTimeout(()=>{t(),u.dispose()},l),u.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let s=r.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),s())})}else t();return r.add(()=>t()),r.dispose}function HQ(e,t,r,n){let i=r?"enter":"leave",a=Yn(),o=n!==void 0?zQ(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let l=ct(i,{enter:()=>t.enter,leave:()=>t.leave}),s=ct(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=ct(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return dh(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),fh(e,...t.base,...l,...u),a.nextFrame(()=>{dh(e,...t.base,...l,...u),fh(e,...t.base,...l,...s),UQ(e,()=>(dh(e,...t.base,...l),fh(e,...t.base,...t.entered),o()))}),a.dispose}function WQ({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:a}){let o=Jg(),l=qa(),s=Hr(r);Jt(()=>{e&&(s.current="enter")},[e]),Jt(()=>{let u=Yn();l.add(u.dispose);let c=t.current;if(c&&s.current!=="idle"&&o.current)return u.dispose(),i.current(s.current),u.add(HQ(c,n.current,s.current==="enter",()=>{u.dispose(),a.current(s.current)})),u.dispose},[r])}function xn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Xf=k.createContext(null);Xf.displayName="TransitionContext";var VQ=(e=>(e.Visible="visible",e.Hidden="hidden",e))(VQ||{});function GQ(){let e=k.useContext(Xf);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function qQ(){let e=k.useContext(Qf);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let Qf=k.createContext(null);Qf.displayName="NestingContext";function Zf(e){return"children"in e?Zf(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function fE(e,t){let r=Hr(e),n=k.useRef([]),i=Jg(),a=qa(),o=he((y,v=Cn.Hidden)=>{let p=n.current.findIndex(({el:g})=>g===y);p!==-1&&(ct(v,{[Cn.Unmount](){n.current.splice(p,1)},[Cn.Hidden](){n.current[p].state="hidden"}}),a.microTask(()=>{var g;!Zf(n)&&i.current&&((g=r.current)==null||g.call(r))}))}),l=he(y=>{let v=n.current.find(({el:p})=>p===y);return v?v.state!=="visible"&&(v.state="visible"):n.current.push({el:y,state:"visible"}),()=>o(y,Cn.Unmount)}),s=k.useRef([]),u=k.useRef(Promise.resolve()),c=k.useRef({enter:[],leave:[],idle:[]}),f=he((y,v,p)=>{s.current.splice(0),t&&(t.chains.current[v]=t.chains.current[v].filter(([g])=>g!==y)),t==null||t.chains.current[v].push([y,new Promise(g=>{s.current.push(g)})]),t==null||t.chains.current[v].push([y,new Promise(g=>{Promise.all(c.current[v].map(([m,b])=>b)).then(()=>g())})]),v==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>p(v)):p(v)}),d=he((y,v,p)=>{Promise.all(c.current[v].splice(0).map(([g,m])=>m)).then(()=>{var g;(g=s.current.shift())==null||g()}).then(()=>p(v))});return k.useMemo(()=>({children:n,register:l,unregister:o,onStart:f,onStop:d,wait:u,chains:c}),[l,o,n,f,d,c,u])}function KQ(){}let YQ=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ww(e){var t;let r={};for(let n of YQ)r[n]=(t=e[n])!=null?t:KQ;return r}function XQ(e){let t=k.useRef(ww(e));return k.useEffect(()=>{t.current=ww(e)},[e]),t}let QQ="div",dE=jc.RenderStrategy;function ZQ(e,t){var r,n;let{beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:l,enter:s,enterFrom:u,enterTo:c,entered:f,leave:d,leaveFrom:y,leaveTo:v,...p}=e,g=k.useRef(null),m=Li(g,t),b=(r=p.unmount)==null||r?Cn.Unmount:Cn.Hidden,{show:h,appear:x,initial:S}=GQ(),[w,_]=k.useState(h?"visible":"hidden"),O=qQ(),{register:P,unregister:A}=O;k.useEffect(()=>P(g),[P,g]),k.useEffect(()=>{if(b===Cn.Hidden&&g.current){if(h&&w!=="visible"){_("visible");return}return ct(w,{hidden:()=>A(g),visible:()=>P(g)})}},[w,g,P,A,h,b]);let E=Hr({base:xn(p.className),enter:xn(s),enterFrom:xn(u),enterTo:xn(c),entered:xn(f),leave:xn(d),leaveFrom:xn(y),leaveTo:xn(v)}),C=XQ({beforeEnter:i,afterEnter:a,beforeLeave:o,afterLeave:l}),$=Yg();k.useEffect(()=>{if($&&w==="visible"&&g.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[g,w,$]);let N=S&&!x,I=x&&h&&S,H=(()=>!$||N?"idle":h?"enter":"leave")(),U=BQ(0),M=he(Q=>ct(Q,{enter:()=>{U.addFlag(Ht.Opening),C.current.beforeEnter()},leave:()=>{U.addFlag(Ht.Closing),C.current.beforeLeave()},idle:()=>{}})),R=he(Q=>ct(Q,{enter:()=>{U.removeFlag(Ht.Opening),C.current.afterEnter()},leave:()=>{U.removeFlag(Ht.Closing),C.current.afterLeave()},idle:()=>{}})),B=fE(()=>{_("hidden"),A(g)},O);WQ({immediate:I,container:g,classes:E,direction:H,onStart:Hr(Q=>{B.onStart(g,Q,M)}),onStop:Hr(Q=>{B.onStop(g,Q,R),Q==="leave"&&!Zf(B)&&(_("hidden"),A(g))})});let G=p,X={ref:m};return I?G={...G,className:Nc(p.className,...E.current.enter,...E.current.enterFrom)}:(G.className=Nc(p.className,(n=g.current)==null?void 0:n.className),G.className===""&&delete G.className),T.createElement(Qf.Provider,{value:B},T.createElement(cE,{value:ct(w,{visible:Ht.Open,hidden:Ht.Closed})|U.flags},ni({ourProps:X,theirProps:G,defaultTag:QQ,features:dE,visible:w==="visible",name:"Transition.Child"})))}function JQ(e,t){let{show:r,appear:n=!1,unmount:i=!0,...a}=e,o=k.useRef(null),l=Li(o,t);Yg();let s=Zg();if(r===void 0&&s!==null&&(r=(s&Ht.Open)===Ht.Open),![!0,!1].includes(r))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[u,c]=k.useState(r?"visible":"hidden"),f=fE(()=>{c("hidden")}),[d,y]=k.useState(!0),v=k.useRef([r]);Jt(()=>{d!==!1&&v.current[v.current.length-1]!==r&&(v.current.push(r),y(!1))},[v,r]);let p=k.useMemo(()=>({show:r,appear:n,initial:d}),[r,n,d]);k.useEffect(()=>{if(r)c("visible");else if(!Zf(f))c("hidden");else{let h=o.current;if(!h)return;let x=h.getBoundingClientRect();x.x===0&&x.y===0&&x.width===0&&x.height===0&&c("hidden")}},[r,f]);let g={unmount:i},m=he(()=>{var h;d&&y(!1),(h=e.beforeEnter)==null||h.call(e)}),b=he(()=>{var h;d&&y(!1),(h=e.beforeLeave)==null||h.call(e)});return T.createElement(Qf.Provider,{value:f},T.createElement(Xf.Provider,{value:p},ni({ourProps:{...g,as:k.Fragment,children:T.createElement(hE,{ref:l,...g,...a,beforeEnter:m,beforeLeave:b})},theirProps:{},defaultTag:k.Fragment,features:dE,visible:u==="visible",name:"Transition"})))}function eZ(e,t){let r=k.useContext(Xf)!==null,n=Zg()!==null;return T.createElement(T.Fragment,null,!r&&n?T.createElement(Lv,{ref:t,...e}):T.createElement(hE,{ref:t,...e}))}let Lv=yn(JQ),hE=yn(ZQ),tZ=yn(eZ),rZ=Object.assign(Lv,{Child:tZ,Root:Lv});function nZ({title:e,titleId:t,...r},n){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?k.createElement("title",{id:t},e):null,k.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))}const iZ=k.forwardRef(nZ),aZ=iZ;function oZ({title:e,titleId:t,...r},n){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?k.createElement("title",{id:t},e):null,k.createElement("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z",clipRule:"evenodd"}))}const lZ=k.forwardRef(oZ),sZ=lZ;function uZ({report:e,setReport:t}){return z.jsx(iu,{value:e,onChange:t,children:z.jsxs("div",{className:"relative mt-1",children:[z.jsxs(iu.Button,{className:"relative w-full cursor-default rounded-lg bg-white py-2 pl-3 pr-10 text-left shadow-md focus:outline-none focus-visible:border-indigo-500 focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-orange-300 text-lg",children:[z.jsxs("span",{className:"block truncate font-light",children:["RAMMP report generated for ",z.jsx("span",{className:"font-semibold",children:e.user})]}),z.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:z.jsx(sZ,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),z.jsx(rZ,{as:k.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:z.jsx(iu.Options,{className:"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:tE.map((r,n)=>z.jsx(iu.Option,{className:({active:i})=>`relative cursor-default select-none text-lg py-2 pl-10 pr-4 ${i?"bg-amber-100 text-amber-900":"text-gray-900"}`,value:r,children:({selected:i})=>z.jsxs(z.Fragment,{children:[z.jsx("span",{className:`block truncate ${i?"font-medium":"font-normal"}`,children:r.user}),i?z.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-amber-600",children:z.jsx(aZ,{className:"h-5 w-5","aria-hidden":"true"})}):null]})},n))})})]})})}const cZ={fSignUp:"averageSignups",f48Hours:"averageSignups48",fBuy:"lastMilestoneUnlocked"};function fZ(){const[e,t]=k.useState(tE[0]),r=k.useMemo(()=>{var a,o,l;return[{id:"f0",seconds:"0 Seconds",title:"The Arrival",score:((a=e==null?void 0:e.scores)==null?void 0:a.f0)??0,targetPoint:Ut.f0,improveText:"Improve your 0 seconds milestone",improveSubText:"Improve ‘the vibe’ of your website."},{id:"f10Sec",seconds:"10 Seconds",title:"The First Impression",score:((o=e==null?void 0:e.scores)==null?void 0:o.f10Sec)??0,targetPoint:Ut.f10Sec,improveText:"Improve your 10 seconds milestone",improveSubText:"Improve ‘the vibe’ of your website."},{id:"f3Min",seconds:"3 Minutes",title:"The First Date",score:((l=e==null?void 0:e.scores)==null?void 0:l.f3Min)??0,targetPoint:Ut.f3Min,improveText:"Improve your 3 minutes milestone",improveSubText:"Engage prospective buyers and tell an effective story."}]},[e]),n=k.useMemo(()=>{var a,o,l;return[{id:"fSignUp",actionName:"Sign up",title:"The Honeymoon",description:"More data is required to track this milestone.",action:"fSignUp",titleModal:"Sign up",subTitleModal:"The Honeymoon",descriptionModal:"Your Sign-up Score measures the effectiveness of your CTA’s and desirability of your product.",labelModal:"Enter Average number of sign-ups",score:((a=e==null?void 0:e.scores)==null?void 0:a.fSignUp)??0,targetPoint:Ut.fSignUp,improveText:"Improve your Sign-up milestone",improveSubText:"Engage prospective buyers and tell an effective story."},{id:"f48Hours",actionName:"48 Hours",title:"The Reality",description:"More data is required to track this milestone.",action:"f48Hours",titleModal:"First 48 hours",subTitleModal:"The Reality",descriptionModal:"Your First 48 Hours Score measures the effectiveness of your onboarding process.",labelModal:"Enter number of users engaged at 48 hours",score:((o=e==null?void 0:e.scores)==null?void 0:o.f48Hours)??0,targetPoint:Ut.f48Hours,improveText:"Improve your 48 hours milestone",improveSubText:"Engage prospective buyers and tell an effective story."},{id:"fBuy",actionName:"Upgrade",title:"The Moment of truth",description:"More data is required to track this milestone.",action:"fBuy",titleModal:"Upgrade",subTitleModal:"The Moment of truth",descriptionModal:"Your Upgrade Score measures the effectiveness of your product pricing and packaging.",score:((l=e==null?void 0:e.scores)==null?void 0:l.fBuy)??0,targetPoint:Ut.fBuy,improveText:"Improve your Upgrade milestone",improveSubText:"Engage prospective buyers and tell an effective story."}]},[e]),i=k.useMemo(()=>{const a=["f10Sec","f48Hours","f3Min","fSignUp","f0","fBuy"],o=r.filter(c=>c.targetPoint>c.score),l=n.filter(c=>e.metrics[cZ[c.id]]&&c.targetPoint>c.score),s=[...o,...l],u=[];return a.forEach(c=>{const f=s.find(d=>d.id===c);f&&u.push(f)}),u.splice(0,2)},[r,n,e]);return z.jsxs("div",{children:[z.jsx("div",{className:"z-10 relative lg:w-[calc(50%-1rem)] mb-8 w-full",children:z.jsx(uZ,{report:e,setReport:t})}),z.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",id:"content-grid",children:[z.jsxs("div",{className:"comBorder shadow-lg bg-white p-6",children:[z.jsx("p",{className:"subTitleCard",children:"RAMMP score"}),z.jsx("div",{children:z.jsx(WX,{report:e})}),z.jsxs("div",{className:"flex gap-6 border-b-2 border-gray-400 pb-4 mb-4",children:[z.jsxs("div",{className:"flex gap-2 items-center",children:[z.jsx("div",{className:"border-rammp-purple border-4 rounded-full h-0"}),z.jsx("p",{style:{fontSize:"12px",color:"#000"},children:"Above ideal score"})]}),z.jsxs("div",{className:"flex gap-2 items-center",children:[z.jsx("div",{className:"border-rammp-orange border-4 rounded-full h-0"}),z.jsx("p",{style:{fontSize:"12px",color:"#000"},children:"Behind ideal score"})]})]}),i.length>0&&z.jsx(z.Fragment,{children:z.jsxs("div",{className:"highestPriority",children:[z.jsx("p",{style:{padding:"7px 0 19px"},className:"subTitleCard",children:"Highest priority fixes"}),i.map((a,o)=>z.jsx("div",{className:"flex max-w-full gap-4 border rounded-[20px] shadow-lg py-2 px-4 mb-2",children:z.jsxs("div",{className:"overflow-hidden",children:[z.jsx("p",{className:"font-medium text-lg",children:a.improveText}),z.jsx("p",{className:"text-ellipsis overflow-hidden max-w-full inline-block whitespace-nowrap",children:VX[a.id].steps.pink[0].description[0].split(".")})]})},o))]})})]}),z.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[r.map(a=>z.jsx(v0,{item:a},a.id)),n.map(a=>z.jsx(v0,{item:a},a.id))]})]})]})}hh.createRoot(document.getElementById("dashboard-preview-container")).render(z.jsx(T.StrictMode,{children:z.jsx(fZ,{})}));