498 lines
775 KiB
JavaScript
498 lines
775 KiB
JavaScript
var Wb=e=>{throw TypeError(e)};var dp=(e,t,r)=>t.has(e)||Wb("Cannot "+r);var E=(e,t,r)=>(dp(e,t,"read from private field"),r?r.call(e):t.get(e)),re=(e,t,r)=>t.has(e)?Wb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Q=(e,t,r,n)=>(dp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),de=(e,t,r)=>(dp(e,t,"access private method"),r);var lc=(e,t,r,n)=>({set _(i){Q(e,t,i,r)},get _(){return E(e,t,n)}});function wC(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[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 uc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i_={exports:{}},qd={},a_={exports:{}},pe={};/**
|
||
* @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 Hu=Symbol.for("react.element"),SC=Symbol.for("react.portal"),OC=Symbol.for("react.fragment"),jC=Symbol.for("react.strict_mode"),_C=Symbol.for("react.profiler"),PC=Symbol.for("react.provider"),AC=Symbol.for("react.context"),kC=Symbol.for("react.forward_ref"),EC=Symbol.for("react.suspense"),NC=Symbol.for("react.memo"),CC=Symbol.for("react.lazy"),Hb=Symbol.iterator;function TC(e){return e===null||typeof e!="object"?null:(e=Hb&&e[Hb]||e["@@iterator"],typeof e=="function"?e:null)}var o_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},s_=Object.assign,l_={};function Os(e,t,r){this.props=e,this.context=t,this.refs=l_,this.updater=r||o_}Os.prototype.isReactComponent={};Os.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")};Os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function u_(){}u_.prototype=Os.prototype;function xg(e,t,r){this.props=e,this.context=t,this.refs=l_,this.updater=r||o_}var wg=xg.prototype=new u_;wg.constructor=xg;s_(wg,Os.prototype);wg.isPureReactComponent=!0;var qb=Array.isArray,c_=Object.prototype.hasOwnProperty,Sg={current:null},f_={key:!0,ref:!0,__self:!0,__source:!0};function d_(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)c_.call(t,n)&&!f_.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:Hu,type:e,key:a,ref:o,props:i,_owner:Sg.current}}function $C(e,t){return{$$typeof:Hu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Og(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hu}function MC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Kb=/\/+/g;function hp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?MC(""+e.key):t.toString(36)}function Vc(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Hu:case SC:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+hp(o,0):n,qb(i)?(r="",e!=null&&(r=e.replace(Kb,"$&/")+"/"),Vc(i,t,r,"",function(u){return u})):i!=null&&(Og(i)&&(i=$C(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Kb,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",qb(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+hp(a,s);o+=Vc(a,t,r,l,i)}else if(l=TC(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+hp(a,s++),o+=Vc(a,t,r,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function cc(e,t,r){if(e==null)return e;var n=[],i=0;return Vc(e,n,"","",function(a){return t.call(r,a,i++)}),n}function IC(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Lt={current:null},Gc={transition:null},RC={ReactCurrentDispatcher:Lt,ReactCurrentBatchConfig:Gc,ReactCurrentOwner:Sg};function h_(){throw Error("act(...) is not supported in production builds of React.")}pe.Children={map:cc,forEach:function(e,t,r){cc(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return cc(e,function(){t++}),t},toArray:function(e){return cc(e,function(t){return t})||[]},only:function(e){if(!Og(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};pe.Component=Os;pe.Fragment=OC;pe.Profiler=_C;pe.PureComponent=xg;pe.StrictMode=jC;pe.Suspense=EC;pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=RC;pe.act=h_;pe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=s_({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Sg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)c_.call(t,l)&&!f_.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:Hu,type:e.type,key:i,ref:a,props:n,_owner:o}};pe.createContext=function(e){return e={$$typeof:AC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:PC,_context:e},e.Consumer=e};pe.createElement=d_;pe.createFactory=function(e){var t=d_.bind(null,e);return t.type=e,t};pe.createRef=function(){return{current:null}};pe.forwardRef=function(e){return{$$typeof:kC,render:e}};pe.isValidElement=Og;pe.lazy=function(e){return{$$typeof:CC,_payload:{_status:-1,_result:e},_init:IC}};pe.memo=function(e,t){return{$$typeof:NC,type:e,compare:t===void 0?null:t}};pe.startTransition=function(e){var t=Gc.transition;Gc.transition={};try{e()}finally{Gc.transition=t}};pe.unstable_act=h_;pe.useCallback=function(e,t){return Lt.current.useCallback(e,t)};pe.useContext=function(e){return Lt.current.useContext(e)};pe.useDebugValue=function(){};pe.useDeferredValue=function(e){return Lt.current.useDeferredValue(e)};pe.useEffect=function(e,t){return Lt.current.useEffect(e,t)};pe.useId=function(){return Lt.current.useId()};pe.useImperativeHandle=function(e,t,r){return Lt.current.useImperativeHandle(e,t,r)};pe.useInsertionEffect=function(e,t){return Lt.current.useInsertionEffect(e,t)};pe.useLayoutEffect=function(e,t){return Lt.current.useLayoutEffect(e,t)};pe.useMemo=function(e,t){return Lt.current.useMemo(e,t)};pe.useReducer=function(e,t,r){return Lt.current.useReducer(e,t,r)};pe.useRef=function(e){return Lt.current.useRef(e)};pe.useState=function(e){return Lt.current.useState(e)};pe.useSyncExternalStore=function(e,t,r){return Lt.current.useSyncExternalStore(e,t,r)};pe.useTransition=function(){return Lt.current.useTransition()};pe.version="18.3.1";a_.exports=pe;var A=a_.exports;const k=Ae(A),DC=wC({__proto__:null,default:k},[A]);/**
|
||
* @license React
|
||
* react-jsx-runtime.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 LC=A,zC=Symbol.for("react.element"),FC=Symbol.for("react.fragment"),BC=Object.prototype.hasOwnProperty,UC=LC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,WC={key:!0,ref:!0,__self:!0,__source:!0};function p_(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)BC.call(t,n)&&!WC.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:zC,type:e,key:a,ref:o,props:i,_owner:UC.current}}qd.Fragment=FC;qd.jsx=p_;qd.jsxs=p_;i_.exports=qd;var d=i_.exports,_m={},m_={exports:{}},fr={},y_={exports:{}},v_={};/**
|
||
* @license React
|
||
* scheduler.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.
|
||
*/(function(e){function t(C,F){var U=C.length;C.push(F);e:for(;0<U;){var V=U-1>>>1,H=C[V];if(0<i(H,F))C[V]=F,C[U]=H,U=V;else break e}}function r(C){return C.length===0?null:C[0]}function n(C){if(C.length===0)return null;var F=C[0],U=C.pop();if(U!==F){C[0]=U;e:for(var V=0,H=C.length,X=H>>>1;V<X;){var ie=2*(V+1)-1,xe=C[ie],ze=ie+1,Se=C[ze];if(0>i(xe,U))ze<H&&0>i(Se,xe)?(C[V]=Se,C[ze]=U,V=ze):(C[V]=xe,C[ie]=U,V=ie);else if(ze<H&&0>i(Se,U))C[V]=Se,C[ze]=U,V=ze;else break e}}return F}function i(C,F){var U=C.sortIndex-F.sortIndex;return U!==0?U:C.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,c=null,h=3,p=!1,m=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,g=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 w(C){for(var F=r(u);F!==null;){if(F.callback===null)n(u);else if(F.startTime<=C)n(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=r(u)}}function O(C){if(y=!1,w(C),!m)if(r(l)!==null)m=!0,D(x);else{var F=r(u);F!==null&&B(O,F.startTime-C)}}function x(C,F){m=!1,y&&(y=!1,g(_),_=-1),p=!0;var U=h;try{for(w(F),c=r(l);c!==null&&(!(c.expirationTime>F)||C&&!$());){var V=c.callback;if(typeof V=="function"){c.callback=null,h=c.priorityLevel;var H=V(c.expirationTime<=F);F=e.unstable_now(),typeof H=="function"?c.callback=H:c===r(l)&&n(l),w(F)}else n(l);c=r(l)}if(c!==null)var X=!0;else{var ie=r(u);ie!==null&&B(O,ie.startTime-F),X=!1}return X}finally{c=null,h=U,p=!1}}var S=!1,j=null,_=-1,P=5,N=-1;function $(){return!(e.unstable_now()-N<P)}function T(){if(j!==null){var C=e.unstable_now();N=C;var F=!0;try{F=j(!0,C)}finally{F?L():(S=!1,j=null)}}else S=!1}var L;if(typeof b=="function")L=function(){b(T)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,I=R.port2;R.port1.onmessage=T,L=function(){I.postMessage(null)}}else L=function(){v(T,0)};function D(C){j=C,S||(S=!0,L())}function B(C,F){_=v(function(){C(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,D(x))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(C){switch(h){case 1:case 2:case 3:var F=3;break;default:F=h}var U=h;h=F;try{return C()}finally{h=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,F){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var U=h;h=C;try{return F()}finally{h=U}},e.unstable_scheduleCallback=function(C,F,U){var V=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?V+U:V):U=V,C){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=U+H,C={id:f++,callback:F,priorityLevel:C,startTime:U,expirationTime:H,sortIndex:-1},U>V?(C.sortIndex=U,t(u,C),r(l)===null&&C===r(u)&&(y?(g(_),_=-1):y=!0,B(O,U-V))):(C.sortIndex=H,t(l,C),m||p||(m=!0,D(x))),C},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(C){var F=h;return function(){var U=h;h=F;try{return C.apply(this,arguments)}finally{h=U}}}})(v_);y_.exports=v_;var HC=y_.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 qC=A,cr=HC;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g_=new Set,Il={};function Ba(e,t){Wo(e,t),Wo(e+"Capture",t)}function Wo(e,t){for(Il[e]=t,e=0;e<t.length;e++)g_.add(t[e])}var Tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pm=Object.prototype.hasOwnProperty,KC=/^[: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]*$/,Vb={},Gb={};function VC(e){return Pm.call(Gb,e)?!0:Pm.call(Vb,e)?!1:KC.test(e)?Gb[e]=!0:(Vb[e]=!0,!1)}function GC(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 XC(e,t,r,n){if(t===null||typeof t>"u"||GC(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 zt(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 St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new zt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new zt(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){St[e]=new zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var jg=/[\-:]([a-z])/g;function _g(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(jg,_g);St[t]=new zt(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(jg,_g);St[t]=new zt(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(jg,_g);St[t]=new zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new zt(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pg(e,t,r,n){var i=St.hasOwnProperty(t)?St[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(XC(t,r,i,n)&&(r=null),n||i===null?VC(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var zn=qC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fc=Symbol.for("react.element"),ro=Symbol.for("react.portal"),no=Symbol.for("react.fragment"),Ag=Symbol.for("react.strict_mode"),Am=Symbol.for("react.profiler"),b_=Symbol.for("react.provider"),x_=Symbol.for("react.context"),kg=Symbol.for("react.forward_ref"),km=Symbol.for("react.suspense"),Em=Symbol.for("react.suspense_list"),Eg=Symbol.for("react.memo"),Xn=Symbol.for("react.lazy"),w_=Symbol.for("react.offscreen"),Xb=Symbol.iterator;function qs(e){return e===null||typeof e!="object"?null:(e=Xb&&e[Xb]||e["@@iterator"],typeof e=="function"?e:null)}var He=Object.assign,pp;function fl(e){if(pp===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);pp=t&&t[1]||""}return`
|
||
`+pp+e}var mp=!1;function yp(e,t){if(!e||mp)return"";mp=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
||
`),a=n.stack.split(`
|
||
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=`
|
||
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{mp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?fl(e):""}function QC(e){switch(e.tag){case 5:return fl(e.type);case 16:return fl("Lazy");case 13:return fl("Suspense");case 19:return fl("SuspenseList");case 0:case 2:case 15:return e=yp(e.type,!1),e;case 11:return e=yp(e.type.render,!1),e;case 1:return e=yp(e.type,!0),e;default:return""}}function Nm(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 no:return"Fragment";case ro:return"Portal";case Am:return"Profiler";case Ag:return"StrictMode";case km:return"Suspense";case Em:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x_:return(e.displayName||"Context")+".Consumer";case b_:return(e._context.displayName||"Context")+".Provider";case kg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Eg:return t=e.displayName||null,t!==null?t:Nm(e.type)||"Memo";case Xn:t=e._payload,e=e._init;try{return Nm(e(t))}catch{}}return null}function YC(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 Nm(t);case 8:return t===Ag?"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 Pi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function S_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JC(e){var t=S_(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 dc(e){e._valueTracker||(e._valueTracker=JC(e))}function O_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=S_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function df(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 Cm(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Qb(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pi(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 j_(e,t){t=t.checked,t!=null&&Pg(e,"checked",t,!1)}function Tm(e,t){j_(e,t);var r=Pi(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")?$m(e,t.type,r):t.hasOwnProperty("defaultValue")&&$m(e,t.type,Pi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yb(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 $m(e,t,r){(t!=="number"||df(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var dl=Array.isArray;function xo(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Pi(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Mm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return He({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jb(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(K(92));if(dl(r)){if(1<r.length)throw Error(K(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Pi(r)}}function __(e,t){var r=Pi(t.value),n=Pi(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Zb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function P_(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Im(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?P_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hc,A_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hc=hc||document.createElement("div"),hc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vl={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},ZC=["Webkit","ms","Moz","O"];Object.keys(vl).forEach(function(e){ZC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vl[t]=vl[e]})});function k_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vl.hasOwnProperty(e)&&vl[e]?(""+t).trim():t+"px"}function E_(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=k_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var eT=He({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 Rm(e,t){if(t){if(eT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function Dm(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 Lm=null;function Ng(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zm=null,wo=null,So=null;function ex(e){if(e=Vu(e)){if(typeof zm!="function")throw Error(K(280));var t=e.stateNode;t&&(t=Qd(t),zm(e.stateNode,e.type,t))}}function N_(e){wo?So?So.push(e):So=[e]:wo=e}function C_(){if(wo){var e=wo,t=So;if(So=wo=null,ex(e),t)for(e=0;e<t.length;e++)ex(t[e])}}function T_(e,t){return e(t)}function $_(){}var vp=!1;function M_(e,t,r){if(vp)return e(t,r);vp=!0;try{return T_(e,t,r)}finally{vp=!1,(wo!==null||So!==null)&&($_(),C_())}}function Dl(e,t){var r=e.stateNode;if(r===null)return null;var n=Qd(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(K(231,t,typeof r));return r}var Fm=!1;if(Tn)try{var Ks={};Object.defineProperty(Ks,"passive",{get:function(){Fm=!0}}),window.addEventListener("test",Ks,Ks),window.removeEventListener("test",Ks,Ks)}catch{Fm=!1}function tT(e,t,r,n,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(f){this.onError(f)}}var gl=!1,hf=null,pf=!1,Bm=null,rT={onError:function(e){gl=!0,hf=e}};function nT(e,t,r,n,i,a,o,s,l){gl=!1,hf=null,tT.apply(rT,arguments)}function iT(e,t,r,n,i,a,o,s,l){if(nT.apply(this,arguments),gl){if(gl){var u=hf;gl=!1,hf=null}else throw Error(K(198));pf||(pf=!0,Bm=u)}}function Ua(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function I_(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function tx(e){if(Ua(e)!==e)throw Error(K(188))}function aT(e){var t=e.alternate;if(!t){if(t=Ua(e),t===null)throw Error(K(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return tx(i),e;if(a===n)return tx(i),t;a=a.sibling}throw Error(K(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(K(189))}}if(r.alternate!==n)throw Error(K(190))}if(r.tag!==3)throw Error(K(188));return r.stateNode.current===r?e:t}function R_(e){return e=aT(e),e!==null?D_(e):null}function D_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=D_(e);if(t!==null)return t;e=e.sibling}return null}var L_=cr.unstable_scheduleCallback,rx=cr.unstable_cancelCallback,oT=cr.unstable_shouldYield,sT=cr.unstable_requestPaint,Xe=cr.unstable_now,lT=cr.unstable_getCurrentPriorityLevel,Cg=cr.unstable_ImmediatePriority,z_=cr.unstable_UserBlockingPriority,mf=cr.unstable_NormalPriority,uT=cr.unstable_LowPriority,F_=cr.unstable_IdlePriority,Kd=null,tn=null;function cT(e){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Kd,e,void 0,(e.current.flags&128)===128)}catch{}}var Fr=Math.clz32?Math.clz32:hT,fT=Math.log,dT=Math.LN2;function hT(e){return e>>>=0,e===0?32:31-(fT(e)/dT|0)|0}var pc=64,mc=4194304;function hl(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 yf(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 s=o&~i;s!==0?n=hl(s):(a&=o,a!==0&&(n=hl(a)))}else o=r&~i,o!==0?n=hl(o):a!==0&&(n=hl(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;0<t;)r=31-Fr(t),i=1<<r,n|=e[r],t&=~i;return n}function pT(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mT(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Fr(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=pT(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function Um(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function B_(){var e=pc;return pc<<=1,!(pc&4194240)&&(pc=64),e}function gp(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function qu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Fr(t),e[t]=r}function yT(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<r;){var i=31-Fr(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function Tg(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Fr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Pe=0;function U_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var W_,$g,H_,q_,K_,Wm=!1,yc=[],mi=null,yi=null,vi=null,Ll=new Map,zl=new Map,Jn=[],vT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nx(e,t){switch(e){case"focusin":case"focusout":mi=null;break;case"dragenter":case"dragleave":yi=null;break;case"mouseover":case"mouseout":vi=null;break;case"pointerover":case"pointerout":Ll.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zl.delete(t.pointerId)}}function Vs(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Vu(t),t!==null&&$g(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function gT(e,t,r,n,i){switch(t){case"focusin":return mi=Vs(mi,e,t,r,n,i),!0;case"dragenter":return yi=Vs(yi,e,t,r,n,i),!0;case"mouseover":return vi=Vs(vi,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return Ll.set(a,Vs(Ll.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,zl.set(a,Vs(zl.get(a)||null,e,t,r,n,i)),!0}return!1}function V_(e){var t=ea(e.target);if(t!==null){var r=Ua(t);if(r!==null){if(t=r.tag,t===13){if(t=I_(r),t!==null){e.blockedOn=t,K_(e.priority,function(){H_(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Hm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Lm=n,r.target.dispatchEvent(n),Lm=null}else return t=Vu(r),t!==null&&$g(t),e.blockedOn=r,!1;t.shift()}return!0}function ix(e,t,r){Xc(e)&&r.delete(t)}function bT(){Wm=!1,mi!==null&&Xc(mi)&&(mi=null),yi!==null&&Xc(yi)&&(yi=null),vi!==null&&Xc(vi)&&(vi=null),Ll.forEach(ix),zl.forEach(ix)}function Gs(e,t){e.blockedOn===t&&(e.blockedOn=null,Wm||(Wm=!0,cr.unstable_scheduleCallback(cr.unstable_NormalPriority,bT)))}function Fl(e){function t(i){return Gs(i,e)}if(0<yc.length){Gs(yc[0],e);for(var r=1;r<yc.length;r++){var n=yc[r];n.blockedOn===e&&(n.blockedOn=null)}}for(mi!==null&&Gs(mi,e),yi!==null&&Gs(yi,e),vi!==null&&Gs(vi,e),Ll.forEach(t),zl.forEach(t),r=0;r<Jn.length;r++)n=Jn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Jn.length&&(r=Jn[0],r.blockedOn===null);)V_(r),r.blockedOn===null&&Jn.shift()}var Oo=zn.ReactCurrentBatchConfig,vf=!0;function xT(e,t,r,n){var i=Pe,a=Oo.transition;Oo.transition=null;try{Pe=1,Mg(e,t,r,n)}finally{Pe=i,Oo.transition=a}}function wT(e,t,r,n){var i=Pe,a=Oo.transition;Oo.transition=null;try{Pe=4,Mg(e,t,r,n)}finally{Pe=i,Oo.transition=a}}function Mg(e,t,r,n){if(vf){var i=Hm(e,t,r,n);if(i===null)kp(e,t,n,gf,r),nx(e,n);else if(gT(i,e,t,r,n))n.stopPropagation();else if(nx(e,n),t&4&&-1<vT.indexOf(e)){for(;i!==null;){var a=Vu(i);if(a!==null&&W_(a),a=Hm(e,t,r,n),a===null&&kp(e,t,n,gf,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else kp(e,t,n,null,r)}}var gf=null;function Hm(e,t,r,n){if(gf=null,e=Ng(n),e=ea(e),e!==null)if(t=Ua(e),t===null)e=null;else if(r=t.tag,r===13){if(e=I_(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return gf=e,null}function G_(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(lT()){case Cg:return 1;case z_:return 4;case mf:case uT:return 16;case F_:return 536870912;default:return 16}default:return 16}}var ci=null,Ig=null,Qc=null;function X_(){if(Qc)return Qc;var e,t=Ig,r=t.length,n,i="value"in ci?ci.value:ci.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return Qc=i.slice(e,1<n?1-n:void 0)}function Yc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vc(){return!0}function ax(){return!1}function dr(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?vc:ax,this.isPropagationStopped=ax,this}return He(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=vc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=vc)},persist:function(){},isPersistent:vc}),t}var js={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rg=dr(js),Ku=He({},js,{view:0,detail:0}),ST=dr(Ku),bp,xp,Xs,Vd=He({},Ku,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xs&&(Xs&&e.type==="mousemove"?(bp=e.screenX-Xs.screenX,xp=e.screenY-Xs.screenY):xp=bp=0,Xs=e),bp)},movementY:function(e){return"movementY"in e?e.movementY:xp}}),ox=dr(Vd),OT=He({},Vd,{dataTransfer:0}),jT=dr(OT),_T=He({},Ku,{relatedTarget:0}),wp=dr(_T),PT=He({},js,{animationName:0,elapsedTime:0,pseudoElement:0}),AT=dr(PT),kT=He({},js,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ET=dr(kT),NT=He({},js,{data:0}),sx=dr(NT),CT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TT={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$T={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$T[e])?!!t[e]:!1}function Dg(){return MT}var IT=He({},Ku,{key:function(e){if(e.key){var t=CT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dg,charCode:function(e){return e.type==="keypress"?Yc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),RT=dr(IT),DT=He({},Vd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lx=dr(DT),LT=He({},Ku,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dg}),zT=dr(LT),FT=He({},js,{propertyName:0,elapsedTime:0,pseudoElement:0}),BT=dr(FT),UT=He({},Vd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),WT=dr(UT),HT=[9,13,27,32],Lg=Tn&&"CompositionEvent"in window,bl=null;Tn&&"documentMode"in document&&(bl=document.documentMode);var qT=Tn&&"TextEvent"in window&&!bl,Q_=Tn&&(!Lg||bl&&8<bl&&11>=bl),ux=" ",cx=!1;function Y_(e,t){switch(e){case"keyup":return HT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var io=!1;function KT(e,t){switch(e){case"compositionend":return J_(t);case"keypress":return t.which!==32?null:(cx=!0,ux);case"textInput":return e=t.data,e===ux&&cx?null:e;default:return null}}function VT(e,t){if(io)return e==="compositionend"||!Lg&&Y_(e,t)?(e=X_(),Qc=Ig=ci=null,io=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Q_&&t.locale!=="ko"?null:t.data;default:return null}}var GT={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!GT[e.type]:t==="textarea"}function Z_(e,t,r,n){N_(n),t=bf(t,"onChange"),0<t.length&&(r=new Rg("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var xl=null,Bl=null;function XT(e){cP(e,0)}function Gd(e){var t=so(e);if(O_(t))return e}function QT(e,t){if(e==="change")return t}var eP=!1;if(Tn){var Sp;if(Tn){var Op="oninput"in document;if(!Op){var dx=document.createElement("div");dx.setAttribute("oninput","return;"),Op=typeof dx.oninput=="function"}Sp=Op}else Sp=!1;eP=Sp&&(!document.documentMode||9<document.documentMode)}function hx(){xl&&(xl.detachEvent("onpropertychange",tP),Bl=xl=null)}function tP(e){if(e.propertyName==="value"&&Gd(Bl)){var t=[];Z_(t,Bl,e,Ng(e)),M_(XT,t)}}function YT(e,t,r){e==="focusin"?(hx(),xl=t,Bl=r,xl.attachEvent("onpropertychange",tP)):e==="focusout"&&hx()}function JT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gd(Bl)}function ZT(e,t){if(e==="click")return Gd(t)}function e$(e,t){if(e==="input"||e==="change")return Gd(t)}function t$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wr=typeof Object.is=="function"?Object.is:t$;function Ul(e,t){if(Wr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Pm.call(t,i)||!Wr(e[i],t[i]))return!1}return!0}function px(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mx(e,t){var r=px(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=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=px(r)}}function rP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nP(){for(var e=window,t=df();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=df(e.document)}return t}function zg(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 r$(e){var t=nP(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&rP(r.ownerDocument.documentElement,r)){if(n!==null&&zg(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=mx(r,a);var o=mx(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<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var n$=Tn&&"documentMode"in document&&11>=document.documentMode,ao=null,qm=null,wl=null,Km=!1;function yx(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Km||ao==null||ao!==df(n)||(n=ao,"selectionStart"in n&&zg(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}),wl&&Ul(wl,n)||(wl=n,n=bf(qm,"onSelect"),0<n.length&&(t=new Rg("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ao)))}function gc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var oo={animationend:gc("Animation","AnimationEnd"),animationiteration:gc("Animation","AnimationIteration"),animationstart:gc("Animation","AnimationStart"),transitionend:gc("Transition","TransitionEnd")},jp={},iP={};Tn&&(iP=document.createElement("div").style,"AnimationEvent"in window||(delete oo.animationend.animation,delete oo.animationiteration.animation,delete oo.animationstart.animation),"TransitionEvent"in window||delete oo.transitionend.transition);function Xd(e){if(jp[e])return jp[e];if(!oo[e])return e;var t=oo[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in iP)return jp[e]=t[r];return e}var aP=Xd("animationend"),oP=Xd("animationiteration"),sP=Xd("animationstart"),lP=Xd("transitionend"),uP=new Map,vx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ti(e,t){uP.set(e,t),Ba(t,[e])}for(var _p=0;_p<vx.length;_p++){var Pp=vx[_p],i$=Pp.toLowerCase(),a$=Pp[0].toUpperCase()+Pp.slice(1);Ti(i$,"on"+a$)}Ti(aP,"onAnimationEnd");Ti(oP,"onAnimationIteration");Ti(sP,"onAnimationStart");Ti("dblclick","onDoubleClick");Ti("focusin","onFocus");Ti("focusout","onBlur");Ti(lP,"onTransitionEnd");Wo("onMouseEnter",["mouseout","mouseover"]);Wo("onMouseLeave",["mouseout","mouseover"]);Wo("onPointerEnter",["pointerout","pointerover"]);Wo("onPointerLeave",["pointerout","pointerover"]);Ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ba("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),o$=new Set("cancel close invalid load scroll toggle".split(" ").concat(pl));function gx(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,iT(n,t,void 0,e),e.currentTarget=null}function cP(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;gx(i,s,u),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;gx(i,s,u),a=l}}}if(pf)throw e=Bm,pf=!1,Bm=null,e}function Ie(e,t){var r=t[Ym];r===void 0&&(r=t[Ym]=new Set);var n=e+"__bubble";r.has(n)||(fP(t,e,2,!1),r.add(n))}function Ap(e,t,r){var n=0;t&&(n|=4),fP(r,e,n,t)}var bc="_reactListening"+Math.random().toString(36).slice(2);function Wl(e){if(!e[bc]){e[bc]=!0,g_.forEach(function(r){r!=="selectionchange"&&(o$.has(r)||Ap(r,!1,e),Ap(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bc]||(t[bc]=!0,Ap("selectionchange",!1,t))}}function fP(e,t,r,n){switch(G_(t)){case 1:var i=xT;break;case 4:i=wT;break;default:i=Mg}r=i.bind(null,t,r,e),i=void 0,!Fm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function kp(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=ea(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}M_(function(){var u=a,f=Ng(r),c=[];e:{var h=uP.get(e);if(h!==void 0){var p=Rg,m=e;switch(e){case"keypress":if(Yc(r)===0)break e;case"keydown":case"keyup":p=RT;break;case"focusin":m="focus",p=wp;break;case"focusout":m="blur",p=wp;break;case"beforeblur":case"afterblur":p=wp;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=ox;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=jT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=zT;break;case aP:case oP:case sP:p=AT;break;case lP:p=BT;break;case"scroll":p=ST;break;case"wheel":p=WT;break;case"copy":case"cut":case"paste":p=ET;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=lx}var y=(t&4)!==0,v=!y&&e==="scroll",g=y?h!==null?h+"Capture":null:h;y=[];for(var b=u,w;b!==null;){w=b;var O=w.stateNode;if(w.tag===5&&O!==null&&(w=O,g!==null&&(O=Dl(b,g),O!=null&&y.push(Hl(b,O,w)))),v)break;b=b.return}0<y.length&&(h=new p(h,m,null,r,f),c.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&r!==Lm&&(m=r.relatedTarget||r.fromElement)&&(ea(m)||m[$n]))break e;if((p||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=r.relatedTarget||r.toElement,p=u,m=m?ea(m):null,m!==null&&(v=Ua(m),m!==v||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(y=ox,O="onMouseLeave",g="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(y=lx,O="onPointerLeave",g="onPointerEnter",b="pointer"),v=p==null?h:so(p),w=m==null?h:so(m),h=new y(O,b+"leave",p,r,f),h.target=v,h.relatedTarget=w,O=null,ea(f)===u&&(y=new y(g,b+"enter",m,r,f),y.target=w,y.relatedTarget=v,O=y),v=O,p&&m)t:{for(y=p,g=m,b=0,w=y;w;w=Ya(w))b++;for(w=0,O=g;O;O=Ya(O))w++;for(;0<b-w;)y=Ya(y),b--;for(;0<w-b;)g=Ya(g),w--;for(;b--;){if(y===g||g!==null&&y===g.alternate)break t;y=Ya(y),g=Ya(g)}y=null}else y=null;p!==null&&bx(c,h,p,y,!1),m!==null&&v!==null&&bx(c,v,m,y,!0)}}e:{if(h=u?so(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var x=QT;else if(fx(h))if(eP)x=e$;else{x=JT;var S=YT}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(x=ZT);if(x&&(x=x(e,u))){Z_(c,x,r,f);break e}S&&S(e,h,u),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&$m(h,"number",h.value)}switch(S=u?so(u):window,e){case"focusin":(fx(S)||S.contentEditable==="true")&&(ao=S,qm=u,wl=null);break;case"focusout":wl=qm=ao=null;break;case"mousedown":Km=!0;break;case"contextmenu":case"mouseup":case"dragend":Km=!1,yx(c,r,f);break;case"selectionchange":if(n$)break;case"keydown":case"keyup":yx(c,r,f)}var j;if(Lg)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else io?Y_(e,r)&&(_="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(_="onCompositionStart");_&&(Q_&&r.locale!=="ko"&&(io||_!=="onCompositionStart"?_==="onCompositionEnd"&&io&&(j=X_()):(ci=f,Ig="value"in ci?ci.value:ci.textContent,io=!0)),S=bf(u,_),0<S.length&&(_=new sx(_,e,null,r,f),c.push({event:_,listeners:S}),j?_.data=j:(j=J_(r),j!==null&&(_.data=j)))),(j=qT?KT(e,r):VT(e,r))&&(u=bf(u,"onBeforeInput"),0<u.length&&(f=new sx("onBeforeInput","beforeinput",null,r,f),c.push({event:f,listeners:u}),f.data=j))}cP(c,t)})}function Hl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function bf(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Dl(e,r),a!=null&&n.unshift(Hl(e,a,i)),a=Dl(e,t),a!=null&&n.push(Hl(e,a,i))),e=e.return}return n}function Ya(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function bx(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=Dl(r,a),l!=null&&o.unshift(Hl(r,l,s))):i||(l=Dl(r,a),l!=null&&o.push(Hl(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var s$=/\r\n?/g,l$=/\u0000|\uFFFD/g;function xx(e){return(typeof e=="string"?e:""+e).replace(s$,`
|
||
`).replace(l$,"")}function xc(e,t,r){if(t=xx(t),xx(e)!==t&&r)throw Error(K(425))}function xf(){}var Vm=null,Gm=null;function Xm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qm=typeof setTimeout=="function"?setTimeout:void 0,u$=typeof clearTimeout=="function"?clearTimeout:void 0,wx=typeof Promise=="function"?Promise:void 0,c$=typeof queueMicrotask=="function"?queueMicrotask:typeof wx<"u"?function(e){return wx.resolve(null).then(e).catch(f$)}:Qm;function f$(e){setTimeout(function(){throw e})}function Ep(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Fl(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Fl(t)}function gi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Sx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var _s=Math.random().toString(36).slice(2),Jr="__reactFiber$"+_s,ql="__reactProps$"+_s,$n="__reactContainer$"+_s,Ym="__reactEvents$"+_s,d$="__reactListeners$"+_s,h$="__reactHandles$"+_s;function ea(e){var t=e[Jr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[$n]||r[Jr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Sx(e);e!==null;){if(r=e[Jr])return r;e=Sx(e)}return t}e=r,r=e.parentNode}return null}function Vu(e){return e=e[Jr]||e[$n],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function so(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function Qd(e){return e[ql]||null}var Jm=[],lo=-1;function $i(e){return{current:e}}function Le(e){0>lo||(e.current=Jm[lo],Jm[lo]=null,lo--)}function $e(e,t){lo++,Jm[lo]=e.current,e.current=t}var Ai={},Nt=$i(Ai),Gt=$i(!1),ja=Ai;function Ho(e,t){var r=e.type.contextTypes;if(!r)return Ai;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 Xt(e){return e=e.childContextTypes,e!=null}function wf(){Le(Gt),Le(Nt)}function Ox(e,t,r){if(Nt.current!==Ai)throw Error(K(168));$e(Nt,t),$e(Gt,r)}function dP(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(K(108,YC(e)||"Unknown",i));return He({},r,n)}function Sf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,ja=Nt.current,$e(Nt,e),$e(Gt,Gt.current),!0}function jx(e,t,r){var n=e.stateNode;if(!n)throw Error(K(169));r?(e=dP(e,t,ja),n.__reactInternalMemoizedMergedChildContext=e,Le(Gt),Le(Nt),$e(Nt,e)):Le(Gt),$e(Gt,r)}var vn=null,Yd=!1,Np=!1;function hP(e){vn===null?vn=[e]:vn.push(e)}function p$(e){Yd=!0,hP(e)}function Mi(){if(!Np&&vn!==null){Np=!0;var e=0,t=Pe;try{var r=vn;for(Pe=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}vn=null,Yd=!1}catch(i){throw vn!==null&&(vn=vn.slice(e+1)),L_(Cg,Mi),i}finally{Pe=t,Np=!1}}return null}var uo=[],co=0,Of=null,jf=0,br=[],xr=0,_a=null,Sn=1,On="";function Gi(e,t){uo[co++]=jf,uo[co++]=Of,Of=e,jf=t}function pP(e,t,r){br[xr++]=Sn,br[xr++]=On,br[xr++]=_a,_a=e;var n=Sn;e=On;var i=32-Fr(n)-1;n&=~(1<<i),r+=1;var a=32-Fr(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Sn=1<<32-Fr(t)+i|r<<i|n,On=a+e}else Sn=1<<a|r<<i|n,On=e}function Fg(e){e.return!==null&&(Gi(e,1),pP(e,1,0))}function Bg(e){for(;e===Of;)Of=uo[--co],uo[co]=null,jf=uo[--co],uo[co]=null;for(;e===_a;)_a=br[--xr],br[xr]=null,On=br[--xr],br[xr]=null,Sn=br[--xr],br[xr]=null}var lr=null,sr=null,Fe=!1,Lr=null;function mP(e,t){var r=Sr(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function _x(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lr=e,sr=gi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lr=e,sr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=_a!==null?{id:Sn,overflow:On}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Sr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,lr=e,sr=null,!0):!1;default:return!1}}function Zm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ey(e){if(Fe){var t=sr;if(t){var r=t;if(!_x(e,t)){if(Zm(e))throw Error(K(418));t=gi(r.nextSibling);var n=lr;t&&_x(e,t)?mP(n,r):(e.flags=e.flags&-4097|2,Fe=!1,lr=e)}}else{if(Zm(e))throw Error(K(418));e.flags=e.flags&-4097|2,Fe=!1,lr=e}}}function Px(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lr=e}function wc(e){if(e!==lr)return!1;if(!Fe)return Px(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Xm(e.type,e.memoizedProps)),t&&(t=sr)){if(Zm(e))throw yP(),Error(K(418));for(;t;)mP(e,t),t=gi(t.nextSibling)}if(Px(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){sr=gi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}sr=null}}else sr=lr?gi(e.stateNode.nextSibling):null;return!0}function yP(){for(var e=sr;e;)e=gi(e.nextSibling)}function qo(){sr=lr=null,Fe=!1}function Ug(e){Lr===null?Lr=[e]:Lr.push(e)}var m$=zn.ReactCurrentBatchConfig;function Qs(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(K(309));var n=r.stateNode}if(!n)throw Error(K(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(K(284));if(!r._owner)throw Error(K(290,e))}return e}function Sc(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ax(e){var t=e._init;return t(e._payload)}function vP(e){function t(g,b){if(e){var w=g.deletions;w===null?(g.deletions=[b],g.flags|=16):w.push(b)}}function r(g,b){if(!e)return null;for(;b!==null;)t(g,b),b=b.sibling;return null}function n(g,b){for(g=new Map;b!==null;)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function i(g,b){return g=Si(g,b),g.index=0,g.sibling=null,g}function a(g,b,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<b?(g.flags|=2,b):w):(g.flags|=2,b)):(g.flags|=1048576,b)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,b,w,O){return b===null||b.tag!==6?(b=Dp(w,g.mode,O),b.return=g,b):(b=i(b,w),b.return=g,b)}function l(g,b,w,O){var x=w.type;return x===no?f(g,b,w.props.children,O,w.key):b!==null&&(b.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Xn&&Ax(x)===b.type)?(O=i(b,w.props),O.ref=Qs(g,b,w),O.return=g,O):(O=af(w.type,w.key,w.props,null,g.mode,O),O.ref=Qs(g,b,w),O.return=g,O)}function u(g,b,w,O){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=Lp(w,g.mode,O),b.return=g,b):(b=i(b,w.children||[]),b.return=g,b)}function f(g,b,w,O,x){return b===null||b.tag!==7?(b=xa(w,g.mode,O,x),b.return=g,b):(b=i(b,w),b.return=g,b)}function c(g,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Dp(""+b,g.mode,w),b.return=g,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case fc:return w=af(b.type,b.key,b.props,null,g.mode,w),w.ref=Qs(g,null,b),w.return=g,w;case ro:return b=Lp(b,g.mode,w),b.return=g,b;case Xn:var O=b._init;return c(g,O(b._payload),w)}if(dl(b)||qs(b))return b=xa(b,g.mode,w,null),b.return=g,b;Sc(g,b)}return null}function h(g,b,w,O){var x=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return x!==null?null:s(g,b,""+w,O);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case fc:return w.key===x?l(g,b,w,O):null;case ro:return w.key===x?u(g,b,w,O):null;case Xn:return x=w._init,h(g,b,x(w._payload),O)}if(dl(w)||qs(w))return x!==null?null:f(g,b,w,O,null);Sc(g,w)}return null}function p(g,b,w,O,x){if(typeof O=="string"&&O!==""||typeof O=="number")return g=g.get(w)||null,s(b,g,""+O,x);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case fc:return g=g.get(O.key===null?w:O.key)||null,l(b,g,O,x);case ro:return g=g.get(O.key===null?w:O.key)||null,u(b,g,O,x);case Xn:var S=O._init;return p(g,b,w,S(O._payload),x)}if(dl(O)||qs(O))return g=g.get(w)||null,f(b,g,O,x,null);Sc(b,O)}return null}function m(g,b,w,O){for(var x=null,S=null,j=b,_=b=0,P=null;j!==null&&_<w.length;_++){j.index>_?(P=j,j=null):P=j.sibling;var N=h(g,j,w[_],O);if(N===null){j===null&&(j=P);break}e&&j&&N.alternate===null&&t(g,j),b=a(N,b,_),S===null?x=N:S.sibling=N,S=N,j=P}if(_===w.length)return r(g,j),Fe&&Gi(g,_),x;if(j===null){for(;_<w.length;_++)j=c(g,w[_],O),j!==null&&(b=a(j,b,_),S===null?x=j:S.sibling=j,S=j);return Fe&&Gi(g,_),x}for(j=n(g,j);_<w.length;_++)P=p(j,g,_,w[_],O),P!==null&&(e&&P.alternate!==null&&j.delete(P.key===null?_:P.key),b=a(P,b,_),S===null?x=P:S.sibling=P,S=P);return e&&j.forEach(function($){return t(g,$)}),Fe&&Gi(g,_),x}function y(g,b,w,O){var x=qs(w);if(typeof x!="function")throw Error(K(150));if(w=x.call(w),w==null)throw Error(K(151));for(var S=x=null,j=b,_=b=0,P=null,N=w.next();j!==null&&!N.done;_++,N=w.next()){j.index>_?(P=j,j=null):P=j.sibling;var $=h(g,j,N.value,O);if($===null){j===null&&(j=P);break}e&&j&&$.alternate===null&&t(g,j),b=a($,b,_),S===null?x=$:S.sibling=$,S=$,j=P}if(N.done)return r(g,j),Fe&&Gi(g,_),x;if(j===null){for(;!N.done;_++,N=w.next())N=c(g,N.value,O),N!==null&&(b=a(N,b,_),S===null?x=N:S.sibling=N,S=N);return Fe&&Gi(g,_),x}for(j=n(g,j);!N.done;_++,N=w.next())N=p(j,g,_,N.value,O),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?_:N.key),b=a(N,b,_),S===null?x=N:S.sibling=N,S=N);return e&&j.forEach(function(T){return t(g,T)}),Fe&&Gi(g,_),x}function v(g,b,w,O){if(typeof w=="object"&&w!==null&&w.type===no&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case fc:e:{for(var x=w.key,S=b;S!==null;){if(S.key===x){if(x=w.type,x===no){if(S.tag===7){r(g,S.sibling),b=i(S,w.props.children),b.return=g,g=b;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Xn&&Ax(x)===S.type){r(g,S.sibling),b=i(S,w.props),b.ref=Qs(g,S,w),b.return=g,g=b;break e}r(g,S);break}else t(g,S);S=S.sibling}w.type===no?(b=xa(w.props.children,g.mode,O,w.key),b.return=g,g=b):(O=af(w.type,w.key,w.props,null,g.mode,O),O.ref=Qs(g,b,w),O.return=g,g=O)}return o(g);case ro:e:{for(S=w.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){r(g,b.sibling),b=i(b,w.children||[]),b.return=g,g=b;break e}else{r(g,b);break}else t(g,b);b=b.sibling}b=Lp(w,g.mode,O),b.return=g,g=b}return o(g);case Xn:return S=w._init,v(g,b,S(w._payload),O)}if(dl(w))return m(g,b,w,O);if(qs(w))return y(g,b,w,O);Sc(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(r(g,b.sibling),b=i(b,w),b.return=g,g=b):(r(g,b),b=Dp(w,g.mode,O),b.return=g,g=b),o(g)):r(g,b)}return v}var Ko=vP(!0),gP=vP(!1),_f=$i(null),Pf=null,fo=null,Wg=null;function Hg(){Wg=fo=Pf=null}function qg(e){var t=_f.current;Le(_f),e._currentValue=t}function ty(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function jo(e,t){Pf=e,Wg=fo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kt=!0),e.firstContext=null)}function Pr(e){var t=e._currentValue;if(Wg!==e)if(e={context:e,memoizedValue:t,next:null},fo===null){if(Pf===null)throw Error(K(308));fo=e,Pf.dependencies={lanes:0,firstContext:e}}else fo=fo.next=e;return t}var ta=null;function Kg(e){ta===null?ta=[e]:ta.push(e)}function bP(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Kg(t)):(r.next=i.next,i.next=r),t.interleaved=r,Mn(e,n)}function Mn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Qn=!1;function Vg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function An(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,be&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Mn(e,r)}return i=n.interleaved,i===null?(t.next=t,Kg(n)):(t.next=i.next,i.next=t),n.interleaved=t,Mn(e,r)}function Jc(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Tg(e,r)}}function kx(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Af(e,t,r,n){var i=e.updateQueue;Qn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(a!==null){var c=i.baseState;o=0,f=u=l=null,s=a;do{var h=s.lane,p=s.eventTime;if((n&h)===h){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(h=t,p=r,y.tag){case 1:if(m=y.payload,typeof m=="function"){c=m.call(p,c,h);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,h=typeof m=="function"?m.call(p,c,h):m,h==null)break e;c=He({},c,h);break e;case 2:Qn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=p,l=c):f=f.next=p,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Aa|=o,e.lanes=o,e.memoizedState=c}}function Ex(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(K(191,i));i.call(n)}}}var Gu={},rn=$i(Gu),Kl=$i(Gu),Vl=$i(Gu);function ra(e){if(e===Gu)throw Error(K(174));return e}function Gg(e,t){switch($e(Vl,t),$e(Kl,e),$e(rn,Gu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Im(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Im(t,e)}Le(rn),$e(rn,t)}function Vo(){Le(rn),Le(Kl),Le(Vl)}function wP(e){ra(Vl.current);var t=ra(rn.current),r=Im(t,e.type);t!==r&&($e(Kl,e),$e(rn,r))}function Xg(e){Kl.current===e&&(Le(rn),Le(Kl))}var Ue=$i(0);function kf(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 Cp=[];function Qg(){for(var e=0;e<Cp.length;e++)Cp[e]._workInProgressVersionPrimary=null;Cp.length=0}var Zc=zn.ReactCurrentDispatcher,Tp=zn.ReactCurrentBatchConfig,Pa=0,We=null,ot=null,pt=null,Ef=!1,Sl=!1,Gl=0,y$=0;function Ot(){throw Error(K(321))}function Yg(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Wr(e[r],t[r]))return!1;return!0}function Jg(e,t,r,n,i,a){if(Pa=a,We=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zc.current=e===null||e.memoizedState===null?x$:w$,e=r(n,i),Sl){a=0;do{if(Sl=!1,Gl=0,25<=a)throw Error(K(301));a+=1,pt=ot=null,t.updateQueue=null,Zc.current=S$,e=r(n,i)}while(Sl)}if(Zc.current=Nf,t=ot!==null&&ot.next!==null,Pa=0,pt=ot=We=null,Ef=!1,t)throw Error(K(300));return e}function Zg(){var e=Gl!==0;return Gl=0,e}function Gr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?We.memoizedState=pt=e:pt=pt.next=e,pt}function Ar(){if(ot===null){var e=We.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var t=pt===null?We.memoizedState:pt.next;if(t!==null)pt=t,ot=e;else{if(e===null)throw Error(K(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},pt===null?We.memoizedState=pt=e:pt=pt.next=e}return pt}function Xl(e,t){return typeof t=="function"?t(e):t}function $p(e){var t=Ar(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=ot,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var s=o=null,l=null,u=a;do{var f=u.lane;if((Pa&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=c,o=n):l=l.next=c,We.lanes|=f,Aa|=f}u=u.next}while(u!==null&&u!==a);l===null?o=n:l.next=s,Wr(n,t.memoizedState)||(Kt=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,We.lanes|=a,Aa|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Mp(e){var t=Ar(),r=t.queue;if(r===null)throw Error(K(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Wr(a,t.memoizedState)||(Kt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function SP(){}function OP(e,t){var r=We,n=Ar(),i=t(),a=!Wr(n.memoizedState,i);if(a&&(n.memoizedState=i,Kt=!0),n=n.queue,e0(PP.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||pt!==null&&pt.memoizedState.tag&1){if(r.flags|=2048,Ql(9,_P.bind(null,r,n,i,t),void 0,null),yt===null)throw Error(K(349));Pa&30||jP(r,t,i)}return i}function jP(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=We.updateQueue,t===null?(t={lastEffect:null,stores:null},We.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function _P(e,t,r,n){t.value=r,t.getSnapshot=n,AP(t)&&kP(e)}function PP(e,t,r){return r(function(){AP(t)&&kP(e)})}function AP(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Wr(e,r)}catch{return!0}}function kP(e){var t=Mn(e,1);t!==null&&Br(t,e,1,-1)}function Nx(e){var t=Gr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:e},t.queue=e,e=e.dispatch=b$.bind(null,We,e),[t.memoizedState,e]}function Ql(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=We.updateQueue,t===null?(t={lastEffect:null,stores:null},We.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function EP(){return Ar().memoizedState}function ef(e,t,r,n){var i=Gr();We.flags|=e,i.memoizedState=Ql(1|t,r,void 0,n===void 0?null:n)}function Jd(e,t,r,n){var i=Ar();n=n===void 0?null:n;var a=void 0;if(ot!==null){var o=ot.memoizedState;if(a=o.destroy,n!==null&&Yg(n,o.deps)){i.memoizedState=Ql(t,r,a,n);return}}We.flags|=e,i.memoizedState=Ql(1|t,r,a,n)}function Cx(e,t){return ef(8390656,8,e,t)}function e0(e,t){return Jd(2048,8,e,t)}function NP(e,t){return Jd(4,2,e,t)}function CP(e,t){return Jd(4,4,e,t)}function TP(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $P(e,t,r){return r=r!=null?r.concat([e]):null,Jd(4,4,TP.bind(null,t,e),r)}function t0(){}function MP(e,t){var r=Ar();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Yg(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function IP(e,t){var r=Ar();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Yg(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function RP(e,t,r){return Pa&21?(Wr(r,t)||(r=B_(),We.lanes|=r,Aa|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kt=!0),e.memoizedState=r)}function v$(e,t){var r=Pe;Pe=r!==0&&4>r?r:4,e(!0);var n=Tp.transition;Tp.transition={};try{e(!1),t()}finally{Pe=r,Tp.transition=n}}function DP(){return Ar().memoizedState}function g$(e,t,r){var n=wi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},LP(e))zP(t,r);else if(r=bP(e,t,r,n),r!==null){var i=Dt();Br(r,e,n,i),FP(r,t,n)}}function b$(e,t,r){var n=wi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(LP(e))zP(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,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Wr(s,o)){var l=t.interleaved;l===null?(i.next=i,Kg(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=bP(e,t,i,n),r!==null&&(i=Dt(),Br(r,e,n,i),FP(r,t,n))}}function LP(e){var t=e.alternate;return e===We||t!==null&&t===We}function zP(e,t){Sl=Ef=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function FP(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Tg(e,r)}}var Nf={readContext:Pr,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useInsertionEffect:Ot,useLayoutEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useMutableSource:Ot,useSyncExternalStore:Ot,useId:Ot,unstable_isNewReconciler:!1},x$={readContext:Pr,useCallback:function(e,t){return Gr().memoizedState=[e,t===void 0?null:t],e},useContext:Pr,useEffect:Cx,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ef(4194308,4,TP.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ef(4194308,4,e,t)},useInsertionEffect:function(e,t){return ef(4,2,e,t)},useMemo:function(e,t){var r=Gr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Gr();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=g$.bind(null,We,e),[n.memoizedState,e]},useRef:function(e){var t=Gr();return e={current:e},t.memoizedState=e},useState:Nx,useDebugValue:t0,useDeferredValue:function(e){return Gr().memoizedState=e},useTransition:function(){var e=Nx(!1),t=e[0];return e=v$.bind(null,e[1]),Gr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=We,i=Gr();if(Fe){if(r===void 0)throw Error(K(407));r=r()}else{if(r=t(),yt===null)throw Error(K(349));Pa&30||jP(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Cx(PP.bind(null,n,a,e),[e]),n.flags|=2048,Ql(9,_P.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Gr(),t=yt.identifierPrefix;if(Fe){var r=On,n=Sn;r=(n&~(1<<32-Fr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Gl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=y$++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},w$={readContext:Pr,useCallback:MP,useContext:Pr,useEffect:e0,useImperativeHandle:$P,useInsertionEffect:NP,useLayoutEffect:CP,useMemo:IP,useReducer:$p,useRef:EP,useState:function(){return $p(Xl)},useDebugValue:t0,useDeferredValue:function(e){var t=Ar();return RP(t,ot.memoizedState,e)},useTransition:function(){var e=$p(Xl)[0],t=Ar().memoizedState;return[e,t]},useMutableSource:SP,useSyncExternalStore:OP,useId:DP,unstable_isNewReconciler:!1},S$={readContext:Pr,useCallback:MP,useContext:Pr,useEffect:e0,useImperativeHandle:$P,useInsertionEffect:NP,useLayoutEffect:CP,useMemo:IP,useReducer:Mp,useRef:EP,useState:function(){return Mp(Xl)},useDebugValue:t0,useDeferredValue:function(e){var t=Ar();return ot===null?t.memoizedState=e:RP(t,ot.memoizedState,e)},useTransition:function(){var e=Mp(Xl)[0],t=Ar().memoizedState;return[e,t]},useMutableSource:SP,useSyncExternalStore:OP,useId:DP,unstable_isNewReconciler:!1};function $r(e,t){if(e&&e.defaultProps){t=He({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function ry(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:He({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Zd={isMounted:function(e){return(e=e._reactInternals)?Ua(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Dt(),i=wi(e),a=An(n,i);a.payload=t,r!=null&&(a.callback=r),t=bi(e,a,i),t!==null&&(Br(t,e,i,n),Jc(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Dt(),i=wi(e),a=An(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=bi(e,a,i),t!==null&&(Br(t,e,i,n),Jc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Dt(),n=wi(e),i=An(r,n);i.tag=2,t!=null&&(i.callback=t),t=bi(e,i,n),t!==null&&(Br(t,e,n,r),Jc(t,e,n))}};function Tx(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ul(r,n)||!Ul(i,a):!0}function BP(e,t,r){var n=!1,i=Ai,a=t.contextType;return typeof a=="object"&&a!==null?a=Pr(a):(i=Xt(t)?ja:Nt.current,n=t.contextTypes,a=(n=n!=null)?Ho(e,i):Ai),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zd,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function $x(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Zd.enqueueReplaceState(t,t.state,null)}function ny(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},Vg(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Pr(a):(a=Xt(t)?ja:Nt.current,i.context=Ho(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(ry(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Zd.enqueueReplaceState(i,i.state,null),Af(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Go(e,t){try{var r="",n=t;do r+=QC(n),n=n.return;while(n);var i=r}catch(a){i=`
|
||
Error generating stack: `+a.message+`
|
||
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Ip(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function iy(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var O$=typeof WeakMap=="function"?WeakMap:Map;function UP(e,t,r){r=An(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Tf||(Tf=!0,py=n),iy(e,t)},r}function WP(e,t,r){r=An(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){iy(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){iy(e,t),typeof n!="function"&&(xi===null?xi=new Set([this]):xi.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Mx(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new O$;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=D$.bind(null,e,t,r),t.then(e,e))}function Ix(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Rx(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=An(-1,1),t.tag=2,bi(r,t,1))),r.lanes|=1),e)}var j$=zn.ReactCurrentOwner,Kt=!1;function Tt(e,t,r,n){t.child=e===null?gP(t,null,r,n):Ko(t,e.child,r,n)}function Dx(e,t,r,n,i){r=r.render;var a=t.ref;return jo(t,i),n=Jg(e,t,r,n,a,i),r=Zg(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,In(e,t,i)):(Fe&&r&&Fg(t),t.flags|=1,Tt(e,t,n,i),t.child)}function Lx(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!u0(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,HP(e,t,a,n,i)):(e=af(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:Ul,r(o,n)&&e.ref===t.ref)return In(e,t,i)}return t.flags|=1,e=Si(a,n),e.ref=t.ref,e.return=t,t.child=e}function HP(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Ul(a,n)&&e.ref===t.ref)if(Kt=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(Kt=!0);else return t.lanes=e.lanes,In(e,t,i)}return ay(e,t,r,n,i)}function qP(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(po,ir),ir|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$e(po,ir),ir|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,$e(po,ir),ir|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,$e(po,ir),ir|=n;return Tt(e,t,i,r),t.child}function KP(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ay(e,t,r,n,i){var a=Xt(r)?ja:Nt.current;return a=Ho(t,a),jo(t,i),r=Jg(e,t,r,n,a,i),n=Zg(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,In(e,t,i)):(Fe&&n&&Fg(t),t.flags|=1,Tt(e,t,r,i),t.child)}function zx(e,t,r,n,i){if(Xt(r)){var a=!0;Sf(t)}else a=!1;if(jo(t,i),t.stateNode===null)tf(e,t),BP(t,r,n),ny(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=Pr(u):(u=Xt(r)?ja:Nt.current,u=Ho(t,u));var f=r.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&$x(t,o,n,u),Qn=!1;var h=t.memoizedState;o.state=h,Af(t,n,o,i),l=t.memoizedState,s!==n||h!==l||Gt.current||Qn?(typeof f=="function"&&(ry(t,r,f,n),l=t.memoizedState),(s=Qn||Tx(t,r,s,n,h,l,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,xP(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:$r(t.type,s),o.props=u,c=t.pendingProps,h=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Pr(l):(l=Xt(r)?ja:Nt.current,l=Ho(t,l));var p=r.getDerivedStateFromProps;(f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||h!==l)&&$x(t,o,n,l),Qn=!1,h=t.memoizedState,o.state=h,Af(t,n,o,i);var m=t.memoizedState;s!==c||h!==m||Gt.current||Qn?(typeof p=="function"&&(ry(t,r,p,n),m=t.memoizedState),(u=Qn||Tx(t,r,u,n,h,m,l)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),o.props=n,o.state=m,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return oy(e,t,r,n,a,i)}function oy(e,t,r,n,i,a){KP(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&jx(t,r,!1),In(e,t,a);n=t.stateNode,j$.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Ko(t,e.child,null,a),t.child=Ko(t,null,s,a)):Tt(e,t,s,a),t.memoizedState=n.state,i&&jx(t,r,!0),t.child}function VP(e){var t=e.stateNode;t.pendingContext?Ox(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ox(e,t.context,!1),Gg(e,t.containerInfo)}function Fx(e,t,r,n,i){return qo(),Ug(i),t.flags|=256,Tt(e,t,r,n),t.child}var sy={dehydrated:null,treeContext:null,retryLane:0};function ly(e){return{baseLanes:e,cachePool:null,transitions:null}}function GP(e,t,r){var n=t.pendingProps,i=Ue.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$e(Ue,i&1),e===null)return ey(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=rh(o,n,0,null),e=xa(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ly(r),t.memoizedState=sy,e):r0(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return _$(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Si(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Si(s,a):(a=xa(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?ly(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=sy,n}return a=e.child,e=a.sibling,n=Si(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function r0(e,t){return t=rh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Oc(e,t,r,n){return n!==null&&Ug(n),Ko(t,e.child,null,r),e=r0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _$(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=Ip(Error(K(422))),Oc(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=rh({mode:"visible",children:n.children},i,0,null),a=xa(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Ko(t,e.child,null,o),t.child.memoizedState=ly(o),t.memoizedState=sy,a);if(!(t.mode&1))return Oc(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(K(419)),n=Ip(a,n,void 0),Oc(e,t,o,n)}if(s=(o&e.childLanes)!==0,Kt||s){if(n=yt,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Mn(e,i),Br(n,e,i,-1))}return l0(),n=Ip(Error(K(421))),Oc(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=L$.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,sr=gi(i.nextSibling),lr=t,Fe=!0,Lr=null,e!==null&&(br[xr++]=Sn,br[xr++]=On,br[xr++]=_a,Sn=e.id,On=e.overflow,_a=t),t=r0(t,n.children),t.flags|=4096,t)}function Bx(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ty(e.return,t,r)}function Rp(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function XP(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Tt(e,t,n.children,r),n=Ue.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bx(e,r,t);else if(e.tag===19)Bx(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if($e(Ue,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&kf(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Rp(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&kf(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Rp(t,!0,r,null,a);break;case"together":Rp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function tf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function In(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Aa|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,r=Si(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Si(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function P$(e,t,r){switch(t.tag){case 3:VP(t),qo();break;case 5:wP(t);break;case 1:Xt(t.type)&&Sf(t);break;case 4:Gg(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;$e(_f,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?($e(Ue,Ue.current&1),t.flags|=128,null):r&t.child.childLanes?GP(e,t,r):($e(Ue,Ue.current&1),e=In(e,t,r),e!==null?e.sibling:null);$e(Ue,Ue.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return XP(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$e(Ue,Ue.current),n)break;return null;case 22:case 23:return t.lanes=0,qP(e,t,r)}return In(e,t,r)}var QP,uy,YP,JP;QP=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};uy=function(){};YP=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ra(rn.current);var a=null;switch(r){case"input":i=Cm(e,i),n=Cm(e,n),a=[];break;case"select":i=He({},i,{value:void 0}),n=He({},n,{value:void 0}),a=[];break;case"textarea":i=Mm(e,i),n=Mm(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=xf)}Rm(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Il.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Il.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ie("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};JP=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ys(e,t){if(!Fe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function jt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function A$(e,t,r){var n=t.pendingProps;switch(Bg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(t),null;case 1:return Xt(t.type)&&wf(),jt(t),null;case 3:return n=t.stateNode,Vo(),Le(Gt),Le(Nt),Qg(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(wc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Lr!==null&&(vy(Lr),Lr=null))),uy(e,t),jt(t),null;case 5:Xg(t);var i=ra(Vl.current);if(r=t.type,e!==null&&t.stateNode!=null)YP(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(K(166));return jt(t),null}if(e=ra(rn.current),wc(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Jr]=t,n[ql]=a,e=(t.mode&1)!==0,r){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(i=0;i<pl.length;i++)Ie(pl[i],n);break;case"source":Ie("error",n);break;case"img":case"image":case"link":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"input":Qb(n,a),Ie("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ie("invalid",n);break;case"textarea":Jb(n,a),Ie("invalid",n)}Rm(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&xc(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&xc(n.textContent,s,e),i=["children",""+s]):Il.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Ie("scroll",n)}switch(r){case"input":dc(n),Yb(n,a,!0);break;case"textarea":dc(n),Zb(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=xf)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=P_(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/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[Jr]=t,e[ql]=n,QP(e,t,!1,!1),t.stateNode=e;e:{switch(o=Dm(r,n),r){case"dialog":Ie("cancel",e),Ie("close",e),i=n;break;case"iframe":case"object":case"embed":Ie("load",e),i=n;break;case"video":case"audio":for(i=0;i<pl.length;i++)Ie(pl[i],e);i=n;break;case"source":Ie("error",e),i=n;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),i=n;break;case"details":Ie("toggle",e),i=n;break;case"input":Qb(e,n),i=Cm(e,n),Ie("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=He({},n,{value:void 0}),Ie("invalid",e);break;case"textarea":Jb(e,n),i=Mm(e,n),Ie("invalid",e);break;default:i=n}Rm(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?E_(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&A_(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Rl(e,l):typeof l=="number"&&Rl(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Il.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Ie("scroll",e):l!=null&&Pg(e,a,l,o))}switch(r){case"input":dc(e),Yb(e,n,!1);break;case"textarea":dc(e),Zb(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Pi(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?xo(e,!!n.multiple,a,!1):n.defaultValue!=null&&xo(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=xf)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return jt(t),null;case 6:if(e&&t.stateNode!=null)JP(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(K(166));if(r=ra(Vl.current),ra(rn.current),wc(t)){if(n=t.stateNode,r=t.memoizedProps,n[Jr]=t,(a=n.nodeValue!==r)&&(e=lr,e!==null))switch(e.tag){case 3:xc(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xc(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Jr]=t,t.stateNode=n}return jt(t),null;case 13:if(Le(Ue),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&sr!==null&&t.mode&1&&!(t.flags&128))yP(),qo(),t.flags|=98560,a=!1;else if(a=wc(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(K(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(K(317));a[Jr]=t}else qo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jt(t),a=!1}else Lr!==null&&(vy(Lr),Lr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ue.current&1?ut===0&&(ut=3):l0())),t.updateQueue!==null&&(t.flags|=4),jt(t),null);case 4:return Vo(),uy(e,t),e===null&&Wl(t.stateNode.containerInfo),jt(t),null;case 10:return qg(t.type._context),jt(t),null;case 17:return Xt(t.type)&&wf(),jt(t),null;case 19:if(Le(Ue),a=t.memoizedState,a===null)return jt(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)Ys(a,!1);else{if(ut!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=kf(e),o!==null){for(t.flags|=128,Ys(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return $e(Ue,Ue.current&1|2),t.child}e=e.sibling}a.tail!==null&&Xe()>Xo&&(t.flags|=128,n=!0,Ys(a,!1),t.lanes=4194304)}else{if(!n)if(e=kf(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ys(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Fe)return jt(t),null}else 2*Xe()-a.renderingStartTime>Xo&&r!==1073741824&&(t.flags|=128,n=!0,Ys(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=Xe(),t.sibling=null,r=Ue.current,$e(Ue,n?r&1|2:r&1),t):(jt(t),null);case 22:case 23:return s0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ir&1073741824&&(jt(t),t.subtreeFlags&6&&(t.flags|=8192)):jt(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function k$(e,t){switch(Bg(t),t.tag){case 1:return Xt(t.type)&&wf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vo(),Le(Gt),Le(Nt),Qg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xg(t),null;case 13:if(Le(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));qo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(Ue),null;case 4:return Vo(),null;case 10:return qg(t.type._context),null;case 22:case 23:return s0(),null;case 24:return null;default:return null}}var jc=!1,At=!1,E$=typeof WeakSet=="function"?WeakSet:Set,Y=null;function ho(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ve(e,t,n)}else r.current=null}function cy(e,t,r){try{r()}catch(n){Ve(e,t,n)}}var Ux=!1;function N$(e,t){if(Vm=vf,e=nP(),zg(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,s=-1,l=-1,u=0,f=0,c=e,h=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(s=o+i),c!==a||n!==0&&c.nodeType!==3||(l=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)h=c,c=p;for(;;){if(c===e)break t;if(h===r&&++u===i&&(s=o),h===a&&++f===n&&(l=o),(p=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Gm={focusedElem:e,selectionRange:r},vf=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:$r(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(O){Ve(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return m=Ux,Ux=!1,m}function Ol(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&&cy(t,r,a)}i=i.next}while(i!==n)}}function eh(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 fy(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 ZP(e){var t=e.alternate;t!==null&&(e.alternate=null,ZP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jr],delete t[ql],delete t[Ym],delete t[d$],delete t[h$])),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 eA(e){return e.tag===5||e.tag===3||e.tag===4}function Wx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eA(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 dy(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=xf));else if(n!==4&&(e=e.child,e!==null))for(dy(e,t,r),e=e.sibling;e!==null;)dy(e,t,r),e=e.sibling}function hy(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(hy(e,t,r),e=e.sibling;e!==null;)hy(e,t,r),e=e.sibling}var xt=null,Rr=!1;function qn(e,t,r){for(r=r.child;r!==null;)tA(e,t,r),r=r.sibling}function tA(e,t,r){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Kd,r)}catch{}switch(r.tag){case 5:At||ho(r,t);case 6:var n=xt,i=Rr;xt=null,qn(e,t,r),xt=n,Rr=i,xt!==null&&(Rr?(e=xt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):xt.removeChild(r.stateNode));break;case 18:xt!==null&&(Rr?(e=xt,r=r.stateNode,e.nodeType===8?Ep(e.parentNode,r):e.nodeType===1&&Ep(e,r),Fl(e)):Ep(xt,r.stateNode));break;case 4:n=xt,i=Rr,xt=r.stateNode.containerInfo,Rr=!0,qn(e,t,r),xt=n,Rr=i;break;case 0:case 11:case 14:case 15:if(!At&&(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)&&cy(r,t,o),i=i.next}while(i!==n)}qn(e,t,r);break;case 1:if(!At&&(ho(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ve(r,t,s)}qn(e,t,r);break;case 21:qn(e,t,r);break;case 22:r.mode&1?(At=(n=At)||r.memoizedState!==null,qn(e,t,r),At=n):qn(e,t,r);break;default:qn(e,t,r)}}function Hx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new E$),t.forEach(function(n){var i=z$.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Cr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:xt=s.stateNode,Rr=!1;break e;case 3:xt=s.stateNode.containerInfo,Rr=!0;break e;case 4:xt=s.stateNode.containerInfo,Rr=!0;break e}s=s.return}if(xt===null)throw Error(K(160));tA(a,o,i),xt=null,Rr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ve(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)rA(t,e),t=t.sibling}function rA(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Cr(t,e),Kr(e),n&4){try{Ol(3,e,e.return),eh(3,e)}catch(y){Ve(e,e.return,y)}try{Ol(5,e,e.return)}catch(y){Ve(e,e.return,y)}}break;case 1:Cr(t,e),Kr(e),n&512&&r!==null&&ho(r,r.return);break;case 5:if(Cr(t,e),Kr(e),n&512&&r!==null&&ho(r,r.return),e.flags&32){var i=e.stateNode;try{Rl(i,"")}catch(y){Ve(e,e.return,y)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&j_(i,a),Dm(s,o);var u=Dm(s,a);for(o=0;o<l.length;o+=2){var f=l[o],c=l[o+1];f==="style"?E_(i,c):f==="dangerouslySetInnerHTML"?A_(i,c):f==="children"?Rl(i,c):Pg(i,f,c,u)}switch(s){case"input":Tm(i,a);break;case"textarea":__(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?xo(i,!!a.multiple,p,!1):h!==!!a.multiple&&(a.defaultValue!=null?xo(i,!!a.multiple,a.defaultValue,!0):xo(i,!!a.multiple,a.multiple?[]:"",!1))}i[ql]=a}catch(y){Ve(e,e.return,y)}}break;case 6:if(Cr(t,e),Kr(e),n&4){if(e.stateNode===null)throw Error(K(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(y){Ve(e,e.return,y)}}break;case 3:if(Cr(t,e),Kr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Fl(t.containerInfo)}catch(y){Ve(e,e.return,y)}break;case 4:Cr(t,e),Kr(e);break;case 13:Cr(t,e),Kr(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(a0=Xe())),n&4&&Hx(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(At=(u=At)||f,Cr(t,e),At=u):Cr(t,e),Kr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(Y=e,f=e.child;f!==null;){for(c=Y=f;Y!==null;){switch(h=Y,p=h.child,h.tag){case 0:case 11:case 14:case 15:Ol(4,h,h.return);break;case 1:ho(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Ve(n,r,y)}}break;case 5:ho(h,h.return);break;case 22:if(h.memoizedState!==null){Kx(c);continue}}p!==null?(p.return=h,Y=p):Kx(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=c.stateNode,l=c.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=k_("display",o))}catch(y){Ve(e,e.return,y)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){Ve(e,e.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Cr(t,e),Kr(e),n&4&&Hx(e);break;case 21:break;default:Cr(t,e),Kr(e)}}function Kr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(eA(r)){var n=r;break e}r=r.return}throw Error(K(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Rl(i,""),n.flags&=-33);var a=Wx(e);hy(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=Wx(e);dy(e,s,o);break;default:throw Error(K(161))}}catch(l){Ve(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function C$(e,t,r){Y=e,nA(e)}function nA(e,t,r){for(var n=(e.mode&1)!==0;Y!==null;){var i=Y,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||jc;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||At;s=jc;var u=At;if(jc=o,(At=l)&&!u)for(Y=i;Y!==null;)o=Y,l=o.child,o.tag===22&&o.memoizedState!==null?Vx(i):l!==null?(l.return=o,Y=l):Vx(i);for(;a!==null;)Y=a,nA(a),a=a.sibling;Y=i,jc=s,At=u}qx(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,Y=a):qx(e)}}function qx(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:At||eh(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!At)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:$r(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Ex(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Ex(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Fl(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}At||t.flags&512&&fy(t)}catch(h){Ve(t,t.return,h)}}if(t===e){Y=null;break}if(r=t.sibling,r!==null){r.return=t.return,Y=r;break}Y=t.return}}function Kx(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Y=r;break}Y=t.return}}function Vx(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{eh(4,t)}catch(l){Ve(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Ve(t,i,l)}}var a=t.return;try{fy(t)}catch(l){Ve(t,a,l)}break;case 5:var o=t.return;try{fy(t)}catch(l){Ve(t,o,l)}}}catch(l){Ve(t,t.return,l)}if(t===e){Y=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Y=s;break}Y=t.return}}var T$=Math.ceil,Cf=zn.ReactCurrentDispatcher,n0=zn.ReactCurrentOwner,jr=zn.ReactCurrentBatchConfig,be=0,yt=null,Ze=null,wt=0,ir=0,po=$i(0),ut=0,Yl=null,Aa=0,th=0,i0=0,jl=null,Ht=null,a0=0,Xo=1/0,mn=null,Tf=!1,py=null,xi=null,_c=!1,fi=null,$f=0,_l=0,my=null,rf=-1,nf=0;function Dt(){return be&6?Xe():rf!==-1?rf:rf=Xe()}function wi(e){return e.mode&1?be&2&&wt!==0?wt&-wt:m$.transition!==null?(nf===0&&(nf=B_()),nf):(e=Pe,e!==0||(e=window.event,e=e===void 0?16:G_(e.type)),e):1}function Br(e,t,r,n){if(50<_l)throw _l=0,my=null,Error(K(185));qu(e,r,n),(!(be&2)||e!==yt)&&(e===yt&&(!(be&2)&&(th|=r),ut===4&&Zn(e,wt)),Qt(e,n),r===1&&be===0&&!(t.mode&1)&&(Xo=Xe()+500,Yd&&Mi()))}function Qt(e,t){var r=e.callbackNode;mT(e,t);var n=yf(e,e===yt?wt:0);if(n===0)r!==null&&rx(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&rx(r),t===1)e.tag===0?p$(Gx.bind(null,e)):hP(Gx.bind(null,e)),c$(function(){!(be&6)&&Mi()}),r=null;else{switch(U_(n)){case 1:r=Cg;break;case 4:r=z_;break;case 16:r=mf;break;case 536870912:r=F_;break;default:r=mf}r=fA(r,iA.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function iA(e,t){if(rf=-1,nf=0,be&6)throw Error(K(327));var r=e.callbackNode;if(_o()&&e.callbackNode!==r)return null;var n=yf(e,e===yt?wt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Mf(e,n);else{t=n;var i=be;be|=2;var a=oA();(yt!==e||wt!==t)&&(mn=null,Xo=Xe()+500,ba(e,t));do try{I$();break}catch(s){aA(e,s)}while(!0);Hg(),Cf.current=a,be=i,Ze!==null?t=0:(yt=null,wt=0,t=ut)}if(t!==0){if(t===2&&(i=Um(e),i!==0&&(n=i,t=yy(e,i))),t===1)throw r=Yl,ba(e,0),Zn(e,n),Qt(e,Xe()),r;if(t===6)Zn(e,n);else{if(i=e.current.alternate,!(n&30)&&!$$(i)&&(t=Mf(e,n),t===2&&(a=Um(e),a!==0&&(n=a,t=yy(e,a))),t===1))throw r=Yl,ba(e,0),Zn(e,n),Qt(e,Xe()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(K(345));case 2:Xi(e,Ht,mn);break;case 3:if(Zn(e,n),(n&130023424)===n&&(t=a0+500-Xe(),10<t)){if(yf(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Dt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Qm(Xi.bind(null,e,Ht,mn),t);break}Xi(e,Ht,mn);break;case 4:if(Zn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Fr(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=Xe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*T$(n/1960))-n,10<n){e.timeoutHandle=Qm(Xi.bind(null,e,Ht,mn),n);break}Xi(e,Ht,mn);break;case 5:Xi(e,Ht,mn);break;default:throw Error(K(329))}}}return Qt(e,Xe()),e.callbackNode===r?iA.bind(null,e):null}function yy(e,t){var r=jl;return e.current.memoizedState.isDehydrated&&(ba(e,t).flags|=256),e=Mf(e,t),e!==2&&(t=Ht,Ht=r,t!==null&&vy(t)),e}function vy(e){Ht===null?Ht=e:Ht.push.apply(Ht,e)}function $$(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!Wr(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Zn(e,t){for(t&=~i0,t&=~th,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Fr(t),n=1<<r;e[r]=-1,t&=~n}}function Gx(e){if(be&6)throw Error(K(327));_o();var t=yf(e,0);if(!(t&1))return Qt(e,Xe()),null;var r=Mf(e,t);if(e.tag!==0&&r===2){var n=Um(e);n!==0&&(t=n,r=yy(e,n))}if(r===1)throw r=Yl,ba(e,0),Zn(e,t),Qt(e,Xe()),r;if(r===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xi(e,Ht,mn),Qt(e,Xe()),null}function o0(e,t){var r=be;be|=1;try{return e(t)}finally{be=r,be===0&&(Xo=Xe()+500,Yd&&Mi())}}function ka(e){fi!==null&&fi.tag===0&&!(be&6)&&_o();var t=be;be|=1;var r=jr.transition,n=Pe;try{if(jr.transition=null,Pe=1,e)return e()}finally{Pe=n,jr.transition=r,be=t,!(be&6)&&Mi()}}function s0(){ir=po.current,Le(po)}function ba(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,u$(r)),Ze!==null)for(r=Ze.return;r!==null;){var n=r;switch(Bg(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&wf();break;case 3:Vo(),Le(Gt),Le(Nt),Qg();break;case 5:Xg(n);break;case 4:Vo();break;case 13:Le(Ue);break;case 19:Le(Ue);break;case 10:qg(n.type._context);break;case 22:case 23:s0()}r=r.return}if(yt=e,Ze=e=Si(e.current,null),wt=ir=t,ut=0,Yl=null,i0=th=Aa=0,Ht=jl=null,ta!==null){for(t=0;t<ta.length;t++)if(r=ta[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}ta=null}return e}function aA(e,t){do{var r=Ze;try{if(Hg(),Zc.current=Nf,Ef){for(var n=We.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ef=!1}if(Pa=0,pt=ot=We=null,Sl=!1,Gl=0,n0.current=null,r===null||r.return===null){ut=1,Yl=t,Ze=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=wt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=Ix(o);if(p!==null){p.flags&=-257,Rx(p,o,s,a,t),p.mode&1&&Mx(a,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}else{if(!(t&1)){Mx(a,u,t),l0();break e}l=Error(K(426))}}else if(Fe&&s.mode&1){var v=Ix(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),Rx(v,o,s,a,t),Ug(Go(l,s));break e}}a=l=Go(l,s),ut!==4&&(ut=2),jl===null?jl=[a]:jl.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=UP(a,l,t);kx(a,g);break e;case 1:s=l;var b=a.type,w=a.stateNode;if(!(a.flags&128)&&(typeof b.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(xi===null||!xi.has(w)))){a.flags|=65536,t&=-t,a.lanes|=t;var O=WP(a,s,t);kx(a,O);break e}}a=a.return}while(a!==null)}lA(r)}catch(x){t=x,Ze===r&&r!==null&&(Ze=r=r.return);continue}break}while(!0)}function oA(){var e=Cf.current;return Cf.current=Nf,e===null?Nf:e}function l0(){(ut===0||ut===3||ut===2)&&(ut=4),yt===null||!(Aa&268435455)&&!(th&268435455)||Zn(yt,wt)}function Mf(e,t){var r=be;be|=2;var n=oA();(yt!==e||wt!==t)&&(mn=null,ba(e,t));do try{M$();break}catch(i){aA(e,i)}while(!0);if(Hg(),be=r,Cf.current=n,Ze!==null)throw Error(K(261));return yt=null,wt=0,ut}function M$(){for(;Ze!==null;)sA(Ze)}function I$(){for(;Ze!==null&&!oT();)sA(Ze)}function sA(e){var t=cA(e.alternate,e,ir);e.memoizedProps=e.pendingProps,t===null?lA(e):Ze=t,n0.current=null}function lA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=k$(r,t),r!==null){r.flags&=32767,Ze=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ut=6,Ze=null;return}}else if(r=A$(r,t,ir),r!==null){Ze=r;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);ut===0&&(ut=5)}function Xi(e,t,r){var n=Pe,i=jr.transition;try{jr.transition=null,Pe=1,R$(e,t,r,n)}finally{jr.transition=i,Pe=n}return null}function R$(e,t,r,n){do _o();while(fi!==null);if(be&6)throw Error(K(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(K(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(yT(e,a),e===yt&&(Ze=yt=null,wt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||_c||(_c=!0,fA(mf,function(){return _o(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=jr.transition,jr.transition=null;var o=Pe;Pe=1;var s=be;be|=4,n0.current=null,N$(e,r),rA(r,e),r$(Gm),vf=!!Vm,Gm=Vm=null,e.current=r,C$(r),sT(),be=s,Pe=o,jr.transition=a}else e.current=r;if(_c&&(_c=!1,fi=e,$f=i),a=e.pendingLanes,a===0&&(xi=null),cT(r.stateNode),Qt(e,Xe()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Tf)throw Tf=!1,e=py,py=null,e;return $f&1&&e.tag!==0&&_o(),a=e.pendingLanes,a&1?e===my?_l++:(_l=0,my=e):_l=0,Mi(),null}function _o(){if(fi!==null){var e=U_($f),t=jr.transition,r=Pe;try{if(jr.transition=null,Pe=16>e?16:e,fi===null)var n=!1;else{if(e=fi,fi=null,$f=0,be&6)throw Error(K(331));var i=be;for(be|=4,Y=e.current;Y!==null;){var a=Y,o=a.child;if(Y.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(Y=u;Y!==null;){var f=Y;switch(f.tag){case 0:case 11:case 15:Ol(8,f,a)}var c=f.child;if(c!==null)c.return=f,Y=c;else for(;Y!==null;){f=Y;var h=f.sibling,p=f.return;if(ZP(f),f===u){Y=null;break}if(h!==null){h.return=p,Y=h;break}Y=p}}}var m=a.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(y!==null)}}Y=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,Y=o;else e:for(;Y!==null;){if(a=Y,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Ol(9,a,a.return)}var g=a.sibling;if(g!==null){g.return=a.return,Y=g;break e}Y=a.return}}var b=e.current;for(Y=b;Y!==null;){o=Y;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,Y=w;else e:for(o=b;Y!==null;){if(s=Y,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:eh(9,s)}}catch(x){Ve(s,s.return,x)}if(s===o){Y=null;break e}var O=s.sibling;if(O!==null){O.return=s.return,Y=O;break e}Y=s.return}}if(be=i,Mi(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Kd,e)}catch{}n=!0}return n}finally{Pe=r,jr.transition=t}}return!1}function Xx(e,t,r){t=Go(r,t),t=UP(e,t,1),e=bi(e,t,1),t=Dt(),e!==null&&(qu(e,1,t),Qt(e,t))}function Ve(e,t,r){if(e.tag===3)Xx(e,e,r);else for(;t!==null;){if(t.tag===3){Xx(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(xi===null||!xi.has(n))){e=Go(r,e),e=WP(t,e,1),t=bi(t,e,1),e=Dt(),t!==null&&(qu(t,1,e),Qt(t,e));break}}t=t.return}}function D$(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Dt(),e.pingedLanes|=e.suspendedLanes&r,yt===e&&(wt&r)===r&&(ut===4||ut===3&&(wt&130023424)===wt&&500>Xe()-a0?ba(e,0):i0|=r),Qt(e,t)}function uA(e,t){t===0&&(e.mode&1?(t=mc,mc<<=1,!(mc&130023424)&&(mc=4194304)):t=1);var r=Dt();e=Mn(e,t),e!==null&&(qu(e,t,r),Qt(e,r))}function L$(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),uA(e,r)}function z$(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(K(314))}n!==null&&n.delete(t),uA(e,r)}var cA;cA=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)Kt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Kt=!1,P$(e,t,r);Kt=!!(e.flags&131072)}else Kt=!1,Fe&&t.flags&1048576&&pP(t,jf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;tf(e,t),e=t.pendingProps;var i=Ho(t,Nt.current);jo(t,r),i=Jg(null,t,n,e,i,r);var a=Zg();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,Xt(n)?(a=!0,Sf(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Vg(t),i.updater=Zd,t.stateNode=i,i._reactInternals=t,ny(t,n,e,r),t=oy(null,t,n,!0,a,r)):(t.tag=0,Fe&&a&&Fg(t),Tt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(tf(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=B$(n),e=$r(n,e),i){case 0:t=ay(null,t,n,e,r);break e;case 1:t=zx(null,t,n,e,r);break e;case 11:t=Dx(null,t,n,e,r);break e;case 14:t=Lx(null,t,n,$r(n.type,e),r);break e}throw Error(K(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),ay(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),zx(e,t,n,i,r);case 3:e:{if(VP(t),e===null)throw Error(K(387));n=t.pendingProps,a=t.memoizedState,i=a.element,xP(e,t),Af(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=Go(Error(K(423)),t),t=Fx(e,t,n,r,i);break e}else if(n!==i){i=Go(Error(K(424)),t),t=Fx(e,t,n,r,i);break e}else for(sr=gi(t.stateNode.containerInfo.firstChild),lr=t,Fe=!0,Lr=null,r=gP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qo(),n===i){t=In(e,t,r);break e}Tt(e,t,n,r)}t=t.child}return t;case 5:return wP(t),e===null&&ey(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Xm(n,i)?o=null:a!==null&&Xm(n,a)&&(t.flags|=32),KP(e,t),Tt(e,t,o,r),t.child;case 6:return e===null&&ey(t),null;case 13:return GP(e,t,r);case 4:return Gg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ko(t,null,n,r):Tt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),Dx(e,t,n,i,r);case 7:return Tt(e,t,t.pendingProps,r),t.child;case 8:return Tt(e,t,t.pendingProps.children,r),t.child;case 12:return Tt(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,$e(_f,n._currentValue),n._currentValue=o,a!==null)if(Wr(a.value,o)){if(a.children===i.children&&!Gt.current){t=In(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=An(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),ty(a.return,r,t),s.lanes|=r;break}l=l.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(K(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),ty(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}Tt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,jo(t,r),i=Pr(i),n=n(i),t.flags|=1,Tt(e,t,n,r),t.child;case 14:return n=t.type,i=$r(n,t.pendingProps),i=$r(n.type,i),Lx(e,t,n,i,r);case 15:return HP(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:$r(n,i),tf(e,t),t.tag=1,Xt(n)?(e=!0,Sf(t)):e=!1,jo(t,r),BP(t,n,i),ny(t,n,i,r),oy(null,t,n,!0,e,r);case 19:return XP(e,t,r);case 22:return qP(e,t,r)}throw Error(K(156,t.tag))};function fA(e,t){return L_(e,t)}function F$(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 Sr(e,t,r,n){return new F$(e,t,r,n)}function u0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function B$(e){if(typeof e=="function")return u0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kg)return 11;if(e===Eg)return 14}return 2}function Si(e,t){var r=e.alternate;return r===null?(r=Sr(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 af(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")u0(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case no:return xa(r.children,i,a,t);case Ag:o=8,i|=8;break;case Am:return e=Sr(12,r,t,i|2),e.elementType=Am,e.lanes=a,e;case km:return e=Sr(13,r,t,i),e.elementType=km,e.lanes=a,e;case Em:return e=Sr(19,r,t,i),e.elementType=Em,e.lanes=a,e;case w_:return rh(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case b_:o=10;break e;case x_:o=9;break e;case kg:o=11;break e;case Eg:o=14;break e;case Xn:o=16,n=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=Sr(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function xa(e,t,r,n){return e=Sr(7,e,n,t),e.lanes=r,e}function rh(e,t,r,n){return e=Sr(22,e,n,t),e.elementType=w_,e.lanes=r,e.stateNode={isHidden:!1},e}function Dp(e,t,r){return e=Sr(6,e,null,t),e.lanes=r,e}function Lp(e,t,r){return t=Sr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function U$(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=gp(0),this.expirationTimes=gp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gp(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function c0(e,t,r,n,i,a,o,s,l){return e=new U$(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Sr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vg(a),e}function W$(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ro,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function dA(e){if(!e)return Ai;e=e._reactInternals;e:{if(Ua(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var r=e.type;if(Xt(r))return dP(e,r,t)}return t}function hA(e,t,r,n,i,a,o,s,l){return e=c0(r,n,!0,e,i,a,o,s,l),e.context=dA(null),r=e.current,n=Dt(),i=wi(r),a=An(n,i),a.callback=t??null,bi(r,a,i),e.current.lanes=i,qu(e,i,n),Qt(e,n),e}function nh(e,t,r,n){var i=t.current,a=Dt(),o=wi(i);return r=dA(r),t.context===null?t.context=r:t.pendingContext=r,t=An(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=bi(i,t,o),e!==null&&(Br(e,i,o,a),Jc(e,i,o)),o}function If(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Qx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function f0(e,t){Qx(e,t),(e=e.alternate)&&Qx(e,t)}function H$(){return null}var pA=typeof reportError=="function"?reportError:function(e){console.error(e)};function d0(e){this._internalRoot=e}ih.prototype.render=d0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));nh(e,t,null,null)};ih.prototype.unmount=d0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ka(function(){nh(null,e,null,null)}),t[$n]=null}};function ih(e){this._internalRoot=e}ih.prototype.unstable_scheduleHydration=function(e){if(e){var t=q_();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Jn.length&&t!==0&&t<Jn[r].priority;r++);Jn.splice(r,0,e),r===0&&V_(e)}};function h0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ah(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Yx(){}function q$(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var u=If(o);a.call(u)}}var o=hA(t,n,e,0,null,!1,!1,"",Yx);return e._reactRootContainer=o,e[$n]=o.current,Wl(e.nodeType===8?e.parentNode:e),ka(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=If(l);s.call(u)}}var l=c0(e,0,!1,null,null,!1,!1,"",Yx);return e._reactRootContainer=l,e[$n]=l.current,Wl(e.nodeType===8?e.parentNode:e),ka(function(){nh(t,l,r,n)}),l}function oh(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=If(o);s.call(l)}}nh(t,o,e,i)}else o=q$(r,t,e,i,n);return If(o)}W_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=hl(t.pendingLanes);r!==0&&(Tg(t,r|1),Qt(t,Xe()),!(be&6)&&(Xo=Xe()+500,Mi()))}break;case 13:ka(function(){var n=Mn(e,1);if(n!==null){var i=Dt();Br(n,e,1,i)}}),f0(e,1)}};$g=function(e){if(e.tag===13){var t=Mn(e,134217728);if(t!==null){var r=Dt();Br(t,e,134217728,r)}f0(e,134217728)}};H_=function(e){if(e.tag===13){var t=wi(e),r=Mn(e,t);if(r!==null){var n=Dt();Br(r,e,t,n)}f0(e,t)}};q_=function(){return Pe};K_=function(e,t){var r=Pe;try{return Pe=e,t()}finally{Pe=r}};zm=function(e,t,r){switch(t){case"input":if(Tm(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Qd(n);if(!i)throw Error(K(90));O_(n),Tm(n,i)}}}break;case"textarea":__(e,r);break;case"select":t=r.value,t!=null&&xo(e,!!r.multiple,t,!1)}};T_=o0;$_=ka;var K$={usingClientEntryPoint:!1,Events:[Vu,so,Qd,N_,C_,o0]},Js={findFiberByHostInstance:ea,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},V$={bundleType:Js.bundleType,version:Js.version,rendererPackageName:Js.rendererPackageName,rendererConfig:Js.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=R_(e),e===null?null:e.stateNode},findFiberByHostInstance:Js.findFiberByHostInstance||H$,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pc.isDisabled&&Pc.supportsFiber)try{Kd=Pc.inject(V$),tn=Pc}catch{}}fr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K$;fr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h0(t))throw Error(K(200));return W$(e,t,null,r)};fr.createRoot=function(e,t){if(!h0(e))throw Error(K(299));var r=!1,n="",i=pA;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=c0(e,1,!1,null,null,r,!1,n,i),e[$n]=t.current,Wl(e.nodeType===8?e.parentNode:e),new d0(t)};fr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=R_(t),e=e===null?null:e.stateNode,e};fr.flushSync=function(e){return ka(e)};fr.hydrate=function(e,t,r){if(!ah(t))throw Error(K(200));return oh(null,e,t,!0,r)};fr.hydrateRoot=function(e,t,r){if(!h0(e))throw Error(K(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=pA;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=hA(t,null,e,1,r??null,i,!1,a,o),e[$n]=t.current,Wl(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new ih(t)};fr.render=function(e,t,r){if(!ah(t))throw Error(K(200));return oh(null,e,t,!1,r)};fr.unmountComponentAtNode=function(e){if(!ah(e))throw Error(K(40));return e._reactRootContainer?(ka(function(){oh(null,null,e,!1,function(){e._reactRootContainer=null,e[$n]=null})}),!0):!1};fr.unstable_batchedUpdates=o0;fr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!ah(r))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return oh(e,t,r,!1,n)};fr.version="18.3.1-next-f1338f8080-20240426";function mA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mA)}catch(e){console.error(e)}}mA(),m_.exports=fr;var G$=m_.exports,Jx=G$;_m.createRoot=Jx.createRoot,_m.hydrateRoot=Jx.hydrateRoot;/**
|
||
* @remix-run/router v1.23.2
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jl.apply(this,arguments)}var di;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(di||(di={}));const Zx="popstate";function X$(e){e===void 0&&(e={});function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return gy("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Rf(i)}return Y$(t,r,null,e)}function Qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function p0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Q$(){return Math.random().toString(36).substr(2,8)}function e1(e,t){return{usr:e.state,key:e.key,idx:t}}function gy(e,t,r,n){return r===void 0&&(r=null),Jl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ps(t):t,{state:r,key:t&&t.key||n||Q$()})}function Rf(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ps(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Y$(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=di.Pop,l=null,u=f();u==null&&(u=0,o.replaceState(Jl({},o.state,{idx:u}),""));function f(){return(o.state||{idx:null}).idx}function c(){s=di.Pop;let v=f(),g=v==null?null:v-u;u=v,l&&l({action:s,location:y.location,delta:g})}function h(v,g){s=di.Push;let b=gy(y.location,v,g);u=f()+1;let w=e1(b,u),O=y.createHref(b);try{o.pushState(w,"",O)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(O)}a&&l&&l({action:s,location:y.location,delta:1})}function p(v,g){s=di.Replace;let b=gy(y.location,v,g);u=f();let w=e1(b,u),O=y.createHref(b);o.replaceState(w,"",O),a&&l&&l({action:s,location:y.location,delta:0})}function m(v){let g=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof v=="string"?v:Rf(v);return b=b.replace(/ $/,"%20"),Qe(g,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,g)}let y={get action(){return s},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Zx,c),l=v,()=>{i.removeEventListener(Zx,c),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let g=m(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(v){return o.go(v)}};return y}var t1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(t1||(t1={}));function J$(e,t,r){return r===void 0&&(r="/"),Z$(e,t,r)}function Z$(e,t,r,n){let i=typeof t=="string"?Ps(t):t,a=m0(i.pathname||"/",r);if(a==null)return null;let o=yA(e);eM(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let u=dM(a);s=uM(o[l],u)}return s}function yA(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Qe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Oi([n,l.relativePath]),f=r.concat(l);a.children&&a.children.length>0&&(Qe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yA(a.children,t,f,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:sM(u,a.index),routesMeta:f})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of vA(a.path))i(a,o,l)}),t}function vA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=vA(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function eM(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:lM(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const tM=/^:[\w-]+$/,rM=3,nM=2,iM=1,aM=10,oM=-2,r1=e=>e==="*";function sM(e,t){let r=e.split("/"),n=r.length;return r.some(r1)&&(n+=oM),t&&(n+=nM),r.filter(i=>!r1(i)).reduce((i,a)=>i+(tM.test(a)?rM:a===""?iM:aM),n)}function lM(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function uM(e,t,r){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,f=a==="/"?t:t.slice(a.length)||"/",c=cM({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},f),h=l.route;if(!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:Oi([a,c.pathname]),pathnameBase:vM(Oi([a,c.pathnameBase])),route:h}),c.pathnameBase!=="/"&&(a=Oi([a,c.pathnameBase]))}return o}function cM(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=fM(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((u,f,c)=>{let{paramName:h,isOptional:p}=f;if(h==="*"){let y=s[c]||"";o=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=s[c];return p&&!m?u[h]=void 0:u[h]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function fM(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),p0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function dM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return p0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function m0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const hM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pM=e=>hM.test(e);function mM(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Ps(e):e,a;if(r)if(pM(r))a=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),p0(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?a=n1(r.substring(1),"/"):a=n1(r,t)}else a=t;return{pathname:a,search:gM(n),hash:bM(i)}}function n1(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function zp(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function yM(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function y0(e,t){let r=yM(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function v0(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Ps(e):(i=Jl({},e),Qe(!i.pathname||!i.pathname.includes("?"),zp("?","pathname","search",i)),Qe(!i.pathname||!i.pathname.includes("#"),zp("#","pathname","hash",i)),Qe(!i.search||!i.search.includes("#"),zp("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let c=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),c-=1;i.pathname=h.join("/")}s=c>=0?t[c]:"/"}let l=mM(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Oi=e=>e.join("/").replace(/\/\/+/g,"/"),vM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const gA=["post","put","patch","delete"];new Set(gA);const wM=["get",...gA];new Set(wM);/**
|
||
* React Router v6.30.3
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zl.apply(this,arguments)}const g0=A.createContext(null),SM=A.createContext(null),Ii=A.createContext(null),sh=A.createContext(null),un=A.createContext({outlet:null,matches:[],isDataRoute:!1}),bA=A.createContext(null);function OM(e,t){let{relative:r}=t===void 0?{}:t;As()||Qe(!1);let{basename:n,navigator:i}=A.useContext(Ii),{hash:a,pathname:o,search:s}=wA(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:Oi([n,o])),i.createHref({pathname:l,search:s,hash:a})}function As(){return A.useContext(sh)!=null}function ks(){return As()||Qe(!1),A.useContext(sh).location}function xA(e){A.useContext(Ii).static||A.useLayoutEffect(e)}function Wa(){let{isDataRoute:e}=A.useContext(un);return e?zM():jM()}function jM(){As()||Qe(!1);let e=A.useContext(g0),{basename:t,future:r,navigator:n}=A.useContext(Ii),{matches:i}=A.useContext(un),{pathname:a}=ks(),o=JSON.stringify(y0(i,r.v7_relativeSplatPath)),s=A.useRef(!1);return xA(()=>{s.current=!0}),A.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=v0(u,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Oi([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,o,a,e])}const _M=A.createContext(null);function PM(e){let t=A.useContext(un).outlet;return t&&A.createElement(_M.Provider,{value:e},t)}function AM(){let{matches:e}=A.useContext(un),t=e[e.length-1];return t?t.params:{}}function wA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=A.useContext(Ii),{matches:i}=A.useContext(un),{pathname:a}=ks(),o=JSON.stringify(y0(i,n.v7_relativeSplatPath));return A.useMemo(()=>v0(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function kM(e,t){return EM(e,t)}function EM(e,t,r,n){As()||Qe(!1);let{navigator:i}=A.useContext(Ii),{matches:a}=A.useContext(un),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=ks(),f;if(t){var c;let v=typeof t=="string"?Ps(t):t;l==="/"||(c=v.pathname)!=null&&c.startsWith(l)||Qe(!1),f=v}else f=u;let h=f.pathname||"/",p=h;if(l!=="/"){let v=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=J$(e,{pathname:p}),y=MM(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Oi([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Oi([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,n);return t&&y?A.createElement(sh.Provider,{value:{location:Zl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:di.Pop}},y):y}function NM(){let e=LM(),t=xM(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),r?A.createElement("pre",{style:i},r):null,null)}const CM=A.createElement(NM,null);class TM extends A.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?A.createElement(un.Provider,{value:this.props.routeContext},A.createElement(bA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $M(e){let{routeContext:t,match:r,children:n}=e,i=A.useContext(g0);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),A.createElement(un.Provider,{value:t},n)}function MM(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let f=o.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||Qe(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f<o.length;f++){let c=o[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=f),c.route.id){let{loaderData:h,errors:p}=r,m=c.route.loader&&h[c.route.id]===void 0&&(!p||p[c.route.id]===void 0);if(c.route.lazy||m){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((f,c,h)=>{let p,m=!1,y=null,v=null;r&&(p=s&&c.route.id?s[c.route.id]:void 0,y=c.route.errorElement||CM,l&&(u<0&&h===0?(FM("route-fallback"),m=!0,v=null):u===h&&(m=!0,v=c.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),b=()=>{let w;return p?w=y:m?w=v:c.route.Component?w=A.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=f,A.createElement($M,{match:c,routeContext:{outlet:f,matches:g,isDataRoute:r!=null},children:w})};return r&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?A.createElement(TM,{location:r.location,revalidation:r.revalidation,component:y,error:p,children:b(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):b()},null)}var SA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(SA||{}),OA=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(OA||{});function IM(e){let t=A.useContext(g0);return t||Qe(!1),t}function RM(e){let t=A.useContext(SM);return t||Qe(!1),t}function DM(e){let t=A.useContext(un);return t||Qe(!1),t}function jA(e){let t=DM(),r=t.matches[t.matches.length-1];return r.route.id||Qe(!1),r.route.id}function LM(){var e;let t=A.useContext(bA),r=RM(),n=jA();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function zM(){let{router:e}=IM(SA.UseNavigateStable),t=jA(OA.UseNavigateStable),r=A.useRef(!1);return xA(()=>{r.current=!0}),A.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Zl({fromRouteId:t},a)))},[e,t])}const i1={};function FM(e,t,r){i1[e]||(i1[e]=!0)}function BM(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function by(e){let{to:t,replace:r,state:n,relative:i}=e;As()||Qe(!1);let{future:a,static:o}=A.useContext(Ii),{matches:s}=A.useContext(un),{pathname:l}=ks(),u=Wa(),f=v0(t,y0(s,a.v7_relativeSplatPath),l,i==="path"),c=JSON.stringify(f);return A.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:i}),[u,c,i,r,n]),null}function UM(e){return PM(e.context)}function rr(e){Qe(!1)}function WM(e){let{basename:t="/",children:r=null,location:n,navigationType:i=di.Pop,navigator:a,static:o=!1,future:s}=e;As()&&Qe(!1);let l=t.replace(/^\/*/,"/"),u=A.useMemo(()=>({basename:l,navigator:a,static:o,future:Zl({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=Ps(n));let{pathname:f="/",search:c="",hash:h="",state:p=null,key:m="default"}=n,y=A.useMemo(()=>{let v=m0(f,l);return v==null?null:{location:{pathname:v,search:c,hash:h,state:p,key:m},navigationType:i}},[l,f,c,h,p,m,i]);return y==null?null:A.createElement(Ii.Provider,{value:u},A.createElement(sh.Provider,{children:r,value:y}))}function HM(e){let{children:t,location:r}=e;return kM(xy(t),r)}new Promise(()=>{});function xy(e,t){t===void 0&&(t=[]);let r=[];return A.Children.forEach(e,(n,i)=>{if(!A.isValidElement(n))return;let a=[...t,i];if(n.type===A.Fragment){r.push.apply(r,xy(n.props.children,a));return}n.type!==rr&&Qe(!1),!n.props.index||!n.props.children||Qe(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=xy(n.props.children,a)),r.push(o)}),r}/**
|
||
* React Router DOM v6.30.3
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wy.apply(this,arguments)}function qM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function KM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function VM(e,t){return e.button===0&&(!t||t==="_self")&&!KM(e)}const GM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],XM="6";try{window.__reactRouterVersion=XM}catch{}const QM="startTransition",a1=DC[QM];function YM(e){let{basename:t,children:r,future:n,window:i}=e,a=A.useRef();a.current==null&&(a.current=X$({window:i,v5Compat:!0}));let o=a.current,[s,l]=A.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},f=A.useCallback(c=>{u&&a1?a1(()=>l(c)):l(c)},[l,u]);return A.useLayoutEffect(()=>o.listen(f),[o,f]),A.useEffect(()=>BM(n),[n]),A.createElement(WM,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}const JM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ZM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ea=A.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:f,viewTransition:c}=t,h=qM(t,GM),{basename:p}=A.useContext(Ii),m,y=!1;if(typeof u=="string"&&ZM.test(u)&&(m=u,JM))try{let w=new URL(window.location.href),O=u.startsWith("//")?new URL(w.protocol+u):new URL(u),x=m0(O.pathname,p);O.origin===w.origin&&x!=null?u=x+O.search+O.hash:y=!0}catch{}let v=OM(u,{relative:i}),g=eI(u,{replace:o,state:s,target:l,preventScrollReset:f,relative:i,viewTransition:c});function b(w){n&&n(w),w.defaultPrevented||g(w)}return A.createElement("a",wy({},h,{href:m||v,onClick:y||a?n:b,ref:r,target:l}))});var o1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(o1||(o1={}));var s1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(s1||(s1={}));function eI(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=Wa(),u=ks(),f=wA(e,{relative:o});return A.useCallback(c=>{if(VM(c,r)){c.preventDefault();let h=n!==void 0?n:Rf(u)===Rf(f);l(e,{replace:h,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[u,l,f,n,i,r,e,a,o,s])}var Es=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tI={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ti,bg,Vj,rI=(Vj=class{constructor(){re(this,ti,tI);re(this,bg,!1)}setTimeoutProvider(e){Q(this,ti,e)}setTimeout(e,t){return E(this,ti).setTimeout(e,t)}clearTimeout(e){E(this,ti).clearTimeout(e)}setInterval(e,t){return E(this,ti).setInterval(e,t)}clearInterval(e){E(this,ti).clearInterval(e)}},ti=new WeakMap,bg=new WeakMap,Vj),na=new rI;function nI(e){setTimeout(e,0)}var Na=typeof window>"u"||"Deno"in globalThis;function $t(){}function iI(e,t){return typeof e=="function"?e(t):e}function Sy(e){return typeof e=="number"&&e>=0&&e!==1/0}function _A(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ji(e,t){return typeof e=="function"?e(t):e}function gr(e,t){return typeof e=="function"?e(t):e}function l1(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==b0(o,t.options))return!1}else if(!eu(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function u1(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ca(t.options.mutationKey)!==Ca(a))return!1}else if(!eu(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function b0(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ca)(e)}function Ca(e){return JSON.stringify(e,(t,r)=>Oy(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function eu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>eu(e[r],t[r])):!1}var aI=Object.prototype.hasOwnProperty;function PA(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=c1(e)&&c1(t);if(!n&&!(Oy(e)&&Oy(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,l=n?new Array(s):{};let u=0;for(let f=0;f<s;f++){const c=n?f:o[f],h=e[c],p=t[c];if(h===p){l[c]=h,(n?f<a:aI.call(e,c))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){l[c]=p;continue}const m=PA(h,p,r+1);l[c]=m,m===h&&u++}return a===s&&u===a?e:l}function Df(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function c1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oy(e){if(!f1(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!f1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function f1(e){return Object.prototype.toString.call(e)==="[object Object]"}function oI(e){return new Promise(t=>{na.setTimeout(t,e)})}function jy(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?PA(e,t):t}function sI(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function lI(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var x0=Symbol();function AA(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===x0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function w0(e,t){return typeof e=="function"?e(...t):!!e}function uI(e,t,r){let n=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var ca,ri,Co,Gj,cI=(Gj=class extends Es{constructor(){super();re(this,ca);re(this,ri);re(this,Co);Q(this,Co,t=>{if(!Na&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,ri)||this.setEventListener(E(this,Co))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,ri))==null||t.call(this),Q(this,ri,void 0))}setEventListener(t){var r;Q(this,Co,t),(r=E(this,ri))==null||r.call(this),Q(this,ri,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){E(this,ca)!==t&&(Q(this,ca,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof E(this,ca)=="boolean"?E(this,ca):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ca=new WeakMap,ri=new WeakMap,Co=new WeakMap,Gj),S0=new cI;function _y(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var fI=nI;function dI(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=fI;const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var st=dI(),To,ni,$o,Xj,hI=(Xj=class extends Es{constructor(){super();re(this,To,!0);re(this,ni);re(this,$o);Q(this,$o,t=>{if(!Na&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){E(this,ni)||this.setEventListener(E(this,$o))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,ni))==null||t.call(this),Q(this,ni,void 0))}setEventListener(t){var r;Q(this,$o,t),(r=E(this,ni))==null||r.call(this),Q(this,ni,t(this.setOnline.bind(this)))}setOnline(t){E(this,To)!==t&&(Q(this,To,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return E(this,To)}},To=new WeakMap,ni=new WeakMap,$o=new WeakMap,Xj),Lf=new hI;function pI(e){return Math.min(1e3*2**e,3e4)}function kA(e){return(e??"online")==="online"?Lf.isOnline():!0}var Py=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function EA(e){let t=!1,r=0,n;const i=_y(),a=()=>i.status!=="pending",o=y=>{var v;if(!a()){const g=new Py(y);h(g),(v=e.onCancel)==null||v.call(e,g)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>S0.isFocused()&&(e.networkMode==="always"||Lf.isOnline())&&e.canRun(),f=()=>kA(e.networkMode)&&e.canRun(),c=y=>{a()||(n==null||n(),i.resolve(y))},h=y=>{a()||(n==null||n(),i.reject(y))},p=()=>new Promise(y=>{var v;n=g=>{(a()||u())&&y(g)},(v=e.onPause)==null||v.call(e)}).then(()=>{var y;n=void 0,a()||(y=e.onContinue)==null||y.call(e)}),m=()=>{if(a())return;let y;const v=r===0?e.initialPromise:void 0;try{y=v??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(c).catch(g=>{var S;if(a())return;const b=e.retry??(Na?0:3),w=e.retryDelay??pI,O=typeof w=="function"?w(r,g):w,x=b===!0||typeof b=="number"&&r<b||typeof b=="function"&&b(r,g);if(t||!x){h(g);return}r++,(S=e.onFail)==null||S.call(e,r,g),oI(O).then(()=>u()?void 0:p()).then(()=>{t?h(g):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n==null||n(),i),cancelRetry:s,continueRetry:l,canStart:f,start:()=>(f()?m():p().then(m),i)}}var fa,Qj,NA=(Qj=class{constructor(){re(this,fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sy(this.gcTime)&&Q(this,fa,na.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Na?1/0:5*60*1e3))}clearGcTimeout(){E(this,fa)&&(na.clearTimeout(E(this,fa)),Q(this,fa,void 0))}},fa=new WeakMap,Qj),da,Mo,vr,ha,dt,zu,pa,Mr,pn,Yj,mI=(Yj=class extends NA{constructor(t){super();re(this,Mr);re(this,da);re(this,Mo);re(this,vr);re(this,ha);re(this,dt);re(this,zu);re(this,pa);Q(this,pa,!1),Q(this,zu,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,ha,t.client),Q(this,vr,E(this,ha).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,da,h1(this.options)),this.state=t.state??E(this,da),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=E(this,dt))==null?void 0:t.promise}setOptions(t){if(this.options={...E(this,zu),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=h1(this.options);r.data!==void 0&&(this.setState(d1(r.data,r.dataUpdatedAt)),Q(this,da,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,vr).remove(this)}setData(t,r){const n=jy(this.state.data,t,this.options);return de(this,Mr,pn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){de(this,Mr,pn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=E(this,dt))==null?void 0:n.promise;return(i=E(this,dt))==null||i.cancel(t),r?r.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,da))}isActive(){return this.observers.some(t=>gr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===x0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ji(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!_A(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=E(this,dt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=E(this,dt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,vr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(E(this,dt)&&(E(this,pa)?E(this,dt).cancel({revert:!0}):E(this,dt).cancelRetry()),this.scheduleGc()),E(this,vr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Mr,pn).call(this,{type:"invalidate"})}async fetch(t,r){var l,u,f,c,h,p,m,y,v,g,b,w;if(this.state.fetchStatus!=="idle"&&((l=E(this,dt))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(E(this,dt))return E(this,dt).continueRetry(),E(this,dt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const O=this.observers.find(x=>x.options.queryFn);O&&this.setOptions(O.options)}const n=new AbortController,i=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(Q(this,pa,!0),n.signal)})},a=()=>{const O=AA(this.options,r),S=(()=>{const j={client:E(this,ha),queryKey:this.queryKey,meta:this.meta};return i(j),j})();return Q(this,pa,!1),this.options.persister?this.options.persister(O,S,this):O(S)},s=(()=>{const O={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,ha),state:this.state,fetchFn:a};return i(O),O})();(u=this.options.behavior)==null||u.onFetch(s,this),Q(this,Mo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&de(this,Mr,pn).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),Q(this,dt,EA({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,onCancel:O=>{O instanceof Py&&O.revert&&this.setState({...E(this,Mo),fetchStatus:"idle"}),n.abort()},onFail:(O,x)=>{de(this,Mr,pn).call(this,{type:"failed",failureCount:O,error:x})},onPause:()=>{de(this,Mr,pn).call(this,{type:"pause"})},onContinue:()=>{de(this,Mr,pn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const O=await E(this,dt).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(p=(h=E(this,vr).config).onSuccess)==null||p.call(h,O,this),(y=(m=E(this,vr).config).onSettled)==null||y.call(m,O,this.state.error,this),O}catch(O){if(O instanceof Py){if(O.silent)return E(this,dt).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw de(this,Mr,pn).call(this,{type:"error",error:O}),(g=(v=E(this,vr).config).onError)==null||g.call(v,O,this),(w=(b=E(this,vr).config).onSettled)==null||w.call(b,this.state.data,O,this),O}finally{this.scheduleGc()}}},da=new WeakMap,Mo=new WeakMap,vr=new WeakMap,ha=new WeakMap,dt=new WeakMap,zu=new WeakMap,pa=new WeakMap,Mr=new WeakSet,pn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...CA(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...d1(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Q(this,Mo,t.manual?i:void 0),i;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),E(this,vr).notify({query:this,type:"updated",action:t})})},Yj);function CA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function d1(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function h1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Bt,me,Fu,Ct,ma,Io,gn,ii,Bu,Ro,Do,ya,va,ai,Lo,_e,ml,Ay,ky,Ey,Ny,Cy,Ty,$y,TA,Jj,yI=(Jj=class extends Es{constructor(t,r){super();re(this,_e);re(this,Bt);re(this,me);re(this,Fu);re(this,Ct);re(this,ma);re(this,Io);re(this,gn);re(this,ii);re(this,Bu);re(this,Ro);re(this,Do);re(this,ya);re(this,va);re(this,ai);re(this,Lo,new Set);this.options=r,Q(this,Bt,t),Q(this,ii,null),Q(this,gn,_y()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,me).addObserver(this),p1(E(this,me),this.options)?de(this,_e,ml).call(this):this.updateResult(),de(this,_e,Ny).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return My(E(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return My(E(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,_e,Cy).call(this),de(this,_e,Ty).call(this),E(this,me).removeObserver(this)}setOptions(t){const r=this.options,n=E(this,me);if(this.options=E(this,Bt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof gr(this.options.enabled,E(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,_e,$y).call(this),E(this,me).setOptions(this.options),r._defaulted&&!Df(this.options,r)&&E(this,Bt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,me),observer:this});const i=this.hasListeners();i&&m1(E(this,me),n,this.options,r)&&de(this,_e,ml).call(this),this.updateResult(),i&&(E(this,me)!==n||gr(this.options.enabled,E(this,me))!==gr(r.enabled,E(this,me))||ji(this.options.staleTime,E(this,me))!==ji(r.staleTime,E(this,me)))&&de(this,_e,Ay).call(this);const a=de(this,_e,ky).call(this);i&&(E(this,me)!==n||gr(this.options.enabled,E(this,me))!==gr(r.enabled,E(this,me))||a!==E(this,ai))&&de(this,_e,Ey).call(this,a)}getOptimisticResult(t){const r=E(this,Bt).getQueryCache().build(E(this,Bt),t),n=this.createResult(r,t);return gI(this,n)&&(Q(this,Ct,n),Q(this,Io,this.options),Q(this,ma,E(this,me).state)),n}getCurrentResult(){return E(this,Ct)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,gn).status==="pending"&&E(this,gn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){E(this,Lo).add(t)}getCurrentQuery(){return E(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=E(this,Bt).defaultQueryOptions(t),n=E(this,Bt).getQueryCache().build(E(this,Bt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return de(this,_e,ml).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,Ct)))}createResult(t,r){var P;const n=E(this,me),i=this.options,a=E(this,Ct),o=E(this,ma),s=E(this,Io),u=t!==n?t.state:E(this,Fu),{state:f}=t;let c={...f},h=!1,p;if(r._optimisticResults){const N=this.hasListeners(),$=!N&&p1(t,r),T=N&&m1(t,n,r,i);($||T)&&(c={...c,...CA(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:v}=c;p=c.data;let g=!1;if(r.placeholderData!==void 0&&p===void 0&&v==="pending"){let N;a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(N=a.data,g=!0):N=typeof r.placeholderData=="function"?r.placeholderData((P=E(this,Do))==null?void 0:P.state.data,E(this,Do)):r.placeholderData,N!==void 0&&(v="success",p=jy(a==null?void 0:a.data,N,r),h=!0)}if(r.select&&p!==void 0&&!g)if(a&&p===(o==null?void 0:o.data)&&r.select===E(this,Bu))p=E(this,Ro);else try{Q(this,Bu,r.select),p=r.select(p),p=jy(a==null?void 0:a.data,p,r),Q(this,Ro,p),Q(this,ii,null)}catch(N){Q(this,ii,N)}E(this,ii)&&(m=E(this,ii),p=E(this,Ro),y=Date.now(),v="error");const b=c.fetchStatus==="fetching",w=v==="pending",O=v==="error",x=w&&b,S=p!==void 0,_={status:v,fetchStatus:c.fetchStatus,isPending:w,isSuccess:v==="success",isError:O,isInitialLoading:x,isLoading:x,data:p,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:O&&!S,isPaused:c.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:O&&S,isStale:O0(t,r),refetch:this.refetch,promise:E(this,gn),isEnabled:gr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=_.data!==void 0,$=_.status==="error"&&!N,T=I=>{$?I.reject(_.error):N&&I.resolve(_.data)},L=()=>{const I=Q(this,gn,_.promise=_y());T(I)},R=E(this,gn);switch(R.status){case"pending":t.queryHash===n.queryHash&&T(R);break;case"fulfilled":($||_.data!==R.value)&&L();break;case"rejected":(!$||_.error!==R.reason)&&L();break}}return _}updateResult(){const t=E(this,Ct),r=this.createResult(E(this,me),this.options);if(Q(this,ma,E(this,me).state),Q(this,Io,this.options),E(this,ma).data!==void 0&&Q(this,Do,E(this,me)),Df(r,t))return;Q(this,Ct,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!E(this,Lo).size)return!0;const o=new Set(a??E(this,Lo));return this.options.throwOnError&&o.add("error"),Object.keys(E(this,Ct)).some(s=>{const l=s;return E(this,Ct)[l]!==t[l]&&o.has(l)})};de(this,_e,TA).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,_e,Ny).call(this)}},Bt=new WeakMap,me=new WeakMap,Fu=new WeakMap,Ct=new WeakMap,ma=new WeakMap,Io=new WeakMap,gn=new WeakMap,ii=new WeakMap,Bu=new WeakMap,Ro=new WeakMap,Do=new WeakMap,ya=new WeakMap,va=new WeakMap,ai=new WeakMap,Lo=new WeakMap,_e=new WeakSet,ml=function(t){de(this,_e,$y).call(this);let r=E(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch($t)),r},Ay=function(){de(this,_e,Cy).call(this);const t=ji(this.options.staleTime,E(this,me));if(Na||E(this,Ct).isStale||!Sy(t))return;const n=_A(E(this,Ct).dataUpdatedAt,t)+1;Q(this,ya,na.setTimeout(()=>{E(this,Ct).isStale||this.updateResult()},n))},ky=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,me)):this.options.refetchInterval)??!1},Ey=function(t){de(this,_e,Ty).call(this),Q(this,ai,t),!(Na||gr(this.options.enabled,E(this,me))===!1||!Sy(E(this,ai))||E(this,ai)===0)&&Q(this,va,na.setInterval(()=>{(this.options.refetchIntervalInBackground||S0.isFocused())&&de(this,_e,ml).call(this)},E(this,ai)))},Ny=function(){de(this,_e,Ay).call(this),de(this,_e,Ey).call(this,de(this,_e,ky).call(this))},Cy=function(){E(this,ya)&&(na.clearTimeout(E(this,ya)),Q(this,ya,void 0))},Ty=function(){E(this,va)&&(na.clearInterval(E(this,va)),Q(this,va,void 0))},$y=function(){const t=E(this,Bt).getQueryCache().build(E(this,Bt),this.options);if(t===E(this,me))return;const r=E(this,me);Q(this,me,t),Q(this,Fu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},TA=function(t){st.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(E(this,Ct))}),E(this,Bt).getQueryCache().notify({query:E(this,me),type:"observerResultsUpdated"})})},Jj);function vI(e,t){return gr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function p1(e,t){return vI(e,t)||e.state.data!==void 0&&My(e,t,t.refetchOnMount)}function My(e,t,r){if(gr(t.enabled,e)!==!1&&ji(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&O0(e,t)}return!1}function m1(e,t,r,n){return(e!==t||gr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&O0(e,r)}function O0(e,t){return gr(t.enabled,e)!==!1&&e.isStaleByTime(ji(t.staleTime,e))}function gI(e,t){return!Df(e.getCurrentResult(),t)}function y1(e){return{onFetch:(t,r)=>{var f,c,h,p,m;const n=t.options,i=(h=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:h.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const v=w=>{uI(w,()=>t.signal,()=>y=!0)},g=AA(t.options,t.fetchOptions),b=async(w,O,x)=>{if(y)return Promise.reject();if(O==null&&w.pages.length)return Promise.resolve(w);const j=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:O,direction:x?"backward":"forward",meta:t.options.meta};return v($),$})(),_=await g(j),{maxPages:P}=t.options,N=x?lI:sI;return{pages:N(w.pages,_,P),pageParams:N(w.pageParams,O,P)}};if(i&&a.length){const w=i==="backward",O=w?bI:v1,x={pages:a,pageParams:o},S=O(n,x);s=await b(x,S,w)}else{const w=e??a.length;do{const O=l===0?o[0]??n.initialPageParam:v1(n,s);if(l>0&&O==null)break;s=await b(s,O),l++}while(l<w)}return s};t.options.persister?t.fetchFn=()=>{var y,v;return(v=(y=t.options).persister)==null?void 0:v.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function v1(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function bI(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Uu,Xr,_t,ga,Qr,Vn,Zj,xI=(Zj=class extends NA{constructor(t){super();re(this,Qr);re(this,Uu);re(this,Xr);re(this,_t);re(this,ga);Q(this,Uu,t.client),this.mutationId=t.mutationId,Q(this,_t,t.mutationCache),Q(this,Xr,[]),this.state=t.state||$A(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,Xr).includes(t)||(E(this,Xr).push(t),this.clearGcTimeout(),E(this,_t).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,Xr,E(this,Xr).filter(r=>r!==t)),this.scheduleGc(),E(this,_t).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,Xr).length||(this.state.status==="pending"?this.scheduleGc():E(this,_t).remove(this))}continue(){var t;return((t=E(this,ga))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,l,u,f,c,h,p,m,y,v,g,b,w,O,x,S,j;const r=()=>{de(this,Qr,Vn).call(this,{type:"continue"})},n={client:E(this,Uu),meta:this.options.meta,mutationKey:this.options.mutationKey};Q(this,ga,EA({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(_,P)=>{de(this,Qr,Vn).call(this,{type:"failed",failureCount:_,error:P})},onPause:()=>{de(this,Qr,Vn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,_t).canRun(this)}));const i=this.state.status==="pending",a=!E(this,ga).canStart();try{if(i)r();else{de(this,Qr,Vn).call(this,{type:"pending",variables:t,isPaused:a}),E(this,_t).config.onMutate&&await E(this,_t).config.onMutate(t,this,n);const P=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t,n));P!==this.state.context&&de(this,Qr,Vn).call(this,{type:"pending",context:P,variables:t,isPaused:a})}const _=await E(this,ga).start();return await((u=(l=E(this,_t).config).onSuccess)==null?void 0:u.call(l,_,t,this.state.context,this,n)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,_,t,this.state.context,n)),await((p=(h=E(this,_t).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this,n)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,_,null,t,this.state.context,n)),de(this,Qr,Vn).call(this,{type:"success",data:_}),_}catch(_){try{await((g=(v=E(this,_t).config).onError)==null?void 0:g.call(v,_,t,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((w=(b=this.options).onError)==null?void 0:w.call(b,_,t,this.state.context,n))}catch(P){Promise.reject(P)}try{await((x=(O=E(this,_t).config).onSettled)==null?void 0:x.call(O,void 0,_,this.state.variables,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((j=(S=this.options).onSettled)==null?void 0:j.call(S,void 0,_,t,this.state.context,n))}catch(P){Promise.reject(P)}throw de(this,Qr,Vn).call(this,{type:"error",error:_}),_}finally{E(this,_t).runNext(this)}}},Uu=new WeakMap,Xr=new WeakMap,_t=new WeakMap,ga=new WeakMap,Qr=new WeakSet,Vn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),st.batch(()=>{E(this,Xr).forEach(n=>{n.onMutationUpdate(t)}),E(this,_t).notify({mutation:this,type:"updated",action:t})})},Zj);function $A(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var bn,Ir,Wu,e_,wI=(e_=class extends Es{constructor(t={}){super();re(this,bn);re(this,Ir);re(this,Wu);this.config=t,Q(this,bn,new Set),Q(this,Ir,new Map),Q(this,Wu,0)}build(t,r,n){const i=new xI({client:t,mutationCache:this,mutationId:++lc(this,Wu)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){E(this,bn).add(t);const r=Ac(t);if(typeof r=="string"){const n=E(this,Ir).get(r);n?n.push(t):E(this,Ir).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,bn).delete(t)){const r=Ac(t);if(typeof r=="string"){const n=E(this,Ir).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&E(this,Ir).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Ac(t);if(typeof r=="string"){const n=E(this,Ir).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=Ac(t);if(typeof r=="string"){const i=(n=E(this,Ir).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{E(this,bn).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,bn).clear(),E(this,Ir).clear()})}getAll(){return Array.from(E(this,bn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>u1(r,n))}findAll(t={}){return this.getAll().filter(r=>u1(t,r))}notify(t){st.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return st.batch(()=>Promise.all(t.map(r=>r.continue().catch($t))))}},bn=new WeakMap,Ir=new WeakMap,Wu=new WeakMap,e_);function Ac(e){var t;return(t=e.options.scope)==null?void 0:t.id}var xn,oi,Ut,wn,Cn,of,Iy,t_,SI=(t_=class extends Es{constructor(r,n){super();re(this,Cn);re(this,xn);re(this,oi);re(this,Ut);re(this,wn);Q(this,xn,r),this.setOptions(n),this.bindMethods(),de(this,Cn,of).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const n=this.options;this.options=E(this,xn).defaultMutationOptions(r),Df(this.options,n)||E(this,xn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Ut),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ca(n.mutationKey)!==Ca(this.options.mutationKey)?this.reset():((i=E(this,Ut))==null?void 0:i.state.status)==="pending"&&E(this,Ut).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=E(this,Ut))==null||r.removeObserver(this)}onMutationUpdate(r){de(this,Cn,of).call(this),de(this,Cn,Iy).call(this,r)}getCurrentResult(){return E(this,oi)}reset(){var r;(r=E(this,Ut))==null||r.removeObserver(this),Q(this,Ut,void 0),de(this,Cn,of).call(this),de(this,Cn,Iy).call(this)}mutate(r,n){var i;return Q(this,wn,n),(i=E(this,Ut))==null||i.removeObserver(this),Q(this,Ut,E(this,xn).getMutationCache().build(E(this,xn),this.options)),E(this,Ut).addObserver(this),E(this,Ut).execute(r)}},xn=new WeakMap,oi=new WeakMap,Ut=new WeakMap,wn=new WeakMap,Cn=new WeakSet,of=function(){var n;const r=((n=E(this,Ut))==null?void 0:n.state)??$A();Q(this,oi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Iy=function(r){st.batch(()=>{var n,i,a,o,s,l,u,f;if(E(this,wn)&&this.hasListeners()){const c=E(this,oi).variables,h=E(this,oi).context,p={client:E(this,xn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(i=(n=E(this,wn)).onSuccess)==null||i.call(n,r.data,c,h,p)}catch(m){Promise.reject(m)}try{(o=(a=E(this,wn)).onSettled)==null||o.call(a,r.data,null,c,h,p)}catch(m){Promise.reject(m)}}else if((r==null?void 0:r.type)==="error"){try{(l=(s=E(this,wn)).onError)==null||l.call(s,r.error,c,h,p)}catch(m){Promise.reject(m)}try{(f=(u=E(this,wn)).onSettled)==null||f.call(u,void 0,r.error,c,h,p)}catch(m){Promise.reject(m)}}}this.listeners.forEach(c=>{c(E(this,oi))})})},t_),Yr,r_,OI=(r_=class extends Es{constructor(t={}){super();re(this,Yr);this.config=t,Q(this,Yr,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??b0(i,r);let o=this.get(a);return o||(o=new mI({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){E(this,Yr).has(t.queryHash)||(E(this,Yr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=E(this,Yr).get(t.queryHash);r&&(t.destroy(),r===t&&E(this,Yr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,Yr).get(t)}getAll(){return[...E(this,Yr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>l1(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>l1(t,n)):r}notify(t){st.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yr=new WeakMap,r_),Ke,si,li,zo,Fo,ui,Bo,Uo,n_,jI=(n_=class{constructor(e={}){re(this,Ke);re(this,si);re(this,li);re(this,zo);re(this,Fo);re(this,ui);re(this,Bo);re(this,Uo);Q(this,Ke,e.queryCache||new OI),Q(this,si,e.mutationCache||new wI),Q(this,li,e.defaultOptions||{}),Q(this,zo,new Map),Q(this,Fo,new Map),Q(this,ui,0)}mount(){lc(this,ui)._++,E(this,ui)===1&&(Q(this,Bo,S0.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Ke).onFocus())})),Q(this,Uo,Lf.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Ke).onOnline())})))}unmount(){var e,t;lc(this,ui)._--,E(this,ui)===0&&((e=E(this,Bo))==null||e.call(this),Q(this,Bo,void 0),(t=E(this,Uo))==null||t.call(this),Q(this,Uo,void 0))}isFetching(e){return E(this,Ke).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,si).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=E(this,Ke).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=E(this,Ke).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ji(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return E(this,Ke).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=E(this,Ke).get(n.queryHash),a=i==null?void 0:i.state.data,o=iI(t,a);if(o!==void 0)return E(this,Ke).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return st.batch(()=>E(this,Ke).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=E(this,Ke).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=E(this,Ke);st.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=E(this,Ke);return st.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=st.batch(()=>E(this,Ke).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then($t).catch($t)}invalidateQueries(e,t={}){return st.batch(()=>(E(this,Ke).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=st.batch(()=>E(this,Ke).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch($t)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then($t)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=E(this,Ke).build(this,t);return r.isStaleByTime(ji(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($t).catch($t)}fetchInfiniteQuery(e){return e.behavior=y1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($t).catch($t)}ensureInfiniteQueryData(e){return e.behavior=y1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Lf.isOnline()?E(this,si).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Ke)}getMutationCache(){return E(this,si)}getDefaultOptions(){return E(this,li)}setDefaultOptions(e){Q(this,li,e)}setQueryDefaults(e,t){E(this,zo).set(Ca(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,zo).values()],r={};return t.forEach(n=>{eu(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){E(this,Fo).set(Ca(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,Fo).values()],r={};return t.forEach(n=>{eu(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,li).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=b0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===x0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,li).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,Ke).clear(),E(this,si).clear()}},Ke=new WeakMap,si=new WeakMap,li=new WeakMap,zo=new WeakMap,Fo=new WeakMap,ui=new WeakMap,Bo=new WeakMap,Uo=new WeakMap,n_),MA=A.createContext(void 0),lh=e=>{const t=A.useContext(MA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},_I=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(MA.Provider,{value:e,children:t})),IA=A.createContext(!1),PI=()=>A.useContext(IA);IA.Provider;function AI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var kI=A.createContext(AI()),EI=()=>A.useContext(kI),NI=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?w0(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},CI=e=>{A.useEffect(()=>{e.clearReset()},[e])},TI=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||w0(r,[e.error,n])),$I=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},MI=(e,t)=>e.isLoading&&e.isFetching&&!t,II=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,g1=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function RI(e,t,r){var h,p,m,y;const n=PI(),i=EI(),a=lh(),o=a.defaultQueryOptions(e);(p=(h=a.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.call(h,o);const s=a.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",$I(o),NI(o,i,s),CI(i);const l=!a.getQueryCache().get(o.queryHash),[u]=A.useState(()=>new t(a,o)),f=u.getOptimisticResult(o),c=!n&&e.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(v=>{const g=c?u.subscribe(st.batchCalls(v)):$t;return u.updateResult(),g},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),A.useEffect(()=>{u.setOptions(o)},[o,u]),II(o,f))throw g1(o,u,i);if(TI({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((y=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||y.call(m,o,f),o.experimental_prefetchInRender&&!Na&&MI(f,n)){const v=l?g1(o,u,i):s==null?void 0:s.promise;v==null||v.catch($t).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?f:u.trackResult(f)}function ki(e,t){return RI(e,yI)}function Pl(e,t){const r=lh(),[n]=A.useState(()=>new SI(r,e));A.useEffect(()=>{n.setOptions(e)},[n,e]);const i=A.useSyncExternalStore(A.useCallback(o=>n.subscribe(st.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=A.useCallback((o,s)=>{n.mutate(o,s).catch($t)},[n]);if(i.error&&w0(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function RA(e,t){return function(){return e.apply(t,arguments)}}const{toString:DI}=Object.prototype,{getPrototypeOf:j0}=Object,{iterator:uh,toStringTag:DA}=Symbol,ch=(e=>t=>{const r=DI.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Hr=e=>(e=e.toLowerCase(),t=>ch(t)===e),fh=e=>t=>typeof t===e,{isArray:Ns}=Array,Qo=fh("undefined");function Xu(e){return e!==null&&!Qo(e)&&e.constructor!==null&&!Qo(e.constructor)&&Yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const LA=Hr("ArrayBuffer");function LI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&LA(e.buffer),t}const zI=fh("string"),Yt=fh("function"),zA=fh("number"),Qu=e=>e!==null&&typeof e=="object",FI=e=>e===!0||e===!1,sf=e=>{if(ch(e)!=="object")return!1;const t=j0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(DA in e)&&!(uh in e)},BI=e=>{if(!Qu(e)||Xu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},UI=Hr("Date"),WI=Hr("File"),HI=Hr("Blob"),qI=Hr("FileList"),KI=e=>Qu(e)&&Yt(e.pipe),VI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Yt(e.append)&&((t=ch(e))==="formdata"||t==="object"&&Yt(e.toString)&&e.toString()==="[object FormData]"))},GI=Hr("URLSearchParams"),[XI,QI,YI,JI]=["ReadableStream","Request","Response","Headers"].map(Hr),ZI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ns(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(Xu(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(n=0;n<o;n++)s=a[n],t.call(null,e[s],s,e)}}function FA(e,t){if(Xu(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,BA=e=>!Qo(e)&&e!==ia;function Ry(){const{caseless:e,skipUndefined:t}=BA(this)&&this||{},r={},n=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=e&&FA(r,a)||a;sf(r[o])&&sf(i)?r[o]=Ry(r[o],i):sf(i)?r[o]=Ry({},i):Ns(i)?r[o]=i.slice():(!t||!Qo(i))&&(r[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Yu(arguments[i],n);return r}const eR=(e,t,r,{allOwnKeys:n}={})=>(Yu(t,(i,a)=>{r&&Yt(i)?Object.defineProperty(e,a,{value:RA(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),tR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rR=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},nR=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&j0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},iR=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},aR=e=>{if(!e)return null;if(Ns(e))return e;let t=e.length;if(!zA(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},oR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&j0(Uint8Array)),sR=(e,t)=>{const n=(e&&e[uh]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},lR=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},uR=Hr("HTMLFormElement"),cR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),b1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),fR=Hr("RegExp"),UA=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Yu(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},dR=e=>{UA(e,(t,r)=>{if(Yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Yt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},hR=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Ns(e)?n(e):n(String(e).split(t)),r},pR=()=>{},mR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yR(e){return!!(e&&Yt(e.append)&&e[DA]==="FormData"&&e[uh])}const vR=e=>{const t=new Array(10),r=(n,i)=>{if(Qu(n)){if(t.indexOf(n)>=0)return;if(Xu(n))return n;if(!("toJSON"in n)){t[i]=n;const a=Ns(n)?[]:{};return Yu(n,(o,s)=>{const l=r(o,i+1);!Qo(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},gR=Hr("AsyncFunction"),bR=e=>e&&(Qu(e)||Yt(e))&&Yt(e.then)&&Yt(e.catch),WA=((e,t)=>e?setImmediate:t?((r,n)=>(ia.addEventListener("message",({source:i,data:a})=>{i===ia&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ia.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Yt(ia.postMessage)),xR=typeof queueMicrotask<"u"?queueMicrotask.bind(ia):typeof process<"u"&&process.nextTick||WA,wR=e=>e!=null&&Yt(e[uh]),M={isArray:Ns,isArrayBuffer:LA,isBuffer:Xu,isFormData:VI,isArrayBufferView:LI,isString:zI,isNumber:zA,isBoolean:FI,isObject:Qu,isPlainObject:sf,isEmptyObject:BI,isReadableStream:XI,isRequest:QI,isResponse:YI,isHeaders:JI,isUndefined:Qo,isDate:UI,isFile:WI,isBlob:HI,isRegExp:fR,isFunction:Yt,isStream:KI,isURLSearchParams:GI,isTypedArray:oR,isFileList:qI,forEach:Yu,merge:Ry,extend:eR,trim:ZI,stripBOM:tR,inherits:rR,toFlatObject:nR,kindOf:ch,kindOfTest:Hr,endsWith:iR,toArray:aR,forEachEntry:sR,matchAll:lR,isHTMLForm:uR,hasOwnProperty:b1,hasOwnProp:b1,reduceDescriptors:UA,freezeMethods:dR,toObjectSet:hR,toCamelCase:cR,noop:pR,toFiniteNumber:mR,findKey:FA,global:ia,isContextDefined:BA,isSpecCompliantForm:yR,toJSONObject:vR,isAsyncFn:gR,isThenable:bR,setImmediate:WA,asap:xR,isIterable:wR};let se=class HA extends Error{static from(t,r,n,i,a,o){const s=new HA(t.message,r||t.code,n,i,a);return s.cause=t,s.name=t.name,o&&Object.assign(s,o),s}constructor(t,r,n,i,a){super(t),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}};se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";se.ERR_BAD_OPTION="ERR_BAD_OPTION";se.ECONNABORTED="ECONNABORTED";se.ETIMEDOUT="ETIMEDOUT";se.ERR_NETWORK="ERR_NETWORK";se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";se.ERR_DEPRECATED="ERR_DEPRECATED";se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";se.ERR_BAD_REQUEST="ERR_BAD_REQUEST";se.ERR_CANCELED="ERR_CANCELED";se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";se.ERR_INVALID_URL="ERR_INVALID_URL";const SR=null;function Dy(e){return M.isPlainObject(e)||M.isArray(e)}function qA(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function x1(e,t,r){return e?e.concat(t).map(function(i,a){return i=qA(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function OR(e){return M.isArray(e)&&!e.some(Dy)}const jR=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function dh(e,t,r){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!M.isUndefined(v[y])});const n=r.metaTokens,i=r.visitor||f,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(M.isBoolean(m))return m.toString();if(!l&&M.isBlob(m))throw new se("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,y,v){let g=m;if(m&&!v&&typeof m=="object"){if(M.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if(M.isArray(m)&&OR(m)||(M.isFileList(m)||M.endsWith(y,"[]"))&&(g=M.toArray(m)))return y=qA(y),g.forEach(function(w,O){!(M.isUndefined(w)||w===null)&&t.append(o===!0?x1([y],O,a):o===null?y:y+"[]",u(w))}),!1}return Dy(m)?!0:(t.append(x1(v,y,a),u(m)),!1)}const c=[],h=Object.assign(jR,{defaultVisitor:f,convertValue:u,isVisitable:Dy});function p(m,y){if(!M.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));c.push(m),M.forEach(m,function(g,b){(!(M.isUndefined(g)||g===null)&&i.call(t,g,M.isString(b)?b.trim():b,y,h))===!0&&p(g,y?y.concat(b):[b])}),c.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return p(e),t}function w1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function _0(e,t){this._pairs=[],e&&dh(e,this,t)}const KA=_0.prototype;KA.append=function(t,r){this._pairs.push([t,r])};KA.toString=function(t){const r=t?function(n){return t.call(this,n,w1)}:w1;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function _R(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function VA(e,t,r){if(!t)return e;const n=r&&r.encode||_R,i=M.isFunction(r)?{serialize:r}:r,a=i&&i.serialize;let o;if(a?o=a(t,i):o=M.isURLSearchParams(t)?t.toString():new _0(t,i).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class S1{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(n){n!==null&&t(n)})}}const P0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},PR=typeof URLSearchParams<"u"?URLSearchParams:_0,AR=typeof FormData<"u"?FormData:null,kR=typeof Blob<"u"?Blob:null,ER={isBrowser:!0,classes:{URLSearchParams:PR,FormData:AR,Blob:kR},protocols:["http","https","file","blob","url","data"]},A0=typeof window<"u"&&typeof document<"u",Ly=typeof navigator=="object"&&navigator||void 0,NR=A0&&(!Ly||["ReactNative","NativeScript","NS"].indexOf(Ly.product)<0),CR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",TR=A0&&window.location.href||"http://localhost",$R=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:A0,hasStandardBrowserEnv:NR,hasStandardBrowserWebWorkerEnv:CR,navigator:Ly,origin:TR},Symbol.toStringTag,{value:"Module"})),Et={...$R,...ER};function MR(e,t){return dh(e,new Et.classes.URLSearchParams,{visitor:function(r,n,i,a){return Et.isNode&&M.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function IR(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function RR(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}function GA(e){function t(r,n,i,a){let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&M.isArray(i)?i.length:o,l?(M.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!M.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&M.isArray(i[o])&&(i[o]=RR(i[o])),!s)}if(M.isFormData(e)&&M.isFunction(e.entries)){const r={};return M.forEachEntry(e,(n,i)=>{t(IR(n),i,r,0)}),r}return null}function DR(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ju={transitional:P0,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return i?JSON.stringify(GA(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return MR(t,this.formSerializer).toString();if((s=M.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return dh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),DR(t)):t}],transformResponse:[function(t){const r=this.transitional||Ju.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?se.from(s,se.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Et.classes.FormData,Blob:Et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{Ju.headers[e]={}});const LR=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zR=e=>{const t={};let r,n,i;return e&&e.split(`
|
||
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&LR[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},O1=Symbol("internals");function Zs(e){return e&&String(e).trim().toLowerCase()}function lf(e){return e===!1||e==null?e:M.isArray(e)?e.map(lf):String(e)}function FR(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const BR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fp(e,t,r,n,i){if(M.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!M.isString(t)){if(M.isString(n))return t.indexOf(n)!==-1;if(M.isRegExp(n))return n.test(t)}}function UR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function WR(e,t){const r=M.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const f=Zs(l);if(!f)throw new Error("header name must be a non-empty string");const c=M.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=lf(s))}const o=(s,l)=>M.forEach(s,(u,f)=>a(u,f,l));if(M.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(M.isString(t)&&(t=t.trim())&&!BR(t))o(zR(t),r);else if(M.isObject(t)&&M.isIterable(t)){let s={},l,u;for(const f of t){if(!M.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[u=f[0]]=(l=s[u])?M.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}o(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=Zs(t),t){const n=M.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return FR(i);if(M.isFunction(r))return r.call(this,i,n);if(M.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Zs(t),t){const n=M.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Fp(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=Zs(o),o){const s=M.findKey(n,o);s&&(!r||Fp(n,n[s],s,r))&&(delete n[s],i=!0)}}return M.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||Fp(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return M.forEach(this,(i,a)=>{const o=M.findKey(n,a);if(o){r[o]=lf(i),delete r[a];return}const s=t?UR(a):String(a).trim();s!==a&&delete r[a],r[s]=lf(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return M.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&M.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[O1]=this[O1]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Zs(o);n[s]||(WR(i,o),n[s]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Jt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});M.freezeMethods(Jt);function Bp(e,t){const r=this||Ju,n=t||r,i=Jt.from(n.headers);let a=n.data;return M.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function XA(e){return!!(e&&e.__CANCEL__)}let Zu=class extends se{constructor(t,r,n){super(t??"canceled",se.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function QA(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new se("Request failed with status code "+r.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function HR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qR(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[a];o||(o=u),r[i]=l,n[i]=u;let c=a,h=0;for(;c!==i;)h+=r[c++],c=c%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const p=f&&u-f;return p?Math.round(h*1e3/p):void 0}}function KR(e,t){let r=0,n=1e3/t,i,a;const o=(u,f=Date.now())=>{r=f,i=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const f=Date.now(),c=f-r;c>=n?o(u,f):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-c)))},()=>i&&o(i)]}const zf=(e,t,r=3)=>{let n=0;const i=qR(50,250);return KR(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),f=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},r)},j1=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},_1=e=>(...t)=>M.asap(()=>e(...t)),VR=Et.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Et.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Et.origin),Et.navigator&&/(msie|trident)/i.test(Et.navigator.userAgent)):()=>!0,GR=Et.hasStandardBrowserEnv?{write(e,t,r,n,i,a,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];M.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),M.isString(n)&&s.push(`path=${n}`),M.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),M.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function XR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function QR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function YA(e,t,r){let n=!XR(t);return e&&(n||r==!1)?QR(e,t):t}const P1=e=>e instanceof Jt?{...e}:e;function Ta(e,t){t=t||{};const r={};function n(u,f,c,h){return M.isPlainObject(u)&&M.isPlainObject(f)?M.merge.call({caseless:h},u,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function i(u,f,c,h){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u,c,h)}else return n(u,f,c,h)}function a(u,f){if(!M.isUndefined(f))return n(void 0,f)}function o(u,f){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,c){if(c in t)return n(u,f);if(c in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f,c)=>i(P1(u),P1(f),c,!0)};return M.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const c=M.hasOwnProp(l,f)?l[f]:i,h=c(e[f],t[f],f);M.isUndefined(h)&&c!==s||(r[f]=h)}),r}const JA=e=>{const t=Ta({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=Jt.from(o),t.url=VA(YA(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),M.isFormData(r)){if(Et.hasStandardBrowserEnv||Et.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(M.isFunction(r.getHeaders)){const l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([f,c])=>{u.includes(f.toLowerCase())&&o.set(f,c)})}}if(Et.hasStandardBrowserEnv&&(n&&M.isFunction(n)&&(n=n(t)),n||n!==!1&&VR(t.url))){const l=i&&a&&GR.read(a);l&&o.set(i,l)}return t},YR=typeof XMLHttpRequest<"u",JR=YR&&function(e){return new Promise(function(r,n){const i=JA(e);let a=i.data;const o=Jt.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,f,c,h,p,m;function y(){p&&p(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function g(){if(!v)return;const w=Jt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};QA(function(j){r(j),y()},function(j){n(j),y()},x),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(n(new se("Request aborted",se.ECONNABORTED,e,v)),v=null)},v.onerror=function(O){const x=O&&O.message?O.message:"Network Error",S=new se(x,se.ERR_NETWORK,e,v);S.event=O||null,n(S),v=null},v.ontimeout=function(){let O=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const x=i.transitional||P0;i.timeoutErrorMessage&&(O=i.timeoutErrorMessage),n(new se(O,x.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&M.forEach(o.toJSON(),function(O,x){v.setRequestHeader(x,O)}),M.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),u&&([h,m]=zf(u,!0),v.addEventListener("progress",h)),l&&v.upload&&([c,p]=zf(l),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(f=w=>{v&&(n(!w||w.type?new Zu(null,e,v):w),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const b=HR(i.url);if(b&&Et.protocols.indexOf(b)===-1){n(new se("Unsupported protocol "+b+":",se.ERR_BAD_REQUEST,e));return}v.send(a||null)})},ZR=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;n.abort(f instanceof se?f:new Zu(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new se(`timeout of ${t}ms exceeded`,se.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>M.asap(s),l}},e3=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},t3=async function*(e,t){for await(const r of r3(e))yield*e3(r,t)},r3=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},A1=(e,t,r,n)=>{const i=t3(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await i.next();if(u){s(),l.close();return}let c=f.byteLength;if(r){let h=a+=c;r(h)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},k1=64*1024,{isFunction:kc}=M,n3=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:E1,TextEncoder:N1}=M.global,C1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},i3=e=>{e=M.merge.call({skipUndefined:!0},n3,e);const{fetch:t,Request:r,Response:n}=e,i=t?kc(t):typeof fetch=="function",a=kc(r),o=kc(n);if(!i)return!1;const s=i&&kc(E1),l=i&&(typeof N1=="function"?(m=>y=>m.encode(y))(new N1):async m=>new Uint8Array(await new r(m).arrayBuffer())),u=a&&s&&C1(()=>{let m=!1;const y=new r(Et.origin,{body:new E1,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!y}),f=o&&s&&C1(()=>M.isReadableStream(new n("").body)),c={stream:f&&(m=>m.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!c[m]&&(c[m]=(y,v)=>{let g=y&&y[m];if(g)return g.call(y);throw new se(`Response type '${m}' is not supported`,se.ERR_NOT_SUPPORT,v)})});const h=async m=>{if(m==null)return 0;if(M.isBlob(m))return m.size;if(M.isSpecCompliantForm(m))return(await new r(Et.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(M.isArrayBufferView(m)||M.isArrayBuffer(m))return m.byteLength;if(M.isURLSearchParams(m)&&(m=m+""),M.isString(m))return(await l(m)).byteLength},p=async(m,y)=>{const v=M.toFiniteNumber(m.getContentLength());return v??h(y)};return async m=>{let{url:y,method:v,data:g,signal:b,cancelToken:w,timeout:O,onDownloadProgress:x,onUploadProgress:S,responseType:j,headers:_,withCredentials:P="same-origin",fetchOptions:N}=JA(m),$=t||fetch;j=j?(j+"").toLowerCase():"text";let T=ZR([b,w&&w.toAbortSignal()],O),L=null;const R=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let I;try{if(S&&u&&v!=="get"&&v!=="head"&&(I=await p(_,g))!==0){let V=new r(y,{method:"POST",body:g,duplex:"half"}),H;if(M.isFormData(g)&&(H=V.headers.get("content-type"))&&_.setContentType(H),V.body){const[X,ie]=j1(I,zf(_1(S)));g=A1(V.body,k1,X,ie)}}M.isString(P)||(P=P?"include":"omit");const D=a&&"credentials"in r.prototype,B={...N,signal:T,method:v.toUpperCase(),headers:_.normalize().toJSON(),body:g,duplex:"half",credentials:D?P:void 0};L=a&&new r(y,B);let C=await(a?$(L,N):$(y,B));const F=f&&(j==="stream"||j==="response");if(f&&(x||F&&R)){const V={};["status","statusText","headers"].forEach(xe=>{V[xe]=C[xe]});const H=M.toFiniteNumber(C.headers.get("content-length")),[X,ie]=x&&j1(H,zf(_1(x),!0))||[];C=new n(A1(C.body,k1,X,()=>{ie&&ie(),R&&R()}),V)}j=j||"text";let U=await c[M.findKey(c,j)||"text"](C,m);return!F&&R&&R(),await new Promise((V,H)=>{QA(V,H,{data:U,headers:Jt.from(C.headers),status:C.status,statusText:C.statusText,config:m,request:L})})}catch(D){throw R&&R(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,m,L,D&&D.response),{cause:D.cause||D}):se.from(D,D&&D.code,m,L,D&&D.response)}}},a3=new Map,ZA=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,a=[n,i,r];let o=a.length,s=o,l,u,f=a3;for(;s--;)l=a[s],u=f.get(l),u===void 0&&f.set(l,u=s?new Map:i3(t)),f=u;return u};ZA();const k0={http:SR,xhr:JR,fetch:{get:ZA}};M.forEach(k0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const T1=e=>`- ${e}`,o3=e=>M.isFunction(e)||e===null||e===!1;function s3(e,t){e=M.isArray(e)?e:[e];const{length:r}=e;let n,i;const a={};for(let o=0;o<r;o++){n=e[o];let s;if(i=n,!o3(n)&&(i=k0[(s=String(n)).toLowerCase()],i===void 0))throw new se(`Unknown adapter '${s}'`);if(i&&(M.isFunction(i)||(i=i.get(t))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
|
||
`+o.map(T1).join(`
|
||
`):" "+T1(o[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const e2={getAdapter:s3,adapters:k0};function Up(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zu(null,e)}function $1(e){return Up(e),e.headers=Jt.from(e.headers),e.data=Bp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e2.getAdapter(e.adapter||Ju.adapter,e)(e).then(function(n){return Up(e),n.data=Bp.call(e,e.transformResponse,n),n.headers=Jt.from(n.headers),n},function(n){return XA(n)||(Up(e),n&&n.response&&(n.response.data=Bp.call(e,e.transformResponse,n.response),n.response.headers=Jt.from(n.response.headers))),Promise.reject(n)})}const t2="1.13.5",hh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const M1={};hh.transitional=function(t,r,n){function i(a,o){return"[Axios v"+t2+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new se(i(o," has been removed"+(r?" in "+r:"")),se.ERR_DEPRECATED);return r&&!M1[o]&&(M1[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};hh.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function l3(e,t,r){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new se("option "+a+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new se("Unknown option "+a,se.ERR_BAD_OPTION)}}const uf={assertOptions:l3,validators:hh},hr=uf.validators;let wa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new S1,response:new S1}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
||
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ta(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&uf.assertOptions(n,{silentJSONParsing:hr.transitional(hr.boolean),forcedJSONParsing:hr.transitional(hr.boolean),clarifyTimeoutError:hr.transitional(hr.boolean),legacyInterceptorReqResOrdering:hr.transitional(hr.boolean)},!1),i!=null&&(M.isFunction(i)?r.paramsSerializer={serialize:i}:uf.assertOptions(i,{encode:hr.function,serialize:hr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),uf.assertOptions(r,{baseUrl:hr.spelling("baseURL"),withXsrfToken:hr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&M.merge(a.common,a[r.method]);a&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),r.headers=Jt.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;l=l&&y.synchronous;const v=r.transitional||P0;v&&v.legacyInterceptorReqResOrdering?s.unshift(y.fulfilled,y.rejected):s.push(y.fulfilled,y.rejected)});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let f,c=0,h;if(!l){const m=[$1.bind(this),void 0];for(m.unshift(...s),m.push(...u),h=m.length,f=Promise.resolve(r);c<h;)f=f.then(m[c++],m[c++]);return f}h=s.length;let p=r;for(;c<h;){const m=s[c++],y=s[c++];try{p=m(p)}catch(v){y.call(this,v);break}}try{f=$1.call(this,p)}catch(m){return Promise.reject(m)}for(c=0,h=u.length;c<h;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=Ta(this.defaults,t);const r=YA(t.baseURL,t.url,t.allowAbsoluteUrls);return VA(r,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){wa.prototype[t]=function(r,n){return this.request(Ta(n||{},{method:t,url:r,data:(n||{}).data}))}});M.forEach(["post","put","patch"],function(t){function r(n){return function(a,o,s){return this.request(Ta(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}wa.prototype[t]=r(),wa.prototype[t+"Form"]=r(!0)});let u3=class r2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Zu(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new r2(function(i){t=i}),cancel:t}}};function c3(e){return function(r){return e.apply(null,r)}}function f3(e){return M.isObject(e)&&e.isAxiosError===!0}const zy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zy).forEach(([e,t])=>{zy[t]=e});function n2(e){const t=new wa(e),r=RA(wa.prototype.request,t);return M.extend(r,wa.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return n2(Ta(e,i))},r}const Ye=n2(Ju);Ye.Axios=wa;Ye.CanceledError=Zu;Ye.CancelToken=u3;Ye.isCancel=XA;Ye.VERSION=t2;Ye.toFormData=dh;Ye.AxiosError=se;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=c3;Ye.isAxiosError=f3;Ye.mergeConfig=Ta;Ye.AxiosHeaders=Jt;Ye.formToJSON=e=>GA(M.isHTMLForm(e)?new FormData(e):e);Ye.getAdapter=e2.getAdapter;Ye.HttpStatusCode=zy;Ye.default=Ye;const{Axios:Gse,AxiosError:Xse,CanceledError:Qse,isCancel:Yse,CancelToken:Jse,VERSION:Zse,all:ele,Cancel:tle,isAxiosError:rle,spread:nle,toFormData:ile,AxiosHeaders:ale,HttpStatusCode:ole,formToJSON:sle,getAdapter:lle,mergeConfig:ule}=Ye,je=Ye.create({baseURL:"/api",headers:{"Content-Type":"application/json"}});je.interceptors.request.use(e=>{const t=localStorage.getItem("access_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});je.interceptors.response.use(e=>e,async e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),window.location.href="/login"),Promise.reject(e)});const d3={login:(e,t)=>je.post("/auth/login",{email:e,password:t}),register:e=>je.post("/auth/register",e),refresh:e=>je.post("/auth/refresh",{refresh_token:e})},h3={me:()=>je.get("/users/me"),updateMe:e=>je.patch("/users/me",e)},ph={list:()=>je.get("/organizations"),create:e=>je.post("/organizations",e),get:e=>je.get(`/organizations/${e}`),update:(e,t)=>je.patch(`/organizations/${e}`,t),members:e=>je.get(`/organizations/${e}/members`),invite:(e,t)=>je.post(`/organizations/${e}/members`,t)},Ec={list:e=>je.get("/integrations",{params:{org_id:e}}),create:(e,t)=>je.post("/integrations",t,{params:{org_id:e}}),get:(e,t)=>je.get(`/integrations/${t}`,{params:{org_id:e}}),update:(e,t,r)=>je.patch(`/integrations/${t}`,r,{params:{org_id:e}}),delete:(e,t)=>je.delete(`/integrations/${t}`,{params:{org_id:e}}),test:(e,t)=>je.post(`/integrations/${t}/test`,null,{params:{org_id:e}})},Al={list:(e,t={})=>je.get("/issues",{params:{org_id:e,...t}}),stats:e=>je.get("/issues/stats",{params:{org_id:e}}),get:(e,t)=>je.get(`/issues/${t}`,{params:{org_id:e}}),create:(e,t)=>je.post("/issues",t,{params:{org_id:e}}),reanalyze:(e,t)=>je.post(`/issues/${t}/reanalyze`,null,{params:{org_id:e}}),addComment:(e,t,r)=>je.post(`/issues/${t}/comments`,r,{params:{org_id:e}})},Fy={summary:(e,t=30)=>je.get("/reports/summary",{params:{org_id:e,days:t}}),exportCsv:(e,t=30)=>je.get("/reports/export/csv",{params:{org_id:e,days:t},responseType:"blob"})},i2=A.createContext(null);function p3({children:e}){const[t,r]=A.useState(null),[n,i]=A.useState(!0),[a,o]=A.useState(null);A.useEffect(()=>{localStorage.getItem("access_token")?s():i(!1)},[]);const s=async()=>{try{const c=await h3.me();r(c.data);const h=localStorage.getItem("current_org");h&&o(JSON.parse(h))}catch{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}finally{i(!1)}},l=async(c,h)=>{const p=await d3.login(c,h);localStorage.setItem("access_token",p.data.access_token),localStorage.setItem("refresh_token",p.data.refresh_token),await s()},u=()=>{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("current_org"),r(null),o(null)},f=c=>{o(c),localStorage.setItem("current_org",JSON.stringify(c))};return d.jsx(i2.Provider,{value:{user:t,loading:n,login:l,logout:u,currentOrg:a,selectOrg:f},children:e})}const er=()=>A.useContext(i2);function a2(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=a2(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function fe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=a2(e))&&(n&&(n+=" "),n+=t);return n}const m3=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},y3=(e,t)=>({classGroupId:e,validator:t}),o2=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ff="-",I1=[],v3="arbitrary..",g3=e=>{const t=x3(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return b3(o);const s=o.split(Ff),l=s[0]===""&&s.length>1?1:0;return s2(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=n[o],u=r[o];return l?u?m3(u,l):l:u||I1}return r[o]||I1}}},s2=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const u=s2(e,t+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=t===0?e.join(Ff):e.slice(t).join(Ff),l=o.length;for(let u=0;u<l;u++){const f=o[u];if(f.validator(s))return f.classGroupId}},b3=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?v3+n:void 0})(),x3=e=>{const{theme:t,classGroups:r}=e;return w3(r,t)},w3=(e,t)=>{const r=o2();for(const n in e){const i=e[n];E0(i,r,n,t)}return r},E0=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];S3(o,t,r,n)}},S3=(e,t,r,n)=>{if(typeof e=="string"){O3(e,t,r);return}if(typeof e=="function"){j3(e,t,r,n);return}_3(e,t,r,n)},O3=(e,t,r)=>{const n=e===""?t:l2(t,e);n.classGroupId=r},j3=(e,t,r,n)=>{if(P3(e)){E0(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(y3(r,e))},_3=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,l]=i[o];E0(l,l2(t,s),r,n)}},l2=(e,t)=>{let r=e;const n=t.split(Ff),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=o2(),r.nextPart.set(o,s)),r=s}return r},P3=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,A3=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},By="!",R1=":",k3=[],D1=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),E3=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,l=0,u;const f=i.length;for(let y=0;y<f;y++){const v=i[y];if(o===0&&s===0){if(v===R1){a.push(i.slice(l,y)),l=y+1;continue}if(v==="/"){u=y;continue}}v==="["?o++:v==="]"?o--:v==="("?s++:v===")"&&s--}const c=a.length===0?i:i.slice(l);let h=c,p=!1;c.endsWith(By)?(h=c.slice(0,-1),p=!0):c.startsWith(By)&&(h=c.slice(1),p=!0);const m=u&&u>l?u-l:void 0;return D1(a,p,h,m)};if(t){const i=t+R1,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):D1(k3,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},N3=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",l=t.has(o);s||l?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},C3=e=>({cache:A3(e.cacheSize),parseClassName:E3(e),sortModifiers:N3(e),...g3(e)}),T3=/\s+/,$3=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(T3);let l="";for(let u=s.length-1;u>=0;u-=1){const f=s[u],{isExternal:c,modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=r(f);if(c){l=f+(l.length>0?" "+l:l);continue}let v=!!y,g=n(v?m.substring(0,y):m);if(!g){if(!v){l=f+(l.length>0?" "+l:l);continue}if(g=n(m),!g){l=f+(l.length>0?" "+l:l);continue}v=!1}const b=h.length===0?"":h.length===1?h[0]:a(h).join(":"),w=p?b+By:b,O=w+g;if(o.indexOf(O)>-1)continue;o.push(O);const x=i(g,v);for(let S=0;S<x.length;++S){const j=x[S];o.push(w+j)}l=f+(l.length>0?" "+l:l)}return l},M3=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=u2(r))&&(i&&(i+=" "),i+=n);return i},u2=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=u2(e[n]))&&(r&&(r+=" "),r+=t);return r},I3=(e,...t)=>{let r,n,i,a;const o=l=>{const u=t.reduce((f,c)=>c(f),e());return r=C3(u),n=r.cache.get,i=r.cache.set,a=s,s(l)},s=l=>{const u=n(l);if(u)return u;const f=$3(l,r);return i(l,f),f};return a=o,(...l)=>a(M3(...l))},R3=[],nt=e=>{const t=r=>r[e]||R3;return t.isThemeGetter=!0,t},c2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,f2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,D3=/^\d+\/\d+$/,L3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,F3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,B3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,U3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ja=e=>D3.test(e),he=e=>!!e&&!Number.isNaN(Number(e)),Kn=e=>!!e&&Number.isInteger(Number(e)),Wp=e=>e.endsWith("%")&&he(e.slice(0,-1)),dn=e=>L3.test(e),d2=()=>!0,W3=e=>z3.test(e)&&!F3.test(e),N0=()=>!1,H3=e=>B3.test(e),q3=e=>U3.test(e),K3=e=>!Z(e)&&!ee(e),V3=e=>Ri(e,m2,N0),Z=e=>c2.test(e),Hi=e=>Ri(e,y2,W3),L1=e=>Ri(e,t4,he),G3=e=>Ri(e,g2,d2),X3=e=>Ri(e,v2,N0),z1=e=>Ri(e,h2,N0),Q3=e=>Ri(e,p2,q3),Nc=e=>Ri(e,b2,H3),ee=e=>f2.test(e),el=e=>Ha(e,y2),Y3=e=>Ha(e,v2),F1=e=>Ha(e,h2),J3=e=>Ha(e,m2),Z3=e=>Ha(e,p2),Cc=e=>Ha(e,b2,!0),e4=e=>Ha(e,g2,!0),Ri=(e,t,r)=>{const n=c2.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ha=(e,t,r=!1)=>{const n=f2.exec(e);return n?n[1]?t(n[1]):r:!1},h2=e=>e==="position"||e==="percentage",p2=e=>e==="image"||e==="url",m2=e=>e==="length"||e==="size"||e==="bg-size",y2=e=>e==="length",t4=e=>e==="number",v2=e=>e==="family-name",g2=e=>e==="number"||e==="weight",b2=e=>e==="shadow",r4=()=>{const e=nt("color"),t=nt("font"),r=nt("text"),n=nt("font-weight"),i=nt("tracking"),a=nt("leading"),o=nt("breakpoint"),s=nt("container"),l=nt("spacing"),u=nt("radius"),f=nt("shadow"),c=nt("inset-shadow"),h=nt("text-shadow"),p=nt("drop-shadow"),m=nt("blur"),y=nt("perspective"),v=nt("aspect"),g=nt("ease"),b=nt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...O(),ee,Z],S=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],_=()=>[ee,Z,l],P=()=>[Ja,"full","auto",..._()],N=()=>[Kn,"none","subgrid",ee,Z],$=()=>["auto",{span:["full",Kn,ee,Z]},Kn,ee,Z],T=()=>[Kn,"auto",ee,Z],L=()=>["auto","min","max","fr",ee,Z],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",..._()],B=()=>[Ja,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],C=()=>[e,ee,Z],F=()=>[...O(),F1,z1,{position:[ee,Z]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",J3,V3,{size:[ee,Z]}],H=()=>[Wp,el,Hi],X=()=>["","none","full",u,ee,Z],ie=()=>["",he,el,Hi],xe=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>[he,Wp,F1,z1],gt=()=>["","none",m,ee,Z],G=()=>["none",he,ee,Z],le=()=>["none",he,ee,Z],ue=()=>[he,ee,Z],W=()=>[Ja,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dn],breakpoint:[dn],color:[d2],container:[dn],"drop-shadow":[dn],ease:["in","out","in-out"],font:[K3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dn],shadow:[dn],spacing:["px",he],text:[dn],"text-shadow":[dn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ja,Z,ee,v]}],container:["container"],columns:[{columns:[he,Z,ee,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[Kn,"auto",ee,Z]}],basis:[{basis:[Ja,"full","auto",s,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[he,Ja,"auto","initial","none",Z]}],grow:[{grow:["",he,ee,Z]}],shrink:[{shrink:["",he,ee,Z]}],order:[{order:[Kn,"first","last","none",ee,Z]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[s,"screen",...B()]}],"min-w":[{"min-w":[s,"screen","none",...B()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",r,el,Hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,e4,G3]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wp,Z]}],"font-family":[{font:[Y3,X3,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ee,Z]}],"line-clamp":[{"line-clamp":[he,"none",ee,L1]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",ee,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[he,"from-font","auto",ee,Hi]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[he,"auto",ee,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Kn,ee,Z],radial:["",ee,Z],conic:[Kn,ee,Z]},Z3,Q3]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[he,ee,Z]}],"outline-w":[{outline:["",he,el,Hi]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",f,Cc,Nc]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",c,Cc,Nc]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[he,Hi]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",h,Cc,Nc]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[he,ee,Z]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[he]}],"mask-image-linear-from-pos":[{"mask-linear-from":Se()}],"mask-image-linear-to-pos":[{"mask-linear-to":Se()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":Se()}],"mask-image-t-to-pos":[{"mask-t-to":Se()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":Se()}],"mask-image-r-to-pos":[{"mask-r-to":Se()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":Se()}],"mask-image-b-to-pos":[{"mask-b-to":Se()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":Se()}],"mask-image-l-to-pos":[{"mask-l-to":Se()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":Se()}],"mask-image-x-to-pos":[{"mask-x-to":Se()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":Se()}],"mask-image-y-to-pos":[{"mask-y-to":Se()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[ee,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":Se()}],"mask-image-radial-to-pos":[{"mask-radial-to":Se()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[he]}],"mask-image-conic-from-pos":[{"mask-conic-from":Se()}],"mask-image-conic-to-pos":[{"mask-conic-to":Se()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,Z]}],filter:[{filter:["","none",ee,Z]}],blur:[{blur:gt()}],brightness:[{brightness:[he,ee,Z]}],contrast:[{contrast:[he,ee,Z]}],"drop-shadow":[{"drop-shadow":["","none",p,Cc,Nc]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",he,ee,Z]}],"hue-rotate":[{"hue-rotate":[he,ee,Z]}],invert:[{invert:["",he,ee,Z]}],saturate:[{saturate:[he,ee,Z]}],sepia:[{sepia:["",he,ee,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,Z]}],"backdrop-blur":[{"backdrop-blur":gt()}],"backdrop-brightness":[{"backdrop-brightness":[he,ee,Z]}],"backdrop-contrast":[{"backdrop-contrast":[he,ee,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",he,ee,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[he,ee,Z]}],"backdrop-invert":[{"backdrop-invert":["",he,ee,Z]}],"backdrop-opacity":[{"backdrop-opacity":[he,ee,Z]}],"backdrop-saturate":[{"backdrop-saturate":[he,ee,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",he,ee,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[he,"initial",ee,Z]}],ease:[{ease:["linear","initial",g,ee,Z]}],delay:[{delay:[he,ee,Z]}],animate:[{animate:["none",b,ee,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ee,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[ee,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:W()}],"translate-x":[{"translate-x":W()}],"translate-y":[{"translate-y":W()}],"translate-z":[{"translate-z":W()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,Z]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[he,el,Hi,L1]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},n4=I3(r4);function ye(...e){return n4(fe(e))}/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const x2=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const i4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const a4=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const B1=e=>{const t=a4(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var o4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const s4=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const l4=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>A.createElement("svg",{ref:l,...o4,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:x2("lucide",i),...!a&&!s4(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,f])=>A.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const te=(e,t)=>{const r=A.forwardRef(({className:n,...i},a)=>A.createElement(l4,{ref:a,iconNode:t,className:x2(`lucide-${i4(B1(e))}`,`lucide-${e}`,n),...i}));return r.displayName=B1(e),r};/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const u4=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],c4=te("arrow-left",u4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const f4=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ec=te("arrow-right",f4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const d4=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],w2=te("bell",d4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const h4=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Bf=te("brain",h4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const p4=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],$a=te("building-2",p4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const m4=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],y4=te("calendar",m4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const v4=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],S2=te("chart-column",v4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const g4=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],C0=te("check",g4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const b4=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Uy=te("chevron-right",b4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const x4=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],w4=te("chevrons-up-down",x4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const S4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],tu=te("circle-alert",S4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const O4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ei=te("circle-check",O4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const j4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],T0=te("circle-x",j4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],mh=te("clock",_4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const P4=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Wy=te("code-xml",P4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const A4=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Hy=te("copy",A4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const k4=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],E4=te("crown",k4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const N4=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],C4=te("download",N4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const T4=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],$4=te("ellipsis-vertical",T4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const M4=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],U1=te("external-link",M4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const I4=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Uf=te("eye",I4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const R4=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],qy=te("eye-off",R4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const D4=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],L4=te("file-code",D4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const z4=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],F4=te("folder-tree",z4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const B4=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Hp=te("git-branch",B4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const U4=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],yh=te("git-pull-request",U4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const W4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],O2=te("globe",W4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const H4=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],j2=te("key",H4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const q4=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],K4=te("layout-dashboard",q4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const V4=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],G4=te("lightbulb",V4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const X4=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Q4=te("link-2",X4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Y4=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Zt=te("loader-circle",Y4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const J4=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],_2=te("lock",J4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Z4=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],eD=te("log-out",Z4);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tD=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],vh=te("mail",tD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rD=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],nD=te("message-square",rD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const iD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],aD=te("panel-left-close",iD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const oD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],sD=te("panel-left-open",oD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lD=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],P2=te("plug",lD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const uD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ma=te("plus",uD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cD=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],A2=te("refresh-cw",cD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fD=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],qp=te("save",fD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dD=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],cf=te("search",dD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hD=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],pD=te("send",hD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mD=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],yD=te("server",mD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vD=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],k2=te("settings",vD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gD=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],E2=te("shield",gD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bD=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],xD=te("sliders-horizontal",bD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wD=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],SD=te("tag",wD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const OD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],jD=te("target",OD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _D=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],W1=te("test-tube",_D);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const PD=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$0=te("ticket-check",PD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const AD=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],H1=te("ticket",AD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kD=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],N2=te("trash-2",kD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ED=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],ND=te("trending-down",ED);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const CD=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],TD=te("trending-up",CD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $D=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],MD=te("triangle-alert",$D);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ID=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],RD=te("user-cog",ID);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const DD=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],LD=te("user",DD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zD=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],C2=te("users",zD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const FD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],BD=te("x",FD);/**
|
||
* @license lucide-react v0.574.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const UD=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],ru=te("zap",UD),WD=[{label:"Main",items:[{path:"/",label:"Dashboard",icon:K4},{path:"/issues",label:"Issues",icon:$0}]},{label:"Management",items:[{path:"/integrations",label:"Integrations",icon:P2},{path:"/team",label:"Team",icon:C2},{path:"/reports",label:"Reports",icon:S2}]},{label:"System",items:[{path:"/settings",label:"Settings",icon:k2}]}],HD={"/":"Dashboard","/issues":"Issues","/integrations":"Integrations","/team":"Team","/reports":"Reports","/settings":"Settings"};function qD(){var w,O,x,S;const{user:e,logout:t,currentOrg:r,selectOrg:n}=er(),i=ks(),a=Wa(),[o,s]=A.useState(!1),[l,u]=A.useState(!1),[f,c]=A.useState(!1),[h,p]=A.useState(!1),[m,y]=A.useState(""),{data:v}=ki({queryKey:["organizations"],queryFn:()=>ph.list()});A.useEffect(()=>{const j=_=>{(_.metaKey||_.ctrlKey)&&_.key==="k"&&(_.preventDefault(),c(P=>!P)),_.key==="Escape"&&(c(!1),u(!1))};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[]);const g=()=>{const j=i.pathname.split("/").filter(Boolean);if(j.length===0)return[{label:"Dashboard",path:"/"}];const _=[];let P="";for(const N of j)P+=`/${N}`,_.push({label:HD[P]||N.charAt(0).toUpperCase()+N.slice(1),path:P});return _},b=j=>j==="/"?i.pathname==="/":i.pathname.startsWith(j);return d.jsxs("div",{className:"min-h-screen flex bg-gray-950 text-gray-200",children:[f&&d.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>c(!1),children:[d.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),d.jsx("div",{className:"relative w-full max-w-lg mx-4 animate-slide-up",onClick:j=>j.stopPropagation(),children:d.jsxs("div",{className:"card border-gray-700 shadow-2xl",children:[d.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-800",children:[d.jsx(cf,{size:18,className:"text-gray-500"}),d.jsx("input",{autoFocus:!0,value:m,onChange:j=>y(j.target.value),placeholder:"Search issues, projects, settings...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),d.jsx("kbd",{className:"kbd",children:"ESC"})]}),d.jsxs("div",{className:"p-2 max-h-80 overflow-auto",children:[["Dashboard","Issues","Integrations","Team","Reports","Settings"].filter(j=>j.toLowerCase().includes(m.toLowerCase())).map(j=>d.jsxs("button",{className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-gray-300 hover:bg-gray-800 transition-colors",onClick:()=>{a(`/${j.toLowerCase()==="dashboard"?"":j.toLowerCase()}`),c(!1),y("")},children:[d.jsx(Uy,{size:14,className:"text-gray-600"}),j]},j)),m&&d.jsxs("div",{className:"px-3 py-6 text-center text-sm text-gray-500",children:['Press Enter to search for "',m,'"']})]})]})})]}),d.jsxs("aside",{className:ye("fixed top-0 left-0 h-full flex flex-col border-r border-gray-800/50 bg-gray-950 z-40 transition-all duration-300",o?"w-[68px]":"w-[260px]"),children:[d.jsx("div",{className:ye("h-14 flex items-center border-b border-gray-800/50 px-4",o&&"justify-center px-0"),children:o?d.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center",children:d.jsx(ru,{size:16,className:"text-white"})}):d.jsxs("div",{className:"flex items-center gap-2.5",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:d.jsx(ru,{size:16,className:"text-white"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"text-sm font-semibold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-[10px] text-gray-500 font-medium",children:"Enterprise v2.0"})]})]})}),!o&&d.jsxs("div",{className:"px-3 py-3 border-b border-gray-800/50 relative",children:[d.jsxs("button",{onClick:()=>u(!l),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg bg-gray-900/60 hover:bg-gray-800/80 border border-gray-800/50 transition-all",children:[d.jsx("div",{className:"w-6 h-6 rounded bg-indigo-600/20 flex items-center justify-center flex-shrink-0",children:d.jsx($a,{size:12,className:"text-indigo-400"})}),d.jsx("span",{className:"flex-1 text-left text-sm truncate",children:(r==null?void 0:r.name)||"Select org"}),d.jsx(w4,{size:14,className:"text-gray-500"})]}),l&&(v==null?void 0:v.data)&&d.jsxs("div",{className:"absolute left-3 right-3 top-full mt-1 bg-gray-900 border border-gray-700 rounded-lg shadow-xl z-50 animate-slide-up",children:[v.data.map(j=>d.jsxs("button",{onClick:()=>{n(j),u(!1)},className:ye("w-full flex items-center gap-2.5 px-3 py-2 text-sm hover:bg-gray-800 first:rounded-t-lg last:rounded-b-lg transition-colors",(r==null?void 0:r.id)===j.id&&"bg-indigo-600/10 text-indigo-400"),children:[d.jsx($a,{size:14}),j.name]},j.id)),d.jsxs("button",{onClick:()=>{a("/settings"),u(!1)},className:"w-full flex items-center gap-2.5 px-3 py-2 text-sm text-indigo-400 hover:bg-gray-800 border-t border-gray-800 rounded-b-lg",children:[d.jsx(Ma,{size:14}),"New organization"]})]})]}),!o&&d.jsx("div",{className:"px-3 pt-3",children:d.jsxs("button",{onClick:()=>c(!0),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-gray-500 hover:text-gray-300 bg-gray-900/40 hover:bg-gray-800/60 border border-gray-800/30 transition-all text-sm",children:[d.jsx(cf,{size:14}),d.jsx("span",{className:"flex-1 text-left",children:"Search..."}),d.jsxs("div",{className:"flex items-center gap-0.5",children:[d.jsx("kbd",{className:"kbd",children:"⌘"}),d.jsx("kbd",{className:"kbd",children:"K"})]})]})}),d.jsx("nav",{className:"flex-1 overflow-auto px-3 py-4 space-y-5",children:WD.map(j=>d.jsxs("div",{children:[!o&&d.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-gray-600 px-3 mb-1.5",children:j.label}),d.jsx("div",{className:"space-y-0.5",children:j.items.map(_=>{const P=_.icon,N=b(_.path);return d.jsxs(Ea,{to:_.path,title:o?_.label:void 0,className:ye("sidebar-item",N?"sidebar-item-active":"sidebar-item-inactive",o&&"justify-center px-0"),children:[d.jsx(P,{size:18,strokeWidth:N?2:1.5}),!o&&d.jsx("span",{children:_.label})]},_.path)})})]},j.label))}),d.jsx("div",{className:"px-3 py-2 border-t border-gray-800/50",children:d.jsxs("button",{onClick:()=>s(!o),className:ye("sidebar-item sidebar-item-inactive w-full",o&&"justify-center px-0"),children:[o?d.jsx(sD,{size:18}):d.jsx(aD,{size:18}),!o&&d.jsx("span",{children:"Collapse"})]})}),d.jsx("div",{className:ye("px-3 py-3 border-t border-gray-800/50",o&&"px-2"),children:d.jsxs("div",{className:ye("flex items-center gap-2.5",o&&"justify-center"),children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white flex-shrink-0",children:((O=(w=e==null?void 0:e.full_name)==null?void 0:w[0])==null?void 0:O.toUpperCase())||((S=(x=e==null?void 0:e.email)==null?void 0:x[0])==null?void 0:S.toUpperCase())||"?"}),!o&&d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium truncate",children:(e==null?void 0:e.full_name)||(e==null?void 0:e.email)}),d.jsxs("button",{onClick:t,className:"text-xs text-gray-500 hover:text-red-400 transition-colors flex items-center gap-1",children:[d.jsx(eD,{size:10}),"Sign out"]})]})]})})]}),d.jsxs("div",{className:ye("flex-1 flex flex-col transition-all duration-300",o?"ml-[68px]":"ml-[260px]"),children:[d.jsxs("header",{className:"h-14 flex items-center justify-between px-6 border-b border-gray-800/50 bg-gray-950/80 backdrop-blur-md sticky top-0 z-30",children:[d.jsx("div",{className:"flex items-center gap-1.5 text-sm",children:g().map((j,_)=>d.jsxs("div",{className:"flex items-center gap-1.5",children:[_>0&&d.jsx(Uy,{size:12,className:"text-gray-600"}),d.jsx(Ea,{to:j.path,className:ye("hover:text-white transition-colors",_===g().length-1?"text-white font-medium":"text-gray-400"),children:j.label})]},j.path))}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>c(!0),className:"btn-ghost btn-icon rounded-lg",children:d.jsx(cf,{size:16})}),d.jsxs("button",{onClick:()=>p(!h),className:"btn-ghost btn-icon rounded-lg relative",children:[d.jsx(w2,{size:16}),d.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 rounded-full bg-indigo-500"})]})]})]}),d.jsx("main",{className:"flex-1 overflow-auto",children:d.jsx(UM,{})})]})]})}function KD(){const[e,t]=A.useState(""),[r,n]=A.useState(""),[i,a]=A.useState(""),[o,s]=A.useState(!1),{login:l}=er(),u=Wa(),f=async c=>{var h,p;c.preventDefault(),a(""),s(!0);try{await l(e,r),u("/")}catch(m){a(((p=(h=m.response)==null?void 0:h.data)==null?void 0:p.detail)||"Invalid email or password")}finally{s(!1)}};return d.jsxs("div",{className:"min-h-screen flex bg-gray-950",children:[d.jsxs("div",{className:"hidden lg:flex lg:w-1/2 relative overflow-hidden",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-indigo-600 via-indigo-700 to-purple-800"}),d.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"32px 32px"}}),d.jsxs("div",{className:"relative z-10 flex flex-col justify-center px-16",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[d.jsx("div",{className:"w-12 h-12 rounded-xl bg-white/10 backdrop-blur flex items-center justify-center",children:d.jsx(ru,{size:24,className:"text-white"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-bold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-sm text-indigo-200",children:"Enterprise v2.0"})]})]}),d.jsxs("h2",{className:"text-4xl font-bold text-white leading-tight mb-4",children:["AI-Powered Issue",d.jsx("br",{}),"Analysis & Resolution"]}),d.jsx("p",{className:"text-lg text-indigo-200 max-w-md",children:"Automatically analyze issues from JIRA, ServiceNow, GitHub and more. Get root cause analysis and automated Pull Requests."}),d.jsx("div",{className:"mt-12 grid grid-cols-3 gap-6",children:[{value:"95%",label:"Accuracy"},{value:"10x",label:"Faster Resolution"},{value:"24/7",label:"Automated"}].map(c=>d.jsxs("div",{children:[d.jsx("p",{className:"text-3xl font-bold text-white",children:c.value}),d.jsx("p",{className:"text-sm text-indigo-300 mt-1",children:c.label})]},c.label))})]})]}),d.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsx("div",{className:"lg:hidden text-center mb-8",children:d.jsxs("div",{className:"inline-flex items-center gap-2.5",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/25",children:d.jsx(ru,{size:20,className:"text-white"})}),d.jsxs("div",{className:"text-left",children:[d.jsx("h1",{className:"text-lg font-bold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise v2.0"})]})]})}),d.jsxs("div",{className:"mb-8",children:[d.jsx("h2",{className:"text-2xl font-bold text-white",children:"Welcome back"}),d.jsx("p",{className:"text-gray-400 mt-1",children:"Sign in to your account to continue"})]}),d.jsxs("form",{onSubmit:f,className:"space-y-4",children:[i&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:i}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Email"}),d.jsxs("div",{className:"relative",children:[d.jsx(vh,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"email",value:e,onChange:c=>t(c.target.value),className:"input pl-10",placeholder:"you@company.com",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Password"}),d.jsxs("div",{className:"relative",children:[d.jsx(_2,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"password",value:r,onChange:c=>n(c.target.value),className:"input pl-10",placeholder:"••••••••",required:!0})]})]}),d.jsx("button",{type:"submit",disabled:o,className:"btn btn-primary w-full h-11 justify-center mt-2",children:o?d.jsx(Zt,{size:16,className:"animate-spin"}):d.jsxs(d.Fragment,{children:["Sign in",d.jsx(ec,{size:16})]})})]}),d.jsxs("p",{className:"text-center mt-6 text-sm text-gray-500",children:["Don't have an account?"," ",d.jsx(Ea,{to:"/register",className:"text-indigo-400 hover:text-indigo-300 transition-colors",children:"Create account"})]})]})})]})}function VD(){const[e,t]=A.useState({email:"",password:"",full_name:""}),[r,n]=A.useState(""),[i,a]=A.useState(!1),{register:o}=er(),s=Wa(),l=async u=>{var f,c;u.preventDefault(),n(""),a(!0);try{await o(e),s("/")}catch(h){n(((c=(f=h.response)==null?void 0:f.data)==null?void 0:c.detail)||"Registration failed")}finally{a(!1)}};return d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsx("div",{className:"text-center mb-8",children:d.jsxs("div",{className:"inline-flex items-center gap-2.5",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/25",children:d.jsx(ru,{size:20,className:"text-white"})}),d.jsxs("div",{className:"text-left",children:[d.jsx("h1",{className:"text-lg font-bold text-white",children:"JIRA AI Fixer"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise v2.0"})]})]})}),d.jsxs("div",{className:"mb-8",children:[d.jsx("h2",{className:"text-2xl font-bold text-white",children:"Create account"}),d.jsx("p",{className:"text-gray-400 mt-1",children:"Get started with AI-powered issue analysis"})]}),d.jsxs("form",{onSubmit:l,className:"space-y-4",children:[r&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:r}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Full Name"}),d.jsxs("div",{className:"relative",children:[d.jsx(LD,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"text",value:e.full_name,onChange:u=>t({...e,full_name:u.target.value}),className:"input pl-10",placeholder:"John Doe",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Email"}),d.jsxs("div",{className:"relative",children:[d.jsx(vh,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"email",value:e.email,onChange:u=>t({...e,email:u.target.value}),className:"input pl-10",placeholder:"you@company.com",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Password"}),d.jsxs("div",{className:"relative",children:[d.jsx(_2,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{type:"password",value:e.password,onChange:u=>t({...e,password:u.target.value}),className:"input pl-10",placeholder:"••••••••",minLength:8,required:!0})]})]}),d.jsx("button",{type:"submit",disabled:i,className:"btn btn-primary w-full h-11 justify-center mt-2",children:i?d.jsx(Zt,{size:16,className:"animate-spin"}):d.jsxs(d.Fragment,{children:[d.jsx("span",{children:"Create account"}),d.jsx(ec,{size:16})]})})]}),d.jsxs("p",{className:"text-center mt-6 text-sm text-gray-500",children:["Already have an account?"," ",d.jsx(Ea,{to:"/login",className:"text-indigo-400 hover:text-indigo-300 transition-colors",children:"Sign in"})]})]})})}function GD(){const[e,t]=A.useState([]),[r,n]=A.useState(!0),[i,a]=A.useState(""),{selectOrg:o}=er(),s=Wa();A.useEffect(()=>{l()},[]);const l=async()=>{var f,c;try{const h=await ph.list();t(h.data),h.data.length===1&&u(h.data[0])}catch(h){a(((c=(f=h.response)==null?void 0:f.data)==null?void 0:c.detail)||"Failed to load organizations")}finally{n(!1)}},u=f=>{o(f),s("/")};return r?d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950",children:d.jsx(Zt,{size:32,className:"text-indigo-400 animate-spin"})}):e.length===0?(s("/create-organization"),null):d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:d.jsxs("div",{className:"w-full max-w-2xl",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-indigo-600/10 border border-indigo-500/20 mb-4",children:d.jsx($a,{size:32,className:"text-indigo-400"})}),d.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Select Organization"}),d.jsx("p",{className:"text-gray-400",children:"Choose which organization you want to work with"})]}),i&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 mb-6 animate-fade-in",children:i}),d.jsx("div",{className:"grid gap-3 mb-6",children:e.map(f=>d.jsx("button",{onClick:()=>u(f),className:"card hover:bg-gray-800/50 transition-colors p-6 text-left group",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:"w-12 h-12 rounded-xl bg-indigo-600/10 border border-indigo-500/20 flex items-center justify-center",children:d.jsx($a,{size:24,className:"text-indigo-400"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-white mb-1",children:f.name}),d.jsxs("p",{className:"text-sm text-gray-500",children:[f.member_count||0," ",f.member_count===1?"member":"members"]})]})]}),d.jsx(ec,{size:20,className:"text-gray-600 group-hover:text-indigo-400 transition-colors"})]})},f.id))}),d.jsxs("button",{onClick:()=>s("/create-organization"),className:"btn btn-secondary w-full h-11 justify-center",children:[d.jsx(Ma,{size:16}),"Create New Organization"]})]})})}function XD(){const[e,t]=A.useState(""),[r,n]=A.useState(""),[i,a]=A.useState(!1),{selectOrg:o}=er(),s=Wa(),l=async u=>{var f,c;u.preventDefault(),n(""),a(!0);try{const h=await ph.create({name:e});o(h.data),s("/")}catch(h){n(((c=(f=h.response)==null?void 0:f.data)==null?void 0:c.detail)||"Failed to create organization")}finally{a(!1)}};return d.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:d.jsxs("div",{className:"w-full max-w-md",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-indigo-600/10 border border-indigo-500/20 mb-4",children:d.jsx($a,{size:32,className:"text-indigo-400"})}),d.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Create Your Organization"}),d.jsx("p",{className:"text-gray-400",children:"Get started by creating your first organization"})]}),d.jsx("div",{className:"card",children:d.jsxs("form",{onSubmit:l,className:"space-y-6",children:[r&&d.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:r}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-2 uppercase tracking-wide",children:"Organization Name"}),d.jsx("input",{type:"text",value:e,onChange:u=>t(u.target.value),className:"input",placeholder:"Acme Inc.",required:!0,autoFocus:!0}),d.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"You can change this later in settings"})]}),d.jsx("button",{type:"submit",disabled:i,className:"btn btn-primary w-full h-11 justify-center",children:i?d.jsx(Zt,{size:16,className:"animate-spin"}):d.jsxs(d.Fragment,{children:["Create Organization",d.jsx(ec,{size:16})]})})]})}),d.jsx("p",{className:"text-center mt-6 text-xs text-gray-500",children:"You can invite team members after creating your organization"})]})})}var QD=Array.isArray,tr=QD,YD=typeof uc=="object"&&uc&&uc.Object===Object&&uc,T2=YD,JD=T2,ZD=typeof self=="object"&&self&&self.Object===Object&&self,eL=JD||ZD||Function("return this")(),cn=eL,tL=cn,rL=tL.Symbol,tc=rL,q1=tc,$2=Object.prototype,nL=$2.hasOwnProperty,iL=$2.toString,tl=q1?q1.toStringTag:void 0;function aL(e){var t=nL.call(e,tl),r=e[tl];try{e[tl]=void 0;var n=!0}catch{}var i=iL.call(e);return n&&(t?e[tl]=r:delete e[tl]),i}var oL=aL,sL=Object.prototype,lL=sL.toString;function uL(e){return lL.call(e)}var cL=uL,K1=tc,fL=oL,dL=cL,hL="[object Null]",pL="[object Undefined]",V1=K1?K1.toStringTag:void 0;function mL(e){return e==null?e===void 0?pL:hL:V1&&V1 in Object(e)?fL(e):dL(e)}var Fn=mL;function yL(e){return e!=null&&typeof e=="object"}var Bn=yL,vL=Fn,gL=Bn,bL="[object Symbol]";function xL(e){return typeof e=="symbol"||gL(e)&&vL(e)==bL}var Cs=xL,wL=tr,SL=Cs,OL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jL=/^\w*$/;function _L(e,t){if(wL(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||SL(e)?!0:jL.test(e)||!OL.test(e)||t!=null&&e in Object(t)}var M0=_L;function PL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Di=PL;const Ts=Ae(Di);var AL=Fn,kL=Di,EL="[object AsyncFunction]",NL="[object Function]",CL="[object GeneratorFunction]",TL="[object Proxy]";function $L(e){if(!kL(e))return!1;var t=AL(e);return t==NL||t==CL||t==EL||t==TL}var I0=$L;const oe=Ae(I0);var ML=cn,IL=ML["__core-js_shared__"],RL=IL,Kp=RL,G1=function(){var e=/[^.]+$/.exec(Kp&&Kp.keys&&Kp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function DL(e){return!!G1&&G1 in e}var LL=DL,zL=Function.prototype,FL=zL.toString;function BL(e){if(e!=null){try{return FL.call(e)}catch{}try{return e+""}catch{}}return""}var M2=BL,UL=I0,WL=LL,HL=Di,qL=M2,KL=/[\\^$.*+?()[\]{}|]/g,VL=/^\[object .+?Constructor\]$/,GL=Function.prototype,XL=Object.prototype,QL=GL.toString,YL=XL.hasOwnProperty,JL=RegExp("^"+QL.call(YL).replace(KL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZL(e){if(!HL(e)||WL(e))return!1;var t=UL(e)?JL:VL;return t.test(qL(e))}var e5=ZL;function t5(e,t){return e==null?void 0:e[t]}var r5=t5,n5=e5,i5=r5;function a5(e,t){var r=i5(e,t);return n5(r)?r:void 0}var qa=a5,o5=qa,s5=o5(Object,"create"),gh=s5,X1=gh;function l5(){this.__data__=X1?X1(null):{},this.size=0}var u5=l5;function c5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var f5=c5,d5=gh,h5="__lodash_hash_undefined__",p5=Object.prototype,m5=p5.hasOwnProperty;function y5(e){var t=this.__data__;if(d5){var r=t[e];return r===h5?void 0:r}return m5.call(t,e)?t[e]:void 0}var v5=y5,g5=gh,b5=Object.prototype,x5=b5.hasOwnProperty;function w5(e){var t=this.__data__;return g5?t[e]!==void 0:x5.call(t,e)}var S5=w5,O5=gh,j5="__lodash_hash_undefined__";function _5(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=O5&&t===void 0?j5:t,this}var P5=_5,A5=u5,k5=f5,E5=v5,N5=S5,C5=P5;function $s(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$s.prototype.clear=A5;$s.prototype.delete=k5;$s.prototype.get=E5;$s.prototype.has=N5;$s.prototype.set=C5;var T5=$s;function $5(){this.__data__=[],this.size=0}var M5=$5;function I5(e,t){return e===t||e!==e&&t!==t}var R0=I5,R5=R0;function D5(e,t){for(var r=e.length;r--;)if(R5(e[r][0],t))return r;return-1}var bh=D5,L5=bh,z5=Array.prototype,F5=z5.splice;function B5(e){var t=this.__data__,r=L5(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():F5.call(t,r,1),--this.size,!0}var U5=B5,W5=bh;function H5(e){var t=this.__data__,r=W5(t,e);return r<0?void 0:t[r][1]}var q5=H5,K5=bh;function V5(e){return K5(this.__data__,e)>-1}var G5=V5,X5=bh;function Q5(e,t){var r=this.__data__,n=X5(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Y5=Q5,J5=M5,Z5=U5,ez=q5,tz=G5,rz=Y5;function Ms(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ms.prototype.clear=J5;Ms.prototype.delete=Z5;Ms.prototype.get=ez;Ms.prototype.has=tz;Ms.prototype.set=rz;var xh=Ms,nz=qa,iz=cn,az=nz(iz,"Map"),D0=az,Q1=T5,oz=xh,sz=D0;function lz(){this.size=0,this.__data__={hash:new Q1,map:new(sz||oz),string:new Q1}}var uz=lz;function cz(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var fz=cz,dz=fz;function hz(e,t){var r=e.__data__;return dz(t)?r[typeof t=="string"?"string":"hash"]:r.map}var wh=hz,pz=wh;function mz(e){var t=pz(this,e).delete(e);return this.size-=t?1:0,t}var yz=mz,vz=wh;function gz(e){return vz(this,e).get(e)}var bz=gz,xz=wh;function wz(e){return xz(this,e).has(e)}var Sz=wz,Oz=wh;function jz(e,t){var r=Oz(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var _z=jz,Pz=uz,Az=yz,kz=bz,Ez=Sz,Nz=_z;function Is(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Is.prototype.clear=Pz;Is.prototype.delete=Az;Is.prototype.get=kz;Is.prototype.has=Ez;Is.prototype.set=Nz;var L0=Is,I2=L0,Cz="Expected a function";function z0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Cz);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(z0.Cache||I2),r}z0.Cache=I2;var R2=z0;const Tz=Ae(R2);var $z=R2,Mz=500;function Iz(e){var t=$z(e,function(n){return r.size===Mz&&r.clear(),n}),r=t.cache;return t}var Rz=Iz,Dz=Rz,Lz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zz=/\\(\\)?/g,Fz=Dz(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Lz,function(r,n,i,a){t.push(i?a.replace(zz,"$1"):n||r)}),t}),Bz=Fz;function Uz(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var F0=Uz,Y1=tc,Wz=F0,Hz=tr,qz=Cs,J1=Y1?Y1.prototype:void 0,Z1=J1?J1.toString:void 0;function D2(e){if(typeof e=="string")return e;if(Hz(e))return Wz(e,D2)+"";if(qz(e))return Z1?Z1.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Kz=D2,Vz=Kz;function Gz(e){return e==null?"":Vz(e)}var L2=Gz,Xz=tr,Qz=M0,Yz=Bz,Jz=L2;function Zz(e,t){return Xz(e)?e:Qz(e,t)?[e]:Yz(Jz(e))}var z2=Zz,e6=Cs;function t6(e){if(typeof e=="string"||e6(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Sh=t6,r6=z2,n6=Sh;function i6(e,t){t=r6(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[n6(t[r++])];return r&&r==n?e:void 0}var B0=i6,a6=B0;function o6(e,t,r){var n=e==null?void 0:a6(e,t);return n===void 0?r:n}var F2=o6;const ur=Ae(F2);function s6(e){return e==null}var l6=s6;const ce=Ae(l6);var u6=Fn,c6=tr,f6=Bn,d6="[object String]";function h6(e){return typeof e=="string"||!c6(e)&&f6(e)&&u6(e)==d6}var p6=h6;const Ia=Ae(p6);var B2={exports:{}},ke={};/**
|
||
* @license React
|
||
* react-is.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 U0=Symbol.for("react.element"),W0=Symbol.for("react.portal"),Oh=Symbol.for("react.fragment"),jh=Symbol.for("react.strict_mode"),_h=Symbol.for("react.profiler"),Ph=Symbol.for("react.provider"),Ah=Symbol.for("react.context"),m6=Symbol.for("react.server_context"),kh=Symbol.for("react.forward_ref"),Eh=Symbol.for("react.suspense"),Nh=Symbol.for("react.suspense_list"),Ch=Symbol.for("react.memo"),Th=Symbol.for("react.lazy"),y6=Symbol.for("react.offscreen"),U2;U2=Symbol.for("react.module.reference");function Er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case U0:switch(e=e.type,e){case Oh:case _h:case jh:case Eh:case Nh:return e;default:switch(e=e&&e.$$typeof,e){case m6:case Ah:case kh:case Th:case Ch:case Ph:return e;default:return t}}case W0:return t}}}ke.ContextConsumer=Ah;ke.ContextProvider=Ph;ke.Element=U0;ke.ForwardRef=kh;ke.Fragment=Oh;ke.Lazy=Th;ke.Memo=Ch;ke.Portal=W0;ke.Profiler=_h;ke.StrictMode=jh;ke.Suspense=Eh;ke.SuspenseList=Nh;ke.isAsyncMode=function(){return!1};ke.isConcurrentMode=function(){return!1};ke.isContextConsumer=function(e){return Er(e)===Ah};ke.isContextProvider=function(e){return Er(e)===Ph};ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===U0};ke.isForwardRef=function(e){return Er(e)===kh};ke.isFragment=function(e){return Er(e)===Oh};ke.isLazy=function(e){return Er(e)===Th};ke.isMemo=function(e){return Er(e)===Ch};ke.isPortal=function(e){return Er(e)===W0};ke.isProfiler=function(e){return Er(e)===_h};ke.isStrictMode=function(e){return Er(e)===jh};ke.isSuspense=function(e){return Er(e)===Eh};ke.isSuspenseList=function(e){return Er(e)===Nh};ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Oh||e===_h||e===jh||e===Eh||e===Nh||e===y6||typeof e=="object"&&e!==null&&(e.$$typeof===Th||e.$$typeof===Ch||e.$$typeof===Ph||e.$$typeof===Ah||e.$$typeof===kh||e.$$typeof===U2||e.getModuleId!==void 0)};ke.typeOf=Er;B2.exports=ke;var v6=B2.exports,g6=Fn,b6=Bn,x6="[object Number]";function w6(e){return typeof e=="number"||b6(e)&&g6(e)==x6}var W2=w6;const S6=Ae(W2);var O6=W2;function j6(e){return O6(e)&&e!=+e}var _6=j6;const Rs=Ae(_6);var Mt=function(t){return t===0?0:t>0?1:-1},aa=function(t){return Ia(t)&&t.indexOf("%")===t.length-1},q=function(t){return S6(t)&&!Rs(t)},P6=function(t){return ce(t)},ct=function(t){return q(t)||Ia(t)},A6=0,Ds=function(t){var r=++A6;return"".concat(t||"").concat(r)},It=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(!q(t)&&!Ia(t))return n;var a;if(aa(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Rs(a)&&(a=n),i&&a>r&&(a=r),a},ei=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},k6=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},qt=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function Wf(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ur(n,t))===r})}var E6=function(t,r){return q(t)&&q(r)?t-r:Ia(t)&&Ia(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Po(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Ky(e){"@babel/helpers - typeof";return Ky=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},Ky(e)}var N6=["viewBox","children"],C6=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],ew=["points","pathLength"],Vp={svg:N6,polygon:ew,polyline:ew},H0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Hf=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(A.isValidElement(t)&&(n=t.props),!Ts(n))return null;var i={};return Object.keys(n).forEach(function(a){H0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},T6=function(t,r,n){return function(i){return t(r,n,i),null}},Ra=function(t,r,n){if(!Ts(t)||Ky(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];H0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=T6(o,r,n))}),i},$6=["children"],M6=["children"];function tw(e,t){if(e==null)return{};var r=I6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vy(e){"@babel/helpers - typeof";return Vy=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},Vy(e)}var rw={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},kn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},nw=null,Gp=null,q0=function e(t){if(t===nw&&Array.isArray(Gp))return Gp;var r=[];return A.Children.forEach(t,function(n){ce(n)||(v6.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Gp=r,nw=t,r};function _r(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return kn(i)}):n=[kn(t)],q0(e).forEach(function(i){var a=ur(i,"type.displayName")||ur(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ar(e,t){var r=_r(e,t);return r&&r[0]}var iw=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},R6=["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"],D6=function(t){return t&&t.type&&Ia(t.type)&&R6.indexOf(t.type)>=0},L6=function(t){return t&&Vy(t)==="object"&&"clipDot"in t},z6=function(t,r,n,i){var a,o=(a=Vp==null?void 0:Vp[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!oe(t)&&(i&&o.includes(r)||C6.includes(r))||n&&H0.includes(r)},ne=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(A.isValidElement(t)&&(i=t.props),!Ts(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;z6((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Gy=function e(t,r){if(t===r)return!0;var n=A.Children.count(t);if(n!==A.Children.count(r))return!1;if(n===0)return!0;if(n===1)return aw(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!aw(a,o))return!1}return!0},aw=function(t,r){if(ce(t)&&ce(r))return!0;if(!ce(t)&&!ce(r)){var n=t.props||{},i=n.children,a=tw(n,$6),o=r.props||{},s=o.children,l=tw(o,M6);return i&&s?Po(a,l)&&Gy(i,s):!i&&!s?Po(a,l):!1}return!1},ow=function(t,r){var n=[],i={};return q0(t).forEach(function(a,o){if(D6(a))n.push(a);else if(a){var s=kn(a.type),l=r[s]||{},u=l.handler,f=l.once;if(u&&(!f||!i[s])){var c=u(a,s,o);n.push(c),i[s]=!0}}}),n},F6=function(t){var r=t&&t.type;return r&&rw[r]?rw[r]:null},B6=function(t,r){return q0(r).indexOf(t)},U6=["children","width","height","viewBox","className","style","title","desc"];function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xy.apply(this,arguments)}function W6(e,t){if(e==null)return{};var r=H6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=W6(e,U6),f=i||{width:r,height:n,x:0,y:0},c=fe("recharts-surface",a);return k.createElement("svg",Xy({},ne(u,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),k.createElement("title",null,s),k.createElement("desc",null,l),t)}var q6=["children","className"];function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function K6(e,t){if(e==null)return{};var r=V6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ve=k.forwardRef(function(e,t){var r=e.children,n=e.className,i=K6(e,q6),a=fe("recharts-layer",n);return k.createElement("g",Yy({className:a},ne(i,!0),{ref:t}),r)}),Ur=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function G6(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?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<i;)a[n]=e[n+t];return a}var X6=G6,Q6=X6;function Y6(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Q6(e,t,r)}var J6=Y6,Z6="\\ud800-\\udfff",e8="\\u0300-\\u036f",t8="\\ufe20-\\ufe2f",r8="\\u20d0-\\u20ff",n8=e8+t8+r8,i8="\\ufe0e\\ufe0f",a8="\\u200d",o8=RegExp("["+a8+Z6+n8+i8+"]");function s8(e){return o8.test(e)}var H2=s8;function l8(e){return e.split("")}var u8=l8,q2="\\ud800-\\udfff",c8="\\u0300-\\u036f",f8="\\ufe20-\\ufe2f",d8="\\u20d0-\\u20ff",h8=c8+f8+d8,p8="\\ufe0e\\ufe0f",m8="["+q2+"]",Jy="["+h8+"]",Zy="\\ud83c[\\udffb-\\udfff]",y8="(?:"+Jy+"|"+Zy+")",K2="[^"+q2+"]",V2="(?:\\ud83c[\\udde6-\\uddff]){2}",G2="[\\ud800-\\udbff][\\udc00-\\udfff]",v8="\\u200d",X2=y8+"?",Q2="["+p8+"]?",g8="(?:"+v8+"(?:"+[K2,V2,G2].join("|")+")"+Q2+X2+")*",b8=Q2+X2+g8,x8="(?:"+[K2+Jy+"?",Jy,V2,G2,m8].join("|")+")",w8=RegExp(Zy+"(?="+Zy+")|"+x8+b8,"g");function S8(e){return e.match(w8)||[]}var O8=S8,j8=u8,_8=H2,P8=O8;function A8(e){return _8(e)?P8(e):j8(e)}var k8=A8,E8=J6,N8=H2,C8=k8,T8=L2;function $8(e){return function(t){t=T8(t);var r=N8(t)?C8(t):void 0,n=r?r[0]:t.charAt(0),i=r?E8(r,1).join(""):t.slice(1);return n[e]()+i}}var M8=$8,I8=M8,R8=I8("toUpperCase"),D8=R8;const $h=Ae(D8);function Te(e){return function(){return e}}const Y2=Math.cos,qf=Math.sin,qr=Math.sqrt,Kf=Math.PI,Mh=2*Kf,ev=Math.PI,tv=2*ev,Qi=1e-6,L8=tv-Qi;function J2(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function z8(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return J2;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class F8{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?J2:z8(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,f=o-t,c=s-r,h=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Qi)if(!(Math.abs(c*l-u*f)>Qi)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,m=i-s,y=l*l+u*u,v=p*p+m*m,g=Math.sqrt(y),b=Math.sqrt(h),w=a*Math.tan((ev-Math.acos((y+h-v)/(2*g*b)))/2),O=w/b,x=w/g;Math.abs(O-1)>Qi&&this._append`L${t+O*f},${r+O*c}`,this._append`A${a},${a},0,0,${+(c*p>f*m)},${this._x1=t+x*l},${this._y1=r+x*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,f=r+l,c=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Qi||Math.abs(this._y1-f)>Qi)&&this._append`L${u},${f}`,n&&(h<0&&(h=h%tv+tv),h>L8?this._append`A${n},${n},0,1,${c},${t-s},${r-l}A${n},${n},0,1,${c},${this._x1=u},${this._y1=f}`:h>Qi&&this._append`A${n},${n},0,${+(h>=ev)},${c},${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 K0(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 F8(t)}function V0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Z2(e){this._context=e}Z2.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 Ih(e){return new Z2(e)}function ek(e){return e[0]}function tk(e){return e[1]}function rk(e,t){var r=Te(!0),n=null,i=Ih,a=null,o=K0(s);e=typeof e=="function"?e:e===void 0?ek:Te(e),t=typeof t=="function"?t:t===void 0?tk:Te(t);function s(l){var u,f=(l=V0(l)).length,c,h=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=f;++u)!(u<f&&r(c=l[u],u,l))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(c,u,l),+t(c,u,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Te(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Te(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Te(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Tc(e,t,r){var n=null,i=Te(!0),a=null,o=Ih,s=null,l=K0(u);e=typeof e=="function"?e:e===void 0?ek:Te(+e),t=typeof t=="function"?t:Te(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?tk:Te(+r);function u(c){var h,p,m,y=(c=V0(c)).length,v,g=!1,b,w=new Array(y),O=new Array(y);for(a==null&&(s=o(b=l())),h=0;h<=y;++h){if(!(h<y&&i(v=c[h],h,c))===g)if(g=!g)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=h-1;m>=p;--m)s.point(w[m],O[m]);s.lineEnd(),s.areaEnd()}g&&(w[h]=+e(v,h,c),O[h]=+t(v,h,c),s.point(n?+n(v,h,c):w[h],r?+r(v,h,c):O[h]))}if(b)return s=null,b+""||null}function f(){return rk().defined(i).curve(o).context(a)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Te(+c),n=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Te(+c),u):e},u.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Te(+c),u):n},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Te(+c),r=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Te(+c),u):t},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Te(+c),u):r},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(r)},u.lineX1=function(){return f().x(n).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Te(!!c),u):i},u.curve=function(c){return arguments.length?(o=c,a!=null&&(s=o(a)),u):o},u.context=function(c){return arguments.length?(c==null?a=s=null:s=o(a=c),u):a},u}class nk{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 B8(e){return new nk(e,!0)}function U8(e){return new nk(e,!1)}const G0={draw(e,t){const r=qr(t/Kf);e.moveTo(r,0),e.arc(0,0,r,0,Mh)}},W8={draw(e,t){const r=qr(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()}},ik=qr(1/3),H8=ik*2,q8={draw(e,t){const r=qr(t/H8),n=r*ik;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},K8={draw(e,t){const r=qr(t),n=-r/2;e.rect(n,n,r,r)}},V8=.8908130915292852,ak=qf(Kf/10)/qf(7*Kf/10),G8=qf(Mh/10)*ak,X8=-Y2(Mh/10)*ak,Q8={draw(e,t){const r=qr(t*V8),n=G8*r,i=X8*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Mh*a/5,s=Y2(o),l=qf(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Xp=qr(3),Y8={draw(e,t){const r=-qr(t/(Xp*3));e.moveTo(0,r*2),e.lineTo(-Xp*r,-r),e.lineTo(Xp*r,-r),e.closePath()}},pr=-.5,mr=qr(3)/2,rv=1/qr(12),J8=(rv/2+1)*3,Z8={draw(e,t){const r=qr(t/J8),n=r/2,i=r*rv,a=n,o=r*rv+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(pr*n-mr*i,mr*n+pr*i),e.lineTo(pr*a-mr*o,mr*a+pr*o),e.lineTo(pr*s-mr*l,mr*s+pr*l),e.lineTo(pr*n+mr*i,pr*i-mr*n),e.lineTo(pr*a+mr*o,pr*o-mr*a),e.lineTo(pr*s+mr*l,pr*l-mr*s),e.closePath()}};function eF(e,t){let r=null,n=K0(i);e=typeof e=="function"?e:Te(e||G0),t=typeof t=="function"?t:Te(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Te(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Te(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Vf(){}function Gf(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 ok(e){this._context=e}ok.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:Gf(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:Gf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tF(e){return new ok(e)}function sk(e){this._context=e}sk.prototype={areaStart:Vf,areaEnd:Vf,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:Gf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rF(e){return new sk(e)}function lk(e){this._context=e}lk.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:Gf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nF(e){return new lk(e)}function uk(e){this._context=e}uk.prototype={areaStart:Vf,areaEnd:Vf,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 iF(e){return new uk(e)}function sw(e){return e<0?-1:1}function lw(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(sw(a)+sw(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function uw(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Qp(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Xf(e){this._context=e}Xf.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:Qp(this,this._t0,uw(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,Qp(this,uw(this,r=lw(this,e,t)),r);break;default:Qp(this,this._t0,r=lw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function ck(e){this._context=new fk(e)}(ck.prototype=Object.create(Xf.prototype)).point=function(e,t){Xf.prototype.point.call(this,t,e)};function fk(e){this._context=e}fk.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 aF(e){return new Xf(e)}function oF(e){return new ck(e)}function dk(e){this._context=e}dk.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=cw(e),i=cw(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function cw(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function sF(e){return new dk(e)}function Rh(e,t){this._context=e,this._t=t}Rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function lF(e){return new Rh(e,.5)}function uF(e){return new Rh(e,0)}function cF(e){return new Rh(e,1)}function Yo(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function nv(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function fF(e,t){return e[t]}function dF(e){const t=[];return t.key=e,t}function hF(){var e=Te([]),t=nv,r=Yo,n=fF;function i(a){var o=Array.from(e.apply(this,arguments),dF),s,l=o.length,u=-1,f;for(const c of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(c,o[s].key,u,a)]).data=c;for(s=0,f=V0(t(o));s<l;++s)o[f[s]].index=s;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Te(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Te(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?nv:typeof a=="function"?a:Te(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Yo,i):r},i}function pF(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Yo(e,t)}}function mF(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Yo(e,t)}}function yF(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var f=e[t[s]],c=f[n][1]||0,h=f[n-1][1]||0,p=(c-h)/2,m=0;m<s;++m){var y=e[t[m]],v=y[n][1]||0,g=y[n-1][1]||0;p+=v-g}l+=c,u+=p*c}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Yo(e,t)}}function nu(e){"@babel/helpers - typeof";return nu=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},nu(e)}var vF=["type","size","sizeType"];function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iv.apply(this,arguments)}function fw(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 dw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(r),!0).forEach(function(n){gF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gF(e,t,r){return t=bF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bF(e){var t=xF(e,"string");return nu(t)=="symbol"?t:t+""}function xF(e,t){if(nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wF(e,t){if(e==null)return{};var r=SF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hk={symbolCircle:G0,symbolCross:W8,symbolDiamond:q8,symbolSquare:K8,symbolStar:Q8,symbolTriangle:Y8,symbolWye:Z8},OF=Math.PI/180,jF=function(t){var r="symbol".concat($h(t));return hk[r]||G0},_F=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*OF;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},PF=function(t,r){hk["symbol".concat($h(t))]=r},X0=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=wF(t,vF),u=dw(dw({},l),{},{type:n,size:a,sizeType:s}),f=function(){var v=jF(n),g=eF().type(v).size(_F(a,s,n));return g()},c=u.className,h=u.cx,p=u.cy,m=ne(u,!0);return h===+h&&p===+p&&a===+a?k.createElement("path",iv({},m,{className:fe("recharts-symbols",c),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};X0.registerSymbol=PF;function Jo(e){"@babel/helpers - typeof";return Jo=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},Jo(e)}function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},av.apply(this,arguments)}function hw(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 AF(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hw(Object(r),!0).forEach(function(n){iu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mk(n.key),n)}}function NF(e,t,r){return t&&EF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CF(e,t,r){return t=Qf(t),TF(e,pk()?Reflect.construct(t,r||[],Qf(e).constructor):t.apply(e,r))}function TF(e,t){if(t&&(Jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $F(e)}function $F(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pk=function(){return!!e})()}function Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qf(e)}function MF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ov(e,t)}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ov(e,t)}function iu(e,t,r){return t=mk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mk(e){var t=IF(e,"string");return Jo(t)=="symbol"?t:t+""}function IF(e,t){if(Jo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yr=32,Q0=function(e){function t(){return kF(this,t),CF(this,t,arguments)}return MF(t,e),NF(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=yr/2,o=yr/6,s=yr/3,l=n.inactive?i:n.color;if(n.type==="plainline")return k.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:yr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return k.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
|
||
H`).concat(yr,"M").concat(2*s,",").concat(a,`
|
||
A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return k.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(yr/8,"h").concat(yr,"v").concat(yr*3/4,"h").concat(-yr,"z"),className:"recharts-legend-icon"});if(k.isValidElement(n.legendIcon)){var u=AF({},n);return delete u.legendIcon,k.cloneElement(n.legendIcon,u)}return k.createElement(X0,{fill:l,cx:a,cy:a,size:yr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,f={x:0,y:0,width:yr,height:yr},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,m){var y=p.formatter||l,v=fe(iu(iu({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=oe(p.value)?null:p.value;Ur(!oe(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=p.inactive?u:p.color;return k.createElement("li",av({className:v,style:c,key:"legend-item-".concat(m)},Ra(n.props,p,m)),k.createElement(Qy,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),k.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(g,p,m):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return k.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(A.PureComponent);iu(Q0,"displayName","Legend");iu(Q0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var RF=xh;function DF(){this.__data__=new RF,this.size=0}var LF=DF;function zF(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var FF=zF;function BF(e){return this.__data__.get(e)}var UF=BF;function WF(e){return this.__data__.has(e)}var HF=WF,qF=xh,KF=D0,VF=L0,GF=200;function XF(e,t){var r=this.__data__;if(r instanceof qF){var n=r.__data__;if(!KF||n.length<GF-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new VF(n)}return r.set(e,t),this.size=r.size,this}var QF=XF,YF=xh,JF=LF,ZF=FF,eB=UF,tB=HF,rB=QF;function Ls(e){var t=this.__data__=new YF(e);this.size=t.size}Ls.prototype.clear=JF;Ls.prototype.delete=ZF;Ls.prototype.get=eB;Ls.prototype.has=tB;Ls.prototype.set=rB;var yk=Ls,nB="__lodash_hash_undefined__";function iB(e){return this.__data__.set(e,nB),this}var aB=iB;function oB(e){return this.__data__.has(e)}var sB=oB,lB=L0,uB=aB,cB=sB;function Yf(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new lB;++t<r;)this.add(e[t])}Yf.prototype.add=Yf.prototype.push=uB;Yf.prototype.has=cB;var vk=Yf;function fB(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var gk=fB;function dB(e,t){return e.has(t)}var bk=dB,hB=vk,pB=gk,mB=bk,yB=1,vB=2;function gB(e,t,r,n,i,a){var o=r&yB,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,h=!0,p=r&vB?new hB:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var m=e[c],y=t[c];if(n)var v=o?n(y,m,c,t,e,a):n(m,y,c,e,t,a);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!pB(t,function(g,b){if(!mB(p,b)&&(m===g||i(m,g,r,n,a)))return p.push(b)})){h=!1;break}}else if(!(m===y||i(m,y,r,n,a))){h=!1;break}}return a.delete(e),a.delete(t),h}var xk=gB,bB=cn,xB=bB.Uint8Array,wB=xB;function SB(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var OB=SB;function jB(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Y0=jB,pw=tc,mw=wB,_B=R0,PB=xk,AB=OB,kB=Y0,EB=1,NB=2,CB="[object Boolean]",TB="[object Date]",$B="[object Error]",MB="[object Map]",IB="[object Number]",RB="[object RegExp]",DB="[object Set]",LB="[object String]",zB="[object Symbol]",FB="[object ArrayBuffer]",BB="[object DataView]",yw=pw?pw.prototype:void 0,Yp=yw?yw.valueOf:void 0;function UB(e,t,r,n,i,a,o){switch(r){case BB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case FB:return!(e.byteLength!=t.byteLength||!a(new mw(e),new mw(t)));case CB:case TB:case IB:return _B(+e,+t);case $B:return e.name==t.name&&e.message==t.message;case RB:case LB:return e==t+"";case MB:var s=AB;case DB:var l=n&EB;if(s||(s=kB),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=NB,o.set(e,t);var f=PB(s(e),s(t),n,i,a,o);return o.delete(e),f;case zB:if(Yp)return Yp.call(e)==Yp.call(t)}return!1}var WB=UB;function HB(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var wk=HB,qB=wk,KB=tr;function VB(e,t,r){var n=t(e);return KB(e)?n:qB(n,r(e))}var GB=VB;function XB(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var QB=XB;function YB(){return[]}var JB=YB,ZB=QB,eU=JB,tU=Object.prototype,rU=tU.propertyIsEnumerable,vw=Object.getOwnPropertySymbols,nU=vw?function(e){return e==null?[]:(e=Object(e),ZB(vw(e),function(t){return rU.call(e,t)}))}:eU,iU=nU;function aU(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var oU=aU,sU=Fn,lU=Bn,uU="[object Arguments]";function cU(e){return lU(e)&&sU(e)==uU}var fU=cU,gw=fU,dU=Bn,Sk=Object.prototype,hU=Sk.hasOwnProperty,pU=Sk.propertyIsEnumerable,mU=gw(function(){return arguments}())?gw:function(e){return dU(e)&&hU.call(e,"callee")&&!pU.call(e,"callee")},J0=mU,Jf={exports:{}};function yU(){return!1}var vU=yU;Jf.exports;(function(e,t){var r=cn,n=vU,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(Jf,Jf.exports);var Ok=Jf.exports,gU=9007199254740991,bU=/^(?:0|[1-9]\d*)$/;function xU(e,t){var r=typeof e;return t=t??gU,!!t&&(r=="number"||r!="symbol"&&bU.test(e))&&e>-1&&e%1==0&&e<t}var Z0=xU,wU=9007199254740991;function SU(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wU}var eb=SU,OU=Fn,jU=eb,_U=Bn,PU="[object Arguments]",AU="[object Array]",kU="[object Boolean]",EU="[object Date]",NU="[object Error]",CU="[object Function]",TU="[object Map]",$U="[object Number]",MU="[object Object]",IU="[object RegExp]",RU="[object Set]",DU="[object String]",LU="[object WeakMap]",zU="[object ArrayBuffer]",FU="[object DataView]",BU="[object Float32Array]",UU="[object Float64Array]",WU="[object Int8Array]",HU="[object Int16Array]",qU="[object Int32Array]",KU="[object Uint8Array]",VU="[object Uint8ClampedArray]",GU="[object Uint16Array]",XU="[object Uint32Array]",Re={};Re[BU]=Re[UU]=Re[WU]=Re[HU]=Re[qU]=Re[KU]=Re[VU]=Re[GU]=Re[XU]=!0;Re[PU]=Re[AU]=Re[zU]=Re[kU]=Re[FU]=Re[EU]=Re[NU]=Re[CU]=Re[TU]=Re[$U]=Re[MU]=Re[IU]=Re[RU]=Re[DU]=Re[LU]=!1;function QU(e){return _U(e)&&jU(e.length)&&!!Re[OU(e)]}var YU=QU;function JU(e){return function(t){return e(t)}}var jk=JU,Zf={exports:{}};Zf.exports;(function(e,t){var r=T2,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Zf,Zf.exports);var ZU=Zf.exports,e7=YU,t7=jk,bw=ZU,xw=bw&&bw.isTypedArray,r7=xw?t7(xw):e7,_k=r7,n7=oU,i7=J0,a7=tr,o7=Ok,s7=Z0,l7=_k,u7=Object.prototype,c7=u7.hasOwnProperty;function f7(e,t){var r=a7(e),n=!r&&i7(e),i=!r&&!n&&o7(e),a=!r&&!n&&!i&&l7(e),o=r||n||i||a,s=o?n7(e.length,String):[],l=s.length;for(var u in e)(t||c7.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||s7(u,l)))&&s.push(u);return s}var d7=f7,h7=Object.prototype;function p7(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||h7;return e===r}var m7=p7;function y7(e,t){return function(r){return e(t(r))}}var Pk=y7,v7=Pk,g7=v7(Object.keys,Object),b7=g7,x7=m7,w7=b7,S7=Object.prototype,O7=S7.hasOwnProperty;function j7(e){if(!x7(e))return w7(e);var t=[];for(var r in Object(e))O7.call(e,r)&&r!="constructor"&&t.push(r);return t}var _7=j7,P7=I0,A7=eb;function k7(e){return e!=null&&A7(e.length)&&!P7(e)}var rc=k7,E7=d7,N7=_7,C7=rc;function T7(e){return C7(e)?E7(e):N7(e)}var Dh=T7,$7=GB,M7=iU,I7=Dh;function R7(e){return $7(e,I7,M7)}var D7=R7,ww=D7,L7=1,z7=Object.prototype,F7=z7.hasOwnProperty;function B7(e,t,r,n,i,a){var o=r&L7,s=ww(e),l=s.length,u=ww(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var h=s[c];if(!(o?h in t:F7.call(t,h)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var y=!0;a.set(e,t),a.set(t,e);for(var v=o;++c<l;){h=s[c];var g=e[h],b=t[h];if(n)var w=o?n(b,g,h,t,e,a):n(g,b,h,e,t,a);if(!(w===void 0?g===b||i(g,b,r,n,a):w)){y=!1;break}v||(v=h=="constructor")}if(y&&!v){var O=e.constructor,x=t.constructor;O!=x&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof x=="function"&&x instanceof x)&&(y=!1)}return a.delete(e),a.delete(t),y}var U7=B7,W7=qa,H7=cn,q7=W7(H7,"DataView"),K7=q7,V7=qa,G7=cn,X7=V7(G7,"Promise"),Q7=X7,Y7=qa,J7=cn,Z7=Y7(J7,"Set"),Ak=Z7,e9=qa,t9=cn,r9=e9(t9,"WeakMap"),n9=r9,sv=K7,lv=D0,uv=Q7,cv=Ak,fv=n9,kk=Fn,zs=M2,Sw="[object Map]",i9="[object Object]",Ow="[object Promise]",jw="[object Set]",_w="[object WeakMap]",Pw="[object DataView]",a9=zs(sv),o9=zs(lv),s9=zs(uv),l9=zs(cv),u9=zs(fv),Yi=kk;(sv&&Yi(new sv(new ArrayBuffer(1)))!=Pw||lv&&Yi(new lv)!=Sw||uv&&Yi(uv.resolve())!=Ow||cv&&Yi(new cv)!=jw||fv&&Yi(new fv)!=_w)&&(Yi=function(e){var t=kk(e),r=t==i9?e.constructor:void 0,n=r?zs(r):"";if(n)switch(n){case a9:return Pw;case o9:return Sw;case s9:return Ow;case l9:return jw;case u9:return _w}return t});var c9=Yi,Jp=yk,f9=xk,d9=WB,h9=U7,Aw=c9,kw=tr,Ew=Ok,p9=_k,m9=1,Nw="[object Arguments]",Cw="[object Array]",$c="[object Object]",y9=Object.prototype,Tw=y9.hasOwnProperty;function v9(e,t,r,n,i,a){var o=kw(e),s=kw(t),l=o?Cw:Aw(e),u=s?Cw:Aw(t);l=l==Nw?$c:l,u=u==Nw?$c:u;var f=l==$c,c=u==$c,h=l==u;if(h&&Ew(e)){if(!Ew(t))return!1;o=!0,f=!1}if(h&&!f)return a||(a=new Jp),o||p9(e)?f9(e,t,r,n,i,a):d9(e,t,l,r,n,i,a);if(!(r&m9)){var p=f&&Tw.call(e,"__wrapped__"),m=c&&Tw.call(t,"__wrapped__");if(p||m){var y=p?e.value():e,v=m?t.value():t;return a||(a=new Jp),i(y,v,r,n,a)}}return h?(a||(a=new Jp),h9(e,t,r,n,i,a)):!1}var g9=v9,b9=g9,$w=Bn;function Ek(e,t,r,n,i){return e===t?!0:e==null||t==null||!$w(e)&&!$w(t)?e!==e&&t!==t:b9(e,t,r,n,Ek,i)}var tb=Ek,x9=yk,w9=tb,S9=1,O9=2;function j9(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],f=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new x9;if(n)var h=n(u,f,l,e,t,c);if(!(h===void 0?w9(f,u,S9|O9,n,c):h))return!1}}return!0}var _9=j9,P9=Di;function A9(e){return e===e&&!P9(e)}var Nk=A9,k9=Nk,E9=Dh;function N9(e){for(var t=E9(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,k9(i)]}return t}var C9=N9;function T9(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ck=T9,$9=_9,M9=C9,I9=Ck;function R9(e){var t=M9(e);return t.length==1&&t[0][2]?I9(t[0][0],t[0][1]):function(r){return r===e||$9(r,e,t)}}var D9=R9;function L9(e,t){return e!=null&&t in Object(e)}var z9=L9,F9=z2,B9=J0,U9=tr,W9=Z0,H9=eb,q9=Sh;function K9(e,t,r){t=F9(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=q9(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&H9(i)&&W9(o,i)&&(U9(e)||B9(e)))}var V9=K9,G9=z9,X9=V9;function Q9(e,t){return e!=null&&X9(e,t,G9)}var Y9=Q9,J9=tb,Z9=F2,eW=Y9,tW=M0,rW=Nk,nW=Ck,iW=Sh,aW=1,oW=2;function sW(e,t){return tW(e)&&rW(t)?nW(iW(e),t):function(r){var n=Z9(r,e);return n===void 0&&n===t?eW(r,e):J9(t,n,aW|oW)}}var lW=sW;function uW(e){return e}var Fs=uW;function cW(e){return function(t){return t==null?void 0:t[e]}}var fW=cW,dW=B0;function hW(e){return function(t){return dW(t,e)}}var pW=hW,mW=fW,yW=pW,vW=M0,gW=Sh;function bW(e){return vW(e)?mW(gW(e)):yW(e)}var xW=bW,wW=D9,SW=lW,OW=Fs,jW=tr,_W=xW;function PW(e){return typeof e=="function"?e:e==null?OW:typeof e=="object"?jW(e)?SW(e[0],e[1]):wW(e):_W(e)}var fn=PW;function AW(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Tk=AW;function kW(e){return e!==e}var EW=kW;function NW(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var CW=NW,TW=Tk,$W=EW,MW=CW;function IW(e,t,r){return t===t?MW(e,t,r):TW(e,$W,r)}var RW=IW,DW=RW;function LW(e,t){var r=e==null?0:e.length;return!!r&&DW(e,t,0)>-1}var zW=LW;function FW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var BW=FW;function UW(){}var WW=UW,Zp=Ak,HW=WW,qW=Y0,KW=1/0,VW=Zp&&1/qW(new Zp([,-0]))[1]==KW?function(e){return new Zp(e)}:HW,GW=VW,XW=vk,QW=zW,YW=BW,JW=bk,ZW=GW,eH=Y0,tH=200;function rH(e,t,r){var n=-1,i=QW,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=YW;else if(a>=tH){var u=t?null:ZW(e);if(u)return eH(u);o=!1,i=JW,l=new XW}else l=t?[]:s;e:for(;++n<a;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var h=l.length;h--;)if(l[h]===c)continue e;t&&l.push(c),s.push(f)}else i(l,c,r)||(l!==s&&l.push(c),s.push(f))}return s}var nH=rH,iH=fn,aH=nH;function oH(e,t){return e&&e.length?aH(e,iH(t)):[]}var sH=oH;const Mw=Ae(sH);function $k(e,t,r){return t===!0?Mw(e,r):oe(t)?Mw(e,t):e}function Zo(e){"@babel/helpers - typeof";return Zo=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},Zo(e)}var lH=["ref"];function Iw(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 hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iw(Object(r),!0).forEach(function(n){Lh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ik(n.key),n)}}function cH(e,t,r){return t&&Rw(e.prototype,t),r&&Rw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fH(e,t,r){return t=ed(t),dH(e,Mk()?Reflect.construct(t,r||[],ed(e).constructor):t.apply(e,r))}function dH(e,t){if(t&&(Zo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hH(e)}function hH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mk=function(){return!!e})()}function ed(e){return ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ed(e)}function pH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dv(e,t)}function dv(e,t){return dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dv(e,t)}function Lh(e,t,r){return t=Ik(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ik(e){var t=mH(e,"string");return Zo(t)=="symbol"?t:t+""}function mH(e,t){if(Zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yH(e,t){if(e==null)return{};var r=vH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gH(e){return e.value}function bH(e,t){if(k.isValidElement(e))return k.cloneElement(e,t);if(typeof e=="function")return k.createElement(e,t);t.ref;var r=yH(t,lH);return k.createElement(Q0,r)}var Dw=1,Ao=function(e){function t(){var r;uH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=fH(this,t,[].concat(i)),Lh(r,"lastBoundingBox",{width:-1,height:-1}),r}return pH(t,e),cH(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Dw||Math.abs(i.height-this.lastBoundingBox.height)>Dw)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?hn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,c,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();h={top:((f||0)-m.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return hn(hn({},c),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,c=hn(hn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return k.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},bH(a,hn(hn({},this.props),{},{payload:$k(f,u,gH)})))}}],[{key:"getWithHeight",value:function(n,i){var a=hn(hn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(A.PureComponent);Lh(Ao,"displayName","Legend");Lh(Ao,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Lw=tc,xH=J0,wH=tr,zw=Lw?Lw.isConcatSpreadable:void 0;function SH(e){return wH(e)||xH(e)||!!(zw&&e&&e[zw])}var OH=SH,jH=wk,_H=OH;function Rk(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=_H),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Rk(s,t-1,r,n,i):jH(i,s):n||(i[i.length]=s)}return i}var Dk=Rk;function PH(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var AH=PH,kH=AH,EH=kH(),NH=EH,CH=NH,TH=Dh;function $H(e,t){return e&&CH(e,t,TH)}var Lk=$H,MH=rc;function IH(e,t){return function(r,n){if(r==null)return r;if(!MH(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var RH=IH,DH=Lk,LH=RH,zH=LH(DH),rb=zH,FH=rb,BH=rc;function UH(e,t){var r=-1,n=BH(e)?Array(e.length):[];return FH(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var zk=UH;function WH(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var HH=WH,Fw=Cs;function qH(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=Fw(e),o=t!==void 0,s=t===null,l=t===t,u=Fw(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&e<t||u&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}var KH=qH,VH=KH;function GH(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=VH(i[n],a[n]);if(l){if(n>=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var XH=GH,em=F0,QH=B0,YH=fn,JH=zk,ZH=HH,eq=jk,tq=XH,rq=Fs,nq=tr;function iq(e,t,r){t.length?t=em(t,function(a){return nq(a)?function(o){return QH(o,a.length===1?a[0]:a)}:a}):t=[rq];var n=-1;t=em(t,eq(YH));var i=JH(e,function(a,o,s){var l=em(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return ZH(i,function(a,o){return tq(a,o,r)})}var aq=iq;function oq(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 sq=oq,lq=sq,Bw=Math.max;function uq(e,t,r){return t=Bw(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Bw(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),lq(e,this,s)}}var cq=uq;function fq(e){return function(){return e}}var dq=fq,hq=qa,pq=function(){try{var e=hq(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Fk=pq,mq=dq,Uw=Fk,yq=Fs,vq=Uw?function(e,t){return Uw(e,"toString",{configurable:!0,enumerable:!1,value:mq(t),writable:!0})}:yq,gq=vq,bq=800,xq=16,wq=Date.now;function Sq(e){var t=0,r=0;return function(){var n=wq(),i=xq-(n-r);if(r=n,i>0){if(++t>=bq)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Oq=Sq,jq=gq,_q=Oq,Pq=_q(jq),Aq=Pq,kq=Fs,Eq=cq,Nq=Aq;function Cq(e,t){return Nq(Eq(e,t,kq),e+"")}var Tq=Cq,$q=R0,Mq=rc,Iq=Z0,Rq=Di;function Dq(e,t,r){if(!Rq(r))return!1;var n=typeof t;return(n=="number"?Mq(r)&&Iq(t,r.length):n=="string"&&t in r)?$q(r[t],e):!1}var zh=Dq,Lq=Dk,zq=aq,Fq=Tq,Ww=zh,Bq=Fq(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Ww(e,t[0],t[1])?t=[]:r>2&&Ww(t[0],t[1],t[2])&&(t=[t[0]]),zq(e,Lq(t,1),[])}),Uq=Bq;const nb=Ae(Uq);function au(e){"@babel/helpers - typeof";return au=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},au(e)}function hv(){return hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hv.apply(this,arguments)}function Wq(e,t){return Vq(e)||Kq(e,t)||qq(e,t)||Hq()}function Hq(){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 qq(e,t){if(e){if(typeof e=="string")return Hw(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 Hw(e,t)}}function Hw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Kq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Vq(e){if(Array.isArray(e))return e}function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(n){Gq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gq(e,t,r){return t=Xq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xq(e){var t=Qq(e,"string");return au(t)=="symbol"?t:t+""}function Qq(e,t){if(au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yq(e){return Array.isArray(e)&&ct(e[0])&&ct(e[1])?e.join(" ~ "):e}var Jq=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,c=t.formatter,h=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,y=t.label,v=t.labelFormatter,g=t.accessibilityLayer,b=g===void 0?!1:g,w=function(){if(f&&f.length){var T={padding:0,margin:0},L=(h?nb(f,h):f).map(function(R,I){if(R.type==="none")return null;var D=tm({display:"block",paddingTop:4,paddingBottom:4,color:R.color||"#000"},s),B=R.formatter||c||Yq,C=R.value,F=R.name,U=C,V=F;if(B&&U!=null&&V!=null){var H=B(C,F,R,I,f);if(Array.isArray(H)){var X=Wq(H,2);U=X[0],V=X[1]}else U=H}return k.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:D},ct(V)?k.createElement("span",{className:"recharts-tooltip-item-name"},V):null,ct(V)?k.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,k.createElement("span",{className:"recharts-tooltip-item-value"},U),k.createElement("span",{className:"recharts-tooltip-item-unit"},R.unit||""))});return k.createElement("ul",{className:"recharts-tooltip-item-list",style:T},L)}return null},O=tm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),x=tm({margin:0},u),S=!ce(y),j=S?y:"",_=fe("recharts-default-tooltip",p),P=fe("recharts-tooltip-label",m);S&&v&&f!==void 0&&f!==null&&(j=v(y,f));var N=b?{role:"status","aria-live":"assertive"}:{};return k.createElement("div",hv({className:_,style:O},N),k.createElement("p",{className:P,style:x},k.isValidElement(j)?j:"".concat(j)),w())};function ou(e){"@babel/helpers - typeof";return ou=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},ou(e)}function Mc(e,t,r){return t=Zq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zq(e){var t=eK(e,"string");return ou(t)=="symbol"?t:t+""}function eK(e,t){if(ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rl="recharts-tooltip-wrapper",tK={visibility:"hidden"};function rK(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return fe(rl,Mc(Mc(Mc(Mc({},"".concat(rl,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(rl,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(rl,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(rl,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function Kw(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&q(a[n]))return a[n];var f=r[n]-s-i,c=r[n]+i;if(t[n])return o[n]?f:c;if(o[n]){var h=f,p=l[n];return h<p?Math.max(c,l[n]):Math.max(f,l[n])}var m=c+s,y=l[n]+u;return m>y?Math.max(f,l[n]):Math.max(c,l[n])}function nK(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function iK(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,c;return o.height>0&&o.width>0&&r?(f=Kw({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),c=Kw({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=nK({translateX:f,translateY:c,useTranslate3d:s})):u=tK,{cssProperties:u,cssClasses:rK({translateX:f,translateY:c,coordinate:r})}}function es(e){"@babel/helpers - typeof";return es=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},es(e)}function Vw(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 Gw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vw(Object(r),!0).forEach(function(n){mv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Uk(n.key),n)}}function sK(e,t,r){return t&&oK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lK(e,t,r){return t=td(t),uK(e,Bk()?Reflect.construct(t,r||[],td(e).constructor):t.apply(e,r))}function uK(e,t){if(t&&(es(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cK(e)}function cK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bk=function(){return!!e})()}function td(e){return td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},td(e)}function fK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pv(e,t)}function pv(e,t){return pv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pv(e,t)}function mv(e,t,r){return t=Uk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uk(e){var t=dK(e,"string");return es(t)=="symbol"?t:t+""}function dK(e,t){if(es(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(es(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xw=1,hK=function(e){function t(){var r;aK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=lK(this,t,[].concat(i)),mv(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),mv(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),r}return fK(t,e),sK(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Xw||Math.abs(n.height-this.state.lastBoundingBox.height)>Xw)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,c=i.hasPayload,h=i.isAnimationActive,p=i.offset,m=i.position,y=i.reverseDirection,v=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,w=iK({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:g}),O=w.cssClasses,x=w.cssProperties,S=Gw(Gw({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},b);return k.createElement("div",{tabIndex:-1,className:O,style:S,ref:function(_){n.wrapperNode=_}},u)}}])}(A.PureComponent),pK=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ka={isSsr:pK()};function ts(e){"@babel/helpers - typeof";return ts=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},ts(e)}function Qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qw(Object(r),!0).forEach(function(n){ib(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hk(n.key),n)}}function vK(e,t,r){return t&&yK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gK(e,t,r){return t=rd(t),bK(e,Wk()?Reflect.construct(t,r||[],rd(e).constructor):t.apply(e,r))}function bK(e,t){if(t&&(ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xK(e)}function xK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wk=function(){return!!e})()}function rd(e){return rd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rd(e)}function wK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yv(e,t)}function yv(e,t){return yv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yv(e,t)}function ib(e,t,r){return t=Hk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hk(e){var t=SK(e,"string");return ts(t)=="symbol"?t:t+""}function SK(e,t){if(ts(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ts(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function OK(e){return e.dataKey}function jK(e,t){return k.isValidElement(e)?k.cloneElement(e,t):typeof e=="function"?k.createElement(e,t):k.createElement(Jq,t)}var Wt=function(e){function t(){return mK(this,t),gK(this,t,arguments)}return wK(t,e),vK(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,c=i.filterNull,h=i.isAnimationActive,p=i.offset,m=i.payload,y=i.payloadUniqBy,v=i.position,g=i.reverseDirection,b=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,x=m??[];c&&x.length&&(x=$k(m.filter(function(j){return j.value!=null&&(j.hide!==!0||n.props.includeHidden)}),y,OK));var S=x.length>0;return k.createElement(hK,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:f,hasPayload:S,offset:p,position:v,reverseDirection:g,useTranslate3d:b,viewBox:w,wrapperStyle:O},jK(u,Yw(Yw({},this.props),{},{payload:x})))}}])}(A.PureComponent);ib(Wt,"displayName","Tooltip");ib(Wt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ka.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var _K=cn,PK=function(){return _K.Date.now()},AK=PK,kK=/\s/;function EK(e){for(var t=e.length;t--&&kK.test(e.charAt(t)););return t}var NK=EK,CK=NK,TK=/^\s+/;function $K(e){return e&&e.slice(0,CK(e)+1).replace(TK,"")}var MK=$K,IK=MK,Jw=Di,RK=Cs,Zw=NaN,DK=/^[-+]0x[0-9a-f]+$/i,LK=/^0b[01]+$/i,zK=/^0o[0-7]+$/i,FK=parseInt;function BK(e){if(typeof e=="number")return e;if(RK(e))return Zw;if(Jw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Jw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=IK(e);var r=LK.test(e);return r||zK.test(e)?FK(e.slice(2),r?2:8):DK.test(e)?Zw:+e}var qk=BK,UK=Di,rm=AK,eS=qk,WK="Expected a function",HK=Math.max,qK=Math.min;function KK(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(WK);t=eS(t)||0,UK(r)&&(f=!!r.leading,c="maxWait"in r,a=c?HK(eS(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function p(S){var j=n,_=i;return n=i=void 0,u=S,o=e.apply(_,j),o}function m(S){return u=S,s=setTimeout(g,t),f?p(S):o}function y(S){var j=S-l,_=S-u,P=t-j;return c?qK(P,a-_):P}function v(S){var j=S-l,_=S-u;return l===void 0||j>=t||j<0||c&&_>=a}function g(){var S=rm();if(v(S))return b(S);s=setTimeout(g,y(S))}function b(S){return s=void 0,h&&n?p(S):(n=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function O(){return s===void 0?o:b(rm())}function x(){var S=rm(),j=v(S);if(n=arguments,i=this,l=S,j){if(s===void 0)return m(l);if(c)return clearTimeout(s),s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),o}return x.cancel=w,x.flush=O,x}var VK=KK,GK=VK,XK=Di,QK="Expected a function";function YK(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(QK);return XK(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),GK(e,t,{leading:n,maxWait:t,trailing:i})}var JK=YK;const Kk=Ae(JK);function su(e){"@babel/helpers - typeof";return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){ZK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZK(e,t,r){return t=eV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eV(e){var t=tV(e,"string");return su(t)=="symbol"?t:t+""}function tV(e,t){if(su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rV(e,t){return oV(e)||aV(e,t)||iV(e,t)||nV()}function nV(){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 iV(e,t){if(e){if(typeof e=="string")return rS(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 rS(e,t)}}function rS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function oV(e){if(Array.isArray(e))return e}var kl=A.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,h=e.maxHeight,p=e.children,m=e.debounce,y=m===void 0?0:m,v=e.id,g=e.className,b=e.onResize,w=e.style,O=w===void 0?{}:w,x=A.useRef(null),S=A.useRef();S.current=b,A.useImperativeHandle(t,function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})});var j=A.useState({containerWidth:i.width,containerHeight:i.height}),_=rV(j,2),P=_[0],N=_[1],$=A.useCallback(function(L,R){N(function(I){var D=Math.round(L),B=Math.round(R);return I.containerWidth===D&&I.containerHeight===B?I:{containerWidth:D,containerHeight:B}})},[]);A.useEffect(function(){var L=function(F){var U,V=F[0].contentRect,H=V.width,X=V.height;$(H,X),(U=S.current)===null||U===void 0||U.call(S,H,X)};y>0&&(L=Kk(L,y,{trailing:!0,leading:!1}));var R=new ResizeObserver(L),I=x.current.getBoundingClientRect(),D=I.width,B=I.height;return $(D,B),R.observe(x.current),function(){R.disconnect()}},[$,y]);var T=A.useMemo(function(){var L=P.containerWidth,R=P.containerHeight;if(L<0||R<0)return null;Ur(aa(o)||aa(l),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,o,l),Ur(!r||r>0,"The aspect(%s) must be greater than zero.",r);var I=aa(o)?L:o,D=aa(l)?R:l;r&&r>0&&(I?D=I/r:D&&(I=D*r),h&&D>h&&(D=h)),Ur(I>0||D>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.`,I,D,o,l,f,c,r);var B=!Array.isArray(p)&&kn(p.type).endsWith("Chart");return k.Children.map(p,function(C){return k.isValidElement(C)?A.cloneElement(C,Ic({width:I,height:D},B?{style:Ic({height:"100%",width:"100%",maxHeight:D,maxWidth:I},C.props.style)}:{})):C})},[r,p,l,h,c,f,P,o]);return k.createElement("div",{id:v?"".concat(v):void 0,className:fe("recharts-responsive-container",g),style:Ic(Ic({},O),{},{width:o,height:l,minWidth:f,minHeight:c,maxHeight:h}),ref:x},T)}),Fh=function(t){return null};Fh.displayName="Cell";function lu(e){"@babel/helpers - typeof";return lu=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},lu(e)}function nS(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 vv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nS(Object(r),!0).forEach(function(n){sV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sV(e,t,r){return t=lV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lV(e){var t=uV(e,"string");return lu(t)=="symbol"?t:t+""}function uV(e,t){if(lu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Za={widthCache:{},cacheCount:0},cV=2e3,fV={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},iS="recharts_measurement_span";function dV(e){var t=vv({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var El=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ka.isSsr)return{width:0,height:0};var n=dV(r),i=JSON.stringify({text:t,copyStyle:n});if(Za.widthCache[i])return Za.widthCache[i];try{var a=document.getElementById(iS);a||(a=document.createElement("span"),a.setAttribute("id",iS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=vv(vv({},fV),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Za.widthCache[i]=l,++Za.cacheCount>cV&&(Za.cacheCount=0,Za.widthCache={}),l}catch{return{width:0,height:0}}},hV=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function uu(e){"@babel/helpers - typeof";return uu=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},uu(e)}function nd(e,t){return vV(e)||yV(e,t)||mV(e,t)||pV()}function pV(){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 mV(e,t){if(e){if(typeof e=="string")return aS(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 aS(e,t)}}function aS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function vV(e){if(Array.isArray(e))return e}function gV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xV(n.key),n)}}function bV(e,t,r){return t&&oS(e.prototype,t),r&&oS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xV(e){var t=wV(e,"string");return uu(t)=="symbol"?t:t+""}function wV(e,t){if(uu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,SV=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,OV=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Vk={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},jV=Object.keys(Vk),mo="NaN";function _V(e,t){return e*Vk[t]}var Rc=function(){function e(t,r){gV(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!SV.test(r)&&(this.num=NaN,this.unit=""),jV.includes(r)&&(this.num=_V(t,r),this.unit="px")}return bV(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=OV.exec(r))!==null&&n!==void 0?n:[],a=nd(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function Gk(e){if(e.includes(mo))return mo;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=sS.exec(t))!==null&&r!==void 0?r:[],i=nd(n,4),a=i[1],o=i[2],s=i[3],l=Rc.parse(a??""),u=Rc.parse(s??""),f=o==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return mo;t=t.replace(sS,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,h=(c=lS.exec(t))!==null&&c!==void 0?c:[],p=nd(h,4),m=p[1],y=p[2],v=p[3],g=Rc.parse(m??""),b=Rc.parse(v??""),w=y==="+"?g.add(b):g.subtract(b);if(w.isNaN())return mo;t=t.replace(lS,w.toString())}return t}var uS=/\(([^()]*)\)/;function PV(e){for(var t=e;t.includes("(");){var r=uS.exec(t),n=nd(r,2),i=n[1];t=t.replace(uS,Gk(i))}return t}function AV(e){var t=e.replace(/\s+/g,"");return t=PV(t),t=Gk(t),t}function kV(e){try{return AV(e)}catch{return mo}}function nm(e){var t=kV(e.slice(5,-1));return t===mo?"":t}var EV=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],NV=["dx","dy","angle","className","breakAll"];function gv(){return gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gv.apply(this,arguments)}function cS(e,t){if(e==null)return{};var r=CV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fS(e,t){return IV(e)||MV(e,t)||$V(e,t)||TV()}function TV(){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 $V(e,t){if(e){if(typeof e=="string")return dS(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 dS(e,t)}}function dS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function IV(e){if(Array.isArray(e))return e}var Xk=/[ \f\n\r\t\v\u2028\u2029]+/,Qk=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ce(r)||(n?a=r.toString().split(""):a=r.toString().split(Xk));var o=a.map(function(l){return{word:l,width:El(l,i).width}}),s=n?0:El(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},RV=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,f=q(o),c=s,h=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(D,B){var C=B.word,F=B.width,U=D[D.length-1];if(U&&(i==null||a||U.width+F+n<Number(i)))U.words.push(C),U.width+=F+n;else{var V={words:[C],width:F};D.push(V)}return D},[])},p=h(r),m=function(I){return I.reduce(function(D,B){return D.width>B.width?D:B})};if(!f)return p;for(var y="…",v=function(I){var D=c.slice(0,I),B=Qk({breakAll:u,style:l,children:D+y}).wordsWithComputedWidth,C=h(B),F=C.length>o||m(C).width>Number(i);return[F,C]},g=0,b=c.length-1,w=0,O;g<=b&&w<=c.length-1;){var x=Math.floor((g+b)/2),S=x-1,j=v(S),_=fS(j,2),P=_[0],N=_[1],$=v(x),T=fS($,1),L=T[0];if(!P&&!L&&(g=x+1),P&&L&&(b=x-1),!P&&L){O=N;break}w++}return O||p},hS=function(t){var r=ce(t)?[]:t.toString().split(Xk);return[{words:r}]},DV=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Ka.isSsr){var l,u,f=Qk({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,h=f.spaceWidth;l=c,u=h}else return hS(i);return RV({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return hS(i)},pS="#808080",Da=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,m=t.verticalAnchor,y=m===void 0?"end":m,v=t.fill,g=v===void 0?pS:v,b=cS(t,EV),w=A.useMemo(function(){return DV({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:c,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,c,b.style,b.width]),O=b.dx,x=b.dy,S=b.angle,j=b.className,_=b.breakAll,P=cS(b,NV);if(!ct(n)||!ct(a))return null;var N=n+(q(O)?O:0),$=a+(q(x)?x:0),T;switch(y){case"start":T=nm("calc(".concat(u,")"));break;case"middle":T=nm("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:T=nm("calc(".concat(w.length-1," * -").concat(s,")"));break}var L=[];if(c){var R=w[0].width,I=b.width;L.push("scale(".concat((q(I)?I/R:1)/R,")"))}return S&&L.push("rotate(".concat(S,", ").concat(N,", ").concat($,")")),L.length&&(P.transform=L.join(" ")),k.createElement("text",gv({},ne(P,!0),{x:N,y:$,className:fe("recharts-text",j),textAnchor:p,fill:g.includes("url")?pS:g}),w.map(function(D,B){var C=D.words.join(_?"":" ");return k.createElement("tspan",{x:N,dy:B===0?T:s,key:"".concat(C,"-").concat(B)},C)}))};function _i(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LV(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ab(e){let t,r,n;e.length!==2?(t=_i,r=(s,l)=>_i(e(s),l),n=(s,l)=>e(s)-l):(t=e===_i||e===LV?e:zV,r=e,n=e);function i(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;r(s[c],l)<0?u=c+1:f=c}while(u<f)}return u}function a(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;r(s[c],l)<=0?u=c+1:f=c}while(u<f)}return u}function o(s,l,u=0,f=s.length){const c=i(s,l,u,f-1);return c>u&&n(s[c-1],l)>-n(s[c],l)?c-1:c}return{left:i,center:o,right:a}}function zV(){return 0}function Yk(e){return e===null?NaN:+e}function*FV(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const BV=ab(_i),nc=BV.right;ab(Yk).center;class mS extends Map{constructor(t,r=HV){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(yS(this,t))}has(t){return super.has(yS(this,t))}set(t,r){return super.set(UV(this,t),r)}delete(t){return super.delete(WV(this,t))}}function yS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function UV({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function WV({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function HV(e){return e!==null&&typeof e=="object"?e.valueOf():e}function qV(e=_i){if(e===_i)return Jk;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 Jk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const KV=Math.sqrt(50),VV=Math.sqrt(10),GV=Math.sqrt(2);function id(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>=KV?10:a>=VV?5:a>=GV?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?id(e,t,r*2):[s,l,u]}function bv(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?id(t,e,r):id(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function xv(e,t,r){return t=+t,e=+e,r=+r,id(e,t,r)[2]}function wv(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?xv(t,e,r):xv(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function vS(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function gS(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Zk(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?Jk:qV(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,f=Math.log(l),c=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*c/l+h)),m=Math.min(n,Math.floor(t+(l-u)*c/l+h));Zk(e,t,p,m,i)}const a=e[t];let o=r,s=n;for(nl(e,r,t),i(e[n],a)>0&&nl(e,r,n);o<s;){for(nl(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?nl(e,r,s):(++s,nl(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function nl(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function XV(e,t,r){if(e=Float64Array.from(FV(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return gS(e);if(t>=1)return vS(e);var n,i=(n-1)*t,a=Math.floor(i),o=vS(Zk(e,a).subarray(0,a+1)),s=gS(e.subarray(a+1));return o+(s-o)*(i-a)}}function QV(e,t,r=Yk){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function YV(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Nr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Un(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Sv=Symbol("implicit");function ob(){var e=new mS,t=[],r=[],n=Sv;function i(a){let o=e.get(a);if(o===void 0){if(n!==Sv)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new mS;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ob(t,r).unknown(n)},Nr.apply(i,arguments),i}function cu(){var e=ob().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,f=.5;delete e.unknown;function c(){var h=t().length,p=i<n,m=p?i:n,y=p?n:i;a=(y-m)/Math.max(1,h-l+u*2),s&&(a=Math.floor(a)),m+=(y-m-a*(h-l))*f,o=a*(1-l),s&&(m=Math.round(m),o=Math.round(o));var v=YV(h).map(function(g){return m+a*g});return r(p?v.reverse():v)}return e.domain=function(h){return arguments.length?(t(h),c()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,c()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,c()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,c()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,u=+h),c()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),c()):l},e.paddingOuter=function(h){return arguments.length?(u=+h,c()):u},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),c()):f},e.copy=function(){return cu(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},Nr.apply(c(),arguments)}function eE(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return eE(t())},e}function Nl(){return eE(cu.apply(null,arguments).paddingInner(1))}function sb(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function tE(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ic(){}var fu=.7,ad=1/fu,ko="\\s*([+-]?\\d+)\\s*",du="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",JV=/^#([0-9a-f]{3,8})$/,ZV=new RegExp(`^rgb\\(${ko},${ko},${ko}\\)$`),eG=new RegExp(`^rgb\\(${nn},${nn},${nn}\\)$`),tG=new RegExp(`^rgba\\(${ko},${ko},${ko},${du}\\)$`),rG=new RegExp(`^rgba\\(${nn},${nn},${nn},${du}\\)$`),nG=new RegExp(`^hsl\\(${du},${nn},${nn}\\)$`),iG=new RegExp(`^hsla\\(${du},${nn},${nn},${du}\\)$`),bS={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};sb(ic,hu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xS,formatHex:xS,formatHex8:aG,formatHsl:oG,formatRgb:wS,toString:wS});function xS(){return this.rgb().formatHex()}function aG(){return this.rgb().formatHex8()}function oG(){return rE(this).formatHsl()}function wS(){return this.rgb().formatRgb()}function hu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=JV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?SS(t):r===3?new Vt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dc(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=ZV.exec(e))?new Vt(t[1],t[2],t[3],1):(t=eG.exec(e))?new Vt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tG.exec(e))?Dc(t[1],t[2],t[3],t[4]):(t=rG.exec(e))?Dc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nG.exec(e))?_S(t[1],t[2]/100,t[3]/100,1):(t=iG.exec(e))?_S(t[1],t[2]/100,t[3]/100,t[4]):bS.hasOwnProperty(e)?SS(bS[e]):e==="transparent"?new Vt(NaN,NaN,NaN,0):null}function SS(e){return new Vt(e>>16&255,e>>8&255,e&255,1)}function Dc(e,t,r,n){return n<=0&&(e=t=r=NaN),new Vt(e,t,r,n)}function sG(e){return e instanceof ic||(e=hu(e)),e?(e=e.rgb(),new Vt(e.r,e.g,e.b,e.opacity)):new Vt}function Ov(e,t,r,n){return arguments.length===1?sG(e):new Vt(e,t,r,n??1)}function Vt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}sb(Vt,Ov,tE(ic,{brighter(e){return e=e==null?ad:Math.pow(ad,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?fu:Math.pow(fu,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vt(Sa(this.r),Sa(this.g),Sa(this.b),od(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:OS,formatHex:OS,formatHex8:lG,formatRgb:jS,toString:jS}));function OS(){return`#${oa(this.r)}${oa(this.g)}${oa(this.b)}`}function lG(){return`#${oa(this.r)}${oa(this.g)}${oa(this.b)}${oa((isNaN(this.opacity)?1:this.opacity)*255)}`}function jS(){const e=od(this.opacity);return`${e===1?"rgb(":"rgba("}${Sa(this.r)}, ${Sa(this.g)}, ${Sa(this.b)}${e===1?")":`, ${e})`}`}function od(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oa(e){return e=Sa(e),(e<16?"0":"")+e.toString(16)}function _S(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new zr(e,t,r,n)}function rE(e){if(e instanceof zr)return new zr(e.h,e.s,e.l,e.opacity);if(e instanceof ic||(e=hu(e)),!e)return new zr;if(e instanceof zr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new zr(o,s,l,e.opacity)}function uG(e,t,r,n){return arguments.length===1?rE(e):new zr(e,t,r,n??1)}function zr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}sb(zr,uG,tE(ic,{brighter(e){return e=e==null?ad:Math.pow(ad,e),new zr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?fu:Math.pow(fu,e),new zr(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 Vt(im(e>=240?e-240:e+120,i,n),im(e,i,n),im(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new zr(PS(this.h),Lc(this.s),Lc(this.l),od(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=od(this.opacity);return`${e===1?"hsl(":"hsla("}${PS(this.h)}, ${Lc(this.s)*100}%, ${Lc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function PS(e){return e=(e||0)%360,e<0?e+360:e}function Lc(e){return Math.max(0,Math.min(1,e||0))}function im(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 lb=e=>()=>e;function cG(e,t){return function(r){return e+r*t}}function fG(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 dG(e){return(e=+e)==1?nE:function(t,r){return r-t?fG(t,r,e):lb(isNaN(t)?r:t)}}function nE(e,t){var r=t-e;return r?cG(e,r):lb(isNaN(e)?t:e)}const AS=function e(t){var r=dG(t);function n(i,a){var o=r((i=Ov(i)).r,(a=Ov(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=nE(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return n.gamma=e,n}(1);function hG(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function pG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function mG(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Bs(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function yG(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function sd(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function vG(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Bs(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var jv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,am=new RegExp(jv.source,"g");function gG(e){return function(){return e}}function bG(e){return function(t){return e(t)+""}}function xG(e,t){var r=jv.lastIndex=am.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=jv.exec(e))&&(i=am.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:sd(n,i)})),r=am.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?bG(l[0].x):gG(t):(t=l.length,function(u){for(var f=0,c;f<t;++f)s[(c=l[f]).i]=c.x(u);return s.join("")})}function Bs(e,t){var r=typeof t,n;return t==null||r==="boolean"?lb(t):(r==="number"?sd:r==="string"?(n=hu(t))?(t=n,AS):xG:t instanceof hu?AS:t instanceof Date?yG:pG(t)?hG:Array.isArray(t)?mG:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?vG:sd)(e,t)}function ub(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function wG(e,t){t===void 0&&(t=e,e=Bs);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function SG(e){return function(){return e}}function ld(e){return+e}var kS=[0,1];function Rt(e){return e}function _v(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:SG(isNaN(t)?NaN:.5)}function OG(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function jG(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=_v(i,n),a=r(o,a)):(n=_v(n,i),a=r(a,o)),function(s){return a(n(s))}}function _G(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=_v(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=nc(e,s,1,n)-1;return a[l](i[l](s))}}function ac(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Bh(){var e=kS,t=kS,r=Bs,n,i,a,o=Rt,s,l,u;function f(){var h=Math.min(e.length,t.length);return o!==Rt&&(o=OG(e[0],e[h-1])),s=h>2?_G:jG,l=u=null,c}function c(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(n),t,r)))(n(o(h)))}return c.invert=function(h){return o(i((u||(u=s(t,e.map(n),sd)))(h)))},c.domain=function(h){return arguments.length?(e=Array.from(h,ld),f()):e.slice()},c.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},c.rangeRound=function(h){return t=Array.from(h),r=ub,f()},c.clamp=function(h){return arguments.length?(o=h?!0:Rt,f()):o!==Rt},c.interpolate=function(h){return arguments.length?(r=h,f()):r},c.unknown=function(h){return arguments.length?(a=h,c):a},function(h,p){return n=h,i=p,f()}}function cb(){return Bh()(Rt,Rt)}function PG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ud(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function rs(e){return e=ud(Math.abs(e)),e?e[1]:NaN}function AG(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function kG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var EG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pu(e){if(!(t=EG.exec(e)))throw new Error("invalid format: "+e);var t;return new fb({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]})}pu.prototype=fb.prototype;function fb(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+""}fb.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 NG(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var cd;function CG(e,t){var r=ud(e,t);if(!r)return cd=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(cd=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")+ud(e,Math.max(0,t+a-1))[0]}function ES(e,t){var r=ud(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 NS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:PG,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)=>ES(e*100,t),r:ES,s:CG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function CS(e){return e}var TS=Array.prototype.map,$S=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function TG(e){var t=e.grouping===void 0||e.thousands===void 0?CS:AG(TS.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?CS:kG(TS.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c,h){c=pu(c);var p=c.fill,m=c.align,y=c.sign,v=c.symbol,g=c.zero,b=c.width,w=c.comma,O=c.precision,x=c.trim,S=c.type;S==="n"?(w=!0,S="g"):NS[S]||(O===void 0&&(O=12),x=!0,S="g"),(g||p==="0"&&m==="=")&&(g=!0,p="0",m="=");var j=(h&&h.prefix!==void 0?h.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),_=(v==="$"?n:/[%p]/.test(S)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),P=NS[S],N=/[defgprs%]/.test(S);O=O===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function $(T){var L=j,R=_,I,D,B;if(S==="c")R=P(T)+R,T="";else{T=+T;var C=T<0||1/T<0;if(T=isNaN(T)?l:P(Math.abs(T),O),x&&(T=NG(T)),C&&+T==0&&y!=="+"&&(C=!1),L=(C?y==="("?y:s:y==="-"||y==="("?"":y)+L,R=(S==="s"&&!isNaN(T)&&cd!==void 0?$S[8+cd/3]:"")+R+(C&&y==="("?")":""),N){for(I=-1,D=T.length;++I<D;)if(B=T.charCodeAt(I),48>B||B>57){R=(B===46?i+T.slice(I+1):T.slice(I))+R,T=T.slice(0,I);break}}}w&&!g&&(T=t(T,1/0));var F=L.length+T.length+R.length,U=F<b?new Array(b-F+1).join(p):"";switch(w&&g&&(T=t(U+T,U.length?b-R.length:1/0),U=""),m){case"<":T=L+T+R+U;break;case"=":T=L+U+T+R;break;case"^":T=U.slice(0,F=U.length>>1)+L+T+R+U.slice(F);break;default:T=U+L+T+R;break}return a(T)}return $.toString=function(){return c+""},$}function f(c,h){var p=Math.max(-8,Math.min(8,Math.floor(rs(h)/3)))*3,m=Math.pow(10,-p),y=u((c=pu(c),c.type="f",c),{suffix:$S[8+p/3]});return function(v){return y(m*v)}}return{format:u,formatPrefix:f}}var zc,db,iE;$G({thousands:",",grouping:[3],currency:["$",""]});function $G(e){return zc=TG(e),db=zc.format,iE=zc.formatPrefix,zc}function MG(e){return Math.max(0,-rs(Math.abs(e)))}function IG(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(rs(t)/3)))*3-rs(Math.abs(e)))}function RG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rs(t)-rs(e))+1}function aE(e,t,r,n){var i=wv(e,t,r),a;switch(n=pu(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=IG(i,o))&&(n.precision=a),iE(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=RG(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=MG(i))&&(n.precision=a-(n.type==="%")*2);break}}return db(n)}function Li(e){var t=e.domain;return e.ticks=function(r){var n=t();return bv(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return aE(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,f=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);f-- >0;){if(u=xv(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function fd(){var e=cb();return e.copy=function(){return ac(e,fd())},Nr.apply(e,arguments),Li(e)}function oE(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,ld),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return oE(e).unknown(t)},e=arguments.length?Array.from(e,ld):[0,1],Li(r)}function sE(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function MS(e){return Math.log(e)}function IS(e){return Math.exp(e)}function DG(e){return-Math.log(-e)}function LG(e){return-Math.exp(-e)}function zG(e){return isFinite(e)?+("1e"+e):e<0?0:e}function FG(e){return e===10?zG:e===Math.E?Math.exp:t=>Math.pow(e,t)}function BG(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 RS(e){return(t,r)=>-e(-t,r)}function hb(e){const t=e(MS,IS),r=t.domain;let n=10,i,a;function o(){return i=BG(n),a=FG(n),r()[0]<0?(i=RS(i),a=RS(a),e(DG,LG)):e(MS,IS),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],f=l[l.length-1];const c=f<u;c&&([u,f]=[f,u]);let h=i(u),p=i(f),m,y;const v=s==null?10:+s;let g=[];if(!(n%1)&&p-h<v){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(m=1;m<n;++m)if(y=h<0?m/a(-h):m*a(h),!(y<u)){if(y>f)break;g.push(y)}}else for(;h<=p;++h)for(m=n-1;m>=1;--m)if(y=h>0?m/a(-h):m*a(h),!(y<u)){if(y>f)break;g.push(y)}g.length*2<v&&(g=bv(u,f,v))}else g=bv(h,p,Math.min(p-h,v)).map(a);return c?g.reverse():g},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=pu(l)).precision==null&&(l.trim=!0),l=db(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*n<n-.5&&(c*=n),c<=u?l(f):""}},t.nice=()=>r(sE(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function lE(){const e=hb(Bh()).domain([1,10]);return e.copy=()=>ac(e,lE()).base(e.base()),Nr.apply(e,arguments),e}function DS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function LS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function pb(e){var t=1,r=e(DS(t),LS(t));return r.constant=function(n){return arguments.length?e(DS(t=+n),LS(t)):t},Li(r)}function uE(){var e=pb(Bh());return e.copy=function(){return ac(e,uE()).constant(e.constant())},Nr.apply(e,arguments)}function zS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function UG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function WG(e){return e<0?-e*e:e*e}function mb(e){var t=e(Rt,Rt),r=1;function n(){return r===1?e(Rt,Rt):r===.5?e(UG,WG):e(zS(r),zS(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Li(t)}function yb(){var e=mb(Bh());return e.copy=function(){return ac(e,yb()).exponent(e.exponent())},Nr.apply(e,arguments),e}function HG(){return yb.apply(null,arguments).exponent(.5)}function FS(e){return Math.sign(e)*e*e}function qG(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function cE(){var e=cb(),t=[0,1],r=!1,n;function i(a){var o=qG(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(FS(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,ld)).map(FS)),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 cE(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Nr.apply(i,arguments),Li(i)}function fE(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=QV(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[nc(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(_i),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return fE().domain(e).range(t).unknown(n)},Nr.apply(a,arguments)}function dE(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[nc(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return dE().domain([e,t]).range(i).unknown(a)},Nr.apply(Li(o),arguments)}function hE(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[nc(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 hE().domain(e).range(t).unknown(r)},Nr.apply(i,arguments)}const om=new Date,sm=new Date;function ft(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>ft(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(om.setTime(+a),sm.setTime(+o),e(om),e(sm),Math.floor(r(om,sm))),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 dd=ft(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);dd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ft(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):dd);dd.range;const jn=1e3,Or=jn*60,_n=Or*60,Rn=_n*24,vb=Rn*7,BS=Rn*30,lm=Rn*365,sa=ft(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getUTCSeconds());sa.range;const gb=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jn)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getMinutes());gb.range;const bb=ft(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getUTCMinutes());bb.range;const xb=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jn-e.getMinutes()*Or)},(e,t)=>{e.setTime(+e+t*_n)},(e,t)=>(t-e)/_n,e=>e.getHours());xb.range;const wb=ft(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_n)},(e,t)=>(t-e)/_n,e=>e.getUTCHours());wb.range;const oc=ft(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Or)/Rn,e=>e.getDate()-1);oc.range;const Uh=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Rn,e=>e.getUTCDate()-1);Uh.range;const pE=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Rn,e=>Math.floor(e/Rn));pE.range;function Va(e){return ft(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())*Or)/vb)}const Wh=Va(0),hd=Va(1),KG=Va(2),VG=Va(3),ns=Va(4),GG=Va(5),XG=Va(6);Wh.range;hd.range;KG.range;VG.range;ns.range;GG.range;XG.range;function Ga(e){return ft(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)/vb)}const Hh=Ga(0),pd=Ga(1),QG=Ga(2),YG=Ga(3),is=Ga(4),JG=Ga(5),ZG=Ga(6);Hh.range;pd.range;QG.range;YG.range;is.range;JG.range;ZG.range;const Sb=ft(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());Sb.range;const Ob=ft(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());Ob.range;const Dn=ft(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());Dn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(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)});Dn.range;const Ln=ft(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());Ln.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(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)});Ln.range;function mE(e,t,r,n,i,a){const o=[[sa,1,jn],[sa,5,5*jn],[sa,15,15*jn],[sa,30,30*jn],[a,1,Or],[a,5,5*Or],[a,15,15*Or],[a,30,30*Or],[i,1,_n],[i,3,3*_n],[i,6,6*_n],[i,12,12*_n],[n,1,Rn],[n,2,2*Rn],[r,1,vb],[t,1,BS],[t,3,3*BS],[e,1,lm]];function s(u,f,c){const h=f<u;h&&([u,f]=[f,u]);const p=c&&typeof c.range=="function"?c:l(u,f,c),m=p?p.range(u,+f+1):[];return h?m.reverse():m}function l(u,f,c){const h=Math.abs(f-u)/c,p=ab(([,,v])=>v).right(o,h);if(p===o.length)return e.every(wv(u/lm,f/lm,c));if(p===0)return dd.every(Math.max(wv(u,f,c),1));const[m,y]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return m.every(y)}return[s,l]}const[eX,tX]=mE(Ln,Ob,Hh,pE,wb,bb),[rX,nX]=mE(Dn,Sb,Wh,oc,xb,gb);function um(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function cm(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function il(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function iX(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=al(i),f=ol(i),c=al(a),h=ol(a),p=al(o),m=ol(o),y=al(s),v=ol(s),g=al(l),b=ol(l),w={a:B,A:C,b:F,B:U,c:null,d:VS,e:VS,f:AX,g:DX,G:zX,H:jX,I:_X,j:PX,L:yE,m:kX,M:EX,p:V,q:H,Q:QS,s:YS,S:NX,u:CX,U:TX,V:$X,w:MX,W:IX,x:null,X:null,y:RX,Y:LX,Z:FX,"%":XS},O={a:X,A:ie,b:xe,B:ze,c:null,d:GS,e:GS,f:HX,g:eQ,G:rQ,H:BX,I:UX,j:WX,L:gE,m:qX,M:KX,p:Se,q:gt,Q:QS,s:YS,S:VX,u:GX,U:XX,V:QX,w:YX,W:JX,x:null,X:null,y:ZX,Y:tQ,Z:nQ,"%":XS},x={a:N,A:$,b:T,B:L,c:R,d:qS,e:qS,f:xX,g:HS,G:WS,H:KS,I:KS,j:yX,L:bX,m:mX,M:vX,p:P,q:pX,Q:SX,s:OX,S:gX,u:uX,U:cX,V:fX,w:lX,W:dX,x:I,X:D,y:HS,Y:WS,Z:hX,"%":wX};w.x=S(r,w),w.X=S(n,w),w.c=S(t,w),O.x=S(r,O),O.X=S(n,O),O.c=S(t,O);function S(G,le){return function(ue){var W=[],qe=-1,ge=0,tt=G.length,rt,Ft,Hn;for(ue instanceof Date||(ue=new Date(+ue));++qe<tt;)G.charCodeAt(qe)===37&&(W.push(G.slice(ge,qe)),(Ft=US[rt=G.charAt(++qe)])!=null?rt=G.charAt(++qe):Ft=rt==="e"?" ":"0",(Hn=le[rt])&&(rt=Hn(ue,Ft)),W.push(rt),ge=qe+1);return W.push(G.slice(ge,qe)),W.join("")}}function j(G,le){return function(ue){var W=il(1900,void 0,1),qe=_(W,G,ue+="",0),ge,tt;if(qe!=ue.length)return null;if("Q"in W)return new Date(W.Q);if("s"in W)return new Date(W.s*1e3+("L"in W?W.L:0));if(le&&!("Z"in W)&&(W.Z=0),"p"in W&&(W.H=W.H%12+W.p*12),W.m===void 0&&(W.m="q"in W?W.q:0),"V"in W){if(W.V<1||W.V>53)return null;"w"in W||(W.w=1),"Z"in W?(ge=cm(il(W.y,0,1)),tt=ge.getUTCDay(),ge=tt>4||tt===0?pd.ceil(ge):pd(ge),ge=Uh.offset(ge,(W.V-1)*7),W.y=ge.getUTCFullYear(),W.m=ge.getUTCMonth(),W.d=ge.getUTCDate()+(W.w+6)%7):(ge=um(il(W.y,0,1)),tt=ge.getDay(),ge=tt>4||tt===0?hd.ceil(ge):hd(ge),ge=oc.offset(ge,(W.V-1)*7),W.y=ge.getFullYear(),W.m=ge.getMonth(),W.d=ge.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),tt="Z"in W?cm(il(W.y,0,1)).getUTCDay():um(il(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(tt+5)%7:W.w+W.U*7-(tt+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,cm(W)):um(W)}}function _(G,le,ue,W){for(var qe=0,ge=le.length,tt=ue.length,rt,Ft;qe<ge;){if(W>=tt)return-1;if(rt=le.charCodeAt(qe++),rt===37){if(rt=le.charAt(qe++),Ft=x[rt in US?le.charAt(qe++):rt],!Ft||(W=Ft(G,ue,W))<0)return-1}else if(rt!=ue.charCodeAt(W++))return-1}return W}function P(G,le,ue){var W=u.exec(le.slice(ue));return W?(G.p=f.get(W[0].toLowerCase()),ue+W[0].length):-1}function N(G,le,ue){var W=p.exec(le.slice(ue));return W?(G.w=m.get(W[0].toLowerCase()),ue+W[0].length):-1}function $(G,le,ue){var W=c.exec(le.slice(ue));return W?(G.w=h.get(W[0].toLowerCase()),ue+W[0].length):-1}function T(G,le,ue){var W=g.exec(le.slice(ue));return W?(G.m=b.get(W[0].toLowerCase()),ue+W[0].length):-1}function L(G,le,ue){var W=y.exec(le.slice(ue));return W?(G.m=v.get(W[0].toLowerCase()),ue+W[0].length):-1}function R(G,le,ue){return _(G,t,le,ue)}function I(G,le,ue){return _(G,r,le,ue)}function D(G,le,ue){return _(G,n,le,ue)}function B(G){return o[G.getDay()]}function C(G){return a[G.getDay()]}function F(G){return l[G.getMonth()]}function U(G){return s[G.getMonth()]}function V(G){return i[+(G.getHours()>=12)]}function H(G){return 1+~~(G.getMonth()/3)}function X(G){return o[G.getUTCDay()]}function ie(G){return a[G.getUTCDay()]}function xe(G){return l[G.getUTCMonth()]}function ze(G){return s[G.getUTCMonth()]}function Se(G){return i[+(G.getUTCHours()>=12)]}function gt(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var le=S(G+="",w);return le.toString=function(){return G},le},parse:function(G){var le=j(G+="",!1);return le.toString=function(){return G},le},utcFormat:function(G){var le=S(G+="",O);return le.toString=function(){return G},le},utcParse:function(G){var le=j(G+="",!0);return le.toString=function(){return G},le}}}var US={"-":"",_:" ",0:"0"},vt=/^\s*\d+/,aX=/^%/,oX=/[\\^$*+?|[\]().{}]/g;function we(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function sX(e){return e.replace(oX,"\\$&")}function al(e){return new RegExp("^(?:"+e.map(sX).join("|")+")","i")}function ol(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function lX(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function uX(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function cX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function fX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function dX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function WS(e,t,r){var n=vt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function HS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function hX(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 pX(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function mX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function qS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function yX(e,t,r){var n=vt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function KS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function vX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function gX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function bX(e,t,r){var n=vt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function xX(e,t,r){var n=vt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function wX(e,t,r){var n=aX.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function SX(e,t,r){var n=vt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function OX(e,t,r){var n=vt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function VS(e,t){return we(e.getDate(),t,2)}function jX(e,t){return we(e.getHours(),t,2)}function _X(e,t){return we(e.getHours()%12||12,t,2)}function PX(e,t){return we(1+oc.count(Dn(e),e),t,3)}function yE(e,t){return we(e.getMilliseconds(),t,3)}function AX(e,t){return yE(e,t)+"000"}function kX(e,t){return we(e.getMonth()+1,t,2)}function EX(e,t){return we(e.getMinutes(),t,2)}function NX(e,t){return we(e.getSeconds(),t,2)}function CX(e){var t=e.getDay();return t===0?7:t}function TX(e,t){return we(Wh.count(Dn(e)-1,e),t,2)}function vE(e){var t=e.getDay();return t>=4||t===0?ns(e):ns.ceil(e)}function $X(e,t){return e=vE(e),we(ns.count(Dn(e),e)+(Dn(e).getDay()===4),t,2)}function MX(e){return e.getDay()}function IX(e,t){return we(hd.count(Dn(e)-1,e),t,2)}function RX(e,t){return we(e.getFullYear()%100,t,2)}function DX(e,t){return e=vE(e),we(e.getFullYear()%100,t,2)}function LX(e,t){return we(e.getFullYear()%1e4,t,4)}function zX(e,t){var r=e.getDay();return e=r>=4||r===0?ns(e):ns.ceil(e),we(e.getFullYear()%1e4,t,4)}function FX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+we(t/60|0,"0",2)+we(t%60,"0",2)}function GS(e,t){return we(e.getUTCDate(),t,2)}function BX(e,t){return we(e.getUTCHours(),t,2)}function UX(e,t){return we(e.getUTCHours()%12||12,t,2)}function WX(e,t){return we(1+Uh.count(Ln(e),e),t,3)}function gE(e,t){return we(e.getUTCMilliseconds(),t,3)}function HX(e,t){return gE(e,t)+"000"}function qX(e,t){return we(e.getUTCMonth()+1,t,2)}function KX(e,t){return we(e.getUTCMinutes(),t,2)}function VX(e,t){return we(e.getUTCSeconds(),t,2)}function GX(e){var t=e.getUTCDay();return t===0?7:t}function XX(e,t){return we(Hh.count(Ln(e)-1,e),t,2)}function bE(e){var t=e.getUTCDay();return t>=4||t===0?is(e):is.ceil(e)}function QX(e,t){return e=bE(e),we(is.count(Ln(e),e)+(Ln(e).getUTCDay()===4),t,2)}function YX(e){return e.getUTCDay()}function JX(e,t){return we(pd.count(Ln(e)-1,e),t,2)}function ZX(e,t){return we(e.getUTCFullYear()%100,t,2)}function eQ(e,t){return e=bE(e),we(e.getUTCFullYear()%100,t,2)}function tQ(e,t){return we(e.getUTCFullYear()%1e4,t,4)}function rQ(e,t){var r=e.getUTCDay();return e=r>=4||r===0?is(e):is.ceil(e),we(e.getUTCFullYear()%1e4,t,4)}function nQ(){return"+0000"}function XS(){return"%"}function QS(e){return+e}function YS(e){return Math.floor(+e/1e3)}var eo,xE,wE;iQ({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 iQ(e){return eo=iX(e),xE=eo.format,eo.parse,wE=eo.utcFormat,eo.utcParse,eo}function aQ(e){return new Date(e)}function oQ(e){return e instanceof Date?+e:+new Date(+e)}function jb(e,t,r,n,i,a,o,s,l,u){var f=cb(),c=f.invert,h=f.domain,p=u(".%L"),m=u(":%S"),y=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),b=u("%b %d"),w=u("%B"),O=u("%Y");function x(S){return(l(S)<S?p:s(S)<S?m:o(S)<S?y:a(S)<S?v:n(S)<S?i(S)<S?g:b:r(S)<S?w:O)(S)}return f.invert=function(S){return new Date(c(S))},f.domain=function(S){return arguments.length?h(Array.from(S,oQ)):h().map(aQ)},f.ticks=function(S){var j=h();return e(j[0],j[j.length-1],S??10)},f.tickFormat=function(S,j){return j==null?x:u(j)},f.nice=function(S){var j=h();return(!S||typeof S.range!="function")&&(S=t(j[0],j[j.length-1],S??10)),S?h(sE(j,S)):f},f.copy=function(){return ac(f,jb(e,t,r,n,i,a,o,s,l,u))},f}function sQ(){return Nr.apply(jb(rX,nX,Dn,Sb,Wh,oc,xb,gb,sa,xE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function lQ(){return Nr.apply(jb(eX,tX,Ln,Ob,Hh,Uh,wb,bb,sa,wE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function qh(){var e=0,t=1,r,n,i,a,o=Rt,s=!1,l;function u(c){return c==null||isNaN(c=+c)?l:o(i===0?.5:(c=(a(c)-r)*i,s?Math.max(0,Math.min(1,c)):c))}u.domain=function(c){return arguments.length?([e,t]=c,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(c){return arguments.length?(s=!!c,u):s},u.interpolator=function(c){return arguments.length?(o=c,u):o};function f(c){return function(h){var p,m;return arguments.length?([p,m]=h,o=c(p,m),u):[o(0),o(1)]}}return u.range=f(Bs),u.rangeRound=f(ub),u.unknown=function(c){return arguments.length?(l=c,u):l},function(c){return a=c,r=c(e),n=c(t),i=r===n?0:1/(n-r),u}}function zi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function SE(){var e=Li(qh()(Rt));return e.copy=function(){return zi(e,SE())},Un.apply(e,arguments)}function OE(){var e=hb(qh()).domain([1,10]);return e.copy=function(){return zi(e,OE()).base(e.base())},Un.apply(e,arguments)}function jE(){var e=pb(qh());return e.copy=function(){return zi(e,jE()).constant(e.constant())},Un.apply(e,arguments)}function _b(){var e=mb(qh());return e.copy=function(){return zi(e,_b()).exponent(e.exponent())},Un.apply(e,arguments)}function uQ(){return _b.apply(null,arguments).exponent(.5)}function _E(){var e=[],t=Rt;function r(n){if(n!=null&&!isNaN(n=+n))return t((nc(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(_i),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>XV(e,a/n))},r.copy=function(){return _E(t).domain(e)},Un.apply(r,arguments)}function Kh(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=Rt,f,c=!1,h;function p(y){return isNaN(y=+y)?h:(y=.5+((y=+f(y))-a)*(n*y<n*a?s:l),u(c?Math.max(0,Math.min(1,y)):y))}p.domain=function(y){return arguments.length?([e,t,r]=y,i=f(e=+e),a=f(t=+t),o=f(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(y){return arguments.length?(c=!!y,p):c},p.interpolator=function(y){return arguments.length?(u=y,p):u};function m(y){return function(v){var g,b,w;return arguments.length?([g,b,w]=v,u=wG(y,[g,b,w]),p):[u(0),u(.5),u(1)]}}return p.range=m(Bs),p.rangeRound=m(ub),p.unknown=function(y){return arguments.length?(h=y,p):h},function(y){return f=y,i=y(e),a=y(t),o=y(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function PE(){var e=Li(Kh()(Rt));return e.copy=function(){return zi(e,PE())},Un.apply(e,arguments)}function AE(){var e=hb(Kh()).domain([.1,1,10]);return e.copy=function(){return zi(e,AE()).base(e.base())},Un.apply(e,arguments)}function kE(){var e=pb(Kh());return e.copy=function(){return zi(e,kE()).constant(e.constant())},Un.apply(e,arguments)}function Pb(){var e=mb(Kh());return e.copy=function(){return zi(e,Pb()).exponent(e.exponent())},Un.apply(e,arguments)}function cQ(){return Pb.apply(null,arguments).exponent(.5)}const JS=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:cu,scaleDiverging:PE,scaleDivergingLog:AE,scaleDivergingPow:Pb,scaleDivergingSqrt:cQ,scaleDivergingSymlog:kE,scaleIdentity:oE,scaleImplicit:Sv,scaleLinear:fd,scaleLog:lE,scaleOrdinal:ob,scalePoint:Nl,scalePow:yb,scaleQuantile:fE,scaleQuantize:dE,scaleRadial:cE,scaleSequential:SE,scaleSequentialLog:OE,scaleSequentialPow:_b,scaleSequentialQuantile:_E,scaleSequentialSqrt:uQ,scaleSequentialSymlog:jE,scaleSqrt:HG,scaleSymlog:uE,scaleThreshold:hE,scaleTime:sQ,scaleUtc:lQ,tickFormat:aE},Symbol.toStringTag,{value:"Module"}));var fQ=Cs;function dQ(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(s===void 0?o===o&&!fQ(o):r(o,s)))var s=o,l=a}return l}var Vh=dQ;function hQ(e,t){return e>t}var EE=hQ,pQ=Vh,mQ=EE,yQ=Fs;function vQ(e){return e&&e.length?pQ(e,yQ,mQ):void 0}var gQ=vQ;const hi=Ae(gQ);function bQ(e,t){return e<t}var NE=bQ,xQ=Vh,wQ=NE,SQ=Fs;function OQ(e){return e&&e.length?xQ(e,SQ,wQ):void 0}var jQ=OQ;const Gh=Ae(jQ);var _Q=F0,PQ=fn,AQ=zk,kQ=tr;function EQ(e,t){var r=kQ(e)?_Q:AQ;return r(e,PQ(t))}var NQ=EQ,CQ=Dk,TQ=NQ;function $Q(e,t){return CQ(TQ(e,t),1)}var MQ=$Q;const IQ=Ae(MQ);var RQ=tb;function DQ(e,t){return RQ(e,t)}var LQ=DQ;const as=Ae(LQ);var Us=1e9,zQ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},kb,Be=!0,kr="[DecimalError] ",Oa=kr+"Invalid argument: ",Ab=kr+"Exponent out of range: ",Ws=Math.floor,Ji=Math.pow,FQ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,or,ht=1e7,De=7,CE=9007199254740991,md=Ws(CE/De),J={};J.absoluteValue=J.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};J.comparedTo=J.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};J.decimalPlaces=J.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*De;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};J.dividedBy=J.div=function(e){return En(this,new this.constructor(e))};J.dividedToIntegerBy=J.idiv=function(e){var t=this,r=t.constructor;return Ne(En(t,new r(e),0,1),r.precision)};J.equals=J.eq=function(e){return!this.cmp(e)};J.exponent=function(){return et(this)};J.greaterThan=J.gt=function(e){return this.cmp(e)>0};J.greaterThanOrEqualTo=J.gte=function(e){return this.cmp(e)>=0};J.isInteger=J.isint=function(){return this.e>this.d.length-2};J.isNegative=J.isneg=function(){return this.s<0};J.isPositive=J.ispos=function(){return this.s>0};J.isZero=function(){return this.s===0};J.lessThan=J.lt=function(e){return this.cmp(e)<0};J.lessThanOrEqualTo=J.lte=function(e){return this.cmp(e)<1};J.logarithm=J.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(or))throw Error(kr+"NaN");if(r.s<1)throw Error(kr+(r.s?"NaN":"-Infinity"));return r.eq(or)?new n(0):(Be=!1,t=En(mu(r,a),mu(e,a),a),Be=!0,Ne(t,i))};J.minus=J.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ME(t,e):TE(t,(e.s=-e.s,e))};J.modulo=J.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(kr+"NaN");return r.s?(Be=!1,t=En(r,e,0,1).times(e),Be=!0,r.minus(t)):Ne(new n(r),i)};J.naturalExponential=J.exp=function(){return $E(this)};J.naturalLogarithm=J.ln=function(){return mu(this)};J.negated=J.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};J.plus=J.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?TE(t,e):ME(t,(e.s=-e.s,e))};J.precision=J.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oa+e);if(t=et(i)+1,n=i.d.length-1,r=n*De+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};J.squareRoot=J.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(kr+"NaN")}for(e=et(s),Be=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Zr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ws((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(En(s,a,o+2)).times(.5),Zr(a.d).slice(0,o)===(t=Zr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ne(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Be=!0,Ne(n,r)};J.times=J.mul=function(e){var t,r,n,i,a,o,s,l,u,f=this,c=f.constructor,h=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,l=h.length,u=p.length,l<u&&(a=h,h=p,p=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%ht|0,t=s/ht|0;a[i]=(a[i]+t)%ht|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Be?Ne(e,c.precision):e};J.toDecimalPlaces=J.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(on(e,0,Us),t===void 0?t=n.rounding:on(t,0,8),Ne(r,e+et(r)+1,t))};J.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=La(n,!0):(on(e,0,Us),t===void 0?t=i.rounding:on(t,0,8),n=Ne(new i(n),e+1,t),r=La(n,!0,e+1)),r};J.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?La(i):(on(e,0,Us),t===void 0?t=a.rounding:on(t,0,8),n=Ne(new a(i),e+et(i)+1,t),r=La(n.abs(),!1,e+et(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};J.toInteger=J.toint=function(){var e=this,t=e.constructor;return Ne(new t(e),et(e)+1,t.rounding)};J.toNumber=function(){return+this};J.toPower=J.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(or);if(s=new l(s),!s.s){if(e.s<1)throw Error(kr+"Infinity");return s}if(s.eq(or))return s;if(n=l.precision,e.eq(or))return Ne(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=f<0?-f:f)<=CE){for(i=new l(or),t=Math.ceil(n/De+4),Be=!1;r%2&&(i=i.times(s),eO(i.d,t)),r=Ws(r/2),r!==0;)s=s.times(s),eO(s.d,t);return Be=!0,e.s<0?new l(or).div(i):Ne(i,n)}}else if(a<0)throw Error(kr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Be=!1,i=e.times(mu(s,n+u)),Be=!0,i=$E(i),i.s=a,i};J.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=et(i),n=La(i,r<=a.toExpNeg||r>=a.toExpPos)):(on(e,1,Us),t===void 0?t=a.rounding:on(t,0,8),i=Ne(new a(i),e,t),r=et(i),n=La(i,e<=r||r<=a.toExpNeg,e)),n};J.toSignificantDigits=J.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(on(e,1,Us),t===void 0?t=n.rounding:on(t,0,8)),Ne(new n(r),e,t)};J.toString=J.valueOf=J.val=J.toJSON=J[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=et(e),r=e.constructor;return La(e,t<=r.toExpNeg||t>=r.toExpPos)};function TE(e,t){var r,n,i,a,o,s,l,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Be?Ne(t,c):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(c/De),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/ht|0,l[a]%=ht;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Be?Ne(t,c):t}function on(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Oa+e)}function Zr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=De-n.length,r&&(a+=Yn(r)),a+=n;o=e[t],n=o+"",r=De-n.length,r&&(a+=Yn(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var En=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%ht|0,o=a/ht|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ht+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,f,c,h,p,m,y,v,g,b,w,O,x,S,j,_,P=n.constructor,N=n.s==i.s?1:-1,$=n.d,T=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(kr+"Division by zero");for(l=n.e-i.e,j=T.length,x=$.length,p=new P(N),m=p.d=[],u=0;T[u]==($[u]||0);)++u;if(T[u]>($[u]||0)&&--l,a==null?b=a=P.precision:o?b=a+(et(n)-et(i))+1:b=a,b<0)return new P(0);if(b=b/De+2|0,u=0,j==1)for(f=0,T=T[0],b++;(u<x||f)&&b--;u++)w=f*ht+($[u]||0),m[u]=w/T|0,f=w%T|0;else{for(f=ht/(T[0]+1)|0,f>1&&(T=e(T,f),$=e($,f),j=T.length,x=$.length),O=j,y=$.slice(0,j),v=y.length;v<j;)y[v++]=0;_=T.slice(),_.unshift(0),S=T[0],T[1]>=ht/2&&++S;do f=0,s=t(T,y,j,v),s<0?(g=y[0],j!=v&&(g=g*ht+(y[1]||0)),f=g/S|0,f>1?(f>=ht&&(f=ht-1),c=e(T,f),h=c.length,v=y.length,s=t(c,y,h,v),s==1&&(f--,r(c,j<h?_:T,h))):(f==0&&(s=f=1),c=T.slice()),h=c.length,h<v&&c.unshift(0),r(y,c,v),s==-1&&(v=y.length,s=t(T,y,j,v),s<1&&(f++,r(y,j<v?_:T,v))),v=y.length):s===0&&(f++,y=[0]),m[u++]=f,s&&y[0]?y[v++]=$[O]||0:(y=[$[O]],v=1);while((O++<x||y[0]!==void 0)&&b--)}return m[0]||m.shift(),p.e=l,Ne(p,o?a+et(p)+1:a)}}();function $E(e,t){var r,n,i,a,o,s,l=0,u=0,f=e.constructor,c=f.precision;if(et(e)>16)throw Error(Ab+et(e));if(!e.s)return new f(or);for(Be=!1,s=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Ji(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new f(or),f.precision=s;;){if(i=Ne(i.times(e),s),r=r.times(++l),o=a.plus(En(i,r,s)),Zr(o.d).slice(0,s)===Zr(a.d).slice(0,s)){for(;u--;)a=Ne(a.times(a),s);return f.precision=c,t==null?(Be=!0,Ne(a,c)):a}a=o}}function et(e){for(var t=e.e*De,r=e.d[0];r>=10;r/=10)t++;return t}function fm(e,t,r){if(t>e.LN10.sd())throw Be=!0,r&&(e.precision=r),Error(kr+"LN10 precision limit exceeded");return Ne(new e(e.LN10),t)}function Yn(e){for(var t="";e--;)t+="0";return t}function mu(e,t){var r,n,i,a,o,s,l,u,f,c=1,h=10,p=e,m=p.d,y=p.constructor,v=y.precision;if(p.s<1)throw Error(kr+(p.s?"NaN":"-Infinity"));if(p.eq(or))return new y(0);if(t==null?(Be=!1,u=v):u=t,p.eq(10))return t==null&&(Be=!0),fm(y,u);if(u+=h,y.precision=u,r=Zr(m),n=r.charAt(0),a=et(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Zr(p.d),n=r.charAt(0),c++;a=et(p),n>1?(p=new y("0."+r),a++):p=new y(n+"."+r.slice(1))}else return l=fm(y,u+2,v).times(a+""),p=mu(new y(n+"."+r.slice(1)),u-h).plus(l),y.precision=v,t==null?(Be=!0,Ne(p,v)):p;for(s=o=p=En(p.minus(or),p.plus(or),u),f=Ne(p.times(p),u),i=3;;){if(o=Ne(o.times(f),u),l=s.plus(En(o,new y(i),u)),Zr(l.d).slice(0,u)===Zr(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(fm(y,u+2,v).times(a+""))),s=En(s,new y(c),u),y.precision=v,t==null?(Be=!0,Ne(s,v)):s;s=l,i+=2}}function ZS(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=Ws(r/De),e.d=[],n=(r+1)%De,r<0&&(n+=De),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=De;n<i;)e.d.push(+t.slice(n,n+=De));t=t.slice(n),n=De-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Be&&(e.e>md||e.e<-md))throw Error(Ab+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ne(e,t,r){var n,i,a,o,s,l,u,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=De,i=t,u=c[f=0];else{if(f=Math.ceil((n+1)/De),a=c.length,f>=a)return e;for(u=a=c[f],o=1;a>=10;a/=10)o++;n%=De,i=n-De+o}if(r!==void 0&&(a=Ji(10,o-i-1),s=u/a%10|0,l=t<0||c[f+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Ji(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return l?(a=et(e),c.length=1,t=t-a-1,c[0]=Ji(10,(De-t%De)%De),e.e=Ws(-t/De)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=Ji(10,De-n),c[f]=i>0?(u/Ji(10,o-i)%Ji(10,i)|0)*a:0),l)for(;;)if(f==0){(c[0]+=a)==ht&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=ht)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Be&&(e.e>md||e.e<-md))throw Error(Ab+et(e));return e}function ME(e,t){var r,n,i,a,o,s,l,u,f,c,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),Be?Ne(t,p):t;if(l=e.d,c=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(f=o<0,f?(r=l,o=-o,s=c.length):(r=c,n=u,s=l.length),i=Math.max(Math.ceil(p/De),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=c.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=c[i]){f=l[i]<c[i];break}o=0}for(f&&(r=l,l=c,c=r,t.s=-t.s),s=l.length,i=c.length-s;i>0;--i)l[s++]=0;for(i=c.length;i>o;){if(l[--i]<c[i]){for(a=i;a&&l[--a]===0;)l[a]=ht-1;--l[a],l[i]+=ht}l[i]-=c[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Be?Ne(t,p):t):new h(0)}function La(e,t,r){var n,i=et(e),a=Zr(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Yn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Yn(-i-1)+a,r&&(n=r-o)>0&&(a+=Yn(n))):i>=o?(a+=Yn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Yn(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Yn(n))),e.s<0?"-"+a:a}function eO(e,t){if(e.length>t)return e.length=t,!0}function IE(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(Oa+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 ZS(o,a.toString())}else if(typeof a!="string")throw Error(Oa+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,FQ.test(a))ZS(o,a);else throw Error(Oa+a)}if(i.prototype=J,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=IE,i.config=i.set=BQ,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function BQ(e){if(!e||typeof e!="object")throw Error(kr+"Object expected");var t,r,n,i=["precision",1,Us,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ws(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Oa+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Oa+r+": "+n);return this}var kb=IE(zQ);or=new kb(1);const Ee=kb;function UQ(e){return KQ(e)||qQ(e)||HQ(e)||WQ()}function WQ(){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 HQ(e,t){if(e){if(typeof e=="string")return Pv(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 Pv(e,t)}}function qQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function KQ(e){if(Array.isArray(e))return Pv(e)}function Pv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var VQ=function(t){return t},RE={},DE=function(t){return t===RE},tO=function(t){return function r(){return arguments.length===0||arguments.length===1&&DE(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},GQ=function e(t,r){return t===1?r:tO(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==RE}).length;return o>=t?r.apply(void 0,i):e(t-o,tO(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var f=i.map(function(c){return DE(c)?l.shift():c});return r.apply(void 0,UQ(f).concat(l))}))})},Xh=function(t){return GQ(t.length,t)},Av=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},XQ=Xh(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),QQ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return VQ;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},kv=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},LE=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function YQ(e){var t;return e===0?t=1:t=Math.floor(new Ee(e).abs().log(10).toNumber())+1,t}function JQ(e,t,r){for(var n=new Ee(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var ZQ=Xh(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),eY=Xh(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),tY=Xh(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Qh={rangeStep:JQ,getDigitCount:YQ,interpolateNumber:ZQ,uninterpolateNumber:eY,uninterpolateTruncation:tY};function Ev(e){return iY(e)||nY(e)||zE(e)||rY()}function rY(){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 nY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function iY(e){if(Array.isArray(e))return Nv(e)}function yu(e,t){return sY(e)||oY(e,t)||zE(e,t)||aY()}function aY(){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 zE(e,t){if(e){if(typeof e=="string")return Nv(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 Nv(e,t)}}function Nv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oY(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function sY(e){if(Array.isArray(e))return e}function FE(e){var t=yu(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function BE(e,t,r){if(e.lte(0))return new Ee(0);var n=Qh.getDigitCount(e.toNumber()),i=new Ee(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ee(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Ee(Math.ceil(l))}function lY(e,t,r){var n=1,i=new Ee(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ee(10).pow(Qh.getDigitCount(e)-1),i=new Ee(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ee(Math.floor(e)))}else e===0?i=new Ee(Math.floor((t-1)/2)):r||(i=new Ee(Math.floor(e)));var o=Math.floor((t-1)/2),s=QQ(XQ(function(l){return i.add(new Ee(l-o).mul(n)).toNumber()}),Av);return s(0,t)}function UE(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 Ee(0),tickMin:new Ee(0),tickMax:new Ee(0)};var a=BE(new Ee(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ee(0):(o=new Ee(e).add(t).div(2),o=o.sub(new Ee(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Ee(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?UE(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Ee(s).mul(a)),tickMax:o.add(new Ee(l).mul(a))})}function uY(e){var t=yu(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=FE([r,n]),l=yu(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(Ev(Av(0,i-1).map(function(){return 1/0}))):[].concat(Ev(Av(0,i-1).map(function(){return-1/0})),[f]);return r>n?kv(c):c}if(u===f)return lY(u,i,a);var h=UE(u,f,o,a),p=h.step,m=h.tickMin,y=h.tickMax,v=Qh.rangeStep(m,y.add(new Ee(.1).mul(p)),p);return r>n?kv(v):v}function cY(e,t){var r=yu(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=FE([n,i]),s=yu(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var f=Math.max(t,2),c=BE(new Ee(u).sub(l).div(f-1),a,0),h=[].concat(Ev(Qh.rangeStep(new Ee(l),new Ee(u).sub(new Ee(.99).mul(c)),c)),[u]);return n>i?kv(h):h}var fY=LE(uY),dY=LE(cY),hY="Invariant failed";function za(e,t){throw new Error(hY)}var pY=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function os(e){"@babel/helpers - typeof";return os=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},os(e)}function yd(){return yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yd.apply(this,arguments)}function mY(e,t){return bY(e)||gY(e,t)||vY(e,t)||yY()}function yY(){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 vY(e,t){if(e){if(typeof e=="string")return rO(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 rO(e,t)}}function rO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function bY(e){if(Array.isArray(e))return e}function xY(e,t){if(e==null)return{};var r=wY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function SY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qE(n.key),n)}}function jY(e,t,r){return t&&OY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Y(e,t,r){return t=vd(t),PY(e,WE()?Reflect.construct(t,r||[],vd(e).constructor):t.apply(e,r))}function PY(e,t){if(t&&(os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AY(e)}function AY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WE=function(){return!!e})()}function vd(e){return vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vd(e)}function kY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cv(e,t)}function Cv(e,t){return Cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cv(e,t)}function HE(e,t,r){return t=qE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qE(e){var t=EY(e,"string");return os(t)=="symbol"?t:t+""}function EY(e,t){if(os(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(os(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yh=function(e){function t(){return SY(this,t),_Y(this,t,arguments)}return kY(t,e),jY(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,f=n.xAxis,c=n.yAxis,h=xY(n,pY),p=ne(h,!1);this.props.direction==="x"&&f.type!=="number"&&za();var m=l.map(function(y){var v=u(y,s),g=v.x,b=v.y,w=v.value,O=v.errorVal;if(!O)return null;var x=[],S,j;if(Array.isArray(O)){var _=mY(O,2);S=_[0],j=_[1]}else S=j=O;if(a==="vertical"){var P=f.scale,N=b+i,$=N+o,T=N-o,L=P(w-S),R=P(w+j);x.push({x1:R,y1:$,x2:R,y2:T}),x.push({x1:L,y1:N,x2:R,y2:N}),x.push({x1:L,y1:$,x2:L,y2:T})}else if(a==="horizontal"){var I=c.scale,D=g+i,B=D-o,C=D+o,F=I(w-S),U=I(w+j);x.push({x1:B,y1:U,x2:C,y2:U}),x.push({x1:D,y1:F,x2:D,y2:U}),x.push({x1:B,y1:F,x2:C,y2:F})}return k.createElement(ve,yd({className:"recharts-errorBar",key:"bar-".concat(x.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},p),x.map(function(V){return k.createElement("line",yd({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return k.createElement(ve,{className:"recharts-errorBars"},m)}}])}(k.Component);HE(Yh,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});HE(Yh,"displayName","ErrorBar");function vu(e){"@babel/helpers - typeof";return vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vu(e)}function nO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nO(Object(r),!0).forEach(function(n){NY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NY(e,t,r){return t=CY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CY(e){var t=TY(e,"string");return vu(t)=="symbol"?t:t+""}function TY(e,t){if(vu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KE=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ar(r,Ao);if(!o)return null;var s=Ao.defaultProps,l=s!==void 0?qi(qi({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(f,c){var h=c.item,p=c.props,m=p.sectors||p.data||[];return f.concat(m.map(function(y){return{type:o.props.iconType||h.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):u=(n||[]).map(function(f){var c=f.item,h=c.type.defaultProps,p=h!==void 0?qi(qi({},h),c.props):{},m=p.dataKey,y=p.name,v=p.legendType,g=p.hide;return{inactive:g,dataKey:m,type:l.iconType||v||"square",color:Eb(c),value:y||m,payload:p}}),qi(qi(qi({},l),Ao.getWithHeight(o,i)),{},{payload:u,item:o})};function gu(e){"@babel/helpers - typeof";return gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gu(e)}function iO(e){return RY(e)||IY(e)||MY(e)||$Y()}function $Y(){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 MY(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 IY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RY(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++)n[r]=e[r];return n}function aO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aO(Object(r),!0).forEach(function(n){Eo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Eo(e,t,r){return t=DY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DY(e){var t=LY(e,"string");return gu(t)=="symbol"?t:t+""}function LY(e,t){if(gu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lt(e,t,r){return ce(e)||ce(t)?r:ct(t)?ur(e,t,r):oe(t)?t(e):r}function Cl(e,t,r,n){var i=IQ(e,function(s){return lt(s,t)});if(r==="number"){var a=i.filter(function(s){return q(s)||parseFloat(s)});return a.length?[Gh(a),hi(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!ce(s)}):i;return o.map(function(s){return ct(s)||s instanceof Date?s:""})}var zY=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var f=u>0?i[u-1].coordinate:i[s-1].coordinate,c=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(Mt(c-f)!==Mt(h-c)){var m=[];if(Mt(h-c)===Mt(l[1]-l[0])){p=h;var y=c+l[1]-l[0];m[0]=Math.min(y,(y+f)/2),m[1]=Math.max(y,(y+f)/2)}else{p=f;var v=h+l[1]-l[0];m[0]=Math.min(c,(v+c)/2),m[1]=Math.max(c,(v+c)/2)}var g=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>g[0]&&t<=g[1]||t>=m[0]&&t<=m[1]){o=i[u].index;break}}else{var b=Math.min(f,h),w=Math.max(f,h);if(t>(b+c)/2&&t<=(w+c)/2){o=i[u].index;break}}}else for(var O=0;O<s;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Eb=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},FY=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var f=a[s[l]].stackGroups,c=Object.keys(f),h=0,p=c.length;h<p;h++){var m=f[c[h]],y=m.items,v=m.cateAxisId,g=y.filter(function(j){return kn(j.type).indexOf("Bar")>=0});if(g&&g.length){var b=g[0].type.defaultProps,w=b!==void 0?Ge(Ge({},b),g[0].props):g[0].props,O=w.barSize,x=w[v];o[x]||(o[x]=[]);var S=ce(O)?r:O;o[x].push({item:g[0],stackList:g.slice(1),barSize:ce(S)?void 0:It(S,n,0)})}}return o},BY=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=It(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/l,m=o.reduce(function(O,x){return O+x.barSize||0},0);m+=(l-1)*u,m>=i&&(m-=(l-1)*u,u=0),m>=i&&p>0&&(h=!0,p*=.9,m=l*p);var y=(i-m)/2>>0,v={offset:y-u,size:0};f=o.reduce(function(O,x){var S={item:x.item,position:{offset:v.offset+v.size+u,size:h?p:x.barSize}},j=[].concat(iO(O),[S]);return v=j[j.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(_){j.push({item:_,position:v})}),j},c)}else{var g=It(n,i,0,!0);i-2*g-(l-1)*u<=0&&(u=0);var b=(i-2*g-(l-1)*u)/l;b>1&&(b>>=0);var w=s===+s?Math.min(b,s):b;f=o.reduce(function(O,x,S){var j=[].concat(iO(O),[{item:x.item,position:{offset:g+(b+u)*S+(b-w)/2,size:w}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(_){j.push({item:_,position:j[j.length-1].position})}),j},c)}return f},UY=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=KE({children:a,legendWidth:l});if(u){var f=i||{},c=f.width,h=f.height,p=u.align,m=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&m==="middle")&&p!=="center"&&q(t[p]))return Ge(Ge({},t),{},Eo({},p,t[p]+(c||0)));if((y==="horizontal"||y==="vertical"&&p==="center")&&m!=="middle"&&q(t[m]))return Ge(Ge({},t),{},Eo({},m,t[m]+(h||0)))}return t},WY=function(t,r,n){return ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},VE=function(t,r,n,i,a){var o=r.props.children,s=_r(o,Yh).filter(function(u){return WY(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=lt(f,n);if(ce(c))return u;var h=Array.isArray(c)?[Gh(c),hi(c)]:[c,c],p=l.reduce(function(m,y){var v=lt(f,y,0),g=h[0]-Math.abs(Array.isArray(v)?v[0]:v),b=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(g,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},HY=function(t,r,n,i,a){var o=r.map(function(s){return VE(t,s,n,a,i)}).filter(function(s){return!ce(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},GE=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&VE(t,l,u,i)||Cl(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var f=0,c=u.length;f<c;f++)s[u[f]]||(s[u[f]]=!0,l.push(u[f]));return l},[])},XE=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},QE=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},Pn=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Mt(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var h=a?a.indexOf(c):c;return{coordinate:i(h)+u,value:c,offset:u}});return f.filter(function(c){return!Rs(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,h){return{coordinate:i(c)+u,value:c,index:h,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+u,value:c,offset:u}}):i.domain().map(function(c,h){return{coordinate:i(c)+u,value:a?a[c]:c,index:h,offset:u}})},dm=new WeakMap,Fc=function(t,r){if(typeof r!="function")return t;dm.has(t)||dm.set(t,new WeakMap);var n=dm.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},YE=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:cu(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:fd(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Nl(),realScaleType:"point"}:a==="category"?{scale:cu(),realScaleType:"band"}:{scale:fd(),realScaleType:"linear"};if(Ia(i)){var l="scale".concat($h(i));return{scale:(JS[l]||Nl)(),realScaleType:JS[l]?l:"point"}}return oe(i)?{scale:i}:{scale:Nl(),realScaleType:"point"}},oO=1e-4,JE=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])-oO,o=Math.max(i[0],i[1])+oO,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},qY=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},KY=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},VY=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Rs(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},GY=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Rs(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},XY={sign:VY,expand:pF,none:Yo,silhouette:mF,wiggle:yF,positive:GY},QY=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=XY[n],o=hF().keys(i).value(function(s,l){return+lt(s,l,0)}).order(nv).offset(a);return o(t)},YY=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(c,h){var p,m=(p=h.type)!==null&&p!==void 0&&p.defaultProps?Ge(Ge({},h.type.defaultProps),h.props):h.props,y=m.stackId,v=m.hide;if(v)return c;var g=m[n],b=c[g]||{hasStack:!1,stackGroups:{}};if(ct(y)){var w=b.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),b.hasStack=!0,b.stackGroups[y]=w}else b.stackGroups[Ds("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return Ge(Ge({},c),{},Eo({},g,b))},l),f={};return Object.keys(u).reduce(function(c,h){var p=u[h];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(y,v){var g=p.stackGroups[v];return Ge(Ge({},y),{},Eo({},v,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:QY(t,g.items,a)}))},m)}return Ge(Ge({},c),{},Eo({},h,p))},f)},ZE=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=fY(u,a,s);return t.domain([Gh(f),hi(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),h=dY(c,a,s);return{niceTicks:h}}return null};function sO(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ce(i[t.dataKey])){var s=Wf(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=lt(i,ce(o)?t.dataKey:o);return ce(l)?null:t.scale(l)}var lO=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=lt(o,r.dataKey,r.domain[s]);return ce(l)?null:r.scale(l)-a/2+i},JY=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},ZY=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(ct(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},eJ=function(t){return t.reduce(function(r,n){return[Gh(n.concat([r[0]]).filter(q)),hi(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},eN=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,f){var c=eJ(f.slice(r,n+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},uO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$v=function(t,r,n){if(oe(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(uO.test(t[0])){var a=+uO.exec(t[0])[1];i[0]=r[0]-a}else oe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(cO.test(t[1])){var o=+cO.exec(t[1])[1];i[1]=r[1]+o}else oe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},gd=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=nb(r,function(c){return c.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],f=a[s-1];o=Math.min((u.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},fO=function(t,r,n){return!t||!t.length||as(t,ur(n,"type.defaultProps.domain"))?r:t},tN=function(t,r){var n=t.type.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,f=n.hide;return Ge(Ge({},ne(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:Eb(t),value:lt(r,i),type:l,payload:r,chartType:u,hide:f})};function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}function dO(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 yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dO(Object(r),!0).forEach(function(n){rN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rN(e,t,r){return t=tJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tJ(e){var t=rJ(e,"string");return bu(t)=="symbol"?t:t+""}function rJ(e,t){if(bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nJ(e,t){return sJ(e)||oJ(e,t)||aJ(e,t)||iJ()}function iJ(){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 aJ(e,t){if(e){if(typeof e=="string")return hO(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 hO(e,t)}}function hO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function sJ(e){if(Array.isArray(e))return e}var bd=Math.PI/180,lJ=function(t){return t*180/Math.PI},Me=function(t,r,n,i){return{x:t+Math.cos(-bd*i)*n,y:r+Math.sin(-bd*i)*n}},nN=function(t,r){var n=arguments.length>2&&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},uJ=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=It(t.cx,o,o/2),c=It(t.cy,s,s/2),h=nN(o,s,n),p=It(t.innerRadius,h,0),m=It(t.outerRadius,h,h*.8),y=Object.keys(r);return y.reduce(function(v,g){var b=r[g],w=b.domain,O=b.reversed,x;if(ce(b.range))i==="angleAxis"?x=[l,u]:i==="radiusAxis"&&(x=[p,m]),O&&(x=[x[1],x[0]]);else{x=b.range;var S=x,j=nJ(S,2);l=j[0],u=j[1]}var _=YE(b,a),P=_.realScaleType,N=_.scale;N.domain(w).range(x),JE(N);var $=ZE(N,yn(yn({},b),{},{realScaleType:P})),T=yn(yn(yn({},b),$),{},{range:x,radius:m,realScaleType:P,scale:N,cx:f,cy:c,innerRadius:p,outerRadius:m,startAngle:l,endAngle:u});return yn(yn({},v),{},rN({},g,T))},{})},cJ=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))},fJ=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=cJ({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:lJ(u),angleInRadian:u}},dJ=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}},hJ=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},pO=function(t,r){var n=t.x,i=t.y,a=fJ({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var f=dJ(r),c=f.startAngle,h=f.endAngle,p=s,m;if(c<=h){for(;p>h;)p-=360;for(;p<c;)p+=360;m=p>=c&&p<=h}else{for(;p>c;)p-=360;for(;p<h;)p+=360;m=p>=h&&p<=c}return m?yn(yn({},r),{},{radius:o,angle:hJ(p,r)}):null},iN=function(t){return!A.isValidElement(t)&&!oe(t)&&typeof t!="boolean"?t.className:""};function xu(e){"@babel/helpers - typeof";return xu=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},xu(e)}var pJ=["offset"];function mJ(e){return bJ(e)||gJ(e)||vJ(e)||yJ()}function yJ(){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 vJ(e,t){if(e){if(typeof e=="string")return Mv(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 Mv(e,t)}}function gJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bJ(e){if(Array.isArray(e))return Mv(e)}function Mv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xJ(e,t){if(e==null)return{};var r=wJ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mO(Object(r),!0).forEach(function(n){SJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SJ(e,t,r){return t=OJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OJ(e){var t=jJ(e,"string");return xu(t)=="symbol"?t:t+""}function jJ(e,t){if(xu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wu.apply(this,arguments)}var _J=function(t){var r=t.value,n=t.formatter,i=ce(t.children)?r:t.children;return oe(n)?n(i):i},PJ=function(t,r){var n=Mt(r-t),i=Math.min(Math.abs(r-t),360);return n*i},AJ=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,f=l.cy,c=l.innerRadius,h=l.outerRadius,p=l.startAngle,m=l.endAngle,y=l.clockWise,v=(c+h)/2,g=PJ(p,m),b=g>=0?1:-1,w,O;i==="insideStart"?(w=p+b*o,O=y):i==="insideEnd"?(w=m-b*o,O=!y):i==="end"&&(w=m+b*o,O=y),O=g<=0?O:!O;var x=Me(u,f,v,w),S=Me(u,f,v,w+(O?1:-1)*359),j="M".concat(x.x,",").concat(x.y,`
|
||
A`).concat(v,",").concat(v,",0,1,").concat(O?0:1,`,
|
||
`).concat(S.x,",").concat(S.y),_=ce(t.id)?Ds("recharts-radial-line-"):t.id;return k.createElement("text",wu({},n,{dominantBaseline:"central",className:fe("recharts-radial-bar-label",s)}),k.createElement("defs",null,k.createElement("path",{id:_,d:j})),k.createElement("textPath",{xlinkHref:"#".concat(_)},r))},kJ=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,f=a.startAngle,c=a.endAngle,h=(f+c)/2;if(i==="outside"){var p=Me(o,s,u+n,h),m=p.x,y=p.y;return{x:m,y,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+u)/2,g=Me(o,s,v,h),b=g.x,w=g.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},EJ=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,f=o.height,c=f>=0?1:-1,h=c*i,p=c>0?"end":"start",m=c>0?"start":"end",y=u>=0?1:-1,v=y*i,g=y>0?"end":"start",b=y>0?"start":"end";if(a==="top"){var w={x:s+u/2,y:l-c*i,textAnchor:"middle",verticalAnchor:p};return at(at({},w),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var O={x:s+u/2,y:l+f+h,textAnchor:"middle",verticalAnchor:m};return at(at({},O),n?{height:Math.max(n.y+n.height-(l+f),0),width:u}:{})}if(a==="left"){var x={x:s-v,y:l+f/2,textAnchor:g,verticalAnchor:"middle"};return at(at({},x),n?{width:Math.max(x.x-n.x,0),height:f}:{})}if(a==="right"){var S={x:s+u+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"};return at(at({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:f}:{})}var j=n?{width:u,height:f}:{};return a==="insideLeft"?at({x:s+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"},j):a==="insideRight"?at({x:s+u-v,y:l+f/2,textAnchor:g,verticalAnchor:"middle"},j):a==="insideTop"?at({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:m},j):a==="insideBottom"?at({x:s+u/2,y:l+f-h,textAnchor:"middle",verticalAnchor:p},j):a==="insideTopLeft"?at({x:s+v,y:l+h,textAnchor:b,verticalAnchor:m},j):a==="insideTopRight"?at({x:s+u-v,y:l+h,textAnchor:g,verticalAnchor:m},j):a==="insideBottomLeft"?at({x:s+v,y:l+f-h,textAnchor:b,verticalAnchor:p},j):a==="insideBottomRight"?at({x:s+u-v,y:l+f-h,textAnchor:g,verticalAnchor:p},j):Ts(a)&&(q(a.x)||aa(a.x))&&(q(a.y)||aa(a.y))?at({x:s+It(a.x,u),y:l+It(a.y,f),textAnchor:"end",verticalAnchor:"end"},j):at({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},j)},NJ=function(t){return"cx"in t&&q(t.cx)};function mt(e){var t=e.offset,r=t===void 0?5:t,n=xJ(e,pJ),i=at({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,f=i.className,c=f===void 0?"":f,h=i.textBreakAll;if(!a||ce(s)&&ce(l)&&!A.isValidElement(u)&&!oe(u))return null;if(A.isValidElement(u))return A.cloneElement(u,i);var p;if(oe(u)){if(p=A.createElement(u,i),A.isValidElement(p))return p}else p=_J(i);var m=NJ(a),y=ne(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return AJ(i,p,y);var v=m?kJ(i):EJ(i);return k.createElement(Da,wu({className:fe("recharts-label",c)},y,v,{breakAll:h}),p)}mt.displayName="Label";var aN=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,h=t.y,p=t.top,m=t.left,y=t.width,v=t.height,g=t.clockWise,b=t.labelViewBox;if(b)return b;if(q(y)&&q(v)){if(q(c)&&q(h))return{x:c,y:h,width:y,height:v};if(q(p)&&q(m))return{x:p,y:m,width:y,height:v}}return q(c)&&q(h)?{x:c,y:h,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},CJ=function(t,r){return t?t===!0?k.createElement(mt,{key:"label-implicit",viewBox:r}):ct(t)?k.createElement(mt,{key:"label-implicit",viewBox:r,value:t}):A.isValidElement(t)?t.type===mt?A.cloneElement(t,{key:"label-implicit",viewBox:r}):k.createElement(mt,{key:"label-implicit",content:t,viewBox:r}):oe(t)?k.createElement(mt,{key:"label-implicit",content:t,viewBox:r}):Ts(t)?k.createElement(mt,wu({viewBox:r},t,{key:"label-implicit"})):null:null},TJ=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=aN(t),o=_r(i,mt).map(function(l,u){return A.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=CJ(t.label,r||a);return[s].concat(mJ(o))};mt.parseViewBox=aN;mt.renderCallByParent=TJ;function $J(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var MJ=$J;const IJ=Ae(MJ);function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}var RJ=["valueAccessor"],DJ=["data","dataKey","clockWise","id","textBreakAll"];function LJ(e){return UJ(e)||BJ(e)||FJ(e)||zJ()}function zJ(){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 FJ(e,t){if(e){if(typeof e=="string")return Iv(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 Iv(e,t)}}function BJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UJ(e){if(Array.isArray(e))return Iv(e)}function Iv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xd.apply(this,arguments)}function yO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yO(Object(r),!0).forEach(function(n){WJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WJ(e,t,r){return t=HJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HJ(e){var t=qJ(e,"string");return Su(t)=="symbol"?t:t+""}function qJ(e,t){if(Su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gO(e,t){if(e==null)return{};var r=KJ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var VJ=function(t){return Array.isArray(t.value)?IJ(t.value):t.value};function Nn(e){var t=e.valueAccessor,r=t===void 0?VJ:t,n=gO(e,RJ),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=gO(n,DJ);return!i||!i.length?null:k.createElement(ve,{className:"recharts-label-list"},i.map(function(f,c){var h=ce(a)?r(f,c):lt(f&&f.payload,a),p=ce(s)?{}:{id:"".concat(s,"-").concat(c)};return k.createElement(mt,xd({},ne(f,!0),u,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:mt.parseViewBox(ce(o)?f:vO(vO({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}Nn.displayName="LabelList";function GJ(e,t){return e?e===!0?k.createElement(Nn,{key:"labelList-implicit",data:t}):k.isValidElement(e)||oe(e)?k.createElement(Nn,{key:"labelList-implicit",data:t,content:e}):Ts(e)?k.createElement(Nn,xd({data:t},e,{key:"labelList-implicit"})):null:null}function XJ(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=_r(n,Nn).map(function(o,s){return A.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=GJ(e.label,t);return[a].concat(LJ(i))}Nn.renderCallByParent=XJ;function Ou(e){"@babel/helpers - typeof";return Ou=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},Ou(e)}function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rv.apply(this,arguments)}function bO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bO(Object(r),!0).forEach(function(n){QJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QJ(e,t,r){return t=YJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YJ(e){var t=JJ(e,"string");return Ou(t)=="symbol"?t:t+""}function JJ(e,t){if(Ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZJ=function(t,r){var n=Mt(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Bc=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,f=l*(s?1:-1)+i,c=Math.asin(l/f)/bd,h=u?a:a+o*c,p=Me(r,n,f,h),m=Me(r,n,i,h),y=u?a-o*c:a,v=Me(r,n,f*Math.cos(c*bd),y);return{center:p,circleTangency:m,lineTangency:v,theta:c}},oN=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=ZJ(o,s),u=o+l,f=Me(r,n,a,o),c=Me(r,n,a,u),h="M ".concat(f.x,",").concat(f.y,`
|
||
A `).concat(a,",").concat(a,`,0,
|
||
`).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
|
||
`).concat(c.x,",").concat(c.y,`
|
||
`);if(i>0){var p=Me(r,n,i,o),m=Me(r,n,i,u);h+="L ".concat(m.x,",").concat(m.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
|
||
`).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},eZ=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=Mt(f-u),h=Bc({cx:r,cy:n,radius:a,angle:u,sign:c,cornerRadius:o,cornerIsExternal:l}),p=h.circleTangency,m=h.lineTangency,y=h.theta,v=Bc({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:l}),g=v.circleTangency,b=v.lineTangency,w=v.theta,O=l?Math.abs(u-f):Math.abs(u-f)-y-w;if(O<0)return s?"M ".concat(m.x,",").concat(m.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
|
||
`):oN({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var x="M ".concat(m.x,",").concat(m.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
|
||
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(c<0),",").concat(g.x,",").concat(g.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(b.x,",").concat(b.y,`
|
||
`);if(i>0){var S=Bc({cx:r,cy:n,radius:i,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=S.circleTangency,_=S.lineTangency,P=S.theta,N=Bc({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),$=N.circleTangency,T=N.lineTangency,L=N.theta,R=l?Math.abs(u-f):Math.abs(u-f)-P-L;if(R<0&&o===0)return"".concat(x,"L").concat(r,",").concat(n,"Z");x+="L".concat(T.x,",").concat(T.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat($.x,",").concat($.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(R>180),",").concat(+(c>0),",").concat(j.x,",").concat(j.y,`
|
||
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else x+="L".concat(r,",").concat(n,"Z");return x},tZ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},sN=function(t){var r=xO(xO({},tZ),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,h=r.className;if(o<a||f===c)return null;var p=fe("recharts-sector",h),m=o-a,y=It(s,m,0,!0),v;return y>0&&Math.abs(f-c)<360?v=eZ({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:c}):v=oN({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),k.createElement("path",Rv({},ne(r,!0),{className:p,d:v,role:"img"}))};function ju(e){"@babel/helpers - typeof";return ju=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},ju(e)}function Dv(){return Dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dv.apply(this,arguments)}function wO(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 SO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wO(Object(r),!0).forEach(function(n){rZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rZ(e,t,r){return t=nZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nZ(e){var t=iZ(e,"string");return ju(t)=="symbol"?t:t+""}function iZ(e,t){if(ju(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ju(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OO={curveBasisClosed:rF,curveBasisOpen:nF,curveBasis:tF,curveBumpX:B8,curveBumpY:U8,curveLinearClosed:iF,curveLinear:Ih,curveMonotoneX:aF,curveMonotoneY:oF,curveNatural:sF,curveStep:lF,curveStepAfter:cF,curveStepBefore:uF},Uc=function(t){return t.x===+t.x&&t.y===+t.y},sl=function(t){return t.x},ll=function(t){return t.y},aZ=function(t,r){if(oe(t))return t;var n="curve".concat($h(t));return(n==="curveMonotone"||n==="curveBump")&&r?OO["".concat(n).concat(r==="vertical"?"Y":"X")]:OO[n]||Ih},oZ=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,f=aZ(n,s),c=u?a.filter(function(y){return Uc(y)}):a,h;if(Array.isArray(o)){var p=u?o.filter(function(y){return Uc(y)}):o,m=c.map(function(y,v){return SO(SO({},y),{},{base:p[v]})});return s==="vertical"?h=Tc().y(ll).x1(sl).x0(function(y){return y.base.x}):h=Tc().x(sl).y1(ll).y0(function(y){return y.base.y}),h.defined(Uc).curve(f),h(m)}return s==="vertical"&&q(o)?h=Tc().y(ll).x1(sl).x0(o):q(o)?h=Tc().x(sl).y1(ll).y0(o):h=rk().x(sl).y(ll),h.defined(Uc).curve(f),h(c)},No=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?oZ(t):i;return A.createElement("path",Dv({},ne(t,!1),Hf(t),{className:fe("recharts-curve",r),d:o,ref:a}))},lN={exports:{}},sZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lZ=sZ,uZ=lZ;function uN(){}function cN(){}cN.resetWarningCache=uN;var cZ=function(){function e(n,i,a,o,s,l){if(l!==uZ){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:cN,resetWarningCache:uN};return r.PropTypes=r,r};lN.exports=cZ();var fZ=lN.exports;const Oe=Ae(fZ),{getOwnPropertyNames:dZ,getOwnPropertySymbols:hZ}=Object,{hasOwnProperty:pZ}=Object.prototype;function hm(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Wc(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const l=e(r,n,i);return a.delete(r),a.delete(n),l}}function mZ(e){return e!=null?e[Symbol.toStringTag]:void 0}function jO(e){return dZ(e).concat(hZ(e))}const yZ=Object.hasOwn||((e,t)=>pZ.call(e,t));function Xa(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const vZ="__v",gZ="__o",bZ="_owner",{getOwnPropertyDescriptor:_O,keys:PO}=Object;function xZ(e,t){return e.byteLength===t.byteLength&&wd(new Uint8Array(e),new Uint8Array(t))}function wZ(e,t,r){let 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 SZ(e,t){return e.byteLength===t.byteLength&&wd(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function OZ(e,t){return Xa(e.getTime(),t.getTime())}function jZ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function _Z(e,t){return e===t}function AO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let f=!1,c=0;for(;(s=u.next())&&!s.done;){if(i[c]){c++;continue}const h=o.value,p=s.value;if(r.equals(h[0],p[0],l,c,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;l++}return!0}const PZ=Xa;function AZ(e,t,r){const n=PO(e);let i=n.length;if(PO(t).length!==i)return!1;for(;i-- >0;)if(!fN(e,t,r,n[i]))return!1;return!0}function ul(e,t,r){const n=jO(e);let i=n.length;if(jO(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!fN(e,t,r,a)||(o=_O(e,a),s=_O(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function kZ(e,t){return Xa(e.valueOf(),t.valueOf())}function EZ(e,t){return e.source===t.source&&e.flags===t.flags}function kO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let u=!1,f=0;for(;(s=l.next())&&!s.done;){if(!i[f]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[f]=!0;break}f++}if(!u)return!1}return!0}function wd(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function NZ(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function fN(e,t,r,n){return(n===bZ||n===gZ||n===vZ)&&(e.$$typeof||t.$$typeof)?!0:yZ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const CZ="[object ArrayBuffer]",TZ="[object Arguments]",$Z="[object Boolean]",MZ="[object DataView]",IZ="[object Date]",RZ="[object Error]",DZ="[object Map]",LZ="[object Number]",zZ="[object Object]",FZ="[object RegExp]",BZ="[object Set]",UZ="[object String]",WZ={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},HZ="[object URL]",qZ=Object.prototype.toString;function KZ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:m}){return function(v,g,b){if(v===g)return!0;if(v==null||g==null)return!1;const w=typeof v;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?s(v,g,b):w==="function"?a(v,g,b):!1;const O=v.constructor;if(O!==g.constructor)return!1;if(O===Object)return l(v,g,b);if(Array.isArray(v))return t(v,g,b);if(O===Date)return n(v,g,b);if(O===RegExp)return f(v,g,b);if(O===Map)return o(v,g,b);if(O===Set)return c(v,g,b);const x=qZ.call(v);if(x===IZ)return n(v,g,b);if(x===FZ)return f(v,g,b);if(x===DZ)return o(v,g,b);if(x===BZ)return c(v,g,b);if(x===zZ)return typeof v.then!="function"&&typeof g.then!="function"&&l(v,g,b);if(x===HZ)return p(v,g,b);if(x===RZ)return i(v,g,b);if(x===TZ)return l(v,g,b);if(WZ[x])return h(v,g,b);if(x===CZ)return e(v,g,b);if(x===MZ)return r(v,g,b);if(x===$Z||x===LZ||x===UZ)return u(v,g,b);if(m){let S=m[x];if(!S){const j=mZ(v);j&&(S=m[j])}if(S)return S(v,g,b)}return!1}}function VZ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:xZ,areArraysEqual:r?ul:wZ,areDataViewsEqual:SZ,areDatesEqual:OZ,areErrorsEqual:jZ,areFunctionsEqual:_Z,areMapsEqual:r?hm(AO,ul):AO,areNumbersEqual:PZ,areObjectsEqual:r?ul:AZ,arePrimitiveWrappersEqual:kZ,areRegExpsEqual:EZ,areSetsEqual:r?hm(kO,ul):kO,areTypedArraysEqual:r?hm(wd,ul):wd,areUrlsEqual:NZ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Wc(n.areArraysEqual),a=Wc(n.areMapsEqual),o=Wc(n.areObjectsEqual),s=Wc(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function GZ(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function XZ({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:f}=r();return t(s,l,{cache:u,equals:n,meta:f,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const QZ=Fi();Fi({strict:!0});Fi({circular:!0});Fi({circular:!0,strict:!0});Fi({createInternalComparator:()=>Xa});Fi({strict:!0,createInternalComparator:()=>Xa});Fi({circular:!0,createInternalComparator:()=>Xa});Fi({circular:!0,createInternalComparator:()=>Xa,strict:!0});function Fi(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=VZ(e),o=KZ(a),s=r?r(o):GZ(o);return XZ({circular:t,comparator:o,createState:n,equals:s,strict:i})}function YZ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function EO(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):YZ(i)};requestAnimationFrame(n)}function Lv(e){"@babel/helpers - typeof";return Lv=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},Lv(e)}function JZ(e){return ree(e)||tee(e)||eee(e)||ZZ()}function ZZ(){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 eee(e,t){if(e){if(typeof e=="string")return NO(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 NO(e,t)}}function NO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ree(e){if(Array.isArray(e))return e}function nee(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=JZ(o),l=s[0],u=s.slice(1);if(typeof l=="number"){EO(i.bind(null,u),l);return}i(l),EO(i.bind(null,u));return}Lv(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){dN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dN(e,t,r){return t=iee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iee(e){var t=aee(e,"string");return _u(t)==="symbol"?t:String(t)}function aee(e,t){if(_u(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_u(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oee=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},see=function(t){return t},lee=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Tl=function(t,r){return Object.keys(r).reduce(function(n,i){return TO(TO({},n),{},dN({},i,t(i,r[i])))},{})},$O=function(t,r,n){return t.map(function(i){return"".concat(lee(i)," ").concat(r,"ms ").concat(n)}).join(",")};function uee(e,t){return dee(e)||fee(e,t)||hN(e,t)||cee()}function cee(){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 fee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function dee(e){if(Array.isArray(e))return e}function hee(e){return yee(e)||mee(e)||hN(e)||pee()}function pee(){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 hN(e,t){if(e){if(typeof e=="string")return zv(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 zv(e,t)}}function mee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yee(e){if(Array.isArray(e))return zv(e)}function zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Sd=1e-4,pN=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},mN=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},MO=function(t,r){return function(n){var i=pN(t,r);return mN(i,n)}},vee=function(t,r){return function(n){var i=pN(t,r),a=[].concat(hee(i.map(function(o,s){return o*s}).slice(1)),[0]);return mN(a,n)}},IO=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),f=uee(u,4);i=f[0],a=f[1],o=f[2],s=f[3]}}}var c=MO(i,o),h=MO(a,s),p=vee(i,o),m=function(g){return g>1?1:g<0?0:g},y=function(g){for(var b=g>1?1:g,w=b,O=0;O<8;++O){var x=c(w)-b,S=p(w);if(Math.abs(x-b)<Sd||S<Sd)return h(w);w=m(w-x/S)}return h(w)};return y.isStepper=!1,y},gee=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(f,c,h){var p=-(f-c)*n,m=h*a,y=h+(p-m)*s/1e3,v=h*s/1e3+f;return Math.abs(v-c)<Sd&&Math.abs(y)<Sd?[c,0]:[v,y]};return l.isStepper=!0,l.dt=s,l},bee=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return IO(i);case"spring":return gee();default:if(i.split("(")[0]==="cubic-bezier")return IO(i)}return typeof i=="function"?i:null};function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}function RO(e){return See(e)||wee(e)||yN(e)||xee()}function xee(){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 wee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function See(e){if(Array.isArray(e))return Bv(e)}function DO(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 bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){Fv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fv(e,t,r){return t=Oee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oee(e){var t=jee(e,"string");return Pu(t)==="symbol"?t:String(t)}function jee(e,t){if(Pu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ee(e,t){return kee(e)||Aee(e,t)||yN(e,t)||Pee()}function Pee(){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 yN(e,t){if(e){if(typeof e=="string")return Bv(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 Bv(e,t)}}function Bv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Aee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function kee(e){if(Array.isArray(e))return e}var Od=function(t,r,n){return t+(r-t)*n},Uv=function(t){var r=t.from,n=t.to;return r!==n},Eee=function e(t,r,n){var i=Tl(function(a,o){if(Uv(o)){var s=t(o.from,o.to,o.velocity),l=_ee(s,2),u=l[0],f=l[1];return bt(bt({},o),{},{from:u,velocity:f})}return o},r);return n<1?Tl(function(a,o){return Uv(o)?bt(bt({},o),{},{velocity:Od(o.velocity,i[a].velocity,n),from:Od(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const Nee=function(e,t,r,n,i){var a=oee(e,t),o=a.reduce(function(v,g){return bt(bt({},v),{},Fv({},g,[e[g],t[g]]))},{}),s=a.reduce(function(v,g){return bt(bt({},v),{},Fv({},g,{from:e[g],velocity:0,to:t[g]}))},{}),l=-1,u,f,c=function(){return null},h=function(){return Tl(function(g,b){return b.from},s)},p=function(){return!Object.values(s).filter(Uv).length},m=function(g){u||(u=g);var b=g-u,w=b/r.dt;s=Eee(r,s,w),i(bt(bt(bt({},e),t),h())),u=g,p()||(l=requestAnimationFrame(c))},y=function(g){f||(f=g);var b=(g-f)/n,w=Tl(function(x,S){return Od.apply(void 0,RO(S).concat([r(b)]))},o);if(i(bt(bt(bt({},e),t),w)),b<1)l=requestAnimationFrame(c);else{var O=Tl(function(x,S){return Od.apply(void 0,RO(S).concat([r(1)]))},o);i(bt(bt(bt({},e),t),O))}};return c=r.isStepper?m:y,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(l)}}};function ss(e){"@babel/helpers - typeof";return ss=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},ss(e)}var Cee=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Tee(e,t){if(e==null)return{};var r=$ee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $ee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function pm(e){return Dee(e)||Ree(e)||Iee(e)||Mee()}function Mee(){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 Iee(e,t){if(e){if(typeof e=="string")return Wv(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 Wv(e,t)}}function Ree(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dee(e){if(Array.isArray(e))return Wv(e)}function Wv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(r),!0).forEach(function(n){yl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yl(e,t,r){return t=vN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vN(n.key),n)}}function Fee(e,t,r){return t&&zee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vN(e){var t=Bee(e,"string");return ss(t)==="symbol"?t:String(t)}function Bee(e,t){if(ss(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ss(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hv(e,t)}function Hv(e,t){return Hv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hv(e,t)}function Wee(e){var t=Hee();return function(){var n=jd(e),i;if(t){var a=jd(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return qv(this,i)}}function qv(e,t){if(t&&(ss(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kv(e)}function Kv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jd(e)}var sn=function(e){Uee(r,e);var t=Wee(r);function r(n,i){var a;Lee(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,f=o.to,c=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Kv(a)),a.changeStyle=a.changeStyle.bind(Kv(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),qv(a);if(c&&c.length)a.state={style:c[0].style};else if(u){if(typeof h=="function")return a.state={style:u},qv(a);a.state={style:l?yl({},l,u):u}}else a.state={style:{}};return a}return Fee(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,f=a.to,c=a.from,h=this.state.style;if(s){if(!o){var p={style:l?yl({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(p);return}if(!(QZ(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=m||u?c:i.to;if(this.state&&h){var v={style:l?yl({},l,y):y};(l&&h[l]!==y||!l&&h!==y)&&this.setState(v)}this.runAnimation(Tr(Tr({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,c=i.onAnimationEnd,h=i.onAnimationStart,p=Nee(o,s,bee(u),l,this.changeStyle),m=function(){a.stopJSAnimation=p()};this.manager.start([h,f,m,l,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],f=u.style,c=u.duration,h=c===void 0?0:c,p=function(y,v,g){if(g===0)return y;var b=v.duration,w=v.easing,O=w===void 0?"ease":w,x=v.style,S=v.properties,j=v.onAnimationEnd,_=g>0?o[g-1]:v,P=S||Object.keys(x);if(typeof O=="function"||O==="spring")return[].concat(pm(y),[a.runJSAnimation.bind(a,{from:_.style,to:x,duration:b,easing:O}),b]);var N=$O(P,b,O),$=Tr(Tr(Tr({},_.style),x),{},{transition:N});return[].concat(pm(y),[$,b,j]).filter(see)};return this.manager.start([l].concat(pm(o.reduce(p,[f,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=nee());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,h=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var y=s?yl({},s,l):l,v=$O(Object.keys(y),o,u);m.start([f,a,Tr(Tr({},y),{},{transition:v}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=Tee(i,Cee),u=A.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!s||u===0||o<=0)return a;var c=function(p){var m=p.props,y=m.style,v=y===void 0?{}:y,g=m.className,b=A.cloneElement(p,Tr(Tr({},l),{},{style:Tr(Tr({},v),f),className:g}));return b};return u===1?c(A.Children.only(a)):k.createElement("div",null,A.Children.map(a,function(h){return c(h)}))}}]),r}(A.PureComponent);sn.displayName="Animate";sn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};sn.propTypes={from: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};function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_d.apply(this,arguments)}function qee(e,t){return Xee(e)||Gee(e,t)||Vee(e,t)||Kee()}function Kee(){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 Vee(e,t){if(e){if(typeof e=="string")return zO(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 zO(e,t)}}function zO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Xee(e){if(Array.isArray(e))return e}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function BO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(r),!0).forEach(function(n){Qee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qee(e,t,r){return t=Yee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yee(e){var t=Jee(e,"string");return Au(t)=="symbol"?t:t+""}function Jee(e,t){if(Au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UO=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],h=0,p=4;h<p;h++)c[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(r)),f+="L ".concat(t+n-l*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`,
|
||
`).concat(t+n,",").concat(r+s*c[1])),f+="L ".concat(t+n,",").concat(r+i-s*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`,
|
||
`).concat(t+n-l*c[2],",").concat(r+i)),f+="L ".concat(t+l*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`,
|
||
`).concat(t,",").concat(r+i-s*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(r+s*m,`
|
||
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+l*m,",").concat(r,`
|
||
L `).concat(t+n-l*m,",").concat(r,`
|
||
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*m,`
|
||
L `).concat(t+n,",").concat(r+i-s*m,`
|
||
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-l*m,",").concat(r+i,`
|
||
L `).concat(t+l*m,",").concat(r+i,`
|
||
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},Zee=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),c=Math.min(o,o+l),h=Math.max(o,o+l);return n>=u&&n<=f&&i>=c&&i<=h}return!1},ete={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Nb=function(t){var r=BO(BO({},ete),t),n=A.useRef(),i=A.useState(-1),a=qee(i,2),o=a[0],s=a[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&s(O)}catch{}},[]);var l=r.x,u=r.y,f=r.width,c=r.height,h=r.radius,p=r.className,m=r.animationEasing,y=r.animationDuration,v=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var w=fe("recharts-rectangle",p);return b?k.createElement(sn,{canBegin:o>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:y,animationEasing:m,isActive:b},function(O){var x=O.width,S=O.height,j=O.x,_=O.y;return k.createElement(sn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:g,easing:m},k.createElement("path",_d({},ne(r,!0),{className:w,d:UO(j,_,x,S,h),ref:n})))}):k.createElement("path",_d({},ne(r,!0),{className:w,d:UO(l,u,f,c,h)}))},tte=["points","className","baseLinePoints","connectNulls"];function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yo.apply(this,arguments)}function rte(e,t){if(e==null)return{};var r=nte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function WO(e){return ste(e)||ote(e)||ate(e)||ite()}function ite(){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 ate(e,t){if(e){if(typeof e=="string")return Vv(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 Vv(e,t)}}function ote(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ste(e){if(Array.isArray(e))return Vv(e)}function Vv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var HO=function(t){return t&&t.x===+t.x&&t.y===+t.y},lte=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){HO(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),HO(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},$l=function(t,r){var n=lte(t);r&&(n=[n.reduce(function(a,o){return[].concat(WO(a),WO(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},ute=function(t,r,n){var i=$l(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat($l(r.reverse(),n).slice(1))},cte=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=rte(t,tte);if(!r||!r.length)return null;var s=fe("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=ute(r,i,a);return k.createElement("g",{className:s},k.createElement("path",yo({},ne(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?k.createElement("path",yo({},ne(o,!0),{fill:"none",d:$l(r,a)})):null,l?k.createElement("path",yo({},ne(o,!0),{fill:"none",d:$l(i,a)})):null)}var f=$l(r,a);return k.createElement("path",yo({},ne(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:s,d:f}))};function Gv(){return Gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gv.apply(this,arguments)}var Jh=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=fe("recharts-dot",a);return r===+r&&n===+n&&i===+i?A.createElement("circle",Gv({},ne(t,!1),Hf(t),{className:o,cx:r,cy:n,r:i})):null};function ku(e){"@babel/helpers - typeof";return ku=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},ku(e)}var fte=["x","y","top","left","width","height","className"];function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xv.apply(this,arguments)}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dte(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){hte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hte(e,t,r){return t=pte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pte(e){var t=mte(e,"string");return ku(t)=="symbol"?t:t+""}function mte(e,t){if(ku(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ku(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yte(e,t){if(e==null)return{};var r=vte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var gte=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},bte=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,c=f===void 0?0:f,h=t.height,p=h===void 0?0:h,m=t.className,y=yte(t,fte),v=dte({x:n,y:a,top:s,left:u,width:c,height:p},y);return!q(n)||!q(a)||!q(c)||!q(p)||!q(s)||!q(u)?null:k.createElement("path",Xv({},ne(v,!0),{className:fe("recharts-cross",m),d:gte(n,a,c,p,s,u)}))},xte=Vh,wte=EE,Ste=fn;function Ote(e,t){return e&&e.length?xte(e,Ste(t),wte):void 0}var jte=Ote;const _te=Ae(jte);var Pte=Vh,Ate=fn,kte=NE;function Ete(e,t){return e&&e.length?Pte(e,Ate(t),kte):void 0}var Nte=Ete;const Cte=Ae(Nte);var Tte=["cx","cy","angle","ticks","axisLine"],$te=["ticks","tick","angle","tickFormatter","stroke"];function ls(e){"@babel/helpers - typeof";return ls=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},ls(e)}function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ml.apply(this,arguments)}function KO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ki(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KO(Object(r),!0).forEach(function(n){Zh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VO(e,t){if(e==null)return{};var r=Mte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ite(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bN(n.key),n)}}function Rte(e,t,r){return t&&GO(e.prototype,t),r&&GO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dte(e,t,r){return t=Pd(t),Lte(e,gN()?Reflect.construct(t,r||[],Pd(e).constructor):t.apply(e,r))}function Lte(e,t){if(t&&(ls(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zte(e)}function zte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gN=function(){return!!e})()}function Pd(e){return Pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pd(e)}function Fte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qv(e,t)}function Qv(e,t){return Qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qv(e,t)}function Zh(e,t,r){return t=bN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bN(e){var t=Bte(e,"string");return ls(t)=="symbol"?t:t+""}function Bte(e,t){if(ls(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ls(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ep=function(e){function t(){return Ite(this,t),Dte(this,t,arguments)}return Fte(t,e),Rte(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return Me(s,l,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=_te(s,function(f){return f.coordinate||0}),u=Cte(s,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=n.axisLine,u=VO(n,Tte),f=s.reduce(function(m,y){return[Math.min(m[0],y.coordinate),Math.max(m[1],y.coordinate)]},[1/0,-1/0]),c=Me(i,a,f[0],o),h=Me(i,a,f[1],o),p=Ki(Ki(Ki({},ne(u,!1)),{},{fill:"none"},ne(l,!1)),{},{x1:c.x,y1:c.y,x2:h.x,y2:h.y});return k.createElement("line",Ml({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,f=VO(i,$te),c=this.getTickTextAnchor(),h=ne(f,!1),p=ne(o,!1),m=a.map(function(y,v){var g=n.getTickValueCoord(y),b=Ki(Ki(Ki(Ki({textAnchor:c,transform:"rotate(".concat(90-s,", ").concat(g.x,", ").concat(g.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:v},g),{},{payload:y});return k.createElement(ve,Ml({className:fe("recharts-polar-radius-axis-tick",iN(o)),key:"tick-".concat(y.coordinate)},Ra(n.props,y,v)),t.renderTickItem(o,b,l?l(y.value,v):y.value))});return k.createElement(ve,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:k.createElement(ve,{className:fe("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),mt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return k.isValidElement(n)?o=k.cloneElement(n,i):oe(n)?o=n(i):o=k.createElement(Da,Ml({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(A.PureComponent);Zh(ep,"displayName","PolarRadiusAxis");Zh(ep,"axisType","radiusAxis");Zh(ep,"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 us(e){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},us(e)}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zi.apply(this,arguments)}function XO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XO(Object(r),!0).forEach(function(n){tp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ute(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wN(n.key),n)}}function Wte(e,t,r){return t&&QO(e.prototype,t),r&&QO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hte(e,t,r){return t=Ad(t),qte(e,xN()?Reflect.construct(t,r||[],Ad(e).constructor):t.apply(e,r))}function qte(e,t){if(t&&(us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kte(e)}function Kte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xN=function(){return!!e})()}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ad(e)}function Vte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yv(e,t)}function Yv(e,t){return Yv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yv(e,t)}function tp(e,t,r){return t=wN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wN(e){var t=Gte(e,"string");return us(t)=="symbol"?t:t+""}function Gte(e,t){if(us(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(us(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xte=Math.PI/180,YO=1e-5,rp=function(e){function t(){return Ute(this,t),Hte(this,t,arguments)}return Vte(t,e),Wte(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,f=u||8,c=Me(a,o,s,n.coordinate),h=Me(a,o,s+(l==="inner"?-1:1)*f,n.coordinate);return{x1:c.x,y1:c.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Xte),o;return a>YO?o=i==="outer"?"start":"end":a<-YO?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,u=Vi(Vi({},ne(this.props,!1)),{},{fill:"none"},ne(s,!1));if(l==="circle")return k.createElement(Jh,Zi({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(h){return Me(i,a,o,h.coordinate)});return k.createElement(cte,Zi({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=ne(this.props,!1),c=ne(o,!1),h=Vi(Vi({},f),{},{fill:"none"},ne(s,!1)),p=a.map(function(m,y){var v=n.getTickLineCoord(m),g=n.getTickTextAnchor(m),b=Vi(Vi(Vi({textAnchor:g},f),{},{stroke:"none",fill:u},c),{},{index:y,payload:m,x:v.x2,y:v.y2});return k.createElement(ve,Zi({className:fe("recharts-polar-angle-axis-tick",iN(o)),key:"tick-".concat(m.coordinate)},Ra(n.props,m,y)),s&&k.createElement("line",Zi({className:"recharts-polar-angle-axis-tick-line"},h,v)),o&&t.renderTickItem(o,b,l?l(m.value,y):m.value))});return k.createElement(ve,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:k.createElement(ve,{className:fe("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return k.isValidElement(n)?o=k.cloneElement(n,i):oe(n)?o=n(i):o=k.createElement(Da,Zi({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(A.PureComponent);tp(rp,"displayName","PolarAngleAxis");tp(rp,"axisType","angleAxis");tp(rp,"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 Qte=Pk,Yte=Qte(Object.getPrototypeOf,Object),Jte=Yte,Zte=Fn,ere=Jte,tre=Bn,rre="[object Object]",nre=Function.prototype,ire=Object.prototype,SN=nre.toString,are=ire.hasOwnProperty,ore=SN.call(Object);function sre(e){if(!tre(e)||Zte(e)!=rre)return!1;var t=ere(e);if(t===null)return!0;var r=are.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&SN.call(r)==ore}var lre=sre;const ure=Ae(lre);var cre=Fn,fre=Bn,dre="[object Boolean]";function hre(e){return e===!0||e===!1||fre(e)&&cre(e)==dre}var pre=hre;const mre=Ae(pre);function Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kd.apply(this,arguments)}function yre(e,t){return xre(e)||bre(e,t)||gre(e,t)||vre()}function vre(){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 gre(e,t){if(e){if(typeof e=="string")return JO(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 JO(e,t)}}function JO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bre(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function xre(e){if(Array.isArray(e))return e}function ZO(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 ej(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(r),!0).forEach(function(n){wre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wre(e,t,r){return t=Sre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sre(e){var t=Ore(e,"string");return Eu(t)=="symbol"?t:t+""}function Ore(e,t){if(Eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tj=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},jre={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_re=function(t){var r=ej(ej({},jre),t),n=A.useRef(),i=A.useState(-1),a=yre(i,2),o=a[0],s=a[1];A.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,u=r.y,f=r.upperWidth,c=r.lowerWidth,h=r.height,p=r.className,m=r.animationEasing,y=r.animationDuration,v=r.animationBegin,g=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||h!==+h||f===0&&c===0||h===0)return null;var b=fe("recharts-trapezoid",p);return g?k.createElement(sn,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:f,lowerWidth:c,height:h,x:l,y:u},duration:y,animationEasing:m,isActive:g},function(w){var O=w.upperWidth,x=w.lowerWidth,S=w.height,j=w.x,_=w.y;return k.createElement(sn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:m},k.createElement("path",kd({},ne(r,!0),{className:b,d:tj(j,_,O,x,S),ref:n})))}):k.createElement("g",null,k.createElement("path",kd({},ne(r,!0),{className:b,d:tj(l,u,f,c,h)})))},Pre=["option","shapeType","propTransformer","activeClassName","isActive"];function Nu(e){"@babel/helpers - typeof";return Nu=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},Nu(e)}function Are(e,t){if(e==null)return{};var r=kre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rj(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 Ed(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rj(Object(r),!0).forEach(function(n){Ere(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ere(e,t,r){return t=Nre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nre(e){var t=Cre(e,"string");return Nu(t)=="symbol"?t:t+""}function Cre(e,t){if(Nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tre(e,t){return Ed(Ed({},t),e)}function $re(e,t){return e==="symbols"}function nj(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return k.createElement(Nb,r);case"trapezoid":return k.createElement(_re,r);case"sector":return k.createElement(sN,r);case"symbols":if($re(t))return k.createElement(X0,r);break;default:return null}}function Mre(e){return A.isValidElement(e)?e.props:e}function ON(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Tre:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=Are(e,Pre),u;if(A.isValidElement(t))u=A.cloneElement(t,Ed(Ed({},l),Mre(t)));else if(oe(t))u=t(l);else if(ure(t)&&!mre(t)){var f=i(t,l);u=k.createElement(nj,{shapeType:r,elementProps:f})}else{var c=l;u=k.createElement(nj,{shapeType:r,elementProps:c})}return s?k.createElement(ve,{className:o},u):u}function np(e,t){return t!=null&&"trapezoids"in e.props}function ip(e,t){return t!=null&&"sectors"in e.props}function Cu(e,t){return t!=null&&"points"in e.props}function Ire(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function Rre(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Dre(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Lre(e,t){var r;return np(e,t)?r=Ire:ip(e,t)?r=Rre:Cu(e,t)&&(r=Dre),r}function zre(e,t){var r;return np(e,t)?r="trapezoids":ip(e,t)?r="sectors":Cu(e,t)&&(r="points"),r}function Fre(e,t){if(np(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(ip(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Cu(e,t)?t.payload:{}}function Bre(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=zre(r,t),a=Fre(r,t),o=n.filter(function(l,u){var f=as(a,l),c=r.props[i].filter(function(m){var y=Lre(r,t);return y(m,t)}),h=r.props[i].indexOf(c[c.length-1]),p=u===h;return f&&p}),s=n.indexOf(o[o.length-1]);return s}var ff;function cs(e){"@babel/helpers - typeof";return cs=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},cs(e)}function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vo.apply(this,arguments)}function ij(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 Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ij(Object(r),!0).forEach(function(n){wr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ij(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ure(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_N(n.key),n)}}function Wre(e,t,r){return t&&aj(e.prototype,t),r&&aj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hre(e,t,r){return t=Nd(t),qre(e,jN()?Reflect.construct(t,r||[],Nd(e).constructor):t.apply(e,r))}function qre(e,t){if(t&&(cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kre(e)}function Kre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jN=function(){return!!e})()}function Nd(e){return Nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nd(e)}function Vre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jv(e,t)}function Jv(e,t){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jv(e,t)}function wr(e,t,r){return t=_N(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _N(e){var t=Gre(e,"string");return cs(t)=="symbol"?t:t+""}function Gre(e,t){if(cs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wn=function(e){function t(r){var n;return Ure(this,t),n=Hre(this,t,[r]),wr(n,"pieRef",null),wr(n,"sectorRefs",[]),wr(n,"id",Ds("recharts-pie-")),wr(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),oe(i)&&i()}),wr(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),oe(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return Vre(t,e),Wre(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,l=a.dataKey,u=a.valueKey,f=ne(this.props,!1),c=ne(o,!1),h=ne(s,!1),p=o&&o.offsetRadius||20,m=n.map(function(y,v){var g=(y.startAngle+y.endAngle)/2,b=Me(y.cx,y.cy,y.outerRadius+p,g),w=Ce(Ce(Ce(Ce({},f),y),{},{stroke:"none"},c),{},{index:v,textAnchor:t.getTextAnchor(b.x,y.cx)},b),O=Ce(Ce(Ce(Ce({},f),y),{},{fill:"none",stroke:y.fill},h),{},{index:v,points:[Me(y.cx,y.cy,y.outerRadius,g),b]}),x=l;return ce(l)&&ce(u)?x="value":ce(l)&&(x=u),k.createElement(ve,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(v)},s&&t.renderLabelLineItem(s,O,"line"),t.renderLabelItem(o,w,lt(y,x)))});return k.createElement(ve,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,l=a.inactiveShape;return n.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var c=i.isActiveIndex(f),h=l&&i.hasActiveIndex()?l:null,p=c?o:h,m=Ce(Ce({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return k.createElement(ve,vo({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},Ra(i.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),k.createElement(ON,vo({option:p,isActive:c,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,c=this.state,h=c.prevSectors,p=c.prevIsAnimationActive;return k.createElement(sn,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var y=m.t,v=[],g=a&&a[0],b=g.startAngle;return a.forEach(function(w,O){var x=h&&h[O],S=O>0?ur(w,"paddingAngle",0):0;if(x){var j=qt(x.endAngle-x.startAngle,w.endAngle-w.startAngle),_=Ce(Ce({},w),{},{startAngle:b+S,endAngle:b+j(y)+S});v.push(_),b=_.endAngle}else{var P=w.endAngle,N=w.startAngle,$=qt(0,P-N),T=$(y),L=Ce(Ce({},w),{},{startAngle:b+S,endAngle:b+T+S});v.push(L),b=L.endAngle}}),k.createElement(ve,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!as(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,c=i.innerRadius,h=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!q(u)||!q(f)||!q(c)||!q(h))return null;var y=fe("recharts-pie",s);return k.createElement(ve,{tabIndex:this.props.rootTabIndex,className:y,ref:function(g){n.pieRef=g}},this.renderSectors(),l&&this.renderLabels(o),mt.renderCallByParent(this.props,null,!1),(!p||m)&&Nn.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(k.isValidElement(n))return k.cloneElement(n,i);if(oe(n))return n(i);var o=fe("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return k.createElement(No,vo({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(k.isValidElement(n))return k.cloneElement(n,i);var o=a;if(oe(n)&&(o=n(i),k.isValidElement(o)))return o;var s=fe("recharts-pie-label-text",typeof n!="boolean"&&!oe(n)?n.className:"");return k.createElement(Da,vo({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(A.PureComponent);ff=Wn;wr(Wn,"displayName","Pie");wr(Wn,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ka.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});wr(Wn,"parseDeltaAngle",function(e,t){var r=Mt(t-e),n=Math.min(Math.abs(t-e),360);return r*n});wr(Wn,"getRealPieData",function(e){var t=e.data,r=e.children,n=ne(e,!1),i=_r(r,Fh);return t&&t.length?t.map(function(a,o){return Ce(Ce(Ce({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Ce(Ce({},n),a.props)}):[]});wr(Wn,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=nN(i,a),s=n+It(e.cx,i,i/2),l=r+It(e.cy,a,a/2),u=It(e.innerRadius,o,0),f=It(e.outerRadius,o,o*.8),c=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:l,innerRadius:u,outerRadius:f,maxRadius:c}});wr(Wn,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Ce(Ce({},t.type.defaultProps),t.props):t.props,i=ff.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,l=n.paddingAngle,u=n.dataKey,f=n.nameKey,c=n.valueKey,h=n.tooltipType,p=Math.abs(n.minAngle),m=ff.parseCoordinateOfPie(n,r),y=ff.parseDeltaAngle(o,s),v=Math.abs(y),g=u;ce(u)&&ce(c)?(Ur(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),g="value"):ce(u)&&(Ur(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),g=c);var b=i.filter(function(_){return lt(_,g,0)!==0}).length,w=(v>=360?b:b-1)*l,O=v-b*p-w,x=i.reduce(function(_,P){var N=lt(P,g,0);return _+(q(N)?N:0)},0),S;if(x>0){var j;S=i.map(function(_,P){var N=lt(_,g,0),$=lt(_,f,P),T=(q(N)?N:0)/x,L;P?L=j.endAngle+Mt(y)*l*(N!==0?1:0):L=o;var R=L+Mt(y)*((N!==0?p:0)+T*O),I=(L+R)/2,D=(m.innerRadius+m.outerRadius)/2,B=[{name:$,value:N,payload:_,dataKey:g,type:h}],C=Me(m.cx,m.cy,D,I);return j=Ce(Ce(Ce({percent:T,cornerRadius:a,name:$,tooltipPayload:B,midAngle:I,middleRadius:D,tooltipPosition:C},_),m),{},{value:lt(_,g),startAngle:L,endAngle:R,payload:_,paddingAngle:Mt(y)*l}),j})}return Ce(Ce({},m),{},{sectors:S,data:i})});var Xre=Math.ceil,Qre=Math.max;function Yre(e,t,r,n){for(var i=-1,a=Qre(Xre((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var Jre=Yre,Zre=qk,oj=1/0,ene=17976931348623157e292;function tne(e){if(!e)return e===0?e:0;if(e=Zre(e),e===oj||e===-oj){var t=e<0?-1:1;return t*ene}return e===e?e:0}var PN=tne,rne=Jre,nne=zh,mm=PN;function ine(e){return function(t,r,n){return n&&typeof n!="number"&&nne(t,r,n)&&(r=n=void 0),t=mm(t),r===void 0?(r=t,t=0):r=mm(r),n=n===void 0?t<r?1:-1:mm(n),rne(t,r,n,e)}}var ane=ine,one=ane,sne=one(),lne=sne;const Cd=Ae(lne);function Tu(e){"@babel/helpers - typeof";return Tu=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},Tu(e)}function sj(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 lj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sj(Object(r),!0).forEach(function(n){AN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AN(e,t,r){return t=une(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function une(e){var t=cne(e,"string");return Tu(t)=="symbol"?t:t+""}function cne(e,t){if(Tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fne=["Webkit","Moz","O","ms"],dne=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=fne.reduce(function(a,o){return lj(lj({},a),{},AN({},o+n,r))},{});return i[t]=r,i};function fs(e){"@babel/helpers - typeof";return fs=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},fs(e)}function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Td.apply(this,arguments)}function uj(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 ym(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uj(Object(r),!0).forEach(function(n){nr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EN(n.key),n)}}function pne(e,t,r){return t&&cj(e.prototype,t),r&&cj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mne(e,t,r){return t=$d(t),yne(e,kN()?Reflect.construct(t,r||[],$d(e).constructor):t.apply(e,r))}function yne(e,t){if(t&&(fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vne(e)}function vne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kN=function(){return!!e})()}function $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$d(e)}function gne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zv(e,t)}function Zv(e,t){return Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zv(e,t)}function nr(e,t,r){return t=EN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EN(e){var t=bne(e,"string");return fs(t)=="symbol"?t:t+""}function bne(e,t){if(fs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xne=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=Nl().domain(Cd(0,l)).range([a,a+o-s]),f=u.domain().map(function(c){return u(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:f}},fj=function(t){return t.changedTouches&&!!t.changedTouches.length},ds=function(e){function t(r){var n;return hne(this,t),n=mne(this,t,[r]),nr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),nr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),nr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),nr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),nr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),nr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),nr(n,"handleSlideDragStart",function(i){var a=fj(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return gne(t,e),pne(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,c=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,c),m=t.getIndexInRange(o,h);return{startIndex:p-p%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=lt(a[n],s,n);return oe(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,c=l.travellerWidth,h=l.startIndex,p=l.endIndex,m=l.onChange,y=n.pageX-a;y>0?y=Math.min(y,u+f-c-s,u+f-c-o):y<0&&(y=Math.max(y,u-o,u-s));var v=this.getIndex({startX:o+y,endX:s+y});(v.startIndex!==h||v.endIndex!==p)&&m&&m(v),this.setState({startX:o+y,endX:s+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=fj(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],f=this.props,c=f.x,h=f.width,p=f.travellerWidth,m=f.onChange,y=f.gap,v=f.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,c+h-p-u):b<0&&(b=Math.max(b,c-u)),g[o]=u+b;var w=this.getIndex(g),O=w.startIndex,x=w.endIndex,S=function(){var _=v.length-1;return o==="startX"&&(s>l?O%y===0:x%y===0)||s<l&&x===_||o==="endX"&&(s>l?x%y===0:O%y===0)||s>l&&x===_};this.setState(nr(nr({},o,u+b),"brushMoveStartX",n.pageX),function(){m&&S()&&m(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var h=c+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(nr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return k.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,f=n.padding,c=A.Children.only(u);return c?k.cloneElement(c,{x:i,y:a,width:o,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,f=l.travellerWidth,c=l.height,h=l.traveller,p=l.ariaLabel,m=l.data,y=l.startIndex,v=l.endIndex,g=Math.max(n,this.props.x),b=ym(ym({},ne(this.props,!1)),{},{x:g,y:u,width:f,height:c}),w=p||"Min value: ".concat((a=m[y])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[v])===null||o===void 0?void 0:o.name);return k.createElement(ve,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(x){["ArrowLeft","ArrowRight"].includes(x.key)&&(x.preventDefault(),x.stopPropagation(),s.handleTravellerMoveKeyboard(x.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,f=Math.min(n,i)+u,c=Math.max(Math.abs(i-n)-u,0);return k.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:o,width:c,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,f=this.state,c=f.startX,h=f.endX,p=5,m={pointerEvents:"none",fill:u};return k.createElement(ve,{className:"recharts-brush-texts"},k.createElement(Da,Td({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,h)-p,y:o+s/2},m),this.getTextOfTick(i)),k.createElement(Da,Td({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,h)+l+p,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,f=n.height,c=n.alwaysShowText,h=this.state,p=h.startX,m=h.endX,y=h.isTextActive,v=h.isSlideMoving,g=h.isTravellerMoving,b=h.isTravellerFocused;if(!i||!i.length||!q(s)||!q(l)||!q(u)||!q(f)||u<=0||f<=0)return null;var w=fe("recharts-brush",a),O=k.Children.count(o)===1,x=dne("userSelect","none");return k.createElement(ve,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(y||v||g||b||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return k.createElement(k.Fragment,null,k.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),k.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),k.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return k.isValidElement(n)?a=k.cloneElement(n,i):oe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return ym({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?xne({data:a,width:o,x:s,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(A.PureComponent);nr(ds,"displayName","Brush");nr(ds,"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 wne=rb;function Sne(e,t){var r;return wne(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var One=Sne,jne=gk,_ne=fn,Pne=One,Ane=tr,kne=zh;function Ene(e,t,r){var n=Ane(e)?jne:Pne;return r&&kne(e,t,r)&&(t=void 0),n(e,_ne(t))}var Nne=Ene;const Cne=Ae(Nne);var an=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},dj=Fk;function Tne(e,t,r){t=="__proto__"&&dj?dj(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var $ne=Tne,Mne=$ne,Ine=Lk,Rne=fn;function Dne(e,t){var r={};return t=Rne(t),Ine(e,function(n,i,a){Mne(r,i,t(n,i,a))}),r}var Lne=Dne;const zne=Ae(Lne);function Fne(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var Bne=Fne,Une=rb;function Wne(e,t){var r=!0;return Une(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var Hne=Wne,qne=Bne,Kne=Hne,Vne=fn,Gne=tr,Xne=zh;function Qne(e,t,r){var n=Gne(e)?qne:Kne;return r&&Xne(e,t,r)&&(t=void 0),n(e,Vne(t))}var Yne=Qne;const NN=Ae(Yne);var Jne=["x","y"];function $u(e){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function eg(){return eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eg.apply(this,arguments)}function hj(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 cl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hj(Object(r),!0).forEach(function(n){Zne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zne(e,t,r){return t=eie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eie(e){var t=tie(e,"string");return $u(t)=="symbol"?t:t+""}function tie(e,t){if($u(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rie(e,t){if(e==null)return{};var r=nie(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function iie(e,t){var r=e.x,n=e.y,i=rie(e,Jne),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),c="".concat(t.width||i.width),h=parseInt(c,10);return cl(cl(cl(cl(cl({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function pj(e){return k.createElement(ON,eg({shapeType:"rectangle",propTransformer:iie,activeClassName:"recharts-active-bar"},e))}var aie=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=q(n)||P6(n);return a?t(n,i):(a||za(),r)}},oie=["value","background"],CN;function hs(e){"@babel/helpers - typeof";return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(e)}function sie(e,t){if(e==null)return{};var r=lie(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Md.apply(this,arguments)}function mj(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 Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mj(Object(r),!0).forEach(function(n){pi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$N(n.key),n)}}function cie(e,t,r){return t&&yj(e.prototype,t),r&&yj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fie(e,t,r){return t=Id(t),die(e,TN()?Reflect.construct(t,r||[],Id(e).constructor):t.apply(e,r))}function die(e,t){if(t&&(hs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hie(e)}function hie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TN=function(){return!!e})()}function Id(e){return Id=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Id(e)}function pie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tg(e,t)}function tg(e,t){return tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tg(e,t)}function pi(e,t,r){return t=$N(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $N(e){var t=mie(e,"string");return hs(t)=="symbol"?t:t+""}function mie(e,t){if(hs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bi=function(e){function t(){var r;uie(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=fie(this,t,[].concat(i)),pi(r,"state",{isAnimationFinished:!1}),pi(r,"id",Ds("recharts-bar-")),pi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),pi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return pie(t,e),cie(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,f=ne(this.props,!1);return n&&n.map(function(c,h){var p=h===l,m=p?u:o,y=Je(Je(Je({},f),c),{},{isActive:p,option:m,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return k.createElement(ve,Md({className:"recharts-bar-rectangle"},Ra(i.props,c,h),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(h)}),k.createElement(pj,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,f=i.animationEasing,c=i.animationId,h=this.state.prevData;return k.createElement(sn,{begin:l,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,y=a.map(function(v,g){var b=h&&h[g];if(b){var w=qt(b.x,v.x),O=qt(b.y,v.y),x=qt(b.width,v.width),S=qt(b.height,v.height);return Je(Je({},v),{},{x:w(m),y:O(m),width:x(m),height:S(m)})}if(o==="horizontal"){var j=qt(0,v.height),_=j(m);return Je(Je({},v),{},{y:v.y+v.height-_,height:_})}var P=qt(0,v.width),N=P(m);return Je(Je({},v),{},{width:N})});return k.createElement(ve,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!as(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=ne(this.props.background,!1);return a.map(function(u,f){u.value;var c=u.background,h=sie(u,oie);if(!c)return null;var p=Je(Je(Je(Je(Je({},h),{},{fill:"#eee"},c),l),Ra(n.props,u,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return k.createElement(pj,Md({key:"background-bar-".concat(f),option:n.props.background,isActive:f===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,f=a.children,c=_r(f,Yh);if(!c)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(v,g){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:lt(v,g)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return k.createElement(ve,m,c.map(function(y){return k.cloneElement(y,{key:"error-bar-".concat(i,"-").concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,f=n.top,c=n.width,h=n.height,p=n.isAnimationActive,m=n.background,y=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,g=fe("recharts-bar",o),b=s&&s.allowDataOverflow,w=l&&l.allowDataOverflow,O=b||w,x=ce(y)?this.id:y;return k.createElement(ve,{className:g},b||w?k.createElement("defs",null,k.createElement("clipPath",{id:"clipPath-".concat(x)},k.createElement("rect",{x:b?u:u-c/2,y:w?f:f-h/2,width:b?c:c*2,height:w?h:h*2}))):null,k.createElement(ve,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(x,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,x),(!p||v)&&Nn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(A.PureComponent);CN=Bi;pi(Bi,"displayName","Bar");pi(Bi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ka.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});pi(Bi,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,h=e.offset,p=qY(n,r);if(!p)return null;var m=t.layout,y=r.type.defaultProps,v=y!==void 0?Je(Je({},y),r.props):r.props,g=v.dataKey,b=v.children,w=v.minPointSize,O=m==="horizontal"?o:a,x=u?O.scale.domain():null,S=JY({numericAxis:O}),j=_r(b,Fh),_=c.map(function(P,N){var $,T,L,R,I,D;u?$=KY(u[f+N],x):($=lt(P,g),Array.isArray($)||($=[S,$]));var B=aie(w,CN.defaultProps.minPointSize)($[1],N);if(m==="horizontal"){var C,F=[o.scale($[0]),o.scale($[1])],U=F[0],V=F[1];T=lO({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:P,index:N}),L=(C=V??U)!==null&&C!==void 0?C:void 0,R=p.size;var H=U-V;if(I=Number.isNaN(H)?0:H,D={x:T,y:o.y,width:R,height:o.height},Math.abs(B)>0&&Math.abs(I)<Math.abs(B)){var X=Mt(I||B)*(Math.abs(B)-Math.abs(I));L-=X,I+=X}}else{var ie=[a.scale($[0]),a.scale($[1])],xe=ie[0],ze=ie[1];if(T=xe,L=lO({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:P,index:N}),R=ze-xe,I=p.size,D={x:a.x,y:L,width:a.width,height:I},Math.abs(B)>0&&Math.abs(R)<Math.abs(B)){var Se=Mt(R||B)*(Math.abs(B)-Math.abs(R));R+=Se}}return Je(Je(Je({},P),{},{x:T,y:L,width:R,height:I,value:u?$:$[1],payload:P,background:D},j&&j[N]&&j[N].props),{},{tooltipPayload:[tN(r,P)],tooltipPosition:{x:T+R/2,y:L+I/2}})});return Je({data:_,layout:m},h)});function Mu(e){"@babel/helpers - typeof";return Mu=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},Mu(e)}function yie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MN(n.key),n)}}function vie(e,t,r){return t&&vj(e.prototype,t),r&&vj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gj(Object(r),!0).forEach(function(n){ap(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ap(e,t,r){return t=MN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MN(e){var t=gie(e,"string");return Mu(t)=="symbol"?t:t+""}function gie(e,t){if(Mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IN=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,f=Object.keys(r),c={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},h=!!ar(u,Bi);return f.reduce(function(p,m){var y=r[m],v=y.orientation,g=y.domain,b=y.padding,w=b===void 0?{}:b,O=y.mirror,x=y.reversed,S="".concat(v).concat(O?"Mirror":""),j,_,P,N,$;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var T=g[1]-g[0],L=1/0,R=y.categoricalDomain.sort(E6);if(R.forEach(function(ie,xe){xe>0&&(L=Math.min((ie||0)-(R[xe-1]||0),L))}),Number.isFinite(L)){var I=L/T,D=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(j=I*D/2),y.padding==="no-gap"){var B=It(t.barCategoryGap,I*D),C=I*D/2;j=C-B-(C-B)/D*B}}}i==="xAxis"?_=[n.left+(w.left||0)+(j||0),n.left+n.width-(w.right||0)-(j||0)]:i==="yAxis"?_=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(j||0),n.top+n.height-(w.bottom||0)-(j||0)]:_=y.range,x&&(_=[_[1],_[0]]);var F=YE(y,a,h),U=F.scale,V=F.realScaleType;U.domain(g).range(_),JE(U);var H=ZE(U,Dr(Dr({},y),{},{realScaleType:V}));i==="xAxis"?($=v==="top"&&!O||v==="bottom"&&O,P=n.left,N=c[S]-$*y.height):i==="yAxis"&&($=v==="left"&&!O||v==="right"&&O,P=c[S]-$*y.width,N=n.top);var X=Dr(Dr(Dr({},y),H),{},{realScaleType:V,x:P,y:N,scale:U,width:i==="xAxis"?n.width:y.width,height:i==="yAxis"?n.height:y.height});return X.bandSize=gd(X,H),!y.hide&&i==="xAxis"?c[S]+=($?-1:1)*X.height:y.hide||(c[S]+=($?-1:1)*X.width),Dr(Dr({},p),{},ap({},m,X))},{})},RN=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},bie=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return RN({x:r,y:n},{x:i,y:a})},DN=function(){function e(t){yie(this,e),this.scale=t}return vie(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();ap(DN,"EPS",1e-4);var Cb=function(t){var r=Object.keys(t).reduce(function(n,i){return Dr(Dr({},n),{},ap({},i,DN.create(t[i])))},{});return Dr(Dr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return zne(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return NN(i,function(a,o){return r[o].isInRange(a)})}})};function xie(e){return(e%180+180)%180}var wie=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=xie(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Sie=fn,Oie=rc,jie=Dh;function _ie(e){return function(t,r,n){var i=Object(t);if(!Oie(t)){var a=Sie(r);t=jie(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var Pie=_ie,Aie=PN;function kie(e){var t=Aie(e),r=t%1;return t===t?r?t-r:t:0}var Eie=kie,Nie=Tk,Cie=fn,Tie=Eie,$ie=Math.max;function Mie(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Tie(r);return i<0&&(i=$ie(n+i,0)),Nie(e,Cie(t),i)}var Iie=Mie,Rie=Pie,Die=Iie,Lie=Rie(Die),zie=Lie;const Fie=Ae(zie);var Bie=Tz(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Tb=A.createContext(void 0),$b=A.createContext(void 0),LN=A.createContext(void 0),zN=A.createContext({}),FN=A.createContext(void 0),BN=A.createContext(0),UN=A.createContext(0),bj=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,f=Bie(a);return k.createElement(Tb.Provider,{value:n},k.createElement($b.Provider,{value:i},k.createElement(zN.Provider,{value:a},k.createElement(LN.Provider,{value:f},k.createElement(FN.Provider,{value:o},k.createElement(BN.Provider,{value:u},k.createElement(UN.Provider,{value:l},s)))))))},Uie=function(){return A.useContext(FN)},WN=function(t){var r=A.useContext(Tb);r==null&&za();var n=r[t];return n==null&&za(),n},Wie=function(){var t=A.useContext(Tb);return ei(t)},Hie=function(){var t=A.useContext($b),r=Fie(t,function(n){return NN(n.domain,Number.isFinite)});return r||ei(t)},HN=function(t){var r=A.useContext($b);r==null&&za();var n=r[t];return n==null&&za(),n},qie=function(){var t=A.useContext(LN);return t},Kie=function(){return A.useContext(zN)},Mb=function(){return A.useContext(UN)},Ib=function(){return A.useContext(BN)};function ps(e){"@babel/helpers - typeof";return ps=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},ps(e)}function Vie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KN(n.key),n)}}function Xie(e,t,r){return t&&Gie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qie(e,t,r){return t=Rd(t),Yie(e,qN()?Reflect.construct(t,r||[],Rd(e).constructor):t.apply(e,r))}function Yie(e,t){if(t&&(ps(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jie(e)}function Jie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qN=function(){return!!e})()}function Rd(e){return Rd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rd(e)}function Zie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rg(e,t)}function rg(e,t){return rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rg(e,t)}function xj(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 wj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xj(Object(r),!0).forEach(function(n){Rb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rb(e,t,r){return t=KN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KN(e){var t=eae(e,"string");return ps(t)=="symbol"?t:t+""}function eae(e,t){if(ps(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ps(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function tae(e,t){return aae(e)||iae(e,t)||nae(e,t)||rae()}function rae(){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 nae(e,t){if(e){if(typeof e=="string")return Sj(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 Sj(e,t)}}function Sj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iae(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function aae(e){if(Array.isArray(e))return e}function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ng.apply(this,arguments)}var oae=function(t,r){var n;return k.isValidElement(t)?n=k.cloneElement(t,r):oe(t)?n=t(r):n=k.createElement("line",ng({},r,{className:"recharts-reference-line-line"})),n},sae=function(t,r,n,i,a,o,s,l,u){var f=a.x,c=a.y,h=a.width,p=a.height;if(n){var m=u.y,y=t.y.apply(m,{position:o});if(an(u,"discard")&&!t.y.isInRange(y))return null;var v=[{x:f+h,y},{x:f,y}];return l==="left"?v.reverse():v}if(r){var g=u.x,b=t.x.apply(g,{position:o});if(an(u,"discard")&&!t.x.isInRange(b))return null;var w=[{x:b,y:c+p},{x:b,y:c}];return s==="top"?w.reverse():w}if(i){var O=u.segment,x=O.map(function(S){return t.apply(S,{position:o})});return an(u,"discard")&&Cne(x,function(S){return!t.isInRange(S)})?null:x}return null};function lae(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=Uie(),f=WN(i),c=HN(a),h=qie();if(!u||!h)return null;Ur(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Cb({x:f.scale,y:c.scale}),m=ct(t),y=ct(r),v=n&&n.length===2,g=sae(p,m,y,v,h,e.position,f.orientation,c.orientation,e);if(!g)return null;var b=tae(g,2),w=b[0],O=w.x,x=w.y,S=b[1],j=S.x,_=S.y,P=an(e,"hidden")?"url(#".concat(u,")"):void 0,N=wj(wj({clipPath:P},ne(e,!0)),{},{x1:O,y1:x,x2:j,y2:_});return k.createElement(ve,{className:fe("recharts-reference-line",s)},oae(o,N),mt.renderCallByParent(e,bie({x1:O,y1:x,x2:j,y2:_})))}var Db=function(e){function t(){return Vie(this,t),Qie(this,t,arguments)}return Zie(t,e),Xie(t,[{key:"render",value:function(){return k.createElement(lae,this.props)}}])}(k.Component);Rb(Db,"displayName","ReferenceLine");Rb(Db,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ig.apply(this,arguments)}function ms(e){"@babel/helpers - typeof";return ms=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},ms(e)}function Oj(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 jj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oj(Object(r),!0).forEach(function(n){op(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GN(n.key),n)}}function fae(e,t,r){return t&&cae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dae(e,t,r){return t=Dd(t),hae(e,VN()?Reflect.construct(t,r||[],Dd(e).constructor):t.apply(e,r))}function hae(e,t){if(t&&(ms(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pae(e)}function pae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VN=function(){return!!e})()}function Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dd(e)}function mae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ag(e,t)}function ag(e,t){return ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ag(e,t)}function op(e,t,r){return t=GN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GN(e){var t=yae(e,"string");return ms(t)=="symbol"?t:t+""}function yae(e,t){if(ms(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ms(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vae=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Cb({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return an(t,"discard")&&!o.isInRange(s)?null:s},sp=function(e){function t(){return uae(this,t),dae(this,t,arguments)}return mae(t,e),fae(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=ct(i),f=ct(a);if(Ur(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var c=vae(this.props);if(!c)return null;var h=c.x,p=c.y,m=this.props,y=m.shape,v=m.className,g=an(this.props,"hidden")?"url(#".concat(l,")"):void 0,b=jj(jj({clipPath:g},ne(this.props,!0)),{},{cx:h,cy:p});return k.createElement(ve,{className:fe("recharts-reference-dot",v)},t.renderDot(y,b),mt.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}(k.Component);op(sp,"displayName","ReferenceDot");op(sp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});op(sp,"renderDot",function(e,t){var r;return k.isValidElement(e)?r=k.cloneElement(e,t):oe(e)?r=e(t):r=k.createElement(Jh,ig({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function og(){return og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},og.apply(this,arguments)}function ys(e){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(e)}function _j(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 Pj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_j(Object(r),!0).forEach(function(n){lp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_j(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QN(n.key),n)}}function xae(e,t,r){return t&&bae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wae(e,t,r){return t=Ld(t),Sae(e,XN()?Reflect.construct(t,r||[],Ld(e).constructor):t.apply(e,r))}function Sae(e,t){if(t&&(ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oae(e)}function Oae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XN=function(){return!!e})()}function Ld(e){return Ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ld(e)}function jae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sg(e,t)}function sg(e,t){return sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sg(e,t)}function lp(e,t,r){return t=QN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QN(e){var t=_ae(e,"string");return ys(t)=="symbol"?t:t+""}function _ae(e,t){if(ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pae=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,f=a.xAxis,c=a.yAxis;if(!f||!c)return null;var h=Cb({x:f.scale,y:c.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(l,{position:"start"}):h.y.rangeMin},m={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(u,{position:"end"}):h.y.rangeMax};return an(a,"discard")&&(!h.isInRange(p)||!h.isInRange(m))?null:RN(p,m)},up=function(e){function t(){return gae(this,t),wae(this,t,arguments)}return jae(t,e),xae(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,f=n.clipPathId;Ur(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=ct(i),h=ct(a),p=ct(o),m=ct(s),y=this.props.shape;if(!c&&!h&&!p&&!m&&!y)return null;var v=Pae(c,h,p,m,this.props);if(!v&&!y)return null;var g=an(this.props,"hidden")?"url(#".concat(f,")"):void 0;return k.createElement(ve,{className:fe("recharts-reference-area",l)},t.renderRect(y,Pj(Pj({clipPath:g},ne(this.props,!0)),v)),mt.renderCallByParent(this.props,v))}}])}(k.Component);lp(up,"displayName","ReferenceArea");lp(up,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});lp(up,"renderRect",function(e,t){var r;return k.isValidElement(e)?r=k.cloneElement(e,t):oe(e)?r=e(t):r=k.createElement(Nb,og({},t,{className:"recharts-reference-area-rect"})),r});function YN(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function Aae(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return wie(n,r)}function kae(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function zd(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Eae(e,t){return YN(e,t+1)}function Nae(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,c=function(){var m=n==null?void 0:n[l];if(m===void 0)return{v:YN(n,u)};var y=l,v,g=function(){return v===void 0&&(v=r(m,y)),v},b=m.coordinate,w=l===0||zd(e,b,g,f,s);w||(l=0,f=o,u+=1),w&&(f=b+e*(g()/2+i),l+=u)},h;u<=a.length;)if(h=c(),h)return h.v;return[]}function Iu(e){"@babel/helpers - typeof";return Iu=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},Iu(e)}function Aj(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 Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Aj(Object(r),!0).forEach(function(n){Cae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cae(e,t,r){return t=Tae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tae(e){var t=$ae(e,"string");return Iu(t)=="symbol"?t:t+""}function $ae(e,t){if(Iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mae(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(h){var p=a[h],m,y=function(){return m===void 0&&(m=r(p,h)),m};if(h===o-1){var v=e*(p.coordinate+e*y()/2-l);a[h]=p=Pt(Pt({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else a[h]=p=Pt(Pt({},p),{},{tickCoord:p.coordinate});var g=zd(e,p.tickCoord,y,s,l);g&&(l=p.tickCoord-e*(y()/2+i),a[h]=Pt(Pt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function Iae(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=n[s-1],c=r(f,s-1),h=e*(f.coordinate+e*c/2-u);o[s-1]=f=Pt(Pt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=zd(e,f.tickCoord,function(){return c},l,u);p&&(u=f.tickCoord-e*(c/2+i),o[s-1]=Pt(Pt({},f),{},{isShow:!0}))}for(var m=a?s-1:s,y=function(b){var w=o[b],O,x=function(){return O===void 0&&(O=r(w,b)),O};if(b===0){var S=e*(w.coordinate-e*x()/2-l);o[b]=w=Pt(Pt({},w),{},{tickCoord:S<0?w.coordinate-S*e:w.coordinate})}else o[b]=w=Pt(Pt({},w),{},{tickCoord:w.coordinate});var j=zd(e,w.tickCoord,x,l,u);j&&(l=w.tickCoord+e*(x()/2+i),o[b]=Pt(Pt({},w),{},{isShow:!0}))},v=0;v<m;v++)y(v);return o}function Lb(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,f=e.unit,c=e.angle;if(!i||!i.length||!n)return[];if(q(l)||Ka.isSsr)return Eae(i,typeof l=="number"&&q(l)?l:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",m=f&&p==="width"?El(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(w,O){var x=oe(u)?u(w.value,O):w.value;return p==="width"?Aae(El(x,{fontSize:t,letterSpacing:r}),m,c):El(x,{fontSize:t,letterSpacing:r})[p]},v=i.length>=2?Mt(i[1].coordinate-i[0].coordinate):1,g=kae(a,v,p);return l==="equidistantPreserveStart"?Nae(v,g,y,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=Iae(v,g,y,i,o,l==="preserveStartEnd"):h=Mae(v,g,y,i,o),h.filter(function(b){return b.isShow}))}var Rae=["viewBox"],Dae=["viewBox"],Lae=["ticks"];function vs(e){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vs(e)}function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},go.apply(this,arguments)}function kj(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 it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kj(Object(r),!0).forEach(function(n){zb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vm(e,t){if(e==null)return{};var r=zae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Fae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ej(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZN(n.key),n)}}function Bae(e,t,r){return t&&Ej(e.prototype,t),r&&Ej(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uae(e,t,r){return t=Fd(t),Wae(e,JN()?Reflect.construct(t,r||[],Fd(e).constructor):t.apply(e,r))}function Wae(e,t){if(t&&(vs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hae(e)}function Hae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JN=function(){return!!e})()}function Fd(e){return Fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fd(e)}function qae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lg(e,t)}function lg(e,t){return lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lg(e,t)}function zb(e,t,r){return t=ZN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZN(e){var t=Kae(e,"string");return vs(t)=="symbol"?t:t+""}function Kae(e,t){if(vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hs=function(e){function t(r){var n;return Fae(this,t),n=Uae(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return qae(t,e),Bae(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=vm(n,Rae),s=this.props,l=s.viewBox,u=vm(s,Dae);return!Po(a,l)||!Po(o,u)||!Po(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,f=i.tickSize,c=i.mirror,h=i.tickMargin,p,m,y,v,g,b,w=c?-1:1,O=n.tickSize||f,x=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=m=n.coordinate,v=o+ +!c*l,y=v-w*O,b=y-w*h,g=x;break;case"left":y=v=n.coordinate,m=a+ +!c*s,p=m-w*O,g=p-w*h,b=x;break;case"right":y=v=n.coordinate,m=a+ +c*s,p=m+w*O,g=p+w*h,b=x;break;default:p=m=n.coordinate,v=o+ +c*l,y=v+w*O,b=y+w*h,g=x;break}return{line:{x1:p,y1:y,x2:m,y2:v},tick:{x:g,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,f=n.axisLine,c=it(it(it({},ne(this.props,!1)),ne(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!u||l==="bottom"&&u);c=it(it({},c),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);c=it(it({},c),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return k.createElement("line",go({},c,{className:fe("recharts-cartesian-axis-line",ur(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,f=s.tick,c=s.tickFormatter,h=s.unit,p=Lb(it(it({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=ne(this.props,!1),g=ne(f,!1),b=it(it({},v),{},{fill:"none"},ne(l,!1)),w=p.map(function(O,x){var S=o.getTickLineCoord(O),j=S.line,_=S.tick,P=it(it(it(it({textAnchor:m,verticalAnchor:y},v),{},{stroke:"none",fill:u},g),_),{},{index:x,payload:O,visibleTicksCount:p.length,tickFormatter:c});return k.createElement(ve,go({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Ra(o.props,O,x)),l&&k.createElement("line",go({},b,j,{className:fe("recharts-cartesian-axis-tick-line",ur(l,"className"))})),f&&t.renderTickItem(f,P,"".concat(oe(c)?c(O.value,x):O.value).concat(h||"")))});return k.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,f=i.hide;if(f)return null;var c=this.props,h=c.ticks,p=vm(c,Lae),m=h;return oe(l)&&(m=h&&h.length>0?l(this.props):l(p)),o<=0||s<=0||!m||!m.length?null:k.createElement(ve,{className:fe("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),mt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=fe(i.className,"recharts-cartesian-axis-tick-value");return k.isValidElement(n)?o=k.cloneElement(n,it(it({},i),{},{className:s})):oe(n)?o=n(it(it({},i),{},{className:s})):o=k.createElement(Da,go({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(A.Component);zb(Hs,"displayName","CartesianAxis");zb(Hs,"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 Vae=["x1","y1","x2","y2","key"],Gae=["offset"];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 Nj(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 kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nj(Object(r),!0).forEach(function(n){Xae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xae(e,t,r){return t=Qae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qae(e){var t=Yae(e,"string");return Fa(t)=="symbol"?t:t+""}function Yae(e,t){if(Fa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function la(){return la=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},la.apply(this,arguments)}function Cj(e,t){if(e==null)return{};var r=Jae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Zae=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return k.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function eC(e,t){var r;if(k.isValidElement(e))r=k.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=Cj(t,Vae),u=ne(l,!1);u.offset;var f=Cj(u,Gae);r=k.createElement("line",la({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function eoe(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=kt(kt({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return eC(i,u)});return k.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function toe(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=kt(kt({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return eC(i,u)});return k.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function roe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var c=f.map(function(h,p){var m=!f[p+1],y=m?i+o-h:f[p+1]-h;if(y<=0)return null;var v=p%t.length;return k.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:y,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function noe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var f=u.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var c=f.map(function(h,p){var m=!f[p+1],y=m?a+s-h:f[p+1]-h;if(y<=0)return null;var v=p%n.length;return k.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:y,height:l,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var ioe=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return QE(Lb(kt(kt(kt({},Hs.defaultProps),n),{},{ticks:Pn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},aoe=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return QE(Lb(kt(kt(kt({},Hs.defaultProps),n),{},{ticks:Pn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},to={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ru(e){var t,r,n,i,a,o,s=Mb(),l=Ib(),u=Kie(),f=kt(kt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:to.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:to.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:to.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:to.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:to.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:to.verticalFill,x:q(e.x)?e.x:u.left,y:q(e.y)?e.y:u.top,width:q(e.width)?e.width:u.width,height:q(e.height)?e.height:u.height}),c=f.x,h=f.y,p=f.width,m=f.height,y=f.syncWithTicks,v=f.horizontalValues,g=f.verticalValues,b=Wie(),w=Hie();if(!q(p)||p<=0||!q(m)||m<=0||!q(c)||c!==+c||!q(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||ioe,x=f.horizontalCoordinatesGenerator||aoe,S=f.horizontalPoints,j=f.verticalPoints;if((!S||!S.length)&&oe(x)){var _=v&&v.length,P=x({yAxis:w?kt(kt({},w),{},{ticks:_?v:w.ticks}):void 0,width:s,height:l,offset:u},_?!0:y);Ur(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Fa(P),"]")),Array.isArray(P)&&(S=P)}if((!j||!j.length)&&oe(O)){var N=g&&g.length,$=O({xAxis:b?kt(kt({},b),{},{ticks:N?g:b.ticks}):void 0,width:s,height:l,offset:u},N?!0:y);Ur(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Fa($),"]")),Array.isArray($)&&(j=$)}return k.createElement("g",{className:"recharts-cartesian-grid"},k.createElement(Zae,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),k.createElement(eoe,la({},f,{offset:u,horizontalPoints:S,xAxis:b,yAxis:w})),k.createElement(toe,la({},f,{offset:u,verticalPoints:j,xAxis:b,yAxis:w})),k.createElement(roe,la({},f,{horizontalPoints:S})),k.createElement(noe,la({},f,{verticalPoints:j})))}Ru.displayName="CartesianGrid";var ooe=["layout","type","stroke","connectNulls","isRange","ref"],soe=["key"],tC;function gs(e){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gs(e)}function rC(e,t){if(e==null)return{};var r=loe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function loe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ua.apply(this,arguments)}function Tj(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 Gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tj(Object(r),!0).forEach(function(n){en(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iC(n.key),n)}}function coe(e,t,r){return t&&$j(e.prototype,t),r&&$j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function foe(e,t,r){return t=Bd(t),doe(e,nC()?Reflect.construct(t,r||[],Bd(e).constructor):t.apply(e,r))}function doe(e,t){if(t&&(gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hoe(e)}function hoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nC=function(){return!!e})()}function Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bd(e)}function poe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ug(e,t)}function ug(e,t){return ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ug(e,t)}function en(e,t,r){return t=iC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iC(e){var t=moe(e,"string");return gs(t)=="symbol"?t:t+""}function moe(e,t){if(gs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ln=function(e){function t(){var r;uoe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=foe(this,t,[].concat(i)),en(r,"state",{isAnimationFinished:!0}),en(r,"id",Ds("recharts-area-")),en(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),oe(o)&&o()}),en(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),oe(o)&&o()}),r}return poe(t,e),coe(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,f=l.points,c=l.dataKey,h=ne(this.props,!1),p=ne(u,!0),m=f.map(function(v,g){var b=Gn(Gn(Gn({key:"dot-".concat(g),r:3},h),p),{},{index:g,cx:v.x,cy:v.y,dataKey:c,value:v.value,payload:v.payload,points:f});return t.renderDotItem(u,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return k.createElement(ve,ua({className:"recharts-area-dots"},y),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,f=n*Math.abs(l-u),c=hi(o.map(function(h){return h.y||0}));return q(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(hi(a.map(function(h){return h.y||0})),c)),q(c)?k.createElement("rect",{x:l<u?l:l-f,y:0,width:f,height:Math.floor(c+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,f=n*Math.abs(l-u),c=hi(o.map(function(h){return h.x||0}));return q(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(hi(a.map(function(h){return h.x||0})),c)),q(c)?k.createElement("rect",{x:0,y:l<u?l:l-f,width:c+(s?parseInt("".concat(s),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,f=s.stroke,c=s.connectNulls,h=s.isRange;s.ref;var p=rC(s,ooe);return k.createElement(ve,{clipPath:a?"url(#clipPath-".concat(o,")"):null},k.createElement(No,ua({},ne(p,!0),{points:n,connectNulls:c,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&k.createElement(No,ua({},ne(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:c,fill:"none",points:n})),f!=="none"&&h&&k.createElement(No,ua({},ne(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:c,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,h=o.animationEasing,p=o.animationId,m=this.state,y=m.prevPoints,v=m.prevBaseLine;return k.createElement(sn,{begin:f,duration:c,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t;if(y){var w=y.length/s.length,O=s.map(function(_,P){var N=Math.floor(P*w);if(y[N]){var $=y[N],T=qt($.x,_.x),L=qt($.y,_.y);return Gn(Gn({},_),{},{x:T(b),y:L(b)})}return _}),x;if(q(l)&&typeof l=="number"){var S=qt(v,l);x=S(b)}else if(ce(l)||Rs(l)){var j=qt(v,0);x=j(b)}else x=l.map(function(_,P){var N=Math.floor(P*w);if(v[N]){var $=v[N],T=qt($.x,_.x),L=qt($.y,_.y);return Gn(Gn({},_),{},{x:T(b),y:L(b)})}return _});return a.renderAreaStatically(O,x,n,i)}return k.createElement(ve,null,k.createElement("defs",null,k.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),k.createElement(ve,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,f=u.prevPoints,c=u.prevBaseLine,h=u.totalLength;return l&&o&&o.length&&(!f&&h>0||!as(f,o)||!as(c,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,f=i.left,c=i.xAxis,h=i.yAxis,p=i.width,m=i.height,y=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,w=fe("recharts-area",l),O=c&&c.allowDataOverflow,x=h&&h.allowDataOverflow,S=O||x,j=ce(v)?this.id:v,_=(n=ne(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=_.r,N=P===void 0?3:P,$=_.strokeWidth,T=$===void 0?2:$,L=L6(o)?o:{},R=L.clipDot,I=R===void 0?!0:R,D=N*2+T;return k.createElement(ve,{className:w},O||x?k.createElement("defs",null,k.createElement("clipPath",{id:"clipPath-".concat(j)},k.createElement("rect",{x:O?f:f-p/2,y:x?u:u-m/2,width:O?p:p*2,height:x?m:m*2})),!I&&k.createElement("clipPath",{id:"clipPath-dots-".concat(j)},k.createElement("rect",{x:f-D/2,y:u-D/2,width:p+D,height:m+D}))):null,b?null:this.renderArea(S,j),(o||b)&&this.renderDots(S,I,j),(!y||g)&&Nn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(A.PureComponent);tC=ln;en(ln,"displayName","Area");en(ln,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ka.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});en(ln,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(q(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),c=Math.min(u[0],u[1]);return s==="dataMin"?c:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});en(ln,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,h=e.offset,p=t.layout,m=u&&u.length,y=tC.getBaseValue(t,r,n,i),v=p==="horizontal",g=!1,b=c.map(function(O,x){var S;m?S=u[f+x]:(S=lt(O,l),Array.isArray(S)?g=!0:S=[y,S]);var j=S[1]==null||m&<(O,l)==null;return v?{x:sO({axis:n,ticks:a,bandSize:s,entry:O,index:x}),y:j?null:i.scale(S[1]),value:S,payload:O}:{x:j?null:n.scale(S[1]),y:sO({axis:i,ticks:o,bandSize:s,entry:O,index:x}),value:S,payload:O}}),w;return m||g?w=b.map(function(O){var x=Array.isArray(O.value)?O.value[0]:null;return v?{x:O.x,y:x!=null&&O.y!=null?i.scale(x):null}:{x:x!=null?n.scale(x):null,y:O.y}}):w=v?i.scale(y):n.scale(y),Gn({points:b,baseLine:w,layout:p,isRange:g},h)});en(ln,"renderDotItem",function(e,t){var r;if(k.isValidElement(e))r=k.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=fe("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=rC(t,soe);r=k.createElement(Jh,ua({},a,{key:i,className:n}))}return r});function bs(e){"@babel/helpers - typeof";return bs=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},bs(e)}function yoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function voe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sC(n.key),n)}}function goe(e,t,r){return t&&voe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function boe(e,t,r){return t=Ud(t),xoe(e,aC()?Reflect.construct(t,r||[],Ud(e).constructor):t.apply(e,r))}function xoe(e,t){if(t&&(bs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return woe(e)}function woe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aC=function(){return!!e})()}function Ud(e){return Ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ud(e)}function Soe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cg(e,t)}function cg(e,t){return cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cg(e,t)}function oC(e,t,r){return t=sC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sC(e){var t=Ooe(e,"string");return bs(t)=="symbol"?t:t+""}function Ooe(e,t){if(bs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fg.apply(this,arguments)}function joe(e){var t=e.xAxisId,r=Mb(),n=Ib(),i=WN(t);return i==null?null:A.createElement(Hs,fg({},i,{className:fe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Pn(o,!0)}}))}var Ni=function(e){function t(){return yoe(this,t),boe(this,t,arguments)}return Soe(t,e),goe(t,[{key:"render",value:function(){return A.createElement(joe,this.props)}}])}(A.Component);oC(Ni,"displayName","XAxis");oC(Ni,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function xs(e){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xs(e)}function _oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Poe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cC(n.key),n)}}function Aoe(e,t,r){return t&&Poe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function koe(e,t,r){return t=Wd(t),Eoe(e,lC()?Reflect.construct(t,r||[],Wd(e).constructor):t.apply(e,r))}function Eoe(e,t){if(t&&(xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Noe(e)}function Noe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lC=function(){return!!e})()}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wd(e)}function Coe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dg(e,t)}function dg(e,t){return dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dg(e,t)}function uC(e,t,r){return t=cC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cC(e){var t=Toe(e,"string");return xs(t)=="symbol"?t:t+""}function Toe(e,t){if(xs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hg(){return hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hg.apply(this,arguments)}var $oe=function(t){var r=t.yAxisId,n=Mb(),i=Ib(),a=HN(r);return a==null?null:A.createElement(Hs,hg({},a,{className:fe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Pn(s,!0)}}))},Ci=function(e){function t(){return _oe(this,t),koe(this,t,arguments)}return Coe(t,e),Aoe(t,[{key:"render",value:function(){return A.createElement($oe,this.props)}}])}(A.Component);uC(Ci,"displayName","YAxis");uC(Ci,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function Mj(e){return Doe(e)||Roe(e)||Ioe(e)||Moe()}function Moe(){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 Ioe(e,t){if(e){if(typeof e=="string")return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pg(e,t)}}function Roe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Doe(e){if(Array.isArray(e))return pg(e)}function pg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var mg=function(t,r,n,i,a){var o=_r(t,Db),s=_r(t,sp),l=[].concat(Mj(o),Mj(s)),u=_r(t,up),f="".concat(i,"Id"),c=i[0],h=r;if(l.length&&(h=l.reduce(function(y,v){if(v.props[f]===n&&an(v.props,"extendDomain")&&q(v.props[c])){var g=v.props[c];return[Math.min(y[0],g),Math.max(y[1],g)]}return y},h)),u.length){var p="".concat(c,"1"),m="".concat(c,"2");h=u.reduce(function(y,v){if(v.props[f]===n&&an(v.props,"extendDomain")&&q(v.props[p])&&q(v.props[m])){var g=v.props[p],b=v.props[m];return[Math.min(y[0],g,b),Math.max(y[1],g,b)]}return y},h)}return a&&a.length&&(h=a.reduce(function(y,v){return q(v)?[Math.min(y[0],v),Math.max(y[1],v)]:y},h)),h},fC={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function a(l,u,f,c,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,c||l,h),m=r?r+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],f,c;if(this._eventsCount===0)return u;for(c in f=this._events)t.call(f,c)&&u.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},s.prototype.listeners=function(u){var f=r?r+u:u,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var h=0,p=c.length,m=new Array(p);h<p;h++)m[h]=c[h].fn;return m},s.prototype.listenerCount=function(u){var f=r?r+u:u,c=this._events[f];return c?c.fn?1:c.length:0},s.prototype.emit=function(u,f,c,h,p,m){var y=r?r+u:u;if(!this._events[y])return!1;var v=this._events[y],g=arguments.length,b,w;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,c),!0;case 4:return v.fn.call(v.context,f,c,h),!0;case 5:return v.fn.call(v.context,f,c,h,p),!0;case 6:return v.fn.call(v.context,f,c,h,p,m),!0}for(w=1,b=new Array(g-1);w<g;w++)b[w-1]=arguments[w];v.fn.apply(v.context,b)}else{var O=v.length,x;for(w=0;w<O;w++)switch(v[w].once&&this.removeListener(u,v[w].fn,void 0,!0),g){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,f);break;case 3:v[w].fn.call(v[w].context,f,c);break;case 4:v[w].fn.call(v[w].context,f,c,h);break;default:if(!b)for(x=1,b=new Array(g-1);x<g;x++)b[x-1]=arguments[x];v[w].fn.apply(v[w].context,b)}}return!0},s.prototype.on=function(u,f,c){return a(this,u,f,c,!1)},s.prototype.once=function(u,f,c){return a(this,u,f,c,!0)},s.prototype.removeListener=function(u,f,c,h){var p=r?r+u:u;if(!this._events[p])return this;if(!f)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn===f&&(!h||m.once)&&(!c||m.context===c)&&o(this,p);else{for(var y=0,v=[],g=m.length;y<g;y++)(m[y].fn!==f||h&&!m[y].once||c&&m[y].context!==c)&&v.push(m[y]);v.length?this._events[p]=v.length===1?v[0]:v:o(this,p)}return this},s.prototype.removeAllListeners=function(u){var f;return u?(f=r?r+u:u,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(fC);var Loe=fC.exports;const zoe=Ae(Loe);var gm=new zoe,bm="recharts.syncMouseEvents";function Du(e){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Du(e)}function Foe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Boe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dC(n.key),n)}}function Uoe(e,t,r){return t&&Boe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xm(e,t,r){return t=dC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e){var t=Woe(e,"string");return Du(t)=="symbol"?t:t+""}function Woe(e,t){if(Du(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Du(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hoe=function(){function e(){Foe(this,e),xm(this,"activeIndex",0),xm(this,"coordinateList",[]),xm(this,"layout","horizontal")}return Uoe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,f=r.offset,c=f===void 0?null:f,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,c=a+l+u,h=o+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:c,pageY:h})}}}])}();function qoe(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&&q(n)&&q(i))return!0}return!1}function Koe(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function hC(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Me(t,r,n,i),s=Me(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Voe(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,f=t.outerRadius,c=t.angle,h=Me(s,l,u,c),p=Me(s,l,f,c);n=h.x,i=h.y,a=p.x,o=p.y}else return hC(t);return[{x:n,y:i},{x:a,y:o}]}function Lu(e){"@babel/helpers - typeof";return Lu=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},Lu(e)}function Ij(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 Hc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ij(Object(r),!0).forEach(function(n){Goe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ij(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Goe(e,t,r){return t=Xoe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xoe(e){var t=Qoe(e,"string");return Lu(t)=="symbol"?t:t+""}function Qoe(e,t){if(Lu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yoe(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var m,y=No;if(h==="ScatterChart")m=o,y=bte;else if(h==="BarChart")m=Koe(c,o,l,f),y=Nb;else if(c==="radial"){var v=hC(o),g=v.cx,b=v.cy,w=v.radius,O=v.startAngle,x=v.endAngle;m={cx:g,cy:b,startAngle:O,endAngle:x,innerRadius:w,outerRadius:w},y=sN}else m={points:Voe(c,o,l)},y=No;var S=Hc(Hc(Hc(Hc({stroke:"#ccc",pointerEvents:"none"},l),m),ne(p,!1)),{},{payload:s,payloadIndex:u,className:fe("recharts-tooltip-cursor",p.className)});return A.isValidElement(p)?A.cloneElement(p,S):A.createElement(y,S)}var Joe=["item"],Zoe=["children","className","width","height","style","compact","title","desc"];function ws(e){"@babel/helpers - typeof";return ws=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},ws(e)}function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bo.apply(this,arguments)}function Rj(e,t){return rse(e)||tse(e,t)||mC(e,t)||ese()}function ese(){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 tse(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function rse(e){if(Array.isArray(e))return e}function Dj(e,t){if(e==null)return{};var r=nse(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nse(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ise(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ase(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yC(n.key),n)}}function ose(e,t,r){return t&&ase(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sse(e,t,r){return t=Hd(t),lse(e,pC()?Reflect.construct(t,r||[],Hd(e).constructor):t.apply(e,r))}function lse(e,t){if(t&&(ws(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return use(e)}function use(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pC=function(){return!!e})()}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hd(e)}function cse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yg(e,t)}function yg(e,t){return yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yg(e,t)}function Ss(e){return hse(e)||dse(e)||mC(e)||fse()}function fse(){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 mC(e,t){if(e){if(typeof e=="string")return vg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vg(e,t)}}function dse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hse(e){if(Array.isArray(e))return vg(e)}function vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lj(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 z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lj(Object(r),!0).forEach(function(n){ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ae(e,t,r){return t=yC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yC(e){var t=pse(e,"string");return ws(t)=="symbol"?t:t+""}function pse(e,t){if(ws(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ws(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mse={xAxis:["bottom","top"],yAxis:["left","right"]},yse={width:"100%",height:"100%"},vC={x:0,y:0};function qc(e){return e}var vse=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},gse=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return z(z(z({},i),Me(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return z(z(z({},i),Me(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return vC},cp=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Ss(s),Ss(u)):s},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function gC(e){return e==="number"?[0,"auto"]:void 0}var gg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=cp(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?s:c;h=Wf(p,o.dataKey,i)}else h=c&&c[n]||s[n];return h?[].concat(Ss(l),[tN(u,h)]):l},[])},zj=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=vse(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=zY(o,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,h=gg(t,r,f,c),p=gse(n,s,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:h,activeCoordinate:p}}return null},bse=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,h=t.stackOffset,p=XE(f,a);return n.reduce(function(m,y){var v,g=y.type.defaultProps!==void 0?z(z({},y.type.defaultProps),y.props):y.props,b=g.type,w=g.dataKey,O=g.allowDataOverflow,x=g.allowDuplicatedCategory,S=g.scale,j=g.ticks,_=g.includeHidden,P=g[o];if(m[P])return m;var N=cp(t.data,{graphicalItems:i.filter(function(H){var X,ie=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o];return ie===P}),dataStartIndex:l,dataEndIndex:u}),$=N.length,T,L,R;qoe(g.domain,O,b)&&(T=$v(g.domain,null,O),p&&(b==="number"||S!=="auto")&&(R=Cl(N,w,"category")));var I=gC(b);if(!T||T.length===0){var D,B=(D=g.domain)!==null&&D!==void 0?D:I;if(w){if(T=Cl(N,w,b),b==="category"&&p){var C=k6(T);x&&C?(L=T,T=Cd(0,$)):x||(T=fO(B,T,y).reduce(function(H,X){return H.indexOf(X)>=0?H:[].concat(Ss(H),[X])},[]))}else if(b==="category")x?T=T.filter(function(H){return H!==""&&!ce(H)}):T=fO(B,T,y).reduce(function(H,X){return H.indexOf(X)>=0||X===""||ce(X)?H:[].concat(Ss(H),[X])},[]);else if(b==="number"){var F=HY(N,i.filter(function(H){var X,ie,xe=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o],ze="hide"in H.props?H.props.hide:(ie=H.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return xe===P&&(_||!ze)}),w,a,f);F&&(T=F)}p&&(b==="number"||S!=="auto")&&(R=Cl(N,w,"category"))}else p?T=Cd(0,$):s&&s[P]&&s[P].hasStack&&b==="number"?T=h==="expand"?[0,1]:eN(s[P].stackGroups,l,u):T=GE(N,i.filter(function(H){var X=o in H.props?H.props[o]:H.type.defaultProps[o],ie="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return X===P&&(_||!ie)}),b,f,!0);if(b==="number")T=mg(c,T,P,a,j),B&&(T=$v(B,T,O));else if(b==="category"&&B){var U=B,V=T.every(function(H){return U.indexOf(H)>=0});V&&(T=U)}}return z(z({},m),{},ae({},P,z(z({},g),{},{axisType:a,domain:T,categoricalDomain:R,duplicateDomain:L,originalDomain:(v=g.domain)!==null&&v!==void 0?v:I,isCategorical:p,layout:f})))},{})},xse=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,h=cp(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=h.length,m=XE(f,a),y=-1;return n.reduce(function(v,g){var b=g.type.defaultProps!==void 0?z(z({},g.type.defaultProps),g.props):g.props,w=b[o],O=gC("number");if(!v[w]){y++;var x;return m?x=Cd(0,p):s&&s[w]&&s[w].hasStack?(x=eN(s[w].stackGroups,l,u),x=mg(c,x,w,a)):(x=$v(O,GE(h,n.filter(function(S){var j,_,P=o in S.props?S.props[o]:(j=S.type.defaultProps)===null||j===void 0?void 0:j[o],N="hide"in S.props?S.props.hide:(_=S.type.defaultProps)===null||_===void 0?void 0:_.hide;return P===w&&!N}),"number",f),i.defaultProps.allowDataOverflow),x=mg(c,x,w,a)),z(z({},v),{},ae({},w,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:ur(mse,"".concat(a,".").concat(y%2),null),domain:x,originalDomain:O,isCategorical:m,layout:f})))}return v},{})},wse=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),h=_r(f,a),p={};return h&&h.length?p=bse(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=xse(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},Sse=function(t){var r=ei(t),n=Pn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:nb(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:gd(r,n)}},Fj=function(t){var r=t.children,n=t.defaultShowTooltip,i=ar(r,ds),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},Ose=function(t){return!t||!t.length?!1:t.some(function(r){var n=kn(r&&r.type);return n&&n.indexOf("Bar")>=0})},Bj=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"}},jse=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,f=n.height,c=n.children,h=n.margin||{},p=ar(c,ds),m=ar(c,Ao),y=Object.keys(l).reduce(function(x,S){var j=l[S],_=j.orientation;return!j.mirror&&!j.hide?z(z({},x),{},ae({},_,x[_]+j.width)):x},{left:h.left||0,right:h.right||0}),v=Object.keys(o).reduce(function(x,S){var j=o[S],_=j.orientation;return!j.mirror&&!j.hide?z(z({},x),{},ae({},_,ur(x,"".concat(_))+j.height)):x},{top:h.top||0,bottom:h.bottom||0}),g=z(z({},v),y),b=g.bottom;p&&(g.bottom+=p.props.height||ds.defaultProps.height),m&&r&&(g=UY(g,i,n,r));var w=u-g.left-g.right,O=f-g.top-g.bottom;return z(z({brushBottom:b},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},_se=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Fb=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,h=function(g,b){var w=b.graphicalItems,O=b.stackGroups,x=b.offset,S=b.updateId,j=b.dataStartIndex,_=b.dataEndIndex,P=g.barSize,N=g.layout,$=g.barGap,T=g.barCategoryGap,L=g.maxBarSize,R=Bj(N),I=R.numericAxisName,D=R.cateAxisName,B=Ose(w),C=[];return w.forEach(function(F,U){var V=cp(g.data,{graphicalItems:[F],dataStartIndex:j,dataEndIndex:_}),H=F.type.defaultProps!==void 0?z(z({},F.type.defaultProps),F.props):F.props,X=H.dataKey,ie=H.maxBarSize,xe=H["".concat(I,"Id")],ze=H["".concat(D,"Id")],Se={},gt=l.reduce(function(Ui,Wi){var fp=b["".concat(Wi.axisType,"Map")],Bb=H["".concat(Wi.axisType,"Id")];fp&&fp[Bb]||Wi.axisType==="zAxis"||za();var Ub=fp[Bb];return z(z({},Ui),{},ae(ae({},Wi.axisType,Ub),"".concat(Wi.axisType,"Ticks"),Pn(Ub)))},Se),G=gt[D],le=gt["".concat(D,"Ticks")],ue=O&&O[xe]&&O[xe].hasStack&&ZY(F,O[xe].stackGroups),W=kn(F.type).indexOf("Bar")>=0,qe=gd(G,le),ge=[],tt=B&&FY({barSize:P,stackGroups:O,totalSize:_se(gt,D)});if(W){var rt,Ft,Hn=ce(ie)?L:ie,Qa=(rt=(Ft=gd(G,le,!0))!==null&&Ft!==void 0?Ft:Hn)!==null&&rt!==void 0?rt:0;ge=BY({barGap:$,barCategoryGap:T,bandSize:Qa!==qe?Qa:qe,sizeList:tt[ze],maxBarSize:Hn}),Qa!==qe&&(ge=ge.map(function(Ui){return z(z({},Ui),{},{position:z(z({},Ui.position),{},{offset:Ui.position.offset-Qa/2})})}))}var sc=F&&F.type&&F.type.getComposedData;sc&&C.push({props:z(z({},sc(z(z({},gt),{},{displayedData:V,props:g,dataKey:X,item:F,bandSize:qe,barPosition:ge,offset:x,stackedData:ue,layout:N,dataStartIndex:j,dataEndIndex:_}))),{},ae(ae(ae({key:F.key||"item-".concat(U)},I,gt[I]),D,gt[D]),"animationId",S)),childIndex:B6(F,g.children),item:F})}),C},p=function(g,b){var w=g.props,O=g.dataStartIndex,x=g.dataEndIndex,S=g.updateId;if(!iw({props:w}))return null;var j=w.children,_=w.layout,P=w.stackOffset,N=w.data,$=w.reverseStackOrder,T=Bj(_),L=T.numericAxisName,R=T.cateAxisName,I=_r(j,n),D=YY(N,I,"".concat(L,"Id"),"".concat(R,"Id"),P,$),B=l.reduce(function(H,X){var ie="".concat(X.axisType,"Map");return z(z({},H),{},ae({},ie,wse(w,z(z({},X),{},{graphicalItems:I,stackGroups:X.axisType===L&&D,dataStartIndex:O,dataEndIndex:x}))))},{}),C=jse(z(z({},B),{},{props:w,graphicalItems:I}),b==null?void 0:b.legendBBox);Object.keys(B).forEach(function(H){B[H]=f(w,B[H],C,H.replace("Map",""),r)});var F=B["".concat(R,"Map")],U=Sse(F),V=h(w,z(z({},B),{},{dataStartIndex:O,dataEndIndex:x,updateId:S,graphicalItems:I,stackGroups:D,offset:C}));return z(z({formattedGraphicalItems:V,graphicalItems:I,offset:C,stackGroups:D},U),B)},m=function(v){function g(b){var w,O,x;return ise(this,g),x=sse(this,g,[b]),ae(x,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(x,"accessibilityManager",new Hoe),ae(x,"handleLegendBBoxUpdate",function(S){if(S){var j=x.state,_=j.dataStartIndex,P=j.dataEndIndex,N=j.updateId;x.setState(z({legendBBox:S},p({props:x.props,dataStartIndex:_,dataEndIndex:P,updateId:N},z(z({},x.state),{},{legendBBox:S}))))}}),ae(x,"handleReceiveSyncEvent",function(S,j,_){if(x.props.syncId===S){if(_===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(j)}}),ae(x,"handleBrushChange",function(S){var j=S.startIndex,_=S.endIndex;if(j!==x.state.dataStartIndex||_!==x.state.dataEndIndex){var P=x.state.updateId;x.setState(function(){return z({dataStartIndex:j,dataEndIndex:_},p({props:x.props,dataStartIndex:j,dataEndIndex:_,updateId:P},x.state))}),x.triggerSyncEvent({dataStartIndex:j,dataEndIndex:_})}}),ae(x,"handleMouseEnter",function(S){var j=x.getMouseInfo(S);if(j){var _=z(z({},j),{},{isTooltipActive:!0});x.setState(_),x.triggerSyncEvent(_);var P=x.props.onMouseEnter;oe(P)&&P(_,S)}}),ae(x,"triggeredAfterMouseMove",function(S){var j=x.getMouseInfo(S),_=j?z(z({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(_),x.triggerSyncEvent(_);var P=x.props.onMouseMove;oe(P)&&P(_,S)}),ae(x,"handleItemMouseEnter",function(S){x.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),ae(x,"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),ae(x,"handleMouseMove",function(S){S.persist(),x.throttleTriggeredAfterMouseMove(S)}),ae(x,"handleMouseLeave",function(S){x.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};x.setState(j),x.triggerSyncEvent(j);var _=x.props.onMouseLeave;oe(_)&&_(j,S)}),ae(x,"handleOuterEvent",function(S){var j=F6(S),_=ur(x.props,"".concat(j));if(j&&oe(_)){var P,N;/.*touch.*/i.test(j)?N=x.getMouseInfo(S.changedTouches[0]):N=x.getMouseInfo(S),_((P=N)!==null&&P!==void 0?P:{},S)}}),ae(x,"handleClick",function(S){var j=x.getMouseInfo(S);if(j){var _=z(z({},j),{},{isTooltipActive:!0});x.setState(_),x.triggerSyncEvent(_);var P=x.props.onClick;oe(P)&&P(_,S)}}),ae(x,"handleMouseDown",function(S){var j=x.props.onMouseDown;if(oe(j)){var _=x.getMouseInfo(S);j(_,S)}}),ae(x,"handleMouseUp",function(S){var j=x.props.onMouseUp;if(oe(j)){var _=x.getMouseInfo(S);j(_,S)}}),ae(x,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),ae(x,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&x.handleMouseDown(S.changedTouches[0])}),ae(x,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&x.handleMouseUp(S.changedTouches[0])}),ae(x,"handleDoubleClick",function(S){var j=x.props.onDoubleClick;if(oe(j)){var _=x.getMouseInfo(S);j(_,S)}}),ae(x,"handleContextMenu",function(S){var j=x.props.onContextMenu;if(oe(j)){var _=x.getMouseInfo(S);j(_,S)}}),ae(x,"triggerSyncEvent",function(S){x.props.syncId!==void 0&&gm.emit(bm,x.props.syncId,S,x.eventEmitterSymbol)}),ae(x,"applySyncEvent",function(S){var j=x.props,_=j.layout,P=j.syncMethod,N=x.state.updateId,$=S.dataStartIndex,T=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)x.setState(z({dataStartIndex:$,dataEndIndex:T},p({props:x.props,dataStartIndex:$,dataEndIndex:T,updateId:N},x.state)));else if(S.activeTooltipIndex!==void 0){var L=S.chartX,R=S.chartY,I=S.activeTooltipIndex,D=x.state,B=D.offset,C=D.tooltipTicks;if(!B)return;if(typeof P=="function")I=P(C,S);else if(P==="value"){I=-1;for(var F=0;F<C.length;F++)if(C[F].value===S.activeLabel){I=F;break}}var U=z(z({},B),{},{x:B.left,y:B.top}),V=Math.min(L,U.x+U.width),H=Math.min(R,U.y+U.height),X=C[I]&&C[I].value,ie=gg(x.state,x.props.data,I),xe=C[I]?{x:_==="horizontal"?C[I].coordinate:V,y:_==="horizontal"?H:C[I].coordinate}:vC;x.setState(z(z({},S),{},{activeLabel:X,activeCoordinate:xe,activePayload:ie,activeTooltipIndex:I}))}else x.setState(S)}),ae(x,"renderCursor",function(S){var j,_=x.state,P=_.isTooltipActive,N=_.activeCoordinate,$=_.activePayload,T=_.offset,L=_.activeTooltipIndex,R=_.tooltipAxisBandSize,I=x.getTooltipEventType(),D=(j=S.props.active)!==null&&j!==void 0?j:P,B=x.props.layout,C=S.key||"_recharts-cursor";return k.createElement(Yoe,{key:C,activeCoordinate:N,activePayload:$,activeTooltipIndex:L,chartName:r,element:S,isActive:D,layout:B,offset:T,tooltipAxisBandSize:R,tooltipEventType:I})}),ae(x,"renderPolarAxis",function(S,j,_){var P=ur(S,"type.axisType"),N=ur(x.state,"".concat(P,"Map")),$=S.type.defaultProps,T=$!==void 0?z(z({},$),S.props):S.props,L=N&&N[T["".concat(P,"Id")]];return A.cloneElement(S,z(z({},L),{},{className:fe(P,L.className),key:S.key||"".concat(j,"-").concat(_),ticks:Pn(L,!0)}))}),ae(x,"renderPolarGrid",function(S){var j=S.props,_=j.radialLines,P=j.polarAngles,N=j.polarRadius,$=x.state,T=$.radiusAxisMap,L=$.angleAxisMap,R=ei(T),I=ei(L),D=I.cx,B=I.cy,C=I.innerRadius,F=I.outerRadius;return A.cloneElement(S,{polarAngles:Array.isArray(P)?P:Pn(I,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(N)?N:Pn(R,!0).map(function(U){return U.coordinate}),cx:D,cy:B,innerRadius:C,outerRadius:F,key:S.key||"polar-grid",radialLines:_})}),ae(x,"renderLegend",function(){var S=x.state.formattedGraphicalItems,j=x.props,_=j.children,P=j.width,N=j.height,$=x.props.margin||{},T=P-($.left||0)-($.right||0),L=KE({children:_,formattedGraphicalItems:S,legendWidth:T,legendContent:u});if(!L)return null;var R=L.item,I=Dj(L,Joe);return A.cloneElement(R,z(z({},I),{},{chartWidth:P,chartHeight:N,margin:$,onBBoxUpdate:x.handleLegendBBoxUpdate}))}),ae(x,"renderTooltip",function(){var S,j=x.props,_=j.children,P=j.accessibilityLayer,N=ar(_,Wt);if(!N)return null;var $=x.state,T=$.isTooltipActive,L=$.activeCoordinate,R=$.activePayload,I=$.activeLabel,D=$.offset,B=(S=N.props.active)!==null&&S!==void 0?S:T;return A.cloneElement(N,{viewBox:z(z({},D),{},{x:D.left,y:D.top}),active:B,label:I,payload:B?R:[],coordinate:L,accessibilityLayer:P})}),ae(x,"renderBrush",function(S){var j=x.props,_=j.margin,P=j.data,N=x.state,$=N.offset,T=N.dataStartIndex,L=N.dataEndIndex,R=N.updateId;return A.cloneElement(S,{key:S.key||"_recharts-brush",onChange:Fc(x.handleBrushChange,S.props.onChange),data:P,x:q(S.props.x)?S.props.x:$.left,y:q(S.props.y)?S.props.y:$.top+$.height+$.brushBottom-(_.bottom||0),width:q(S.props.width)?S.props.width:$.width,startIndex:T,endIndex:L,updateId:"brush-".concat(R)})}),ae(x,"renderReferenceElement",function(S,j,_){if(!S)return null;var P=x,N=P.clipPathId,$=x.state,T=$.xAxisMap,L=$.yAxisMap,R=$.offset,I=S.type.defaultProps||{},D=S.props,B=D.xAxisId,C=B===void 0?I.xAxisId:B,F=D.yAxisId,U=F===void 0?I.yAxisId:F;return A.cloneElement(S,{key:S.key||"".concat(j,"-").concat(_),xAxis:T[C],yAxis:L[U],viewBox:{x:R.left,y:R.top,width:R.width,height:R.height},clipPathId:N})}),ae(x,"renderActivePoints",function(S){var j=S.item,_=S.activePoint,P=S.basePoint,N=S.childIndex,$=S.isRange,T=[],L=j.props.key,R=j.item.type.defaultProps!==void 0?z(z({},j.item.type.defaultProps),j.item.props):j.item.props,I=R.activeDot,D=R.dataKey,B=z(z({index:N,dataKey:D,cx:_.x,cy:_.y,r:4,fill:Eb(j.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},ne(I,!1)),Hf(I));return T.push(g.renderActiveDot(I,B,"".concat(L,"-activePoint-").concat(N))),P?T.push(g.renderActiveDot(I,z(z({},B),{},{cx:P.x,cy:P.y}),"".concat(L,"-basePoint-").concat(N))):$&&T.push(null),T}),ae(x,"renderGraphicChild",function(S,j,_){var P=x.filterFormatItem(S,j,_);if(!P)return null;var N=x.getTooltipEventType(),$=x.state,T=$.isTooltipActive,L=$.tooltipAxis,R=$.activeTooltipIndex,I=$.activeLabel,D=x.props.children,B=ar(D,Wt),C=P.props,F=C.points,U=C.isRange,V=C.baseLine,H=P.item.type.defaultProps!==void 0?z(z({},P.item.type.defaultProps),P.item.props):P.item.props,X=H.activeDot,ie=H.hide,xe=H.activeBar,ze=H.activeShape,Se=!!(!ie&&T&&B&&(X||xe||ze)),gt={};N!=="axis"&&B&&B.props.trigger==="click"?gt={onClick:Fc(x.handleItemMouseEnter,S.props.onClick)}:N!=="axis"&&(gt={onMouseLeave:Fc(x.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:Fc(x.handleItemMouseEnter,S.props.onMouseEnter)});var G=A.cloneElement(S,z(z({},P.props),gt));function le(Wi){return typeof L.dataKey=="function"?L.dataKey(Wi.payload):null}if(Se)if(R>=0){var ue,W;if(L.dataKey&&!L.allowDuplicatedCategory){var qe=typeof L.dataKey=="function"?le:"payload.".concat(L.dataKey.toString());ue=Wf(F,qe,I),W=U&&V&&Wf(V,qe,I)}else ue=F==null?void 0:F[R],W=U&&V&&V[R];if(ze||xe){var ge=S.props.activeIndex!==void 0?S.props.activeIndex:R;return[A.cloneElement(S,z(z(z({},P.props),gt),{},{activeIndex:ge})),null,null]}if(!ce(ue))return[G].concat(Ss(x.renderActivePoints({item:P,activePoint:ue,basePoint:W,childIndex:R,isRange:U})))}else{var tt,rt=(tt=x.getItemByXY(x.state.activeCoordinate))!==null&&tt!==void 0?tt:{graphicalItem:G},Ft=rt.graphicalItem,Hn=Ft.item,Qa=Hn===void 0?S:Hn,sc=Ft.childIndex,Ui=z(z(z({},P.props),gt),{},{activeIndex:sc});return[A.cloneElement(Qa,Ui),null,null]}return U?[G,null,null]:[G,null]}),ae(x,"renderCustomized",function(S,j,_){return A.cloneElement(S,z(z({key:"recharts-customized-".concat(_)},x.props),x.state))}),ae(x,"renderMap",{CartesianGrid:{handler:qc,once:!0},ReferenceArea:{handler:x.renderReferenceElement},ReferenceLine:{handler:qc},ReferenceDot:{handler:x.renderReferenceElement},XAxis:{handler:qc},YAxis:{handler:qc},Brush:{handler:x.renderBrush,once:!0},Bar:{handler:x.renderGraphicChild},Line:{handler:x.renderGraphicChild},Area:{handler:x.renderGraphicChild},Radar:{handler:x.renderGraphicChild},RadialBar:{handler:x.renderGraphicChild},Scatter:{handler:x.renderGraphicChild},Pie:{handler:x.renderGraphicChild},Funnel:{handler:x.renderGraphicChild},Tooltip:{handler:x.renderCursor,once:!0},PolarGrid:{handler:x.renderPolarGrid,once:!0},PolarAngleAxis:{handler:x.renderPolarAxis},PolarRadiusAxis:{handler:x.renderPolarAxis},Customized:{handler:x.renderCustomized}}),x.clipPathId="".concat((w=b.id)!==null&&w!==void 0?w:Ds("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=Kk(x.triggeredAfterMouseMove,(O=b.throttleDelay)!==null&&O!==void 0?O:1e3/60),x.state={},x}return cse(g,v),ose(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,x=w.data,S=w.height,j=w.layout,_=ar(O,Wt);if(_){var P=_.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,$=gg(this.state,x,P,N),T=this.state.tooltipTicks[P].coordinate,L=(this.state.offset.top+S)/2,R=j==="horizontal",I=R?{x:T,y:L}:{y:T,x:L},D=this.state.formattedGraphicalItems.find(function(C){var F=C.item;return F.type.name==="Scatter"});D&&(I=z(z({},I),D.props.points[P].tooltipPosition),$=D.props.points[P].tooltipPayload);var B={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:N,activePayload:$,activeCoordinate:I};this.setState(B),this.renderCursor(_),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var x,S;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(w){Gy([ar(w.children,Wt)],[ar(this.props.children,Wt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ar(this.props.children,Wt);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return s.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,x=O.getBoundingClientRect(),S=hV(x),j={chartX:Math.round(w.pageX-S.left),chartY:Math.round(w.pageY-S.top)},_=x.width/O.offsetWidth||1,P=this.inRange(j.chartX,j.chartY,_);if(!P)return null;var N=this.state,$=N.xAxisMap,T=N.yAxisMap,L=this.getTooltipEventType(),R=zj(this.state,this.props.data,this.props.layout,P);if(L!=="axis"&&$&&T){var I=ei($).scale,D=ei(T).scale,B=I&&I.invert?I.invert(j.chartX):null,C=D&&D.invert?D.invert(j.chartY):null;return z(z({},j),{},{xValue:B,yValue:C},R)}return R?z(z({},j),R):null}},{key:"inRange",value:function(w,O){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,j=w/x,_=O/x;if(S==="horizontal"||S==="vertical"){var P=this.state.offset,N=j>=P.left&&j<=P.left+P.width&&_>=P.top&&_<=P.top+P.height;return N?{x:j,y:_}:null}var $=this.state,T=$.angleAxisMap,L=$.radiusAxisMap;if(T&&L){var R=ei(T);return pO({x:j,y:_},R)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),x=ar(w,Wt),S={};x&&O==="axis"&&(x.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var j=Hf(this.props,this.handleOuterEvent);return z(z({},j),S)}},{key:"addListener",value:function(){gm.on(bm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){gm.removeListener(bm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,x){for(var S=this.state.formattedGraphicalItems,j=0,_=S.length;j<_;j++){var P=S[j];if(P.item===w||P.props.key===w.key||O===kn(P.item.type)&&x===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,x=O.left,S=O.top,j=O.height,_=O.width;return k.createElement("defs",null,k.createElement("clipPath",{id:w},k.createElement("rect",{x,y:S,height:j,width:_})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,x){var S=Rj(x,2),j=S[0],_=S[1];return z(z({},O),{},ae({},j,_.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,x){var S=Rj(x,2),j=S[0],_=S[1];return z(z({},O),{},ae({},j,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,x=O.formattedGraphicalItems,S=O.activeItem;if(x&&x.length)for(var j=0,_=x.length;j<_;j++){var P=x[j],N=P.props,$=P.item,T=$.type.defaultProps!==void 0?z(z({},$.type.defaultProps),$.props):$.props,L=kn($.type);if(L==="Bar"){var R=(N.data||[]).find(function(C){return Zee(w,C)});if(R)return{graphicalItem:P,payload:R}}else if(L==="RadialBar"){var I=(N.data||[]).find(function(C){return pO(w,C)});if(I)return{graphicalItem:P,payload:I}}else if(np(P,S)||ip(P,S)||Cu(P,S)){var D=Bre({graphicalItem:P,activeTooltipItem:S,itemData:T.data}),B=T.activeIndex===void 0?D:T.activeIndex;return{graphicalItem:z(z({},P),{},{childIndex:B}),payload:Cu(P,S)?T.data[D]:P.props.data[D]}}}return null}},{key:"render",value:function(){var w=this;if(!iw(this))return null;var O=this.props,x=O.children,S=O.className,j=O.width,_=O.height,P=O.style,N=O.compact,$=O.title,T=O.desc,L=Dj(O,Zoe),R=ne(L,!1);if(N)return k.createElement(bj,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},k.createElement(Qy,bo({},R,{width:j,height:_,title:$,desc:T}),this.renderClipPath(),ow(x,this.renderMap)));if(this.props.accessibilityLayer){var I,D;R.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,R.role=(D=this.props.role)!==null&&D!==void 0?D:"application",R.onKeyDown=function(C){w.accessibilityManager.keyboardEvent(C)},R.onFocus=function(){w.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return k.createElement(bj,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},k.createElement("div",bo({className:fe("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:j,height:_},P)},B,{ref:function(F){w.container=F}}),k.createElement(Qy,bo({},R,{width:j,height:_,title:$,desc:T,style:yse}),this.renderClipPath(),ow(x,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(A.Component);ae(m,"displayName",r),ae(m,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),ae(m,"getDerivedStateFromProps",function(v,g){var b=v.dataKey,w=v.data,O=v.children,x=v.width,S=v.height,j=v.layout,_=v.stackOffset,P=v.margin,N=g.dataStartIndex,$=g.dataEndIndex;if(g.updateId===void 0){var T=Fj(v);return z(z(z({},T),{},{updateId:0},p(z(z({props:v},T),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:w,prevWidth:x,prevHeight:S,prevLayout:j,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(b!==g.prevDataKey||w!==g.prevData||x!==g.prevWidth||S!==g.prevHeight||j!==g.prevLayout||_!==g.prevStackOffset||!Po(P,g.prevMargin)){var L=Fj(v),R={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},I=z(z({},zj(g,w,j)),{},{updateId:g.updateId+1}),D=z(z(z({},L),R),I);return z(z(z({},D),p(z({props:v},D),g)),{},{prevDataKey:b,prevData:w,prevWidth:x,prevHeight:S,prevLayout:j,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(!Gy(O,g.prevChildren)){var B,C,F,U,V=ar(O,ds),H=V&&(B=(C=V.props)===null||C===void 0?void 0:C.startIndex)!==null&&B!==void 0?B:N,X=V&&(F=(U=V.props)===null||U===void 0?void 0:U.endIndex)!==null&&F!==void 0?F:$,ie=H!==N||X!==$,xe=!ce(w),ze=xe&&!ie?g.updateId:g.updateId+1;return z(z({updateId:ze},p(z(z({props:v},g),{},{updateId:ze,dataStartIndex:H,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:H,dataEndIndex:X})}return null}),ae(m,"renderActiveDot",function(v,g,b){var w;return A.isValidElement(v)?w=A.cloneElement(v,g):oe(v)?w=v(g):w=k.createElement(Jh,g),k.createElement(ve,{className:"recharts-active-dot",key:b},w)});var y=A.forwardRef(function(g,b){return k.createElement(m,bo({},g,{ref:b}))});return y.displayName=m.displayName,y},bC=Fb({chartName:"BarChart",GraphicalChild:Bi,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ni},{axisType:"yAxis",AxisComp:Ci}],formatAxisMap:IN}),Pse=Fb({chartName:"PieChart",GraphicalChild:Wn,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:rp},{axisType:"radiusAxis",AxisComp:ep}],formatAxisMap:uJ,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),xC=Fb({chartName:"AreaChart",GraphicalChild:ln,axisComponents:[{axisType:"xAxis",AxisComp:Ni},{axisType:"yAxis",AxisComp:Ci}],formatAxisMap:IN});const Uj=["#6366f1","#22c55e","#f59e0b","#ef4444","#8b5cf6","#06b6d4"],Ase=()=>d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx("div",{className:"skeleton h-3 w-20"}),d.jsx("div",{className:"skeleton h-8 w-16"})]}),d.jsx("div",{className:"skeleton h-10 w-10 rounded-lg"})]})}),wm=()=>d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("div",{className:"skeleton h-4 w-32"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"skeleton h-56 w-full rounded-lg"})})]}),Sm=({active:e,payload:t,label:r})=>!e||!t?null:d.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 shadow-xl text-xs",children:[d.jsx("p",{className:"text-gray-400 mb-1",children:r}),t.map((n,i)=>d.jsxs("p",{className:"text-white font-medium",children:[d.jsx("span",{className:"inline-block w-2 h-2 rounded-full mr-1.5",style:{backgroundColor:n.color}}),n.name,": ",n.value]},i))]});function kse(){const{currentOrg:e}=er(),{data:t,isLoading:r}=ki({queryKey:["issues-stats",e==null?void 0:e.id],queryFn:()=>Al.stats(e.id),enabled:!!e}),{data:n,isLoading:i}=ki({queryKey:["report-summary",e==null?void 0:e.id],queryFn:()=>Fy.summary(e.id,14),enabled:!!e});if(!e)return d.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:d.jsxs("div",{className:"text-center max-w-md",children:[d.jsx("div",{className:"w-16 h-16 rounded-2xl bg-indigo-600/10 flex items-center justify-center mx-auto mb-4",children:d.jsx($a,{size:28,className:"text-indigo-400"})}),d.jsx("h2",{className:"text-xl font-semibold text-white mb-2",children:"Select an organization"}),d.jsx("p",{className:"text-gray-400 text-sm",children:"Choose an organization from the sidebar to view your dashboard and manage issues."})]})});const a=(t==null?void 0:t.data)||{},o=(n==null?void 0:n.data)||{},s=r||i,l=[{label:"Total Issues",value:a.total||0,icon:$0,color:"text-blue-400",bg:"bg-blue-500/10",trend:"+12%",up:!0},{label:"Analyzed",value:a.analyzed||0,icon:Ei,color:"text-emerald-400",bg:"bg-emerald-500/10",trend:"+8%",up:!0},{label:"PRs Created",value:a.pr_created||0,icon:yh,color:"text-purple-400",bg:"bg-purple-500/10",trend:"+15%",up:!0},{label:"Avg Confidence",value:a.avg_confidence?`${(a.avg_confidence*100).toFixed(0)}%`:"N/A",icon:jD,color:"text-amber-400",bg:"bg-amber-500/10",trend:"+3%",up:!0}],u=[{name:"Pending",value:a.pending||0},{name:"Analyzing",value:a.analyzing||0},{name:"Analyzed",value:a.analyzed||0},{name:"PR Created",value:a.pr_created||0},{name:"Error",value:a.error||0}].filter(c=>c.value>0),f=Object.entries(a.by_source||{}).map(([c,h])=>({name:c.replace("_"," ").replace(/\b\w/g,p=>p.toUpperCase()),value:h}));return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Dashboard"}),d.jsx("p",{className:"page-subtitle",children:"Overview of your issue analysis pipeline"})]}),d.jsx("div",{className:"flex items-center gap-2",children:d.jsxs("span",{className:"badge badge-green",children:[d.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"System operational"]})})]}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:s?Array(4).fill(0).map((c,h)=>d.jsx(Ase,{},h)):l.map(c=>{const h=c.icon;return d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:c.label}),d.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:c.value}),d.jsxs("div",{className:ye("flex items-center gap-1 mt-1.5 text-xs font-medium",c.up?"text-emerald-400":"text-red-400"),children:[c.up?d.jsx(TD,{size:12}):d.jsx(ND,{size:12}),c.trend,d.jsx("span",{className:"text-gray-500 font-normal ml-0.5",children:"vs last week"})]})]}),d.jsx("div",{className:ye("w-11 h-11 rounded-xl flex items-center justify-center",c.bg),children:d.jsx(h,{size:20,className:c.color})})]})},c.label)})}),d.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6",children:s?d.jsxs(d.Fragment,{children:[d.jsx(wm,{}),d.jsx(wm,{})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card",children:[d.jsxs("div",{className:"card-header",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Issues Trend"}),d.jsx("span",{className:"badge badge-gray text-[10px]",children:"Last 14 days"})]}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-56",children:d.jsx(kl,{width:"100%",height:"100%",children:d.jsxs(xC,{data:o.daily_breakdown||[],children:[d.jsxs("defs",{children:[d.jsxs("linearGradient",{id:"colorTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),d.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]}),d.jsxs("linearGradient",{id:"colorAnalyzed",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"5%",stopColor:"#22c55e",stopOpacity:.3}),d.jsx("stop",{offset:"95%",stopColor:"#22c55e",stopOpacity:0})]})]}),d.jsx(Ru,{strokeDasharray:"3 3",stroke:"#1e1e2a"}),d.jsx(Ni,{dataKey:"date",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(Sm,{})}),d.jsx(ln,{type:"monotone",dataKey:"total",stroke:"#6366f1",fill:"url(#colorTotal)",strokeWidth:2,name:"Total"}),d.jsx(ln,{type:"monotone",dataKey:"analyzed",stroke:"#22c55e",fill:"url(#colorAnalyzed)",strokeWidth:2,name:"Analyzed"})]})})})})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Status Distribution"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-56 flex items-center",children:u.length>0?d.jsx(kl,{width:"100%",height:"100%",children:d.jsxs(Pse,{children:[d.jsx(Wn,{data:u,cx:"50%",cy:"50%",innerRadius:55,outerRadius:80,paddingAngle:4,dataKey:"value",label:({name:c,percent:h})=>`${c} ${(h*100).toFixed(0)}%`,children:u.map((c,h)=>d.jsx(Fh,{fill:Uj[h%Uj.length]},c.name))}),d.jsx(Wt,{content:d.jsx(Sm,{})})]})}):d.jsxs("div",{className:"w-full text-center",children:[d.jsx(tu,{size:24,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No data yet"})]})})})]})]})}),s?d.jsx(wm,{}):d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Issues by Source"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-56",children:f.length>0?d.jsx(kl,{width:"100%",height:"100%",children:d.jsxs(bC,{data:f,layout:"vertical",children:[d.jsx(Ru,{strokeDasharray:"3 3",stroke:"#1e1e2a",horizontal:!1}),d.jsx(Ni,{type:"number",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{type:"category",dataKey:"name",tick:{fill:"#8888a0",fontSize:12},width:100,tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(Sm,{})}),d.jsx(Bi,{dataKey:"value",fill:"#6366f1",radius:[0,6,6,0],barSize:24,name:"Issues"})]})}):d.jsx("div",{className:"h-full flex items-center justify-center",children:d.jsxs("div",{className:"text-center",children:[d.jsx(tu,{size:24,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No data yet"}),d.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"Connect an integration to start tracking"})]})})})})]})]})}const Kc={pending:{badge:"badge-yellow",icon:mh,label:"Pending"},analyzing:{badge:"badge-blue",icon:Zt,label:"Analyzing"},analyzed:{badge:"badge-green",icon:Ei,label:"Analyzed"},pr_created:{badge:"badge-purple",icon:yh,label:"PR Created"},completed:{badge:"badge-gray",icon:Ei,label:"Completed"},error:{badge:"badge-red",icon:T0,label:"Error"}},Wj={critical:{badge:"badge-red",label:"Critical"},high:{badge:"badge-yellow",label:"High"},medium:{badge:"badge-blue",label:"Medium"},low:{badge:"badge-green",label:"Low"}},Ese={jira_cloud:"🔵",servicenow:"⚙️",zendesk:"💚",github:"🐙",gitlab:"🦊",tickethub:"🎫",generic:"📝"},Nse=()=>d.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[d.jsx("div",{className:"skeleton h-4 w-20"}),d.jsxs("div",{className:"flex-1 space-y-1.5",children:[d.jsx("div",{className:"skeleton h-4 w-3/4"}),d.jsx("div",{className:"skeleton h-3 w-1/4"})]}),d.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]});function Cse(){var c,h;const{currentOrg:e}=er(),[t,r]=A.useState({status:"",source:""}),[n,i]=A.useState(""),[a,o]=A.useState(!1),{data:s,isLoading:l}=ki({queryKey:["issues",e==null?void 0:e.id,t],queryFn:()=>Al.list(e.id,t),enabled:!!e});if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const u=((s==null?void 0:s.data)||[]).filter(p=>{var m,y;return!n||((m=p.title)==null?void 0:m.toLowerCase().includes(n.toLowerCase()))||((y=p.external_key)==null?void 0:y.toLowerCase().includes(n.toLowerCase()))}),f={};return((s==null?void 0:s.data)||[]).forEach(p=>{f[p.status]=(f[p.status]||0)+1}),d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Issues"}),d.jsxs("p",{className:"page-subtitle",children:[((c=s==null?void 0:s.data)==null?void 0:c.length)||0," total issues"]})]}),d.jsxs("button",{className:"btn btn-primary",children:[d.jsx(Ma,{size:16}),"New Issue"]})]}),d.jsxs("div",{className:"flex items-center gap-1 mb-4 overflow-x-auto pb-1",children:[d.jsxs("button",{onClick:()=>r({...t,status:""}),className:ye("badge cursor-pointer transition-all",t.status?"badge-gray hover:bg-gray-700/50":"badge-indigo"),children:["All ",((h=s==null?void 0:s.data)==null?void 0:h.length)||0]}),Object.entries(Kc).map(([p,m])=>{const y=f[p]||0;return!y&&p!=="pending"?null:d.jsxs("button",{onClick:()=>r({...t,status:t.status===p?"":p}),className:ye("badge cursor-pointer transition-all",t.status===p?m.badge:"badge-gray hover:bg-gray-700/50"),children:[m.label," ",y]},p)})]}),d.jsxs("div",{className:"card mb-4",children:[d.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[d.jsx(cf,{size:16,className:"text-gray-500"}),d.jsx("input",{value:n,onChange:p=>i(p.target.value),placeholder:"Search issues by title or key...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),d.jsxs("button",{onClick:()=>o(!a),className:ye("btn btn-sm btn-ghost",a&&"text-indigo-400"),children:[d.jsx(xD,{size:14}),"Filters"]})]}),a&&d.jsxs("div",{className:"px-4 py-3 border-t border-gray-800/50 flex items-center gap-3 animate-slide-up",children:[d.jsxs("select",{value:t.status,onChange:p=>r({...t,status:p.target.value}),className:"input-sm input w-36",children:[d.jsx("option",{value:"",children:"All Status"}),Object.entries(Kc).map(([p,m])=>d.jsx("option",{value:p,children:m.label},p))]}),d.jsxs("select",{value:t.source,onChange:p=>r({...t,source:p.target.value}),className:"input-sm input w-36",children:[d.jsx("option",{value:"",children:"All Sources"}),d.jsx("option",{value:"jira_cloud",children:"JIRA"}),d.jsx("option",{value:"servicenow",children:"ServiceNow"}),d.jsx("option",{value:"zendesk",children:"Zendesk"}),d.jsx("option",{value:"github",children:"GitHub"}),d.jsx("option",{value:"gitlab",children:"GitLab"}),d.jsx("option",{value:"tickethub",children:"TicketHub"})]}),(t.status||t.source)&&d.jsx("button",{onClick:()=>r({status:"",source:""}),className:"btn btn-sm btn-ghost text-red-400",children:"Clear"})]})]}),d.jsxs("div",{className:"card overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[d.jsx("div",{className:"w-24",children:"Key"}),d.jsx("div",{className:"flex-1",children:"Title"}),d.jsx("div",{className:"w-24",children:"Status"}),d.jsx("div",{className:"w-20",children:"Priority"}),d.jsx("div",{className:"w-20",children:"Confidence"}),d.jsx("div",{className:"w-8"})]}),l?Array(5).fill(0).map((p,m)=>d.jsx(Nse,{},m)):u.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[d.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:d.jsx($0,{size:24,className:"text-gray-600"})}),d.jsx("p",{className:"text-gray-400 font-medium",children:"No issues found"}),d.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Issues from your integrations will appear here"})]}):u.map(p=>{var g;const m=Kc[p.status]||Kc.pending,y=Wj[p.priority]||Wj.medium,v=m.icon;return d.jsxs(Ea,{to:`/issues/${p.id}`,className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[d.jsx("div",{className:"w-24",children:d.jsx("span",{className:"font-mono text-xs text-indigo-400",children:p.external_key||`#${p.id}`})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium truncate group-hover:text-white transition-colors",children:p.title}),d.jsx("p",{className:"text-xs text-gray-500 mt-0.5 flex items-center gap-2",children:d.jsxs("span",{children:[Ese[p.source]||"📝"," ",(g=p.source)==null?void 0:g.replace("_"," ")]})})]}),d.jsx("div",{className:"w-24",children:d.jsxs("span",{className:ye("badge text-[10px]",m.badge),children:[d.jsx(v,{size:10,className:p.status==="analyzing"?"animate-spin":""}),m.label]})}),d.jsx("div",{className:"w-20",children:d.jsx("span",{className:ye("badge text-[10px]",y.badge),children:y.label})}),d.jsx("div",{className:"w-20",children:p.confidence?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"flex-1 bg-gray-800 rounded-full h-1.5",children:d.jsx("div",{className:"bg-indigo-500 h-1.5 rounded-full transition-all",style:{width:`${p.confidence*100}%`}})}),d.jsxs("span",{className:"text-[10px] text-gray-400 font-mono w-7 text-right",children:[(p.confidence*100).toFixed(0),"%"]})]}):d.jsx("span",{className:"text-xs text-gray-600",children:"—"})}),d.jsx("div",{className:"w-8",children:d.jsx(Uy,{size:14,className:"text-gray-600 group-hover:text-gray-400 transition-colors"})})]},p.id)})]})]})}const Hj={pending:{badge:"badge-yellow",icon:mh,label:"Pending"},analyzing:{badge:"badge-blue",icon:Zt,label:"Analyzing"},analyzed:{badge:"badge-green",icon:Ei,label:"Analyzed"},pr_created:{badge:"badge-purple",icon:yh,label:"PR Created"},completed:{badge:"badge-gray",icon:Ei,label:"Completed"},error:{badge:"badge-red",icon:T0,label:"Error"}},Tse=()=>d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsx("div",{className:"skeleton h-4 w-24 mb-6"}),d.jsxs("div",{className:"flex items-start justify-between mb-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"skeleton h-6 w-20"}),d.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]}),d.jsx("div",{className:"skeleton h-7 w-96"}),d.jsx("div",{className:"skeleton h-4 w-48"})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("div",{className:"skeleton h-9 w-28 rounded-lg"}),d.jsx("div",{className:"skeleton h-9 w-28 rounded-lg"})]})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[d.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-32 w-full rounded-lg"})}),d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-48 w-full rounded-lg"})})]}),d.jsxs("div",{className:"space-y-5",children:[d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-24 w-full rounded-lg"})}),d.jsx("div",{className:"card card-body",children:d.jsx("div",{className:"skeleton h-32 w-full rounded-lg"})})]})]})]});function $se(){var O,x,S,j;const{id:e}=AM(),{currentOrg:t}=er(),r=lh(),[n,i]=A.useState("analysis"),[a,o]=A.useState(""),[s,l]=A.useState(!1),{data:u,isLoading:f}=ki({queryKey:["issue",t==null?void 0:t.id,e],queryFn:()=>Al.get(t.id,e),enabled:!!t}),c=Pl({mutationFn:()=>Al.reanalyze(t.id,e),onSuccess:()=>r.invalidateQueries(["issue",t==null?void 0:t.id,e])}),h=Pl({mutationFn:_=>Al.addComment(t.id,e,{content:_}),onSuccess:()=>{r.invalidateQueries(["issue",t==null?void 0:t.id,e]),o("")}}),p=_=>{navigator.clipboard.writeText(_),l(!0),setTimeout(()=>l(!1),2e3)};if(!t)return null;if(f)return d.jsx(Tse,{});const m=u==null?void 0:u.data;if(!m)return d.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[d.jsx(tu,{size:40,className:"text-gray-600 mb-3"}),d.jsx("p",{className:"text-gray-400 font-medium",children:"Issue not found"}),d.jsx(Ea,{to:"/issues",className:"text-indigo-400 text-sm mt-2 hover:underline",children:"← Back to Issues"})]});const y=Hj[m.status]||Hj.pending,v=y.icon,g=m.confidence?(m.confidence*100).toFixed(0):null,b=m.confidence>.8?"text-emerald-400":m.confidence>.5?"text-amber-400":"text-red-400",w=[{id:"analysis",label:"Analysis",icon:Bf},{id:"code",label:"Suggested Fix",icon:Wy},{id:"comments",label:"Comments",icon:nD}];return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs(Ea,{to:"/issues",className:"inline-flex items-center gap-1.5 text-sm text-gray-400 hover:text-white transition-colors mb-5",children:[d.jsx(c4,{size:14}),"Back to Issues"]}),d.jsxs("div",{className:"flex items-start justify-between mb-6",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[d.jsx("span",{className:"font-mono text-lg text-indigo-400 font-semibold",children:m.external_key||`#${m.id}`}),d.jsxs("span",{className:ye("badge",y.badge),children:[d.jsx(v,{size:12,className:m.status==="analyzing"?"animate-spin":""}),y.label]}),m.priority&&d.jsx("span",{className:ye("badge",m.priority==="critical"?"badge-red":m.priority==="high"?"badge-yellow":m.priority==="medium"?"badge-blue":"badge-green"),children:m.priority})]}),d.jsx("h1",{className:"text-xl font-semibold text-white",children:m.title}),d.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-gray-500",children:[d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx(y4,{size:12})," ",new Date(m.created_at).toLocaleDateString()]}),d.jsxs("span",{children:["Source: ",(O=m.source)==null?void 0:O.replace("_"," ")]})]})]}),d.jsxs("div",{className:"flex gap-2",children:[m.external_url&&d.jsxs("a",{href:m.external_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-secondary btn-sm",children:[d.jsx(U1,{size:14}),"Original"]}),d.jsxs("button",{onClick:()=>c.mutate(),disabled:c.isPending,className:"btn btn-primary btn-sm",children:[c.isPending?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(A2,{size:14}),"Re-analyze"]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[d.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(L4,{size:14,className:"text-gray-500"}),"Description"]})}),d.jsx("div",{className:"card-body",children:d.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:m.description||"No description provided."})})]}),d.jsxs("div",{className:"card overflow-hidden",children:[d.jsx("div",{className:"flex items-center gap-0 border-b border-gray-800/50 px-1",children:w.map(_=>{const P=_.icon;return d.jsxs("button",{onClick:()=>i(_.id),className:ye("flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-all -mb-px",n===_.id?"border-indigo-500 text-indigo-400":"border-transparent text-gray-500 hover:text-gray-300"),children:[d.jsx(P,{size:14}),_.label]},_.id)})}),d.jsxs("div",{className:"card-body",children:[n==="analysis"&&d.jsx("div",{className:"space-y-4 animate-fade-in",children:m.root_cause?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"p-4 rounded-lg bg-emerald-500/5 border border-emerald-500/10",children:[d.jsxs("h4",{className:"text-sm font-semibold text-emerald-400 mb-2 flex items-center gap-2",children:[d.jsx(G4,{size:14}),"Root Cause Analysis"]}),d.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:m.root_cause})]}),((x=m.affected_files)==null?void 0:x.length)>0&&d.jsxs("div",{children:[d.jsxs("h4",{className:"text-sm font-semibold text-gray-300 mb-2 flex items-center gap-2",children:[d.jsx(F4,{size:14,className:"text-gray-500"}),"Affected Files"]}),d.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.affected_files.map(_=>d.jsx("span",{className:"badge badge-gray font-mono text-[11px]",children:_},_))})]})]}):d.jsxs("div",{className:"text-center py-8",children:[d.jsx(Bf,{size:28,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No analysis available yet"}),d.jsx("p",{className:"text-gray-600 text-xs mt-1",children:'Click "Re-analyze" to start AI analysis'})]})}),n==="code"&&d.jsx("div",{className:"animate-fade-in",children:m.suggested_fix?d.jsxs("div",{className:"relative",children:[d.jsx("button",{onClick:()=>p(m.suggested_fix),className:"absolute top-2 right-2 btn btn-ghost btn-sm text-gray-500",children:s?d.jsx(C0,{size:14,className:"text-emerald-400"}):d.jsx(Hy,{size:14})}),d.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-mono bg-gray-950 p-4 rounded-lg border border-gray-800 overflow-x-auto leading-relaxed",children:m.suggested_fix})]}):d.jsxs("div",{className:"text-center py-8",children:[d.jsx(Wy,{size:28,className:"text-gray-600 mx-auto mb-2"}),d.jsx("p",{className:"text-gray-500 text-sm",children:"No suggested fix available"})]})}),n==="comments"&&d.jsxs("div",{className:"space-y-4 animate-fade-in",children:[((S=m.comments)==null?void 0:S.length)>0?m.comments.map((_,P)=>{var N,$;return d.jsxs("div",{className:"flex gap-3",children:[d.jsx("div",{className:"w-7 h-7 rounded-lg bg-gray-800 flex items-center justify-center flex-shrink-0 text-xs font-medium text-gray-400",children:(($=(N=_.author)==null?void 0:N[0])==null?void 0:$.toUpperCase())||"?"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx("span",{className:"text-sm font-medium text-gray-300",children:_.author||"System"}),d.jsx("span",{className:"text-xs text-gray-600",children:new Date(_.created_at).toLocaleString()})]}),d.jsx("p",{className:"text-sm text-gray-400",children:_.content})]})]},P)}):d.jsx("p",{className:"text-sm text-gray-500 text-center py-4",children:"No comments yet"}),d.jsxs("div",{className:"flex items-center gap-2 pt-3 border-t border-gray-800/50",children:[d.jsx("input",{value:a,onChange:_=>o(_.target.value),placeholder:"Add a comment...",className:"input flex-1",onKeyDown:_=>_.key==="Enter"&&a.trim()&&h.mutate(a)}),d.jsx("button",{onClick:()=>a.trim()&&h.mutate(a),disabled:!a.trim()||h.isPending,className:"btn btn-primary btn-sm",children:h.isPending?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(pD,{size:14})})]})]})]})]})]}),d.jsxs("div",{className:"space-y-5",children:[g&&d.jsxs("div",{className:"card card-body text-center",children:[d.jsxs("div",{className:"relative w-24 h-24 mx-auto mb-3",children:[d.jsxs("svg",{className:"w-full h-full -rotate-90",viewBox:"0 0 36 36",children:[d.jsx("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:"#1e1e2a",strokeWidth:"2.5"}),d.jsx("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:"currentColor",className:b,strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:`${m.confidence*100}, 100`})]}),d.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:d.jsxs("span",{className:ye("text-xl font-bold",b),children:[g,"%"]})})]}),d.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:"AI Confidence"})]}),m.pr_url&&d.jsxs("div",{className:"card overflow-hidden",children:[d.jsx("div",{className:"card-header bg-purple-500/5",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2 text-purple-400",children:[d.jsx(yh,{size:14}),"Pull Request"]})}),d.jsxs("div",{className:"card-body space-y-3",children:[m.pr_branch&&d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Branch"}),d.jsx("span",{className:"badge badge-gray font-mono text-[11px]",children:m.pr_branch})]}),d.jsxs("a",{href:m.pr_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-primary w-full btn-sm",children:[d.jsx(U1,{size:14}),"View Pull Request"]})]})]}),((j=m.labels)==null?void 0:j.length)>0&&d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(SD,{size:14,className:"text-gray-500"}),"Labels"]})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.labels.map(_=>d.jsx("span",{className:"badge badge-indigo",children:_},_))})})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(mh,{size:14,className:"text-gray-500"}),"Timeline"]})}),d.jsxs("div",{className:"card-body space-y-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-indigo-500"}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"Created"}),d.jsx("p",{className:"text-sm",children:new Date(m.created_at).toLocaleString()})]})]}),m.analysis_completed_at&&d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500"}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"Analyzed"}),d.jsx("p",{className:"text-sm",children:new Date(m.analysis_completed_at).toLocaleString()})]})]}),m.pr_url&&d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-2 h-2 rounded-full bg-purple-500"}),d.jsxs("div",{className:"flex-1",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"PR Created"}),d.jsx("p",{className:"text-sm",children:"Pull request generated"})]})]})]})]})]})]})]})}const Vr={tickethub:{name:"TicketHub",color:"from-indigo-600 to-indigo-700",icon:d.jsx(H1,{size:18}),desc:"Internal ticket management system",fields:[{id:"base_url",label:"TicketHub URL",placeholder:"https://tickethub.example.com",type:"url"},{id:"api_key",label:"API Key",placeholder:"Your TicketHub API key",type:"password"},{id:"webhook_secret",label:"Webhook Secret",placeholder:"Shared secret for webhook validation",type:"password"}]},gitea:{name:"Gitea",color:"from-green-600 to-green-700",icon:d.jsx(Hp,{size:18}),desc:"Self-hosted Git service for code repositories",fields:[{id:"base_url",label:"Gitea URL",placeholder:"https://gitea.example.com",type:"url"},{id:"api_key",label:"Access Token",placeholder:"Personal access token",type:"password"},{id:"repository",label:"Default Repository",placeholder:"owner/repo",type:"text"}]},github:{name:"GitHub",color:"from-gray-700 to-gray-800",icon:d.jsx(Hp,{size:18}),desc:"GitHub issues and repositories",fields:[{id:"api_key",label:"Personal Access Token",placeholder:"ghp_...",type:"password"},{id:"repository",label:"Repository",placeholder:"owner/repo",type:"text"}]},jira_cloud:{name:"JIRA Cloud",color:"from-blue-600 to-blue-700",icon:d.jsx(H1,{size:18}),desc:"Atlassian JIRA Cloud integration",fields:[{id:"base_url",label:"JIRA URL",placeholder:"https://your-domain.atlassian.net",type:"url"},{id:"email",label:"Email",placeholder:"your-email@company.com",type:"email"},{id:"api_key",label:"API Token",placeholder:"Your Atlassian API token",type:"password"},{id:"project_key",label:"Project Key",placeholder:"PROJ",type:"text"}]},servicenow:{name:"ServiceNow",color:"from-emerald-600 to-emerald-700",icon:d.jsx(yD,{size:18}),desc:"ServiceNow ITSM platform",fields:[{id:"base_url",label:"Instance URL",placeholder:"https://your-instance.service-now.com",type:"url"},{id:"username",label:"Username",placeholder:"admin",type:"text"},{id:"api_key",label:"Password",placeholder:"••••••••",type:"password"}]},gitlab:{name:"GitLab",color:"from-orange-600 to-orange-700",icon:d.jsx(Hp,{size:18}),desc:"GitLab issues and merge requests",fields:[{id:"base_url",label:"GitLab URL",placeholder:"https://gitlab.com",type:"url"},{id:"api_key",label:"Personal Access Token",placeholder:"glpat-...",type:"password"},{id:"project_id",label:"Project ID",placeholder:"12345",type:"text"}]}};function Mse(){const{currentOrg:e}=er(),t=lh(),[r,n]=A.useState(!1),[i,a]=A.useState(null),[o,s]=A.useState({}),[l,u]=A.useState({}),[f,c]=A.useState(null),{data:h,isLoading:p}=ki({queryKey:["integrations",e==null?void 0:e.id],queryFn:()=>Ec.list(e.id),enabled:!!e}),m=Pl({mutationFn:x=>Ec.create(e.id,x),onSuccess:()=>{t.invalidateQueries(["integrations"]),n(!1),a(null),s({})}}),y=Pl({mutationFn:x=>Ec.test(e.id,x),onSuccess:x=>c({success:!0,message:"Connection successful!"}),onError:x=>{var S,j;return c({success:!1,message:((j=(S=x.response)==null?void 0:S.data)==null?void 0:j.detail)||"Connection failed"})}}),v=Pl({mutationFn:x=>Ec.delete(e.id,x),onSuccess:()=>t.invalidateQueries(["integrations"])});if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const g=(h==null?void 0:h.data)||[],b=x=>{a(x),s({platform:x,name:Vr[x].name}),n(!0),c(null)},w=x=>{x.preventDefault();const S={...o};delete S.platform,delete S.name,delete S.base_url,m.mutate({type:o.platform,name:o.name,base_url:o.base_url||null,api_key:o.api_key||null,config:S})},O=async()=>{c(null);const j=Vr[i].fields.filter(_=>_.id==="base_url"||_.id==="api_key").filter(_=>!o[_.id]);if(j.length>0){c({success:!1,message:`Please fill in: ${j.map(_=>_.label).join(", ")}`});return}c({success:!0,message:"Configuration looks valid!"})};return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsx("div",{className:"page-header",children:d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Integrations"}),d.jsx("p",{className:"page-subtitle",children:"Connect your tools to start analyzing issues"})]})}),g.length>0&&d.jsxs("div",{className:"mb-8",children:[d.jsx("h2",{className:"text-sm font-semibold text-gray-400 uppercase tracking-wide mb-3",children:"Active Connections"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:g.map(x=>{const S=Vr[x.type]||{name:x.type,color:"from-gray-600 to-gray-700",icon:d.jsx(P2,{size:18})};return d.jsxs("div",{className:"card overflow-hidden",children:[d.jsx("div",{className:ye("h-1.5 bg-gradient-to-r",S.color)}),d.jsxs("div",{className:"p-5",children:[d.jsxs("div",{className:"flex items-start justify-between mb-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:ye("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-white",S.color),children:S.icon}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-white",children:x.name||S.name}),d.jsx("p",{className:"text-xs text-gray-500",children:S.name})]})]}),d.jsx("span",{className:ye("badge",x.is_active?"badge-green":"badge-red"),children:x.is_active?d.jsxs(d.Fragment,{children:[d.jsx(Ei,{size:10})," Active"]}):d.jsxs(d.Fragment,{children:[d.jsx(T0,{size:10})," Inactive"]})})]}),x.base_url&&d.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 font-mono mb-3",children:[d.jsx(Q4,{size:12}),d.jsx("span",{className:"truncate",children:x.base_url})]}),d.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-600 mb-3",children:[d.jsxs("span",{children:["Issues processed: ",x.issues_processed||0]}),x.last_sync_at&&d.jsxs("span",{className:"text-gray-700",children:["• Last sync: ",new Date(x.last_sync_at).toLocaleDateString()]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("button",{onClick:()=>y.mutate(x.id),disabled:y.isPending,className:"btn btn-secondary btn-sm flex-1",children:[y.isPending?d.jsx(Zt,{size:12,className:"animate-spin"}):d.jsx(W1,{size:12}),"Test"]}),d.jsxs("button",{className:"btn btn-secondary btn-sm flex-1",children:[d.jsx(k2,{size:12})," Configure"]}),d.jsx("button",{onClick:()=>v.mutate(x.id),disabled:v.isPending,className:"btn btn-danger btn-sm btn-icon",children:v.isPending?d.jsx(Zt,{size:12,className:"animate-spin"}):d.jsx(N2,{size:12})})]})]})]},x.id)})})]}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-sm font-semibold text-gray-400 uppercase tracking-wide mb-3",children:"Available Platforms"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Object.entries(Vr).map(([x,S])=>{const j=g.some(_=>_.type===x);return d.jsxs("div",{className:"card-hover p-5",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[d.jsx("div",{className:ye("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-white",S.color),children:S.icon}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold text-white",children:S.name}),d.jsx("p",{className:"text-xs text-gray-500",children:S.desc})]})]}),d.jsx("button",{onClick:()=>b(x),className:ye("btn w-full btn-sm",j?"btn-secondary":"btn-primary"),children:j?d.jsxs(d.Fragment,{children:[d.jsx(Ei,{size:14})," Connected"]}):d.jsxs(d.Fragment,{children:[d.jsx(Ma,{size:14})," Connect"]})})]},x)})})]}),r&&i&&d.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 animate-fade-in",children:d.jsxs("div",{className:"bg-gray-900 rounded-xl border border-gray-800 w-full max-w-lg mx-4 shadow-2xl",children:[d.jsx("div",{className:ye("h-1.5 rounded-t-xl bg-gradient-to-r",Vr[i].color)}),d.jsxs("div",{className:"p-6",children:[d.jsxs("div",{className:"flex items-center justify-between mb-6",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:ye("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-white",Vr[i].color),children:Vr[i].icon}),d.jsxs("div",{children:[d.jsxs("h2",{className:"text-lg font-semibold text-white",children:["Connect ",Vr[i].name]}),d.jsx("p",{className:"text-xs text-gray-500",children:Vr[i].desc})]})]}),d.jsx("button",{onClick:()=>n(!1),className:"text-gray-500 hover:text-gray-300",children:d.jsx(BD,{size:20})})]}),d.jsxs("form",{onSubmit:w,className:"space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Display Name"}),d.jsx("input",{type:"text",value:o.name||"",onChange:x=>s({...o,name:x.target.value}),className:"input",placeholder:"My Integration"})]}),Vr[i].fields.map(x=>d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:x.label}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:x.type==="password"&&!l[x.id]?"password":"text",value:o[x.id]||"",onChange:S=>s({...o,[x.id]:S.target.value}),className:ye("input",x.type==="password"&&"pr-10"),placeholder:x.placeholder}),x.type==="password"&&d.jsx("button",{type:"button",onClick:()=>u({...l,[x.id]:!l[x.id]}),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300",children:l[x.id]?d.jsx(qy,{size:14}):d.jsx(Uf,{size:14})})]})]},x.id)),f&&d.jsxs("div",{className:ye("flex items-center gap-2 p-3 rounded-lg text-sm",f.success?"bg-green-900/30 text-green-400 border border-green-800":"bg-red-900/30 text-red-400 border border-red-800"),children:[f.success?d.jsx(C0,{size:16}):d.jsx(tu,{size:16}),f.message]}),d.jsxs("div",{className:"flex gap-3 pt-4 border-t border-gray-800",children:[d.jsxs("button",{type:"button",onClick:O,className:"btn btn-secondary flex-1",children:[d.jsx(W1,{size:14})," Test Connection"]}),d.jsxs("button",{type:"submit",disabled:m.isPending,className:"btn btn-primary flex-1",children:[m.isPending?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(ec,{size:14}),"Save Integration"]})]})]})]})]})})]})}const Om={owner:{label:"Owner",badge:"badge-yellow",icon:E4},admin:{label:"Admin",badge:"badge-red",icon:E2},member:{label:"Member",badge:"badge-blue",icon:RD},viewer:{label:"Viewer",badge:"badge-gray",icon:Uf}},Ise=()=>d.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[d.jsx("div",{className:"skeleton w-9 h-9 rounded-lg"}),d.jsxs("div",{className:"flex-1 space-y-1.5",children:[d.jsx("div",{className:"skeleton h-4 w-32"}),d.jsx("div",{className:"skeleton h-3 w-48"})]}),d.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]});function Rse(){const{currentOrg:e}=er(),{data:t,isLoading:r}=ki({queryKey:["org-members",e==null?void 0:e.id],queryFn:()=>ph.members(e.id),enabled:!!e});if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const n=(t==null?void 0:t.data)||[],i={};return n.forEach(a=>{const o=a.role||"member";i[o]||(i[o]=[]),i[o].push(a)}),d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Team"}),d.jsxs("p",{className:"page-subtitle",children:[n.length," member",n.length!==1?"s":""," in ",e.name]})]}),d.jsxs("button",{className:"btn btn-primary",children:[d.jsx(Ma,{size:16})," Invite Member"]})]}),d.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:Object.entries(Om).map(([a,o])=>{var u;const s=o.icon,l=((u=i[a])==null?void 0:u.length)||0;return d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[d.jsxs("div",{children:[d.jsxs("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:[o.label,"s"]}),d.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:l})]}),d.jsx(s,{size:18,className:"text-gray-600"})]})},a)})}),d.jsxs("div",{className:"card overflow-hidden",children:[d.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[d.jsx("div",{className:"w-9"}),d.jsx("div",{className:"flex-1",children:"Member"}),d.jsx("div",{className:"w-24",children:"Role"}),d.jsx("div",{className:"w-32",children:"Joined"}),d.jsx("div",{className:"w-8"})]}),r?Array(3).fill(0).map((a,o)=>d.jsx(Ise,{},o)):n.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[d.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:d.jsx(C2,{size:24,className:"text-gray-600"})}),d.jsx("p",{className:"text-gray-400 font-medium",children:"No team members"}),d.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Invite your team to collaborate"})]}):n.map(a=>{var l,u,f,c;const o=Om[a.role]||Om.member,s=o.icon;return d.jsxs("div",{className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[d.jsx("div",{className:"w-9 h-9 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white flex-shrink-0",children:((u=(l=a.full_name)==null?void 0:l[0])==null?void 0:u.toUpperCase())||((c=(f=a.email)==null?void 0:f[0])==null?void 0:c.toUpperCase())||"?"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium text-gray-200 truncate",children:a.full_name||"Unnamed"}),d.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[d.jsx(vh,{size:10})," ",a.email]})]}),d.jsx("div",{className:"w-24",children:d.jsxs("span",{className:ye("badge text-[10px]",o.badge),children:[d.jsx(s,{size:10}),o.label]})}),d.jsx("div",{className:"w-32 text-xs text-gray-500",children:a.joined_at?new Date(a.joined_at).toLocaleDateString():"—"}),d.jsx("div",{className:"w-8",children:d.jsx("button",{className:"btn btn-ghost btn-icon opacity-0 group-hover:opacity-100",children:d.jsx($4,{size:14})})})]},a.id||a.user_id)})]})]})}const qj=({active:e,payload:t,label:r})=>!e||!t?null:d.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 shadow-xl text-xs",children:[d.jsx("p",{className:"text-gray-400 mb-1",children:r}),t.map((n,i)=>d.jsxs("p",{className:"text-white font-medium",children:[d.jsx("span",{className:"inline-block w-2 h-2 rounded-full mr-1.5",style:{backgroundColor:n.color}}),n.name,": ",n.value]},i))]});function Dse(){const{currentOrg:e}=er(),[t,r]=A.useState(30),{data:n,isLoading:i}=ki({queryKey:["report-summary",e==null?void 0:e.id,t],queryFn:()=>Fy.summary(e.id,t),enabled:!!e}),a=async()=>{try{const l=await Fy.exportCsv(e.id,t),u=URL.createObjectURL(new Blob([l.data])),f=document.createElement("a");f.href=u,f.download=`report-${e.name}-${t}days.csv`,f.click(),URL.revokeObjectURL(u)}catch(l){console.error(l)}};if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const o=(n==null?void 0:n.data)||{},s=[{label:"Total Processed",value:o.total_issues||0,icon:S2,color:"text-indigo-400",bg:"bg-indigo-500/10"},{label:"Success Rate",value:o.success_rate?`${(o.success_rate*100).toFixed(0)}%`:"N/A",icon:Ei,color:"text-emerald-400",bg:"bg-emerald-500/10"},{label:"Avg Resolution",value:o.avg_resolution_hours?`${o.avg_resolution_hours.toFixed(1)}h`:"N/A",icon:mh,color:"text-amber-400",bg:"bg-amber-500/10"},{label:"Error Rate",value:o.error_rate?`${(o.error_rate*100).toFixed(1)}%`:"0%",icon:MD,color:"text-red-400",bg:"bg-red-500/10"}];return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsxs("div",{className:"page-header",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Reports & Analytics"}),d.jsx("p",{className:"page-subtitle",children:"Performance metrics and insights"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"flex items-center gap-1 bg-gray-900 border border-gray-800 rounded-lg p-0.5",children:[7,14,30,90].map(l=>d.jsxs("button",{onClick:()=>r(l),className:ye("px-3 py-1.5 rounded-md text-xs font-medium transition-all",t===l?"bg-indigo-600 text-white":"text-gray-400 hover:text-white"),children:[l,"d"]},l))}),d.jsxs("button",{onClick:a,className:"btn btn-secondary btn-sm",children:[d.jsx(C4,{size:14})," Export CSV"]})]})]}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:s.map(l=>{const u=l.icon;return d.jsx("div",{className:"stat-card",children:d.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:l.label}),d.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:i?"—":l.value})]}),d.jsx("div",{className:ye("w-11 h-11 rounded-xl flex items-center justify-center",l.bg),children:d.jsx(u,{size:20,className:l.color})})]})},l.label)})}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Daily Volume"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-64",children:i?d.jsx("div",{className:"skeleton h-full w-full rounded-lg"}):d.jsx(kl,{width:"100%",height:"100%",children:d.jsxs(xC,{data:o.daily_breakdown||[],children:[d.jsx("defs",{children:d.jsxs("linearGradient",{id:"rptTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[d.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),d.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]})}),d.jsx(Ru,{strokeDasharray:"3 3",stroke:"#1e1e2a"}),d.jsx(Ni,{dataKey:"date",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(qj,{})}),d.jsx(ln,{type:"monotone",dataKey:"total",stroke:"#6366f1",fill:"url(#rptTotal)",strokeWidth:2,name:"Issues"})]})})})})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Resolution by Source"})}),d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"h-64",children:i?d.jsx("div",{className:"skeleton h-full w-full rounded-lg"}):d.jsx(kl,{width:"100%",height:"100%",children:d.jsxs(bC,{data:Object.entries(o.by_source||{}).map(([l,u])=>({name:l.replace("_"," ").replace(/\b\w/g,f=>f.toUpperCase()),value:u})),layout:"vertical",children:[d.jsx(Ru,{strokeDasharray:"3 3",stroke:"#1e1e2a",horizontal:!1}),d.jsx(Ni,{type:"number",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),d.jsx(Ci,{type:"category",dataKey:"name",tick:{fill:"#8888a0",fontSize:12},width:100,tickLine:!1,axisLine:!1}),d.jsx(Wt,{content:d.jsx(qj,{})}),d.jsx(Bi,{dataKey:"value",fill:"#6366f1",radius:[0,6,6,0],barSize:20,name:"Issues"})]})})})})]})]})]})}const Lse=[{id:"general",label:"General",icon:$a},{id:"ai",label:"AI Configuration",icon:Bf},{id:"notifications",label:"Notifications",icon:w2},{id:"security",label:"Security",icon:E2},{id:"api",label:"API Keys",icon:j2},{id:"webhooks",label:"Webhooks",icon:O2}],jm=[{id:"openrouter",name:"OpenRouter",baseUrl:"https://openrouter.ai/api/v1",models:[{id:"meta-llama/llama-3.3-70b-instruct",name:"Llama 3.3 70B (Free)"},{id:"anthropic/claude-3.5-sonnet",name:"Claude 3.5 Sonnet"},{id:"openai/gpt-4o",name:"GPT-4o"},{id:"google/gemini-pro-1.5",name:"Gemini Pro 1.5"}]},{id:"anthropic",name:"Anthropic",baseUrl:"https://api.anthropic.com/v1",models:[{id:"claude-3-5-sonnet-20241022",name:"Claude 3.5 Sonnet"},{id:"claude-3-opus-20240229",name:"Claude 3 Opus"},{id:"claude-3-haiku-20240307",name:"Claude 3 Haiku (Fast)"}]},{id:"openai",name:"OpenAI",baseUrl:"https://api.openai.com/v1",models:[{id:"gpt-4o",name:"GPT-4o"},{id:"gpt-4o-mini",name:"GPT-4o Mini (Fast)"},{id:"gpt-4-turbo",name:"GPT-4 Turbo"}]},{id:"google",name:"Google AI",baseUrl:"https://generativelanguage.googleapis.com/v1beta",models:[{id:"gemini-1.5-pro",name:"Gemini 1.5 Pro"},{id:"gemini-1.5-flash",name:"Gemini 1.5 Flash (Fast)"}]},{id:"groq",name:"Groq",baseUrl:"https://api.groq.com/openai/v1",models:[{id:"llama-3.3-70b-versatile",name:"Llama 3.3 70B"},{id:"mixtral-8x7b-32768",name:"Mixtral 8x7B"}]}];function zse(){const{currentOrg:e}=er(),[t,r]=A.useState("general"),[n,i]=A.useState(!1),[a,o]=A.useState(!1),[s,l]=A.useState({provider:"openrouter",apiKey:"",model:"meta-llama/llama-3.3-70b-instruct",autoAnalyze:!0,autoCreatePR:!0,confidenceThreshold:70}),[u,f]=A.useState(!1),[c,h]=A.useState(!1),[p,m]=A.useState(null),[y,v]=A.useState(!0);A.useEffect(()=>{e&&g()},[e]);const g=async()=>{var S;try{const j=await je.get(`/organizations/${e.id}/settings`);(S=j.data)!=null&&S.ai_config&&l(_=>({..._,...j.data.ai_config}))}catch{}finally{v(!1)}},b=async()=>{i(!0);try{await je.put(`/organizations/${e.id}/settings`,{ai_config:s}),m({type:"success",message:"Configuration saved!"})}catch{m({type:"error",message:"Failed to save configuration"})}finally{i(!1)}},w=async()=>{var S,j;h(!0),m(null);try{const _=await je.post(`/organizations/${e.id}/test-llm`,{provider:s.provider,api_key:s.apiKey,model:s.model});m({type:"success",message:"Connection successful! API key is valid."})}catch(_){m({type:"error",message:((j=(S=_.response)==null?void 0:S.data)==null?void 0:j.detail)||"Connection failed. Check your API key."})}finally{h(!1)}},O=jm.find(S=>S.id===s.provider);if(!e)return d.jsx("div",{className:"flex items-center justify-center h-full p-8",children:d.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const x=async()=>{i(!0),await new Promise(S=>setTimeout(S,1e3)),i(!1)};return d.jsxs("div",{className:"p-6 animate-fade-in",children:[d.jsx("div",{className:"page-header",children:d.jsxs("div",{children:[d.jsx("h1",{className:"page-title",children:"Settings"}),d.jsx("p",{className:"page-subtitle",children:"Manage your organization settings"})]})}),d.jsxs("div",{className:"flex gap-6",children:[d.jsx("div",{className:"w-52 flex-shrink-0",children:d.jsx("div",{className:"space-y-0.5",children:Lse.map(S=>{const j=S.icon;return d.jsxs("button",{onClick:()=>r(S.id),className:ye("w-full sidebar-item",t===S.id?"sidebar-item-active":"sidebar-item-inactive"),children:[d.jsx(j,{size:16}),d.jsx("span",{children:S.label})]},S.id)})})}),d.jsxs("div",{className:"flex-1 max-w-2xl",children:[t==="general"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Organization Details"})}),d.jsxs("div",{className:"card-body space-y-5",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Organization Name"}),d.jsx("input",{defaultValue:e.name,className:"input",placeholder:"My Organization"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Slug"}),d.jsx("input",{defaultValue:e.slug||"",className:"input font-mono",placeholder:"my-org"})]}),d.jsx("div",{className:"pt-3 border-t border-gray-800",children:d.jsxs("button",{onClick:x,disabled:n,className:"btn btn-primary",children:[n?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(qp,{size:14}),"Save Changes"]})})]})]}),t==="ai"&&d.jsxs("div",{className:"space-y-6 animate-fade-in",children:[d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[d.jsx(Bf,{size:16,className:"text-indigo-400"}),"AI Provider Configuration"]})}),d.jsxs("div",{className:"card-body space-y-5",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Provider"}),d.jsx("select",{value:s.provider,onChange:S=>{var _;const j=jm.find(P=>P.id===S.target.value);l({...s,provider:S.target.value,model:((_=j==null?void 0:j.models[0])==null?void 0:_.id)||""}),m(null)},className:"input",children:jm.map(S=>d.jsx("option",{value:S.id,children:S.name},S.id))})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"API Key"}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:u?"text":"password",value:s.apiKey,onChange:S=>{l({...s,apiKey:S.target.value}),m(null)},className:"input pr-20 font-mono",placeholder:`Enter your ${O==null?void 0:O.name} API key`}),d.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1",children:d.jsx("button",{type:"button",onClick:()=>f(!u),className:"p-1 text-gray-500 hover:text-gray-300",children:u?d.jsx(qy,{size:14}):d.jsx(Uf,{size:14})})})]}),d.jsxs("p",{className:"text-xs text-gray-600 mt-1",children:["Get your API key from"," ",d.jsxs("a",{href:(O==null?void 0:O.id)==="openrouter"?"https://openrouter.ai/keys":(O==null?void 0:O.id)==="anthropic"?"https://console.anthropic.com/settings/keys":(O==null?void 0:O.id)==="openai"?"https://platform.openai.com/api-keys":(O==null?void 0:O.id)==="google"?"https://aistudio.google.com/app/apikey":"https://console.groq.com/keys",target:"_blank",rel:"noopener noreferrer",className:"text-indigo-400 hover:text-indigo-300",children:[O==null?void 0:O.name," dashboard"]})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Model"}),d.jsx("select",{value:s.model,onChange:S=>l({...s,model:S.target.value}),className:"input",children:O==null?void 0:O.models.map(S=>d.jsx("option",{value:S.id,children:S.name},S.id))})]}),d.jsxs("div",{className:"flex items-center gap-3 pt-3 border-t border-gray-800",children:[d.jsxs("button",{onClick:w,disabled:c||!s.apiKey,className:"btn btn-secondary",children:[c?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(A2,{size:14}),"Test Connection"]}),p&&d.jsxs("div",{className:ye("flex items-center gap-2 text-sm",p.type==="success"?"text-green-400":"text-red-400"),children:[p.type==="success"?d.jsx(C0,{size:14}):d.jsx(tu,{size:14}),p.message]})]})]})]}),d.jsxs("div",{className:"card",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Analysis Settings"})}),d.jsxs("div",{className:"card-body space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Auto-analyze new issues"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Automatically analyze issues when received"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",checked:s.autoAnalyze,onChange:S=>l({...s,autoAnalyze:S.target.checked}),className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Auto-create Pull Requests"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Create PRs automatically for high-confidence fixes"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",checked:s.autoCreatePR,onChange:S=>l({...s,autoCreatePR:S.target.checked}),className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),d.jsxs("div",{children:[d.jsxs("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:["Confidence Threshold for Auto-PR (",s.confidenceThreshold,"%)"]}),d.jsx("input",{type:"range",min:"50",max:"95",step:"5",value:s.confidenceThreshold,onChange:S=>l({...s,confidenceThreshold:parseInt(S.target.value)}),className:"w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer accent-indigo-600"}),d.jsxs("div",{className:"flex justify-between text-xs text-gray-600 mt-1",children:[d.jsx("span",{children:"50% (More PRs)"}),d.jsx("span",{children:"95% (Higher quality)"})]})]})]})]}),d.jsx("div",{className:"flex justify-end",children:d.jsxs("button",{onClick:b,disabled:n,className:"btn btn-primary",children:[n?d.jsx(Zt,{size:14,className:"animate-spin"}):d.jsx(qp,{size:14}),"Save AI Configuration"]})})]}),t==="notifications"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Notification Preferences"})}),d.jsxs("div",{className:"card-body space-y-4",children:[[{label:"New issue received",desc:"When a new issue arrives from an integration"},{label:"Analysis completed",desc:"When AI finishes analyzing an issue"},{label:"PR created",desc:"When a Pull Request is automatically generated"},{label:"Analysis error",desc:"When AI fails to analyze an issue"},{label:"Daily digest",desc:"Summary of daily activity"}].map(S=>d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:S.label}),d.jsx("p",{className:"text-xs text-gray-500",children:S.desc})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",defaultChecked:!0,className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]},S.label)),d.jsxs("div",{className:"pt-3 border-t border-gray-800",children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Notification Email"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("div",{className:"relative flex-1",children:[d.jsx(vh,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),d.jsx("input",{className:"input pl-10",placeholder:"team@company.com"})]}),d.jsx("button",{className:"btn btn-primary btn-sm",children:d.jsx(qp,{size:14})})]})]})]})]}),t==="security"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsx("div",{className:"card-header",children:d.jsx("h3",{className:"text-sm font-semibold",children:"Security Settings"})}),d.jsxs("div",{className:"card-body space-y-5",children:[d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Two-Factor Authentication"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Require 2FA for all organization members"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{type:"checkbox",className:"sr-only peer"}),d.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),d.jsxs("div",{className:"flex items-center justify-between py-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-gray-200",children:"SSO / SAML"}),d.jsx("p",{className:"text-xs text-gray-500",children:"Enable Single Sign-On with your identity provider"})]}),d.jsx("span",{className:"badge badge-gray",children:"Enterprise"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"IP Allowlist"}),d.jsx("textarea",{className:"input h-20 resize-none font-mono text-xs",placeholder:`192.168.1.0/24
|
||
10.0.0.0/8`}),d.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"One CIDR per line. Leave empty to allow all."})]})]})]}),t==="api"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsxs("div",{className:"card-header",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"API Keys"}),d.jsxs("button",{className:"btn btn-primary btn-sm",children:[d.jsx(Ma,{size:14})," Create Key"]})]}),d.jsxs("div",{className:"card-body",children:[d.jsx("div",{className:"space-y-3",children:d.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gray-900/50 rounded-lg border border-gray-800/50",children:[d.jsx(j2,{size:16,className:"text-gray-500"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium",children:"Production API Key"}),d.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[d.jsx("code",{className:"text-xs text-gray-500 font-mono",children:a?"jaf_live_sk_a1b2c3d4e5f6...":"jaf_live_sk_••••••••••••..."}),d.jsx("button",{onClick:()=>o(!a),className:"text-gray-500 hover:text-gray-300",children:a?d.jsx(qy,{size:12}):d.jsx(Uf,{size:12})}),d.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:d.jsx(Hy,{size:12})})]})]}),d.jsx("span",{className:"badge badge-green text-[10px]",children:"Active"}),d.jsx("button",{className:"btn btn-danger btn-sm btn-icon",children:d.jsx(N2,{size:12})})]})}),d.jsxs("div",{className:"mt-4 p-4 bg-gray-950 rounded-lg border border-gray-800",children:[d.jsxs("h4",{className:"text-xs font-semibold text-gray-400 mb-2 flex items-center gap-1.5",children:[d.jsx(Wy,{size:12})," Quick Start"]}),d.jsx("pre",{className:"text-xs text-gray-400 font-mono overflow-x-auto",children:`curl -X POST https://jira-fixer.startdata.com.br/api/issues \\
|
||
-H "Authorization: Bearer YOUR_API_KEY" \\
|
||
-H "Content-Type: application/json" \\
|
||
-d '{"title": "Bug fix needed", "source": "api"}'`})]})]})]}),t==="webhooks"&&d.jsxs("div",{className:"card animate-fade-in",children:[d.jsxs("div",{className:"card-header",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Webhook Endpoints"}),d.jsxs("button",{className:"btn btn-primary btn-sm",children:[d.jsx(Ma,{size:14})," Add Endpoint"]})]}),d.jsxs("div",{className:"card-body",children:[d.jsxs("div",{className:"p-4 bg-gray-900/50 rounded-lg border border-gray-800/50 mb-4",children:[d.jsx("h4",{className:"text-xs font-semibold text-gray-400 mb-2",children:"Incoming Webhook URLs"}),d.jsx("div",{className:"space-y-2",children:["tickethub","jira","servicenow","github","gitlab","gitea"].map(S=>d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("span",{className:"text-xs text-gray-500 w-24 capitalize",children:[S,":"]}),d.jsxs("code",{className:"text-xs text-indigo-400 font-mono flex-1 truncate",children:["https://jira-fixer.startdata.com.br/api/webhooks/",e.id,"/",S]}),d.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:d.jsx(Hy,{size:12})})]},S))})]}),d.jsxs("div",{className:"text-center py-6 text-gray-500",children:[d.jsx(O2,{size:24,className:"mx-auto mb-2 text-gray-600"}),d.jsx("p",{className:"text-sm",children:"No outgoing webhook endpoints configured"}),d.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"Add endpoints to receive event notifications"})]})]})]})]})]})]})}function Kj({children:e}){const{user:t,loading:r}=er();return r?d.jsx("div",{className:"flex items-center justify-center h-screen",children:"Loading..."}):t?e:d.jsx(by,{to:"/login"})}function Fse({children:e}){const{user:t,currentOrg:r,loading:n}=er();return n?d.jsx("div",{className:"flex items-center justify-center h-screen",children:"Loading..."}):t?r?e:d.jsx(by,{to:"/select-organization"}):d.jsx(by,{to:"/login"})}function Bse(){return d.jsxs(HM,{children:[d.jsx(rr,{path:"/login",element:d.jsx(KD,{})}),d.jsx(rr,{path:"/register",element:d.jsx(VD,{})}),d.jsx(rr,{path:"/select-organization",element:d.jsx(Kj,{children:d.jsx(GD,{})})}),d.jsx(rr,{path:"/create-organization",element:d.jsx(Kj,{children:d.jsx(XD,{})})}),d.jsxs(rr,{path:"/",element:d.jsx(Fse,{children:d.jsx(qD,{})}),children:[d.jsx(rr,{index:!0,element:d.jsx(kse,{})}),d.jsx(rr,{path:"issues",element:d.jsx(Cse,{})}),d.jsx(rr,{path:"issues/:id",element:d.jsx($se,{})}),d.jsx(rr,{path:"integrations",element:d.jsx(Mse,{})}),d.jsx(rr,{path:"team",element:d.jsx(Rse,{})}),d.jsx(rr,{path:"reports",element:d.jsx(Dse,{})}),d.jsx(rr,{path:"settings",element:d.jsx(zse,{})})]})]})}const Use=new jI({defaultOptions:{queries:{staleTime:3e4,retry:1}}});_m.createRoot(document.getElementById("root")).render(d.jsx(k.StrictMode,{children:d.jsx(_I,{client:Use,children:d.jsx(YM,{children:d.jsx(p3,{children:d.jsx(Bse,{})})})})}));
|