ultra-mcp
Version:
Ultra MCP, a MCP server for using OpenAI, Gemini, and Grok Models with a single MCP interface. Supports node.js and Vercel AI SDK
171 lines • 747 kB
JavaScript
var ix=e=>{throw TypeError(e)};var Ap=(e,t,r)=>t.has(e)||ix("Cannot "+r);var j=(e,t,r)=>(Ap(e,t,"read from private field"),r?r.call(e):t.get(e)),te=(e,t,r)=>t.has(e)?ix("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),X=(e,t,r,n)=>(Ap(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ae=(e,t,r)=>(Ap(e,t,"access private method"),r);var wc=(e,t,r,n)=>({set _(i){X(e,t,i,r)},get _(){return j(e,t,n)}});function xk(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 o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{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 o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iP={exports:{}},ah={},oP={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 Zl=Symbol.for("react.element"),wk=Symbol.for("react.portal"),Sk=Symbol.for("react.fragment"),Ok=Symbol.for("react.strict_mode"),_k=Symbol.for("react.profiler"),Pk=Symbol.for("react.provider"),Ak=Symbol.for("react.context"),Ek=Symbol.for("react.forward_ref"),$k=Symbol.for("react.suspense"),jk=Symbol.for("react.memo"),Ck=Symbol.for("react.lazy"),ox=Symbol.iterator;function Tk(e){return e===null||typeof e!="object"?null:(e=ox&&e[ox]||e["@@iterator"],typeof e=="function"?e:null)}var aP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sP=Object.assign,uP={};function Ts(e,t,r){this.props=e,this.context=t,this.refs=uP,this.updater=r||aP}Ts.prototype.isReactComponent={};Ts.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")};Ts.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lP(){}lP.prototype=Ts.prototype;function Bg(e,t,r){this.props=e,this.context=t,this.refs=uP,this.updater=r||aP}var zg=Bg.prototype=new lP;zg.constructor=Bg;sP(zg,Ts.prototype);zg.isPureReactComponent=!0;var ax=Array.isArray,cP=Object.prototype.hasOwnProperty,Ug={current:null},fP={key:!0,ref:!0,__self:!0,__source:!0};function dP(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)cP.call(t,n)&&!fP.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:Zl,type:e,key:o,ref:a,props:i,_owner:Ug.current}}function kk(e,t){return{$$typeof:Zl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Wg(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zl}function Mk(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var sx=/\/+/g;function Ep(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Mk(""+e.key):t.toString(36)}function sf(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Zl:case wk:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+Ep(a,0):n,ax(i)?(r="",e!=null&&(r=e.replace(sx,"$&/")+"/"),sf(i,t,r,"",function(l){return l})):i!=null&&(Wg(i)&&(i=kk(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(sx,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",ax(e))for(var s=0;s<e.length;s++){o=e[s];var u=n+Ep(o,s);a+=sf(o,t,r,u,i)}else if(u=Tk(e),typeof u=="function")for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=n+Ep(o,s++),a+=sf(o,t,r,u,i);else if(o==="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 a}function Oc(e,t,r){if(e==null)return e;var n=[],i=0;return sf(e,n,"","",function(o){return t.call(r,o,i++)}),n}function Ik(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},uf={transition:null},Rk={ReactCurrentDispatcher:Lt,ReactCurrentBatchConfig:uf,ReactCurrentOwner:Ug};function hP(){throw Error("act(...) is not supported in production builds of React.")}pe.Children={map:Oc,forEach:function(e,t,r){Oc(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Oc(e,function(){t++}),t},toArray:function(e){return Oc(e,function(t){return t})||[]},only:function(e){if(!Wg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};pe.Component=Ts;pe.Fragment=Sk;pe.Profiler=_k;pe.PureComponent=Bg;pe.StrictMode=Ok;pe.Suspense=$k;pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rk;pe.act=hP;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=sP({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Ug.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)cP.call(t,u)&&!fP.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){s=Array(u);for(var l=0;l<u;l++)s[l]=arguments[l+2];n.children=s}return{$$typeof:Zl,type:e.type,key:i,ref:o,props:n,_owner:a}};pe.createContext=function(e){return e={$$typeof:Ak,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Pk,_context:e},e.Consumer=e};pe.createElement=dP;pe.createFactory=function(e){var t=dP.bind(null,e);return t.type=e,t};pe.createRef=function(){return{current:null}};pe.forwardRef=function(e){return{$$typeof:Ek,render:e}};pe.isValidElement=Wg;pe.lazy=function(e){return{$$typeof:Ck,_payload:{_status:-1,_result:e},_init:Ik}};pe.memo=function(e,t){return{$$typeof:jk,type:e,compare:t===void 0?null:t}};pe.startTransition=function(e){var t=uf.transition;uf.transition={};try{e()}finally{uf.transition=t}};pe.unstable_act=hP;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";oP.exports=pe;var k=oP.exports;const C=Pe(k),Nk=xk({__proto__:null,default:C},[k]);/**
* @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 Dk=k,Lk=Symbol.for("react.element"),Fk=Symbol.for("react.fragment"),Bk=Object.prototype.hasOwnProperty,zk=Dk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Uk={key:!0,ref:!0,__self:!0,__source:!0};function pP(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)Bk.call(t,n)&&!Uk.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:Lk,type:e,key:o,ref:a,props:i,_owner:zk.current}}ah.Fragment=Fk;ah.jsx=pP;ah.jsxs=pP;iP.exports=ah;var R=iP.exports,Uv={},vP={exports:{}},sr={},yP={exports:{}},mP={};/**
* @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(M,L){var z=M.length;M.push(L);e:for(;0<z;){var W=z-1>>>1,q=M[W];if(0<i(q,L))M[W]=L,M[z]=q,z=W;else break e}}function r(M){return M.length===0?null:M[0]}function n(M){if(M.length===0)return null;var L=M[0],z=M.pop();if(z!==L){M[0]=z;e:for(var W=0,q=M.length,V=q>>>1;W<V;){var Q=2*(W+1)-1,re=M[Q],ne=Q+1,ce=M[ne];if(0>i(re,z))ne<q&&0>i(ce,re)?(M[W]=ce,M[ne]=z,W=ne):(M[W]=re,M[Q]=z,W=Q);else if(ne<q&&0>i(ce,z))M[W]=ce,M[ne]=z,W=ne;else break e}}return L}function i(M,L){var z=M.sortIndex-L.sortIndex;return z!==0?z:M.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],f=1,c=null,d=3,h=!1,p=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(M){for(var L=r(l);L!==null;){if(L.callback===null)n(l);else if(L.startTime<=M)n(l),L.sortIndex=L.expirationTime,t(u,L);else break;L=r(l)}}function O(M){if(v=!1,b(M),!p)if(r(u)!==null)p=!0,N(x);else{var L=r(l);L!==null&&F(O,L.startTime-M)}}function x(M,L){p=!1,v&&(v=!1,m(_),_=-1),h=!0;var z=d;try{for(b(L),c=r(u);c!==null&&(!(c.expirationTime>L)||M&&!E());){var W=c.callback;if(typeof W=="function"){c.callback=null,d=c.priorityLevel;var q=W(c.expirationTime<=L);L=e.unstable_now(),typeof q=="function"?c.callback=q:c===r(u)&&n(u),b(L)}else n(u);c=r(u)}if(c!==null)var V=!0;else{var Q=r(l);Q!==null&&F(O,Q.startTime-L),V=!1}return V}finally{c=null,d=z,h=!1}}var w=!1,S=null,_=-1,P=5,A=-1;function E(){return!(e.unstable_now()-A<P)}function $(){if(S!==null){var M=e.unstable_now();A=M;var L=!0;try{L=S(!0,M)}finally{L?T():(w=!1,S=null)}}else w=!1}var T;if(typeof y=="function")T=function(){y($)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,D=I.port2;I.port1.onmessage=$,T=function(){D.postMessage(null)}}else T=function(){g($,0)};function N(M){S=M,w||(w=!0,T())}function F(M,L){_=g(function(){M(e.unstable_now())},L)}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(M){M.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,N(x))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(u)},e.unstable_next=function(M){switch(d){case 1:case 2:case 3:var L=3;break;default:L=d}var z=d;d=L;try{return M()}finally{d=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,L){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var z=d;d=M;try{return L()}finally{d=z}},e.unstable_scheduleCallback=function(M,L,z){var W=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?W+z:W):z=W,M){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=z+q,M={id:f++,callback:L,priorityLevel:M,startTime:z,expirationTime:q,sortIndex:-1},z>W?(M.sortIndex=z,t(l,M),r(u)===null&&M===r(l)&&(v?(m(_),_=-1):v=!0,F(O,z-W))):(M.sortIndex=q,t(u,M),p||h||(p=!0,N(x))),M},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(M){var L=d;return function(){var z=d;d=L;try{return M.apply(this,arguments)}finally{d=z}}}})(mP);yP.exports=mP;var Wk=yP.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 qk=k,ar=Wk;function H(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 gP=new Set,Hu={};function Do(e,t){Qa(e,t),Qa(e+"Capture",t)}function Qa(e,t){for(Hu[e]=t,e=0;e<t.length;e++)gP.add(t[e])}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wv=Object.prototype.hasOwnProperty,Hk=/^[: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]*$/,ux={},lx={};function Kk(e){return Wv.call(lx,e)?!0:Wv.call(ux,e)?!1:Hk.test(e)?lx[e]=!0:(ux[e]=!0,!1)}function Vk(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 Gk(e,t,r,n){if(t===null||typeof t>"u"||Vk(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 Ft(e,t,r,n,i,o,a){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=o,this.removeEmptyString=a}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gt[e]=new Ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gt[t]=new Ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gt[e]=new Ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gt[e]=new Ft(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){gt[e]=new Ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gt[e]=new Ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gt[e]=new Ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gt[e]=new Ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gt[e]=new Ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var qg=/[\-:]([a-z])/g;function Hg(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(qg,Hg);gt[t]=new Ft(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(qg,Hg);gt[t]=new Ft(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(qg,Hg);gt[t]=new Ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gt[e]=new Ft(e,1,!1,e.toLowerCase(),null,!1,!1)});gt.xlinkHref=new Ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gt[e]=new Ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Kg(e,t,r,n){var i=gt.hasOwnProperty(t)?gt[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Gk(t,r,i,n)&&(r=null),n||i===null?Kk(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 Vn=qk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_c=Symbol.for("react.element"),ra=Symbol.for("react.portal"),na=Symbol.for("react.fragment"),Vg=Symbol.for("react.strict_mode"),qv=Symbol.for("react.profiler"),bP=Symbol.for("react.provider"),xP=Symbol.for("react.context"),Gg=Symbol.for("react.forward_ref"),Hv=Symbol.for("react.suspense"),Kv=Symbol.for("react.suspense_list"),Qg=Symbol.for("react.memo"),ri=Symbol.for("react.lazy"),wP=Symbol.for("react.offscreen"),cx=Symbol.iterator;function Ys(e){return e===null||typeof e!="object"?null:(e=cx&&e[cx]||e["@@iterator"],typeof e=="function"?e:null)}var He=Object.assign,$p;function bu(e){if($p===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);$p=t&&t[1]||""}return`
`+$p+e}var jp=!1;function Cp(e,t){if(!e||jp)return"";jp=!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(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var i=l.stack.split(`
`),o=n.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var u=`
`+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{jp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?bu(e):""}function Qk(e){switch(e.tag){case 5:return bu(e.type);case 16:return bu("Lazy");case 13:return bu("Suspense");case 19:return bu("SuspenseList");case 0:case 2:case 15:return e=Cp(e.type,!1),e;case 11:return e=Cp(e.type.render,!1),e;case 1:return e=Cp(e.type,!0),e;default:return""}}function Vv(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 na:return"Fragment";case ra:return"Portal";case qv:return"Profiler";case Vg:return"StrictMode";case Hv:return"Suspense";case Kv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xP:return(e.displayName||"Context")+".Consumer";case bP:return(e._context.displayName||"Context")+".Provider";case Gg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qg:return t=e.displayName||null,t!==null?t:Vv(e.type)||"Memo";case ri:t=e._payload,e=e._init;try{return Vv(e(t))}catch{}}return null}function Xk(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 Vv(t);case 8:return t===Vg?"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 Mi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function SP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yk(e){var t=SP(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,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pc(e){e._valueTracker||(e._valueTracker=Yk(e))}function OP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=SP(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function _f(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 Gv(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function fx(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mi(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 _P(e,t){t=t.checked,t!=null&&Kg(e,"checked",t,!1)}function Qv(e,t){_P(e,t);var r=Mi(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")?Xv(e,t.type,r):t.hasOwnProperty("defaultValue")&&Xv(e,t.type,Mi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dx(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 Xv(e,t,r){(t!=="number"||_f(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var xu=Array.isArray;function xa(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=""+Mi(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 Yv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return He({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hx(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(H(92));if(xu(r)){if(1<r.length)throw Error(H(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Mi(r)}}function PP(e,t){var r=Mi(t.value),n=Mi(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 px(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function AP(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 Zv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?AP(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ac,EP=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(Ac=Ac||document.createElement("div"),Ac.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ac.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ku(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Eu={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},Zk=["Webkit","ms","Moz","O"];Object.keys(Eu).forEach(function(e){Zk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Eu[t]=Eu[e]})});function $P(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Eu.hasOwnProperty(e)&&Eu[e]?(""+t).trim():t+"px"}function jP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=$P(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Jk=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 Jv(e,t){if(t){if(Jk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function ey(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 ty=null;function Xg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ry=null,wa=null,Sa=null;function vx(e){if(e=tc(e)){if(typeof ry!="function")throw Error(H(280));var t=e.stateNode;t&&(t=fh(t),ry(e.stateNode,e.type,t))}}function CP(e){wa?Sa?Sa.push(e):Sa=[e]:wa=e}function TP(){if(wa){var e=wa,t=Sa;if(Sa=wa=null,vx(e),t)for(e=0;e<t.length;e++)vx(t[e])}}function kP(e,t){return e(t)}function MP(){}var Tp=!1;function IP(e,t,r){if(Tp)return e(t,r);Tp=!0;try{return kP(e,t,r)}finally{Tp=!1,(wa!==null||Sa!==null)&&(MP(),TP())}}function Vu(e,t){var r=e.stateNode;if(r===null)return null;var n=fh(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(H(231,t,typeof r));return r}var ny=!1;if(Bn)try{var Zs={};Object.defineProperty(Zs,"passive",{get:function(){ny=!0}}),window.addEventListener("test",Zs,Zs),window.removeEventListener("test",Zs,Zs)}catch{ny=!1}function e2(e,t,r,n,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(f){this.onError(f)}}var $u=!1,Pf=null,Af=!1,iy=null,t2={onError:function(e){$u=!0,Pf=e}};function r2(e,t,r,n,i,o,a,s,u){$u=!1,Pf=null,e2.apply(t2,arguments)}function n2(e,t,r,n,i,o,a,s,u){if(r2.apply(this,arguments),$u){if($u){var l=Pf;$u=!1,Pf=null}else throw Error(H(198));Af||(Af=!0,iy=l)}}function Lo(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 RP(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 yx(e){if(Lo(e)!==e)throw Error(H(188))}function i2(e){var t=e.alternate;if(!t){if(t=Lo(e),t===null)throw Error(H(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return yx(i),e;if(o===n)return yx(i),t;o=o.sibling}throw Error(H(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a)throw Error(H(189))}}if(r.alternate!==n)throw Error(H(190))}if(r.tag!==3)throw Error(H(188));return r.stateNode.current===r?e:t}function NP(e){return e=i2(e),e!==null?DP(e):null}function DP(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=DP(e);if(t!==null)return t;e=e.sibling}return null}var LP=ar.unstable_scheduleCallback,mx=ar.unstable_cancelCallback,o2=ar.unstable_shouldYield,a2=ar.unstable_requestPaint,Ze=ar.unstable_now,s2=ar.unstable_getCurrentPriorityLevel,Yg=ar.unstable_ImmediatePriority,FP=ar.unstable_UserBlockingPriority,Ef=ar.unstable_NormalPriority,u2=ar.unstable_LowPriority,BP=ar.unstable_IdlePriority,sh=null,dn=null;function l2(e){if(dn&&typeof dn.onCommitFiberRoot=="function")try{dn.onCommitFiberRoot(sh,e,void 0,(e.current.flags&128)===128)}catch{}}var Wr=Math.clz32?Math.clz32:d2,c2=Math.log,f2=Math.LN2;function d2(e){return e>>>=0,e===0?32:31-(c2(e)/f2|0)|0}var Ec=64,$c=4194304;function wu(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 $f(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=wu(s):(o&=a,o!==0&&(n=wu(o)))}else a=r&~i,a!==0?n=wu(a):o!==0&&(n=wu(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&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-Wr(t),i=1<<r,n|=e[r],t&=~i;return n}function h2(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 p2(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Wr(o),s=1<<a,u=i[a];u===-1?(!(s&r)||s&n)&&(i[a]=h2(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}function oy(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zP(){var e=Ec;return Ec<<=1,!(Ec&4194240)&&(Ec=64),e}function kp(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Jl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wr(t),e[t]=r}function v2(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-Wr(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function Zg(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Wr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var _e=0;function UP(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var WP,Jg,qP,HP,KP,ay=!1,jc=[],Si=null,Oi=null,_i=null,Gu=new Map,Qu=new Map,oi=[],y2="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 gx(e,t){switch(e){case"focusin":case"focusout":Si=null;break;case"dragenter":case"dragleave":Oi=null;break;case"mouseover":case"mouseout":_i=null;break;case"pointerover":case"pointerout":Gu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qu.delete(t.pointerId)}}function Js(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=tc(t),t!==null&&Jg(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function m2(e,t,r,n,i){switch(t){case"focusin":return Si=Js(Si,e,t,r,n,i),!0;case"dragenter":return Oi=Js(Oi,e,t,r,n,i),!0;case"mouseover":return _i=Js(_i,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Gu.set(o,Js(Gu.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Qu.set(o,Js(Qu.get(o)||null,e,t,r,n,i)),!0}return!1}function VP(e){var t=ro(e.target);if(t!==null){var r=Lo(t);if(r!==null){if(t=r.tag,t===13){if(t=RP(r),t!==null){e.blockedOn=t,KP(e.priority,function(){qP(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 lf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=sy(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);ty=n,r.target.dispatchEvent(n),ty=null}else return t=tc(r),t!==null&&Jg(t),e.blockedOn=r,!1;t.shift()}return!0}function bx(e,t,r){lf(e)&&r.delete(t)}function g2(){ay=!1,Si!==null&&lf(Si)&&(Si=null),Oi!==null&&lf(Oi)&&(Oi=null),_i!==null&&lf(_i)&&(_i=null),Gu.forEach(bx),Qu.forEach(bx)}function eu(e,t){e.blockedOn===t&&(e.blockedOn=null,ay||(ay=!0,ar.unstable_scheduleCallback(ar.unstable_NormalPriority,g2)))}function Xu(e){function t(i){return eu(i,e)}if(0<jc.length){eu(jc[0],e);for(var r=1;r<jc.length;r++){var n=jc[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Si!==null&&eu(Si,e),Oi!==null&&eu(Oi,e),_i!==null&&eu(_i,e),Gu.forEach(t),Qu.forEach(t),r=0;r<oi.length;r++)n=oi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<oi.length&&(r=oi[0],r.blockedOn===null);)VP(r),r.blockedOn===null&&oi.shift()}var Oa=Vn.ReactCurrentBatchConfig,jf=!0;function b2(e,t,r,n){var i=_e,o=Oa.transition;Oa.transition=null;try{_e=1,e0(e,t,r,n)}finally{_e=i,Oa.transition=o}}function x2(e,t,r,n){var i=_e,o=Oa.transition;Oa.transition=null;try{_e=4,e0(e,t,r,n)}finally{_e=i,Oa.transition=o}}function e0(e,t,r,n){if(jf){var i=sy(e,t,r,n);if(i===null)Up(e,t,n,Cf,r),gx(e,n);else if(m2(i,e,t,r,n))n.stopPropagation();else if(gx(e,n),t&4&&-1<y2.indexOf(e)){for(;i!==null;){var o=tc(i);if(o!==null&&WP(o),o=sy(e,t,r,n),o===null&&Up(e,t,n,Cf,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else Up(e,t,n,null,r)}}var Cf=null;function sy(e,t,r,n){if(Cf=null,e=Xg(n),e=ro(e),e!==null)if(t=Lo(e),t===null)e=null;else if(r=t.tag,r===13){if(e=RP(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 Cf=e,null}function GP(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(s2()){case Yg:return 1;case FP:return 4;case Ef:case u2:return 16;case BP:return 536870912;default:return 16}default:return 16}}var bi=null,t0=null,cf=null;function QP(){if(cf)return cf;var e,t=t0,r=t.length,n,i="value"in bi?bi.value:bi.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return cf=i.slice(e,1<n?1-n:void 0)}function ff(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 Cc(){return!0}function xx(){return!1}function ur(e){function t(r,n,i,o,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Cc:xx,this.isPropagationStopped=xx,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=Cc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Cc)},persist:function(){},isPersistent:Cc}),t}var ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},r0=ur(ks),ec=He({},ks,{view:0,detail:0}),w2=ur(ec),Mp,Ip,tu,uh=He({},ec,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:n0,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!==tu&&(tu&&e.type==="mousemove"?(Mp=e.screenX-tu.screenX,Ip=e.screenY-tu.screenY):Ip=Mp=0,tu=e),Mp)},movementY:function(e){return"movementY"in e?e.movementY:Ip}}),wx=ur(uh),S2=He({},uh,{dataTransfer:0}),O2=ur(S2),_2=He({},ec,{relatedTarget:0}),Rp=ur(_2),P2=He({},ks,{animationName:0,elapsedTime:0,pseudoElement:0}),A2=ur(P2),E2=He({},ks,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$2=ur(E2),j2=He({},ks,{data:0}),Sx=ur(j2),C2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T2={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"},k2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=k2[e])?!!t[e]:!1}function n0(){return M2}var I2=He({},ec,{key:function(e){if(e.key){var t=C2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ff(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?T2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:n0,charCode:function(e){return e.type==="keypress"?ff(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ff(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),R2=ur(I2),N2=He({},uh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ox=ur(N2),D2=He({},ec,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:n0}),L2=ur(D2),F2=He({},ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),B2=ur(F2),z2=He({},uh,{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}),U2=ur(z2),W2=[9,13,27,32],i0=Bn&&"CompositionEvent"in window,ju=null;Bn&&"documentMode"in document&&(ju=document.documentMode);var q2=Bn&&"TextEvent"in window&&!ju,XP=Bn&&(!i0||ju&&8<ju&&11>=ju),_x=" ",Px=!1;function YP(e,t){switch(e){case"keyup":return W2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ZP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function H2(e,t){switch(e){case"compositionend":return ZP(t);case"keypress":return t.which!==32?null:(Px=!0,_x);case"textInput":return e=t.data,e===_x&&Px?null:e;default:return null}}function K2(e,t){if(ia)return e==="compositionend"||!i0&&YP(e,t)?(e=QP(),cf=t0=bi=null,ia=!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 XP&&t.locale!=="ko"?null:t.data;default:return null}}var V2={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 Ax(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!V2[e.type]:t==="textarea"}function JP(e,t,r,n){CP(n),t=Tf(t,"onChange"),0<t.length&&(r=new r0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Cu=null,Yu=null;function G2(e){cA(e,0)}function lh(e){var t=sa(e);if(OP(t))return e}function Q2(e,t){if(e==="change")return t}var eA=!1;if(Bn){var Np;if(Bn){var Dp="oninput"in document;if(!Dp){var Ex=document.createElement("div");Ex.setAttribute("oninput","return;"),Dp=typeof Ex.oninput=="function"}Np=Dp}else Np=!1;eA=Np&&(!document.documentMode||9<document.documentMode)}function $x(){Cu&&(Cu.detachEvent("onpropertychange",tA),Yu=Cu=null)}function tA(e){if(e.propertyName==="value"&&lh(Yu)){var t=[];JP(t,Yu,e,Xg(e)),IP(G2,t)}}function X2(e,t,r){e==="focusin"?($x(),Cu=t,Yu=r,Cu.attachEvent("onpropertychange",tA)):e==="focusout"&&$x()}function Y2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return lh(Yu)}function Z2(e,t){if(e==="click")return lh(t)}function J2(e,t){if(e==="input"||e==="change")return lh(t)}function eM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kr=typeof Object.is=="function"?Object.is:eM;function Zu(e,t){if(Kr(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(!Wv.call(t,i)||!Kr(e[i],t[i]))return!1}return!0}function jx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cx(e,t){var r=jx(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=jx(r)}}function rA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nA(){for(var e=window,t=_f();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=_f(e.document)}return t}function o0(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 tM(e){var t=nA(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&rA(r.ownerDocument.documentElement,r)){if(n!==null&&o0(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,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=Cx(r,o);var a=Cx(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 rM=Bn&&"documentMode"in document&&11>=document.documentMode,oa=null,uy=null,Tu=null,ly=!1;function Tx(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ly||oa==null||oa!==_f(n)||(n=oa,"selectionStart"in n&&o0(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}),Tu&&Zu(Tu,n)||(Tu=n,n=Tf(uy,"onSelect"),0<n.length&&(t=new r0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=oa)))}function Tc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var aa={animationend:Tc("Animation","AnimationEnd"),animationiteration:Tc("Animation","AnimationIteration"),animationstart:Tc("Animation","AnimationStart"),transitionend:Tc("Transition","TransitionEnd")},Lp={},iA={};Bn&&(iA=document.createElement("div").style,"AnimationEvent"in window||(delete aa.animationend.animation,delete aa.animationiteration.animation,delete aa.animationstart.animation),"TransitionEvent"in window||delete aa.transitionend.transition);function ch(e){if(Lp[e])return Lp[e];if(!aa[e])return e;var t=aa[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in iA)return Lp[e]=t[r];return e}var oA=ch("animationend"),aA=ch("animationiteration"),sA=ch("animationstart"),uA=ch("transitionend"),lA=new Map,kx="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 Ni(e,t){lA.set(e,t),Do(t,[e])}for(var Fp=0;Fp<kx.length;Fp++){var Bp=kx[Fp],nM=Bp.toLowerCase(),iM=Bp[0].toUpperCase()+Bp.slice(1);Ni(nM,"on"+iM)}Ni(oA,"onAnimationEnd");Ni(aA,"onAnimationIteration");Ni(sA,"onAnimationStart");Ni("dblclick","onDoubleClick");Ni("focusin","onFocus");Ni("focusout","onBlur");Ni(uA,"onTransitionEnd");Qa("onMouseEnter",["mouseout","mouseover"]);Qa("onMouseLeave",["mouseout","mouseover"]);Qa("onPointerEnter",["pointerout","pointerover"]);Qa("onPointerLeave",["pointerout","pointerover"]);Do("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Do("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Do("onBeforeInput",["compositionend","keypress","textInput","paste"]);Do("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Do("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Do("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="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(" "),oM=new Set("cancel close invalid load scroll toggle".split(" ").concat(Su));function Mx(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,n2(n,t,void 0,e),e.currentTarget=null}function cA(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 o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Mx(i,s,l),o=u}else for(a=0;a<n.length;a++){if(s=n[a],u=s.instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Mx(i,s,l),o=u}}}if(Af)throw e=iy,Af=!1,iy=null,e}function Re(e,t){var r=t[py];r===void 0&&(r=t[py]=new Set);var n=e+"__bubble";r.has(n)||(fA(t,e,2,!1),r.add(n))}function zp(e,t,r){var n=0;t&&(n|=4),fA(r,e,n,t)}var kc="_reactListening"+Math.random().toString(36).slice(2);function Ju(e){if(!e[kc]){e[kc]=!0,gP.forEach(function(r){r!=="selectionchange"&&(oM.has(r)||zp(r,!1,e),zp(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[kc]||(t[kc]=!0,zp("selectionchange",!1,t))}}function fA(e,t,r,n){switch(GP(t)){case 1:var i=b2;break;case 4:i=x2;break;default:i=e0}r=i.bind(null,t,r,e),i=void 0,!ny||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 Up(e,t,r,n,i){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;a=a.return}for(;s!==null;){if(a=ro(s),a===null)return;if(u=a.tag,u===5||u===6){n=o=a;continue e}s=s.parentNode}}n=n.return}IP(function(){var l=o,f=Xg(r),c=[];e:{var d=lA.get(e);if(d!==void 0){var h=r0,p=e;switch(e){case"keypress":if(ff(r)===0)break e;case"keydown":case"keyup":h=R2;break;case"focusin":p="focus",h=Rp;break;case"focusout":p="blur",h=Rp;break;case"beforeblur":case"afterblur":h=Rp;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":h=wx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=O2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=L2;break;case oA:case aA:case sA:h=A2;break;case uA:h=B2;break;case"scroll":h=w2;break;case"wheel":h=U2;break;case"copy":case"cut":case"paste":h=$2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ox}var v=(t&4)!==0,g=!v&&e==="scroll",m=v?d!==null?d+"Capture":null:d;v=[];for(var y=l,b;y!==null;){b=y;var O=b.stateNode;if(b.tag===5&&O!==null&&(b=O,m!==null&&(O=Vu(y,m),O!=null&&v.push(el(y,O,b)))),g)break;y=y.return}0<v.length&&(d=new h(d,p,null,r,f),c.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&r!==ty&&(p=r.relatedTarget||r.fromElement)&&(ro(p)||p[zn]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(p=r.relatedTarget||r.toElement,h=l,p=p?ro(p):null,p!==null&&(g=Lo(p),p!==g||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=l),h!==p)){if(v=wx,O="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=Ox,O="onPointerLeave",m="onPointerEnter",y="pointer"),g=h==null?d:sa(h),b=p==null?d:sa(p),d=new v(O,y+"leave",h,r,f),d.target=g,d.relatedTarget=b,O=null,ro(f)===l&&(v=new v(m,y+"enter",p,r,f),v.target=b,v.relatedTarget=g,O=v),g=O,h&&p)t:{for(v=h,m=p,y=0,b=v;b;b=Go(b))y++;for(b=0,O=m;O;O=Go(O))b++;for(;0<y-b;)v=Go(v),y--;for(;0<b-y;)m=Go(m),b--;for(;y--;){if(v===m||m!==null&&v===m.alternate)break t;v=Go(v),m=Go(m)}v=null}else v=null;h!==null&&Ix(c,d,h,v,!1),p!==null&&g!==null&&Ix(c,g,p,v,!0)}}e:{if(d=l?sa(l):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var x=Q2;else if(Ax(d))if(eA)x=J2;else{x=Y2;var w=X2}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(x=Z2);if(x&&(x=x(e,l))){JP(c,x,r,f);break e}w&&w(e,d,l),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&Xv(d,"number",d.value)}switch(w=l?sa(l):window,e){case"focusin":(Ax(w)||w.contentEditable==="true")&&(oa=w,uy=l,Tu=null);break;case"focusout":Tu=uy=oa=null;break;case"mousedown":ly=!0;break;case"contextmenu":case"mouseup":case"dragend":ly=!1,Tx(c,r,f);break;case"selectionchange":if(rM)break;case"keydown":case"keyup":Tx(c,r,f)}var S;if(i0)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else ia?YP(e,r)&&(_="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(_="onCompositionStart");_&&(XP&&r.locale!=="ko"&&(ia||_!=="onCompositionStart"?_==="onCompositionEnd"&&ia&&(S=QP()):(bi=f,t0="value"in bi?bi.value:bi.textContent,ia=!0)),w=Tf(l,_),0<w.length&&(_=new Sx(_,e,null,r,f),c.push({event:_,listeners:w}),S?_.data=S:(S=ZP(r),S!==null&&(_.data=S)))),(S=q2?H2(e,r):K2(e,r))&&(l=Tf(l,"onBeforeInput"),0<l.length&&(f=new Sx("onBeforeInput","beforeinput",null,r,f),c.push({event:f,listeners:l}),f.data=S))}cA(c,t)})}function el(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Tf(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Vu(e,r),o!=null&&n.unshift(el(e,o,i)),o=Vu(e,t),o!=null&&n.push(el(e,o,i))),e=e.return}return n}function Go(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ix(e,t,r,n,i){for(var o=t._reactName,a=[];r!==null&&r!==n;){var s=r,u=s.alternate,l=s.stateNode;if(u!==null&&u===n)break;s.tag===5&&l!==null&&(s=l,i?(u=Vu(r,o),u!=null&&a.unshift(el(r,u,s))):i||(u=Vu(r,o),u!=null&&a.push(el(r,u,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var aM=/\r\n?/g,sM=/\u0000|\uFFFD/g;function Rx(e){return(typeof e=="string"?e:""+e).replace(aM,`
`).replace(sM,"")}function Mc(e,t,r){if(t=Rx(t),Rx(e)!==t&&r)throw Error(H(425))}function kf(){}var cy=null,fy=null;function dy(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 hy=typeof setTimeout=="function"?setTimeout:void 0,uM=typeof clearTimeout=="function"?clearTimeout:void 0,Nx=typeof Promise=="function"?Promise:void 0,lM=typeof queueMicrotask=="function"?queueMicrotask:typeof Nx<"u"?function(e){return Nx.resolve(null).then(e).catch(cM)}:hy;function cM(e){setTimeout(function(){throw e})}function Wp(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),Xu(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Xu(t)}function Pi(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 Dx(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 Ms=Math.random().toString(36).slice(2),cn="__reactFiber$"+Ms,tl="__reactProps$"+Ms,zn="__reactContainer$"+Ms,py="__reactEvents$"+Ms,fM="__reactListeners$"+Ms,dM="__reactHandles$"+Ms;function ro(e){var t=e[cn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[zn]||r[cn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Dx(e);e!==null;){if(r=e[cn])return r;e=Dx(e)}return t}e=r,r=e.parentNode}return null}function tc(e){return e=e[cn]||e[zn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function fh(e){return e[tl]||null}var vy=[],ua=-1;function Di(e){return{current:e}}function Le(e){0>ua||(e.current=vy[ua],vy[ua]=null,ua--)}function ke(e,t){ua++,vy[ua]=e.current,e.current=t}var Ii={},Et=Di(Ii),Ht=Di(!1),Po=Ii;function Xa(e,t){var r=e.type.contextTypes;if(!r)return Ii;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Kt(e){return e=e.childContextTypes,e!=null}function Mf(){Le(Ht),Le(Et)}function Lx(e,t,r){if(Et.current!==Ii)throw Error(H(168));ke(Et,t),ke(Ht,r)}function dA(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(H(108,Xk(e)||"Unknown",i));return He({},r,n)}function If(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ii,Po=Et.current,ke(Et,e),ke(Ht,Ht.current),!0}function Fx(e,t,r){var n=e.stateNode;if(!n)throw Error(H(169));r?(e=dA(e,t,Po),n.__reactInternalMemoizedMergedChildContext=e,Le(Ht),Le(Et),ke(Et,e)):Le(Ht),ke(Ht,r)}var En=null,dh=!1,qp=!1;function hA(e){En===null?En=[e]:En.push(e)}function hM(e){dh=!0,hA(e)}function Li(){if(!qp&&En!==null){qp=!0;var e=0,t=_e;try{var r=En;for(_e=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}En=null,dh=!1}catch(i){throw En!==null&&(En=En.slice(e+1)),LP(Yg,Li),i}finally{_e=t,qp=!1}}return null}var la=[],ca=0,Rf=null,Nf=0,gr=[],br=0,Ao=null,Cn=1,Tn="";function Gi(e,t){la[ca++]=Nf,la[ca++]=Rf,Rf=e,Nf=t}function pA(e,t,r){gr[br++]=Cn,gr[br++]=Tn,gr[br++]=Ao,Ao=e;var n=Cn;e=Tn;var i=32-Wr(n)-1;n&=~(1<<i),r+=1;var o=32-Wr(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Cn=1<<32-Wr(t)+i|r<<i|n,Tn=o+e}else Cn=1<<o|r<<i|n,Tn=e}function a0(e){e.return!==null&&(Gi(e,1),pA(e,1,0))}function s0(e){for(;e===Rf;)Rf=la[--ca],la[ca]=null,Nf=la[--ca],la[ca]=null;for(;e===Ao;)Ao=gr[--br],gr[br]=null,Tn=gr[--br],gr[br]=null,Cn=gr[--br],gr[br]=null}var nr=null,rr=null,Fe=!1,Br=null;function vA(e,t){var r=wr(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 Bx(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,nr=e,rr=Pi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,nr=e,rr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ao!==null?{id:Cn,overflow:Tn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=wr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,nr=e,rr=null,!0):!1;default:return!1}}function yy(e){return(e.mode&1)!==0&&(e.flags&128)===0}function my(e){if(Fe){var t=rr;if(t){var r=t;if(!Bx(e,t)){if(yy(e))throw Error(H(418));t=Pi(r.nextSibling);var n=nr;t&&Bx(e,t)?vA(n,r):(e.flags=e.flags&-4097|2,Fe=!1,nr=e)}}else{if(yy(e))throw Error(H(418));e.flags=e.flags&-4097|2,Fe=!1,nr=e}}}function zx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;nr=e}function Ic(e){if(e!==nr)return!1;if(!Fe)return zx(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!dy(e.type,e.memoizedProps)),t&&(t=rr)){if(yy(e))throw yA(),Error(H(418));for(;t;)vA(e,t),t=Pi(t.nextSibling)}if(zx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){rr=Pi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}rr=null}}else rr=nr?Pi(e.stateNode.nextSibling):null;return!0}function yA(){for(var e=rr;e;)e=Pi(e.nextSibling)}function Ya(){rr=nr=null,Fe=!1}function u0(e){Br===null?Br=[e]:Br.push(e)}var pM=Vn.ReactCurrentBatchConfig;function ru(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(H(309));var n=r.stateNode}if(!n)throw Error(H(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(H(284));if(!r._owner)throw Error(H(290,e))}return e}function Rc(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ux(e){var t=e._init;return t(e._payload)}function mA(e){function t(m,y){if(e){var b=m.deletions;b===null?(m.deletions=[y],m.flags|=16):b.push(y)}}function r(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function n(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function i(m,y){return m=ji(m,y),m.index=0,m.sibling=null,m}function o(m,y,b){return m.index=b,e?(b=m.alternate,b!==null?(b=b.index,b<y?(m.flags|=2,y):b):(m.flags|=2,y)):(m.flags|=1048576,y)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,y,b,O){return y===null||y.tag!==6?(y=Yp(b,m.mode,O),y.return=m,y):(y=i(y,b),y.return=m,y)}function u(m,y,b,O){var x=b.type;return x===na?f(m,y,b.props.children,O,b.key):y!==null&&(y.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ri&&Ux(x)===y.type)?(O=i(y,b.props),O.ref=ru(m,y,b),O.return=m,O):(O=gf(b.type,b.key,b.props,null,m.mode,O),O.ref=ru(m,y,b),O.return=m,O)}function l(m,y,b,O){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=Zp(b,m.mode,O),y.return=m,y):(y=i(y,b.children||[]),y.return=m,y)}function f(m,y,b,O,x){return y===null||y.tag!==7?(y=xo(b,m.mode,O,x),y.return=m,y):(y=i(y,b),y.return=m,y)}function c(m,y,b){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Yp(""+y,m.mode,b),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case _c:return b=gf(y.type,y.key,y.props,null,m.mode,b),b.ref=ru(m,null,y),b.return=m,b;case ra:return y=Zp(y,m.mode,b),y.return=m,y;case ri:var O=y._init;return c(m,O(y._payload),b)}if(xu(y)||Ys(y))return y=xo(y,m.mode,b,null),y.return=m,y;Rc(m,y)}return null}function d(m,y,b,O){var x=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return x!==null?null:s(m,y,""+b,O);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case _c:return b.key===x?u(m,y,b,O):null;case ra:return b.key===x?l(m,y,b,O):null;case ri:return x=b._init,d(m,y,x(b._payload),O)}if(xu(b)||Ys(b))return x!==null?null:f(m,y,b,O,null);Rc(m,b)}return null}function h(m,y,b,O,x){if(typeof O=="string"&&O!==""||typeof O=="number")return m=m.get(b)||null,s(y,m,""+O,x);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case _c:return m=m.get(O.key===null?b:O.key)||null,u(y,m,O,x);case ra:return m=m.get(O.key===null?b:O.key)||null,l(y,m,O,x);case ri:var w=O._init;return h(m,y,b,w(O._payload),x)}if(xu(O)||Ys(O))return m=m.get(b)||null,f(y,m,O,x,null);Rc(y,O)}return null}function p(m,y,b,O){for(var x=null,w=null,S=y,_=y=0,P=null;S!==null&&_<b.length;_++){S.index>_?(P=S,S=null):P=S.sibling;var A=d(m,S,b[_],O);if(A===null){S===null&&(S=P);break}e&&S&&A.alternate===null&&t(m,S),y=o(A,y,_),w===null?x=A:w.sibling=A,w=A,S=P}if(_===b.length)return r(m,S),Fe&&Gi(m,_),x;if(S===null){for(;_<b.length;_++)S=c(m,b[_],O),S!==null&&(y=o(S,y,_),w===null?x=S:w.sibling=S,w=S);return Fe&&Gi(m,_),x}for(S=n(m,S);_<b.length;_++)P=h(S,m,_,b[_],O),P!==null&&(e&&P.alternate!==null&&S.delete(P.key===null?_:P.key),y=o(P,y,_),w===null?x=P:w.sibling=P,w=P);return e&&S.forEach(function(E){return t(m,E)}),Fe&&Gi(m,_),x}function v(m,y,b,O){var x=Ys(b);if(typeof x!="function")throw Error(H(150));if(b=x.call(b),b==null)throw Error(H(151));for(var w=x=null,S=y,_=y=0,P=null,A=b.next();S!==null&&!A.done;_++,A=b.next()){S.index>_?(P=S,S=null):P=S.sibling;var E=d(m,S,A.value,O);if(E===null){S===null&&(S=P);break}e&&S&&E.alternate===null&&t(m,S),y=o(E,y,_),w===null?x=E:w.sibling=E,w=E,S=P}if(A.done)return r(m,S),Fe&&Gi(m,_),x;if(S===null){for(;!A.done;_++,A=b.next())A=c(m,A.value,O),A!==null&&(y=o(A,y,_),w===null?x=A:w.sibling=A,w=A);return Fe&&Gi(m,_),x}for(S=n(m,S);!A.done;_++,A=b.next())A=h(S,m,_,A.value,O),A!==null&&(e&&A.alternate!==null&&S.delete(A.key===null?_:A.key),y=o(A,y,_),w===null?x=A:w.sibling=A,w=A);return e&&S.forEach(function($){return t(m,$)}),Fe&&Gi(m,_),x}function g(m,y,b,O){if(typeof b=="object"&&b!==null&&b.type===na&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case _c:e:{for(var x=b.key,w=y;w!==null;){if(w.key===x){if(x=b.type,x===na){if(w.tag===7){r(m,w.sibling),y=i(w,b.props.children),y.return=m,m=y;break e}}else if(w.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ri&&Ux(x)===w.type){r(m,w.sibling),y=i(w,b.props),y.ref=ru(m,w,b),y.return=m,m=y;break e}r(m,w);break}else t(m,w);w=w.sibling}b.type===na?(y=xo(b.props.children,m.mode,O,b.key),y.return=m,m=y):(O=gf(b.type,b.key,b.props,null,m.mode,O),O.ref=ru(m,y,b),O.return=m,m=O)}return a(m);case ra:e:{for(w=b.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){r(m,y.sibling),y=i(y,b.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=Zp(b,m.mode,O),y.return=m,m=y}return a(m);case ri:return w=b._init,g(m,y,w(b._payload),O)}if(xu(b))return p(m,y,b,O);if(Ys(b))return v(m,y,b,O);Rc(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(r(m,y.sibling),y=i(y,b),y.return=m,m=y):(r(m,y),y=Yp(b,m.mode,O),y.return=m,m=y),a(m)):r(m,y)}return g}var Za=mA(!0),gA=mA(!1),Df=Di(null),Lf=null,fa=null,l0=null;function c0(){l0=fa=Lf=null}function f0(e){var t=Df.current;Le(Df),e._currentValue=t}function gy(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 _a(e,t){Lf=e,l0=fa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wt=!0),e.firstContext=null)}function _r(e){var t=e._currentValue;if(l0!==e)if(e={context:e,memoizedValue:t,next:null},fa===null){if(Lf===null)throw Error(H(308));fa=e,Lf.dependencies={lanes:0,firstContext:e}}else fa=fa.next=e;return t}var no=null;function d0(e){no===null?no=[e]:no.push(e)}function bA(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,d0(t)):(r.next=i.next,i.next=r),t.interleaved=r,Un(e,n)}function Un(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 ni=!1;function h0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xA(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 Rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,me&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Un(e,r)}return i=n.interleaved,i===null?(t.next=t,d0(n)):(t.next=i.next,i.next=t),n.interleaved=t,Un(e,r)}function df(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,Zg(e,r)}}function Wx(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 Ff(e,t,r,n){var i=e.updateQueue;ni=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,l=u.next;u.next=null,a===null?o=l:a.next=l,a=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=l:s.next=l,f.lastBaseUpdate=u))}if(o!==null){var c=i.baseState;a=0,f=l=u=null,s=o;do{var d=s.lane,h=s.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(d=t,h=r,v.tag){case 1:if(p=v.payload,typeof p=="function"){c=p.call(h,c,d);break e}c=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=v.payload,d=typeof p=="function"?p.call(h,c,d):p,d==null)break e;c=He({},c,d);break e;case 2:ni=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(l=f=h,u=c):f=f.next=h,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);$o|=a,e.lanes=a,e.memoizedState=c}}function qx(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(H(191,i));i.call(n)}}}var rc={},hn=Di(rc),rl=Di(rc),nl=Di(rc);function io(e){if(e===rc)throw Error(H(174));return e}function p0(e,t){switch(ke(nl,t),ke(rl,e),ke(hn,rc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zv(t,e)}Le(hn),ke(hn,t)}function Ja(){Le(hn),Le(rl),Le(nl)}function wA(e){io(nl.current);var t=io(hn.current),r=Zv(t,e.type);t!==r&&(ke(rl,e),ke(hn,r))}function v0(e){rl.current===e&&(Le(hn),Le(rl))}var We=Di(0);function Bf(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 Hp=[];function y0(){for(var e=0;e<Hp.length;e++)Hp[e]._workInProgressVersionPrimary=null;Hp.length=0}var hf=Vn.ReactCurrentDispatcher,Kp=Vn.ReactCurrentBatchConfig,Eo=0,qe=null,ot=null,ft=null,zf=!1,ku=!1,il=0,vM=0;function xt(){throw Error(H(321))}function m0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Kr(e[r],t[r]))return!1;return!0}function g0(e,t,r,n,i,o){if(Eo=o,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hf.current=e===null||e.memoizedState===null?bM:xM,e=r(n,i),ku){o=0;do{if(ku=!1,il=0,25<=o)throw Error(H(301));o+=1,ft=ot=null,t.updateQueue=null,hf.current=wM,e=r(n,i)}while(ku)}if(hf.current=Uf,t=ot!==null&&ot.next!==null,Eo=0,ft=ot=qe=null,zf=!1,t)throw Error(H(300));return e}function b0(){var e=il!==0;return il=0,e}function en(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?qe.memoizedState=ft=e:ft=ft.next=e,ft}function Pr(){if(ot===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var t=ft===null?qe.memoizedState:ft.next;if(t!==null)ft=t,ot=e;else{if(e===null)throw Error(H(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},ft===null?qe.memoizedState=ft=e:ft=ft.next=e}return ft}function ol(e,t){return typeof t=="function"?t(e):t}function Vp(e){var t=Pr(),r=t.queue;if(r===null)throw Error(H(311));r.lastRenderedReducer=e;var n=ot,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var s=a=null,u=null,l=o;do{var f=l.lane;if((Eo&f)===f)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var c={lane:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(s=u=c,a=n):u=u.next=c,qe.lanes|=f,$o|=f}l=l.next}while(l!==null&&l!==o);u===null?a=n:u.next=s,Kr(n,t.memoizedState)||(Wt=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,qe.lanes|=o,$o|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Gp(e){var t=Pr(),r=t.queue;if(r===null)throw Error(H(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Kr(o,t.memoizedState)||(Wt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function SA(){}function OA(e,t){var r=qe,n=Pr(),i=t(),o=!Kr(n.memoizedState,i);if(o&&(n.memoizedState=i,Wt=!0),n=n.queue,x0(AA.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||ft!==null&&ft.memoizedState.tag&1){if(r.flags|=2048,al(9,PA.bind(null,r,n,i,t),void 0,null),ht===null)throw Error(H(349));Eo&30||_A(r,t,i)}return i}function _A(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function PA(e,t,r,n){t.value=r,t.getSnapshot=n,EA(t)&&$A(e)}function AA(e,t,r){return r(function(){EA(t)&&$A(e)})}function EA(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Kr(e,r)}catch{return!0}}function $A(e){var t=Un(e,1);t!==null&&qr(t,e,1,-1)}function Hx(e){var t=en();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:e},t.queue=e,e=e.dispatch=gM.bind(null,qe,e),[t.memoizedState,e]}function al(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.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 jA(){return Pr().memoizedState}function pf(e,t,r,n){var i=en();qe.flags|=e,i.memoizedState=al(1|t,r,void 0,n===void 0?null:n)}function hh(e,t,r,n){var i=Pr();n=n===void 0?null:n;var o=void 0;if(ot!==null){var a=ot.memoizedState;if(o=a.destroy,n!==null&&m0(n,a.deps)){i.memoizedState=al(t,r,o,n);return}}qe.flags|=e,i.memoizedState=al(1|t,r,o,n)}function Kx(e,t){return pf(8390656,8,e,t)}function x0(e,t){return hh(2048,8,e,t)}function CA(e,t){return hh(4,2,e,t)}function TA(e,t){return hh(4,4,e,t)}function kA(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 MA(e,t,r){return r=r!=null?r.concat([e]):null,hh(4,4,kA.bind(null,t,e),r)}function w0(){}function IA(e,t){var r=Pr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&m0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function RA(e,t){var r=Pr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&m0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function NA(e,t,r){return Eo&21?(Kr(r,t)||(r=zP(),qe.lanes|=r,$o|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Wt=!0),e.memoizedState=r)}function yM(e,t){var r=_e;_e=r!==0&&4>r?r:4,e(!0);var n=Kp.transition;Kp.transition={};try{e(!1),t()}finally{_e=r,Kp.transition=n}}function DA(){return Pr().memoizedState}function mM(e,t,r){var n=$i(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},LA(e))FA(t,r);else if(r=bA(e,t,r,n),r!==null){var i=Nt();qr(r,e,n,i),BA(r,t,n)}}function gM(e,t,r){var n=$i(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(LA(e))FA(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,Kr(s,a)){var u=t.interleaved;u===null?(i.next=i,d0(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=bA(e,t,i,n),r!==null&&(i=Nt(),qr(r,e,n,i),BA(r,t,n))}}function LA(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function FA(e,t){ku=zf=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function BA(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Zg(e,r)}}var Uf={readContext:_r,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useInsertionEffect:xt,useLayoutEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useMutableSource:xt,useSyncExternalStore:xt,useId:xt,unstable_isNewReconciler:!1},bM={readContext:_r,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:_r,useEffect:Kx,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,pf(4194308,4,kA.bind(null,t,e),r)},useLayoutEffect:function(e,t){return pf(4194308,4,e,t)},useInsertionEffect:function(e,t){return pf(4,2,e,t)},useMemo:function(e,t){var r=en();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=en();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=mM.bind(null,qe,e),[n.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:Hx,useDebugValue:w0,useDeferredValue:function(e){return en().memoizedState=e},useTransition:function(){var e=Hx(!1),t=e[0];return e=yM.bind(null,e[1]),en().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=qe,i=en();if(Fe){if(r===void 0)throw Error(H(407));r=r()}else{if(r=t(),ht===null)throw Error(H(349));Eo&30||_A(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,Kx(AA.bind(null,n,o,e),[e]),n.flags|=2048,al(9,PA.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=en(),t=ht.identifierPrefix;if(Fe){var r=Tn,n=Cn;r=(n&~(1<<32-Wr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=il++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=vM++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xM={readContext:_r,useCallback:IA,useContext:_r,useEffect:x0,useImperativeHandle:MA,useInsertionEffect:CA,useLayoutEffect:TA,useMemo:RA,useReducer:Vp,useRef:jA,useState:function(){return Vp(ol)},useDebugValue:w0,useDeferredValue:function(e){var t=Pr();return NA(t,ot.memoizedState,e)},useTransition:function(){var e=Vp(ol)[0],t=Pr().memoizedState;return[e,t]},useMutableSource:SA,useSyncExternalStore:OA,useId:DA,unstable_isNewReconciler:!1},wM={readContext:_r,useCallback:IA,useContext:_r,useEffect:x0,useImperativeHandle:MA,useInsertionEffect:CA,useLayoutEffect:TA,useMemo:RA,useReducer:Gp,useRef:jA,useState:function(){return Gp(ol)},useDebugValue:w0,useDeferredValue:function(e){var t=Pr();return ot===null?t.memoizedState=e:NA(t,ot.memoizedState,e)},useTransition:function(){var e=Gp(ol)[0],t=Pr().memoizedState;return[e,t]},useMutableSource:SA,useSyncExternalStore:OA,useId:DA,unstable_isNewReconciler:!1};function kr(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 by(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 ph={isMounted:function(e){return(e=e._reactInternals)?Lo(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Nt(),i=$i(e),o=Rn(n,i);o.payload=t,r!=null&&(o.callback=r),t=Ai(e,o,i),t!==null&&(qr(t,e,i,n),df(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Nt(),i=$i(e),o=Rn(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Ai(e,o,i),t!==null&&(qr(t,e,i,n),df(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Nt(),n=$i(e),i=Rn(r,n);i.tag=2,t!=null&&(i.callback=t),t=Ai(e,i,n),t!==null&&(qr(t,e,n,r),df(t,e,n))}};function Vx(e,t,r,n,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,a):t.prototype&&t.prototype.isPureReactComponent?!Zu(r,n)||!Zu(i,o):!0}function zA(e,t,r){var n=!1,i=Ii,o=t.contextType;return typeof o=="object"&&o!==null?o=_r(o):(i=Kt(t)?Po:Et.current,n=t.contextTypes,o=(n=n!=null)?Xa(e,i):Ii),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ph,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Gx(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&&ph.enqueueReplaceState(t,t.state,null)}function xy(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},h0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=_r(o):(o=Kt(t)?Po:Et.current,i.context=Xa(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(by(e,t,o,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&&ph.enqueueReplaceState(i,i.state,null),Ff(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function es(e,t){try{var r="",n=t;do r+=Qk(n),n=n.return;while(n);var i=r}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Qp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function wy(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var SM=typeof WeakMap=="function"?WeakMap:Map;function UA(e,t,r){r=Rn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){qf||(qf=!0,Ty=n),wy(e,t)},r}function WA(e,t,r){r=Rn(-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(){wy(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){wy(e,t),typeof n!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function Qx(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new SM;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=NM.bind(null,e,t,r),t.then(e,e))}function Xx(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 Yx(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=Rn(-1,1),t.tag=2,Ai(r,t,1))),r.lanes|=1),e)}var OM=Vn.ReactCurrentOwner,Wt=!1;function Tt(e,t,r,n){t.child=e===null?gA(t,null,r,n):Za(t,e.child,r,n)}function Zx(e,t,r,n,i){r=r.render;var o=t.ref;return _a(t,i),n=g0(e,t,r,n,o,i),r=b0(),e!==null&&!Wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Wn(e,t,i)):(Fe&&r&&a0(t),t.flags|=1,Tt(e,t,n,i),t.child)}function Jx(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!j0(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,qA(e,t,o,n,i)):(e=gf(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(r=r.compare,r=r!==null?r:Zu,r(a,n)&&e.ref===t.ref)return Wn(e,t,i)}return t.flags|=1,e=ji(o,n),e.ref=t.ref,e.return=t,t.child=e}function qA(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(Zu(o,n)&&e.ref===t.ref)if(Wt=!1,t.pendingProps=n=o,(e.lanes&i)!==0)e.flags&131072&&(Wt=!0);else return t.lanes=e.lanes,Wn(e,t,i)}return Sy(e,t,r,n,i)}function HA(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(ha,Yt),Yt|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(ha,Yt),Yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,ke(ha,Yt),Yt|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ke(ha,Yt),Yt|=n;return Tt(e,t,i,r),t.child}function KA(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Sy(e,t,r,n,i){var o=Kt(r)?Po:Et.current;return o=Xa(t,o),_a(t,i),r=g0(e,t,r,n,o,i),n=b0(),e!==null&&!Wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Wn(e,t,i)):(Fe&&n&&a0(t),t.flags|=1,Tt(e,t,r,i),t.child)}function ew(e,t,r,n,i){if(Kt(r)){var o=!0;If(t)}else o=!1;if(_a(t,i),t.stateNode===null)vf(e,t),zA(t,r,n),xy(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=r.contextType;typeof l=="object"&&l!==null?l=_r(l):(l=Kt(r)?Po:Et.current,l=Xa(t,l));var f=r.getDerivedStateFromProps,c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||u!==l)&&Gx(t,a,n,l),ni=!1;var d=t.memoizedState;a.state=d,Ff(t,n,a,i),u=t.memoizedState,s!==n||d!==u||Ht.current||ni?(typeof f=="function"&&(by(t,r,f,n),u=t.memoizedState),(s=ni||Vx(t,r,s,n,d,u,l))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),a.props=n,a.state=u,a.context=l,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,xA(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:kr(t.type,s),a.props=l,c=t.pendingProps,d=a.context,u=r.contextType,typeof u=="object"&&u!==null?u=_r(u):(u=Kt(r)?Po:Et.current,u=Xa(t,u));var h=r.getDerivedStateFromProps;(f=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==c||d!==u)&&Gx(t,a,n,u),ni=!1,d=t.memoizedState,a.state=d,Ff(t,n,a,i);var p=t.memoizedState;s!==c||d!==p||Ht.current||ni?(typeof h=="function"&&(by(t,r,h,n),p=t.memoizedState),(l=ni||Vx(t,r,l,n,d,p,u)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,p,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,p,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=u,n=l):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Oy(e,t,r,n,o,i)}function Oy(e,t,r,n,i,o){KA(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&Fx(t,r,!1),Wn(e,t,o);n=t.stateNode,OM.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Za(t,e.child,null,o),t.child=Za(t,null,s,o)):Tt(e,t,s,o),t.memoizedState=n.state,i&&Fx(t,r,!0),t.child}function VA(e){var t=e.stateNode;t.pendingContext?Lx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Lx(e,t.context,!1),p0(e,t.containerInfo)}function tw(e,t,r,n,i){return Ya(),u0(i),t.flags|=256,Tt(e,t,r,n),t.child}var _y={dehydrated:null,treeContext:null,retryLane:0};function Py(e){return{baseLanes:e,cachePool:null,transitions:null}}function GA(e,t,r){var n=t.pendingProps,i=We.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ke(We,i&1),e===null)return my(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):(a=n.children,e=n.fallback,o?(n=t.mode,o=t.child,a={mode:"hidden",children:a},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=mh(a,n,0,null),e=xo(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Py(r),t.memoizedState=_y,e):S0(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return _M(e,t,a,n,s,i,r);if(o){o=n.fallback,a=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:n.children};return!(a&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=ji(i,u),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=ji(s,o):(o=xo(o,a,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,a=e.child.memoizedState,a=a===null?Py(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~r,t.memoizedState=_y,n}return o=e.child,e=o.sibling,n=ji(o,{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 S0(e,t){return t=mh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Nc(e,t,r,n){return n!==null&&u0(n),Za(t,e.child,null,r),e=S0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _M(e,t,r,n,i,o,a){if(r)return t.flags&256?(t.flags&=-257,n=Qp(Error(H(422))),Nc(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=mh({mode:"visible",children:n.children},i,0,null),o=xo(o,i,a,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&Za(t,e.child,null,a),t.child.memoizedState=Py(a),t.memoizedState=_y,o);if(!(t.mode&1))return Nc(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(H(419)),n=Qp(o,n,void 0),Nc(e,t,a,n)}if(s=(a&e.childLanes)!==0,Wt||s){if(n=ht,n!==null){switch(a&-a){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|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Un(e,i),qr(n,e,i,-1))}return $0(),n=Qp(Error(H(421))),Nc(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=DM.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,rr=Pi(i.nextSibling),nr=t,Fe=!0,Br=null,e!==null&&(gr[br++]=Cn,gr[br++]=Tn,gr[br++]=Ao,Cn=e.id,Tn=e.overflow,Ao=t),t=S0(t,n.children),t.flags|=4096,t)}function rw(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),gy(e.return,t,r)}function Xp(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function QA(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Tt(e,t,n.children,r),n=We.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&&rw(e,r,t);else if(e.tag===19)rw(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(ke(We,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&&Bf(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Xp(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Bf(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Xp(t,!0,r,null,o);break;case"together":Xp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),$o|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,r=ji(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ji(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function PM(e,t,r){switch(t.tag){case 3:VA(t),Ya();break;case 5:wA(t);break;case 1:Kt(t.type)&&If(t);break;case 4:p0(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ke(Df,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ke(We,We.current&1),t.flags|=128,null):r&t.child.childLanes?GA(e,t,r):(ke(We,We.current&1),e=Wn(e,t,r),e!==null?e.sibling:null);ke(We,We.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return QA(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ke(We,We.current),n)break;return null;case 22:case 23:return t.lanes=0,HA(e,t,r)}return Wn(e,t,r)}var XA,Ay,YA,ZA;XA=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}};Ay=function(){};YA=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,io(hn.current);var o=null;switch(r){case"input":i=Gv(e,i),n=Gv(e,n),o=[];break;case"select":i=He({},i,{value:void 0}),n=He({},n,{value:void 0}),o=[];break;case"textarea":i=Yv(e,i),n=Yv(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=kf)}Jv(r,n);var a;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Hu.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var u=n[l];if(s=i!=null?i[l]:void 0,n.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(r||(r={}),r[a]=u[a])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Hu.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Re("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};ZA=function(e,t,r,n){r!==n&&(t.flags|=4)};function nu(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 wt(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 AM(e,t,r){var n=t.pendingProps;switch(s0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(t),null;case 1:return Kt(t.type)&&Mf(),wt(t),null;case 3:return n=t.stateNode,Ja(),Le(Ht),Le(Et),y0(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ic(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Br!==null&&(Iy(Br),Br=null))),Ay(e,t),wt(t),null;case 5:v0(t);var i=io(nl.current);if(r=t.type,e!==null&&t.stateNode!=null)YA(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(H(166));return wt(t),null}if(e=io(hn.current),Ic(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[cn]=t,n[tl]=o,e=(t.mode&1)!==0,r){case"dialog":Re("cancel",n),Re("close",n);break;case"iframe":case"object":case"embed":Re("load",n);break;case"video":case"audio":for(i=0;i<Su.length;i++)Re(Su[i],n);break;case"source":Re("error",n);break;case"img":case"image":case"link":Re("error",n),Re("load",n);break;case"details":Re("toggle",n);break;case"input":fx(n,o),Re("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Re("invalid",n);break;case"textarea":hx(n,o),Re("invalid",n)}Jv(r,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?n.textContent!==s&&(o.suppressHydrationWarning!==!0&&Mc(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Mc(n.textContent,s,e),i=["children",""+s]):Hu.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Re("scroll",n)}switch(r){case"input":Pc(n),dx(n,o,!0);break;case"textarea":Pc(n),px(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=kf)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=AP(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[cn]=t,e[tl]=n,XA(e,t,!1,!1),t.stateNode=e;e:{switch(a=ey(r,n),r){case"dialog":Re("cancel",e),Re("close",e),i=n;break;case"iframe":case"object":case"embed":Re("load",e),i=n;break;case"video":case"audio":for(i=0;i<Su.length;i++)Re(Su[i],e);i=n;break;case"source":Re("error",e),i=n;break;case"img":case"image":case"link":Re("error",e),Re("load",e),i=n;break;case"details":Re("toggle",e),i=n;break;case"input":fx(e,n),i=Gv(e,n),Re("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=He({},n,{value:void 0}),Re("invalid",e);break;case"textarea":hx(e,n),i=Yv(e,n),Re("invalid",e);break;default:i=n}Jv(r,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?jP(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&EP(e,u)):o==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Ku(e,u):typeof u=="number"&&Ku(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Hu.hasOwnProperty(o)?u!=null&&o==="onScroll"&&Re("scroll",e):u!=null&&Kg(e,o,u,a))}switch(r){case"input":Pc(e),dx(e,n,!1);break;case"textarea":Pc(e),px(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Mi(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?xa(e,!!n.multiple,o,!1):n.defaultValue!=null&&xa(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=kf)}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 wt(t),null;case 6:if(e&&t.stateNode!=null)ZA(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(H(166));if(r=io(nl.current),io(hn.current),Ic(t)){if(n=t.stateNode,r=t.memoizedProps,n[cn]=t,(o=n.nodeValue!==r)&&(e=nr,e!==null))switch(e.tag){case 3:Mc(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mc(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[cn]=t,t.stateNode=n}return wt(t),null;case 13:if(Le(We),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&rr!==null&&t.mode&1&&!(t.flags&128))yA(),Ya(),t.flags|=98560,o=!1;else if(o=Ic(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(H(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(H(317));o[cn]=t}else Ya(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;wt(t),o=!1}else Br!==null&&(Iy(Br),Br=null),o=!0;if(!o)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||We.current&1?st===0&&(st=3):$0())),t.updateQueue!==null&&(t.flags|=4),wt(t),null);case 4:return Ja(),Ay(e,t),e===null&&Ju(t.stateNode.containerInfo),wt(t),null;case 10:return f0(t.type._context),wt(t),null;case 17:return Kt(t.type)&&Mf(),wt(t),null;case 19:if(Le(We),o=t.memoizedState,o===null)return wt(t),null;if(n=(t.flags&128)!==0,a=o.rendering,a===null)if(n)nu(o,!1);else{if(st!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Bf(e),a!==null){for(t.flags|=128,nu(o,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ke(We,We.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ze()>ts&&(t.flags|=128,n=!0,nu(o,!1),t.lanes=4194304)}else{if(!n)if(e=Bf(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),nu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Fe)return wt(t),null}else 2*Ze()-o.renderingStartTime>ts&&r!==1073741824&&(t.flags|=128,n=!0,nu(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ze(),t.sibling=null,r=We.current,ke(We,n?r&1|2:r&1),t):(wt(t),null);case 22:case 23:return E0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Yt&1073741824&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function EM(e,t){switch(s0(t),t.tag){case 1:return Kt(t.type)&&Mf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ja(),Le(Ht),Le(Et),y0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return v0(t),null;case 13:if(Le(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(We),null;case 4:return Ja(),null;case 10:return f0(t.type._context),null;case 22:case 23:return E0(),null;case 24:return null;default:return null}}var Dc=!1,Pt=!1,$M=typeof WeakSet=="function"?WeakSet:Set,J=null;function da(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Qe(e,t,n)}else r.current=null}function Ey(e,t,r){try{r()}catch(n){Qe(e,t,n)}}var nw=!1;function jM(e,t){if(cy=jf,e=nA(),o0(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,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,u=-1,l=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==r||i!==0&&c.nodeType!==3||(s=a+i),c!==o||n!==0&&c.nodeType!==3||(u=a+n),c.nodeType===3&&(a+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===r&&++l===i&&(s=a),d===o&&++f===n&&(u=a),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(fy={focusedElem:e,selectionRange:r},jf=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,g=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:kr(t.type,v),g);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(O){Qe(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return p=nw,nw=!1,p}function Mu(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 o=i.destroy;i.destroy=void 0,o!==void 0&&Ey(t,r,o)}i=i.next}while(i!==n)}}function vh(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 $y(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 JA(e){var t=e.alternate;t!==null&&(e.alternate=null,JA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cn],delete t[tl],delete t[py],delete t[fM],delete t[dM])),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 eE(e){return e.tag===5||e.tag===3||e.tag===4}function iw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eE(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 jy(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=kf));else if(n!==4&&(e=e.child,e!==null))for(jy(e,t,r),e=e.sibling;e!==null;)jy(e,t,r),e=e.sibling}function Cy(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(Cy(e,t,r),e=e.sibling;e!==null;)Cy(e,t,r),e=e.sibling}var yt=null,Rr=!1;function Zn(e,t,r){for(r=r.child;r!==null;)tE(e,t,r),r=r.sibling}function tE(e,t,r){if(dn&&typeof dn.onCommitFiberUnmount=="function")try{dn.onCommitFiberUnmount(sh,r)}catch{}switch(r.tag){case 5:Pt||da(r,t);case 6:var n=yt,i=Rr;yt=null,Zn(e,t,r),yt=n,Rr=i,yt!==null&&(Rr?(e=yt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):yt.removeChild(r.stateNode));break;case 18:yt!==null&&(Rr?(e=yt,r=r.stateNode,e.nodeType===8?Wp(e.parentNode,r):e.nodeType===1&&Wp(e,r),Xu(e)):Wp(yt,r.stateNode));break;case 4:n=yt,i=Rr,yt=r.stateNode.containerInfo,Rr=!0,Zn(e,t,r),yt=n,Rr=i;break;case 0:case 11:case 14:case 15:if(!Pt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Ey(r,t,a),i=i.next}while(i!==n)}Zn(e,t,r);break;case 1:if(!Pt&&(da(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Qe(r,t,s)}Zn(e,t,r);break;case 21:Zn(e,t,r);break;case 22:r.mode&1?(Pt=(n=Pt)||r.memoizedState!==null,Zn(e,t,r),Pt=n):Zn(e,t,r);break;default:Zn(e,t,r)}}function ow(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new $M),t.forEach(function(n){var i=LM.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 o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:yt=s.stateNode,Rr=!1;break e;case 3:yt=s.stateNode.containerInfo,Rr=!0;break e;case 4:yt=s.stateNode.containerInfo,Rr=!0;break e}s=s.return}if(yt===null)throw Error(H(160));tE(o,a,i),yt=null,Rr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){Qe(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)rE(t,e),t=t.sibling}function rE(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Cr(t,e),Zr(e),n&4){try{Mu(3,e,e.return),vh(3,e)}catch(v){Qe(e,e.return,v)}try{Mu(5,e,e.return)}catch(v){Qe(e,e.return,v)}}break;case 1:Cr(t,e),Zr(e),n&512&&r!==null&&da(r,r.return);break;case 5:if(Cr(t,e),Zr(e),n&512&&r!==null&&da(r,r.return),e.flags&32){var i=e.stateNode;try{Ku(i,"")}catch(v){Qe(e,e.return,v)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=r!==null?r.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&_P(i,o),ey(s,a);var l=ey(s,o);for(a=0;a<u.length;a+=2){var f=u[a],c=u[a+1];f==="style"?jP(i,c):f==="dangerouslySetInnerHTML"?EP(i,c):f==="children"?Ku(i,c):Kg(i,f,c,l)}switch(s){case"input":Qv(i,o);break;case"textarea":PP(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?xa(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?xa(i,!!o.multiple,o.defaultValue,!0):xa(i,!!o.multiple,o.multiple?[]:"",!1))}i[tl]=o}catch(v){Qe(e,e.return,v)}}break;case 6:if(Cr(t,e),Zr(e),n&4){if(e.stateNode===null)throw Error(H(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){Qe(e,e.return,v)}}break;case 3:if(Cr(t,e),Zr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Xu(t.containerInfo)}catch(v){Qe(e,e.return,v)}break;case 4:Cr(t,e),Zr(e);break;case 13:Cr(t,e),Zr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(P0=Ze())),n&4&&ow(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(Pt=(l=Pt)||f,Cr(t,e),Pt=l):Cr(t,e),Zr(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!f&&e.mode&1)for(J=e,f=e.child;f!==null;){for(c=J=f;J!==null;){switch(d=J,h=d.child,d.tag){case 0:case 11:case 14:case 15:Mu(4,d,d.return);break;case 1:da(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(v){Qe(n,r,v)}}break;case 5:da(d,d.return);break;case 22:if(d.memoizedState!==null){sw(c);continue}}h!==null?(h.return=d,J=h):sw(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=c.stateNode,u=c.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=$P("display",a))}catch(v){Qe(e,e.return,v)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=l?"":c.memoizedProps}catch(v){Qe(e,e.return,v)}}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),Zr(e),n&4&&ow(e);break;case 21:break;default:Cr(t,e),Zr(e)}}function Zr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(eE(r)){var n=r;break e}r=r.return}throw Error(H(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Ku(i,""),n.flags&=-33);var o=iw(e);Cy(e,o,i);break;case 3:case 4:var a=n.stateNode.containerInfo,s=iw(e);jy(e,s,a);break;default:throw Error(H(161))}}catch(u){Qe(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function CM(e,t,r){J=e,nE(e)}function nE(e,t,r){for(var n=(e.mode&1)!==0;J!==null;){var i=J,o=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||Dc;if(!a){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Pt;s=Dc;var l=Pt;if(Dc=a,(Pt=u)&&!l)for(J=i;J!==null;)a=J,u=a.child,a.tag===22&&a.memoizedState!==null?uw(i):u!==null?(u.return=a,J=u):uw(i);for(;o!==null;)J=o,nE(o),o=o.sibling;J=i,Dc=s,Pt=l}aw(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,J=o):aw(e)}}function aw(e){for(;J!==null;){var t=J;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pt||vh(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Pt)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:kr(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&qx(t,o,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}qx(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var f=l.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Xu(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}Pt||t.flags&512&&$y(t)}catch(d){Qe(t,t.return,d)}}if(t===e){J=null;break}if(r=t.sibling,r!==null){r.return=t.return,J=r;break}J=t.return}}function sw(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var r=t.sibling;if(r!==null){r.return=t.return,J=r;break}J=t.return}}function uw(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{vh(4,t)}catch(u){Qe(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){Qe(t,i,u)}}var o=t.return;try{$y(t)}catch(u){Qe(t,o,u)}break;case 5:var a=t.return;try{$y(t)}catch(u){Qe(t,a,u)}}}catch(u){Qe(t,t.return,u)}if(t===e){J=null;break}var s=t.sibling;if(s!==null){s.return=t.return,J=s;break}J=t.return}}var TM=Math.ceil,Wf=Vn.ReactCurrentDispatcher,O0=Vn.ReactCurrentOwner,Or=Vn.ReactCurrentBatchConfig,me=0,ht=null,tt=null,mt=0,Yt=0,ha=Di(0),st=0,sl=null,$o=0,yh=0,_0=0,Iu=null,Ut=null,P0=0,ts=1/0,Pn=null,qf=!1,Ty=null,Ei=null,Lc=!1,xi=null,Hf=0,Ru=0,ky=null,yf=-1,mf=0;function Nt(){return me&6?Ze():yf!==-1?yf:yf=Ze()}function $i(e){return e.mode&1?me&2&&mt!==0?mt&-mt:pM.transition!==null?(mf===0&&(mf=zP()),mf):(e=_e,e!==0||(e=window.event,e=e===void 0?16:GP(e.type)),e):1}function qr(e,t,r,n){if(50<Ru)throw Ru=0,ky=null,Error(H(185));Jl(e,r,n),(!(me&2)||e!==ht)&&(e===ht&&(!(me&2)&&(yh|=r),st===4&&ai(e,mt)),Vt(e,n),r===1&&me===0&&!(t.mode&1)&&(ts=Ze()+500,dh&&Li()))}function Vt(e,t){var r=e.callbackNode;p2(e,t);var n=$f(e,e===ht?mt:0);if(n===0)r!==null&&mx(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&mx(r),t===1)e.tag===0?hM(lw.bind(null,e)):hA(lw.bind(null,e)),lM(function(){!(me&6)&&Li()}),r=null;else{switch(UP(n)){case 1:r=Yg;break;case 4:r=FP;break;case 16:r=Ef;break;case 536870912:r=BP;break;default:r=Ef}r=fE(r,iE.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function iE(e,t){if(yf=-1,mf=0,me&6)throw Error(H(327));var r=e.callbackNode;if(Pa()&&e.callbackNode!==r)return null;var n=$f(e,e===ht?mt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Kf(e,n);else{t=n;var i=me;me|=2;var o=aE();(ht!==e||mt!==t)&&(Pn=null,ts=Ze()+500,bo(e,t));do try{IM();break}catch(s){oE(e,s)}while(!0);c0(),Wf.current=o,me=i,tt!==null?t=0:(ht=null,mt=0,t=st)}if(t!==0){if(t===2&&(i=oy(e),i!==0&&(n=i,t=My(e,i))),t===1)throw r=sl,bo(e,0),ai(e,n),Vt(e,Ze()),r;if(t===6)ai(e,n);else{if(i=e.current.alternate,!(n&30)&&!kM(i)&&(t=Kf(e,n),t===2&&(o=oy(e),o!==0&&(n=o,t=My(e,o))),t===1))throw r=sl,bo(e,0),ai(e,n),Vt(e,Ze()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(H(345));case 2:Qi(e,Ut,Pn);break;case 3:if(ai(e,n),(n&130023424)===n&&(t=P0+500-Ze(),10<t)){if($f(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Nt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=hy(Qi.bind(null,e,Ut,Pn),t);break}Qi(e,Ut,Pn);break;case 4:if(ai(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var a=31-Wr(n);o=1<<a,a=t[a],a>i&&(i=a),n&=~o}if(n=i,n=Ze()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*TM(n/1960))-n,10<n){e.timeoutHandle=hy(Qi.bind(null,e,Ut,Pn),n);break}Qi(e,Ut,Pn);break;case 5:Qi(e,Ut,Pn);break;default:throw Error(H(329))}}}return Vt(e,Ze()),e.callbackNode===r?iE.bind(null,e):null}function My(e,t){var r=Iu;return e.current.memoizedState.isDehydrated&&(bo(e,t).flags|=256),e=Kf(e,t),e!==2&&(t=Ut,Ut=r,t!==null&&Iy(t)),e}function Iy(e){Ut===null?Ut=e:Ut.push.apply(Ut,e)}function kM(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],o=i.getSnapshot;i=i.value;try{if(!Kr(o(),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 ai(e,t){for(t&=~_0,t&=~yh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Wr(t),n=1<<r;e[r]=-1,t&=~n}}function lw(e){if(me&6)throw Error(H(327));Pa();var t=$f(e,0);if(!(t&1))return Vt(e,Ze()),null;var r=Kf(e,t);if(e.tag!==0&&r===2){var n=oy(e);n!==0&&(t=n,r=My(e,n))}if(r===1)throw r=sl,bo(e,0),ai(e,t),Vt(e,Ze()),r;if(r===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qi(e,Ut,Pn),Vt(e,Ze()),null}function A0(e,t){var r=me;me|=1;try{return e(t)}finally{me=r,me===0&&(ts=Ze()+500,dh&&Li())}}function jo(e){xi!==null&&xi.tag===0&&!(me&6)&&Pa();var t=me;me|=1;var r=Or.transition,n=_e;try{if(Or.transition=null,_e=1,e)return e()}finally{_e=n,Or.transition=r,me=t,!(me&6)&&Li()}}function E0(){Yt=ha.current,Le(ha)}function bo(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,uM(r)),tt!==null)for(r=tt.return;r!==null;){var n=r;switch(s0(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Mf();break;case 3:Ja(),Le(Ht),Le(Et),y0();break;case 5:v0(n);break;case 4:Ja();break;case 13:Le(We);break;case 19:Le(We);break;case 10:f0(n.type._context);break;case 22:case 23:E0()}r=r.return}if(ht=e,tt=e=ji(e.current,null),mt=Yt=t,st=0,sl=null,_0=yh=$o=0,Ut=Iu=null,no!==null){for(t=0;t<no.length;t++)if(r=no[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var a=o.next;o.next=i,n.next=a}r.pending=n}no=null}return e}function oE(e,t){do{var r=tt;try{if(c0(),hf.current=Uf,zf){for(var n=qe.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}zf=!1}if(Eo=0,ft=ot=qe=null,ku=!1,il=0,O0.current=null,r===null||r.return===null){st=1,sl=t,tt=null;break}e:{var o=e,a=r.return,s=r,u=t;if(t=mt,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=Xx(a);if(h!==null){h.flags&=-257,Yx(h,a,s,o,t),h.mode&1&&Qx(o,l,t),t=h,u=l;var p=t.updateQueue;if(p===null){var v=new Set;v.add(u),t.updateQueue=v}else p.add(u);break e}else{if(!(t&1)){Qx(o,l,t),$0();break e}u=Error(H(426))}}else if(Fe&&s.mode&1){var g=Xx(a);if(g!==null){!(g.flags&65536)&&(g.flags|=256),Yx(g,a,s,o,t),u0(es(u,s));break e}}o=u=es(u,s),st!==4&&(st=2),Iu===null?Iu=[o]:Iu.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=UA(o,u,t);Wx(o,m);break e;case 1:s=u;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ei===null||!Ei.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var O=WA(o,s,t);Wx(o,O);break e}}o=o.return}while(o!==null)}uE(r)}catch(x){t=x,tt===r&&r!==null&&(tt=r=r.return);continue}break}while(!0)}function aE(){var e=Wf.current;return Wf.current=Uf,e===null?Uf:e}function $0(){(st===0||st===3||st===2)&&(st=4),ht===null||!($o&268435455)&&!(yh&268435455)||ai(ht,mt)}function Kf(e,t){var r=me;me|=2;var n=aE();(ht!==e||mt!==t)&&(Pn=null,bo(e,t));do try{MM();break}catch(i){oE(e,i)}while(!0);if(c0(),me=r,Wf.current=n,tt!==null)throw Error(H(261));return ht=null,mt=0,st}function MM(){for(;tt!==null;)sE(tt)}function IM(){for(;tt!==null&&!o2();)sE(tt)}function sE(e){var t=cE(e.alternate,e,Yt);e.memoizedProps=e.pendingProps,t===null?uE(e):tt=t,O0.current=null}function uE(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=EM(r,t),r!==null){r.flags&=32767,tt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{st=6,tt=null;return}}else if(r=AM(r,t,Yt),r!==null){tt=r;return}if(t=t.sibling,t!==null){tt=t;return}tt=t=e}while(t!==null);st===0&&(st=5)}function Qi(e,t,r){var n=_e,i=Or.transition;try{Or.transition=null,_e=1,RM(e,t,r,n)}finally{Or.transition=i,_e=n}return null}function RM(e,t,r,n){do Pa();while(xi!==null);if(me&6)throw Error(H(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(H(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(v2(e,o),e===ht&&(tt=ht=null,mt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Lc||(Lc=!0,fE(Ef,function(){return Pa(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=Or.transition,Or.transition=null;var a=_e;_e=1;var s=me;me|=4,O0.current=null,jM(e,r),rE(r,e),tM(fy),jf=!!cy,fy=cy=null,e.current=r,CM(r),a2(),me=s,_e=a,Or.transition=o}else e.current=r;if(Lc&&(Lc=!1,xi=e,Hf=i),o=e.pendingLanes,o===0&&(Ei=null),l2(r.stateNode),Vt(e,Ze()),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(qf)throw qf=!1,e=Ty,Ty=null,e;return Hf&1&&e.tag!==0&&Pa(),o=e.pendingLanes,o&1?e===ky?Ru++:(Ru=0,ky=e):Ru=0,Li(),null}function Pa(){if(xi!==null){var e=UP(Hf),t=Or.transition,r=_e;try{if(Or.transition=null,_e=16>e?16:e,xi===null)var n=!1;else{if(e=xi,xi=null,Hf=0,me&6)throw Error(H(331));var i=me;for(me|=4,J=e.current;J!==null;){var o=J,a=o.child;if(J.flags&16){var s=o.deletions;if(s!==null){for(var u=0;u<s.length;u++){var l=s[u];for(J=l;J!==null;){var f=J;switch(f.tag){case 0:case 11:case 15:Mu(8,f,o)}var c=f.child;if(c!==null)c.return=f,J=c;else for(;J!==null;){f=J;var d=f.sibling,h=f.return;if(JA(f),f===l){J=null;break}if(d!==null){d.return=h,J=d;break}J=h}}}var p=o.alternate;if(p!==null){var v=p.child;if(v!==null){p.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(v!==null)}}J=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,J=a;else e:for(;J!==null;){if(o=J,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Mu(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,J=m;break e}J=o.return}}var y=e.current;for(J=y;J!==null;){a=J;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,J=b;else e:for(a=y;J!==null;){if(s=J,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:vh(9,s)}}catch(x){Qe(s,s.return,x)}if(s===a){J=null;break e}var O=s.sibling;if(O!==null){O.return=s.return,J=O;break e}J=s.return}}if(me=i,Li(),dn&&typeof dn.onPostCommitFiberRoot=="function")try{dn.onPostCommitFiberRoot(sh,e)}catch{}n=!0}return n}finally{_e=r,Or.transition=t}}return!1}function cw(e,t,r){t=es(r,t),t=UA(e,t,1),e=Ai(e,t,1),t=Nt(),e!==null&&(Jl(e,1,t),Vt(e,t))}function Qe(e,t,r){if(e.tag===3)cw(e,e,r);else for(;t!==null;){if(t.tag===3){cw(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ei===null||!Ei.has(n))){e=es(r,e),e=WA(t,e,1),t=Ai(t,e,1),e=Nt(),t!==null&&(Jl(t,1,e),Vt(t,e));break}}t=t.return}}function NM(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Nt(),e.pingedLanes|=e.suspendedLanes&r,ht===e&&(mt&r)===r&&(st===4||st===3&&(mt&130023424)===mt&&500>Ze()-P0?bo(e,0):_0|=r),Vt(e,t)}function lE(e,t){t===0&&(e.mode&1?(t=$c,$c<<=1,!($c&130023424)&&($c=4194304)):t=1);var r=Nt();e=Un(e,t),e!==null&&(Jl(e,t,r),Vt(e,r))}function DM(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),lE(e,r)}function LM(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(H(314))}n!==null&&n.delete(t),lE(e,r)}var cE;cE=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ht.current)Wt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Wt=!1,PM(e,t,r);Wt=!!(e.flags&131072)}else Wt=!1,Fe&&t.flags&1048576&&pA(t,Nf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;vf(e,t),e=t.pendingProps;var i=Xa(t,Et.current);_a(t,r),i=g0(null,t,n,e,i,r);var o=b0();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,Kt(n)?(o=!0,If(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,h0(t),i.updater=ph,t.stateNode=i,i._reactInternals=t,xy(t,n,e,r),t=Oy(null,t,n,!0,o,r)):(t.tag=0,Fe&&o&&a0(t),Tt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(vf(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=BM(n),e=kr(n,e),i){case 0:t=Sy(null,t,n,e,r);break e;case 1:t=ew(null,t,n,e,r);break e;case 11:t=Zx(null,t,n,e,r);break e;case 14:t=Jx(null,t,n,kr(n.type,e),r);break e}throw Error(H(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:kr(n,i),Sy(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:kr(n,i),ew(e,t,n,i,r);case 3:e:{if(VA(t),e===null)throw Error(H(387));n=t.pendingProps,o=t.memoizedState,i=o.element,xA(e,t),Ff(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=es(Error(H(423)),t),t=tw(e,t,n,r,i);break e}else if(n!==i){i=es(Error(H(424)),t),t=tw(e,t,n,r,i);break e}else for(rr=Pi(t.stateNode.containerInfo.firstChild),nr=t,Fe=!0,Br=null,r=gA(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ya(),n===i){t=Wn(e,t,r);break e}Tt(e,t,n,r)}t=t.child}return t;case 5:return wA(t),e===null&&my(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,dy(n,i)?a=null:o!==null&&dy(n,o)&&(t.flags|=32),KA(e,t),Tt(e,t,a,r),t.child;case 6:return e===null&&my(t),null;case 13:return GA(e,t,r);case 4:return p0(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Za(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:kr(n,i),Zx(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,o=t.memoizedProps,a=i.value,ke(Df,n._currentValue),n._currentValue=a,o!==null)if(Kr(o.value,a)){if(o.children===i.children&&!Ht.current){t=Wn(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=Rn(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?u.next=u:(u.next=f.next,f.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),gy(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(H(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),gy(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Tt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,_a(t,r),i=_r(i),n=n(i),t.flags|=1,Tt(e,t,n,r),t.child;case 14:return n=t.type,i=kr(n,t.pendingProps),i=kr(n.type,i),Jx(e,t,n,i,r);case 15:return qA(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:kr(n,i),vf(e,t),t.tag=1,Kt(n)?(e=!0,If(t)):e=!1,_a(t,r),zA(t,n,i),xy(t,n,i,r),Oy(null,t,n,!0,e,r);case 19:return QA(e,t,r);case 22:return HA(e,t,r)}throw Error(H(156,t.tag))};function fE(e,t){return LP(e,t)}function FM(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 wr(e,t,r,n){return new FM(e,t,r,n)}function j0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function BM(e){if(typeof e=="function")return j0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gg)return 11;if(e===Qg)return 14}return 2}function ji(e,t){var r=e.alternate;return r===null?(r=wr(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 gf(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")j0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case na:return xo(r.children,i,o,t);case Vg:a=8,i|=8;break;case qv:return e=wr(12,r,t,i|2),e.elementType=qv,e.lanes=o,e;case Hv:return e=wr(13,r,t,i),e.elementType=Hv,e.lanes=o,e;case Kv:return e=wr(19,r,t,i),e.elementType=Kv,e.lanes=o,e;case wP:return mh(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bP:a=10;break e;case xP:a=9;break e;case Gg:a=11;break e;case Qg:a=14;break e;case ri:a=16,n=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=wr(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function xo(e,t,r,n){return e=wr(7,e,n,t),e.lanes=r,e}function mh(e,t,r,n){return e=wr(22,e,n,t),e.elementType=wP,e.lanes=r,e.stateNode={isHidden:!1},e}function Yp(e,t,r){return e=wr(6,e,null,t),e.lanes=r,e}function Zp(e,t,r){return t=wr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zM(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=kp(0),this.expirationTimes=kp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kp(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function C0(e,t,r,n,i,o,a,s,u){return e=new zM(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=wr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},h0(o),e}function UM(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ra,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function dE(e){if(!e)return Ii;e=e._reactInternals;e:{if(Lo(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Kt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var r=e.type;if(Kt(r))return dA(e,r,t)}return t}function hE(e,t,r,n,i,o,a,s,u){return e=C0(r,n,!0,e,i,o,a,s,u),e.context=dE(null),r=e.current,n=Nt(),i=$i(r),o=Rn(n,i),o.callback=t??null,Ai(r,o,i),e.current.lanes=i,Jl(e,i,n),Vt(e,n),e}function gh(e,t,r,n){var i=t.current,o=Nt(),a=$i(i);return r=dE(r),t.context===null?t.context=r:t.pendingContext=r,t=Rn(o,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Ai(i,t,a),e!==null&&(qr(e,i,a,o),df(e,i,a)),a}function Vf(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 fw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function T0(e,t){fw(e,t),(e=e.alternate)&&fw(e,t)}function WM(){return null}var pE=typeof reportError=="function"?reportError:function(e){console.error(e)};function k0(e){this._internalRoot=e}bh.prototype.render=k0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));gh(e,t,null,null)};bh.prototype.unmount=k0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jo(function(){gh(null,e,null,null)}),t[zn]=null}};function bh(e){this._internalRoot=e}bh.prototype.unstable_scheduleHydration=function(e){if(e){var t=HP();e={blockedOn:null,target:e,priority:t};for(var r=0;r<oi.length&&t!==0&&t<oi[r].priority;r++);oi.splice(r,0,e),r===0&&VP(e)}};function M0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dw(){}function qM(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var l=Vf(a);o.call(l)}}var a=hE(t,n,e,0,null,!1,!1,"",dw);return e._reactRootContainer=a,e[zn]=a.current,Ju(e.nodeType===8?e.parentNode:e),jo(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var l=Vf(u);s.call(l)}}var u=C0(e,0,!1,null,null,!1,!1,"",dw);return e._reactRootContainer=u,e[zn]=u.current,Ju(e.nodeType===8?e.parentNode:e),jo(function(){gh(t,u,r,n)}),u}function wh(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var u=Vf(a);s.call(u)}}gh(t,a,e,i)}else a=qM(r,t,e,i,n);return Vf(a)}WP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=wu(t.pendingLanes);r!==0&&(Zg(t,r|1),Vt(t,Ze()),!(me&6)&&(ts=Ze()+500,Li()))}break;case 13:jo(function(){var n=Un(e,1);if(n!==null){var i=Nt();qr(n,e,1,i)}}),T0(e,1)}};Jg=function(e){if(e.tag===13){var t=Un(e,134217728);if(t!==null){var r=Nt();qr(t,e,134217728,r)}T0(e,134217728)}};qP=function(e){if(e.tag===13){var t=$i(e),r=Un(e,t);if(r!==null){var n=Nt();qr(r,e,t,n)}T0(e,t)}};HP=function(){return _e};KP=function(e,t){var r=_e;try{return _e=e,t()}finally{_e=r}};ry=function(e,t,r){switch(t){case"input":if(Qv(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=fh(n);if(!i)throw Error(H(90));OP(n),Qv(n,i)}}}break;case"textarea":PP(e,r);break;case"select":t=r.value,t!=null&&xa(e,!!r.multiple,t,!1)}};kP=A0;MP=jo;var HM={usingClientEntryPoint:!1,Events:[tc,sa,fh,CP,TP,A0]},iu={findFiberByHostInstance:ro,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},KM={bundleType:iu.bundleType,version:iu.version,rendererPackageName:iu.rendererPackageName,rendererConfig:iu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Vn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=NP(e),e===null?null:e.stateNode},findFiberByHostInstance:iu.findFiberByHostInstance||WM,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 Fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fc.isDisabled&&Fc.supportsFiber)try{sh=Fc.inject(KM),dn=Fc}catch{}}sr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HM;sr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!M0(t))throw Error(H(200));return UM(e,t,null,r)};sr.createRoot=function(e,t){if(!M0(e))throw Error(H(299));var r=!1,n="",i=pE;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[zn]=t.current,Ju(e.nodeType===8?e.parentNode:e),new k0(t)};sr.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(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=NP(t),e=e===null?null:e.stateNode,e};sr.flushSync=function(e){return jo(e)};sr.hydrate=function(e,t,r){if(!xh(t))throw Error(H(200));return wh(null,e,t,!0,r)};sr.hydrateRoot=function(e,t,r){if(!M0(e))throw Error(H(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",a=pE;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=hE(t,null,e,1,r??null,i,!1,o,a),e[zn]=t.current,Ju(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 bh(t)};sr.render=function(e,t,r){if(!xh(t))throw Error(H(200));return wh(null,e,t,!1,r)};sr.unmountComponentAtNode=function(e){if(!xh(e))throw Error(H(40));return e._reactRootContainer?(jo(function(){wh(null,null,e,!1,function(){e._reactRootContainer=null,e[zn]=null})}),!0):!1};sr.unstable_batchedUpdates=A0;sr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!xh(r))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return wh(e,t,r,!1,n)};sr.version="18.3.1-next-f1338f8080-20240426";function vE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vE)}catch(e){console.error(e)}}vE(),vP.exports=sr;var yE=vP.exports,hw=yE;Uv.createRoot=hw.createRoot,Uv.hydrateRoot=hw.hydrateRoot;var Fo=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(){}},Co=typeof window>"u"||"Deno"in globalThis;function _t(){}function VM(e,t){return typeof e=="function"?e(t):e}function Ry(e){return typeof e=="number"&&e>=0&&e!==1/0}function mE(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ci(e,t){return typeof e=="function"?e(t):e}function zr(e,t){return typeof e=="function"?e(t):e}function pw(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==I0(a,t.options))return!1}else if(!ul(t.queryKey,a))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function vw(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Ri(t.options.mutationKey)!==Ri(o))return!1}else if(!ul(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function I0(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ri)(e)}function Ri(e){return JSON.stringify(e,(t,r)=>Ny(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function ul(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ul(e[r],t[r])):!1}function R0(e,t){if(e===t)return e;const r=yw(e)&&yw(t);if(r||Ny(e)&&Ny(t)){const n=r?e:Object.keys(e),i=n.length,o=r?t:Object.keys(t),a=o.length,s=r?[]:{},u=new Set(n);let l=0;for(let f=0;f<a;f++){const c=r?f:o[f];(!r&&u.has(c)||r)&&e[c]===void 0&&t[c]===void 0?(s[c]=void 0,l++):(s[c]=R0(e[c],t[c]),s[c]===e[c]&&e[c]!==void 0&&l++)}return i===a&&l===i?e:s}return t}function Gf(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 yw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ny(e){if(!mw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!mw(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function mw(e){return Object.prototype.toString.call(e)==="[object Object]"}function GM(e){return new Promise(t=>{setTimeout(t,e)})}function Dy(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?R0(e,t):t}function QM(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function XM(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var er=Symbol();function gE(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===er?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bE(e,t){return typeof e=="function"?e(...t):!!e}var lo,ui,Ia,V_,YM=(V_=class extends Fo{constructor(){super();te(this,lo);te(this,ui);te(this,Ia);X(this,Ia,t=>{if(!Co&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){j(this,ui)||this.setEventListener(j(this,Ia))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,ui))==null||t.call(this),X(this,ui,void 0))}setEventListener(t){var r;X(this,Ia,t),(r=j(this,ui))==null||r.call(this),X(this,ui,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){j(this,lo)!==t&&(X(this,lo,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof j(this,lo)=="boolean"?j(this,lo):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},lo=new WeakMap,ui=new WeakMap,Ia=new WeakMap,V_),N0=new YM,Ra,li,Na,G_,ZM=(G_=class extends Fo{constructor(){super();te(this,Ra,!0);te(this,li);te(this,Na);X(this,Na,t=>{if(!Co&&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(){j(this,li)||this.setEventListener(j(this,Na))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,li))==null||t.call(this),X(this,li,void 0))}setEventListener(t){var r;X(this,Na,t),(r=j(this,li))==null||r.call(this),X(this,li,t(this.setOnline.bind(this)))}setOnline(t){j(this,Ra)!==t&&(X(this,Ra,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return j(this,Ra)}},Ra=new WeakMap,li=new WeakMap,Na=new WeakMap,G_),Qf=new ZM;function Ly(){let e,t;const r=new Promise((i,o)=>{e=i,t=o});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}function JM(e){return Math.min(1e3*2**e,3e4)}function xE(e){return(e??"online")==="online"?Qf.isOnline():!0}var wE=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Jp(e){return e instanceof wE}function SE(e){let t=!1,r=0,n=!1,i;const o=Ly(),a=v=>{var g;n||(d(new wE(v)),(g=e.abort)==null||g.call(e))},s=()=>{t=!0},u=()=>{t=!1},l=()=>N0.isFocused()&&(e.networkMode==="always"||Qf.isOnline())&&e.canRun(),f=()=>xE(e.networkMode)&&e.canRun(),c=v=>{var g;n||(n=!0,(g=e.onSuccess)==null||g.call(e,v),i==null||i(),o.resolve(v))},d=v=>{var g;n||(n=!0,(g=e.onError)==null||g.call(e,v),i==null||i(),o.reject(v))},h=()=>new Promise(v=>{var g;i=m=>{(n||l())&&v(m)},(g=e.onPause)==null||g.call(e)}).then(()=>{var v;i=void 0,n||(v=e.onContinue)==null||v.call(e)}),p=()=>{if(n)return;let v;const g=r===0?e.initialPromise:void 0;try{v=g??e.fn()}catch(m){v=Promise.reject(m)}Promise.resolve(v).then(c).catch(m=>{var w;if(n)return;const y=e.retry??(Co?0:3),b=e.retryDelay??JM,O=typeof b=="function"?b(r,m):b,x=y===!0||typeof y=="number"&&r<y||typeof y=="function"&&y(r,m);if(t||!x){d(m);return}r++,(w=e.onFail)==null||w.call(e,r,m),GM(O).then(()=>l()?void 0:h()).then(()=>{t?d(m):p()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:u,canStart:f,start:()=>(f()?p():h().then(p),o)}}var eI=e=>setTimeout(e,0);function tI(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=eI;const o=s=>{t?e.push(s):i(()=>{r(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(u=>{r(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||a()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var Ye=tI(),co,Q_,OE=(Q_=class{constructor(){te(this,co)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ry(this.gcTime)&&X(this,co,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Co?1/0:5*60*1e3))}clearGcTimeout(){j(this,co)&&(clearTimeout(j(this,co)),X(this,co,void 0))}},co=new WeakMap,Q_),Da,fo,pr,ho,St,Hl,po,Mr,_n,X_,rI=(X_=class extends OE{constructor(t){super();te(this,Mr);te(this,Da);te(this,fo);te(this,pr);te(this,ho);te(this,St);te(this,Hl);te(this,po);X(this,po,!1),X(this,Hl,t.defaultOptions),this.setOptions(t.options),this.observers=[],X(this,ho,t.client),X(this,pr,j(this,ho).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,X(this,Da,nI(this.options)),this.state=t.state??j(this,Da),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,St))==null?void 0:t.promise}setOptions(t){this.options={...j(this,Hl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,pr).remove(this)}setData(t,r){const n=Dy(this.state.data,t,this.options);return ae(this,Mr,_n).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ae(this,Mr,_n).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=j(this,St))==null?void 0:n.promise;return(i=j(this,St))==null||i.cancel(t),r?r.then(_t).catch(_t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,Da))}isActive(){return this.observers.some(t=>zr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===er||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ci(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:!mE(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=j(this,St))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=j(this,St))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,pr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(j(this,St)&&(j(this,po)?j(this,St).cancel({revert:!0}):j(this,St).cancelRetry()),this.scheduleGc()),j(this,pr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ae(this,Mr,_n).call(this,{type:"invalidate"})}fetch(t,r){var l,f,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(j(this,St))return j(this,St).continueRetry(),j(this,St).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(X(this,po,!0),n.signal)})},o=()=>{const d=gE(this.options,r),p=(()=>{const v={client:j(this,ho),queryKey:this.queryKey,meta:this.meta};return i(v),v})();return X(this,po,!1),this.options.persister?this.options.persister(d,p,this):d(p)},s=(()=>{const d={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:j(this,ho),state:this.state,fetchFn:o};return i(d),d})();(l=this.options.behavior)==null||l.onFetch(s,this),X(this,fo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&ae(this,Mr,_n).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var h,p,v,g;Jp(d)&&d.silent||ae(this,Mr,_n).call(this,{type:"error",error:d}),Jp(d)||((p=(h=j(this,pr).config).onError)==null||p.call(h,d,this),(g=(v=j(this,pr).config).onSettled)==null||g.call(v,this.state.data,d,this)),this.scheduleGc()};return X(this,St,SE({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{var h,p,v,g;if(d===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(m){u(m);return}(p=(h=j(this,pr).config).onSuccess)==null||p.call(h,d,this),(g=(v=j(this,pr).config).onSettled)==null||g.call(v,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,h)=>{ae(this,Mr,_n).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{ae(this,Mr,_n).call(this,{type:"pause"})},onContinue:()=>{ae(this,Mr,_n).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),j(this,St).start()}},Da=new WeakMap,fo=new WeakMap,pr=new WeakMap,ho=new WeakMap,St=new WeakMap,Hl=new WeakMap,po=new WeakMap,Mr=new WeakSet,_n=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,..._E(n.data,this.options),fetchMeta:t.meta??null};case"success":return X(this,fo,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Jp(i)&&i.revert&&j(this,fo)?{...j(this,fo),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Ye.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),j(this,pr).notify({query:this,type:"updated",action:t})})},X_);function _E(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xE(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function nI(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 rn,Y_,iI=(Y_=class extends Fo{constructor(t={}){super();te(this,rn);this.config=t,X(this,rn,new Map)}build(t,r,n){const i=r.queryKey,o=r.queryHash??I0(i,r);let a=this.get(o);return a||(a=new rI({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){j(this,rn).has(t.queryHash)||(j(this,rn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=j(this,rn).get(t.queryHash);r&&(t.destroy(),r===t&&j(this,rn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,rn).get(t)}getAll(){return[...j(this,rn).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>pw(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>pw(t,n)):r}notify(t){Ye.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},rn=new WeakMap,Y_),nn,jt,vo,on,ti,Z_,oI=(Z_=class extends OE{constructor(t){super();te(this,on);te(this,nn);te(this,jt);te(this,vo);this.mutationId=t.mutationId,X(this,jt,t.mutationCache),X(this,nn,[]),this.state=t.state||PE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,nn).includes(t)||(j(this,nn).push(t),this.clearGcTimeout(),j(this,jt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){X(this,nn,j(this,nn).filter(r=>r!==t)),this.scheduleGc(),j(this,jt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,nn).length||(this.state.status==="pending"?this.scheduleGc():j(this,jt).remove(this))}continue(){var t;return((t=j(this,vo))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,s,u,l,f,c,d,h,p,v,g,m,y,b,O,x,w,S,_;const r=()=>{ae(this,on,ti).call(this,{type:"continue"})};X(this,vo,SE({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,A)=>{ae(this,on,ti).call(this,{type:"failed",failureCount:P,error:A})},onPause:()=>{ae(this,on,ti).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,jt).canRun(this)}));const n=this.state.status==="pending",i=!j(this,vo).canStart();try{if(n)r();else{ae(this,on,ti).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(o=j(this,jt).config).onMutate)==null?void 0:a.call(o,t,this));const A=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));A!==this.state.context&&ae(this,on,ti).call(this,{type:"pending",context:A,variables:t,isPaused:i})}const P=await j(this,vo).start();return await((f=(l=j(this,jt).config).onSuccess)==null?void 0:f.call(l,P,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,P,t,this.state.context)),await((p=(h=j(this,jt).config).onSettled)==null?void 0:p.call(h,P,null,this.state.variables,this.state.context,this)),await((g=(v=this.options).onSettled)==null?void 0:g.call(v,P,null,t,this.state.context)),ae(this,on,ti).call(this,{type:"success",data:P}),P}catch(P){try{throw await((y=(m=j(this,jt).config).onError)==null?void 0:y.call(m,P,t,this.state.context,this)),await((O=(b=this.options).onError)==null?void 0:O.call(b,P,t,this.state.context)),await((w=(x=j(this,jt).config).onSettled)==null?void 0:w.call(x,void 0,P,this.state.variables,this.state.context,this)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,P,t,this.state.context)),P}finally{ae(this,on,ti).call(this,{type:"error",error:P})}}finally{j(this,jt).runNext(this)}}},nn=new WeakMap,jt=new WeakMap,vo=new WeakMap,on=new WeakSet,ti=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),Ye.batch(()=>{j(this,nn).forEach(n=>{n.onMutationUpdate(t)}),j(this,jt).notify({mutation:this,type:"updated",action:t})})},Z_);function PE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $n,Ir,Kl,J_,aI=(J_=class extends Fo{constructor(t={}){super();te(this,$n);te(this,Ir);te(this,Kl);this.config=t,X(this,$n,new Set),X(this,Ir,new Map),X(this,Kl,0)}build(t,r,n){const i=new oI({mutationCache:this,mutationId:++wc(this,Kl)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){j(this,$n).add(t);const r=Bc(t);if(typeof r=="string"){const n=j(this,Ir).get(r);n?n.push(t):j(this,Ir).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,$n).delete(t)){const r=Bc(t);if(typeof r=="string"){const n=j(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&&j(this,Ir).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Bc(t);if(typeof r=="string"){const n=j(this,Ir).get(r),i=n==null?void 0:n.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=Bc(t);if(typeof r=="string"){const i=(n=j(this,Ir).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ye.batch(()=>{j(this,$n).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,$n).clear(),j(this,Ir).clear()})}getAll(){return Array.from(j(this,$n))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>vw(r,n))}findAll(t={}){return this.getAll().filter(r=>vw(t,r))}notify(t){Ye.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Ye.batch(()=>Promise.all(t.map(r=>r.continue().catch(_t))))}},$n=new WeakMap,Ir=new WeakMap,Kl=new WeakMap,J_);function Bc(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Xf(e){return{onFetch:(t,r)=>{var f,c,d,h,p;const n=t.options,i=(d=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:d.direction,o=((h=t.state.data)==null?void 0:h.pages)||[],a=((p=t.state.data)==null?void 0:p.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let v=!1;const g=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},m=gE(t.options,t.fetchOptions),y=async(b,O,x)=>{if(v)return Promise.reject();if(O==null&&b.pages.length)return Promise.resolve(b);const S=(()=>{const E={client:t.client,queryKey:t.queryKey,pageParam:O,direction:x?"backward":"forward",meta:t.options.meta};return g(E),E})(),_=await m(S),{maxPages:P}=t.options,A=x?XM:QM;return{pages:A(b.pages,_,P),pageParams:A(b.pageParams,O,P)}};if(i&&o.length){const b=i==="backward",O=b?AE:Fy,x={pages:o,pageParams:a},w=O(n,x);s=await y(x,w,b)}else{const b=e??o.length;do{const O=u===0?a[0]??n.initialPageParam:Fy(n,s);if(u>0&&O==null)break;s=await y(s,O),u++}while(u<b)}return s};t.options.persister?t.fetchFn=()=>{var v,g;return(g=(v=t.options).persister)==null?void 0:g.call(v,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function Fy(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 AE(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}function sI(e,t){return t?Fy(e,t)!=null:!1}function uI(e,t){return!t||!e.getPreviousPageParam?!1:AE(e,t)!=null}var Ge,ci,fi,La,Fa,di,Ba,za,eP,lI=(eP=class{constructor(e={}){te(this,Ge);te(this,ci);te(this,fi);te(this,La);te(this,Fa);te(this,di);te(this,Ba);te(this,za);X(this,Ge,e.queryCache||new iI),X(this,ci,e.mutationCache||new aI),X(this,fi,e.defaultOptions||{}),X(this,La,new Map),X(this,Fa,new Map),X(this,di,0)}mount(){wc(this,di)._++,j(this,di)===1&&(X(this,Ba,N0.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,Ge).onFocus())})),X(this,za,Qf.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,Ge).onOnline())})))}unmount(){var e,t;wc(this,di)._--,j(this,di)===0&&((e=j(this,Ba))==null||e.call(this),X(this,Ba,void 0),(t=j(this,za))==null||t.call(this),X(this,za,void 0))}isFetching(e){return j(this,Ge).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,ci).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=j(this,Ge).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=j(this,Ge).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Ci(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return j(this,Ge).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=j(this,Ge).get(n.queryHash),o=i==null?void 0:i.state.data,a=VM(t,o);if(a!==void 0)return j(this,Ge).build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return Ye.batch(()=>j(this,Ge).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=j(this,Ge).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=j(this,Ge);Ye.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=j(this,Ge);return Ye.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ye.batch(()=>j(this,Ge).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(_t).catch(_t)}invalidateQueries(e,t={}){return Ye.batch(()=>(j(this,Ge).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=Ye.batch(()=>j(this,Ge).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,r);return r.throwOnError||(o=o.catch(_t)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(_t)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=j(this,Ge).build(this,t);return r.isStaleByTime(Ci(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=Xf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_t).catch(_t)}ensureInfiniteQueryData(e){return e.behavior=Xf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Qf.isOnline()?j(this,ci).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,Ge)}getMutationCache(){return j(this,ci)}getDefaultOptions(){return j(this,fi)}setDefaultOptions(e){X(this,fi,e)}setQueryDefaults(e,t){j(this,La).set(Ri(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,La).values()],r={};return t.forEach(n=>{ul(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){j(this,Fa).set(Ri(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,Fa).values()],r={};return t.forEach(n=>{ul(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,fi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=I0(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===er&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,fi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,Ge).clear(),j(this,ci).clear()}},Ge=new WeakMap,ci=new WeakMap,fi=new WeakMap,La=new WeakMap,Fa=new WeakMap,di=new WeakMap,Ba=new WeakMap,za=new WeakMap,eP),Bt,ve,Vl,Ct,yo,Ua,hi,pi,Gl,Wa,qa,mo,go,vi,Ha,Oe,Ou,By,zy,Uy,Wy,qy,Hy,Ky,EE,tP,nc=(tP=class extends Fo{constructor(t,r){super();te(this,Oe);te(this,Bt);te(this,ve);te(this,Vl);te(this,Ct);te(this,yo);te(this,Ua);te(this,hi);te(this,pi);te(this,Gl);te(this,Wa);te(this,qa);te(this,mo);te(this,go);te(this,vi);te(this,Ha,new Set);this.options=r,X(this,Bt,t),X(this,pi,null),X(this,hi,Ly()),this.options.experimental_prefetchInRender||j(this,hi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,ve).addObserver(this),gw(j(this,ve),this.options)?ae(this,Oe,Ou).call(this):this.updateResult(),ae(this,Oe,Wy).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vy(j(this,ve),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vy(j(this,ve),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ae(this,Oe,qy).call(this),ae(this,Oe,Hy).call(this),j(this,ve).removeObserver(this)}setOptions(t){const r=this.options,n=j(this,ve);if(this.options=j(this,Bt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof zr(this.options.enabled,j(this,ve))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ae(this,Oe,Ky).call(this),j(this,ve).setOptions(this.options),r._defaulted&&!Gf(this.options,r)&&j(this,Bt).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,ve),observer:this});const i=this.hasListeners();i&&bw(j(this,ve),n,this.options,r)&&ae(this,Oe,Ou).call(this),this.updateResult(),i&&(j(this,ve)!==n||zr(this.options.enabled,j(this,ve))!==zr(r.enabled,j(this,ve))||Ci(this.options.staleTime,j(this,ve))!==Ci(r.staleTime,j(this,ve)))&&ae(this,Oe,By).call(this);const o=ae(this,Oe,zy).call(this);i&&(j(this,ve)!==n||zr(this.options.enabled,j(this,ve))!==zr(r.enabled,j(this,ve))||o!==j(this,vi))&&ae(this,Oe,Uy).call(this,o)}getOptimisticResult(t){const r=j(this,Bt).getQueryCache().build(j(this,Bt),t),n=this.createResult(r,t);return fI(this,n)&&(X(this,Ct,n),X(this,Ua,this.options),X(this,yo,j(this,ve).state)),n}getCurrentResult(){return j(this,Ct)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),Reflect.get(n,i))})}trackProp(t){j(this,Ha).add(t)}getCurrentQuery(){return j(this,ve)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=j(this,Bt).defaultQueryOptions(t),n=j(this,Bt).getQueryCache().build(j(this,Bt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ae(this,Oe,Ou).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,Ct)))}createResult(t,r){var P;const n=j(this,ve),i=this.options,o=j(this,Ct),a=j(this,yo),s=j(this,Ua),l=t!==n?t.state:j(this,Vl),{state:f}=t;let c={...f},d=!1,h;if(r._optimisticResults){const A=this.hasListeners(),E=!A&&gw(t,r),$=A&&bw(t,n,r,i);(E||$)&&(c={...c,..._E(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:p,errorUpdatedAt:v,status:g}=c;h=c.data;let m=!1;if(r.placeholderData!==void 0&&h===void 0&&g==="pending"){let A;o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(A=o.data,m=!0):A=typeof r.placeholderData=="function"?r.placeholderData((P=j(this,qa))==null?void 0:P.state.data,j(this,qa)):r.placeholderData,A!==void 0&&(g="success",h=Dy(o==null?void 0:o.data,A,r),d=!0)}if(r.select&&h!==void 0&&!m)if(o&&h===(a==null?void 0:a.data)&&r.select===j(this,Gl))h=j(this,Wa);else try{X(this,Gl,r.select),h=r.select(h),h=Dy(o==null?void 0:o.data,h,r),X(this,Wa,h),X(this,pi,null)}catch(A){X(this,pi,A)}j(this,pi)&&(p=j(this,pi),h=j(this,Wa),v=Date.now(),g="error");const y=c.fetchStatus==="fetching",b=g==="pending",O=g==="error",x=b&&y,w=h!==void 0,_={status:g,fetchStatus:c.fetchStatus,isPending:b,isSuccess:g==="success",isError:O,isInitialLoading:x,isLoading:x,data:h,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:v,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:y,isRefetching:y&&!b,isLoadingError:O&&!w,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:O&&w,isStale:D0(t,r),refetch:this.refetch,promise:j(this,hi)};if(this.options.experimental_prefetchInRender){const A=T=>{_.status==="error"?T.reject(_.error):_.data!==void 0&&T.resolve(_.data)},E=()=>{const T=X(this,hi,_.promise=Ly());A(T)},$=j(this,hi);switch($.status){case"pending":t.queryHash===n.queryHash&&A($);break;case"fulfilled":(_.status==="error"||_.data!==$.value)&&E();break;case"rejected":(_.status!=="error"||_.error!==$.reason)&&E();break}}return _}updateResult(){const t=j(this,Ct),r=this.createResult(j(this,ve),this.options);if(X(this,yo,j(this,ve).state),X(this,Ua,this.options),j(this,yo).data!==void 0&&X(this,qa,j(this,ve)),Gf(r,t))return;X(this,Ct,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!j(this,Ha).size)return!0;const a=new Set(o??j(this,Ha));return this.options.throwOnError&&a.add("error"),Object.keys(j(this,Ct)).some(s=>{const u=s;return j(this,Ct)[u]!==t[u]&&a.has(u)})};ae(this,Oe,EE).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ae(this,Oe,Wy).call(this)}},Bt=new WeakMap,ve=new WeakMap,Vl=new WeakMap,Ct=new WeakMap,yo=new WeakMap,Ua=new WeakMap,hi=new WeakMap,pi=new WeakMap,Gl=new WeakMap,Wa=new WeakMap,qa=new WeakMap,mo=new WeakMap,go=new WeakMap,vi=new WeakMap,Ha=new WeakMap,Oe=new WeakSet,Ou=function(t){ae(this,Oe,Ky).call(this);let r=j(this,ve).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(_t)),r},By=function(){ae(this,Oe,qy).call(this);const t=Ci(this.options.staleTime,j(this,ve));if(Co||j(this,Ct).isStale||!Ry(t))return;const n=mE(j(this,Ct).dataUpdatedAt,t)+1;X(this,mo,setTimeout(()=>{j(this,Ct).isStale||this.updateResult()},n))},zy=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,ve)):this.options.refetchInterval)??!1},Uy=function(t){ae(this,Oe,Hy).call(this),X(this,vi,t),!(Co||zr(this.options.enabled,j(this,ve))===!1||!Ry(j(this,vi))||j(this,vi)===0)&&X(this,go,setInterval(()=>{(this.options.refetchIntervalInBackground||N0.isFocused())&&ae(this,Oe,Ou).call(this)},j(this,vi)))},Wy=function(){ae(this,Oe,By).call(this),ae(this,Oe,Uy).call(this,ae(this,Oe,zy).call(this))},qy=function(){j(this,mo)&&(clearTimeout(j(this,mo)),X(this,mo,void 0))},Hy=function(){j(this,go)&&(clearInterval(j(this,go)),X(this,go,void 0))},Ky=function(){const t=j(this,Bt).getQueryCache().build(j(this,Bt),this.options);if(t===j(this,ve))return;const r=j(this,ve);X(this,ve,t),X(this,Vl,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},EE=function(t){Ye.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(j(this,Ct))}),j(this,Bt).getQueryCache().notify({query:j(this,ve),type:"observerResultsUpdated"})})},tP);function cI(e,t){return zr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function gw(e,t){return cI(e,t)||e.state.data!==void 0&&Vy(e,t,t.refetchOnMount)}function Vy(e,t,r){if(zr(t.enabled,e)!==!1&&Ci(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&D0(e,t)}return!1}function bw(e,t,r,n){return(e!==t||zr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&D0(e,r)}function D0(e,t){return zr(t.enabled,e)!==!1&&e.isStaleByTime(Ci(t.staleTime,e))}function fI(e,t){return!Gf(e.getCurrentResult(),t)}function xw(e,t){const r=new Set(t);return e.filter(n=>!r.has(n))}function dI(e,t,r){const n=e.slice(0);return n[t]=r,n}var Ka,vr,Va,Ga,yr,yi,Ql,Xl,Yl,bt,Gy,Qy,Xy,Yy,Zy,rP,hI=(rP=class extends Fo{constructor(t,r,n){super();te(this,bt);te(this,Ka);te(this,vr);te(this,Va);te(this,Ga);te(this,yr);te(this,yi);te(this,Ql);te(this,Xl);te(this,Yl,[]);X(this,Ka,t),X(this,Ga,n),X(this,Va,[]),X(this,yr,[]),X(this,vr,[]),this.setQueries(r)}onSubscribe(){this.listeners.size===1&&j(this,yr).forEach(t=>{t.subscribe(r=>{ae(this,bt,Yy).call(this,t,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,j(this,yr).forEach(t=>{t.destroy()})}setQueries(t,r){X(this,Va,t),X(this,Ga,r),Ye.batch(()=>{const n=j(this,yr),i=ae(this,bt,Xy).call(this,j(this,Va));X(this,Yl,i),i.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const o=i.map(u=>u.observer),a=o.map(u=>u.getCurrentResult()),s=o.some((u,l)=>u!==n[l]);n.length===o.length&&!s||(X(this,yr,o),X(this,vr,a),this.hasListeners()&&(xw(n,o).forEach(u=>{u.destroy()}),xw(o,n).forEach(u=>{u.subscribe(l=>{ae(this,bt,Yy).call(this,u,l)})}),ae(this,bt,Zy).call(this)))})}getCurrentResult(){return j(this,vr)}getQueries(){return j(this,yr).map(t=>t.getCurrentQuery())}getObservers(){return j(this,yr)}getOptimisticResult(t,r){const n=ae(this,bt,Xy).call(this,t),i=n.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[i,o=>ae(this,bt,Qy).call(this,o??i,r),()=>ae(this,bt,Gy).call(this,i,n)]}},Ka=new WeakMap,vr=new WeakMap,Va=new WeakMap,Ga=new WeakMap,yr=new WeakMap,yi=new WeakMap,Ql=new WeakMap,Xl=new WeakMap,Yl=new WeakMap,bt=new WeakSet,Gy=function(t,r){return r.map((n,i)=>{const o=t[i];return n.defaultedQueryOptions.notifyOnChangeProps?o:n.observer.trackResult(o,a=>{r.forEach(s=>{s.observer.trackProp(a)})})})},Qy=function(t,r){return r?((!j(this,yi)||j(this,vr)!==j(this,Xl)||r!==j(this,Ql))&&(X(this,Ql,r),X(this,Xl,j(this,vr)),X(this,yi,R0(j(this,yi),r(t)))),j(this,yi)):t},Xy=function(t){const r=new Map(j(this,yr).map(i=>[i.options.queryHash,i])),n=[];return t.forEach(i=>{const o=j(this,Ka).defaultQueryOptions(i),a=r.get(o.queryHash);a?n.push({defaultedQueryOptions:o,observer:a}):n.push({defaultedQueryOptions:o,observer:new nc(j(this,Ka),o)})}),n},Yy=function(t,r){const n=j(this,yr).indexOf(t);n!==-1&&(X(this,vr,dI(j(this,vr),n,r)),ae(this,bt,Zy).call(this))},Zy=function(){var t;if(this.hasListeners()){const r=j(this,yi),n=ae(this,bt,Gy).call(this,j(this,vr),j(this,Yl)),i=ae(this,bt,Qy).call(this,n,(t=j(this,Ga))==null?void 0:t.combine);r!==i&&Ye.batch(()=>{this.listeners.forEach(o=>{o(j(this,vr))})})}},rP),$E=class extends nc{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Xf()})}getOptimisticResult(e){return e.behavior=Xf(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var p,v;const{state:r}=e,n=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:a,isRefetchError:s}=n,u=(v=(p=r.fetchMeta)==null?void 0:p.fetchMore)==null?void 0:v.direction,l=a&&u==="forward",f=i&&u==="forward",c=a&&u==="backward",d=i&&u==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:sI(t,r.data),hasPreviousPage:uI(t,r.data),isFetchNextPageError:l,isFetchingNextPage:f,isFetchPreviousPageError:c,isFetchingPreviousPage:d,isRefetchError:s&&!l&&!c,isRefetching:o&&!f&&!d}}},mi,gi,zt,jn,Fn,bf,Jy,nP,pI=(nP=class extends Fo{constructor(r,n){super();te(this,Fn);te(this,mi);te(this,gi);te(this,zt);te(this,jn);X(this,mi,r),this.setOptions(n),this.bindMethods(),ae(this,Fn,bf).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=j(this,mi).defaultMutationOptions(r),Gf(this.options,n)||j(this,mi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:j(this,zt),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ri(n.mutationKey)!==Ri(this.options.mutationKey)?this.reset():((i=j(this,zt))==null?void 0:i.state.status)==="pending"&&j(this,zt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=j(this,zt))==null||r.removeObserver(this)}onMutationUpdate(r){ae(this,Fn,bf).call(this),ae(this,Fn,Jy).call(this,r)}getCurrentResult(){return j(this,gi)}reset(){var r;(r=j(this,zt))==null||r.removeObserver(this),X(this,zt,void 0),ae(this,Fn,bf).call(this),ae(this,Fn,Jy).call(this)}mutate(r,n){var i;return X(this,jn,n),(i=j(this,zt))==null||i.removeObserver(this),X(this,zt,j(this,mi).getMutationCache().build(j(this,mi),this.options)),j(this,zt).addObserver(this),j(this,zt).execute(r)}},mi=new WeakMap,gi=new WeakMap,zt=new WeakMap,jn=new WeakMap,Fn=new WeakSet,bf=function(){var n;const r=((n=j(this,zt))==null?void 0:n.state)??PE();X(this,gi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Jy=function(r){Ye.batch(()=>{var n,i,o,a,s,u,l,f;if(j(this,jn)&&this.hasListeners()){const c=j(this,gi).variables,d=j(this,gi).context;(r==null?void 0:r.type)==="success"?((i=(n=j(this,jn)).onSuccess)==null||i.call(n,r.data,c,d),(a=(o=j(this,jn)).onSettled)==null||a.call(o,r.data,null,c,d)):(r==null?void 0:r.type)==="error"&&((u=(s=j(this,jn)).onError)==null||u.call(s,r.error,c,d),(f=(l=j(this,jn)).onSettled)==null||f.call(l,void 0,r.error,c,d))}this.listeners.forEach(c=>{c(j(this,gi))})})},nP),jE=k.createContext(void 0),ic=e=>{const t=k.useContext(jE);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vI=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(jE.Provider,{value:e,children:t})),CE=k.createContext(!1),TE=()=>k.useContext(CE);CE.Provider;function yI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var mI=k.createContext(yI()),kE=()=>k.useContext(mI),ME=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},IE=e=>{k.useEffect(()=>{e.clearReset()},[e])},RE=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||bE(r,[e.error,n])),L0=(e,t)=>t.state.data===void 0,NE=e=>{if(e.suspense){const t=n=>n==="static"?n:Math.max(n??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...n)=>t(r(...n)):t(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},DE=(e,t)=>e.isLoading&&e.isFetching&&!t,em=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Yf=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function LE({queries:e,...t},r){const n=ic(r),i=TE(),o=kE(),a=k.useMemo(()=>e.map(v=>{const g=n.defaultQueryOptions(v);return g._optimisticResults=i?"isRestoring":"optimistic",g}),[e,n,i]);a.forEach(v=>{NE(v),ME(v,o)}),IE(o);const[s]=k.useState(()=>new hI(n,a,t)),[u,l,f]=s.getOptimisticResult(a,t.combine),c=!i&&t.subscribed!==!1;k.useSyncExternalStore(k.useCallback(v=>c?s.subscribe(Ye.batchCalls(v)):_t,[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),k.useEffect(()=>{s.setQueries(a,t)},[a,t,s]);const h=u.some((v,g)=>em(a[g],v))?u.flatMap((v,g)=>{const m=a[g];if(m){const y=new nc(n,m);if(em(m,v))return Yf(m,y,o);DE(v,i)&&Yf(m,y,o)}return[]}):[];if(h.length>0)throw Promise.all(h);const p=u.find((v,g)=>{const m=a[g];return m&&RE({result:v,errorResetBoundary:o,throwOnError:m.throwOnError,query:n.getQueryCache().get(m.queryHash),suspense:m.suspense})});if(p!=null&&p.error)throw p.error;return l(f())}function Sh(e,t,r){var c,d,h,p,v;const n=TE(),i=kE(),o=ic(r),a=o.defaultQueryOptions(e);(d=(c=o.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,a),a._optimisticResults=n?"isRestoring":"optimistic",NE(a),ME(a,i),IE(i);const s=!o.getQueryCache().get(a.queryHash),[u]=k.useState(()=>new t(o,a)),l=u.getOptimisticResult(a),f=!n&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(g=>{const m=f?u.subscribe(Ye.batchCalls(g)):_t;return u.updateResult(),m},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),k.useEffect(()=>{u.setOptions(a)},[a,u]),em(a,l))throw Yf(a,u,i);if(RE({result:l,errorResetBoundary:i,throwOnError:a.throwOnError,query:o.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw l.error;if((p=(h=o.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||p.call(h,a,l),a.experimental_prefetchInRender&&!Co&&DE(l,n)){const g=s?Yf(a,u,i):(v=o.getQueryCache().get(a.queryHash))==null?void 0:v.promise;g==null||g.catch(_t).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?l:u.trackResult(l)}function gI(e,t){return Sh(e,nc,t)}function bI(e,t){return Sh({...e,enabled:!0,suspense:!0,throwOnError:L0,placeholderData:void 0},nc,t)}function xI(e,t){return Sh({...e,enabled:!0,suspense:!0,throwOnError:L0},$E,t)}function wI(e,t){return LE({...e,queries:e.queries.map(r=>({...r,suspense:!0,throwOnError:L0,enabled:!0,placeholderData:void 0}))},t)}function SI(e,t){const r=ic(t);r.getQueryState(e.queryKey)||r.prefetchQuery(e)}function OI(e,t){const r=ic(t);r.getQueryState(e.queryKey)||r.prefetchInfiniteQuery(e)}function _I(e,t){const r=ic(t),[n]=k.useState(()=>new pI(r,e));k.useEffect(()=>{n.setOptions(e)},[n,e]);const i=k.useSyncExternalStore(k.useCallback(a=>n.subscribe(Ye.batchCalls(a)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=k.useCallback((a,s)=>{n.mutate(a,s).catch(_t)},[n]);if(i.error&&bE(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function PI(e,t){return Sh(e,$E,t)}function To(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const AI=typeof Symbol=="function"&&!!Symbol.asyncIterator;function FE(e){return AI&&To(e)&&Symbol.asyncIterator in e}var EI=Object.create,BE=Object.defineProperty,$I=Object.getOwnPropertyDescriptor,zE=Object.getOwnPropertyNames,jI=Object.getPrototypeOf,CI=Object.prototype.hasOwnProperty,oc=(e,t)=>function(){return t||(0,e[zE(e)[0]])((t={exports:{}}).exports,t),t.exports},TI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=zE(t),o=0,a=i.length,s;o<a;o++)s=i[o],!CI.call(e,s)&&s!==r&&BE(e,s,{get:(u=>t[u]).bind(null,s),enumerable:!(n=$I(t,s))||n.enumerable});return e},Oh=(e,t,r)=>(r=e!=null?EI(jI(e)):{},TI(BE(r,"default",{value:e,enumerable:!0}),e));const UE=()=>{},ww=e=>{Object.freeze&&Object.freeze(e)};function WE(e,t,r){var n;const i=t.join(".");return(n=r[i])!==null&&n!==void 0||(r[i]=new Proxy(UE,{get(o,a){if(!(typeof a!="string"||a==="then"))return WE(e,[...t,a],r)},apply(o,a,s){const u=t[t.length-1];let l={args:s,path:t};return u==="call"?l={args:s.length>=2?[s[1]]:[],path:t.slice(0,-1)}:u==="apply"&&(l={args:s.length>=2?s[1]:[],path:t.slice(0,-1)}),ww(l.args),ww(l.path),e(l)}})),r[i]}const _h=e=>WE(e,[],Object.create(null)),F0=e=>new Proxy(UE,{get(t,r){if(r!=="then")return e(r)}});var qE=oc({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),kI=oc({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=qE().default;function n(i,o){if(r(i)!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var s=a.call(i,o||"default");if(r(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),MI=oc({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=qE().default,n=kI();function i(o){var a=n(o,"string");return r(a)=="symbol"?a:a+""}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),HE=oc({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=MI();function n(i,o,a){return(o=r(o))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),B0=oc({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=HE();function n(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),s.push.apply(s,u)}return s}function i(o){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?n(Object(s),!0).forEach(function(u){r(o,u,s[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(s,u))})}return o}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});Oh(B0());Oh(HE());var zc=Oh(B0());function II(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,zc.default)((0,zc.default)({},e),{},{error:n})}}return{ok:!0,result:(0,zc.default)((0,zc.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var ev=class extends Error{constructor(){super("Unable to transform response from server")}};function RI(e,t){let r;try{r=II(e,t)}catch{throw new ev}if(!r.ok&&(!To(r.error.error)||typeof r.error.error.code!="number"))throw new ev;if(r.ok&&!To(r.result))throw new ev;return r}Oh(B0());function Ph(e){const t={subscribe(r){let n=null,i=!1,o=!1,a=!1;function s(){if(n===null){a=!0;return}o||(o=!0,typeof n=="function"?n():n&&n.unsubscribe())}return n=e({next(u){var l;i||(l=r.next)===null||l===void 0||l.call(r,u)},error(u){var l;i||(i=!0,(l=r.error)===null||l===void 0||l.call(r,u),s())},complete(){var u;i||(i=!0,(u=r.complete)===null||u===void 0||u.call(r),s())}}),a&&s(),{unsubscribe:s}},pipe(...r){return r.reduce(NI,t)}};return t}function NI(e,t){return t(e)}function DI(e){const t=new AbortController;return new Promise((n,i)=>{let o=!1;function a(){o||(o=!0,s.unsubscribe())}t.signal.addEventListener("abort",()=>{i(t.signal.reason)});const s=e.subscribe({next(u){o=!0,n(u),a()},error(u){i(u)},complete(){t.abort(),a()}})})}var LI=Object.create,KE=Object.defineProperty,FI=Object.getOwnPropertyDescriptor,VE=Object.getOwnPropertyNames,BI=Object.getPrototypeOf,zI=Object.prototype.hasOwnProperty,Fi=(e,t)=>function(){return t||(0,e[VE(e)[0]])((t={exports:{}}).exports,t),t.exports},UI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=VE(t),o=0,a=i.length,s;o<a;o++)s=i[o],!zI.call(e,s)&&s!==r&&KE(e,s,{get:(u=>t[u]).bind(null,s),enumerable:!(n=FI(t,s))||n.enumerable});return e},Bo=(e,t,r)=>(r=e!=null?LI(BI(e)):{},UI(t||!e||!e.__esModule?KE(r,"default",{value:e,enumerable:!0}):r,e)),WI=Fi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function r(n,i){if(n==null)return{};var o={};for(var a in n)if({}.hasOwnProperty.call(n,a)){if(i.includes(a))continue;o[a]=n[a]}return o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),qI=Fi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var r=WI();function n(i,o){if(i==null)return{};var a,s,u=r(i,o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(s=0;s<l.length;s++)a=l[s],o.includes(a)||{}.propertyIsEnumerable.call(i,a)&&(u[a]=i[a])}return u}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),GE=Fi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),HI=Fi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=GE().default;function n(i,o){if(r(i)!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var s=a.call(i,o||"default");if(r(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),KI=Fi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=GE().default,n=HI();function i(o){var a=n(o,"string");return r(a)=="symbol"?a:a+""}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),VI=Fi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=KI();function n(i,o,a){return(o=r(o))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),ac=Fi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=VI();function n(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),s.push.apply(s,u)}return s}function i(o){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?n(Object(s),!0).forEach(function(u){r(o,u,s[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(s,u))})}return o}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),GI=Bo(qI(),1),Sw=Bo(ac(),1);const QI=["cursor","direction"];function tn(e,t,r){const n=e.flatMap(i=>i.split("."));if(!t&&(!r||r==="any"))return n.length?[n]:[];if(r==="infinite"&&To(t)&&("direction"in t||"cursor"in t)){const{cursor:i,direction:o}=t,a=(0,GI.default)(t,QI);return[n,{input:a,type:"infinite"}]}return[n,(0,Sw.default)((0,Sw.default)({},typeof t<"u"&&t!==er&&{input:t}),r&&r!=="any"&&{type:r})]}function xf(e){return tn(e,void 0,"any")}var XI=Object.create,QE=Object.defineProperty,YI=Object.getOwnPropertyDescriptor,XE=Object.getOwnPropertyNames,ZI=Object.getPrototypeOf,JI=Object.prototype.hasOwnProperty,bn=(e,t)=>function(){return t||(0,e[XE(e)[0]])((t={exports:{}}).exports,t),t.exports},eR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=XE(t),o=0,a=i.length,s;o<a;o++)s=i[o],!JI.call(e,s)&&s!==r&&QE(e,s,{get:(u=>t[u]).bind(null,s),enumerable:!(n=YI(t,s))||n.enumerable});return e},Je=(e,t,r)=>(r=e!=null?XI(ZI(e)):{},eR(QE(r,"default",{value:e,enumerable:!0}),e)),YE=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),tR=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=YE().default;function n(i,o){if(r(i)!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var s=a.call(i,o||"default");if(r(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),rR=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=YE().default,n=tR();function i(o){var a=n(o,"string");return r(a)=="symbol"?a:a+""}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),zo=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=rR();function n(i,o,a){return(o=r(o))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Vr=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=zo();function n(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),s.push.apply(s,u)}return s}function i(o){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?n(Object(s),!0).forEach(function(u){r(o,u,s[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(s,u))})}return o}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});function nR(e){return t=>{let r=0,n=null;const i=[];function o(){n||(n=t.subscribe({next(s){for(const l of i){var u;(u=l.next)===null||u===void 0||u.call(l,s)}},error(s){for(const l of i){var u;(u=l.error)===null||u===void 0||u.call(l,s)}},complete(){for(const u of i){var s;(s=u.complete)===null||s===void 0||s.call(u)}}}))}function a(){if(r===0&&n){const s=n;n=null,s.unsubscribe()}}return Ph(s=>(r++,i.push(s),o(),{unsubscribe(){r--,a();const u=i.findIndex(l=>l===s);u>-1&&i.splice(u,1)}}))}}function iR(e){let t=e;const r=[],n=a=>{t!==void 0&&a.next(t),r.push(a)},i=a=>{r.splice(r.indexOf(a),1)},o=Ph(a=>(n(a),()=>{i(a)}));return o.next=a=>{if(t!==a){t=a;for(const s of r)s.next(a)}},o.get=()=>t,o}function oR(e){return Ph(t=>{function r(i=0,o=e.op){const a=e.links[i];if(!a)throw new Error("No more links to execute - did you forget to add an ending link?");return a({op:o,next(u){return r(i+1,u)}})}return r().subscribe(t)})}var Uc=Je(zo()),Qo=Je(Vr());function aR(e){return e instanceof Zf}function sR(e){return To(e)&&To(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function uR(e,t){return typeof e=="string"?e:To(e)&&typeof e.message=="string"?e.message:t}var Zf=class wf extends Error{constructor(t,r){var n,i;const o=r==null?void 0:r.cause;super(t,{cause:o}),(0,Uc.default)(this,"cause",void 0),(0,Uc.default)(this,"shape",void 0),(0,Uc.default)(this,"data",void 0),(0,Uc.default)(this,"meta",void 0),this.meta=r==null?void 0:r.meta,this.cause=o,this.shape=r==null||(n=r.result)===null||n===void 0?void 0:n.error,this.data=r==null||(i=r.result)===null||i===void 0?void 0:i.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,wf.prototype)}static from(t,r={}){const n=t;return aR(n)?(r.meta&&(n.meta=(0,Qo.default)((0,Qo.default)({},n.meta),r.meta)),n):sR(n)?new wf(n.error.message,(0,Qo.default)((0,Qo.default)({},r),{},{result:n})):new wf(uR(n,"Unknown error"),(0,Qo.default)((0,Qo.default)({},r),{},{cause:n}))}};function lR(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:r=>r,deserialize:r=>r},output:{serialize:r=>r,deserialize:r=>r}}}const Ow=e=>typeof e=="function";function cR(e){if(e)return e;if(typeof window<"u"&&Ow(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Ow(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Nu=Je(Vr());function fR(e){return{url:e.url.toString(),fetch:e.fetch,transformer:lR(e.transformer),methodOverride:e.methodOverride}}function dR(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[r]=n}return t}const hR={query:"GET",mutation:"POST",subscription:"PATCH"};function ZE(e){return"input"in e?e.transformer.input.serialize(e.input):dR(e.inputs.map(t=>e.transformer.input.serialize(t)))}const JE=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const i=[];if(t[1]&&i.push(t[1]),"inputs"in e&&i.push("batch=1"),e.type==="query"||e.type==="subscription"){const o=ZE(e);o!==void 0&&e.methodOverride!=="POST"&&i.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return i.length&&(n+="?"+i.join("&")),n},pR=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=ZE(e);return t!==void 0?JSON.stringify(t):void 0},vR=e=>bR((0,Nu.default)((0,Nu.default)({},e),{},{contentTypeHeader:"application/json",getUrl:JE,getBody:pR}));var yR=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const mR=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new yR};async function gR(e){var t;mR(e.signal);const r=e.getUrl(e),n=e.getBody(e),{type:i}=e,o=await(async()=>{const s=await e.headers();return Symbol.iterator in s?Object.fromEntries(s):s})(),a=(0,Nu.default)((0,Nu.default)((0,Nu.default)({},e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),o);return cR(e.fetch)(r,{method:(t=e.methodOverride)!==null&&t!==void 0?t:hR[i],signal:e.signal,body:n,headers:a})}async function bR(e){const t={},r=await gR(e);t.response=r;const n=await r.json();return t.responseJSON=n,{json:n,meta:t}}Je(Vr());const _w=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Pw(e){let t=null,r=null;const n=()=>{clearTimeout(r),r=null,t=null};function i(s){const u=[[]];let l=0;for(;;){const d=s[l];if(!d)break;const h=u[u.length-1];if(d.aborted){var f;(f=d.reject)===null||f===void 0||f.call(d,new Error("Aborted")),l++;continue}if(e.validate(h.concat(d).map(v=>v.key))){h.push(d),l++;continue}if(h.length===0){var c;(c=d.reject)===null||c===void 0||c.call(d,new Error("Input is too big for a single dispatch")),l++;continue}u.push([])}return u}function o(){const s=i(t);n();for(const u of s){if(!u.length)continue;const l={items:u};for(const c of u)c.batch=l;e.fetch(l.items.map(c=>c.key)).then(async c=>{await Promise.all(c.map(async(h,p)=>{const v=l.items[p];try{var g;const y=await Promise.resolve(h);(g=v.resolve)===null||g===void 0||g.call(v,y)}catch(y){var m;(m=v.reject)===null||m===void 0||m.call(v,y)}v.batch=null,v.reject=null,v.resolve=null}));for(const h of l.items){var d;(d=h.reject)===null||d===void 0||d.call(h,new Error("Missing result")),h.batch=null}}).catch(c=>{for(const h of l.items){var d;(d=h.reject)===null||d===void 0||d.call(h,c),h.batch=null}})}}function a(s){var u;const l={aborted:!1,key:s,batch:null,resolve:_w,reject:_w},f=new Promise((c,d)=>{var h;l.reject=d,l.resolve=c,(h=t)!==null&&h!==void 0||(t=[]),t.push(l)});return(u=r)!==null&&u!==void 0||(r=setTimeout(o)),f}return{load:a}}function xR(...e){const t=new AbortController,r=e.length;let n=0;const i=()=>{++n===r&&t.abort()};for(const o of e)o!=null&&o.aborted?i():o==null||o.addEventListener("abort",i,{once:!0});return t.signal}var Wc=Je(Vr());function wR(e){var t,r;const n=fR(e),i=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,o=(r=e.maxItems)!==null&&r!==void 0?r:1/0;return()=>{const a=f=>({validate(c){if(i===1/0&&o===1/0)return!0;if(c.length>o)return!1;const d=c.map(v=>v.path).join(","),h=c.map(v=>v.input);return JE((0,Wc.default)((0,Wc.default)({},n),{},{type:f,path:d,inputs:h,signal:null})).length<=i},async fetch(c){const d=c.map(y=>y.path).join(","),h=c.map(y=>y.input),p=xR(...c.map(y=>y.signal)),v=await vR((0,Wc.default)((0,Wc.default)({},n),{},{path:d,inputs:h,type:f,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:c}):e.headers:{}},signal:p}));return(Array.isArray(v.json)?v.json:c.map(()=>v.json)).map(y=>({meta:v.meta,json:y}))}}),s=Pw(a("query")),u=Pw(a("mutation")),l={query:s,mutation:u};return({op:f})=>Ph(c=>{/* istanbul ignore if -- @preserve */if(f.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const h=l[f.type].load(f);let p;return h.then(v=>{p=v;const g=RI(v.json,n.transformer.output);if(!g.ok){c.error(Zf.from(g.error,{meta:v.meta}));return}c.next({context:v.meta,result:g.result}),c.complete()}).catch(v=>{c.error(Zf.from(v,{meta:p==null?void 0:p.meta}))}),()=>{}})}}Je(Vr());const e$=(e,...t)=>typeof e=="function"?e(...t):e;Je(zo());function SR(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}}async function OR(e){const t=await e$(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function _R(e){const t={method:"connectionParams",data:await e$(e)};return JSON.stringify(t)}Je(zo());var Xi=Je(zo());function PR(e){const{promise:t,resolve:r,reject:n}=SR();return e.addEventListener("open",()=>{e.removeEventListener("error",n),r()}),e.addEventListener("error",n),t}function AR(e,{intervalMs:t,pongTimeoutMs:r}){let n,i;function o(){n=setTimeout(()=>{e.send("PING"),i=setTimeout(()=>{e.close()},r)},t)}function a(){clearTimeout(n),o()}function s(){clearTimeout(i),a()}e.addEventListener("open",o),e.addEventListener("message",({data:u})=>{clearTimeout(n),o(),u==="PONG"&&s()}),e.addEventListener("close",()=>{clearTimeout(n),clearTimeout(i)})}var ER=class tm{constructor(t){var r;if((0,Xi.default)(this,"id",++tm.connectCount),(0,Xi.default)(this,"WebSocketPonyfill",void 0),(0,Xi.default)(this,"urlOptions",void 0),(0,Xi.default)(this,"keepAliveOpts",void 0),(0,Xi.default)(this,"wsObservable",iR(null)),(0,Xi.default)(this,"openPromise",null),this.WebSocketPonyfill=(r=t.WebSocketPonyfill)!==null&&r!==void 0?r:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++tm.connectCount;const r=OR(t.urlOptions).then(n=>new t.WebSocketPonyfill(n));t.openPromise=r.then(async n=>{t.ws=n,n.addEventListener("message",function({data:i}){i==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&AR(n,t.keepAliveOpts),n.addEventListener("close",()=>{t.ws===n&&(t.ws=null)}),await PR(n),t.urlOptions.connectionParams&&n.send(await _R(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var r;(r=t.ws)===null||r===void 0||r.close()}}};(0,Xi.default)(ER,"connectCount",0);Je(zo());Je(Vr());var tv=Je(zo()),Aw=Je(Vr()),Ah=class{constructor(e){(0,tv.default)(this,"links",void 0),(0,tv.default)(this,"runtime",void 0),(0,tv.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return oR({links:this.links,op:(0,Aw.default)((0,Aw.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(nR())}async requestAsPromise(e){var t=this;try{const r=t.$request(e);return(await DI(r)).result.data}catch(r){throw Zf.from(r)}}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:r==null?void 0:r.context,signal:r==null?void 0:r.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:r==null?void 0:r.context,signal:r==null?void 0:r.signal})}subscription(e,t,r){return this.$request({type:"subscription",path:e,input:t,context:r.context,signal:r.signal}).subscribe({next(i){switch(i.result.type){case"state":{var o;(o=r.onConnectionStateChange)===null||o===void 0||o.call(r,i.result);break}case"started":{var a;(a=r.onStarted)===null||a===void 0||a.call(r,{context:i.context});break}case"stopped":{var s;(s=r.onStopped)===null||s===void 0||s.call(r);break}case"data":case void 0:{var u;(u=r.onData)===null||u===void 0||u.call(r,i.result.data);break}}},error(i){var o;(o=r.onError)===null||o===void 0||o.call(r,i)},complete(){var i;(i=r.onComplete)===null||i===void 0||i.call(r)}})}};const t$=Symbol.for("trpc_untypedClient"),$R={query:"query",mutate:"mutation",subscribe:"subscription"},jR=e=>$R[e];function r$(e){const t=_h(({path:r,args:n})=>{const i=[...r],o=jR(i.pop()),a=i.join(".");return e[o](a,...n)});return F0(r=>r===t$?e:t[r])}function CR(e){const t=new Ah(e);return r$(t)}function z0(e){return e[t$]}Je(Vr());Je(Vr());var TR=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(i){var o,a,s,u=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,s=Symbol.iterator);u--;){if(a&&(o=i[a])!=null)return o.call(i);if(s&&(o=i[s])!=null)return new n(o.call(i));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function n(i){function o(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var s=a.done;return Promise.resolve(a.value).then(function(u){return{value:u,done:s}})}return n=function(s){this.s=s,this.n=s.next},n.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(s){var u=this.s.return;return u===void 0?Promise.resolve({value:s,done:!0}):o(u.apply(this.s,arguments))},throw:function(s){var u=this.s.return;return u===void 0?Promise.reject(s):o(u.apply(this.s,arguments))}},new n(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Je(TR());Je(Vr());var kR=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function r(){var n=typeof SuppressedError=="function"?SuppressedError:function(s,u){var l=Error();return l.name="SuppressedError",l.error=s,l.suppressed=u,l},i={},o=[];function a(s,u){if(u!=null){if(Object(u)!==u)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(s)var l=u[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(l===void 0&&(l=u[Symbol.dispose||Symbol.for("Symbol.dispose")],s))var f=l;if(typeof l!="function")throw new TypeError("Object is not disposable.");f&&(l=function(){try{f.call(u)}catch(d){return Promise.reject(d)}}),o.push({v:u,d:l,a:s})}else s&&o.push({d:u,a:s});return u}return{e:i,u:a.bind(null,!1),a:a.bind(null,!0),d:function(){var u,l=this.e,f=0;function c(){for(;u=o.pop();)try{if(!u.a&&f===1)return f=0,o.push(u),Promise.resolve().then(c);if(u.d){var h=u.d.call(u.v);if(u.a)return f|=2,Promise.resolve(h).then(c,d)}else f|=1}catch(p){return d(p)}if(f===1)return l!==i?Promise.reject(l):Promise.resolve();if(l!==i)throw l}function d(h){return l=l!==i?new n(h,l):h,c()}return c()}}}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),n$=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function r(n,i){this.v=n,this.k=i}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),MR=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var r=n$();function n(i){return new r(i,0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),IR=bn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var r=n$();function n(o){return function(){return new i(o.apply(this,arguments))}}function i(o){var a,s;function u(f,c){try{var d=o[f](c),h=d.value,p=h instanceof r;Promise.resolve(p?h.v:h).then(function(v){if(p){var g=f==="return"?"return":"next";if(!h.k||v.done)return u(g,v);v=o[g](v).value}l(d.done?"return":"normal",v)},function(v){u("throw",v)})}catch(v){l("throw",v)}}function l(f,c){switch(f){case"return":a.resolve({value:c,done:!0});break;case"throw":a.reject(c);break;default:a.resolve({value:c,done:!1})}(a=a.next)?u(a.key,a.arg):s=null}this._invoke=function(f,c){return new Promise(function(d,h){var p={key:f,arg:c,resolve:d,reject:h,next:null};s?s=s.next=p:(a=s=p,u(f,c))})},typeof o.return!="function"&&(this.return=void 0)}i.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(o){return this._invoke("next",o)},i.prototype.throw=function(o){return this._invoke("throw",o)},i.prototype.return=function(o){return this._invoke("return",o)},t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Je(kR());Je(MR());Je(IR());Je(Vr());function RR(e){return _h(({path:t,args:r})=>{var n;const i=[...t],o=i.pop();if(o==="useMutation")return e[o](i,...r);if(o==="_def")return{path:i};const[a,...s]=r,u=(n=s[0])!==null&&n!==void 0?n:{};return e[o](i,a,u)})}var rv;const NR=["client","ssrContext","ssrState","abortOnUnmount"],DR=(rv=k.createContext)===null||rv===void 0?void 0:rv.call(Nk,null),LR=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function FR(e){return _h(t=>{const r=[...t.path],n=r.pop(),i=[...t.args],o=i.shift(),a=LR(n),s=tn(r,o,a);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(r,s,i[0]),queryOptions:()=>e.queryOptions(r,s,...i),fetch:()=>e.fetchQuery(s,...i),fetchInfinite:()=>e.fetchInfiniteQuery(s,i[0]),prefetch:()=>e.prefetchQuery(s,...i),prefetchInfinite:()=>e.prefetchInfiniteQuery(s,i[0]),ensureData:()=>e.ensureQueryData(s,...i),invalidate:()=>e.invalidateQueries(s,...i),reset:()=>e.resetQueries(s,...i),refetch:()=>e.refetchQueries(s,...i),cancel:()=>e.cancelQuery(s,...i),setData:()=>{e.setQueryData(s,i[0],i[1])},setQueriesData:()=>e.setQueriesData(s,i[0],i[1],i[2]),setInfiniteData:()=>{e.setInfiniteQueryData(s,i[0],i[1])},getData:()=>e.getQueryData(s),getInfiniteData:()=>e.getInfiniteQueryData(s),setMutationDefaults:()=>e.setMutationDefaults(xf(r),o),getMutationDefaults:()=>e.getMutationDefaults(xf(r)),isMutating:()=>e.isMutating({mutationKey:xf(r)})}[n]()})}function BR(e){const t=r$(e.client),r=FR(e);return F0(n=>{const i=n;return i==="client"?t:NR.includes(i)?e[i]:r[n]})}var zR=Bo(ac(),1);function Ew(e){const t=e instanceof Ah?e:z0(e);return _h(r=>{const n=r.path,i=n.join("."),[o,a]=r.args;return(0,zR.default)({queryKey:tn(n,o,"query"),queryFn:()=>t.query(i,o,a==null?void 0:a.trpc)},a)})}var nv=Bo(ac(),1);function kt(e,t,r){var n;const i=e[0];let o=(n=e[1])===null||n===void 0?void 0:n.input;if(r){var a;o=(0,nv.default)((0,nv.default)((0,nv.default)({},(a=o)!==null&&a!==void 0?a:{}),r.pageParam?{cursor:r.pageParam}:{}),{},{direction:r.direction})}return[i.join("."),o,t==null?void 0:t.trpc]}var UR=Fi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(i){var o,a,s,u=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,s=Symbol.iterator);u--;){if(a&&(o=i[a])!=null)return o.call(i);if(s&&(o=i[s])!=null)return new n(o.call(i));a="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function n(i){function o(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var s=a.done;return Promise.resolve(a.value).then(function(u){return{value:u,done:s}})}return n=function(s){this.s=s,this.n=s.next},n.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(s){var u=this.s.return;return u===void 0?Promise.resolve({value:s,done:!0}):o(u.apply(this.s,arguments))},throw:function(s){var u=this.s.return;return u===void 0?Promise.reject(s):o(u.apply(this.s,arguments))}},new n(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),WR=Bo(UR(),1);function rm(e){return{path:e.path.join(".")}}function ou(e){const t=rm(e);return k.useMemo(()=>t,[t])}async function i$(e,t,r){const i=t.getQueryCache().build(t,{queryKey:r});i.setState({data:[],status:"success"});const o=[];var a=!1,s=!1,u;try{for(var l=(0,WR.default)(e),f;a=!(f=await l.next()).done;a=!1){const c=f.value;o.push(c),i.setState({data:[...o]})}}catch(c){s=!0,u=c}finally{try{a&&l.return!=null&&await l.return()}finally{if(s)throw u}}return o}var be=Bo(ac(),1);function qR(e){const{client:t,queryClient:r}=e,n=t instanceof Ah?t:z0(t);return{infiniteQueryOptions:(i,o,a)=>{var s,u;const l=((s=o[1])===null||s===void 0?void 0:s.input)===er,f=async c=>{var d;const h=(0,be.default)((0,be.default)({},a),{},{trpc:(0,be.default)((0,be.default)({},a==null?void 0:a.trpc),!(a==null||(d=a.trpc)===null||d===void 0)&&d.abortOnUnmount?{signal:c.signal}:{signal:null})});return await n.query(...kt(o,h,{direction:c.direction,pageParam:c.pageParam}))};return Object.assign((0,be.default)((0,be.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:o,queryFn:l?er:f,initialPageParam:(u=a==null?void 0:a.initialCursor)!==null&&u!==void 0?u:null}),{trpc:rm({path:i})})},queryOptions:(i,o,a)=>{var s;const u=((s=o[1])===null||s===void 0?void 0:s.input)===er,l=async f=>{var c;const d=(0,be.default)((0,be.default)({},a),{},{trpc:(0,be.default)((0,be.default)({},a==null?void 0:a.trpc),!(a==null||(c=a.trpc)===null||c===void 0)&&c.abortOnUnmount?{signal:f.signal}:{signal:null})}),h=await n.query(...kt(o,d));return FE(h)?i$(h,r,o):h};return Object.assign((0,be.default)((0,be.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:o,queryFn:u?er:l}),{trpc:rm({path:i})})},fetchQuery:(i,o)=>r.fetchQuery((0,be.default)((0,be.default)({},o),{},{queryKey:i,queryFn:()=>n.query(...kt(i,o))})),fetchInfiniteQuery:(i,o)=>{var a;return r.fetchInfiniteQuery((0,be.default)((0,be.default)({},o),{},{queryKey:i,queryFn:({pageParam:s,direction:u})=>n.query(...kt(i,o,{pageParam:s,direction:u})),initialPageParam:(a=o==null?void 0:o.initialCursor)!==null&&a!==void 0?a:null}))},prefetchQuery:(i,o)=>r.prefetchQuery((0,be.default)((0,be.default)({},o),{},{queryKey:i,queryFn:()=>n.query(...kt(i,o))})),prefetchInfiniteQuery:(i,o)=>{var a;return r.prefetchInfiniteQuery((0,be.default)((0,be.default)({},o),{},{queryKey:i,queryFn:({pageParam:s,direction:u})=>n.query(...kt(i,o,{pageParam:s,direction:u})),initialPageParam:(a=o==null?void 0:o.initialCursor)!==null&&a!==void 0?a:null}))},ensureQueryData:(i,o)=>r.ensureQueryData((0,be.default)((0,be.default)({},o),{},{queryKey:i,queryFn:()=>n.query(...kt(i,o))})),invalidateQueries:(i,o,a)=>r.invalidateQueries((0,be.default)((0,be.default)({},o),{},{queryKey:i}),a),resetQueries:(i,o,a)=>r.resetQueries((0,be.default)((0,be.default)({},o),{},{queryKey:i}),a),refetchQueries:(i,o,a)=>r.refetchQueries((0,be.default)((0,be.default)({},o),{},{queryKey:i}),a),cancelQuery:(i,o)=>r.cancelQueries({queryKey:i},o),setQueryData:(i,o,a)=>r.setQueryData(i,o,a),setQueriesData:(i,o,a,s)=>r.setQueriesData((0,be.default)((0,be.default)({},o),{},{queryKey:i}),a,s),getQueryData:i=>r.getQueryData(i),setInfiniteQueryData:(i,o,a)=>r.setQueryData(i,o,a),getInfiniteQueryData:i=>r.getQueryData(i),setMutationDefaults:(i,o)=>{const a=i[0],s=u=>n.mutation(...kt([a,{input:u}],e));return r.setMutationDefaults(i,typeof o=="function"?o({canonicalMutationFn:s}):o)},getMutationDefaults:i=>r.getMutationDefaults(i),isMutating:i=>r.isMutating((0,be.default)((0,be.default)({},i),{},{exact:!0}))}}var Y=Bo(ac());const $w=(e,t)=>new Proxy(e,{get(n,i){return t(i),n[i]}});function HR(e){var t,r;const n=(t=void 0)!==null&&t!==void 0?t:x=>x.originalFn(),i=(r=void 0)!==null&&r!==void 0?r:DR,o=CR,a=x=>{var w;const{abortOnUnmount:S=!1,queryClient:_,ssrContext:P}=x,[A,E]=k.useState((w=x.ssrState)!==null&&w!==void 0?w:!1),$=x.client instanceof Ah?x.client:z0(x.client),T=k.useMemo(()=>qR({client:$,queryClient:_}),[$,_]),I=k.useMemo(()=>(0,Y.default)({abortOnUnmount:S,queryClient:_,client:$,ssrContext:P??null,ssrState:A},T),[S,$,T,_,P,A]);return k.useEffect(()=>{E(D=>D?"mounted":!1)},[]),R.jsx(i.Provider,{value:I,children:x.children})};function s(){const x=k.useContext(i);if(!x)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return x}function u(x,w){var S;const{queryClient:_,ssrState:P}=s();return P&&P!=="mounted"&&((S=_.getQueryCache().find({queryKey:x}))===null||S===void 0?void 0:S.state.status)==="error"?(0,Y.default)({retryOnMount:!1},w):w}function l(x,w,S){var _,P,A,E,$;const T=s(),{abortOnUnmount:I,client:D,ssrState:N,queryClient:F,prefetchQuery:M}=T,L=tn(x,w,"query"),z=F.getQueryDefaults(L),W=w===er;typeof window>"u"&&N==="prepass"&&(S==null||(_=S.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((P=S==null?void 0:S.enabled)!==null&&P!==void 0?P:z==null?void 0:z.enabled)!==!1&&!W&&!F.getQueryCache().find({queryKey:L})&&M(L,S);const q=u(L,(0,Y.default)((0,Y.default)({},z),S)),V=(A=(E=S==null||($=S.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&E!==void 0?E:void 0)!==null&&A!==void 0?A:I,Q=gI((0,Y.default)((0,Y.default)({},q),{},{queryKey:L,queryFn:W?w:async re=>{const ne=(0,Y.default)((0,Y.default)({},q),{},{trpc:(0,Y.default)((0,Y.default)({},q==null?void 0:q.trpc),V?{signal:re.signal}:{signal:null})}),ce=await D.query(...kt(L,ne));return FE(ce)?i$(ce,F,L):ce}}),F);return Q.trpc=ou({path:x}),Q}function f(x,w,S){var _,P,A;const E=s(),$=tn(x,w,"query"),T=w===er,I=(_=(P=S==null||(A=S.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&P!==void 0?P:void 0)!==null&&_!==void 0?_:E.abortOnUnmount;SI((0,Y.default)((0,Y.default)({},S),{},{queryKey:$,queryFn:T?w:D=>{const N={trpc:(0,Y.default)((0,Y.default)({},S==null?void 0:S.trpc),I?{signal:D.signal}:{})};return E.client.query(...kt($,N))}}))}function c(x,w,S){var _,P,A;const E=s(),$=tn(x,w,"query"),T=(_=(P=S==null||(A=S.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&P!==void 0?P:void 0)!==null&&_!==void 0?_:E.abortOnUnmount,I=bI((0,Y.default)((0,Y.default)({},S),{},{queryKey:$,queryFn:D=>{const N=(0,Y.default)((0,Y.default)({},S),{},{trpc:(0,Y.default)((0,Y.default)({},S==null?void 0:S.trpc),T?{signal:D.signal}:{signal:null})});return E.client.query(...kt($,N))}}),E.queryClient);return I.trpc=ou({path:x}),[I.data,I]}function d(x,w){const{client:S,queryClient:_}=s(),P=xf(x),A=_.defaultMutationOptions(_.getMutationDefaults(P)),E=_I((0,Y.default)((0,Y.default)({},w),{},{mutationKey:P,mutationFn:$=>S.mutation(...kt([x,{input:$}],w)),onSuccess(...$){var T,I;return n({originalFn:()=>{var N,F,M;return(N=w==null||(F=w.onSuccess)===null||F===void 0?void 0:F.call(w,...$))!==null&&N!==void 0?N:A==null||(M=A.onSuccess)===null||M===void 0?void 0:M.call(A,...$)},queryClient:_,meta:(T=(I=w==null?void 0:w.meta)!==null&&I!==void 0?I:A==null?void 0:A.meta)!==null&&T!==void 0?T:{}})}}),_);return E.trpc=ou({path:x}),E}const h={data:void 0,error:null,status:"idle"},p={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function v(x,w,S){var _;const P=(_=S==null?void 0:S.enabled)!==null&&_!==void 0?_:w!==er,A=Ri(tn(x,w,"any")),{client:E}=s(),$=k.useRef(S);k.useEffect(()=>{$.current=S});const[T]=k.useState(new Set([])),I=k.useCallback(W=>{T.add(W)},[T]),D=k.useRef(null),N=k.useCallback(W=>{const q=M.current,V=M.current=W(q);let Q=!1;for(const re of T)if(q[re]!==V[re]){Q=!0;break}Q&&z($w(V,I))},[I,T]),F=k.useCallback(()=>{var W;if((W=D.current)===null||W===void 0||W.unsubscribe(),!P){N(()=>(0,Y.default)((0,Y.default)({},h),{},{reset:F}));return}N(()=>(0,Y.default)((0,Y.default)({},p),{},{reset:F}));const q=E.subscription(x.join("."),w??void 0,{onStarted:()=>{var V,Q;(V=(Q=$.current).onStarted)===null||V===void 0||V.call(Q),N(re=>(0,Y.default)((0,Y.default)({},re),{},{status:"pending",error:null}))},onData:V=>{var Q,re;(Q=(re=$.current).onData)===null||Q===void 0||Q.call(re,V),N(ne=>(0,Y.default)((0,Y.default)({},ne),{},{status:"pending",data:V,error:null}))},onError:V=>{var Q,re;(Q=(re=$.current).onError)===null||Q===void 0||Q.call(re,V),N(ne=>(0,Y.default)((0,Y.default)({},ne),{},{status:"error",error:V}))},onConnectionStateChange:V=>{N(Q=>{switch(V.state){case"idle":return(0,Y.default)((0,Y.default)({},Q),{},{status:V.state,error:null,data:void 0});case"connecting":return(0,Y.default)((0,Y.default)({},Q),{},{error:V.error,status:V.state});case"pending":return Q}})},onComplete:()=>{var V,Q;(V=(Q=$.current).onComplete)===null||V===void 0||V.call(Q),N(re=>(0,Y.default)((0,Y.default)({},re),{},{status:"idle",error:null,data:void 0}))}});D.current=q},[E,A,P,N]);k.useEffect(()=>(F(),()=>{var W;(W=D.current)===null||W===void 0||W.unsubscribe()}),[F]);const M=k.useRef(P?(0,Y.default)((0,Y.default)({},p),{},{reset:F}):(0,Y.default)((0,Y.default)({},h),{},{reset:F})),[L,z]=k.useState($w(M.current,I));return L}function g(x,w,S){var _,P,A,E,$;const{client:T,ssrState:I,prefetchInfiniteQuery:D,queryClient:N,abortOnUnmount:F}=s(),M=tn(x,w,"infinite"),L=N.getQueryDefaults(M),z=w===er;typeof window>"u"&&I==="prepass"&&(S==null||(_=S.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((P=S==null?void 0:S.enabled)!==null&&P!==void 0?P:L==null?void 0:L.enabled)!==!1&&!z&&!N.getQueryCache().find({queryKey:M})&&D(M,(0,Y.default)((0,Y.default)({},L),S));const W=u(M,(0,Y.default)((0,Y.default)({},L),S)),q=(A=S==null||(E=S.trpc)===null||E===void 0?void 0:E.abortOnUnmount)!==null&&A!==void 0?A:F,V=PI((0,Y.default)((0,Y.default)({},W),{},{initialPageParam:($=S.initialCursor)!==null&&$!==void 0?$:null,persister:S.persister,queryKey:M,queryFn:z?w:Q=>{var re;const ne=(0,Y.default)((0,Y.default)({},W),{},{trpc:(0,Y.default)((0,Y.default)({},W==null?void 0:W.trpc),q?{signal:Q.signal}:{signal:null})});return T.query(...kt(M,ne,{pageParam:(re=Q.pageParam)!==null&&re!==void 0?re:S.initialCursor,direction:Q.direction}))}}),N);return V.trpc=ou({path:x}),V}function m(x,w,S){var _,P,A;const E=s(),$=tn(x,w,"infinite"),T=E.queryClient.getQueryDefaults($),I=w===er,D=u($,(0,Y.default)((0,Y.default)({},T),S)),N=(_=S==null||(P=S.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&_!==void 0?_:E.abortOnUnmount;OI((0,Y.default)((0,Y.default)({},S),{},{initialPageParam:(A=S.initialCursor)!==null&&A!==void 0?A:null,queryKey:$,queryFn:I?w:F=>{var M;const L=(0,Y.default)((0,Y.default)({},D),{},{trpc:(0,Y.default)((0,Y.default)({},D==null?void 0:D.trpc),N?{signal:F.signal}:{})});return E.client.query(...kt($,L,{pageParam:(M=F.pageParam)!==null&&M!==void 0?M:S.initialCursor,direction:F.direction}))}}))}function y(x,w,S){var _,P,A;const E=s(),$=tn(x,w,"infinite"),T=E.queryClient.getQueryDefaults($),I=u($,(0,Y.default)((0,Y.default)({},T),S)),D=(_=S==null||(P=S.trpc)===null||P===void 0?void 0:P.abortOnUnmount)!==null&&_!==void 0?_:E.abortOnUnmount,N=xI((0,Y.default)((0,Y.default)({},S),{},{initialPageParam:(A=S.initialCursor)!==null&&A!==void 0?A:null,queryKey:$,queryFn:F=>{var M;const L=(0,Y.default)((0,Y.default)({},I),{},{trpc:(0,Y.default)((0,Y.default)({},I==null?void 0:I.trpc),D?{signal:F.signal}:{})});return E.client.query(...kt($,L,{pageParam:(M=F.pageParam)!==null&&M!==void 0?M:S.initialCursor,direction:F.direction}))}}),E.queryClient);return N.trpc=ou({path:x}),[N.data,N]}return{Provider:a,createClient:o,useContext:s,useUtils:s,useQuery:l,usePrefetchQuery:f,useSuspenseQuery:c,useQueries:(x,w)=>{const{ssrState:S,queryClient:_,prefetchQuery:P,client:A}=s(),E=Ew(A),$=x(E);if(typeof window>"u"&&S==="prepass")for(const I of $){var T;const D=I;((T=D.trpc)===null||T===void 0?void 0:T.ssr)!==!1&&!_.getQueryCache().find({queryKey:D.queryKey})&&P(D.queryKey,D)}return LE({queries:$.map(I=>(0,Y.default)((0,Y.default)({},I),{},{queryKey:I.queryKey})),combine:w==null?void 0:w.combine},_)},useSuspenseQueries:x=>{const{queryClient:w,client:S}=s(),_=Ew(S),P=x(_),A=wI({queries:P.map(E=>(0,Y.default)((0,Y.default)({},E),{},{queryFn:E.queryFn,queryKey:E.queryKey}))},w);return[A.map(E=>E.data),A]},useMutation:d,useSubscription:v,useInfiniteQuery:g,usePrefetchInfiniteQuery:m,useSuspenseInfiniteQuery:y}}function KR(e){const t=RR(e);return F0(r=>r==="useContext"||r==="useUtils"?()=>{const n=e.useUtils();return k.useMemo(()=>BR(n),[n])}:e.hasOwnProperty(r)?e[r]:t[r])}function VR(e){const t=HR();return KR(t)}const sc=VR(),GR=sc.createClient({links:[wR({url:"/api/trpc"})]});var QR="Invariant failed";function $t(e,t){if(!e)throw new Error(QR)}const Aa=new WeakMap,Sf=new WeakMap,Jf={current:[]};let iv=!1,Du=0;const _u=new Set,qc=new Map;function o$(e){const t=Array.from(e).sort((r,n)=>r instanceof Ea&&r.options.deps.includes(n)?1:n instanceof Ea&&n.options.deps.includes(r)?-1:0);for(const r of t){if(Jf.current.includes(r))continue;Jf.current.push(r),r.recompute();const n=Sf.get(r);if(n)for(const i of n){const o=Aa.get(i);o&&o$(o)}}}function XR(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function YR(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function a$(e){if(Du>0&&!qc.has(e)&&qc.set(e,e.prevState),_u.add(e),!(Du>0)&&!iv)try{for(iv=!0;_u.size>0;){const t=Array.from(_u);_u.clear();for(const r of t){const n=qc.get(r)??r.prevState;r.prevState=n,XR(r)}for(const r of t){const n=Aa.get(r);n&&(Jf.current.push(r),o$(n))}for(const r of t){const n=Aa.get(r);if(n)for(const i of n)YR(i)}}}finally{iv=!1,Jf.current=[],qc.clear()}}function jw(e){Du++;try{e()}finally{if(Du--,Du===0){const t=Array.from(_u)[0];t&&a$(t)}}}function ZR(e){return typeof e=="function"}class nm{constructor(t,r){this.listeners=new Set,this.subscribe=n=>{var i,o;this.listeners.add(n);const a=(o=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:o.call(i,n,this);return()=>{this.listeners.delete(n),a==null||a()}},this.prevState=t,this.state=t,this.options=r}setState(t){var r,n,i;this.prevState=this.state,(r=this.options)!=null&&r.updateFn?this.state=this.options.updateFn(this.prevState)(t):ZR(t)?this.state=t(this.prevState):this.state=t,(i=(n=this.options)==null?void 0:n.onUpdate)==null||i.call(n),a$(this)}}class Ea{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const r=[],n=[];for(const i of this.options.deps)r.push(i.prevState),n.push(i.state);return this.lastSeenDepValues=n,{prevDepVals:r,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var r,n;this.prevState=this.state;const{prevDepVals:i,currDepVals:o,prevVal:a}=this.getDepVals();this.state=this.options.fn({prevDepVals:i,currDepVals:o,prevVal:a}),(n=(r=this.options).onUpdate)==null||n.call(r)},this.checkIfRecalculationNeededDeeply=()=>{for(const o of this.options.deps)o instanceof Ea&&o.checkIfRecalculationNeededDeeply();let r=!1;const n=this.lastSeenDepValues,{currDepVals:i}=this.getDepVals();for(let o=0;o<i.length;o++)if(i[o]!==n[o]){r=!0;break}r&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const r of this._subscriptions)r()}),this.subscribe=r=>{var n,i;this.listeners.add(r);const o=(i=(n=this.options).onSubscribe)==null?void 0:i.call(n,r,this);return()=>{this.listeners.delete(r),o==null||o()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const r of t)if(r instanceof Ea)r.registerOnGraph(),this.registerOnGraph(r.options.deps);else if(r instanceof nm){let n=Aa.get(r);n||(n=new Set,Aa.set(r,n)),n.add(this);let i=Sf.get(this);i||(i=new Set,Sf.set(this,i)),i.add(r)}}unregisterFromGraph(t=this.options.deps){for(const r of t)if(r instanceof Ea)this.unregisterFromGraph(r.options.deps);else if(r instanceof nm){const n=Aa.get(r);n&&n.delete(this);const i=Sf.get(this);i&&i.delete(r)}}}const Ti="__TSR_index",Cw="popstate",Tw="beforeunload";function s$(e){let t=e.getLocation();const r=new Set,n=a=>{t=e.getLocation(),r.forEach(s=>s({location:t,action:a}))},i=a=>{e.notifyOnIndexChange??!0?n(a):t=e.getLocation()},o=async({task:a,navigateOpts:s,...u})=>{var l,f;if((s==null?void 0:s.ignoreBlocker)??!1){a();return}const d=((l=e.getBlockers)==null?void 0:l.call(e))??[],h=u.type==="PUSH"||u.type==="REPLACE";if(typeof document<"u"&&d.length&&h)for(const p of d){const v=ll(u.path,u.state);if(await p.blockerFn({currentLocation:t,nextLocation:v,action:u.type})){(f=e.onBlocked)==null||f.call(e);return}}a()};return{get location(){return t},get length(){return e.getLength()},subscribers:r,subscribe:a=>(r.add(a),()=>{r.delete(a)}),push:(a,s,u)=>{const l=t.state[Ti];s=im(l+1,s),o({task:()=>{e.pushState(a,s),n({type:"PUSH"})},navigateOpts:u,type:"PUSH",path:a,state:s})},replace:(a,s,u)=>{const l=t.state[Ti];s=im(l,s),o({task:()=>{e.replaceState(a,s),n({type:"REPLACE"})},navigateOpts:u,type:"REPLACE",path:a,state:s})},go:(a,s)=>{o({task:()=>{e.go(a),i({type:"GO",index:a})},navigateOpts:s,type:"GO"})},back:a=>{o({task:()=>{e.back((a==null?void 0:a.ignoreBlocker)??!1),i({type:"BACK"})},navigateOpts:a,type:"BACK"})},forward:a=>{o({task:()=>{e.forward((a==null?void 0:a.ignoreBlocker)??!1),i({type:"FORWARD"})},navigateOpts:a,type:"FORWARD"})},canGoBack:()=>t.state[Ti]!==0,createHref:a=>e.createHref(a),block:a=>{var s;if(!e.setBlockers)return()=>{};const u=((s=e.getBlockers)==null?void 0:s.call(e))??[];return e.setBlockers([...u,a]),()=>{var l,f;const c=((l=e.getBlockers)==null?void 0:l.call(e))??[];(f=e.setBlockers)==null||f.call(e,c.filter(d=>d!==a))}},flush:()=>{var a;return(a=e.flush)==null?void 0:a.call(e)},destroy:()=>{var a;return(a=e.destroy)==null?void 0:a.call(e)},notify:n}}function im(e,t){t||(t={});const r=U0();return{...t,key:r,__TSR_key:r,[Ti]:e}}function JR(e){var t,r;const n=typeof document<"u"?window:void 0,i=n.history.pushState,o=n.history.replaceState;let a=[];const s=()=>a,u=A=>a=A,l=A=>A,f=()=>ll(`${n.location.pathname}${n.location.search}${n.location.hash}`,n.history.state);if(!((t=n.history.state)!=null&&t.__TSR_key)&&!((r=n.history.state)!=null&&r.key)){const A=U0();n.history.replaceState({[Ti]:0,key:A,__TSR_key:A},"")}let c=f(),d,h=!1,p=!1,v=!1,g=!1;const m=()=>c;let y,b;const O=()=>{y&&(P._ignoreSubscribers=!0,(y.isPush?n.history.pushState:n.history.replaceState)(y.state,"",y.href),P._ignoreSubscribers=!1,y=void 0,b=void 0,d=void 0)},x=(A,E,$)=>{const T=l(E);b||(d=c),c=ll(E,$),y={href:T,state:$,isPush:(y==null?void 0:y.isPush)||A==="push"},b||(b=Promise.resolve().then(()=>O()))},w=A=>{c=f(),P.notify({type:A})},S=async()=>{if(p){p=!1;return}const A=f(),E=A.state[Ti]-c.state[Ti],$=E===1,T=E===-1,I=!$&&!T||h;h=!1;const D=I?"GO":T?"BACK":"FORWARD",N=I?{type:"GO",index:E}:{type:T?"BACK":"FORWARD"};if(v)v=!1;else{const F=s();if(typeof document<"u"&&F.length){for(const M of F)if(await M.blockerFn({currentLocation:c,nextLocation:A,action:D})){p=!0,n.history.go(1),P.notify(N);return}}}c=f(),P.notify(N)},_=A=>{if(g){g=!1;return}let E=!1;const $=s();if(typeof document<"u"&&$.length)for(const T of $){const I=T.enableBeforeUnload??!0;if(I===!0){E=!0;break}if(typeof I=="function"&&I()===!0){E=!0;break}}if(E)return A.preventDefault(),A.returnValue=""},P=s$({getLocation:m,getLength:()=>n.history.length,pushState:(A,E)=>x("push",A,E),replaceState:(A,E)=>x("replace",A,E),back:A=>(A&&(v=!0),g=!0,n.history.back()),forward:A=>{A&&(v=!0),g=!0,n.history.forward()},go:A=>{h=!0,n.history.go(A)},createHref:A=>l(A),flush:O,destroy:()=>{n.history.pushState=i,n.history.replaceState=o,n.removeEventListener(Tw,_,{capture:!0}),n.removeEventListener(Cw,S)},onBlocked:()=>{d&&c!==d&&(c=d)},getBlockers:s,setBlockers:u,notifyOnIndexChange:!1});return n.addEventListener(Tw,_,{capture:!0}),n.addEventListener(Cw,S),n.history.pushState=function(...A){const E=i.apply(n.history,A);return P._ignoreSubscribers||w("PUSH"),E},n.history.replaceState=function(...A){const E=o.apply(n.history,A);return P._ignoreSubscribers||w("REPLACE"),E},P}function eN(e={initialEntries:["/"]}){const t=e.initialEntries;let r=e.initialIndex?Math.min(Math.max(e.initialIndex,0),t.length-1):t.length-1;const n=t.map((o,a)=>im(a,void 0));return s$({getLocation:()=>ll(t[r],n[r]),getLength:()=>t.length,pushState:(o,a)=>{r<t.length-1&&(t.splice(r+1),n.splice(r+1)),n.push(a),t.push(o),r=Math.max(t.length-1,0)},replaceState:(o,a)=>{n[r]=a,t[r]=o},back:()=>{r=Math.max(r-1,0)},forward:()=>{r=Math.min(r+1,t.length-1)},go:o=>{r=Math.min(Math.max(r+o,0),t.length-1)},createHref:o=>o})}function ll(e,t){const r=e.indexOf("#"),n=e.indexOf("?"),i=U0();return{href:e,pathname:e.substring(0,r>0?n>0?Math.min(r,n):r:n>0?n:e.length),hash:r>-1?e.substring(r):"",search:n>-1?e.slice(n,r===-1?void 0:r):"",state:t||{[Ti]:0,key:i,__TSR_key:i}}}function U0(){return(Math.random()+1).toString(36).substring(7)}function om(e){return e[e.length-1]}function tN(e){return typeof e=="function"}function wo(e,t){return tN(e)?e(t):e}function am(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function hr(e,t){if(e===t)return e;const r=t,n=Iw(e)&&Iw(r);if(n||kw(e)&&kw(r)){const i=n?e:Object.keys(e).concat(Object.getOwnPropertySymbols(e)),o=i.length,a=n?r:Object.keys(r).concat(Object.getOwnPropertySymbols(r)),s=a.length,u=n?[]:{};let l=0;for(let f=0;f<s;f++){const c=n?f:a[f];(!n&&i.includes(c)||n)&&e[c]===void 0&&r[c]===void 0?(u[c]=void 0,l++):(u[c]=hr(e[c],r[c]),u[c]===e[c]&&e[c]!==void 0&&l++)}return o===s&&l===o?e:u}return r}function kw(e){return sm(e)&&Object.getOwnPropertyNames(e).length===Object.keys(e).length}function sm(e){if(!Mw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Mw(r)||!r.hasOwnProperty("isPrototypeOf"))}function Mw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Iw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rw(e,t){let r=Object.keys(e);return t&&(r=r.filter(n=>e[n]!==void 0)),r}function $a(e,t,r){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(sm(e)&&sm(t)){const n=(r==null?void 0:r.ignoreUndefined)??!0,i=Rw(e,n),o=Rw(t,n);return!(r!=null&&r.partial)&&i.length!==o.length?!1:o.every(a=>$a(e[a],t[a],r))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((n,i)=>!$a(n,t[i],r)):!1}function ea(e){let t,r;const n=new Promise((i,o)=>{t=i,r=o});return n.status="pending",n.resolve=i=>{n.status="resolved",n.value=i,t(i),e==null||e(i)},n.reject=i=>{n.status="rejected",r(i)},n}function pn(e){return Eh(e.filter(t=>t!==void 0).join("/"))}function Eh(e){return e.replace(/\/{2,}/g,"/")}function W0(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function rs(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function ov(e){return rs(W0(e))}function ed(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function rN(e,t,r){return ed(e,r)===ed(t,r)}function nN({basepath:e,base:t,to:r,trailingSlash:n="never",caseSensitive:i}){var o,a;t=td(e,t,i),r=td(e,r,i);let s=ns(t);const u=ns(r);s.length>1&&((o=om(s))==null?void 0:o.value)==="/"&&s.pop(),u.forEach((c,d)=>{c.value==="/"?d?d===u.length-1&&s.push(c):s=[c]:c.value===".."?s.pop():c.value==="."||s.push(c)}),s.length>1&&(((a=om(s))==null?void 0:a.value)==="/"?n==="never"&&s.pop():n==="always"&&s.push({type:"pathname",value:"/"}));const l=s.map(c=>{if(c.type==="param"){const d=c.value.substring(1);if(c.prefixSegment&&c.suffixSegment)return`${c.prefixSegment}{$${d}}${c.suffixSegment}`;if(c.prefixSegment)return`${c.prefixSegment}{$${d}}`;if(c.suffixSegment)return`{$${d}}${c.suffixSegment}`}if(c.type==="wildcard"){if(c.prefixSegment&&c.suffixSegment)return`${c.prefixSegment}{$}${c.suffixSegment}`;if(c.prefixSegment)return`${c.prefixSegment}{$}`;if(c.suffixSegment)return`{$}${c.suffixSegment}`}return c.value}),f=pn([e,...l]);return Eh(f)}const iN=/^\$.{1,}$/,oN=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,aN=/^\$$/,sN=/^(.*?)\{\$\}(.*)$/;function ns(e){if(!e)return[];e=Eh(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const r=e.split("/").filter(Boolean);return t.push(...r.map(n=>{const i=n.match(sN);if(i){const a=i[1],s=i[2];return{type:"wildcard",value:"$",prefixSegment:a||void 0,suffixSegment:s||void 0}}const o=n.match(oN);if(o){const a=o[1],s=o[2],u=o[3];return{type:"param",value:""+s,prefixSegment:a||void 0,suffixSegment:u||void 0}}return iN.test(n)?{type:"param",value:"$"+n.substring(1),prefixSegment:void 0,suffixSegment:void 0}:aN.test(n)?{type:"wildcard",value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:"pathname",value:n.includes("%25")?n.split("%25").map(a=>decodeURI(a)).join("%25"):decodeURI(n)}})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function av({path:e,params:t,leaveWildcards:r,leaveParams:n,decodeCharMap:i}){const o=ns(e);function a(f){const c=t[f],d=typeof c=="string";return["*","_splat"].includes(f)?d?encodeURI(c):c:d?uN(c,i):c}let s=!1;const u={},l=pn(o.map(f=>{if(f.type==="wildcard"){u._splat=t._splat;const c=f.prefixSegment||"",d=f.suffixSegment||"",h=a("_splat");return r?`${c}${f.value}${h??""}${d}`:`${c}${h}${d}`}if(f.type==="param"){const c=f.value.substring(1);!s&&!(c in t)&&(s=!0),u[c]=t[c];const d=f.prefixSegment||"",h=f.suffixSegment||"";if(n){const p=a(f.value);return`${d}${f.value}${p??""}${h}`}return`${d}${a(c)??"undefined"}${h}`}return f.value}));return{usedParams:u,interpolatedPath:l,isMissingParams:s}}function uN(e,t){let r=encodeURIComponent(e);if(t)for(const[n,i]of t)r=r.replaceAll(n,i);return r}function um(e,t,r){const n=lN(e,t,r);if(!(r.to&&!n))return n??{}}function td(e,t,r=!1){const n=r?e:e.toLowerCase(),i=r?t:t.toLowerCase();switch(!0){case n==="/":return t;case i===n:return"";case t.length<e.length:return t;case i[n.length]!=="/":return t;case i.startsWith(n):return t.slice(e.length);default:return t}}function lN(e,t,r){if(e!=="/"&&!t.startsWith(e))return;t=td(e,t,r.caseSensitive);const n=td(e,`${r.to??"$"}`,r.caseSensitive),i=ns(t),o=ns(n);t.startsWith("/")||i.unshift({type:"pathname",value:"/"}),n.startsWith("/")||o.unshift({type:"pathname",value:"/"});const a={};return(()=>{var u;for(let l=0;l<Math.max(i.length,o.length);l++){const f=i[l],c=o[l],d=l>=i.length-1,h=l>=o.length-1;if(c){if(c.type==="wildcard"){const p=i.slice(l);let v;if(c.prefixSegment||c.suffixSegment){if(!f)return!1;const g=c.prefixSegment||"",m=c.suffixSegment||"",y=f.value;if("prefixSegment"in c&&!y.startsWith(g)||"suffixSegment"in c&&!((u=i[i.length-1])!=null&&u.value.endsWith(m)))return!1;let b=decodeURI(pn(p.map(O=>O.value)));g&&b.startsWith(g)&&(b=b.slice(g.length)),m&&b.endsWith(m)&&(b=b.slice(0,b.length-m.length)),v=b}else v=decodeURI(pn(p.map(g=>g.value)));return a["*"]=v,a._splat=v,!0}if(c.type==="pathname"){if(c.value==="/"&&!(f!=null&&f.value))return!0;if(f){if(r.caseSensitive){if(c.value!==f.value)return!1}else if(c.value.toLowerCase()!==f.value.toLowerCase())return!1}}if(!f)return!1;if(c.type==="param"){if(f.value==="/")return!1;let p;if(c.prefixSegment||c.suffixSegment){const v=c.prefixSegment||"",g=c.suffixSegment||"",m=f.value;if(v&&!m.startsWith(v)||g&&!m.endsWith(g))return!1;let y=m;v&&y.startsWith(v)&&(y=y.slice(v.length)),g&&y.endsWith(g)&&(y=y.slice(0,y.length-g.length)),p=decodeURIComponent(y)}else p=decodeURIComponent(f.value);a[c.value.substring(1)]=p}}if(!d&&h)return a["**"]=pn(i.slice(l+1).map(p=>p.value)),!!r.fuzzy&&(c==null?void 0:c.value)!=="/"}return!0})()?a:void 0}function mr(e){return!!(e!=null&&e.isNotFound)}function cN(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{return}}const rd="tsr-scroll-restoration-v1_3",fN=(e,t)=>{let r;return(...n)=>{r||(r=setTimeout(()=>{e(...n),r=null},t))}};function dN(){const e=cN();if(!e)return;const t=e.getItem(rd);let r=t?JSON.parse(t):{};return{state:r,set:n=>(r=wo(n,r)||r,e.setItem(rd,JSON.stringify(r)))}}const sv=dN(),lm=e=>e.state.__TSR_key||e.href;function hN(e){const t=[];let r;for(;r=e.parentNode;)t.unshift(`${e.tagName}:nth-child(${[].indexOf.call(r.children,e)+1})`),e=r;return`${t.join(" > ")}`.toLowerCase()}let nd=!1;function u$(e,t,r,n,i){var o;let a;try{a=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(l){console.error(l);return}const s=t||((o=window.history.state)==null?void 0:o.key),u=a[s];nd=!0,(()=>{if(n&&u){for(const f in u){const c=u[f];if(f==="window")window.scrollTo({top:c.scrollY,left:c.scrollX,behavior:r});else if(f){const d=document.querySelector(f);d&&(d.scrollLeft=c.scrollX,d.scrollTop=c.scrollY)}}return}const l=window.location.hash.split("#")[1];if(l){const f=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(f){const c=document.getElementById(l);c&&c.scrollIntoView(f)}return}["window",...(i==null?void 0:i.filter(f=>f!=="window"))??[]].forEach(f=>{const c=f==="window"?window:typeof f=="function"?f():document.querySelector(f);c&&c.scrollTo({top:0,left:0,behavior:r})})})(),nd=!1}function pN(e,t){if(sv===void 0||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),typeof document>"u"||e.isScrollRestorationSetup))return;e.isScrollRestorationSetup=!0,nd=!1;const n=e.options.getScrollRestorationKey||lm;window.history.scrollRestoration="manual";const i=o=>{if(nd||!e.isScrollRestoring)return;let a="";if(o.target===document||o.target===window)a="window";else{const u=o.target.getAttribute("data-scroll-restoration-id");u?a=`[data-scroll-restoration-id="${u}"]`:a=hN(o.target)}const s=n(e.state.location);sv.set(u=>{const l=u[s]=u[s]||{},f=l[a]=l[a]||{};if(a==="window")f.scrollX=window.scrollX||0,f.scrollY=window.scrollY||0;else if(a){const c=document.querySelector(a);c&&(f.scrollX=c.scrollLeft||0,f.scrollY=c.scrollTop||0)}return u})};typeof document<"u"&&document.addEventListener("scroll",fN(i,100),!0),e.subscribe("onRendered",o=>{const a=n(o.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}u$(rd,a,e.options.scrollRestorationBehavior||void 0,e.isScrollRestoring||void 0,e.options.scrollToTopSelectors||void 0),e.isScrollRestoring&&sv.set(s=>(s[a]=s[a]||{},s))})}function vN(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const r=document.getElementById(e.state.location.hash);r&&r.scrollIntoView(t)}}}function yN(e,t){const r=Object.entries(e).flatMap(([i,o])=>Array.isArray(o)?o.map(a=>[i,String(a)]):[[i,String(o)]]);return""+new URLSearchParams(r).toString()}function uv(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function mN(e,t){const r=e;return[...new URLSearchParams(r).entries()].reduce((o,[a,s])=>{const u=o[a];return u==null?o[a]=uv(s):o[a]=Array.isArray(u)?[...u,uv(s)]:[u,uv(s)],o},{})}const gN=xN(JSON.parse),bN=wN(JSON.stringify,JSON.parse);function xN(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));const r=mN(t);for(const n in r){const i=r[n];if(typeof i=="string")try{r[n]=e(i)}catch{}}return r}}function wN(e,t){function r(n){if(typeof n=="object"&&n!==null)try{return e(n)}catch{}else if(typeof n=="string"&&typeof t=="function")try{return t(n),e(n)}catch{}return n}return n=>{n={...n},Object.keys(n).forEach(o=>{const a=n[o];typeof a>"u"||a===void 0?delete n[o]:n[o]=r(a)});const i=yN(n).toString();return i?`?${i}`:""}}const Nr="__root__";function SN(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument)try{new URL(`${e.href}`),e.reloadDocument=!0}catch{}const t=new Headers(e.headers||{});e.href&&t.get("Location")===null&&t.set("Location",e.href);const r=new Response(null,{status:e.statusCode,headers:t});if(r.options=e,e.throw)throw r;return r}function Jr(e){return e instanceof Response&&!!e.options}function So(e){const t=e.resolvedLocation,r=e.location,n=(t==null?void 0:t.pathname)!==r.pathname,i=(t==null?void 0:t.href)!==r.href,o=(t==null?void 0:t.hash)!==r.hash;return{fromLocation:t,toLocation:r,pathChanged:n,hrefChanged:i,hashChanged:o}}class ON{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=r=>r(),this.isShell=!1,this.update=r=>{var n;r.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options;this.options={...this.options,...r},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(o=>[encodeURIComponent(o),o])):void 0,(!this.basepath||r.basepath&&r.basepath!==i.basepath)&&(r.basepath===void 0||r.basepath===""||r.basepath==="/"?this.basepath="/":this.basepath=`/${ov(r.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?eN({initialEntries:[this.basepath||"/"]}):JR()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new nm(PN(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(o=>!["redirected"].includes(o.status))}}}),pN(this)),typeof window<"u"&&"CSS"in window&&typeof((n=window.CSS)==null?void 0:n.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)")),this.latestLocation.search.__TSS_SHELL&&(this.isShell=!0)},this.buildRouteTree=()=>{const{routesById:r,routesByPath:n,flatRoutes:i}=AN({routeTree:this.routeTree,initRoute:(a,s)=>{a.init({originalIndex:s,defaultSsr:this.options.defaultSsr})}});this.routesById=r,this.routesByPath=n,this.flatRoutes=i;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[o.id]=o)},this.subscribe=(r,n)=>{const i={eventType:r,fn:n};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=r=>{this.subscribers.forEach(n=>{n.eventType===r.type&&n.fn(r)})},this.parseLocation=(r,n)=>{const i=({pathname:u,search:l,hash:f,state:c})=>{const d=this.options.parseSearch(l),h=this.options.stringifySearch(d);return{pathname:u,searchStr:h,search:hr(r==null?void 0:r.search,d),hash:f.split("#").reverse()[0]??"",href:`${u}${h}${f}`,state:hr(r==null?void 0:r.state,c)}},o=i(n??this.history.location),{__tempLocation:a,__tempKey:s}=o.state;if(a&&(!s||s===this.tempLocationKey)){const u=i(a);return u.state.key=o.state.key,u.state.__TSR_key=o.state.__TSR_key,delete u.state.__tempLocation,{...u,maskedLocation:o}}return o},this.resolvePathWithBase=(r,n)=>nN({basepath:this.basepath,base:r,to:Eh(n),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.matchRoutes=(r,n,i)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:n},i):this.matchRoutesInternal(r,n),this.getMatchedRoutes=(r,n)=>EN({pathname:r,routePathname:n,basepath:this.basepath,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes}),this.cancelMatch=r=>{const n=this.getMatch(r);n&&(n.abortController.abort(),clearTimeout(n.pendingTimeout))},this.cancelMatches=()=>{var r;(r=this.state.pendingMatches)==null||r.forEach(n=>{this.cancelMatch(n.id)})},this.buildLocation=r=>{const n=(o={})=>{var a;const s=o._fromLocation||this.latestLocation,u=this.matchRoutes(s,{_buildLocation:!0}),l=om(u);let f=l.fullPath;o.unsafeRelative==="path"?f=s.pathname:o.to&&o.from&&(f=o.from,[...u].reverse().find(S=>S.fullPath===f||S.fullPath===pn([f,"/"]))||console.warn(`Could not find match for from: ${o.from}`));const c=l.search,d={...l.params},h=o.to?this.resolvePathWithBase(f,`${o.to}`):this.resolvePathWithBase(f,".");let p=(o.params??!0)===!0?d:{...d,...wo(o.params,d)};const v=this.matchRoutes(h,{},{_buildLocation:!0}).map(w=>this.looseRoutesById[w.routeId]);Object.keys(p).length>0&&v.map(w=>{var S;return((S=w.options.params)==null?void 0:S.stringify)??w.options.stringifyParams}).filter(Boolean).forEach(w=>{p={...p,...w(p)}});const g=av({path:h,params:p??{},leaveWildcards:!1,leaveParams:r.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let m=c;if(r._includeValidateSearch&&((a=this.options.search)!=null&&a.strict)){let w={};v.forEach(S=>{try{S.options.validateSearch&&(w={...w,...cm(S.options.validateSearch,{...w,...m})??{}})}catch{}}),m=w}m=$N({search:m,dest:o,destRoutes:v,_includeValidateSearch:r._includeValidateSearch}),m=hr(c,m);const y=this.options.stringifySearch(m),b=o.hash===!0?s.hash:o.hash?wo(o.hash,s.hash):void 0,O=b?`#${b}`:"";let x=o.state===!0?s.state:o.state?wo(o.state,s.state):{};return x=hr(s.state,x),{pathname:g,search:m,searchStr:y,state:x,hash:b??"",href:`${g}${y}${O}`,unmaskOnReload:o.unmaskOnReload}},i=(o={},a)=>{var s;const u=n(o);let l=a?n(a):void 0;if(!l){let f={};const c=(s=this.options.routeMasks)==null?void 0:s.find(d=>{const h=um(this.basepath,u.pathname,{to:d.from,caseSensitive:!1,fuzzy:!1});return h?(f=h,!0):!1});if(c){const{from:d,...h}=c;a={...am(r,["from"]),...h,params:f},l=n(a)}}if(l){const f=n(a);u.maskedLocation=f}return u};return r.mask?i(r,{...am(r,["from"]),...r.mask}):i(r)},this.commitLocation=({viewTransition:r,ignoreBlocker:n,...i})=>{const o=()=>{const u=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];u.forEach(f=>{i.state[f]=this.latestLocation.state[f]});const l=$a(i.state,this.latestLocation.state);return u.forEach(f=>{delete i.state[f]}),l},a=this.latestLocation.href===i.href,s=this.commitLocationPromise;if(this.commitLocationPromise=ea(()=>{s==null||s.resolve()}),a&&o())this.load();else{let{maskedLocation:u,hashScrollIntoView:l,...f}=i;u&&(f={...u,state:{...u.state,__tempKey:void 0,__tempLocation:{...f,search:f.searchStr,state:{...f.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(f.unmaskOnReload??this.options.unmaskOnReload??!1)&&(f.state.__tempKey=this.tempLocationKey)),f.state.__hashScrollIntoViewOptions=l??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=r,this.history[i.replace?"replace":"push"](f.href,f.state,{ignoreBlocker:n})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:r,resetScroll:n,hashScrollIntoView:i,viewTransition:o,ignoreBlocker:a,href:s,...u}={})=>{if(s){const f=this.history.location.state.__TSR_index,c=ll(s,{__TSR_index:r?f:f+1});u.to=c.pathname,u.search=this.options.parseSearch(c.search),u.hash=c.hash.slice(1)}const l=this.buildLocation({...u,_includeValidateSearch:!0});return this.commitLocation({...l,viewTransition:o,replace:r,resetScroll:n,hashScrollIntoView:i,ignoreBlocker:a})},this.navigate=({to:r,reloadDocument:n,href:i,...o})=>{if(!n&&i)try{new URL(`${i}`),n=!0}catch{}if(n){if(!i){const a=this.buildLocation({to:r,...o});i=this.history.createHref(a.href)}o.replace?window.location.replace(i):window.location.href=i;return}return this.buildAndCommitLocation({...o,href:i,to:r})},this.beforeLoad=()=>{if(this.cancelMatches(),this.latestLocation=this.parseLocation(this.latestLocation),this.isServer){const n=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(ov(this.latestLocation.href)!==ov(n.href))throw SN({href:n.href})}const r=this.matchRoutes(this.latestLocation);this.__store.setState(n=>({...n,status:"pending",isLoading:!0,location:this.latestLocation,pendingMatches:r,cachedMatches:n.cachedMatches.filter(i=>r.find(a=>a.id===i.id)?i.status==="success"&&(i.isFetching||i.loaderData!==void 0):!0)}))},this.load=async r=>{let n,i,o;for(o=new Promise(a=>{this.startTransition(async()=>{var s;try{this.beforeLoad();const u=this.latestLocation,l=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...So({resolvedLocation:l,location:u})}),this.emit({type:"onBeforeLoad",...So({resolvedLocation:l,location:u})}),await this.loadMatches({sync:r==null?void 0:r.sync,matches:this.state.pendingMatches,location:u,onReady:async()=>{this.startViewTransition(async()=>{let f,c,d;jw(()=>{this.__store.setState(h=>{const p=h.matches,v=h.pendingMatches||h.matches;return f=p.filter(g=>!v.find(m=>m.id===g.id)),c=v.filter(g=>!p.find(m=>m.id===g.id)),d=p.filter(g=>v.find(m=>m.id===g.id)),{...h,isLoading:!1,loadedAt:Date.now(),matches:v,pendingMatches:void 0,cachedMatches:[...h.cachedMatches,...f.filter(g=>g.status!=="error")]}}),this.clearExpiredCache()}),[[f,"onLeave"],[c,"onEnter"],[d,"onStay"]].forEach(([h,p])=>{h.forEach(v=>{var g,m;(m=(g=this.looseRoutesById[v.routeId].options)[p])==null||m.call(g,v)})})})}})}catch(u){Jr(u)?(n=u,this.isServer||this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):mr(u)&&(i=u),this.__store.setState(l=>({...l,statusCode:n?n.status:i?404:l.matches.some(f=>f.status==="error")?500:200,redirect:n}))}this.latestLoadPromise===o&&((s=this.commitLocationPromise)==null||s.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),a()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(a=>({...a,statusCode:404}))},this.startViewTransition=r=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;if(typeof n=="object"&&this.isViewTransitionTypesSupported){const o=this.latestLocation,a=this.state.resolvedLocation,s=typeof n.types=="function"?n.types(So({resolvedLocation:a,location:o})):n.types;i={update:r,types:s}}else i=r;document.startViewTransition(i)}else r()},this.updateMatch=(r,n)=>{var i;let o;const a=(i=this.state.pendingMatches)==null?void 0:i.find(f=>f.id===r),s=this.state.matches.find(f=>f.id===r),u=this.state.cachedMatches.find(f=>f.id===r),l=a?"pendingMatches":s?"matches":u?"cachedMatches":"";return l&&this.__store.setState(f=>{var c;return{...f,[l]:(c=f[l])==null?void 0:c.map(d=>d.id===r?o=n(d):d)}}),o},this.getMatch=r=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(n=>n.id===r),this.loadMatches=async({location:r,matches:n,preload:i,onReady:o,updateMatch:a=this.updateMatch,sync:s})=>{let u,l=!1;const f=async()=>{l||(l=!0,await(o==null?void 0:o()))},c=h=>!!(i&&!this.state.matches.find(p=>p.id===h)),d=(h,p)=>{var v,g,m,y;if(Jr(p)||mr(p)){if(Jr(p)&&p.redirectHandled&&!p.options.reloadDocument)throw p;if((v=h.beforeLoadPromise)==null||v.resolve(),(g=h.loaderPromise)==null||g.resolve(),a(h.id,b=>({...b,status:Jr(p)?"redirected":mr(p)?"notFound":"error",isFetching:!1,error:p,beforeLoadPromise:void 0,loaderPromise:void 0})),p.routeId||(p.routeId=h.routeId),(m=h.loadPromise)==null||m.resolve(),Jr(p))throw l=!0,p.options._fromLocation=r,p.redirectHandled=!0,p=this.resolveRedirect(p),p;if(mr(p))throw this._handleNotFound(n,p,{updateMatch:a}),(y=this.serverSsr)==null||y.onMatchSettled({router:this,match:this.getMatch(h.id)}),p}};try{await new Promise((h,p)=>{(async()=>{var v,g,m,y;try{const b=(w,S,_)=>{var P,A;const{id:E,routeId:$}=n[w],T=this.looseRoutesById[$];if(S instanceof Promise)throw S;S.routerCode=_,u=u??w,d(this.getMatch(E),S);try{(A=(P=T.options).onError)==null||A.call(P,S)}catch(I){S=I,d(this.getMatch(E),S)}a(E,I=>{var D,N;return(D=I.beforeLoadPromise)==null||D.resolve(),(N=I.loadPromise)==null||N.resolve(),{...I,error:S,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[w,{id:S,routeId:_}]of n.entries()){const P=this.getMatch(S),A=(v=n[w-1])==null?void 0:v.id,E=this.looseRoutesById[_],$=E.options.pendingMs??this.options.defaultPendingMs,T=!!(o&&!this.isServer&&!c(S)&&(E.options.loader||E.options.beforeLoad||Nw(E))&&typeof $=="number"&&$!==1/0&&(E.options.pendingComponent??((g=this.options)==null?void 0:g.defaultPendingComponent)));let I=!0;if((P.beforeLoadPromise||P.loaderPromise)&&(T&&setTimeout(()=>{try{f()}catch{}},$),await P.beforeLoadPromise,I=this.getMatch(S).status==="error"),I){try{a(S,ce=>{const Ee=ce.loadPromise;return{...ce,loadPromise:ea(()=>{Ee==null||Ee.resolve()}),beforeLoadPromise:ea()}});const D=new AbortController;let N;T&&(N=setTimeout(()=>{try{f()}catch{}},$));const{paramsError:F,searchError:M}=this.getMatch(S);F&&b(w,F,"PARSE_PARAMS"),M&&b(w,M,"VALIDATE_SEARCH");const L=()=>A?this.getMatch(A).context:this.options.context??{};a(S,ce=>({...ce,isFetching:"beforeLoad",fetchCount:ce.fetchCount+1,abortController:D,pendingTimeout:N,context:{...L(),...ce.__routeContext}}));const{search:z,params:W,context:q,cause:V}=this.getMatch(S),Q=c(S),re={search:z,abortController:D,params:W,preload:Q,context:q,location:r,navigate:ce=>this.navigate({...ce,_fromLocation:r}),buildLocation:this.buildLocation,cause:Q?"preload":V,matches:n},ne=await((y=(m=E.options).beforeLoad)==null?void 0:y.call(m,re))??{};(Jr(ne)||mr(ne))&&b(w,ne,"BEFORE_LOAD"),a(S,ce=>({...ce,__beforeLoadContext:ne,context:{...L(),...ce.__routeContext,...ne},abortController:D}))}catch(D){b(w,D,"BEFORE_LOAD")}a(S,D=>{var N;return(N=D.beforeLoadPromise)==null||N.resolve(),{...D,beforeLoadPromise:void 0,isFetching:!1}})}}const O=n.slice(0,u),x=[];O.forEach(({id:w,routeId:S},_)=>{x.push((async()=>{const{loaderPromise:P}=this.getMatch(w);let A=!1,E=!1;if(P){await P;const $=this.getMatch(w);$.error&&d($,$.error)}else{const $=x[_-1],T=this.looseRoutesById[S],I=()=>{const{params:Q,loaderDeps:re,abortController:ne,context:ce,cause:Ee}=this.getMatch(w),G=c(w);return{params:Q,deps:re,preload:!!G,parentMatchPromise:$,abortController:ne,context:ce,location:r,navigate:Z=>this.navigate({...Z,_fromLocation:r}),cause:G?"preload":Ee,route:T}},D=Date.now()-this.getMatch(w).updatedAt,N=c(w),F=N?T.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:T.options.staleTime??this.options.defaultStaleTime??0,M=T.options.shouldReload,L=typeof M=="function"?M(I()):M;a(w,Q=>({...Q,loaderPromise:ea(),preload:!!N&&!this.state.matches.find(re=>re.id===w)}));const z=async()=>{var Q,re,ne,ce,Ee,G;const Z=this.getMatch(w);if(!Z)return;const ie={matches:n,match:Z,params:Z.params,loaderData:Z.loaderData},U=await((re=(Q=T.options).head)==null?void 0:re.call(Q,ie)),ge=U==null?void 0:U.meta,he=U==null?void 0:U.links,ze=U==null?void 0:U.scripts,Ue=await((ce=(ne=T.options).scripts)==null?void 0:ce.call(ne,ie)),Ke=await((G=(Ee=T.options).headers)==null?void 0:G.call(Ee,ie));return{meta:ge,links:he,headScripts:ze,headers:Ke,scripts:Ue}},W=async()=>{var Q,re,ne,ce,Ee;try{const G=async()=>{const Z=this.getMatch(w);Z.minPendingPromise&&await Z.minPendingPromise};try{this.loadRouteChunk(T),a(w,U=>({...U,isFetching:"loader"}));const Z=await((re=(Q=T.options).loader)==null?void 0:re.call(Q,I()));d(this.getMatch(w),Z),await T._lazyPromise,await G(),await T._componentsPromise,a(w,U=>({...U,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:Z}));const ie=await z();a(w,U=>({...U,...ie}))}catch(Z){let ie=Z;await G(),d(this.getMatch(w),Z);try{(ce=(ne=T.options).onError)==null||ce.call(ne,Z)}catch(ge){ie=ge,d(this.getMatch(w),ge)}const U=await z();a(w,ge=>({...ge,error:ie,status:"error",isFetching:!1,...U}))}(Ee=this.serverSsr)==null||Ee.onMatchSettled({router:this,match:this.getMatch(w)})}catch(G){const Z=await z();a(w,ie=>({...ie,loaderPromise:void 0,...Z})),d(this.getMatch(w),G)}},{status:q,invalid:V}=this.getMatch(w);if(A=q==="success"&&(V||(L??D>F)),!(N&&T.options.preload===!1))if(A&&!s)E=!0,(async()=>{try{await W();const{loaderPromise:Q,loadPromise:re}=this.getMatch(w);Q==null||Q.resolve(),re==null||re.resolve(),a(w,ne=>({...ne,loaderPromise:void 0}))}catch(Q){Jr(Q)&&await this.navigate(Q.options)}})();else if(q!=="success"||A&&s)await W();else{const Q=await z();a(w,re=>({...re,...Q}))}}if(!E){const{loaderPromise:$,loadPromise:T}=this.getMatch(w);$==null||$.resolve(),T==null||T.resolve()}return a(w,$=>({...$,isFetching:E?$.isFetching:!1,loaderPromise:E?$.loaderPromise:void 0,invalid:!1})),this.getMatch(w)})())}),await Promise.all(x),h()}catch(b){p(b)}})()}),await f()}catch(h){if(Jr(h)||mr(h))throw mr(h)&&!i&&await f(),h}return n},this.invalidate=r=>{const n=i=>{var o;return((o=r==null?void 0:r.filter)==null?void 0:o.call(r,i))??!0?{...i,invalid:!0,...i.status==="error"?{status:"pending",error:void 0}:{}}:i};return this.__store.setState(i=>{var o;return{...i,matches:i.matches.map(n),cachedMatches:i.cachedMatches.map(n),pendingMatches:(o=i.pendingMatches)==null?void 0:o.map(n)}}),this.shouldViewTransition=!1,this.load({sync:r==null?void 0:r.sync})},this.resolveRedirect=r=>(r.options.href||(r.options.href=this.buildLocation(r.options).href,r.headers.set("Location",r.options.href)),r.headers.get("Location")||r.headers.set("Location",r.options.href),r),this.clearCache=r=>{const n=r==null?void 0:r.filter;n!==void 0?this.__store.setState(i=>({...i,cachedMatches:i.cachedMatches.filter(o=>!n(o))})):this.__store.setState(i=>({...i,cachedMatches:[]}))},this.clearExpiredCache=()=>{const r=n=>{const i=this.looseRoutesById[n.routeId];if(!i.options.loader)return!0;const o=(n.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(n.status!=="error"&&Date.now()-n.updatedAt<o)};this.clearCache({filter:r})},this.loadRouteChunk=r=>(r._lazyPromise===void 0&&(r.lazyFn?r._lazyPromise=r.lazyFn().then(n=>{const{id:i,...o}=n.options;Object.assign(r.options,o)}):r._lazyPromise=Promise.resolve()),r._componentsPromise===void 0&&(r._componentsPromise=r._lazyPromise.then(()=>Promise.all(l$.map(async n=>{const i=r.options[n];i!=null&&i.preload&&await i.preload()})))),r._componentsPromise),this.preloadRoute=async r=>{const n=this.buildLocation(r);let i=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:r});const o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(s=>s.id)),a=new Set([...o,...this.state.cachedMatches.map(s=>s.id)]);jw(()=>{i.forEach(s=>{a.has(s.id)||this.__store.setState(u=>({...u,cachedMatches:[...u.cachedMatches,s]}))})});try{return i=await this.loadMatches({matches:i,location:n,preload:!0,updateMatch:(s,u)=>{o.has(s)?i=i.map(l=>l.id===s?u(l):l):this.updateMatch(s,u)}}),i}catch(s){if(Jr(s))return s.options.reloadDocument?void 0:await this.preloadRoute({...s.options,_fromLocation:n});mr(s)||console.error(s);return}},this.matchRoute=(r,n)=>{const i={...r,to:r.to?this.resolvePathWithBase(r.from||"",r.to):void 0,params:r.params||{},leaveParams:!0},o=this.buildLocation(i);if(n!=null&&n.pending&&this.state.status!=="pending")return!1;const s=((n==null?void 0:n.pending)===void 0?!this.state.isLoading:n.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,u=um(this.basepath,s.pathname,{...n,to:o.pathname});return!u||r.params&&!$a(u,r.params,{partial:!0})?!1:u&&((n==null?void 0:n.includeSearch)??!0)?$a(s.search,o.search,{partial:!0})?u:!1:u},this._handleNotFound=(r,n,{updateMatch:i=this.updateMatch}={})=>{var o;const a=this.routesById[n.routeId??""]??this.routeTree,s={};for(const l of r)s[l.routeId]=l;!a.options.notFoundComponent&&((o=this.options)!=null&&o.defaultNotFoundComponent)&&(a.options.notFoundComponent=this.options.defaultNotFoundComponent),$t(a.options.notFoundComponent);const u=s[a.id];$t(u,"Could not find match for route: "+a.id),i(u.id,l=>({...l,status:"notFound",error:n,isFetching:!1})),n.routerCode==="BEFORE_LOAD"&&a.parentRoute&&(n.routeId=a.parentRoute.id,this._handleNotFound(r,n,{updateMatch:i}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(r=>r.status==="notFound"||r.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??bN,parseSearch:t.parseSearch??gN}),typeof document<"u"&&(window.__TSR_ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,r){var n;const{foundRoute:i,matchedRoutes:o,routeParams:a}=this.getMatchedRoutes(t.pathname,(n=r==null?void 0:r.dest)==null?void 0:n.to);let s=!1;(i?i.path!=="/"&&a["**"]:rs(t.pathname))&&(this.options.notFoundRoute?o.push(this.options.notFoundRoute):s=!0);const u=(()=>{if(s){if(this.options.notFoundMode!=="root")for(let d=o.length-1;d>=0;d--){const h=o[d];if(h.children)return h.id}return Nr}})(),l=o.map(d=>{var h;let p;const v=((h=d.options.params)==null?void 0:h.parse)??d.options.parseParams;if(v)try{const g=v(a);Object.assign(a,g)}catch(g){if(p=new _N(g.message,{cause:g}),r!=null&&r.throwOnError)throw p;return p}}),f=[],c=d=>(d==null?void 0:d.id)?d.context??this.options.context??{}:this.options.context??{};return o.forEach((d,h)=>{var p,v;const g=f[h-1],[m,y,b]=(()=>{const I=(g==null?void 0:g.search)??t.search,D=(g==null?void 0:g._strictSearch)??{};try{const N=cm(d.options.validateSearch,{...I})??{};return[{...I,...N},{...D,...N},void 0]}catch(N){let F=N;if(N instanceof id||(F=new id(N.message,{cause:N})),r!=null&&r.throwOnError)throw F;return[I,{},F]}})(),O=((v=(p=d.options).loaderDeps)==null?void 0:v.call(p,{search:m}))??"",x=O?JSON.stringify(O):"",{usedParams:w,interpolatedPath:S}=av({path:d.fullPath,params:a,decodeCharMap:this.pathParamsDecodeCharMap}),_=av({path:d.id,params:a,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+x,P=this.getMatch(_),A=this.state.matches.find(I=>I.routeId===d.id),E=A?"stay":"enter";let $;if(P)$={...P,cause:E,params:A?hr(A.params,a):a,_strictParams:w,search:hr(A?A.search:P.search,m),_strictSearch:y};else{const I=d.options.loader||d.options.beforeLoad||d.lazyFn||Nw(d)?"pending":"success";$={id:_,index:h,routeId:d.id,params:A?hr(A.params,a):a,_strictParams:w,pathname:pn([this.basepath,S]),updatedAt:Date.now(),search:A?hr(A.search,m):m,_strictSearch:y,searchError:void 0,status:I,isFetching:!1,error:void 0,paramsError:l[h],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:E,loaderDeps:A?hr(A.loaderDeps,O):O,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:d.options.staticData||{},loadPromise:ea(),fullPath:d.fullPath}}r!=null&&r.preload||($.globalNotFound=u===d.id),$.searchError=b;const T=c(g);$.context={...T,...$.__routeContext,...$.__beforeLoadContext},f.push($)}),f.forEach((d,h)=>{var p,v;const g=this.looseRoutesById[d.routeId];if(!this.getMatch(d.id)&&(r==null?void 0:r._buildLocation)!==!0){const y=f[h-1],b=c(y),O={deps:d.loaderDeps,params:d.params,context:b,location:t,navigate:x=>this.navigate({...x,_fromLocation:t}),buildLocation:this.buildLocation,cause:d.cause,abortController:d.abortController,preload:!!d.preload,matches:f};d.__routeContext=((v=(p=g.options).context)==null?void 0:v.call(p,O))??{},d.context={...b,...d.__routeContext,...d.__beforeLoadContext}}}),f}}class id extends Error{}class _N extends Error{}function PN(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function cm(e,t){if(e==null)return{};if("~standard"in e){const r=e["~standard"].validate(t);if(r instanceof Promise)throw new id("Async validation not supported");if(r.issues)throw new id(JSON.stringify(r.issues,void 0,2),{cause:r});return r.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}const l$=["component","errorComponent","pendingComponent","notFoundComponent"];function Nw(e){var t;for(const r of l$)if((t=e.options[r])!=null&&t.preload)return!0;return!1}function AN({routeTree:e,initRoute:t}){const r={},n={},i=u=>{u.forEach((l,f)=>{t==null||t(l,f);const c=r[l.id];if($t(!c,`Duplicate routes found with id: ${String(l.id)}`),r[l.id]=l,!l.isRoot&&l.path){const h=rs(l.fullPath);(!n[h]||l.fullPath.endsWith("/"))&&(n[h]=l)}const d=l.children;d!=null&&d.length&&i(d)})};i([e]);const o=[];Object.values(r).forEach((u,l)=>{var f;if(u.isRoot||!u.path)return;const c=W0(u.fullPath),d=ns(c);for(;d.length>1&&((f=d[0])==null?void 0:f.value)==="/";)d.shift();const h=d.map(p=>p.value==="/"?.75:p.type==="param"&&p.prefixSegment&&p.suffixSegment?.55:p.type==="param"&&p.prefixSegment?.52:p.type==="param"&&p.suffixSegment?.51:p.type==="param"?.5:p.type==="wildcard"&&p.prefixSegment&&p.suffixSegment?.3:p.type==="wildcard"&&p.prefixSegment?.27:p.type==="wildcard"&&p.suffixSegment?.26:p.type==="wildcard"?.25:1);o.push({child:u,trimmed:c,parsed:d,index:l,scores:h})});const s=o.sort((u,l)=>{const f=Math.min(u.scores.length,l.scores.length);for(let c=0;c<f;c++)if(u.scores[c]!==l.scores[c])return l.scores[c]-u.scores[c];if(u.scores.length!==l.scores.length)return l.scores.length-u.scores.length;for(let c=0;c<f;c++)if(u.parsed[c].value!==l.parsed[c].value)return u.parsed[c].value>l.parsed[c].value?1:-1;return u.index-l.index}).map((u,l)=>(u.child.rank=l,u.child));return{routesById:r,routesByPath:n,flatRoutes:s}}function EN({pathname:e,routePathname:t,basepath:r,caseSensitive:n,routesByPath:i,routesById:o,flatRoutes:a}){let s={};const u=rs(e),l=h=>{var p;return um(r,u,{to:h.fullPath,caseSensitive:((p=h.options)==null?void 0:p.caseSensitive)??n,fuzzy:!0})};let f=t!==void 0?i[t]:void 0;f?s=l(f):f=a.find(h=>{const p=l(h);return p?(s=p,!0):!1});let c=f||o[Nr];const d=[c];for(;c.parentRoute;)c=c.parentRoute,d.unshift(c);return{matchedRoutes:d,routeParams:s,foundRoute:f}}function $N({search:e,dest:t,destRoutes:r,_includeValidateSearch:n}){const i=r.reduce((s,u)=>{var l;const f=[];if("search"in u.options)(l=u.options.search)!=null&&l.middlewares&&f.push(...u.options.search.middlewares);else if(u.options.preSearchFilters||u.options.postSearchFilters){const c=({search:d,next:h})=>{let p=d;"preSearchFilters"in u.options&&u.options.preSearchFilters&&(p=u.options.preSearchFilters.reduce((g,m)=>m(g),d));const v=h(p);return"postSearchFilters"in u.options&&u.options.postSearchFilters?u.options.postSearchFilters.reduce((g,m)=>m(g),v):v};f.push(c)}if(n&&u.options.validateSearch){const c=({search:d,next:h})=>{const p=h(d);try{return{...p,...cm(u.options.validateSearch,p)??{}}}catch{return p}};f.push(c)}return s.concat(f)},[])??[],o=({search:s})=>t.search?t.search===!0?s:wo(t.search,s):{};i.push(o);const a=(s,u)=>{if(s>=i.length)return u;const l=i[s];return l({search:u,next:c=>a(s+1,c)})};return a(0,e)}const jN="Error preloading route! ☝️";class c${constructor(t){if(this.init=r=>{var n,i;this.originalIndex=r.originalIndex;const o=this.options,a=!(o!=null&&o.path)&&!(o!=null&&o.id);this.parentRoute=(i=(n=this.options).getParentRoute)==null?void 0:i.call(n),a?this._path=Nr:this.parentRoute||$t(!1);let s=a?Nr:o==null?void 0:o.path;s&&s!=="/"&&(s=W0(s));const u=(o==null?void 0:o.id)||s;let l=a?Nr:pn([this.parentRoute.id===Nr?"":this.parentRoute.id,u]);s===Nr&&(s="/"),l!==Nr&&(l=pn(["/",l]));const f=l===Nr?"/":pn([this.parentRoute.fullPath,s]);this._path=s,this._id=l,this._fullPath=f,this._to=f,this._ssr=(o==null?void 0:o.ssr)??r.defaultSsr??!0},this.clone=r=>{this._path=r._path,this._id=r._id,this._fullPath=r._fullPath,this._to=r._to,this._ssr=r._ssr,this.options.getParentRoute=r.options.getParentRoute,this.children=r.children},this.addChildren=r=>this._addFileChildren(r),this._addFileChildren=r=>(Array.isArray(r)&&(this.children=r),typeof r=="object"&&r!==null&&(this.children=Object.values(r)),this),this._addFileTypes=()=>this,this.updateLoader=r=>(Object.assign(this.options,r),this),this.update=r=>(Object.assign(this.options,r),this),this.lazy=r=>(this.lazyFn=r,this),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}}class CN extends c${constructor(t){super(t)}}function q0(e){const t=e.errorComponent??$h;return R.jsx(TN,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:r,reset:n})=>r?k.createElement(t,{error:r,reset:n}):e.children})}class TN extends k.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,r){r.error&&r.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,r){this.props.onCatch&&this.props.onCatch(t,r)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function $h({error:e}){const[t,r]=k.useState(!1);return R.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[R.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),R.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(n=>!n),children:t?"Hide Error":"Show Error"})]}),R.jsx("div",{style:{height:".25rem"}}),t?R.jsx("div",{children:R.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?R.jsx("code",{children:e.message}):null})}):null]})}var f$={exports:{}},d$={},h$={exports:{}},p$={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var is=k;function kN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var MN=typeof Object.is=="function"?Object.is:kN,IN=is.useState,RN=is.useEffect,NN=is.useLayoutEffect,DN=is.useDebugValue;function LN(e,t){var r=t(),n=IN({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return NN(function(){i.value=r,i.getSnapshot=t,lv(i)&&o({inst:i})},[e,r,t]),RN(function(){return lv(i)&&o({inst:i}),e(function(){lv(i)&&o({inst:i})})},[e]),DN(r),r}function lv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!MN(e,r)}catch{return!0}}function FN(e,t){return t()}var BN=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?FN:LN;p$.useSyncExternalStore=is.useSyncExternalStore!==void 0?is.useSyncExternalStore:BN;h$.exports=p$;var zN=h$.exports;/**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var jh=k,UN=zN;function WN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qN=typeof Object.is=="function"?Object.is:WN,HN=UN.useSyncExternalStore,KN=jh.useRef,VN=jh.useEffect,GN=jh.useMemo,QN=jh.useDebugValue;d$.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=KN(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=GN(function(){function u(h){if(!l){if(l=!0,f=h,h=n(h),i!==void 0&&a.hasValue){var p=a.value;if(i(p,h))return c=p}return c=h}if(p=c,qN(f,h))return p;var v=n(h);return i!==void 0&&i(p,v)?(f=h,p):(f=h,c=v)}var l=!1,f,c,d=r===void 0?null:r;return[function(){return u(t())},d===null?void 0:function(){return u(d())}]},[t,r,n,i]);var s=HN(e,o[0],o[1]);return VN(function(){a.hasValue=!0,a.value=s},[s]),QN(s),s};f$.exports=d$;var XN=f$.exports;function YN(e,t=r=>r){return XN.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,ZN)}function ZN(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,i]of e)if(!t.has(n)||!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}const cv=k.createContext(null);function v$(){return typeof document>"u"?cv:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=cv,cv)}function Gr(e){const t=k.useContext(v$());return e==null||e.warn,t}function Dt(e){const t=Gr({warn:(e==null?void 0:e.router)===void 0}),r=(e==null?void 0:e.router)||t,n=k.useRef(void 0);return YN(r.__store,i=>{if(e!=null&&e.select){if(e.structuralSharing??r.options.defaultStructuralSharing){const o=hr(n.current,e.select(i));return n.current=o,o}return e.select(i)}return i})}const Ch=k.createContext(void 0),JN=k.createContext(void 0);function Ar(e){const t=k.useContext(e.from?JN:Ch);return Dt({select:n=>{const i=n.matches.find(o=>e.from?e.from===o.routeId:o.id===t);if($t(!((e.shouldThrow??!0)&&!i),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),i!==void 0)return e.select?e.select(i):i},structuralSharing:e.structuralSharing})}function H0(e){return Ar({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function K0(e){const{select:t,...r}=e;return Ar({...r,select:n=>t?t(n.loaderDeps):n.loaderDeps})}function V0(e){return Ar({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.params):t.params})}function G0(e){return Ar({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Q0(e){const{navigate:t,state:r}=Gr(),n=Ar({strict:!1,select:i=>i.index});return k.useCallback(i=>{const o=i.from??(e==null?void 0:e.from)??r.matches[n].fullPath;return t({...i,from:o})},[e==null?void 0:e.from,t])}const Pu=typeof window<"u"?k.useLayoutEffect:k.useEffect;function fv(e){const t=k.useRef({value:e,prev:null}),r=t.current.value;return e!==r&&(t.current={value:e,prev:r}),t.current.prev}function eD(e,t,r={},n={}){const i=k.useRef(typeof IntersectionObserver=="function"),o=k.useRef(null);return k.useEffect(()=>{if(!(!e.current||!i.current||n.disabled))return o.current=new IntersectionObserver(([a])=>{t(a)},r),o.current.observe(e.current),()=>{var a;(a=o.current)==null||a.disconnect()}},[t,r,n.disabled,e]),o.current}function tD(e){const t=k.useRef(null);return k.useImperativeHandle(e,()=>t.current,[]),t}function rD(e,t){const r=Gr(),[n,i]=k.useState(!1),o=k.useRef(!1),a=tD(t),{activeProps:s=()=>({className:"active"}),inactiveProps:u=()=>({}),activeOptions:l,to:f,preload:c,preloadDelay:d,hashScrollIntoView:h,replace:p,startTransition:v,resetScroll:g,viewTransition:m,children:y,target:b,disabled:O,style:x,className:w,onClick:S,onFocus:_,onMouseEnter:P,onMouseLeave:A,onTouchStart:E,ignoreBlocker:$,...T}=e,{params:I,search:D,hash:N,state:F,mask:M,reloadDocument:L,unsafeRelative:z,...W}=T,q=k.useMemo(()=>{try{return new URL(`${f}`),"external"}catch{}return"internal"},[f]),V=Dt({select:ye=>ye.location.search,structuralSharing:!0}),Q=Ar({strict:!1,select:ye=>ye.fullPath}),re=e.from??Q;e={...e,from:re};const ne=k.useMemo(()=>r.buildLocation(e),[r,e,V]),ce=k.useMemo(()=>e.reloadDocument?!1:c??r.options.defaultPreload,[r.options.defaultPreload,c,e.reloadDocument]),Ee=d??r.options.defaultPreloadDelay??0,G=Dt({select:ye=>{if(l!=null&&l.exact){if(!rN(ye.location.pathname,ne.pathname,r.basepath))return!1}else{const Ve=ed(ye.location.pathname,r.basepath).split("/");if(!ed(ne.pathname,r.basepath).split("/").every((gk,bk)=>gk===Ve[bk]))return!1}return((l==null?void 0:l.includeSearch)??!0)&&!$a(ye.location.search,ne.search,{partial:!(l!=null&&l.exact),ignoreUndefined:!(l!=null&&l.explicitUndefined)})?!1:l!=null&&l.includeHash?ye.location.hash===ne.hash:!0}}),Z=k.useCallback(()=>{r.preloadRoute(e).catch(ye=>{console.warn(ye),console.warn(jN)})},[e,r]),ie=k.useCallback(ye=>{ye!=null&&ye.isIntersecting&&Z()},[Z]);if(eD(a,ie,{rootMargin:"100px"},{disabled:!!O||ce!=="viewport"}),Pu(()=>{o.current||!O&&ce==="render"&&(Z(),o.current=!0)},[O,Z,ce]),q==="external")return{...W,ref:a,type:q,href:f,...y&&{children:y},...b&&{target:b},...O&&{disabled:O},...x&&{style:x},...w&&{className:w},...S&&{onClick:S},..._&&{onFocus:_},...P&&{onMouseEnter:P},...A&&{onMouseLeave:A},...E&&{onTouchStart:E}};const U=ye=>{if(!O&&!nD(ye)&&!ye.defaultPrevented&&(!b||b==="_self")&&ye.button===0){ye.preventDefault(),yE.flushSync(()=>{i(!0)});const Ve=r.subscribe("onResolved",()=>{Ve(),i(!1)});return r.navigate({...e,replace:p,resetScroll:g,hashScrollIntoView:h,startTransition:v,viewTransition:m,ignoreBlocker:$})}},ge=ye=>{O||ce&&Z()},he=ge,ze=ye=>{if(O)return;const Ve=ye.target||{};if(ce){if(Ve.preloadTimeout)return;Ee?Ve.preloadTimeout=setTimeout(()=>{Ve.preloadTimeout=null,Z()},Ee):Z()}},Ue=ye=>{if(O)return;const Ve=ye.target||{};Ve.preloadTimeout&&(clearTimeout(Ve.preloadTimeout),Ve.preloadTimeout=null)},Ke=ye=>Ve=>{var Vo;(Vo=Ve.persist)==null||Vo.call(Ve),ye.filter(Boolean).forEach(Xs=>{Ve.defaultPrevented||Xs(Ve)})},lr=G?wo(s,{})??{}:{},Xr=G?{}:wo(u,{}),qi=[w,lr.className,Xr.className].filter(Boolean).join(" "),Yr={...x,...lr.style,...Xr.style};return{...W,...lr,...Xr,href:O?void 0:ne.maskedLocation?r.history.createHref(ne.maskedLocation.href):r.history.createHref(ne.href),ref:a,onClick:Ke([S,U]),onFocus:Ke([_,ge]),onMouseEnter:Ke([P,ze]),onMouseLeave:Ke([A,Ue]),onTouchStart:Ke([E,he]),disabled:!!O,target:b,...Object.keys(Yr).length&&{style:Yr},...qi&&{className:qi},...O&&{role:"link","aria-disabled":!0},...G&&{"data-status":"active","aria-current":"page"},...n&&{"data-transitioning":"transitioning"}}}const pa=k.forwardRef((e,t)=>{const{_asChild:r,...n}=e,{type:i,ref:o,...a}=rD(n,t),s=typeof n.children=="function"?n.children({isActive:a["data-status"]==="active"}):n.children;return typeof r>"u"&&delete a.disabled,k.createElement(r||"a",{...a,ref:o},s)});function nD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let iD=class extends c${constructor(t){super(t),this.useMatch=r=>Ar({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>Ar({...r,from:this.id,select:n=>r!=null&&r.select?r.select(n.context):n.context}),this.useSearch=r=>G0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>V0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>K0({...r,from:this.id}),this.useLoaderData=r=>H0({...r,from:this.id}),this.useNavigate=()=>Q0({from:this.fullPath}),this.Link=C.forwardRef((r,n)=>R.jsx(pa,{ref:n,from:this.fullPath,...r})),this.$$typeof=Symbol.for("react.memo")}};function oD(e){return new iD(e)}class aD extends CN{constructor(t){super(t),this.useMatch=r=>Ar({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>Ar({...r,from:this.id,select:n=>r!=null&&r.select?r.select(n.context):n.context}),this.useSearch=r=>G0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>V0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>K0({...r,from:this.id}),this.useLoaderData=r=>H0({...r,from:this.id}),this.useNavigate=()=>Q0({from:this.fullPath}),this.Link=C.forwardRef((r,n)=>R.jsx(pa,{ref:n,from:this.fullPath,...r})),this.$$typeof=Symbol.for("react.memo")}}function sD(e){return new aD(e)}function os(e){return typeof e=="object"?new Dw(e,{silent:!0}).createRoute(e):new Dw(e,{silent:!0}).createRoute}class Dw{constructor(t,r){this.path=t,this.createRoute=n=>{this.silent;const i=oD(n);return i.isRoot=!1,i},this.silent=r==null?void 0:r.silent}}class Lw{constructor(t){this.useMatch=r=>Ar({select:r==null?void 0:r.select,from:this.options.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>Ar({from:this.options.id,select:n=>r!=null&&r.select?r.select(n.context):n.context}),this.useSearch=r=>G0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.options.id}),this.useParams=r=>V0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.options.id}),this.useLoaderDeps=r=>K0({...r,from:this.options.id}),this.useLoaderData=r=>H0({...r,from:this.options.id}),this.useNavigate=()=>{const r=Gr();return Q0({from:r.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function Fw(e){return typeof e=="object"?new Lw(e):t=>new Lw({id:e,...t})}function uD(e){const t=Dt({select:r=>`not-found-${r.location.pathname}-${r.status}`});return R.jsx(q0,{getResetKey:()=>t,onCatch:(r,n)=>{var i;if(mr(r))(i=e.onCatch)==null||i.call(e,r,n);else throw r},errorComponent:({error:r})=>{var n;if(mr(r))return(n=e.fallback)==null?void 0:n.call(e,r);throw r},children:e.children})}function lD(){return R.jsx("p",{children:"Not Found"})}function ta(e){return R.jsx(R.Fragment,{children:e.children})}function y$(e,t,r){return t.options.notFoundComponent?R.jsx(t.options.notFoundComponent,{data:r}):e.options.defaultNotFoundComponent?R.jsx(e.options.defaultNotFoundComponent,{data:r}):R.jsx(lD,{})}const m$={},cD=m$.hasOwnProperty,g$=(e,t)=>{for(const r in e)cD.call(e,r)&&t(r,e[r])},fD=(e,t)=>(t&&g$(t,(r,n)=>{e[r]=n}),e),dD=(e,t)=>{const r=e.length;let n=-1;for(;++n<r;)t(e[n])},Hc=e=>"\\u"+("0000"+e).slice(-4),au=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},uc=m$.toString,hD=Array.isArray,pD=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),vD=e=>uc.call(e)=="[object Object]",yD=e=>typeof e=="string"||uc.call(e)=="[object String]",mD=e=>typeof e=="number"||uc.call(e)=="[object Number]",dv=e=>typeof e=="bigint",gD=e=>typeof e=="function",bD=e=>uc.call(e)=="[object Map]",xD=e=>uc.call(e)=="[object Set]",wD={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},SD=/[\\\b\f\n\r\t]/,OD=/[0-9]/,_D=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,PD=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,AD=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,Yi=(e,t)=>{const r=()=>{l=u,++t.indentLevel,u=t.indent.repeat(t.indentLevel)},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;i&&(n.quotes="double",n.wrap=!0),t=fD(n,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");const o=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,s=t.lowercaseHex;let u=t.indent.repeat(t.indentLevel),l="";const f=t.__inline1__,c=t.__inline2__,d=a?"":`
`;let h,p=!0;const v=t.numbers=="binary",g=t.numbers=="octal",m=t.numbers=="decimal",y=t.numbers=="hexadecimal";if(i&&e&&gD(e.toJSON)&&(e=e.toJSON()),!yD(e)){if(bD(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Yi(Array.from(e),t)+")");if(xD(e))return e.size==0?"new Set()":"new Set("+Yi(Array.from(e),t)+")";if(pD(e))return e.length==0?"Buffer.from([])":"Buffer.from("+Yi(Array.from(e),t)+")";if(hD(e))return h=[],t.wrap=!0,f&&(t.__inline1__=!1,t.__inline2__=!0),c||r(),dD(e,O=>{p=!1,c&&(t.__inline2__=!1),h.push((a||c?"":u)+Yi(O,t))}),p?"[]":c?"["+h.join(", ")+"]":"["+d+h.join(","+d)+d+(a?"":l)+"]";if(mD(e)||dv(e)){if(i)return JSON.stringify(Number(e));let O;if(m)O=String(e);else if(y){let x=e.toString(16);s||(x=x.toUpperCase()),O="0x"+x}else v?O="0b"+e.toString(2):g&&(O="0o"+e.toString(8));return dv(e)?O+"n":O}else return dv(e)?i?JSON.stringify(Number(e)):e+"n":vD(e)?(h=[],t.wrap=!0,r(),g$(e,(O,x)=>{p=!1,h.push((a?"":u)+Yi(O,t)+":"+(a?"":" ")+Yi(x,t))}),p?"{}":"{"+d+h.join(","+d)+d+(a?"":l)+"}"):i?JSON.stringify(e)||"null":String(e)}const b=t.escapeEverything?PD:AD;return h=e.replace(b,(O,x,w,S,_,P)=>{if(x){if(t.minimal)return x;const E=x.charCodeAt(0),$=x.charCodeAt(1);if(t.es6){const T=(E-55296)*1024+$-56320+65536;return"\\u{"+au(T,s)+"}"}return Hc(au(E,s))+Hc(au($,s))}if(w)return Hc(au(w.charCodeAt(0),s));if(O=="\0"&&!i&&!OD.test(P.charAt(_+1)))return"\\0";if(S)return S==o||t.escapeEverything?"\\"+S:S;if(SD.test(O))return wD[O];if(t.minimal&&!_D.test(O))return O;const A=au(O.charCodeAt(0),s);return i||A.length>2?Hc(A):"\\x"+("00"+A).slice(-2)}),o=="`"&&(h=h.replace(/\$\{/g,"\\${")),t.isScriptContext&&(h=h.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,i?"\\u003C!--":"\\x3C!--")),t.wrap&&(h=o+h+o),h};Yi.version="3.0.2";function ED({children:e,log:t}){return typeof document<"u"?null:R.jsx("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[e,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(Boolean).join(`
`)}})}function $D(){const e=Gr(),r=(e.options.getScrollRestorationKey||lm)(e.latestLocation),n=r!==lm(e.latestLocation)?r:null;return!e.isScrollRestoring||!e.isServer?null:R.jsx(ED,{children:`(${u$.toString()})(${JSON.stringify(rd)},${JSON.stringify(n)}, undefined, true)`,log:!1})}const b$=k.memo(function({matchId:t}){var r,n;const i=Gr(),o=Dt({select:y=>{var b;return(b=y.matches.find(O=>O.id===t))==null?void 0:b.routeId}});$t(o);const a=i.routesById[o],s=a.options.pendingComponent??i.options.defaultPendingComponent,u=s?R.jsx(s,{}):null,l=a.options.errorComponent??i.options.defaultErrorComponent,f=a.options.onCatch??i.options.defaultOnCatch,c=a.isRoot?a.options.notFoundComponent??((r=i.options.notFoundRoute)==null?void 0:r.options.component):a.options.notFoundComponent,d=(!a.isRoot||a.options.wrapInSuspense)&&(a.options.wrapInSuspense??s??((n=a.options.errorComponent)==null?void 0:n.preload))?k.Suspense:ta,h=l?q0:ta,p=c?uD:ta,v=Dt({select:y=>y.loadedAt}),g=Dt({select:y=>{var b;const O=y.matches.findIndex(x=>x.id===t);return(b=y.matches[O-1])==null?void 0:b.routeId}}),m=a.isRoot?a.options.shellComponent??ta:ta;return R.jsxs(m,{children:[R.jsx(Ch.Provider,{value:t,children:R.jsx(d,{fallback:u,children:R.jsx(h,{getResetKey:()=>v,errorComponent:l||$h,onCatch:(y,b)=>{if(mr(y))throw y;f==null||f(y,b)},children:R.jsx(p,{fallback:y=>{if(!c||y.routeId&&y.routeId!==o||!y.routeId&&!a.isRoot)throw y;return k.createElement(c,y)},children:R.jsx(CD,{matchId:t})})})})}),g===Nr&&i.options.scrollRestoration?R.jsxs(R.Fragment,{children:[R.jsx(jD,{}),R.jsx($D,{})]}):null]})});function jD(){const e=Gr(),t=k.useRef(void 0);return R.jsx("script",{suppressHydrationWarning:!0,ref:r=>{r&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...So(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const CD=k.memo(function({matchId:t}){var r,n,i;const o=Gr(),{match:a,key:s,routeId:u}=Dt({select:d=>{const h=d.matches.findIndex(b=>b.id===t),p=d.matches[h],v=p.routeId,g=o.routesById[v].options.remountDeps??o.options.defaultRemountDeps,m=g==null?void 0:g({routeId:v,loaderDeps:p.loaderDeps,params:p._strictParams,search:p._strictSearch});return{key:m?JSON.stringify(m):void 0,routeId:v,match:am(p,["id","status","error"])}},structuralSharing:!0}),l=o.routesById[u],f=k.useMemo(()=>{const d=l.options.component??o.options.defaultComponent;return d?R.jsx(d,{},s):R.jsx(x$,{})},[s,l.options.component,o.options.defaultComponent]),c=(l.options.errorComponent??o.options.defaultErrorComponent)||$h;if(a.status==="notFound")return $t(mr(a.error)),y$(o,l,a.error);if(a.status==="redirected")throw $t(Jr(a.error)),(r=o.getMatch(a.id))==null?void 0:r.loadPromise;if(a.status==="error"){if(o.isServer)return R.jsx(c,{error:a.error,reset:void 0,info:{componentStack:""}});throw a.error}if(a.status==="pending"){const d=l.options.pendingMinMs??o.options.defaultPendingMinMs;if(d&&!((n=o.getMatch(a.id))!=null&&n.minPendingPromise)&&!o.isServer){const h=ea();Promise.resolve().then(()=>{o.updateMatch(a.id,p=>({...p,minPendingPromise:h}))}),setTimeout(()=>{h.resolve(),o.updateMatch(a.id,p=>({...p,minPendingPromise:void 0}))},d)}throw(i=o.getMatch(a.id))==null?void 0:i.loadPromise}return f}),x$=k.memo(function(){const t=Gr(),r=k.useContext(Ch),n=Dt({select:l=>{var f;return(f=l.matches.find(c=>c.id===r))==null?void 0:f.routeId}}),i=t.routesById[n],o=Dt({select:l=>{const c=l.matches.find(d=>d.id===r);return $t(c),c.globalNotFound}}),a=Dt({select:l=>{var f;const c=l.matches,d=c.findIndex(h=>h.id===r);return(f=c[d+1])==null?void 0:f.id}}),s=t.options.defaultPendingComponent?R.jsx(t.options.defaultPendingComponent,{}):null;if(t.isShell)return R.jsx(k.Suspense,{fallback:s,children:R.jsx(TD,{})});if(o)return y$(t,i,void 0);if(!a)return null;const u=R.jsx(b$,{matchId:a});return r===Nr?R.jsx(k.Suspense,{fallback:s,children:u}):u});function TD(){throw new Error("ShellBoundaryError")}function kD(){const e=Gr(),t=k.useRef({router:e,mounted:!1}),r=Dt({select:({isLoading:c})=>c}),[n,i]=k.useState(!1),o=Dt({select:c=>c.matches.some(d=>d.status==="pending"),structuralSharing:!0}),a=fv(r),s=r||n||o,u=fv(s),l=r||o,f=fv(l);return e.isServer||(e.startTransition=c=>{i(!0),k.startTransition(()=>{c(),i(!1)})}),k.useEffect(()=>{const c=e.history.subscribe(e.load),d=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return rs(e.latestLocation.href)!==rs(d.href)&&e.commitLocation({...d,replace:!0}),()=>{c()}},[e,e.history]),Pu(()=>{if(typeof window<"u"&&e.clientSsr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(d){console.error(d)}})()},[e]),Pu(()=>{a&&!r&&e.emit({type:"onLoad",...So(e.state)})},[a,e,r]),Pu(()=>{f&&!l&&e.emit({type:"onBeforeRouteMount",...So(e.state)})},[l,f,e]),Pu(()=>{u&&!s&&(e.emit({type:"onResolved",...So(e.state)}),e.__store.setState(c=>({...c,status:"idle",resolvedLocation:c.location})),vN(e))},[s,u,e]),null}function MD(){const e=Gr(),t=e.options.defaultPendingComponent?R.jsx(e.options.defaultPendingComponent,{}):null,r=e.isServer||typeof document<"u"&&e.clientSsr?ta:k.Suspense,n=R.jsxs(r,{fallback:t,children:[R.jsx(kD,{}),R.jsx(ID,{})]});return e.options.InnerWrap?R.jsx(e.options.InnerWrap,{children:n}):n}function ID(){const e=Dt({select:r=>{var n;return(n=r.matches[0])==null?void 0:n.id}}),t=Dt({select:r=>r.loadedAt});return R.jsx(Ch.Provider,{value:e,children:R.jsx(q0,{getResetKey:()=>t,errorComponent:$h,onCatch:r=>{r.message||r.toString()},children:e?R.jsx(b$,{matchId:e}):null})})}const RD=e=>new ND(e);class ND extends ON{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=os,globalThis.createLazyFileRoute=Fw):typeof window<"u"&&(window.createFileRoute=os,window.createFileRoute=Fw);function DD({router:e,children:t,...r}){Object.keys(r).length>0&&e.update({...e.options,...r,context:{...e.options.context,...r.context}});const n=v$(),i=R.jsx(n.Provider,{value:e,children:t});return e.options.Wrap?R.jsx(e.options.Wrap,{children:i}):i}function LD({router:e,...t}){return R.jsx(DD,{router:e,...t,children:R.jsx(MD,{})})}/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var FD={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.303.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=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Is=(e,t)=>{const r=k.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:s="",children:u,...l},f)=>k.createElement("svg",{ref:f,...FD,width:i,height:i,stroke:n,strokeWidth:a?Number(o)*24/Number(i):o,className:["lucide",`lucide-${BD(e)}`,s].join(" "),...l},[...t.map(([c,d])=>k.createElement(c,d)),...Array.isArray(u)?u:[u]]));return r.displayName=`${e}`,r};/**
* @license lucide-react v0.303.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=Is("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
* @license lucide-react v0.303.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=Is("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @license lucide-react v0.303.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=Is("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qD=Is("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
* @license lucide-react v0.303.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=Is("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.303.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=Is("XCircle",[["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"}]]),lc=sD({component:()=>R.jsx("div",{className:"min-h-screen bg-background",children:R.jsxs("div",{className:"flex",children:[R.jsxs("div",{className:"w-64 bg-card border-r min-h-screen p-4",children:[R.jsxs("div",{className:"mb-8",children:[R.jsx("h1",{className:"text-2xl font-bold text-primary",children:"Ultra MCP"}),R.jsx("p",{className:"text-sm text-muted-foreground",children:"Dashboard"})]}),R.jsxs("nav",{className:"space-y-2",children:[R.jsxs(pa,{to:"/",className:"flex items-center gap-3 px-3 py-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",activeProps:{className:"bg-accent text-accent-foreground"},children:[R.jsx(qD,{className:"h-4 w-4"}),"Overview"]}),R.jsxs(pa,{to:"/usage",className:"flex items-center gap-3 px-3 py-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",activeProps:{className:"bg-accent text-accent-foreground"},children:[R.jsx(zD,{className:"h-4 w-4"}),"Usage Analytics"]}),R.jsxs(pa,{to:"/models",className:"flex items-center gap-3 px-3 py-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",activeProps:{className:"bg-accent text-accent-foreground"},children:[R.jsx(WD,{className:"h-4 w-4"}),"Models"]}),R.jsxs(pa,{to:"/config",className:"flex items-center gap-3 px-3 py-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",activeProps:{className:"bg-accent text-accent-foreground"},children:[R.jsx(HD,{className:"h-4 w-4"}),"Configuration"]})]})]}),R.jsx("div",{className:"flex-1",children:R.jsx(x$,{})})]})})});function w$(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=w$(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=w$(e))&&(n&&(n+=" "),n+=t);return n}const X0="-",VD=e=>{const t=QD(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const s=a.split(X0);return s[0]===""&&s.length!==1&&s.shift(),S$(s,t)||GD(a)},getConflictingClassGroupIds:(a,s)=>{const u=r[a]||[];return s&&n[a]?[...u,...n[a]]:u}}},S$=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?S$(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(X0);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},Bw=/^\[(.+)\]$/,GD=e=>{if(Bw.test(e)){const t=Bw.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},QD=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return YD(Object.entries(e.classGroups),r).forEach(([o,a])=>{fm(a,n,o,t)}),n},fm=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:zw(t,i);o.classGroupId=r;return}if(typeof i=="function"){if(XD(i)){fm(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([o,a])=>{fm(a,zw(t,o),r,n)})})},zw=(e,t)=>{let r=e;return t.split(X0).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},XD=e=>e.isThemeGetter,YD=(e,t)=>t?e.map(([r,n])=>{const i=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[r,i]}):e,ZD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(o,a)=>{r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return i(o,a),a},set(o,a){r.has(o)?r.set(o,a):i(o,a)}}},O$="!",JD=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],o=t.length,a=s=>{const u=[];let l=0,f=0,c;for(let g=0;g<s.length;g++){let m=s[g];if(l===0){if(m===i&&(n||s.slice(g,g+o)===t)){u.push(s.slice(f,g)),f=g+o;continue}if(m==="/"){c=g;continue}}m==="["?l++:m==="]"&&l--}const d=u.length===0?s:s.substring(f),h=d.startsWith(O$),p=h?d.substring(1):d,v=c&&c>f?c-f:void 0;return{modifiers:u,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:v}};return r?s=>r({className:s,parseClassName:a}):a},eL=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},tL=e=>({cache:ZD(e.cacheSize),parseClassName:JD(e),...VD(e)}),rL=/\s+/,nL=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(rL);let s="";for(let u=a.length-1;u>=0;u-=1){const l=a[u],{modifiers:f,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:h}=r(l);let p=!!h,v=n(p?d.substring(0,h):d);if(!v){if(!p){s=l+(s.length>0?" "+s:s);continue}if(v=n(d),!v){s=l+(s.length>0?" "+s:s);continue}p=!1}const g=eL(f).join(":"),m=c?g+O$:g,y=m+v;if(o.includes(y))continue;o.push(y);const b=i(v,p);for(let O=0;O<b.length;++O){const x=b[O];o.push(m+x)}s=l+(s.length>0?" "+s:s)}return s};function iL(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=_$(t))&&(n&&(n+=" "),n+=r);return n}const _$=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=_$(e[n]))&&(r&&(r+=" "),r+=t);return r};function oL(e,...t){let r,n,i,o=a;function a(u){const l=t.reduce((f,c)=>c(f),e());return r=tL(l),n=r.cache.get,i=r.cache.set,o=s,s(u)}function s(u){const l=n(u);if(l)return l;const f=nL(u,r);return i(u,f),f}return function(){return o(iL.apply(null,arguments))}}const Ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},P$=/^\[(?:([a-z-]+):)?(.+)\]$/i,aL=/^\d+\/\d+$/,sL=new Set(["px","full","screen"]),uL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lL=/\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$/,cL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sn=e=>ja(e)||sL.has(e)||aL.test(e),Jn=e=>Rs(e,"length",xL),ja=e=>!!e&&!Number.isNaN(Number(e)),hv=e=>Rs(e,"number",ja),su=e=>!!e&&Number.isInteger(Number(e)),hL=e=>e.endsWith("%")&&ja(e.slice(0,-1)),de=e=>P$.test(e),ei=e=>uL.test(e),pL=new Set(["length","size","percentage"]),vL=e=>Rs(e,pL,A$),yL=e=>Rs(e,"position",A$),mL=new Set(["image","url"]),gL=e=>Rs(e,mL,SL),bL=e=>Rs(e,"",wL),uu=()=>!0,Rs=(e,t,r)=>{const n=P$.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},xL=e=>lL.test(e)&&!cL.test(e),A$=()=>!1,wL=e=>fL.test(e),SL=e=>dL.test(e),OL=()=>{const e=Ie("colors"),t=Ie("spacing"),r=Ie("blur"),n=Ie("brightness"),i=Ie("borderColor"),o=Ie("borderRadius"),a=Ie("borderSpacing"),s=Ie("borderWidth"),u=Ie("contrast"),l=Ie("grayscale"),f=Ie("hueRotate"),c=Ie("invert"),d=Ie("gap"),h=Ie("gradientColorStops"),p=Ie("gradientColorStopPositions"),v=Ie("inset"),g=Ie("margin"),m=Ie("opacity"),y=Ie("padding"),b=Ie("saturate"),O=Ie("scale"),x=Ie("sepia"),w=Ie("skew"),S=Ie("space"),_=Ie("translate"),P=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",de,t],$=()=>[de,t],T=()=>["",Sn,Jn],I=()=>["auto",ja,de],D=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",de],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[ja,de];return{cacheSize:500,separator:":",theme:{colors:[uu],spacing:[Sn,Jn],blur:["none","",ei,de],brightness:W(),borderColor:[e],borderRadius:["none","","full",ei,de],borderSpacing:$(),borderWidth:T(),contrast:W(),grayscale:L(),hueRotate:W(),invert:L(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[hL,Jn],inset:E(),margin:E(),opacity:W(),padding:$(),saturate:W(),scale:W(),sepia:L(),skew:W(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",de]}],container:["container"],columns:[{columns:[ei]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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"],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:[...D(),de]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",su,de]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",de]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",su,de]}],"grid-cols":[{"grid-cols":[uu]}],"col-start-end":[{col:["auto",{span:["full",su,de]},de]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[uu]}],"row-start-end":[{row:["auto",{span:[su,de]},de]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",de]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",de]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",de,t]}],"min-w":[{"min-w":[de,t,"min","max","fit"]}],"max-w":[{"max-w":[de,t,"none","full","min","max","fit","prose",{screen:[ei]},ei]}],h:[{h:[de,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[de,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[de,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ei,Jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",hv]}],"font-family":[{font:[uu]}],"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:["tighter","tight","normal","wide","wider","widest",de]}],"line-clamp":[{"line-clamp":["none",ja,hv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sn,de]}],"list-image":[{"list-image":["none",de]}],"list-style-type":[{list:["none","disc","decimal",de]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sn,Jn]}],"underline-offset":[{"underline-offset":["auto",Sn,de]}],"text-decoration-color":[{decoration:[e]}],"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",de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...D(),yL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gL]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:N()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[Sn,de]}],"outline-w":[{outline:[Sn,Jn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Sn,Jn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ei,bL]}],"shadow-color":[{shadow:[uu]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",ei,de]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[c]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",de]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",de]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",de]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[su,de]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",de]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",de]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],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",de]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sn,Jn,hv]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},_L=oL(OL);function Ns(...e){return _L(fe(e))}function Uw(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:4}).format(e)}function Ww(e){return new Intl.NumberFormat("en-US").format(e)}const an=k.forwardRef(({className:e,...t},r)=>R.jsx("div",{ref:r,className:Ns("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));an.displayName="Card";const sn=k.forwardRef(({className:e,...t},r)=>R.jsx("div",{ref:r,className:Ns("flex flex-col space-y-1.5 p-6",e),...t}));sn.displayName="CardHeader";const un=k.forwardRef(({className:e,...t},r)=>R.jsx("h3",{ref:r,className:Ns("text-2xl font-semibold leading-none tracking-tight",e),...t}));un.displayName="CardTitle";const Y0=k.forwardRef(({className:e,...t},r)=>R.jsx("p",{ref:r,className:Ns("text-sm text-muted-foreground",e),...t}));Y0.displayName="CardDescription";const ln=k.forwardRef(({className:e,...t},r)=>R.jsx("div",{ref:r,className:Ns("p-6 pt-0",e),...t}));ln.displayName="CardContent";const PL=k.forwardRef(({className:e,...t},r)=>R.jsx("div",{ref:r,className:Ns("flex items-center p-6 pt-0",e),...t}));PL.displayName="CardFooter";var AL=Array.isArray,Gt=AL,EL=typeof Sc=="object"&&Sc&&Sc.Object===Object&&Sc,E$=EL,$L=E$,jL=typeof self=="object"&&self&&self.Object===Object&&self,CL=$L||jL||Function("return this")(),xn=CL,TL=xn,kL=TL.Symbol,cc=kL,qw=cc,$$=Object.prototype,ML=$$.hasOwnProperty,IL=$$.toString,lu=qw?qw.toStringTag:void 0;function RL(e){var t=ML.call(e,lu),r=e[lu];try{e[lu]=void 0;var n=!0}catch{}var i=IL.call(e);return n&&(t?e[lu]=r:delete e[lu]),i}var NL=RL,DL=Object.prototype,LL=DL.toString;function FL(e){return LL.call(e)}var BL=FL,Hw=cc,zL=NL,UL=BL,WL="[object Null]",qL="[object Undefined]",Kw=Hw?Hw.toStringTag:void 0;function HL(e){return e==null?e===void 0?qL:WL:Kw&&Kw in Object(e)?zL(e):UL(e)}var Gn=HL;function KL(e){return e!=null&&typeof e=="object"}var Qn=KL,VL=Gn,GL=Qn,QL="[object Symbol]";function XL(e){return typeof e=="symbol"||GL(e)&&VL(e)==QL}var Ds=XL,YL=Gt,ZL=Ds,JL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eF=/^\w*$/;function tF(e,t){if(YL(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ZL(e)?!0:eF.test(e)||!JL.test(e)||t!=null&&e in Object(t)}var Z0=tF;function rF(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bi=rF;const Ls=Pe(Bi);var nF=Gn,iF=Bi,oF="[object AsyncFunction]",aF="[object Function]",sF="[object GeneratorFunction]",uF="[object Proxy]";function lF(e){if(!iF(e))return!1;var t=nF(e);return t==aF||t==sF||t==oF||t==uF}var J0=lF;const ue=Pe(J0);var cF=xn,fF=cF["__core-js_shared__"],dF=fF,pv=dF,Vw=function(){var e=/[^.]+$/.exec(pv&&pv.keys&&pv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function hF(e){return!!Vw&&Vw in e}var pF=hF,vF=Function.prototype,yF=vF.toString;function mF(e){if(e!=null){try{return yF.call(e)}catch{}try{return e+""}catch{}}return""}var j$=mF,gF=J0,bF=pF,xF=Bi,wF=j$,SF=/[\\^$.*+?()[\]{}|]/g,OF=/^\[object .+?Constructor\]$/,_F=Function.prototype,PF=Object.prototype,AF=_F.toString,EF=PF.hasOwnProperty,$F=RegExp("^"+AF.call(EF).replace(SF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jF(e){if(!xF(e)||bF(e))return!1;var t=gF(e)?$F:OF;return t.test(wF(e))}var CF=jF;function TF(e,t){return e==null?void 0:e[t]}var kF=TF,MF=CF,IF=kF;function RF(e,t){var r=IF(e,t);return MF(r)?r:void 0}var Uo=RF,NF=Uo,DF=NF(Object,"create"),Th=DF,Gw=Th;function LF(){this.__data__=Gw?Gw(null):{},this.size=0}var FF=LF;function BF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zF=BF,UF=Th,WF="__lodash_hash_undefined__",qF=Object.prototype,HF=qF.hasOwnProperty;function KF(e){var t=this.__data__;if(UF){var r=t[e];return r===WF?void 0:r}return HF.call(t,e)?t[e]:void 0}var VF=KF,GF=Th,QF=Object.prototype,XF=QF.hasOwnProperty;function YF(e){var t=this.__data__;return GF?t[e]!==void 0:XF.call(t,e)}var ZF=YF,JF=Th,e3="__lodash_hash_undefined__";function t3(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=JF&&t===void 0?e3:t,this}var r3=t3,n3=FF,i3=zF,o3=VF,a3=ZF,s3=r3;function Fs(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])}}Fs.prototype.clear=n3;Fs.prototype.delete=i3;Fs.prototype.get=o3;Fs.prototype.has=a3;Fs.prototype.set=s3;var u3=Fs;function l3(){this.__data__=[],this.size=0}var c3=l3;function f3(e,t){return e===t||e!==e&&t!==t}var eb=f3,d3=eb;function h3(e,t){for(var r=e.length;r--;)if(d3(e[r][0],t))return r;return-1}var kh=h3,p3=kh,v3=Array.prototype,y3=v3.splice;function m3(e){var t=this.__data__,r=p3(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():y3.call(t,r,1),--this.size,!0}var g3=m3,b3=kh;function x3(e){var t=this.__data__,r=b3(t,e);return r<0?void 0:t[r][1]}var w3=x3,S3=kh;function O3(e){return S3(this.__data__,e)>-1}var _3=O3,P3=kh;function A3(e,t){var r=this.__data__,n=P3(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var E3=A3,$3=c3,j3=g3,C3=w3,T3=_3,k3=E3;function Bs(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])}}Bs.prototype.clear=$3;Bs.prototype.delete=j3;Bs.prototype.get=C3;Bs.prototype.has=T3;Bs.prototype.set=k3;var Mh=Bs,M3=Uo,I3=xn,R3=M3(I3,"Map"),tb=R3,Qw=u3,N3=Mh,D3=tb;function L3(){this.size=0,this.__data__={hash:new Qw,map:new(D3||N3),string:new Qw}}var F3=L3;function B3(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var z3=B3,U3=z3;function W3(e,t){var r=e.__data__;return U3(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ih=W3,q3=Ih;function H3(e){var t=q3(this,e).delete(e);return this.size-=t?1:0,t}var K3=H3,V3=Ih;function G3(e){return V3(this,e).get(e)}var Q3=G3,X3=Ih;function Y3(e){return X3(this,e).has(e)}var Z3=Y3,J3=Ih;function eB(e,t){var r=J3(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var tB=eB,rB=F3,nB=K3,iB=Q3,oB=Z3,aB=tB;function zs(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])}}zs.prototype.clear=rB;zs.prototype.delete=nB;zs.prototype.get=iB;zs.prototype.has=oB;zs.prototype.set=aB;var rb=zs,C$=rb,sB="Expected a function";function nb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sB);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(nb.Cache||C$),r}nb.Cache=C$;var T$=nb;const uB=Pe(T$);var lB=T$,cB=500;function fB(e){var t=lB(e,function(n){return r.size===cB&&r.clear(),n}),r=t.cache;return t}var dB=fB,hB=dB,pB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vB=/\\(\\)?/g,yB=hB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(pB,function(r,n,i,o){t.push(i?o.replace(vB,"$1"):n||r)}),t}),mB=yB;function gB(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 ib=gB,Xw=cc,bB=ib,xB=Gt,wB=Ds,Yw=Xw?Xw.prototype:void 0,Zw=Yw?Yw.toString:void 0;function k$(e){if(typeof e=="string")return e;if(xB(e))return bB(e,k$)+"";if(wB(e))return Zw?Zw.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var SB=k$,OB=SB;function _B(e){return e==null?"":OB(e)}var M$=_B,PB=Gt,AB=Z0,EB=mB,$B=M$;function jB(e,t){return PB(e)?e:AB(e,t)?[e]:EB($B(e))}var I$=jB,CB=Ds;function TB(e){if(typeof e=="string"||CB(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Rh=TB,kB=I$,MB=Rh;function IB(e,t){t=kB(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[MB(t[r++])];return r&&r==n?e:void 0}var ob=IB,RB=ob;function NB(e,t,r){var n=e==null?void 0:RB(e,t);return n===void 0?r:n}var R$=NB;const ir=Pe(R$);function DB(e){return e==null}var LB=DB;const le=Pe(LB);var FB=Gn,BB=Gt,zB=Qn,UB="[object String]";function WB(e){return typeof e=="string"||!BB(e)&&zB(e)&&FB(e)==UB}var qB=WB;const ko=Pe(qB);var N$={exports:{}},Ae={};/**
* @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 ab=Symbol.for("react.element"),sb=Symbol.for("react.portal"),Nh=Symbol.for("react.fragment"),Dh=Symbol.for("react.strict_mode"),Lh=Symbol.for("react.profiler"),Fh=Symbol.for("react.provider"),Bh=Symbol.for("react.context"),HB=Symbol.for("react.server_context"),zh=Symbol.for("react.forward_ref"),Uh=Symbol.for("react.suspense"),Wh=Symbol.for("react.suspense_list"),qh=Symbol.for("react.memo"),Hh=Symbol.for("react.lazy"),KB=Symbol.for("react.offscreen"),D$;D$=Symbol.for("react.module.reference");function $r(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ab:switch(e=e.type,e){case Nh:case Lh:case Dh:case Uh:case Wh:return e;default:switch(e=e&&e.$$typeof,e){case HB:case Bh:case zh:case Hh:case qh:case Fh:return e;default:return t}}case sb:return t}}}Ae.ContextConsumer=Bh;Ae.ContextProvider=Fh;Ae.Element=ab;Ae.ForwardRef=zh;Ae.Fragment=Nh;Ae.Lazy=Hh;Ae.Memo=qh;Ae.Portal=sb;Ae.Profiler=Lh;Ae.StrictMode=Dh;Ae.Suspense=Uh;Ae.SuspenseList=Wh;Ae.isAsyncMode=function(){return!1};Ae.isConcurrentMode=function(){return!1};Ae.isContextConsumer=function(e){return $r(e)===Bh};Ae.isContextProvider=function(e){return $r(e)===Fh};Ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ab};Ae.isForwardRef=function(e){return $r(e)===zh};Ae.isFragment=function(e){return $r(e)===Nh};Ae.isLazy=function(e){return $r(e)===Hh};Ae.isMemo=function(e){return $r(e)===qh};Ae.isPortal=function(e){return $r(e)===sb};Ae.isProfiler=function(e){return $r(e)===Lh};Ae.isStrictMode=function(e){return $r(e)===Dh};Ae.isSuspense=function(e){return $r(e)===Uh};Ae.isSuspenseList=function(e){return $r(e)===Wh};Ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Nh||e===Lh||e===Dh||e===Uh||e===Wh||e===KB||typeof e=="object"&&e!==null&&(e.$$typeof===Hh||e.$$typeof===qh||e.$$typeof===Fh||e.$$typeof===Bh||e.$$typeof===zh||e.$$typeof===D$||e.getModuleId!==void 0)};Ae.typeOf=$r;N$.exports=Ae;var VB=N$.exports,GB=Gn,QB=Qn,XB="[object Number]";function YB(e){return typeof e=="number"||QB(e)&&GB(e)==XB}var L$=YB;const ZB=Pe(L$);var JB=L$;function ez(e){return JB(e)&&e!=+e}var tz=ez;const fc=Pe(tz);var Mt=function(t){return t===0?0:t>0?1:-1},oo=function(t){return ko(t)&&t.indexOf("%")===t.length-1},K=function(t){return ZB(t)&&!fc(t)},rz=function(t){return le(t)},ut=function(t){return K(t)||ko(t)},nz=0,Us=function(t){var r=++nz;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(!K(t)&&!ko(t))return n;var o;if(oo(t)){var a=t.indexOf("%");o=r*parseFloat(t.slice(0,a))/100}else o=+t;return fc(o)&&(o=n),i&&o>r&&(o=r),o},si=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},iz=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},Jt=function(t,r){return K(t)&&K(r)?function(n){return t+n*(r-t)}:function(){return r}};function od(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ir(n,t))===r})}var oz=function(t,r){return K(t)&&K(r)?t-r:ko(t)&&ko(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ca(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 dm(e){"@babel/helpers - typeof";return dm=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},dm(e)}var az=["viewBox","children"],sz=["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"],Jw=["points","pathLength"],vv={svg:az,polygon:Jw,polyline:Jw},ub=["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"],ad=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(k.isValidElement(t)&&(n=t.props),!Ls(n))return null;var i={};return Object.keys(n).forEach(function(o){ub.includes(o)&&(i[o]=r||function(a){return n[o](n,a)})}),i},uz=function(t,r,n){return function(i){return t(r,n,i),null}},Mo=function(t,r,n){if(!Ls(t)||dm(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];ub.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=uz(a,r,n))}),i},lz=["children"],cz=["children"];function eS(e,t){if(e==null)return{};var r=fz(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fz(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 hm(e){"@babel/helpers - typeof";return hm=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},hm(e)}var tS={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Nn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},rS=null,yv=null,lb=function e(t){if(t===rS&&Array.isArray(yv))return yv;var r=[];return k.Children.forEach(t,function(n){le(n)||(VB.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),yv=r,rS=t,r};function or(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Nn(i)}):n=[Nn(t)],lb(e).forEach(function(i){var o=ir(i,"type.displayName")||ir(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function Zt(e,t){var r=or(e,t);return r&&r[0]}var nS=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!K(n)||n<=0||!K(i)||i<=0)},dz=["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"],hz=function(t){return t&&t.type&&ko(t.type)&&dz.indexOf(t.type)>=0},pz=function(t){return t&&hm(t)==="object"&&"clipDot"in t},vz=function(t,r,n,i){var o,a=(o=vv==null?void 0:vv[i])!==null&&o!==void 0?o:[];return r.startsWith("data-")||!ue(t)&&(i&&a.includes(r)||sz.includes(r))||n&&ub.includes(r)},oe=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(k.isValidElement(t)&&(i=t.props),!Ls(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;vz((s=i)===null||s===void 0?void 0:s[a],a,r,n)&&(o[a]=i[a])}),o},pm=function e(t,r){if(t===r)return!0;var n=k.Children.count(t);if(n!==k.Children.count(r))return!1;if(n===0)return!0;if(n===1)return iS(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=t[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!iS(o,a))return!1}return!0},iS=function(t,r){if(le(t)&&le(r))return!0;if(!le(t)&&!le(r)){var n=t.props||{},i=n.children,o=eS(n,lz),a=r.props||{},s=a.children,u=eS(a,cz);return i&&s?Ca(o,u)&&pm(i,s):!i&&!s?Ca(o,u):!1}return!1},oS=function(t,r){var n=[],i={};return lb(t).forEach(function(o,a){if(hz(o))n.push(o);else if(o){var s=Nn(o.type),u=r[s]||{},l=u.handler,f=u.once;if(l&&(!f||!i[s])){var c=l(o,s,a);n.push(c),i[s]=!0}}}),n},yz=function(t){var r=t&&t.type;return r&&tS[r]?tS[r]:null},mz=function(t,r){return lb(r).indexOf(t)},gz=["children","width","height","viewBox","className","style","title","desc"];function vm(){return vm=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},vm.apply(this,arguments)}function bz(e,t){if(e==null)return{};var r=xz(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xz(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 ym(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,u=e.desc,l=bz(e,gz),f=i||{width:r,height:n,x:0,y:0},c=fe("recharts-surface",o);return C.createElement("svg",vm({},oe(l,!0,"svg"),{className:c,width:r,height:n,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),C.createElement("title",null,s),C.createElement("desc",null,u),t)}var wz=["children","className"];function mm(){return mm=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},mm.apply(this,arguments)}function Sz(e,t){if(e==null)return{};var r=Oz(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Oz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var xe=C.forwardRef(function(e,t){var r=e.children,n=e.className,i=Sz(e,wz),o=fe("recharts-layer",n);return C.createElement("g",mm({className:o},oe(i,!0),{ref:t}),r)}),Hr=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o]};function _z(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 o=Array(i);++n<i;)o[n]=e[n+t];return o}var Pz=_z,Az=Pz;function Ez(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Az(e,t,r)}var $z=Ez,jz="\\ud800-\\udfff",Cz="\\u0300-\\u036f",Tz="\\ufe20-\\ufe2f",kz="\\u20d0-\\u20ff",Mz=Cz+Tz+kz,Iz="\\ufe0e\\ufe0f",Rz="\\u200d",Nz=RegExp("["+Rz+jz+Mz+Iz+"]");function Dz(e){return Nz.test(e)}var F$=Dz;function Lz(e){return e.split("")}var Fz=Lz,B$="\\ud800-\\udfff",Bz="\\u0300-\\u036f",zz="\\ufe20-\\ufe2f",Uz="\\u20d0-\\u20ff",Wz=Bz+zz+Uz,qz="\\ufe0e\\ufe0f",Hz="["+B$+"]",gm="["+Wz+"]",bm="\\ud83c[\\udffb-\\udfff]",Kz="(?:"+gm+"|"+bm+")",z$="[^"+B$+"]",U$="(?:\\ud83c[\\udde6-\\uddff]){2}",W$="[\\ud800-\\udbff][\\udc00-\\udfff]",Vz="\\u200d",q$=Kz+"?",H$="["+qz+"]?",Gz="(?:"+Vz+"(?:"+[z$,U$,W$].join("|")+")"+H$+q$+")*",Qz=H$+q$+Gz,Xz="(?:"+[z$+gm+"?",gm,U$,W$,Hz].join("|")+")",Yz=RegExp(bm+"(?="+bm+")|"+Xz+Qz,"g");function Zz(e){return e.match(Yz)||[]}var Jz=Zz,e4=Fz,t4=F$,r4=Jz;function n4(e){return t4(e)?r4(e):e4(e)}var i4=n4,o4=$z,a4=F$,s4=i4,u4=M$;function l4(e){return function(t){t=u4(t);var r=a4(t)?s4(t):void 0,n=r?r[0]:t.charAt(0),i=r?o4(r,1).join(""):t.slice(1);return n[e]()+i}}var c4=l4,f4=c4,d4=f4("toUpperCase"),h4=d4;const Kh=Pe(h4);function Te(e){return function(){return e}}const K$=Math.cos,sd=Math.sin,Qr=Math.sqrt,ud=Math.PI,Vh=2*ud,xm=Math.PI,wm=2*xm,Zi=1e-6,p4=wm-Zi;function V$(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function v4(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return V$;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;i<o;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class y4{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?V$:v4(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,o,a){this._append`C${+t},${+r},${+n},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,r,n,i,o){if(t=+t,r=+r,n=+n,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,u=n-t,l=i-r,f=a-t,c=s-r,d=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Zi)if(!(Math.abs(c*u-l*f)>Zi)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-a,p=i-s,v=u*u+l*l,g=h*h+p*p,m=Math.sqrt(v),y=Math.sqrt(d),b=o*Math.tan((xm-Math.acos((v+d-g)/(2*m*y)))/2),O=b/y,x=b/m;Math.abs(O-1)>Zi&&this._append`L${t+O*f},${r+O*c}`,this._append`A${o},${o},0,0,${+(c*h>f*p)},${this._x1=t+x*u},${this._y1=r+x*l}`}}arc(t,r,n,i,o,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),u=n*Math.sin(i),l=t+s,f=r+u,c=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${l},${f}`:(Math.abs(this._x1-l)>Zi||Math.abs(this._y1-f)>Zi)&&this._append`L${l},${f}`,n&&(d<0&&(d=d%wm+wm),d>p4?this._append`A${n},${n},0,1,${c},${t-s},${r-u}A${n},${n},0,1,${c},${this._x1=l},${this._y1=f}`:d>Zi&&this._append`A${n},${n},0,${+(d>=xm)},${c},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}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 cb(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 y4(t)}function fb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function G$(e){this._context=e}G$.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 Gh(e){return new G$(e)}function Q$(e){return e[0]}function X$(e){return e[1]}function Y$(e,t){var r=Te(!0),n=null,i=Gh,o=null,a=cb(s);e=typeof e=="function"?e:e===void 0?Q$:Te(e),t=typeof t=="function"?t:t===void 0?X$:Te(t);function s(u){var l,f=(u=fb(u)).length,c,d=!1,h;for(n==null&&(o=i(h=a())),l=0;l<=f;++l)!(l<f&&r(c=u[l],l,u))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(c,l,u),+t(c,l,u));if(h)return o=null,h+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:Te(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Te(+u),s):t},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Te(!!u),s):r},s.curve=function(u){return arguments.length?(i=u,n!=null&&(o=i(n)),s):i},s.context=function(u){return arguments.length?(u==null?n=o=null:o=i(n=u),s):n},s}function Kc(e,t,r){var n=null,i=Te(!0),o=null,a=Gh,s=null,u=cb(l);e=typeof e=="function"?e:e===void 0?Q$:Te(+e),t=typeof t=="function"?t:Te(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?X$:Te(+r);function l(c){var d,h,p,v=(c=fb(c)).length,g,m=!1,y,b=new Array(v),O=new Array(v);for(o==null&&(s=a(y=u())),d=0;d<=v;++d){if(!(d<v&&i(g=c[d],d,c))===m)if(m=!m)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=d-1;p>=h;--p)s.point(b[p],O[p]);s.lineEnd(),s.areaEnd()}m&&(b[d]=+e(g,d,c),O[d]=+t(g,d,c),s.point(n?+n(g,d,c):b[d],r?+r(g,d,c):O[d]))}if(y)return s=null,y+""||null}function f(){return Y$().defined(i).curve(a).context(o)}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:Te(+c),n=null,l):e},l.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Te(+c),l):e},l.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Te(+c),l):n},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:Te(+c),r=null,l):t},l.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Te(+c),l):t},l.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Te(+c),l):r},l.lineX0=l.lineY0=function(){return f().x(e).y(t)},l.lineY1=function(){return f().x(e).y(r)},l.lineX1=function(){return f().x(n).y(t)},l.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Te(!!c),l):i},l.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),l):a},l.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),l):o},l}class Z${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 m4(e){return new Z$(e,!0)}function g4(e){return new Z$(e,!1)}const db={draw(e,t){const r=Qr(t/ud);e.moveTo(r,0),e.arc(0,0,r,0,Vh)}},b4={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()}},J$=Qr(1/3),x4=J$*2,w4={draw(e,t){const r=Qr(t/x4),n=r*J$;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},S4={draw(e,t){const r=Qr(t),n=-r/2;e.rect(n,n,r,r)}},O4=.8908130915292852,ej=sd(ud/10)/sd(7*ud/10),_4=sd(Vh/10)*ej,P4=-K$(Vh/10)*ej,A4={draw(e,t){const r=Qr(t*O4),n=_4*r,i=P4*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const a=Vh*o/5,s=K$(a),u=sd(a);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},mv=Qr(3),E4={draw(e,t){const r=-Qr(t/(mv*3));e.moveTo(0,r*2),e.lineTo(-mv*r,-r),e.lineTo(mv*r,-r),e.closePath()}},cr=-.5,fr=Qr(3)/2,Sm=1/Qr(12),$4=(Sm/2+1)*3,j4={draw(e,t){const r=Qr(t/$4),n=r/2,i=r*Sm,o=n,a=r*Sm+r,s=-o,u=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(cr*n-fr*i,fr*n+cr*i),e.lineTo(cr*o-fr*a,fr*o+cr*a),e.lineTo(cr*s-fr*u,fr*s+cr*u),e.lineTo(cr*n+fr*i,cr*i-fr*n),e.lineTo(cr*o+fr*a,cr*a-fr*o),e.lineTo(cr*s+fr*u,cr*u-fr*s),e.closePath()}};function C4(e,t){let r=null,n=cb(i);e=typeof e=="function"?e:Te(e||db),t=typeof t=="function"?t:Te(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Te(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Te(+o),i):t},i.context=function(o){return arguments.length?(r=o??null,i):r},i}function ld(){}function cd(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 tj(e){this._context=e}tj.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:cd(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:cd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function T4(e){return new tj(e)}function rj(e){this._context=e}rj.prototype={areaStart:ld,areaEnd:ld,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:cd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function k4(e){return new rj(e)}function nj(e){this._context=e}nj.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:cd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function M4(e){return new nj(e)}function ij(e){this._context=e}ij.prototype={areaStart:ld,areaEnd:ld,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 I4(e){return new ij(e)}function aS(e){return e<0?-1:1}function sS(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),s=(o*i+a*n)/(n+i);return(aS(o)+aS(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function uS(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function gv(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function fd(e){this._context=e}fd.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:gv(this,this._t0,uS(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,gv(this,uS(this,r=sS(this,e,t)),r);break;default:gv(this,this._t0,r=sS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function oj(e){this._context=new aj(e)}(oj.prototype=Object.create(fd.prototype)).point=function(e,t){fd.prototype.point.call(this,t,e)};function aj(e){this._context=e}aj.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,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function R4(e){return new fd(e)}function N4(e){return new oj(e)}function sj(e){this._context=e}sj.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=lS(e),i=lS(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(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 lS(e){var t,r=e.length-1,n,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function D4(e){return new sj(e)}function Qh(e,t){this._context=e,this._t=t}Qh.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 L4(e){return new Qh(e,.5)}function F4(e){return new Qh(e,0)}function B4(e){return new Qh(e,1)}function as(e,t){if((a=e.length)>1)for(var r=1,n,i,o=e[t[0]],a,s=o.length;r<a;++r)for(i=o,o=e[t[r]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Om(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function z4(e,t){return e[t]}function U4(e){const t=[];return t.key=e,t}function W4(){var e=Te([]),t=Om,r=as,n=z4;function i(o){var a=Array.from(e.apply(this,arguments),U4),s,u=a.length,l=-1,f;for(const c of o)for(s=0,++l;s<u;++s)(a[s][l]=[0,+n(c,a[s].key,l,o)]).data=c;for(s=0,f=fb(t(a));s<u;++s)a[f[s]].index=s;return r(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Te(Array.from(o)),i):e},i.value=function(o){return arguments.length?(n=typeof o=="function"?o:Te(+o),i):n},i.order=function(o){return arguments.length?(t=o==null?Om:typeof o=="function"?o:Te(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(r=o??as,i):r},i}function q4(e,t){if((n=e.length)>0){for(var r,n,i=0,o=e[0].length,a;i<o;++i){for(a=r=0;r<n;++r)a+=e[r][i][1]||0;if(a)for(r=0;r<n;++r)e[r][i][1]/=a}as(e,t)}}function H4(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,o=n.length;r<o;++r){for(var a=0,s=0;a<i;++a)s+=e[a][r][1]||0;n[r][1]+=n[r][0]=-s/2}as(e,t)}}function K4(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,a;n<o;++n){for(var s=0,u=0,l=0;s<a;++s){for(var f=e[t[s]],c=f[n][1]||0,d=f[n-1][1]||0,h=(c-d)/2,p=0;p<s;++p){var v=e[t[p]],g=v[n][1]||0,m=v[n-1][1]||0;h+=g-m}u+=c,l+=h*c}i[n-1][1]+=i[n-1][0]=r,u&&(r-=l/u)}i[n-1][1]+=i[n-1][0]=r,as(e,t)}}function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}var V4=["type","size","sizeType"];function _m(){return _m=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},_m.apply(this,arguments)}function cS(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 fS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cS(Object(r),!0).forEach(function(n){G4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G4(e,t,r){return t=Q4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q4(e){var t=X4(e,"string");return cl(t)=="symbol"?t:t+""}function X4(e,t){if(cl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y4(e,t){if(e==null)return{};var r=Z4(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z4(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 uj={symbolCircle:db,symbolCross:b4,symbolDiamond:w4,symbolSquare:S4,symbolStar:A4,symbolTriangle:E4,symbolWye:j4},J4=Math.PI/180,eU=function(t){var r="symbol".concat(Kh(t));return uj[r]||db},tU=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*J4;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}},rU=function(t,r){uj["symbol".concat(Kh(t))]=r},hb=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,u=Y4(t,V4),l=fS(fS({},u),{},{type:n,size:o,sizeType:s}),f=function(){var g=eU(n),m=C4().type(g).size(tU(o,s,n));return m()},c=l.className,d=l.cx,h=l.cy,p=oe(l,!0);return d===+d&&h===+h&&o===+o?C.createElement("path",_m({},p,{className:fe("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};hb.registerSymbol=rU;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)}function Pm(){return Pm=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},Pm.apply(this,arguments)}function dS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dS(Object(r),!0).forEach(function(n){fl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oU(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,cj(n.key),n)}}function aU(e,t,r){return t&&oU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sU(e,t,r){return t=dd(t),uU(e,lj()?Reflect.construct(t,r||[],dd(e).constructor):t.apply(e,r))}function uU(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 lU(e)}function lU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lj=function(){return!!e})()}function dd(e){return dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dd(e)}function cU(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&&Am(e,t)}function Am(e,t){return Am=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Am(e,t)}function fl(e,t,r){return t=cj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cj(e){var t=fU(e,"string");return ss(t)=="symbol"?t:t+""}function fU(e,t){if(ss(e)!="object"||!e)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 String(e)}var dr=32,pb=function(e){function t(){return iU(this,t),sU(this,t,arguments)}return cU(t,e),aU(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,o=dr/2,a=dr/6,s=dr/3,u=n.inactive?i:n.color;if(n.type==="plainline")return C.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:o,x2:dr,y2:o,className:"recharts-legend-icon"});if(n.type==="line")return C.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(s,`
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
H`).concat(dr,"M").concat(2*s,",").concat(o,`
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(n.type==="rect")return C.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(dr/8,"h").concat(dr,"v").concat(dr*3/4,"h").concat(-dr,"z"),className:"recharts-legend-icon"});if(C.isValidElement(n.legendIcon)){var l=nU({},n);return delete l.legendIcon,C.cloneElement(n.legendIcon,l)}return C.createElement(hb,{fill:u,cx:o,cy:o,size:dr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,u=i.formatter,l=i.inactiveColor,f={x:0,y:0,width:dr,height:dr},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(h,p){var v=h.formatter||u,g=fe(fl(fl({"recharts-legend-item":!0},"legend-item-".concat(p),!0),"inactive",h.inactive));if(h.type==="none")return null;var m=ue(h.value)?null:h.value;Hr(!ue(h.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 y=h.inactive?l:h.color;return C.createElement("li",Pm({className:g,style:c,key:"legend-item-".concat(p)},Mo(n.props,h,p)),C.createElement(ym,{width:a,height:a,viewBox:f,style:d},n.renderIcon(h)),C.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},v?v(m,h,p):m))})}},{key:"render",value:function(){var n=this.props,i=n.payload,o=n.layout,a=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return C.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(k.PureComponent);fl(pb,"displayName","Legend");fl(pb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var dU=Mh;function hU(){this.__data__=new dU,this.size=0}var pU=hU;function vU(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var yU=vU;function mU(e){return this.__data__.get(e)}var gU=mU;function bU(e){return this.__data__.has(e)}var xU=bU,wU=Mh,SU=tb,OU=rb,_U=200;function PU(e,t){var r=this.__data__;if(r instanceof wU){var n=r.__data__;if(!SU||n.length<_U-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new OU(n)}return r.set(e,t),this.size=r.size,this}var AU=PU,EU=Mh,$U=pU,jU=yU,CU=gU,TU=xU,kU=AU;function Ws(e){var t=this.__data__=new EU(e);this.size=t.size}Ws.prototype.clear=$U;Ws.prototype.delete=jU;Ws.prototype.get=CU;Ws.prototype.has=TU;Ws.prototype.set=kU;var fj=Ws,MU="__lodash_hash_undefined__";function IU(e){return this.__data__.set(e,MU),this}var RU=IU;function NU(e){return this.__data__.has(e)}var DU=NU,LU=rb,FU=RU,BU=DU;function hd(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new LU;++t<r;)this.add(e[t])}hd.prototype.add=hd.prototype.push=FU;hd.prototype.has=BU;var dj=hd;function zU(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 hj=zU;function UU(e,t){return e.has(t)}var pj=UU,WU=dj,qU=hj,HU=pj,KU=1,VU=2;function GU(e,t,r,n,i,o){var a=r&KU,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),f=o.get(t);if(l&&f)return l==t&&f==e;var c=-1,d=!0,h=r&VU?new WU:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var p=e[c],v=t[c];if(n)var g=a?n(v,p,c,t,e,o):n(p,v,c,e,t,o);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!qU(t,function(m,y){if(!HU(h,y)&&(p===m||i(p,m,r,n,o)))return h.push(y)})){d=!1;break}}else if(!(p===v||i(p,v,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var vj=GU,QU=xn,XU=QU.Uint8Array,YU=XU;function ZU(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var JU=ZU;function e8(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var vb=e8,hS=cc,pS=YU,t8=eb,r8=vj,n8=JU,i8=vb,o8=1,a8=2,s8="[object Boolean]",u8="[object Date]",l8="[object Error]",c8="[object Map]",f8="[object Number]",d8="[object RegExp]",h8="[object Set]",p8="[object String]",v8="[object Symbol]",y8="[object ArrayBuffer]",m8="[object DataView]",vS=hS?hS.prototype:void 0,bv=vS?vS.valueOf:void 0;function g8(e,t,r,n,i,o,a){switch(r){case m8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y8:return!(e.byteLength!=t.byteLength||!o(new pS(e),new pS(t)));case s8:case u8:case f8:return t8(+e,+t);case l8:return e.name==t.name&&e.message==t.message;case d8:case p8:return e==t+"";case c8:var s=n8;case h8:var u=n&o8;if(s||(s=i8),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=a8,a.set(e,t);var f=r8(s(e),s(t),n,i,o,a);return a.delete(e),f;case v8:if(bv)return bv.call(e)==bv.call(t)}return!1}var b8=g8;function x8(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var yj=x8,w8=yj,S8=Gt;function O8(e,t,r){var n=t(e);return S8(e)?n:w8(n,r(e))}var _8=O8;function P8(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}var A8=P8;function E8(){return[]}var $8=E8,j8=A8,C8=$8,T8=Object.prototype,k8=T8.propertyIsEnumerable,yS=Object.getOwnPropertySymbols,M8=yS?function(e){return e==null?[]:(e=Object(e),j8(yS(e),function(t){return k8.call(e,t)}))}:C8,I8=M8;function R8(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var N8=R8,D8=Gn,L8=Qn,F8="[object Arguments]";function B8(e){return L8(e)&&D8(e)==F8}var z8=B8,mS=z8,U8=Qn,mj=Object.prototype,W8=mj.hasOwnProperty,q8=mj.propertyIsEnumerable,H8=mS(function(){return arguments}())?mS:function(e){return U8(e)&&W8.call(e,"callee")&&!q8.call(e,"callee")},yb=H8,pd={exports:{}};function K8(){return!1}var V8=K8;pd.exports;(function(e,t){var r=xn,n=V8,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l})(pd,pd.exports);var gj=pd.exports,G8=9007199254740991,Q8=/^(?:0|[1-9]\d*)$/;function X8(e,t){var r=typeof e;return t=t??G8,!!t&&(r=="number"||r!="symbol"&&Q8.test(e))&&e>-1&&e%1==0&&e<t}var mb=X8,Y8=9007199254740991;function Z8(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Y8}var gb=Z8,J8=Gn,e5=gb,t5=Qn,r5="[object Arguments]",n5="[object Array]",i5="[object Boolean]",o5="[object Date]",a5="[object Error]",s5="[object Function]",u5="[object Map]",l5="[object Number]",c5="[object Object]",f5="[object RegExp]",d5="[object Set]",h5="[object String]",p5="[object WeakMap]",v5="[object ArrayBuffer]",y5="[object DataView]",m5="[object Float32Array]",g5="[object Float64Array]",b5="[object Int8Array]",x5="[object Int16Array]",w5="[object Int32Array]",S5="[object Uint8Array]",O5="[object Uint8ClampedArray]",_5="[object Uint16Array]",P5="[object Uint32Array]",Ne={};Ne[m5]=Ne[g5]=Ne[b5]=Ne[x5]=Ne[w5]=Ne[S5]=Ne[O5]=Ne[_5]=Ne[P5]=!0;Ne[r5]=Ne[n5]=Ne[v5]=Ne[i5]=Ne[y5]=Ne[o5]=Ne[a5]=Ne[s5]=Ne[u5]=Ne[l5]=Ne[c5]=Ne[f5]=Ne[d5]=Ne[h5]=Ne[p5]=!1;function A5(e){return t5(e)&&e5(e.length)&&!!Ne[J8(e)]}var E5=A5;function $5(e){return function(t){return e(t)}}var bj=$5,vd={exports:{}};vd.exports;(function(e,t){var r=E$,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(vd,vd.exports);var j5=vd.exports,C5=E5,T5=bj,gS=j5,bS=gS&&gS.isTypedArray,k5=bS?T5(bS):C5,xj=k5,M5=N8,I5=yb,R5=Gt,N5=gj,D5=mb,L5=xj,F5=Object.prototype,B5=F5.hasOwnProperty;function z5(e,t){var r=R5(e),n=!r&&I5(e),i=!r&&!n&&N5(e),o=!r&&!n&&!i&&L5(e),a=r||n||i||o,s=a?M5(e.length,String):[],u=s.length;for(var l in e)(t||B5.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||D5(l,u)))&&s.push(l);return s}var U5=z5,W5=Object.prototype;function q5(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||W5;return e===r}var H5=q5;function K5(e,t){return function(r){return e(t(r))}}var wj=K5,V5=wj,G5=V5(Object.keys,Object),Q5=G5,X5=H5,Y5=Q5,Z5=Object.prototype,J5=Z5.hasOwnProperty;function eW(e){if(!X5(e))return Y5(e);var t=[];for(var r in Object(e))J5.call(e,r)&&r!="constructor"&&t.push(r);return t}var tW=eW,rW=J0,nW=gb;function iW(e){return e!=null&&nW(e.length)&&!rW(e)}var dc=iW,oW=U5,aW=tW,sW=dc;function uW(e){return sW(e)?oW(e):aW(e)}var Xh=uW,lW=_8,cW=I8,fW=Xh;function dW(e){return lW(e,fW,cW)}var hW=dW,xS=hW,pW=1,vW=Object.prototype,yW=vW.hasOwnProperty;function mW(e,t,r,n,i,o){var a=r&pW,s=xS(e),u=s.length,l=xS(t),f=l.length;if(u!=f&&!a)return!1;for(var c=u;c--;){var d=s[c];if(!(a?d in t:yW.call(t,d)))return!1}var h=o.get(e),p=o.get(t);if(h&&p)return h==t&&p==e;var v=!0;o.set(e,t),o.set(t,e);for(var g=a;++c<u;){d=s[c];var m=e[d],y=t[d];if(n)var b=a?n(y,m,d,t,e,o):n(m,y,d,e,t,o);if(!(b===void 0?m===y||i(m,y,r,n,o):b)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){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)&&(v=!1)}return o.delete(e),o.delete(t),v}var gW=mW,bW=Uo,xW=xn,wW=bW(xW,"DataView"),SW=wW,OW=Uo,_W=xn,PW=OW(_W,"Promise"),AW=PW,EW=Uo,$W=xn,jW=EW($W,"Set"),Sj=jW,CW=Uo,TW=xn,kW=CW(TW,"WeakMap"),MW=kW,Em=SW,$m=tb,jm=AW,Cm=Sj,Tm=MW,Oj=Gn,qs=j$,wS="[object Map]",IW="[object Object]",SS="[object Promise]",OS="[object Set]",_S="[object WeakMap]",PS="[object DataView]",RW=qs(Em),NW=qs($m),DW=qs(jm),LW=qs(Cm),FW=qs(Tm),Ji=Oj;(Em&&Ji(new Em(new ArrayBuffer(1)))!=PS||$m&&Ji(new $m)!=wS||jm&&Ji(jm.resolve())!=SS||Cm&&Ji(new Cm)!=OS||Tm&&Ji(new Tm)!=_S)&&(Ji=function(e){var t=Oj(e),r=t==IW?e.constructor:void 0,n=r?qs(r):"";if(n)switch(n){case RW:return PS;case NW:return wS;case DW:return SS;case LW:return OS;case FW:return _S}return t});var BW=Ji,xv=fj,zW=vj,UW=b8,WW=gW,AS=BW,ES=Gt,$S=gj,qW=xj,HW=1,jS="[object Arguments]",CS="[object Array]",Vc="[object Object]",KW=Object.prototype,TS=KW.hasOwnProperty;function VW(e,t,r,n,i,o){var a=ES(e),s=ES(t),u=a?CS:AS(e),l=s?CS:AS(t);u=u==jS?Vc:u,l=l==jS?Vc:l;var f=u==Vc,c=l==Vc,d=u==l;if(d&&$S(e)){if(!$S(t))return!1;a=!0,f=!1}if(d&&!f)return o||(o=new xv),a||qW(e)?zW(e,t,r,n,i,o):UW(e,t,u,r,n,i,o);if(!(r&HW)){var h=f&&TS.call(e,"__wrapped__"),p=c&&TS.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,g=p?t.value():t;return o||(o=new xv),i(v,g,r,n,o)}}return d?(o||(o=new xv),WW(e,t,r,n,i,o)):!1}var GW=VW,QW=GW,kS=Qn;function _j(e,t,r,n,i){return e===t?!0:e==null||t==null||!kS(e)&&!kS(t)?e!==e&&t!==t:QW(e,t,r,n,_j,i)}var bb=_j,XW=fj,YW=bb,ZW=1,JW=2;function e6(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=r[i];var u=s[0],l=e[u],f=s[1];if(a&&s[2]){if(l===void 0&&!(u in e))return!1}else{var c=new XW;if(n)var d=n(l,f,u,e,t,c);if(!(d===void 0?YW(f,l,ZW|JW,n,c):d))return!1}}return!0}var t6=e6,r6=Bi;function n6(e){return e===e&&!r6(e)}var Pj=n6,i6=Pj,o6=Xh;function a6(e){for(var t=o6(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,i6(i)]}return t}var s6=a6;function u6(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Aj=u6,l6=t6,c6=s6,f6=Aj;function d6(e){var t=c6(e);return t.length==1&&t[0][2]?f6(t[0][0],t[0][1]):function(r){return r===e||l6(r,e,t)}}var h6=d6;function p6(e,t){return e!=null&&t in Object(e)}var v6=p6,y6=I$,m6=yb,g6=Gt,b6=mb,x6=gb,w6=Rh;function S6(e,t,r){t=y6(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=w6(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&x6(i)&&b6(a,i)&&(g6(e)||m6(e)))}var O6=S6,_6=v6,P6=O6;function A6(e,t){return e!=null&&P6(e,t,_6)}var E6=A6,$6=bb,j6=R$,C6=E6,T6=Z0,k6=Pj,M6=Aj,I6=Rh,R6=1,N6=2;function D6(e,t){return T6(e)&&k6(t)?M6(I6(e),t):function(r){var n=j6(r,e);return n===void 0&&n===t?C6(r,e):$6(t,n,R6|N6)}}var L6=D6;function F6(e){return e}var Hs=F6;function B6(e){return function(t){return t==null?void 0:t[e]}}var z6=B6,U6=ob;function W6(e){return function(t){return U6(t,e)}}var q6=W6,H6=z6,K6=q6,V6=Z0,G6=Rh;function Q6(e){return V6(e)?H6(G6(e)):K6(e)}var X6=Q6,Y6=h6,Z6=L6,J6=Hs,eq=Gt,tq=X6;function rq(e){return typeof e=="function"?e:e==null?J6:typeof e=="object"?eq(e)?Z6(e[0],e[1]):Y6(e):tq(e)}var wn=rq;function nq(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var Ej=nq;function iq(e){return e!==e}var oq=iq;function aq(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var sq=aq,uq=Ej,lq=oq,cq=sq;function fq(e,t,r){return t===t?cq(e,t,r):uq(e,lq,r)}var dq=fq,hq=dq;function pq(e,t){var r=e==null?0:e.length;return!!r&&hq(e,t,0)>-1}var vq=pq;function yq(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 mq=yq;function gq(){}var bq=gq,wv=Sj,xq=bq,wq=vb,Sq=1/0,Oq=wv&&1/wq(new wv([,-0]))[1]==Sq?function(e){return new wv(e)}:xq,_q=Oq,Pq=dj,Aq=vq,Eq=mq,$q=pj,jq=_q,Cq=vb,Tq=200;function kq(e,t,r){var n=-1,i=Aq,o=e.length,a=!0,s=[],u=s;if(r)a=!1,i=Eq;else if(o>=Tq){var l=t?null:jq(e);if(l)return Cq(l);a=!1,i=$q,u=new Pq}else u=t?[]:s;e:for(;++n<o;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,a&&c===c){for(var d=u.length;d--;)if(u[d]===c)continue e;t&&u.push(c),s.push(f)}else i(u,c,r)||(u!==s&&u.push(c),s.push(f))}return s}var Mq=kq,Iq=wn,Rq=Mq;function Nq(e,t){return e&&e.length?Rq(e,Iq(t)):[]}var Dq=Nq;const MS=Pe(Dq);function $j(e,t,r){return t===!0?MS(e,r):ue(t)?MS(e,t):e}function us(e){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},us(e)}var Lq=["ref"];function IS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IS(Object(r),!0).forEach(function(n){Yh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RS(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,Cj(n.key),n)}}function Bq(e,t,r){return t&&RS(e.prototype,t),r&&RS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zq(e,t,r){return t=yd(t),Uq(e,jj()?Reflect.construct(t,r||[],yd(e).constructor):t.apply(e,r))}function Uq(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 Wq(e)}function Wq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jj=function(){return!!e})()}function yd(e){return yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yd(e)}function qq(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&&km(e,t)}function km(e,t){return km=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},km(e,t)}function Yh(e,t,r){return t=Cj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cj(e){var t=Hq(e,"string");return us(t)=="symbol"?t:t+""}function Hq(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 String(e)}function Kq(e,t){if(e==null)return{};var r=Vq(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vq(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 Gq(e){return e.value}function Qq(e,t){if(C.isValidElement(e))return C.cloneElement(e,t);if(typeof e=="function")return C.createElement(e,t);t.ref;var r=Kq(t,Lq);return C.createElement(pb,r)}var NS=1,Ta=function(e){function t(){var r;Fq(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=zq(this,t,[].concat(i)),Yh(r,"lastBoundingBox",{width:-1,height:-1}),r}return qq(t,e),Bq(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)>NS||Math.abs(i.height-this.lastBoundingBox.height)>NS)&&(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?On({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,u=i.margin,l=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(a==="center"&&o==="vertical"){var h=this.getBBoxSnapshot();c={left:((l||0)-h.width)/2}}else c=a==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var p=this.getBBoxSnapshot();d={top:((f||0)-p.height)/2}}else d=s==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return On(On({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,o=i.content,a=i.width,s=i.height,u=i.wrapperStyle,l=i.payloadUniqBy,f=i.payload,c=On(On({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(u)),u);return C.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){n.wrapperNode=h}},Qq(o,On(On({},this.props),{},{payload:$j(f,l,Gq)})))}}],[{key:"getWithHeight",value:function(n,i){var o=On(On({},this.defaultProps),n.props),a=o.layout;return a==="vertical"&&K(n.props.height)?{height:n.props.height}:a==="horizontal"?{width:n.props.width||i}:null}}])}(k.PureComponent);Yh(Ta,"displayName","Legend");Yh(Ta,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var DS=cc,Xq=yb,Yq=Gt,LS=DS?DS.isConcatSpreadable:void 0;function Zq(e){return Yq(e)||Xq(e)||!!(LS&&e&&e[LS])}var Jq=Zq,eH=yj,tH=Jq;function Tj(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=tH),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?Tj(s,t-1,r,n,i):eH(i,s):n||(i[i.length]=s)}return i}var kj=Tj;function rH(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(r(o[u],u,o)===!1)break}return t}}var nH=rH,iH=nH,oH=iH(),aH=oH,sH=aH,uH=Xh;function lH(e,t){return e&&sH(e,t,uH)}var Mj=lH,cH=dc;function fH(e,t){return function(r,n){if(r==null)return r;if(!cH(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&n(a[o],o,a)!==!1;);return r}}var dH=fH,hH=Mj,pH=dH,vH=pH(hH),xb=vH,yH=xb,mH=dc;function gH(e,t){var r=-1,n=mH(e)?Array(e.length):[];return yH(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var Ij=gH;function bH(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var xH=bH,FS=Ds;function wH(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,o=FS(e),a=t!==void 0,s=t===null,u=t===t,l=FS(t);if(!s&&!l&&!o&&e>t||o&&a&&u&&!s&&!l||n&&a&&u||!r&&u||!i)return 1;if(!n&&!o&&!l&&e<t||l&&r&&i&&!n&&!o||s&&r&&i||!a&&i||!u)return-1}return 0}var SH=wH,OH=SH;function _H(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var u=OH(i[n],o[n]);if(u){if(n>=s)return u;var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}var PH=_H,Sv=ib,AH=ob,EH=wn,$H=Ij,jH=xH,CH=bj,TH=PH,kH=Hs,MH=Gt;function IH(e,t,r){t.length?t=Sv(t,function(o){return MH(o)?function(a){return AH(a,o.length===1?o[0]:o)}:o}):t=[kH];var n=-1;t=Sv(t,CH(EH));var i=$H(e,function(o,a,s){var u=Sv(t,function(l){return l(o)});return{criteria:u,index:++n,value:o}});return jH(i,function(o,a){return TH(o,a,r)})}var RH=IH;function NH(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 DH=NH,LH=DH,BS=Math.max;function FH(e,t,r){return t=BS(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=BS(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),LH(e,this,s)}}var BH=FH;function zH(e){return function(){return e}}var UH=zH,WH=Uo,qH=function(){try{var e=WH(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Rj=qH,HH=UH,zS=Rj,KH=Hs,VH=zS?function(e,t){return zS(e,"toString",{configurable:!0,enumerable:!1,value:HH(t),writable:!0})}:KH,GH=VH,QH=800,XH=16,YH=Date.now;function ZH(e){var t=0,r=0;return function(){var n=YH(),i=XH-(n-r);if(r=n,i>0){if(++t>=QH)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var JH=ZH,eK=GH,tK=JH,rK=tK(eK),nK=rK,iK=Hs,oK=BH,aK=nK;function sK(e,t){return aK(oK(e,t,iK),e+"")}var uK=sK,lK=eb,cK=dc,fK=mb,dK=Bi;function hK(e,t,r){if(!dK(r))return!1;var n=typeof t;return(n=="number"?cK(r)&&fK(t,r.length):n=="string"&&t in r)?lK(r[t],e):!1}var Zh=hK,pK=kj,vK=RH,yK=uK,US=Zh,mK=yK(function(e,t){if(e==null)return[];var r=t.length;return r>1&&US(e,t[0],t[1])?t=[]:r>2&&US(t[0],t[1],t[2])&&(t=[t[0]]),vK(e,pK(t,1),[])}),gK=mK;const wb=Pe(gK);function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function Mm(){return Mm=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},Mm.apply(this,arguments)}function bK(e,t){return OK(e)||SK(e,t)||wK(e,t)||xK()}function xK(){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 wK(e,t){if(e){if(typeof e=="string")return WS(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 WS(e,t)}}function WS(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 SK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function OK(e){if(Array.isArray(e))return e}function qS(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 Ov(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qS(Object(r),!0).forEach(function(n){_K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _K(e,t,r){return t=PK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PK(e){var t=AK(e,"string");return dl(t)=="symbol"?t:t+""}function AK(e,t){if(dl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EK(e){return Array.isArray(e)&&ut(e[0])&&ut(e[1])?e.join(" ~ "):e}var $K=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,s=a===void 0?{}:a,u=t.labelStyle,l=u===void 0?{}:u,f=t.payload,c=t.formatter,d=t.itemSorter,h=t.wrapperClassName,p=t.labelClassName,v=t.label,g=t.labelFormatter,m=t.accessibilityLayer,y=m===void 0?!1:m,b=function(){if(f&&f.length){var $={padding:0,margin:0},T=(d?wb(f,d):f).map(function(I,D){if(I.type==="none")return null;var N=Ov({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},s),F=I.formatter||c||EK,M=I.value,L=I.name,z=M,W=L;if(F&&z!=null&&W!=null){var q=F(M,L,I,D,f);if(Array.isArray(q)){var V=bK(q,2);z=V[0],W=V[1]}else z=q}return C.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:N},ut(W)?C.createElement("span",{className:"recharts-tooltip-item-name"},W):null,ut(W)?C.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,C.createElement("span",{className:"recharts-tooltip-item-value"},z),C.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return C.createElement("ul",{className:"recharts-tooltip-item-list",style:$},T)}return null},O=Ov({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),x=Ov({margin:0},l),w=!le(v),S=w?v:"",_=fe("recharts-default-tooltip",h),P=fe("recharts-tooltip-label",p);w&&g&&f!==void 0&&f!==null&&(S=g(v,f));var A=y?{role:"status","aria-live":"assertive"}:{};return C.createElement("div",Mm({className:_,style:O},A),C.createElement("p",{className:P,style:x},C.isValidElement(S)?S:"".concat(S)),b())};function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function Gc(e,t,r){return t=jK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jK(e){var t=CK(e,"string");return hl(t)=="symbol"?t:t+""}function CK(e,t){if(hl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cu="recharts-tooltip-wrapper",TK={visibility:"hidden"};function kK(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return fe(cu,Gc(Gc(Gc(Gc({},"".concat(cu,"-right"),K(r)&&t&&K(t.x)&&r>=t.x),"".concat(cu,"-left"),K(r)&&t&&K(t.x)&&r<t.x),"".concat(cu,"-bottom"),K(n)&&t&&K(t.y)&&n>=t.y),"".concat(cu,"-top"),K(n)&&t&&K(t.y)&&n<t.y))}function HS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,u=e.viewBox,l=e.viewBoxDimension;if(o&&K(o[n]))return o[n];var f=r[n]-s-i,c=r[n]+i;if(t[n])return a[n]?f:c;if(a[n]){var d=f,h=u[n];return d<h?Math.max(c,u[n]):Math.max(f,u[n])}var p=c+s,v=u[n]+l;return p>v?Math.max(f,u[n]):Math.max(c,u[n])}function MK(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,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,u=e.viewBox,l,f,c;return a.height>0&&a.width>0&&r?(f=HS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:u,viewBoxDimension:u.width}),c=HS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:u,viewBoxDimension:u.height}),l=MK({translateX:f,translateY:c,useTranslate3d:s})):l=TK,{cssProperties:l,cssClasses:kK({translateX:f,translateY:c,coordinate:r})}}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 KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){Rm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NK(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,Dj(n.key),n)}}function DK(e,t,r){return t&&NK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LK(e,t,r){return t=md(t),FK(e,Nj()?Reflect.construct(t,r||[],md(e).constructor):t.apply(e,r))}function FK(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 BK(e)}function BK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nj=function(){return!!e})()}function md(e){return md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},md(e)}function zK(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&&Im(e,t)}function Im(e,t){return Im=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Im(e,t)}function Rm(e,t,r){return t=Dj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dj(e){var t=UK(e,"string");return ls(t)=="symbol"?t:t+""}function UK(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 String(e)}var GS=1,WK=function(e){function t(){var r;RK(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=LK(this,t,[].concat(i)),Rm(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Rm(r,"handleKeyDown",function(a){if(a.key==="Escape"){var s,u,l,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&s!==void 0?s:0,y:(l=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&l!==void 0?l:0}})}}),r}return zK(t,e),DK(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>GS||Math.abs(n.height-this.state.lastBoundingBox.height)>GS)&&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,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,u=i.animationEasing,l=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,h=i.offset,p=i.position,v=i.reverseDirection,g=i.useTranslate3d,m=i.viewBox,y=i.wrapperStyle,b=IK({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:h,position:p,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:m}),O=b.cssClasses,x=b.cssProperties,w=VS(VS({transition:d&&o?"transform ".concat(s,"ms ").concat(u):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return C.createElement("div",{tabIndex:-1,className:O,style:w,ref:function(_){n.wrapperNode=_}},l)}}])}(k.PureComponent),qK=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Wo={isSsr:qK()};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 QS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QS(Object(r),!0).forEach(function(n){Sb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KK(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,Fj(n.key),n)}}function VK(e,t,r){return t&&KK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GK(e,t,r){return t=gd(t),QK(e,Lj()?Reflect.construct(t,r||[],gd(e).constructor):t.apply(e,r))}function QK(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 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 Lj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lj=function(){return!!e})()}function gd(e){return gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gd(e)}function YK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nm(e,t)}function Nm(e,t){return Nm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nm(e,t)}function Sb(e,t,r){return t=Fj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fj(e){var t=ZK(e,"string");return cs(t)=="symbol"?t:t+""}function ZK(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)}function JK(e){return e.dataKey}function eV(e,t){return C.isValidElement(e)?C.cloneElement(e,t):typeof e=="function"?C.createElement(e,t):C.createElement($K,t)}var Dr=function(e){function t(){return HK(this,t),GK(this,t,arguments)}return YK(t,e),VK(t,[{key:"render",value:function(){var n=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,u=i.animationEasing,l=i.content,f=i.coordinate,c=i.filterNull,d=i.isAnimationActive,h=i.offset,p=i.payload,v=i.payloadUniqBy,g=i.position,m=i.reverseDirection,y=i.useTranslate3d,b=i.viewBox,O=i.wrapperStyle,x=p??[];c&&x.length&&(x=$j(p.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),v,JK));var w=x.length>0;return C.createElement(WK,{allowEscapeViewBox:a,animationDuration:s,animationEasing:u,isAnimationActive:d,active:o,coordinate:f,hasPayload:w,offset:h,position:g,reverseDirection:m,useTranslate3d:y,viewBox:b,wrapperStyle:O},eV(l,XS(XS({},this.props),{},{payload:x})))}}])}(k.PureComponent);Sb(Dr,"displayName","Tooltip");Sb(Dr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Wo.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 tV=xn,rV=function(){return tV.Date.now()},nV=rV,iV=/\s/;function oV(e){for(var t=e.length;t--&&iV.test(e.charAt(t)););return t}var aV=oV,sV=aV,uV=/^\s+/;function lV(e){return e&&e.slice(0,sV(e)+1).replace(uV,"")}var cV=lV,fV=cV,YS=Bi,dV=Ds,ZS=NaN,hV=/^[-+]0x[0-9a-f]+$/i,pV=/^0b[01]+$/i,vV=/^0o[0-7]+$/i,yV=parseInt;function mV(e){if(typeof e=="number")return e;if(dV(e))return ZS;if(YS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=YS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fV(e);var r=pV.test(e);return r||vV.test(e)?yV(e.slice(2),r?2:8):hV.test(e)?ZS:+e}var Bj=mV,gV=Bi,_v=nV,JS=Bj,bV="Expected a function",xV=Math.max,wV=Math.min;function SV(e,t,r){var n,i,o,a,s,u,l=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(bV);t=JS(t)||0,gV(r)&&(f=!!r.leading,c="maxWait"in r,o=c?xV(JS(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(w){var S=n,_=i;return n=i=void 0,l=w,a=e.apply(_,S),a}function p(w){return l=w,s=setTimeout(m,t),f?h(w):a}function v(w){var S=w-u,_=w-l,P=t-S;return c?wV(P,o-_):P}function g(w){var S=w-u,_=w-l;return u===void 0||S>=t||S<0||c&&_>=o}function m(){var w=_v();if(g(w))return y(w);s=setTimeout(m,v(w))}function y(w){return s=void 0,d&&n?h(w):(n=i=void 0,a)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function O(){return s===void 0?a:y(_v())}function x(){var w=_v(),S=g(w);if(n=arguments,i=this,u=w,S){if(s===void 0)return p(u);if(c)return clearTimeout(s),s=setTimeout(m,t),h(u)}return s===void 0&&(s=setTimeout(m,t)),a}return x.cancel=b,x.flush=O,x}var OV=SV,_V=OV,PV=Bi,AV="Expected a function";function EV(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(AV);return PV(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),_V(e,t,{leading:n,maxWait:t,trailing:i})}var $V=EV;const zj=Pe($V);function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function e1(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 Qc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e1(Object(r),!0).forEach(function(n){jV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jV(e,t,r){return t=CV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CV(e){var t=TV(e,"string");return pl(t)=="symbol"?t:t+""}function TV(e,t){if(pl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kV(e,t){return NV(e)||RV(e,t)||IV(e,t)||MV()}function MV(){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 t1(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 t1(e,t)}}function t1(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 RV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function NV(e){if(Array.isArray(e))return e}var r1=k.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,o=e.width,a=o===void 0?"100%":o,s=e.height,u=s===void 0?"100%":s,l=e.minWidth,f=l===void 0?0:l,c=e.minHeight,d=e.maxHeight,h=e.children,p=e.debounce,v=p===void 0?0:p,g=e.id,m=e.className,y=e.onResize,b=e.style,O=b===void 0?{}:b,x=k.useRef(null),w=k.useRef();w.current=y,k.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 S=k.useState({containerWidth:i.width,containerHeight:i.height}),_=kV(S,2),P=_[0],A=_[1],E=k.useCallback(function(T,I){A(function(D){var N=Math.round(T),F=Math.round(I);return D.containerWidth===N&&D.containerHeight===F?D:{containerWidth:N,containerHeight:F}})},[]);k.useEffect(function(){var T=function(L){var z,W=L[0].contentRect,q=W.width,V=W.height;E(q,V),(z=w.current)===null||z===void 0||z.call(w,q,V)};v>0&&(T=zj(T,v,{trailing:!0,leading:!1}));var I=new ResizeObserver(T),D=x.current.getBoundingClientRect(),N=D.width,F=D.height;return E(N,F),I.observe(x.current),function(){I.disconnect()}},[E,v]);var $=k.useMemo(function(){var T=P.containerWidth,I=P.containerHeight;if(T<0||I<0)return null;Hr(oo(a)||oo(u),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,a,u),Hr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=oo(a)?T:a,N=oo(u)?I:u;r&&r>0&&(D?N=D/r:N&&(D=N*r),d&&N>d&&(N=d)),Hr(D>0||N>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.`,D,N,a,u,f,c,r);var F=!Array.isArray(h)&&Nn(h.type).endsWith("Chart");return C.Children.map(h,function(M){return C.isValidElement(M)?k.cloneElement(M,Qc({width:D,height:N},F?{style:Qc({height:"100%",width:"100%",maxHeight:N,maxWidth:D},M.props.style)}:{})):M})},[r,h,u,d,c,f,P,a]);return C.createElement("div",{id:g?"".concat(g):void 0,className:fe("recharts-responsive-container",m),style:Qc(Qc({},O),{},{width:a,height:u,minWidth:f,minHeight:c,maxHeight:d}),ref:x},$)}),Jh=function(t){return null};Jh.displayName="Cell";function vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vl(e)}function n1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n1(Object(r),!0).forEach(function(n){DV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DV(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=FV(e,"string");return vl(t)=="symbol"?t:t+""}function FV(e,t){if(vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xo={widthCache:{},cacheCount:0},BV=2e3,zV={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},i1="recharts_measurement_span";function UV(e){var t=Dm({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Lu=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Wo.isSsr)return{width:0,height:0};var n=UV(r),i=JSON.stringify({text:t,copyStyle:n});if(Xo.widthCache[i])return Xo.widthCache[i];try{var o=document.getElementById(i1);o||(o=document.createElement("span"),o.setAttribute("id",i1),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Dm(Dm({},zV),n);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),u={width:s.width,height:s.height};return Xo.widthCache[i]=u,++Xo.cacheCount>BV&&(Xo.cacheCount=0,Xo.widthCache={}),u}catch{return{width:0,height:0}}},WV=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function bd(e,t){return VV(e)||KV(e,t)||HV(e,t)||qV()}function qV(){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 HV(e,t){if(e){if(typeof e=="string")return o1(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 o1(e,t)}}function o1(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 KV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)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 a1(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 QV(e,t,r){return t&&a1(e.prototype,t),r&&a1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function XV(e){var t=YV(e,"string");return yl(t)=="symbol"?t:t+""}function YV(e,t){if(yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var s1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,u1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ZV=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,JV=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Uj={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},e7=Object.keys(Uj),va="NaN";function t7(e,t){return e*Uj[t]}var Xc=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!==""&&!ZV.test(r)&&(this.num=NaN,this.unit=""),e7.includes(r)&&(this.num=t7(t,r),this.unit="px")}return QV(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=JV.exec(r))!==null&&n!==void 0?n:[],o=bd(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function Wj(e){if(e.includes(va))return va;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=s1.exec(t))!==null&&r!==void 0?r:[],i=bd(n,4),o=i[1],a=i[2],s=i[3],u=Xc.parse(o??""),l=Xc.parse(s??""),f=a==="*"?u.multiply(l):u.divide(l);if(f.isNaN())return va;t=t.replace(s1,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=u1.exec(t))!==null&&c!==void 0?c:[],h=bd(d,4),p=h[1],v=h[2],g=h[3],m=Xc.parse(p??""),y=Xc.parse(g??""),b=v==="+"?m.add(y):m.subtract(y);if(b.isNaN())return va;t=t.replace(u1,b.toString())}return t}var l1=/\(([^()]*)\)/;function r7(e){for(var t=e;t.includes("(");){var r=l1.exec(t),n=bd(r,2),i=n[1];t=t.replace(l1,Wj(i))}return t}function n7(e){var t=e.replace(/\s+/g,"");return t=r7(t),t=Wj(t),t}function i7(e){try{return n7(e)}catch{return va}}function Pv(e){var t=i7(e.slice(5,-1));return t===va?"":t}var o7=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],a7=["dx","dy","angle","className","breakAll"];function Lm(){return Lm=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},Lm.apply(this,arguments)}function c1(e,t){if(e==null)return{};var r=s7(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s7(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 f1(e,t){return f7(e)||c7(e,t)||l7(e,t)||u7()}function u7(){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 l7(e,t){if(e){if(typeof e=="string")return d1(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 d1(e,t)}}function d1(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 c7(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function f7(e){if(Array.isArray(e))return e}var qj=/[ \f\n\r\t\v\u2028\u2029]+/,Hj=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var o=[];le(r)||(n?o=r.toString().split(""):o=r.toString().split(qj));var a=o.map(function(u){return{word:u,width:Lu(u,i).width}}),s=n?0:Lu(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},d7=function(t,r,n,i,o){var a=t.maxLines,s=t.children,u=t.style,l=t.breakAll,f=K(a),c=s,d=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(N,F){var M=F.word,L=F.width,z=N[N.length-1];if(z&&(i==null||o||z.width+L+n<Number(i)))z.words.push(M),z.width+=L+n;else{var W={words:[M],width:L};N.push(W)}return N},[])},h=d(r),p=function(D){return D.reduce(function(N,F){return N.width>F.width?N:F})};if(!f)return h;for(var v="…",g=function(D){var N=c.slice(0,D),F=Hj({breakAll:l,style:u,children:N+v}).wordsWithComputedWidth,M=d(F),L=M.length>a||p(M).width>Number(i);return[L,M]},m=0,y=c.length-1,b=0,O;m<=y&&b<=c.length-1;){var x=Math.floor((m+y)/2),w=x-1,S=g(w),_=f1(S,2),P=_[0],A=_[1],E=g(x),$=f1(E,1),T=$[0];if(!P&&!T&&(m=x+1),P&&T&&(y=x-1),!P&&T){O=A;break}b++}return O||h},h1=function(t){var r=le(t)?[]:t.toString().split(qj);return[{words:r}]},h7=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((r||n)&&!Wo.isSsr){var u,l,f=Hj({breakAll:a,children:i,style:o});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;u=c,l=d}else return h1(i);return d7({breakAll:a,children:i,maxLines:s,style:o},u,l,r,n)}return h1(i)},p1="#808080",Io=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,u=t.capHeight,l=u===void 0?"0.71em":u,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,p=t.verticalAnchor,v=p===void 0?"end":p,g=t.fill,m=g===void 0?p1:g,y=c1(t,o7),b=k.useMemo(function(){return h7({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:c,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,c,y.style,y.width]),O=y.dx,x=y.dy,w=y.angle,S=y.className,_=y.breakAll,P=c1(y,a7);if(!ut(n)||!ut(o))return null;var A=n+(K(O)?O:0),E=o+(K(x)?x:0),$;switch(v){case"start":$=Pv("calc(".concat(l,")"));break;case"middle":$=Pv("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:$=Pv("calc(".concat(b.length-1," * -").concat(s,")"));break}var T=[];if(c){var I=b[0].width,D=y.width;T.push("scale(".concat((K(D)?D/I:1)/I,")"))}return w&&T.push("rotate(".concat(w,", ").concat(A,", ").concat(E,")")),T.length&&(P.transform=T.join(" ")),C.createElement("text",Lm({},oe(P,!0),{x:A,y:E,className:fe("recharts-text",S),textAnchor:h,fill:m.includes("url")?p1:m}),b.map(function(N,F){var M=N.words.join(_?"":" ");return C.createElement("tspan",{x:A,dy:F===0?$:s,key:"".concat(M,"-").concat(F)},M)}))};function ki(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function p7(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ob(e){let t,r,n;e.length!==2?(t=ki,r=(s,u)=>ki(e(s),u),n=(s,u)=>e(s)-u):(t=e===ki||e===p7?e:v7,r=e,n=e);function i(s,u,l=0,f=s.length){if(l<f){if(t(u,u)!==0)return f;do{const c=l+f>>>1;r(s[c],u)<0?l=c+1:f=c}while(l<f)}return l}function o(s,u,l=0,f=s.length){if(l<f){if(t(u,u)!==0)return f;do{const c=l+f>>>1;r(s[c],u)<=0?l=c+1:f=c}while(l<f)}return l}function a(s,u,l=0,f=s.length){const c=i(s,u,l,f-1);return c>l&&n(s[c-1],u)>-n(s[c],u)?c-1:c}return{left:i,center:a,right:o}}function v7(){return 0}function Kj(e){return e===null?NaN:+e}function*y7(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const m7=Ob(ki),hc=m7.right;Ob(Kj).center;class v1 extends Map{constructor(t,r=x7){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(y1(this,t))}has(t){return super.has(y1(this,t))}set(t,r){return super.set(g7(this,t),r)}delete(t){return super.delete(b7(this,t))}}function y1({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function g7({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function b7({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function x7(e){return e!==null&&typeof e=="object"?e.valueOf():e}function w7(e=ki){if(e===ki)return Vj;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 Vj(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const S7=Math.sqrt(50),O7=Math.sqrt(10),_7=Math.sqrt(2);function xd(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=S7?10:o>=O7?5:o>=_7?2:1;let s,u,l;return i<0?(l=Math.pow(10,-i)/a,s=Math.round(e*l),u=Math.round(t*l),s/l<e&&++s,u/l>t&&--u,l=-l):(l=Math.pow(10,i)*a,s=Math.round(e/l),u=Math.round(t/l),s*l<e&&++s,u*l>t&&--u),u<s&&.5<=r&&r<2?xd(e,t,r*2):[s,u,l]}function Fm(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,o,a]=n?xd(t,e,r):xd(e,t,r);if(!(o>=i))return[];const s=o-i+1,u=new Array(s);if(n)if(a<0)for(let l=0;l<s;++l)u[l]=(o-l)/-a;else for(let l=0;l<s;++l)u[l]=(o-l)*a;else if(a<0)for(let l=0;l<s;++l)u[l]=(i+l)/-a;else for(let l=0;l<s;++l)u[l]=(i+l)*a;return u}function Bm(e,t,r){return t=+t,e=+e,r=+r,xd(e,t,r)[2]}function zm(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Bm(t,e,r):Bm(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function m1(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function g1(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Gj(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?Vj:w7(i);n>r;){if(n-r>600){const u=n-r+1,l=t-r+1,f=Math.log(u),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(u-c)/u)*(l-u/2<0?-1:1),h=Math.max(r,Math.floor(t-l*c/u+d)),p=Math.min(n,Math.floor(t+(u-l)*c/u+d));Gj(e,t,h,p,i)}const o=e[t];let a=r,s=n;for(fu(e,r,t),i(e[n],o)>0&&fu(e,r,n);a<s;){for(fu(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[r],o)===0?fu(e,r,s):(++s,fu(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function fu(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function P7(e,t,r){if(e=Float64Array.from(y7(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return g1(e);if(t>=1)return m1(e);var n,i=(n-1)*t,o=Math.floor(i),a=m1(Gj(e,o).subarray(0,o+1)),s=g1(e.subarray(o+1));return a+(s-a)*(i-o)}}function A7(e,t,r=Kj){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,o=Math.floor(i),a=+r(e[o],o,e),s=+r(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function E7(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,o=new Array(i);++n<i;)o[n]=e+n*r;return o}function jr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Xn(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 Um=Symbol("implicit");function _b(){var e=new v1,t=[],r=[],n=Um;function i(o){let a=e.get(o);if(a===void 0){if(n!==Um)return n;e.set(o,a=t.push(o)-1)}return r[a%r.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new v1;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(r=Array.from(o),i):r.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return _b(t,r).unknown(n)},jr.apply(i,arguments),i}function ml(){var e=_b().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,o,a,s=!1,u=0,l=0,f=.5;delete e.unknown;function c(){var d=t().length,h=i<n,p=h?i:n,v=h?n:i;o=(v-p)/Math.max(1,d-u+l*2),s&&(o=Math.floor(o)),p+=(v-p-o*(d-u))*f,a=o*(1-u),s&&(p=Math.round(p),a=Math.round(a));var g=E7(d).map(function(m){return p+o*m});return r(h?g.reverse():g)}return e.domain=function(d){return arguments.length?(t(d),c()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,c()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,c()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(d){return arguments.length?(s=!!d,c()):s},e.padding=function(d){return arguments.length?(u=Math.min(1,l=+d),c()):u},e.paddingInner=function(d){return arguments.length?(u=Math.min(1,d),c()):u},e.paddingOuter=function(d){return arguments.length?(l=+d,c()):l},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),c()):f},e.copy=function(){return ml(t(),[n,i]).round(s).paddingInner(u).paddingOuter(l).align(f)},jr.apply(c(),arguments)}function Qj(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Qj(t())},e}function Fu(){return Qj(ml.apply(null,arguments).paddingInner(1))}function Pb(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Xj(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function pc(){}var gl=.7,wd=1/gl,ka="\\s*([+-]?\\d+)\\s*",bl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$7=/^#([0-9a-f]{3,8})$/,j7=new RegExp(`^rgb\\(${ka},${ka},${ka}\\)$`),C7=new RegExp(`^rgb\\(${vn},${vn},${vn}\\)$`),T7=new RegExp(`^rgba\\(${ka},${ka},${ka},${bl}\\)$`),k7=new RegExp(`^rgba\\(${vn},${vn},${vn},${bl}\\)$`),M7=new RegExp(`^hsl\\(${bl},${vn},${vn}\\)$`),I7=new RegExp(`^hsla\\(${bl},${vn},${vn},${bl}\\)$`),b1={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};Pb(pc,xl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:x1,formatHex:x1,formatHex8:R7,formatHsl:N7,formatRgb:w1,toString:w1});function x1(){return this.rgb().formatHex()}function R7(){return this.rgb().formatHex8()}function N7(){return Yj(this).formatHsl()}function w1(){return this.rgb().formatRgb()}function xl(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=$7.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?S1(t):r===3?new qt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Yc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Yc(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=j7.exec(e))?new qt(t[1],t[2],t[3],1):(t=C7.exec(e))?new qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=T7.exec(e))?Yc(t[1],t[2],t[3],t[4]):(t=k7.exec(e))?Yc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=M7.exec(e))?P1(t[1],t[2]/100,t[3]/100,1):(t=I7.exec(e))?P1(t[1],t[2]/100,t[3]/100,t[4]):b1.hasOwnProperty(e)?S1(b1[e]):e==="transparent"?new qt(NaN,NaN,NaN,0):null}function S1(e){return new qt(e>>16&255,e>>8&255,e&255,1)}function Yc(e,t,r,n){return n<=0&&(e=t=r=NaN),new qt(e,t,r,n)}function D7(e){return e instanceof pc||(e=xl(e)),e?(e=e.rgb(),new qt(e.r,e.g,e.b,e.opacity)):new qt}function Wm(e,t,r,n){return arguments.length===1?D7(e):new qt(e,t,r,n??1)}function qt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Pb(qt,Wm,Xj(pc,{brighter(e){return e=e==null?wd:Math.pow(wd,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gl:Math.pow(gl,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qt(Oo(this.r),Oo(this.g),Oo(this.b),Sd(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:O1,formatHex:O1,formatHex8:L7,formatRgb:_1,toString:_1}));function O1(){return`#${ao(this.r)}${ao(this.g)}${ao(this.b)}`}function L7(){return`#${ao(this.r)}${ao(this.g)}${ao(this.b)}${ao((isNaN(this.opacity)?1:this.opacity)*255)}`}function _1(){const e=Sd(this.opacity);return`${e===1?"rgb(":"rgba("}${Oo(this.r)}, ${Oo(this.g)}, ${Oo(this.b)}${e===1?")":`, ${e})`}`}function Sd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Oo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ao(e){return e=Oo(e),(e<16?"0":"")+e.toString(16)}function P1(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ur(e,t,r,n)}function Yj(e){if(e instanceof Ur)return new Ur(e.h,e.s,e.l,e.opacity);if(e instanceof pc||(e=xl(e)),!e)return new Ur;if(e instanceof Ur)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(r-n)/s+(r<n)*6:r===o?a=(n-t)/s+2:a=(t-r)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Ur(a,s,u,e.opacity)}function F7(e,t,r,n){return arguments.length===1?Yj(e):new Ur(e,t,r,n??1)}function Ur(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Pb(Ur,F7,Xj(pc,{brighter(e){return e=e==null?wd:Math.pow(wd,e),new Ur(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gl:Math.pow(gl,e),new Ur(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 qt(Av(e>=240?e-240:e+120,i,n),Av(e,i,n),Av(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ur(A1(this.h),Zc(this.s),Zc(this.l),Sd(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=Sd(this.opacity);return`${e===1?"hsl(":"hsla("}${A1(this.h)}, ${Zc(this.s)*100}%, ${Zc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function A1(e){return e=(e||0)%360,e<0?e+360:e}function Zc(e){return Math.max(0,Math.min(1,e||0))}function Av(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 Ab=e=>()=>e;function B7(e,t){return function(r){return e+r*t}}function z7(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 U7(e){return(e=+e)==1?Zj:function(t,r){return r-t?z7(t,r,e):Ab(isNaN(t)?r:t)}}function Zj(e,t){var r=t-e;return r?B7(e,r):Ab(isNaN(e)?t:e)}const E1=function e(t){var r=U7(t);function n(i,o){var a=r((i=Wm(i)).r,(o=Wm(o)).r),s=r(i.g,o.g),u=r(i.b,o.b),l=Zj(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return n.gamma=e,n}(1);function W7(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;i<r;++i)n[i]=e[i]*(1-o)+t[i]*o;return n}}function q7(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function H7(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),o=new Array(r),a;for(a=0;a<n;++a)i[a]=Ks(e[a],t[a]);for(;a<r;++a)o[a]=t[a];return function(s){for(a=0;a<n;++a)o[a]=i[a](s);return o}}function K7(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Od(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function V7(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]=Ks(e[i],t[i]):n[i]=t[i];return function(o){for(i in r)n[i]=r[i](o);return n}}var qm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ev=new RegExp(qm.source,"g");function G7(e){return function(){return e}}function Q7(e){return function(t){return e(t)+""}}function X7(e,t){var r=qm.lastIndex=Ev.lastIndex=0,n,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(n=qm.exec(e))&&(i=Ev.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:Od(n,i)})),r=Ev.lastIndex;return r<t.length&&(o=t.slice(r),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?Q7(u[0].x):G7(t):(t=u.length,function(l){for(var f=0,c;f<t;++f)s[(c=u[f]).i]=c.x(l);return s.join("")})}function Ks(e,t){var r=typeof t,n;return t==null||r==="boolean"?Ab(t):(r==="number"?Od:r==="string"?(n=xl(t))?(t=n,E1):X7:t instanceof xl?E1:t instanceof Date?K7:q7(t)?W7:Array.isArray(t)?H7:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?V7:Od)(e,t)}function Eb(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Y7(e,t){t===void 0&&(t=e,e=Ks);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(a){var s=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return o[s](a-s)}}function Z7(e){return function(){return e}}function _d(e){return+e}var $1=[0,1];function Rt(e){return e}function Hm(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Z7(isNaN(t)?NaN:.5)}function J7(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function e9(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=Hm(i,n),o=r(a,o)):(n=Hm(n,i),o=r(o,a)),function(s){return o(n(s))}}function t9(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=Hm(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(s){var u=hc(e,s,1,n)-1;return o[u](i[u](s))}}function vc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ep(){var e=$1,t=$1,r=Ks,n,i,o,a=Rt,s,u,l;function f(){var d=Math.min(e.length,t.length);return a!==Rt&&(a=J7(e[0],e[d-1])),s=d>2?t9:e9,u=l=null,c}function c(d){return d==null||isNaN(d=+d)?o:(u||(u=s(e.map(n),t,r)))(n(a(d)))}return c.invert=function(d){return a(i((l||(l=s(t,e.map(n),Od)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,_d),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=Eb,f()},c.clamp=function(d){return arguments.length?(a=d?!0:Rt,f()):a!==Rt},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(o=d,c):o},function(d,h){return n=d,i=h,f()}}function $b(){return ep()(Rt,Rt)}function r9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Pd(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function fs(e){return e=Pd(Math.abs(e)),e?e[1]:NaN}function n9(e,t){return function(r,n){for(var i=r.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),o.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function i9(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var o9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wl(e){if(!(t=o9.exec(e)))throw new Error("invalid format: "+e);var t;return new jb({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]})}wl.prototype=jb.prototype;function jb(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+""}jb.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 a9(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 Jj;function s9(e,t){var r=Pd(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(Jj=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Pd(e,Math.max(0,t+o-1))[0]}function j1(e,t){var r=Pd(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 C1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:r9,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)=>j1(e*100,t),r:j1,s:s9,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function T1(e){return e}var k1=Array.prototype.map,M1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function u9(e){var t=e.grouping===void 0||e.thousands===void 0?T1:n9(k1.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+"",o=e.numerals===void 0?T1:i9(k1.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(c){c=wl(c);var d=c.fill,h=c.align,p=c.sign,v=c.symbol,g=c.zero,m=c.width,y=c.comma,b=c.precision,O=c.trim,x=c.type;x==="n"?(y=!0,x="g"):C1[x]||(b===void 0&&(b=12),O=!0,x="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var w=v==="$"?r:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",S=v==="$"?n:/[%p]/.test(x)?a:"",_=C1[x],P=/[defgprs%]/.test(x);b=b===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function A(E){var $=w,T=S,I,D,N;if(x==="c")T=_(E)+T,E="";else{E=+E;var F=E<0||1/E<0;if(E=isNaN(E)?u:_(Math.abs(E),b),O&&(E=a9(E)),F&&+E==0&&p!=="+"&&(F=!1),$=(F?p==="("?p:s:p==="-"||p==="("?"":p)+$,T=(x==="s"?M1[8+Jj/3]:"")+T+(F&&p==="("?")":""),P){for(I=-1,D=E.length;++I<D;)if(N=E.charCodeAt(I),48>N||N>57){T=(N===46?i+E.slice(I+1):E.slice(I))+T,E=E.slice(0,I);break}}}y&&!g&&(E=t(E,1/0));var M=$.length+E.length+T.length,L=M<m?new Array(m-M+1).join(d):"";switch(y&&g&&(E=t(L+E,L.length?m-T.length:1/0),L=""),h){case"<":E=$+E+T+L;break;case"=":E=$+L+E+T;break;case"^":E=L.slice(0,M=L.length>>1)+$+E+T+L.slice(M);break;default:E=L+$+E+T;break}return o(E)}return A.toString=function(){return c+""},A}function f(c,d){var h=l((c=wl(c),c.type="f",c)),p=Math.max(-8,Math.min(8,Math.floor(fs(d)/3)))*3,v=Math.pow(10,-p),g=M1[8+p/3];return function(m){return h(v*m)+g}}return{format:l,formatPrefix:f}}var Jc,Cb,eC;l9({thousands:",",grouping:[3],currency:["$",""]});function l9(e){return Jc=u9(e),Cb=Jc.format,eC=Jc.formatPrefix,Jc}function c9(e){return Math.max(0,-fs(Math.abs(e)))}function f9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(fs(t)/3)))*3-fs(Math.abs(e)))}function d9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,fs(t)-fs(e))+1}function tC(e,t,r,n){var i=zm(e,t,r),o;switch(n=wl(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=f9(i,a))&&(n.precision=o),eC(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=d9(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=c9(i))&&(n.precision=o-(n.type==="%")*2);break}}return Cb(n)}function zi(e){var t=e.domain;return e.ticks=function(r){var n=t();return Fm(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return tC(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,a=n[i],s=n[o],u,l,f=10;for(s<a&&(l=a,a=s,s=l,l=i,i=o,o=l);f-- >0;){if(l=Bm(a,s,r),l===u)return n[i]=a,n[o]=s,t(n);if(l>0)a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l;else if(l<0)a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function Ad(){var e=$b();return e.copy=function(){return vc(e,Ad())},jr.apply(e,arguments),zi(e)}function rC(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,_d),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return rC(e).unknown(t)},e=arguments.length?Array.from(e,_d):[0,1],zi(r)}function nC(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],a;return o<i&&(a=r,r=n,n=a,a=i,i=o,o=a),e[r]=t.floor(i),e[n]=t.ceil(o),e}function I1(e){return Math.log(e)}function R1(e){return Math.exp(e)}function h9(e){return-Math.log(-e)}function p9(e){return-Math.exp(-e)}function v9(e){return isFinite(e)?+("1e"+e):e<0?0:e}function y9(e){return e===10?v9:e===Math.E?Math.exp:t=>Math.pow(e,t)}function m9(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 N1(e){return(t,r)=>-e(-t,r)}function Tb(e){const t=e(I1,R1),r=t.domain;let n=10,i,o;function a(){return i=m9(n),o=y9(n),r()[0]<0?(i=N1(i),o=N1(o),e(h9,p9)):e(I1,R1),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const u=r();let l=u[0],f=u[u.length-1];const c=f<l;c&&([l,f]=[f,l]);let d=i(l),h=i(f),p,v;const g=s==null?10:+s;let m=[];if(!(n%1)&&h-d<g){if(d=Math.floor(d),h=Math.ceil(h),l>0){for(;d<=h;++d)for(p=1;p<n;++p)if(v=d<0?p/o(-d):p*o(d),!(v<l)){if(v>f)break;m.push(v)}}else for(;d<=h;++d)for(p=n-1;p>=1;--p)if(v=d>0?p/o(-d):p*o(d),!(v<l)){if(v>f)break;m.push(v)}m.length*2<g&&(m=Fm(l,f,g))}else m=Fm(d,h,Math.min(h-d,g)).map(o);return c?m.reverse():m},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=wl(u)).precision==null&&(u.trim=!0),u=Cb(u)),s===1/0)return u;const l=Math.max(1,n*s/t.ticks().length);return f=>{let c=f/o(Math.round(i(f)));return c*n<n-.5&&(c*=n),c<=l?u(f):""}},t.nice=()=>r(nC(r(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function iC(){const e=Tb(ep()).domain([1,10]);return e.copy=()=>vc(e,iC()).base(e.base()),jr.apply(e,arguments),e}function D1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function L1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function kb(e){var t=1,r=e(D1(t),L1(t));return r.constant=function(n){return arguments.length?e(D1(t=+n),L1(t)):t},zi(r)}function oC(){var e=kb(ep());return e.copy=function(){return vc(e,oC()).constant(e.constant())},jr.apply(e,arguments)}function F1(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function g9(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function b9(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(g9,b9):e(F1(r),F1(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},zi(t)}function Ib(){var e=Mb(ep());return e.copy=function(){return vc(e,Ib()).exponent(e.exponent())},jr.apply(e,arguments),e}function x9(){return Ib.apply(null,arguments).exponent(.5)}function B1(e){return Math.sign(e)*e*e}function w9(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function aC(){var e=$b(),t=[0,1],r=!1,n;function i(o){var a=w9(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert(B1(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,_d)).map(B1)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return aC(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},jr.apply(i,arguments),zi(i)}function sC(){var e=[],t=[],r=[],n;function i(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a<s;)r[a-1]=A7(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?n:t[hc(r,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(ki),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(n=a,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return sC().domain(e).range(t).unknown(n)},jr.apply(o,arguments)}function uC(){var e=0,t=1,r=1,n=[.5],i=[0,1],o;function a(u){return u!=null&&u<=u?i[hc(n,u,0,r)]:o}function s(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return a}return a.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},a.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,s()):i.slice()},a.invertExtent=function(u){var l=i.indexOf(u);return l<0?[NaN,NaN]:l<1?[e,n[0]]:l>=r?[n[r-1],t]:[n[l-1],n[l]]},a.unknown=function(u){return arguments.length&&(o=u),a},a.thresholds=function(){return n.slice()},a.copy=function(){return uC().domain([e,t]).range(i).unknown(o)},jr.apply(zi(a),arguments)}function lC(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[hc(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return lC().domain(e).range(t).unknown(r)},jr.apply(i,arguments)}const $v=new Date,jv=new Date;function lt(e,t,r,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const u=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return u;let l;do u.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return u},i.filter=o=>lt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),r&&(i.count=(o,a)=>($v.setTime(+o),jv.setTime(+a),e($v),e(jv),Math.floor(r($v,jv))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?a=>n(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Ed=lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ed.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ed);Ed.range;const kn=1e3,Sr=kn*60,Mn=Sr*60,qn=Mn*24,Rb=qn*7,z1=qn*30,Cv=qn*365,so=lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*kn)},(e,t)=>(t-e)/kn,e=>e.getUTCSeconds());so.range;const Nb=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kn)},(e,t)=>{e.setTime(+e+t*Sr)},(e,t)=>(t-e)/Sr,e=>e.getMinutes());Nb.range;const Db=lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Sr)},(e,t)=>(t-e)/Sr,e=>e.getUTCMinutes());Db.range;const Lb=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kn-e.getMinutes()*Sr)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getHours());Lb.range;const Fb=lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getUTCHours());Fb.range;const yc=lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sr)/qn,e=>e.getDate()-1);yc.range;const tp=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qn,e=>e.getUTCDate()-1);tp.range;const cC=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qn,e=>Math.floor(e/qn));cC.range;function qo(e){return lt(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())*Sr)/Rb)}const rp=qo(0),$d=qo(1),S9=qo(2),O9=qo(3),ds=qo(4),_9=qo(5),P9=qo(6);rp.range;$d.range;S9.range;O9.range;ds.range;_9.range;P9.range;function Ho(e){return lt(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)/Rb)}const np=Ho(0),jd=Ho(1),A9=Ho(2),E9=Ho(3),hs=Ho(4),$9=Ho(5),j9=Ho(6);np.range;jd.range;A9.range;E9.range;hs.range;$9.range;j9.range;const Bb=lt(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());Bb.range;const zb=lt(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());zb.range;const Hn=lt(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());Hn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(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)});Hn.range;const Kn=lt(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());Kn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(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)});Kn.range;function fC(e,t,r,n,i,o){const a=[[so,1,kn],[so,5,5*kn],[so,15,15*kn],[so,30,30*kn],[o,1,Sr],[o,5,5*Sr],[o,15,15*Sr],[o,30,30*Sr],[i,1,Mn],[i,3,3*Mn],[i,6,6*Mn],[i,12,12*Mn],[n,1,qn],[n,2,2*qn],[r,1,Rb],[t,1,z1],[t,3,3*z1],[e,1,Cv]];function s(l,f,c){const d=f<l;d&&([l,f]=[f,l]);const h=c&&typeof c.range=="function"?c:u(l,f,c),p=h?h.range(l,+f+1):[];return d?p.reverse():p}function u(l,f,c){const d=Math.abs(f-l)/c,h=Ob(([,,g])=>g).right(a,d);if(h===a.length)return e.every(zm(l/Cv,f/Cv,c));if(h===0)return Ed.every(Math.max(zm(l,f,c),1));const[p,v]=a[d/a[h-1][2]<a[h][2]/d?h-1:h];return p.every(v)}return[s,u]}const[C9,T9]=fC(Kn,zb,np,cC,Fb,Db),[k9,M9]=fC(Hn,Bb,rp,yc,Lb,Nb);function Tv(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 kv(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 du(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function I9(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=hu(i),f=pu(i),c=hu(o),d=pu(o),h=hu(a),p=pu(a),v=hu(s),g=pu(s),m=hu(u),y=pu(u),b={a:F,A:M,b:L,B:z,c:null,d:V1,e:V1,f:nG,g:hG,G:vG,H:eG,I:tG,j:rG,L:dC,m:iG,M:oG,p:W,q,Q:X1,s:Y1,S:aG,u:sG,U:uG,V:lG,w:cG,W:fG,x:null,X:null,y:dG,Y:pG,Z:yG,"%":Q1},O={a:V,A:Q,b:re,B:ne,c:null,d:G1,e:G1,f:xG,g:CG,G:kG,H:mG,I:gG,j:bG,L:pC,m:wG,M:SG,p:ce,q:Ee,Q:X1,s:Y1,S:OG,u:_G,U:PG,V:AG,w:EG,W:$G,x:null,X:null,y:jG,Y:TG,Z:MG,"%":Q1},x={a:A,A:E,b:$,B:T,c:I,d:H1,e:H1,f:X9,g:q1,G:W1,H:K1,I:K1,j:K9,L:Q9,m:H9,M:V9,p:P,q:q9,Q:Z9,s:J9,S:G9,u:F9,U:B9,V:z9,w:L9,W:U9,x:D,X:N,y:q1,Y:W1,Z:W9,"%":Y9};b.x=w(r,b),b.X=w(n,b),b.c=w(t,b),O.x=w(r,O),O.X=w(n,O),O.c=w(t,O);function w(G,Z){return function(ie){var U=[],ge=-1,he=0,ze=G.length,Ue,Ke,lr;for(ie instanceof Date||(ie=new Date(+ie));++ge<ze;)G.charCodeAt(ge)===37&&(U.push(G.slice(he,ge)),(Ke=U1[Ue=G.charAt(++ge)])!=null?Ue=G.charAt(++ge):Ke=Ue==="e"?" ":"0",(lr=Z[Ue])&&(Ue=lr(ie,Ke)),U.push(Ue),he=ge+1);return U.push(G.slice(he,ge)),U.join("")}}function S(G,Z){return function(ie){var U=du(1900,void 0,1),ge=_(U,G,ie+="",0),he,ze;if(ge!=ie.length)return null;if("Q"in U)return new Date(U.Q);if("s"in U)return new Date(U.s*1e3+("L"in U?U.L:0));if(Z&&!("Z"in U)&&(U.Z=0),"p"in U&&(U.H=U.H%12+U.p*12),U.m===void 0&&(U.m="q"in U?U.q:0),"V"in U){if(U.V<1||U.V>53)return null;"w"in U||(U.w=1),"Z"in U?(he=kv(du(U.y,0,1)),ze=he.getUTCDay(),he=ze>4||ze===0?jd.ceil(he):jd(he),he=tp.offset(he,(U.V-1)*7),U.y=he.getUTCFullYear(),U.m=he.getUTCMonth(),U.d=he.getUTCDate()+(U.w+6)%7):(he=Tv(du(U.y,0,1)),ze=he.getDay(),he=ze>4||ze===0?$d.ceil(he):$d(he),he=yc.offset(he,(U.V-1)*7),U.y=he.getFullYear(),U.m=he.getMonth(),U.d=he.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),ze="Z"in U?kv(du(U.y,0,1)).getUTCDay():Tv(du(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(ze+5)%7:U.w+U.U*7-(ze+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,kv(U)):Tv(U)}}function _(G,Z,ie,U){for(var ge=0,he=Z.length,ze=ie.length,Ue,Ke;ge<he;){if(U>=ze)return-1;if(Ue=Z.charCodeAt(ge++),Ue===37){if(Ue=Z.charAt(ge++),Ke=x[Ue in U1?Z.charAt(ge++):Ue],!Ke||(U=Ke(G,ie,U))<0)return-1}else if(Ue!=ie.charCodeAt(U++))return-1}return U}function P(G,Z,ie){var U=l.exec(Z.slice(ie));return U?(G.p=f.get(U[0].toLowerCase()),ie+U[0].length):-1}function A(G,Z,ie){var U=h.exec(Z.slice(ie));return U?(G.w=p.get(U[0].toLowerCase()),ie+U[0].length):-1}function E(G,Z,ie){var U=c.exec(Z.slice(ie));return U?(G.w=d.get(U[0].toLowerCase()),ie+U[0].length):-1}function $(G,Z,ie){var U=m.exec(Z.slice(ie));return U?(G.m=y.get(U[0].toLowerCase()),ie+U[0].length):-1}function T(G,Z,ie){var U=v.exec(Z.slice(ie));return U?(G.m=g.get(U[0].toLowerCase()),ie+U[0].length):-1}function I(G,Z,ie){return _(G,t,Z,ie)}function D(G,Z,ie){return _(G,r,Z,ie)}function N(G,Z,ie){return _(G,n,Z,ie)}function F(G){return a[G.getDay()]}function M(G){return o[G.getDay()]}function L(G){return u[G.getMonth()]}function z(G){return s[G.getMonth()]}function W(G){return i[+(G.getHours()>=12)]}function q(G){return 1+~~(G.getMonth()/3)}function V(G){return a[G.getUTCDay()]}function Q(G){return o[G.getUTCDay()]}function re(G){return u[G.getUTCMonth()]}function ne(G){return s[G.getUTCMonth()]}function ce(G){return i[+(G.getUTCHours()>=12)]}function Ee(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var Z=w(G+="",b);return Z.toString=function(){return G},Z},parse:function(G){var Z=S(G+="",!1);return Z.toString=function(){return G},Z},utcFormat:function(G){var Z=w(G+="",O);return Z.toString=function(){return G},Z},utcParse:function(G){var Z=S(G+="",!0);return Z.toString=function(){return G},Z}}}var U1={"-":"",_:" ",0:"0"},pt=/^\s*\d+/,R9=/^%/,N9=/[\\^$*+?|[\]().{}]/g;function we(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function D9(e){return e.replace(N9,"\\$&")}function hu(e){return new RegExp("^(?:"+e.map(D9).join("|")+")","i")}function pu(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function L9(e,t,r){var n=pt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function F9(e,t,r){var n=pt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function B9(e,t,r){var n=pt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function z9(e,t,r){var n=pt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function U9(e,t,r){var n=pt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function W1(e,t,r){var n=pt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function q1(e,t,r){var n=pt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function W9(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 q9(e,t,r){var n=pt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function H9(e,t,r){var n=pt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function H1(e,t,r){var n=pt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function K9(e,t,r){var n=pt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function K1(e,t,r){var n=pt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function V9(e,t,r){var n=pt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function G9(e,t,r){var n=pt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Q9(e,t,r){var n=pt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function X9(e,t,r){var n=pt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Y9(e,t,r){var n=R9.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Z9(e,t,r){var n=pt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function J9(e,t,r){var n=pt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function V1(e,t){return we(e.getDate(),t,2)}function eG(e,t){return we(e.getHours(),t,2)}function tG(e,t){return we(e.getHours()%12||12,t,2)}function rG(e,t){return we(1+yc.count(Hn(e),e),t,3)}function dC(e,t){return we(e.getMilliseconds(),t,3)}function nG(e,t){return dC(e,t)+"000"}function iG(e,t){return we(e.getMonth()+1,t,2)}function oG(e,t){return we(e.getMinutes(),t,2)}function aG(e,t){return we(e.getSeconds(),t,2)}function sG(e){var t=e.getDay();return t===0?7:t}function uG(e,t){return we(rp.count(Hn(e)-1,e),t,2)}function hC(e){var t=e.getDay();return t>=4||t===0?ds(e):ds.ceil(e)}function lG(e,t){return e=hC(e),we(ds.count(Hn(e),e)+(Hn(e).getDay()===4),t,2)}function cG(e){return e.getDay()}function fG(e,t){return we($d.count(Hn(e)-1,e),t,2)}function dG(e,t){return we(e.getFullYear()%100,t,2)}function hG(e,t){return e=hC(e),we(e.getFullYear()%100,t,2)}function pG(e,t){return we(e.getFullYear()%1e4,t,4)}function vG(e,t){var r=e.getDay();return e=r>=4||r===0?ds(e):ds.ceil(e),we(e.getFullYear()%1e4,t,4)}function yG(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+we(t/60|0,"0",2)+we(t%60,"0",2)}function G1(e,t){return we(e.getUTCDate(),t,2)}function mG(e,t){return we(e.getUTCHours(),t,2)}function gG(e,t){return we(e.getUTCHours()%12||12,t,2)}function bG(e,t){return we(1+tp.count(Kn(e),e),t,3)}function pC(e,t){return we(e.getUTCMilliseconds(),t,3)}function xG(e,t){return pC(e,t)+"000"}function wG(e,t){return we(e.getUTCMonth()+1,t,2)}function SG(e,t){return we(e.getUTCMinutes(),t,2)}function OG(e,t){return we(e.getUTCSeconds(),t,2)}function _G(e){var t=e.getUTCDay();return t===0?7:t}function PG(e,t){return we(np.count(Kn(e)-1,e),t,2)}function vC(e){var t=e.getUTCDay();return t>=4||t===0?hs(e):hs.ceil(e)}function AG(e,t){return e=vC(e),we(hs.count(Kn(e),e)+(Kn(e).getUTCDay()===4),t,2)}function EG(e){return e.getUTCDay()}function $G(e,t){return we(jd.count(Kn(e)-1,e),t,2)}function jG(e,t){return we(e.getUTCFullYear()%100,t,2)}function CG(e,t){return e=vC(e),we(e.getUTCFullYear()%100,t,2)}function TG(e,t){return we(e.getUTCFullYear()%1e4,t,4)}function kG(e,t){var r=e.getUTCDay();return e=r>=4||r===0?hs(e):hs.ceil(e),we(e.getUTCFullYear()%1e4,t,4)}function MG(){return"+0000"}function Q1(){return"%"}function X1(e){return+e}function Y1(e){return Math.floor(+e/1e3)}var Yo,yC,mC;IG({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 IG(e){return Yo=I9(e),yC=Yo.format,Yo.parse,mC=Yo.utcFormat,Yo.utcParse,Yo}function RG(e){return new Date(e)}function NG(e){return e instanceof Date?+e:+new Date(+e)}function Ub(e,t,r,n,i,o,a,s,u,l){var f=$b(),c=f.invert,d=f.domain,h=l(".%L"),p=l(":%S"),v=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),b=l("%B"),O=l("%Y");function x(w){return(u(w)<w?h:s(w)<w?p:a(w)<w?v:o(w)<w?g:n(w)<w?i(w)<w?m:y:r(w)<w?b:O)(w)}return f.invert=function(w){return new Date(c(w))},f.domain=function(w){return arguments.length?d(Array.from(w,NG)):d().map(RG)},f.ticks=function(w){var S=d();return e(S[0],S[S.length-1],w??10)},f.tickFormat=function(w,S){return S==null?x:l(S)},f.nice=function(w){var S=d();return(!w||typeof w.range!="function")&&(w=t(S[0],S[S.length-1],w??10)),w?d(nC(S,w)):f},f.copy=function(){return vc(f,Ub(e,t,r,n,i,o,a,s,u,l))},f}function DG(){return jr.apply(Ub(k9,M9,Hn,Bb,rp,yc,Lb,Nb,so,yC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function LG(){return jr.apply(Ub(C9,T9,Kn,zb,np,tp,Fb,Db,so,mC).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ip(){var e=0,t=1,r,n,i,o,a=Rt,s=!1,u;function l(c){return c==null||isNaN(c=+c)?u:a(i===0?.5:(c=(o(c)-r)*i,s?Math.max(0,Math.min(1,c)):c))}l.domain=function(c){return arguments.length?([e,t]=c,r=o(e=+e),n=o(t=+t),i=r===n?0:1/(n-r),l):[e,t]},l.clamp=function(c){return arguments.length?(s=!!c,l):s},l.interpolator=function(c){return arguments.length?(a=c,l):a};function f(c){return function(d){var h,p;return arguments.length?([h,p]=d,a=c(h,p),l):[a(0),a(1)]}}return l.range=f(Ks),l.rangeRound=f(Eb),l.unknown=function(c){return arguments.length?(u=c,l):u},function(c){return o=c,r=c(e),n=c(t),i=r===n?0:1/(n-r),l}}function Ui(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gC(){var e=zi(ip()(Rt));return e.copy=function(){return Ui(e,gC())},Xn.apply(e,arguments)}function bC(){var e=Tb(ip()).domain([1,10]);return e.copy=function(){return Ui(e,bC()).base(e.base())},Xn.apply(e,arguments)}function xC(){var e=kb(ip());return e.copy=function(){return Ui(e,xC()).constant(e.constant())},Xn.apply(e,arguments)}function Wb(){var e=Mb(ip());return e.copy=function(){return Ui(e,Wb()).exponent(e.exponent())},Xn.apply(e,arguments)}function FG(){return Wb.apply(null,arguments).exponent(.5)}function wC(){var e=[],t=Rt;function r(n){if(n!=null&&!isNaN(n=+n))return t((hc(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(ki),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,o)=>P7(e,o/n))},r.copy=function(){return wC(t).domain(e)},Xn.apply(r,arguments)}function op(){var e=0,t=.5,r=1,n=1,i,o,a,s,u,l=Rt,f,c=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-o)*(n*v<n*o?s:u),l(c?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),o=f(t=+t),a=f(r=+r),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),n=o<i?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(c=!!v,h):c},h.interpolator=function(v){return arguments.length?(l=v,h):l};function p(v){return function(g){var m,y,b;return arguments.length?([m,y,b]=g,l=Y7(v,[m,y,b]),h):[l(0),l(.5),l(1)]}}return h.range=p(Ks),h.rangeRound=p(Eb),h.unknown=function(v){return arguments.length?(d=v,h):d},function(v){return f=v,i=v(e),o=v(t),a=v(r),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),n=o<i?-1:1,h}}function SC(){var e=zi(op()(Rt));return e.copy=function(){return Ui(e,SC())},Xn.apply(e,arguments)}function OC(){var e=Tb(op()).domain([.1,1,10]);return e.copy=function(){return Ui(e,OC()).base(e.base())},Xn.apply(e,arguments)}function _C(){var e=kb(op());return e.copy=function(){return Ui(e,_C()).constant(e.constant())},Xn.apply(e,arguments)}function qb(){var e=Mb(op());return e.copy=function(){return Ui(e,qb()).exponent(e.exponent())},Xn.apply(e,arguments)}function BG(){return qb.apply(null,arguments).exponent(.5)}const Z1=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ml,scaleDiverging:SC,scaleDivergingLog:OC,scaleDivergingPow:qb,scaleDivergingSqrt:BG,scaleDivergingSymlog:_C,scaleIdentity:rC,scaleImplicit:Um,scaleLinear:Ad,scaleLog:iC,scaleOrdinal:_b,scalePoint:Fu,scalePow:Ib,scaleQuantile:sC,scaleQuantize:uC,scaleRadial:aC,scaleSequential:gC,scaleSequentialLog:bC,scaleSequentialPow:Wb,scaleSequentialQuantile:wC,scaleSequentialSqrt:FG,scaleSequentialSymlog:xC,scaleSqrt:x9,scaleSymlog:oC,scaleThreshold:lC,scaleTime:DG,scaleUtc:LG,tickFormat:tC},Symbol.toStringTag,{value:"Module"}));var zG=Ds;function UG(e,t,r){for(var n=-1,i=e.length;++n<i;){var o=e[n],a=t(o);if(a!=null&&(s===void 0?a===a&&!zG(a):r(a,s)))var s=a,u=o}return u}var ap=UG;function WG(e,t){return e>t}var PC=WG,qG=ap,HG=PC,KG=Hs;function VG(e){return e&&e.length?qG(e,KG,HG):void 0}var GG=VG;const sp=Pe(GG);function QG(e,t){return e<t}var AC=QG,XG=ap,YG=AC,ZG=Hs;function JG(e){return e&&e.length?XG(e,ZG,YG):void 0}var eQ=JG;const up=Pe(eQ);var tQ=ib,rQ=wn,nQ=Ij,iQ=Gt;function oQ(e,t){var r=iQ(e)?tQ:nQ;return r(e,rQ(t))}var aQ=oQ,sQ=kj,uQ=aQ;function lQ(e,t){return sQ(uQ(e,t),1)}var cQ=lQ;const fQ=Pe(cQ);var dQ=bb;function hQ(e,t){return dQ(e,t)}var pQ=hQ;const mc=Pe(pQ);var Vs=1e9,vQ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Kb,Be=!0,Er="[DecimalError] ",_o=Er+"Invalid argument: ",Hb=Er+"Exponent out of range: ",Gs=Math.floor,eo=Math.pow,yQ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tr,ct=1e7,De=7,EC=9007199254740991,Cd=Gs(EC/De),ee={};ee.absoluteValue=ee.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ee.comparedTo=ee.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};ee.decimalPlaces=ee.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};ee.dividedBy=ee.div=function(e){return Dn(this,new this.constructor(e))};ee.dividedToIntegerBy=ee.idiv=function(e){var t=this,r=t.constructor;return je(Dn(t,new r(e),0,1),r.precision)};ee.equals=ee.eq=function(e){return!this.cmp(e)};ee.exponent=function(){return rt(this)};ee.greaterThan=ee.gt=function(e){return this.cmp(e)>0};ee.greaterThanOrEqualTo=ee.gte=function(e){return this.cmp(e)>=0};ee.isInteger=ee.isint=function(){return this.e>this.d.length-2};ee.isNegative=ee.isneg=function(){return this.s<0};ee.isPositive=ee.ispos=function(){return this.s>0};ee.isZero=function(){return this.s===0};ee.lessThan=ee.lt=function(e){return this.cmp(e)<0};ee.lessThanOrEqualTo=ee.lte=function(e){return this.cmp(e)<1};ee.logarithm=ee.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(tr))throw Error(Er+"NaN");if(r.s<1)throw Error(Er+(r.s?"NaN":"-Infinity"));return r.eq(tr)?new n(0):(Be=!1,t=Dn(Sl(r,o),Sl(e,o),o),Be=!0,je(t,i))};ee.minus=ee.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?CC(t,e):$C(t,(e.s=-e.s,e))};ee.modulo=ee.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Er+"NaN");return r.s?(Be=!1,t=Dn(r,e,0,1).times(e),Be=!0,r.minus(t)):je(new n(r),i)};ee.naturalExponential=ee.exp=function(){return jC(this)};ee.naturalLogarithm=ee.ln=function(){return Sl(this)};ee.negated=ee.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ee.plus=ee.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$C(t,e):CC(t,(e.s=-e.s,e))};ee.precision=ee.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(_o+e);if(t=rt(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};ee.squareRoot=ee.sqrt=function(){var e,t,r,n,i,o,a,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(Er+"NaN")}for(e=rt(s),Be=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=fn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Gs((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 u(t)):n=new u(i.toString()),r=u.precision,i=a=r+3;;)if(o=n,n=o.plus(Dn(s,o,a+2)).times(.5),fn(o.d).slice(0,a)===(t=fn(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(je(o,r+1,0),o.times(o).eq(s)){n=o;break}}else if(t!="9999")break;a+=4}return Be=!0,je(n,r)};ee.times=ee.mul=function(e){var t,r,n,i,o,a,s,u,l,f=this,c=f.constructor,d=f.d,h=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,u=d.length,l=h.length,u<l&&(o=d,d=h,h=o,a=u,u=l,l=a),o=[],a=u+l,n=a;n--;)o.push(0);for(n=l;--n>=0;){for(t=0,i=u+n;i>n;)s=o[i]+h[n]*d[i-n-1]+t,o[i--]=s%ct|0,t=s/ct|0;o[i]=(o[i]+t)%ct|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Be?je(e,c.precision):e};ee.toDecimalPlaces=ee.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(mn(e,0,Vs),t===void 0?t=n.rounding:mn(t,0,8),je(r,e+rt(r)+1,t))};ee.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ro(n,!0):(mn(e,0,Vs),t===void 0?t=i.rounding:mn(t,0,8),n=je(new i(n),e+1,t),r=Ro(n,!0,e+1)),r};ee.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Ro(i):(mn(e,0,Vs),t===void 0?t=o.rounding:mn(t,0,8),n=je(new o(i),e+rt(i)+1,t),r=Ro(n.abs(),!1,e+rt(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ee.toInteger=ee.toint=function(){var e=this,t=e.constructor;return je(new t(e),rt(e)+1,t.rounding)};ee.toNumber=function(){return+this};ee.toPower=ee.pow=function(e){var t,r,n,i,o,a,s=this,u=s.constructor,l=12,f=+(e=new u(e));if(!e.s)return new u(tr);if(s=new u(s),!s.s){if(e.s<1)throw Error(Er+"Infinity");return s}if(s.eq(tr))return s;if(n=u.precision,e.eq(tr))return je(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=s.s,a){if((r=f<0?-f:f)<=EC){for(i=new u(tr),t=Math.ceil(n/De+4),Be=!1;r%2&&(i=i.times(s),eO(i.d,t)),r=Gs(r/2),r!==0;)s=s.times(s),eO(s.d,t);return Be=!0,e.s<0?new u(tr).div(i):je(i,n)}}else if(o<0)throw Error(Er+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Be=!1,i=e.times(Sl(s,n+l)),Be=!0,i=jC(i),i.s=o,i};ee.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=rt(i),n=Ro(i,r<=o.toExpNeg||r>=o.toExpPos)):(mn(e,1,Vs),t===void 0?t=o.rounding:mn(t,0,8),i=je(new o(i),e,t),r=rt(i),n=Ro(i,e<=r||r<=o.toExpNeg,e)),n};ee.toSignificantDigits=ee.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(mn(e,1,Vs),t===void 0?t=n.rounding:mn(t,0,8)),je(new n(r),e,t)};ee.toString=ee.valueOf=ee.val=ee.toJSON=ee[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=rt(e),r=e.constructor;return Ro(e,t<=r.toExpNeg||t>=r.toExpPos)};function $C(e,t){var r,n,i,o,a,s,u,l,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Be?je(t,c):t;if(u=e.d,l=t.d,a=e.e,i=t.e,u=u.slice(),o=a-i,o){for(o<0?(n=u,o=-o,s=l.length):(n=l,i=a,s=u.length),a=Math.ceil(c/De),s=a>s?a+1:s+1,o>s&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(s=u.length,o=l.length,s-o<0&&(o=s,n=l,l=u,u=n),r=0;o;)r=(u[--o]=u[o]+l[o]+r)/ct|0,u[o]%=ct;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,Be?je(t,c):t}function mn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(_o+e)}function fn(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)n=e[t]+"",r=De-n.length,r&&(o+=ii(r)),o+=n;a=e[t],n=a+"",r=De-n.length,r&&(o+=ii(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Dn=function(){function e(n,i){var o,a=0,s=n.length;for(n=n.slice();s--;)o=n[s]*i+a,n[s]=o%ct|0,a=o/ct|0;return a&&n.unshift(a),n}function t(n,i,o,a){var s,u;if(o!=a)u=o>a?1:-1;else for(s=u=0;s<o;s++)if(n[s]!=i[s]){u=n[s]>i[s]?1:-1;break}return u}function r(n,i,o){for(var a=0;o--;)n[o]-=a,a=n[o]<i[o]?1:0,n[o]=a*ct+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,a){var s,u,l,f,c,d,h,p,v,g,m,y,b,O,x,w,S,_,P=n.constructor,A=n.s==i.s?1:-1,E=n.d,$=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Er+"Division by zero");for(u=n.e-i.e,S=$.length,x=E.length,h=new P(A),p=h.d=[],l=0;$[l]==(E[l]||0);)++l;if($[l]>(E[l]||0)&&--u,o==null?y=o=P.precision:a?y=o+(rt(n)-rt(i))+1:y=o,y<0)return new P(0);if(y=y/De+2|0,l=0,S==1)for(f=0,$=$[0],y++;(l<x||f)&&y--;l++)b=f*ct+(E[l]||0),p[l]=b/$|0,f=b%$|0;else{for(f=ct/($[0]+1)|0,f>1&&($=e($,f),E=e(E,f),S=$.length,x=E.length),O=S,v=E.slice(0,S),g=v.length;g<S;)v[g++]=0;_=$.slice(),_.unshift(0),w=$[0],$[1]>=ct/2&&++w;do f=0,s=t($,v,S,g),s<0?(m=v[0],S!=g&&(m=m*ct+(v[1]||0)),f=m/w|0,f>1?(f>=ct&&(f=ct-1),c=e($,f),d=c.length,g=v.length,s=t(c,v,d,g),s==1&&(f--,r(c,S<d?_:$,d))):(f==0&&(s=f=1),c=$.slice()),d=c.length,d<g&&c.unshift(0),r(v,c,g),s==-1&&(g=v.length,s=t($,v,S,g),s<1&&(f++,r(v,S<g?_:$,g))),g=v.length):s===0&&(f++,v=[0]),p[l++]=f,s&&v[0]?v[g++]=E[O]||0:(v=[E[O]],g=1);while((O++<x||v[0]!==void 0)&&y--)}return p[0]||p.shift(),h.e=u,je(h,a?o+rt(h)+1:o)}}();function jC(e,t){var r,n,i,o,a,s,u=0,l=0,f=e.constructor,c=f.precision;if(rt(e)>16)throw Error(Hb+rt(e));if(!e.s)return new f(tr);for(Be=!1,s=c,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),l+=5;for(n=Math.log(eo(2,l))/Math.LN10*2+5|0,s+=n,r=i=o=new f(tr),f.precision=s;;){if(i=je(i.times(e),s),r=r.times(++u),a=o.plus(Dn(i,r,s)),fn(a.d).slice(0,s)===fn(o.d).slice(0,s)){for(;l--;)o=je(o.times(o),s);return f.precision=c,t==null?(Be=!0,je(o,c)):o}o=a}}function rt(e){for(var t=e.e*De,r=e.d[0];r>=10;r/=10)t++;return t}function Mv(e,t,r){if(t>e.LN10.sd())throw Be=!0,r&&(e.precision=r),Error(Er+"LN10 precision limit exceeded");return je(new e(e.LN10),t)}function ii(e){for(var t="";e--;)t+="0";return t}function Sl(e,t){var r,n,i,o,a,s,u,l,f,c=1,d=10,h=e,p=h.d,v=h.constructor,g=v.precision;if(h.s<1)throw Error(Er+(h.s?"NaN":"-Infinity"));if(h.eq(tr))return new v(0);if(t==null?(Be=!1,l=g):l=t,h.eq(10))return t==null&&(Be=!0),Mv(v,l);if(l+=d,v.precision=l,r=fn(p),n=r.charAt(0),o=rt(h),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=fn(h.d),n=r.charAt(0),c++;o=rt(h),n>1?(h=new v("0."+r),o++):h=new v(n+"."+r.slice(1))}else return u=Mv(v,l+2,g).times(o+""),h=Sl(new v(n+"."+r.slice(1)),l-d).plus(u),v.precision=g,t==null?(Be=!0,je(h,g)):h;for(s=a=h=Dn(h.minus(tr),h.plus(tr),l),f=je(h.times(h),l),i=3;;){if(a=je(a.times(f),l),u=s.plus(Dn(a,new v(i),l)),fn(u.d).slice(0,l)===fn(s.d).slice(0,l))return s=s.times(2),o!==0&&(s=s.plus(Mv(v,l+2,g).times(o+""))),s=Dn(s,new v(c),l),v.precision=g,t==null?(Be=!0,je(s,g)):s;s=u,i+=2}}function J1(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=Gs(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>Cd||e.e<-Cd))throw Error(Hb+r)}else e.s=0,e.e=0,e.d=[0];return e}function je(e,t,r){var n,i,o,a,s,u,l,f,c=e.d;for(a=1,o=c[0];o>=10;o/=10)a++;if(n=t-a,n<0)n+=De,i=t,l=c[f=0];else{if(f=Math.ceil((n+1)/De),o=c.length,f>=o)return e;for(l=o=c[f],a=1;o>=10;o/=10)a++;n%=De,i=n-De+a}if(r!==void 0&&(o=eo(10,a-i-1),s=l/o%10|0,u=t<0||c[f+1]!==void 0||l%o,u=r<4?(s||u)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?i>0?l/eo(10,a-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return u?(o=rt(e),c.length=1,t=t-o-1,c[0]=eo(10,(De-t%De)%De),e.e=Gs(-t/De)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,o=1,f--):(c.length=f+1,o=eo(10,De-n),c[f]=i>0?(l/eo(10,a-i)%eo(10,i)|0)*o:0),u)for(;;)if(f==0){(c[0]+=o)==ct&&(c[0]=1,++e.e);break}else{if(c[f]+=o,c[f]!=ct)break;c[f--]=0,o=1}for(n=c.length;c[--n]===0;)c.pop();if(Be&&(e.e>Cd||e.e<-Cd))throw Error(Hb+rt(e));return e}function CC(e,t){var r,n,i,o,a,s,u,l,f,c,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Be?je(t,h):t;if(u=e.d,c=t.d,n=t.e,l=e.e,u=u.slice(),a=l-n,a){for(f=a<0,f?(r=u,a=-a,s=c.length):(r=c,n=l,s=u.length),i=Math.max(Math.ceil(h/De),s)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=u.length,s=c.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(u[i]!=c[i]){f=u[i]<c[i];break}a=0}for(f&&(r=u,u=c,c=r,t.s=-t.s),s=u.length,i=c.length-s;i>0;--i)u[s++]=0;for(i=c.length;i>a;){if(u[--i]<c[i]){for(o=i;o&&u[--o]===0;)u[o]=ct-1;--u[o],u[i]+=ct}u[i]-=c[i]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,Be?je(t,h):t):new d(0)}function Ro(e,t,r){var n,i=rt(e),o=fn(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+ii(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+ii(-i-1)+o,r&&(n=r-a)>0&&(o+=ii(n))):i>=a?(o+=ii(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+ii(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=ii(n))),e.s<0?"-"+o:o}function eO(e,t){if(e.length>t)return e.length=t,!0}function TC(e){var t,r,n;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(_o+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return J1(a,o.toString())}else if(typeof o!="string")throw Error(_o+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,yQ.test(o))J1(a,o);else throw Error(_o+o)}if(i.prototype=ee,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=TC,i.config=i.set=mQ,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 mQ(e){if(!e||typeof e!="object")throw Error(Er+"Object expected");var t,r,n,i=["precision",1,Vs,"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(Gs(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(_o+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(_o+r+": "+n);return this}var Kb=TC(vQ);tr=new Kb(1);const $e=Kb;function gQ(e){return SQ(e)||wQ(e)||xQ(e)||bQ()}function bQ(){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 xQ(e,t){if(e){if(typeof e=="string")return Km(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 Km(e,t)}}function wQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function SQ(e){if(Array.isArray(e))return Km(e)}function Km(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 OQ=function(t){return t},kC={},MC=function(t){return t===kC},tO=function(t){return function r(){return arguments.length===0||arguments.length===1&&MC(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},_Q=function e(t,r){return t===1?r:tO(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter(function(s){return s!==kC}).length;return a>=t?r.apply(void 0,i):e(t-a,tO(function(){for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];var f=i.map(function(c){return MC(c)?u.shift():c});return r.apply(void 0,gQ(f).concat(u))}))})},lp=function(t){return _Q(t.length,t)},Vm=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},PQ=lp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),AQ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return OQ;var i=r.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,u){return u(s)},o.apply(void 0,arguments))}},Gm=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},IC=function(t){var r=null,n=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r&&o.every(function(s,u){return s===r[u]})||(r=o,n=t.apply(void 0,o)),n}};function EQ(e){var t;return e===0?t=1:t=Math.floor(new $e(e).abs().log(10).toNumber())+1,t}function $Q(e,t,r){for(var n=new $e(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var jQ=lp(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),CQ=lp(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),TQ=lp(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const cp={rangeStep:$Q,getDigitCount:EQ,interpolateNumber:jQ,uninterpolateNumber:CQ,uninterpolateTruncation:TQ};function Qm(e){return IQ(e)||MQ(e)||RC(e)||kQ()}function kQ(){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 MQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function IQ(e){if(Array.isArray(e))return Xm(e)}function Ol(e,t){return DQ(e)||NQ(e,t)||RC(e,t)||RQ()}function RQ(){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 RC(e,t){if(e){if(typeof e=="string")return Xm(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 Xm(e,t)}}function Xm(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 NQ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,o=u}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw o}}return r}}function DQ(e){if(Array.isArray(e))return e}function NC(e){var t=Ol(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function DC(e,t,r){if(e.lte(0))return new $e(0);var n=cp.getDigitCount(e.toNumber()),i=new $e(10).pow(n),o=e.div(i),a=n!==1?.05:.1,s=new $e(Math.ceil(o.div(a).toNumber())).add(r).mul(a),u=s.mul(i);return t?u:new $e(Math.ceil(u))}function LQ(e,t,r){var n=1,i=new $e(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new $e(10).pow(cp.getDigitCount(e)-1),i=new $e(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new $e(Math.floor(e)))}else e===0?i=new $e(Math.floor((t-1)/2)):r||(i=new $e(Math.floor(e)));var a=Math.floor((t-1)/2),s=AQ(PQ(function(u){return i.add(new $e(u-a).mul(n)).toNumber()}),Vm);return s(0,t)}function LC(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 $e(0),tickMin:new $e(0),tickMax:new $e(0)};var o=DC(new $e(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new $e(0):(a=new $e(e).add(t).div(2),a=a.sub(new $e(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),u=Math.ceil(new $e(t).sub(a).div(o).toNumber()),l=s+u+1;return l>r?LC(e,t,r,n,i+1):(l<r&&(u=t>0?u+(r-l):u,s=t>0?s:s+(r-l)),{step:o,tickMin:a.sub(new $e(s).mul(o)),tickMax:a.add(new $e(u).mul(o))})}function FQ(e){var t=Ol(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=NC([r,n]),u=Ol(s,2),l=u[0],f=u[1];if(l===-1/0||f===1/0){var c=f===1/0?[l].concat(Qm(Vm(0,i-1).map(function(){return 1/0}))):[].concat(Qm(Vm(0,i-1).map(function(){return-1/0})),[f]);return r>n?Gm(c):c}if(l===f)return LQ(l,i,o);var d=LC(l,f,a,o),h=d.step,p=d.tickMin,v=d.tickMax,g=cp.rangeStep(p,v.add(new $e(.1).mul(h)),h);return r>n?Gm(g):g}function BQ(e,t){var r=Ol(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=NC([n,i]),s=Ol(a,2),u=s[0],l=s[1];if(u===-1/0||l===1/0)return[n,i];if(u===l)return[u];var f=Math.max(t,2),c=DC(new $e(l).sub(u).div(f-1),o,0),d=[].concat(Qm(cp.rangeStep(new $e(u),new $e(l).sub(new $e(.99).mul(c)),c)),[l]);return n>i?Gm(d):d}var zQ=IC(FQ),UQ=IC(BQ),WQ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 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 qQ(e,t){return GQ(e)||VQ(e,t)||KQ(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 KQ(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 VQ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function GQ(e){if(Array.isArray(e))return e}function QQ(e,t){if(e==null)return{};var r=XQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XQ(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 YQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZQ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zC(n.key),n)}}function JQ(e,t,r){return t&&ZQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eX(e,t,r){return t=kd(t),tX(e,FC()?Reflect.construct(t,r||[],kd(e).constructor):t.apply(e,r))}function tX(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 rX(e)}function rX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FC=function(){return!!e})()}function kd(e){return kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kd(e)}function nX(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&&Ym(e,t)}function Ym(e,t){return Ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ym(e,t)}function BC(e,t,r){return t=zC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zC(e){var t=iX(e,"string");return ps(t)=="symbol"?t:t+""}function iX(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)}var gc=function(e){function t(){return YQ(this,t),eX(this,t,arguments)}return nX(t,e),JQ(t,[{key:"render",value:function(){var n=this.props,i=n.offset,o=n.layout,a=n.width,s=n.dataKey,u=n.data,l=n.dataPointFormatter,f=n.xAxis,c=n.yAxis,d=QQ(n,WQ),h=oe(d,!1);this.props.direction==="x"&&f.type!=="number"&&$t(!1);var p=u.map(function(v){var g=l(v,s),m=g.x,y=g.y,b=g.value,O=g.errorVal;if(!O)return null;var x=[],w,S;if(Array.isArray(O)){var _=qQ(O,2);w=_[0],S=_[1]}else w=S=O;if(o==="vertical"){var P=f.scale,A=y+i,E=A+a,$=A-a,T=P(b-w),I=P(b+S);x.push({x1:I,y1:E,x2:I,y2:$}),x.push({x1:T,y1:A,x2:I,y2:A}),x.push({x1:T,y1:E,x2:T,y2:$})}else if(o==="horizontal"){var D=c.scale,N=m+i,F=N-a,M=N+a,L=D(b-w),z=D(b+S);x.push({x1:F,y1:z,x2:M,y2:z}),x.push({x1:N,y1:L,x2:N,y2:z}),x.push({x1:F,y1:L,x2:M,y2:L})}return C.createElement(xe,Td({className:"recharts-errorBar",key:"bar-".concat(x.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},h),x.map(function(W){return C.createElement("line",Td({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return C.createElement(xe,{className:"recharts-errorBars"},p)}}])}(C.Component);BC(gc,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});BC(gc,"displayName","ErrorBar");function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}function 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 Hi(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){oX(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 oX(e,t,r){return t=aX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aX(e){var t=sX(e,"string");return _l(t)=="symbol"?t:t+""}function sX(e,t){if(_l(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_l(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UC=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Zt(r,Ta);if(!a)return null;var s=Ta.defaultProps,u=s!==void 0?Hi(Hi({},s),a.props):{},l;return a.props&&a.props.payload?l=a.props&&a.props.payload:o==="children"?l=(n||[]).reduce(function(f,c){var d=c.item,h=c.props,p=h.sectors||h.data||[];return f.concat(p.map(function(v){return{type:a.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):l=(n||[]).map(function(f){var c=f.item,d=c.type.defaultProps,h=d!==void 0?Hi(Hi({},d),c.props):{},p=h.dataKey,v=h.name,g=h.legendType,m=h.hide;return{inactive:m,dataKey:p,type:u.iconType||g||"square",color:Vb(c),value:v||p,payload:h}}),Hi(Hi(Hi({},u),Ta.getWithHeight(a,i)),{},{payload:l,item:a})};function Pl(e){"@babel/helpers - typeof";return Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pl(e)}function iO(e){return fX(e)||cX(e)||lX(e)||uX()}function uX(){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 lX(e,t){if(e){if(typeof e=="string")return Zm(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 Zm(e,t)}}function cX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fX(e){if(Array.isArray(e))return Zm(e)}function Zm(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 oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(n){Ma(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ma(e,t,r){return t=dX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dX(e){var t=hX(e,"string");return Pl(t)=="symbol"?t:t+""}function hX(e,t){if(Pl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,r){return le(e)||le(t)?r:ut(t)?ir(e,t,r):ue(t)?t(e):r}function Bu(e,t,r,n){var i=fQ(e,function(s){return at(s,t)});if(r==="number"){var o=i.filter(function(s){return K(s)||parseFloat(s)});return o.length?[up(o),sp(o)]:[1/0,-1/0]}var a=n?i.filter(function(s){return!le(s)}):i;return a.map(function(s){return ut(s)||s instanceof Date?s:""})}var pX=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var u=o.range,l=0;l<s;l++){var f=l>0?i[l-1].coordinate:i[s-1].coordinate,c=i[l].coordinate,d=l>=s-1?i[0].coordinate:i[l+1].coordinate,h=void 0;if(Mt(c-f)!==Mt(d-c)){var p=[];if(Mt(d-c)===Mt(u[1]-u[0])){h=d;var v=c+u[1]-u[0];p[0]=Math.min(v,(v+f)/2),p[1]=Math.max(v,(v+f)/2)}else{h=f;var g=d+u[1]-u[0];p[0]=Math.min(c,(g+c)/2),p[1]=Math.max(c,(g+c)/2)}var m=[Math.min(c,(h+c)/2),Math.max(c,(h+c)/2)];if(t>m[0]&&t<=m[1]||t>=p[0]&&t<=p[1]){a=i[l].index;break}}else{var y=Math.min(f,d),b=Math.max(f,d);if(t>(y+c)/2&&t<=(b+c)/2){a=i[l].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){a=n[O].index;break}return a},Vb=function(t){var r,n=t,i=n.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Xe(Xe({},t.type.defaultProps),t.props):t.props,a=o.stroke,s=o.fill,u;switch(i){case"Line":u=a;break;case"Area":case"Radar":u=a&&a!=="none"?a:s;break;default:u=s;break}return u},vX=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),u=0,l=s.length;u<l;u++)for(var f=o[s[u]].stackGroups,c=Object.keys(f),d=0,h=c.length;d<h;d++){var p=f[c[d]],v=p.items,g=p.cateAxisId,m=v.filter(function(S){return Nn(S.type).indexOf("Bar")>=0});if(m&&m.length){var y=m[0].type.defaultProps,b=y!==void 0?Xe(Xe({},y),m[0].props):m[0].props,O=b.barSize,x=b[g];a[x]||(a[x]=[]);var w=le(O)?r:O;a[x].push({item:m[0],stackList:m.slice(1),barSize:le(w)?void 0:It(w,n,0)})}}return a},yX=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,u=a.length;if(u<1)return null;var l=It(r,i,0,!0),f,c=[];if(a[0].barSize===+a[0].barSize){var d=!1,h=i/u,p=a.reduce(function(O,x){return O+x.barSize||0},0);p+=(u-1)*l,p>=i&&(p-=(u-1)*l,l=0),p>=i&&h>0&&(d=!0,h*=.9,p=u*h);var v=(i-p)/2>>0,g={offset:v-l,size:0};f=a.reduce(function(O,x){var w={item:x.item,position:{offset:g.offset+g.size+l,size:d?h:x.barSize}},S=[].concat(iO(O),[w]);return g=S[S.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(_){S.push({item:_,position:g})}),S},c)}else{var m=It(n,i,0,!0);i-2*m-(u-1)*l<=0&&(l=0);var y=(i-2*m-(u-1)*l)/u;y>1&&(y>>=0);var b=s===+s?Math.min(y,s):y;f=a.reduce(function(O,x,w){var S=[].concat(iO(O),[{item:x.item,position:{offset:m+(y+l)*w+(y-b)/2,size:b}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(_){S.push({item:_,position:S[S.length-1].position})}),S},c)}return f},mX=function(t,r,n,i){var o=n.children,a=n.width,s=n.margin,u=a-(s.left||0)-(s.right||0),l=UC({children:o,legendWidth:u});if(l){var f=i||{},c=f.width,d=f.height,h=l.align,p=l.verticalAlign,v=l.layout;if((v==="vertical"||v==="horizontal"&&p==="middle")&&h!=="center"&&K(t[h]))return Xe(Xe({},t),{},Ma({},h,t[h]+(c||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&p!=="middle"&&K(t[p]))return Xe(Xe({},t),{},Ma({},p,t[p]+(d||0)))}return t},gX=function(t,r,n){return le(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},WC=function(t,r,n,i,o){var a=r.props.children,s=or(a,gc).filter(function(l){return gX(i,o,l.props.direction)});if(s&&s.length){var u=s.map(function(l){return l.props.dataKey});return t.reduce(function(l,f){var c=at(f,n);if(le(c))return l;var d=Array.isArray(c)?[up(c),sp(c)]:[c,c],h=u.reduce(function(p,v){var g=at(f,v,0),m=d[0]-Math.abs(Array.isArray(g)?g[0]:g),y=d[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(m,p[0]),Math.max(y,p[1])]},[1/0,-1/0]);return[Math.min(h[0],l[0]),Math.max(h[1],l[1])]},[1/0,-1/0])}return null},bX=function(t,r,n,i,o){var a=r.map(function(s){return WC(t,s,n,o,i)}).filter(function(s){return!le(s)});return a&&a.length?a.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]):null},qC=function(t,r,n,i,o){var a=r.map(function(u){var l=u.props.dataKey;return n==="number"&&l&&WC(t,u,l,i)||Bu(t,l,n,o)});if(n==="number")return a.reduce(function(u,l){return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]);var s={};return a.reduce(function(u,l){for(var f=0,c=l.length;f<c;f++)s[l[f]]||(s[l[f]]=!0,u.push(l[f]));return u},[])},HC=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},KC=function(t,r,n,i){if(i)return t.map(function(u){return u.coordinate});var o,a,s=t.map(function(u){return u.coordinate===r&&(o=!0),u.coordinate===n&&(a=!0),u.coordinate});return o||s.push(r),a||s.push(n),s},In=function(t,r,n){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,s=t.range,u=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,l=(r||n)&&a==="category"&&i.bandwidth?i.bandwidth()/u:0;if(l=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Mt(s[0]-s[1])*2*l:l,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=o?o.indexOf(c):c;return{coordinate:i(d)+l,value:c,offset:l}});return f.filter(function(c){return!fc(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+l,value:c,index:d,offset:l}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+l,value:c,offset:l}}):i.domain().map(function(c,d){return{coordinate:i(c)+l,value:o?o[c]:c,index:d,offset:l}})},Iv=new WeakMap,ef=function(t,r){if(typeof r!="function")return t;Iv.has(t)||Iv.set(t,new WeakMap);var n=Iv.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},VC=function(t,r,n){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:ml(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Ad(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Fu(),realScaleType:"point"}:o==="category"?{scale:ml(),realScaleType:"band"}:{scale:Ad(),realScaleType:"linear"};if(ko(i)){var u="scale".concat(Kh(i));return{scale:(Z1[u]||Fu)(),realScaleType:Z1[u]?u:"point"}}return ue(i)?{scale:i}:{scale:Fu(),realScaleType:"point"}},aO=1e-4,GC=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),o=Math.min(i[0],i[1])-aO,a=Math.max(i[0],i[1])+aO,s=t(r[0]),u=t(r[n-1]);(s<o||s>a||u<o||u>a)&&t.domain([r[0],r[n-1]])}},xX=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},wX=function(t,r){if(!r||r.length!==2||!K(r[0])||!K(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),o=[t[0],t[1]];return(!K(t[0])||t[0]<n)&&(o[0]=n),(!K(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<n&&(o[1]=n),o},SX=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,a=0,s=0;s<r;++s){var u=fc(t[s][n][1])?t[s][n][0]:t[s][n][1];u>=0?(t[s][n][0]=o,t[s][n][1]=o+u,o=t[s][n][1]):(t[s][n][0]=a,t[s][n][1]=a+u,a=t[s][n][1])}},OX=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,a=0;a<r;++a){var s=fc(t[a][n][1])?t[a][n][0]:t[a][n][1];s>=0?(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1]):(t[a][n][0]=0,t[a][n][1]=0)}},_X={sign:SX,expand:q4,none:as,silhouette:H4,wiggle:K4,positive:OX},PX=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),o=_X[n],a=W4().keys(i).value(function(s,u){return+at(s,u,0)}).order(Om).offset(o);return a(t)},AX=function(t,r,n,i,o,a){if(!t)return null;var s=a?r.reverse():r,u={},l=s.reduce(function(c,d){var h,p=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Xe(Xe({},d.type.defaultProps),d.props):d.props,v=p.stackId,g=p.hide;if(g)return c;var m=p[n],y=c[m]||{hasStack:!1,stackGroups:{}};if(ut(v)){var b=y.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(d),y.hasStack=!0,y.stackGroups[v]=b}else y.stackGroups[Us("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Xe(Xe({},c),{},Ma({},m,y))},u),f={};return Object.keys(l).reduce(function(c,d){var h=l[d];if(h.hasStack){var p={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,g){var m=h.stackGroups[g];return Xe(Xe({},v),{},Ma({},g,{numericAxisId:n,cateAxisId:i,items:m.items,stackedData:PX(t,m.items,o)}))},p)}return Xe(Xe({},c),{},Ma({},d,h))},f)},QC=function(t,r){var n=r.realScaleType,i=r.type,o=r.tickCount,a=r.originalDomain,s=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var l=t.domain();if(!l.length)return null;var f=zQ(l,o,s);return t.domain([up(f),sp(f)]),{niceTicks:f}}if(o&&i==="number"){var c=t.domain(),d=UQ(c,o,s);return{niceTicks:d}}return null};function sO(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!le(i[t.dataKey])){var s=od(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var u=at(i,le(a)?t.dataKey:a);return le(u)?null:t.scale(u)}var uO=function(t){var r=t.axis,n=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var u=at(a,r.dataKey,r.domain[s]);return le(u)?null:r.scale(u)-o/2+i},EX=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return i<=0&&o>=0?0:o<0?o:i}return n[0]},$X=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Xe(Xe({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(ut(o)){var a=r[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},jX=function(t){return t.reduce(function(r,n){return[up(n.concat([r[0]]).filter(K)),sp(n.concat([r[1]]).filter(K))]},[1/0,-1/0])},XC=function(t,r,n){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,u=s.reduce(function(l,f){var c=jX(f.slice(r,n+1));return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},lO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Jm=function(t,r,n){if(ue(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(K(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(lO.test(t[0])){var o=+lO.exec(t[0])[1];i[0]=r[0]-o}else ue(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(K(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(cO.test(t[1])){var a=+cO.exec(t[1])[1];i[1]=r[1]+a}else ue(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Md=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 o=wb(r,function(c){return c.coordinate}),a=1/0,s=1,u=o.length;s<u;s++){var l=o[s],f=o[s-1];a=Math.min((l.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},fO=function(t,r,n){return!t||!t.length||mc(t,ir(n,"type.defaultProps.domain"))?r:t},YC=function(t,r){var n=t.type.defaultProps?Xe(Xe({},t.type.defaultProps),t.props):t.props,i=n.dataKey,o=n.name,a=n.unit,s=n.formatter,u=n.tooltipType,l=n.chartType,f=n.hide;return Xe(Xe({},oe(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:Vb(t),value:at(r,i),type:u,payload:r,chartType:l,hide:f})};function Al(e){"@babel/helpers - typeof";return Al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Al(e)}function 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 An(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){ZC(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 ZC(e,t,r){return t=CX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CX(e){var t=TX(e,"string");return Al(t)=="symbol"?t:t+""}function TX(e,t){if(Al(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Al(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kX(e,t){return NX(e)||RX(e,t)||IX(e,t)||MX()}function MX(){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 IX(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 RX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function NX(e){if(Array.isArray(e))return e}var Id=Math.PI/180,DX=function(t){return t*180/Math.PI},Me=function(t,r,n,i){return{x:t+Math.cos(-Id*i)*n,y:r+Math.sin(-Id*i)*n}},JC=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},LX=function(t,r,n,i,o){var a=t.width,s=t.height,u=t.startAngle,l=t.endAngle,f=It(t.cx,a,a/2),c=It(t.cy,s,s/2),d=JC(a,s,n),h=It(t.innerRadius,d,0),p=It(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(g,m){var y=r[m],b=y.domain,O=y.reversed,x;if(le(y.range))i==="angleAxis"?x=[u,l]:i==="radiusAxis"&&(x=[h,p]),O&&(x=[x[1],x[0]]);else{x=y.range;var w=x,S=kX(w,2);u=S[0],l=S[1]}var _=VC(y,o),P=_.realScaleType,A=_.scale;A.domain(b).range(x),GC(A);var E=QC(A,An(An({},y),{},{realScaleType:P})),$=An(An(An({},y),E),{},{range:x,radius:p,realScaleType:P,scale:A,cx:f,cy:c,innerRadius:h,outerRadius:p,startAngle:u,endAngle:l});return An(An({},g),{},ZC({},m,$))},{})},FX=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(i-a,2))},BX=function(t,r){var n=t.x,i=t.y,o=r.cx,a=r.cy,s=FX({x:n,y:i},{x:o,y:a});if(s<=0)return{radius:s};var u=(n-o)/s,l=Math.acos(u);return i>a&&(l=2*Math.PI-l),{radius:s,angle:DX(l),angleInRadian:l}},zX=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360),a=Math.min(i,o);return{startAngle:r-a*360,endAngle:n-a*360}},UX=function(t,r){var n=r.startAngle,i=r.endAngle,o=Math.floor(n/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},pO=function(t,r){var n=t.x,i=t.y,o=BX({x:n,y:i},r),a=o.radius,s=o.angle,u=r.innerRadius,l=r.outerRadius;if(a<u||a>l)return!1;if(a===0)return!0;var f=zX(r),c=f.startAngle,d=f.endAngle,h=s,p;if(c<=d){for(;h>d;)h-=360;for(;h<c;)h+=360;p=h>=c&&h<=d}else{for(;h>c;)h-=360;for(;h<d;)h+=360;p=h>=d&&h<=c}return p?An(An({},r),{},{radius:a,angle:UX(h,r)}):null},eT=function(t){return!k.isValidElement(t)&&!ue(t)&&typeof t!="boolean"?t.className:""};function El(e){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(e)}var WX=["offset"];function qX(e){return GX(e)||VX(e)||KX(e)||HX()}function HX(){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 KX(e,t){if(e){if(typeof e=="string")return eg(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 eg(e,t)}}function VX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GX(e){if(Array.isArray(e))return eg(e)}function eg(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 QX(e,t){if(e==null)return{};var r=XX(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XX(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 vO(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?vO(Object(r),!0).forEach(function(n){YX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YX(e,t,r){return t=ZX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZX(e){var t=JX(e,"string");return El(t)=="symbol"?t:t+""}function JX(e,t){if(El(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(El(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $l(){return $l=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},$l.apply(this,arguments)}var eY=function(t){var r=t.value,n=t.formatter,i=le(t.children)?r:t.children;return ue(n)?n(i):i},tY=function(t,r){var n=Mt(r-t),i=Math.min(Math.abs(r-t),360);return n*i},rY=function(t,r,n){var i=t.position,o=t.viewBox,a=t.offset,s=t.className,u=o,l=u.cx,f=u.cy,c=u.innerRadius,d=u.outerRadius,h=u.startAngle,p=u.endAngle,v=u.clockWise,g=(c+d)/2,m=tY(h,p),y=m>=0?1:-1,b,O;i==="insideStart"?(b=h+y*a,O=v):i==="insideEnd"?(b=p-y*a,O=!v):i==="end"&&(b=p+y*a,O=v),O=m<=0?O:!O;var x=Me(l,f,g,b),w=Me(l,f,g,b+(O?1:-1)*359),S="M".concat(x.x,",").concat(x.y,`
A`).concat(g,",").concat(g,",0,1,").concat(O?0:1,`,
`).concat(w.x,",").concat(w.y),_=le(t.id)?Us("recharts-radial-line-"):t.id;return C.createElement("text",$l({},n,{dominantBaseline:"central",className:fe("recharts-radial-bar-label",s)}),C.createElement("defs",null,C.createElement("path",{id:_,d:S})),C.createElement("textPath",{xlinkHref:"#".concat(_)},r))},nY=function(t){var r=t.viewBox,n=t.offset,i=t.position,o=r,a=o.cx,s=o.cy,u=o.innerRadius,l=o.outerRadius,f=o.startAngle,c=o.endAngle,d=(f+c)/2;if(i==="outside"){var h=Me(a,s,l+n,d),p=h.x,v=h.y;return{x:p,y:v,textAnchor:p>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var g=(u+l)/2,m=Me(a,s,g,d),y=m.x,b=m.y;return{x:y,y:b,textAnchor:"middle",verticalAnchor:"middle"}},iY=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,o=t.position,a=r,s=a.x,u=a.y,l=a.width,f=a.height,c=f>=0?1:-1,d=c*i,h=c>0?"end":"start",p=c>0?"start":"end",v=l>=0?1:-1,g=v*i,m=v>0?"end":"start",y=v>0?"start":"end";if(o==="top"){var b={x:s+l/2,y:u-c*i,textAnchor:"middle",verticalAnchor:h};return it(it({},b),n?{height:Math.max(u-n.y,0),width:l}:{})}if(o==="bottom"){var O={x:s+l/2,y:u+f+d,textAnchor:"middle",verticalAnchor:p};return it(it({},O),n?{height:Math.max(n.y+n.height-(u+f),0),width:l}:{})}if(o==="left"){var x={x:s-g,y:u+f/2,textAnchor:m,verticalAnchor:"middle"};return it(it({},x),n?{width:Math.max(x.x-n.x,0),height:f}:{})}if(o==="right"){var w={x:s+l+g,y:u+f/2,textAnchor:y,verticalAnchor:"middle"};return it(it({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var S=n?{width:l,height:f}:{};return o==="insideLeft"?it({x:s+g,y:u+f/2,textAnchor:y,verticalAnchor:"middle"},S):o==="insideRight"?it({x:s+l-g,y:u+f/2,textAnchor:m,verticalAnchor:"middle"},S):o==="insideTop"?it({x:s+l/2,y:u+d,textAnchor:"middle",verticalAnchor:p},S):o==="insideBottom"?it({x:s+l/2,y:u+f-d,textAnchor:"middle",verticalAnchor:h},S):o==="insideTopLeft"?it({x:s+g,y:u+d,textAnchor:y,verticalAnchor:p},S):o==="insideTopRight"?it({x:s+l-g,y:u+d,textAnchor:m,verticalAnchor:p},S):o==="insideBottomLeft"?it({x:s+g,y:u+f-d,textAnchor:y,verticalAnchor:h},S):o==="insideBottomRight"?it({x:s+l-g,y:u+f-d,textAnchor:m,verticalAnchor:h},S):Ls(o)&&(K(o.x)||oo(o.x))&&(K(o.y)||oo(o.y))?it({x:s+It(o.x,l),y:u+It(o.y,f),textAnchor:"end",verticalAnchor:"end"},S):it({x:s+l/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},S)},oY=function(t){return"cx"in t&&K(t.cx)};function dt(e){var t=e.offset,r=t===void 0?5:t,n=QX(e,WX),i=it({offset:r},n),o=i.viewBox,a=i.position,s=i.value,u=i.children,l=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!o||le(s)&&le(u)&&!k.isValidElement(l)&&!ue(l))return null;if(k.isValidElement(l))return k.cloneElement(l,i);var h;if(ue(l)){if(h=k.createElement(l,i),k.isValidElement(h))return h}else h=eY(i);var p=oY(o),v=oe(i,!0);if(p&&(a==="insideStart"||a==="insideEnd"||a==="end"))return rY(i,h,v);var g=p?nY(i):iY(i);return C.createElement(Io,$l({className:fe("recharts-label",c)},v,g,{breakAll:d}),h)}dt.displayName="Label";var tT=function(t){var r=t.cx,n=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,u=t.radius,l=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,h=t.top,p=t.left,v=t.width,g=t.height,m=t.clockWise,y=t.labelViewBox;if(y)return y;if(K(v)&&K(g)){if(K(c)&&K(d))return{x:c,y:d,width:v,height:g};if(K(h)&&K(p))return{x:h,y:p,width:v,height:g}}return K(c)&&K(d)?{x:c,y:d,width:0,height:0}:K(r)&&K(n)?{cx:r,cy:n,startAngle:o||i||0,endAngle:a||i||0,innerRadius:l||0,outerRadius:f||u||s||0,clockWise:m}:t.viewBox?t.viewBox:{}},aY=function(t,r){return t?t===!0?C.createElement(dt,{key:"label-implicit",viewBox:r}):ut(t)?C.createElement(dt,{key:"label-implicit",viewBox:r,value:t}):k.isValidElement(t)?t.type===dt?k.cloneElement(t,{key:"label-implicit",viewBox:r}):C.createElement(dt,{key:"label-implicit",content:t,viewBox:r}):ue(t)?C.createElement(dt,{key:"label-implicit",content:t,viewBox:r}):Ls(t)?C.createElement(dt,$l({viewBox:r},t,{key:"label-implicit"})):null:null},sY=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,o=tT(t),a=or(i,dt).map(function(u,l){return k.cloneElement(u,{viewBox:r||o,key:"label-".concat(l)})});if(!n)return a;var s=aY(t.label,r||o);return[s].concat(qX(a))};dt.parseViewBox=tT;dt.renderCallByParent=sY;function uY(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var lY=uY;const cY=Pe(lY);function jl(e){"@babel/helpers - typeof";return jl=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},jl(e)}var fY=["valueAccessor"],dY=["data","dataKey","clockWise","id","textBreakAll"];function hY(e){return mY(e)||yY(e)||vY(e)||pY()}function pY(){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 vY(e,t){if(e){if(typeof e=="string")return tg(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 tg(e,t)}}function yY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mY(e){if(Array.isArray(e))return tg(e)}function tg(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 Rd(){return Rd=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},Rd.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 mO(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){gY(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 gY(e,t,r){return t=bY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bY(e){var t=xY(e,"string");return jl(t)=="symbol"?t:t+""}function xY(e,t){if(jl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jl(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=wY(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[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}var SY=function(t){return Array.isArray(t.value)?cY(t.value):t.value};function Ln(e){var t=e.valueAccessor,r=t===void 0?SY:t,n=gO(e,fY),i=n.data,o=n.dataKey,a=n.clockWise,s=n.id,u=n.textBreakAll,l=gO(n,dY);return!i||!i.length?null:C.createElement(xe,{className:"recharts-label-list"},i.map(function(f,c){var d=le(o)?r(f,c):at(f&&f.payload,o),h=le(s)?{}:{id:"".concat(s,"-").concat(c)};return C.createElement(dt,Rd({},oe(f,!0),l,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:dt.parseViewBox(le(a)?f:mO(mO({},f),{},{clockWise:a})),key:"label-".concat(c),index:c}))}))}Ln.displayName="LabelList";function OY(e,t){return e?e===!0?C.createElement(Ln,{key:"labelList-implicit",data:t}):C.isValidElement(e)||ue(e)?C.createElement(Ln,{key:"labelList-implicit",data:t,content:e}):Ls(e)?C.createElement(Ln,Rd({data:t},e,{key:"labelList-implicit"})):null:null}function _Y(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=or(n,Ln).map(function(a,s){return k.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var o=OY(e.label,t);return[o].concat(hY(i))}Ln.renderCallByParent=_Y;function Cl(e){"@babel/helpers - typeof";return Cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cl(e)}function rg(){return rg=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},rg.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){PY(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 PY(e,t,r){return t=AY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AY(e){var t=EY(e,"string");return Cl(t)=="symbol"?t:t+""}function EY(e,t){if(Cl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $Y=function(t,r){var n=Mt(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},tf=function(t){var r=t.cx,n=t.cy,i=t.radius,o=t.angle,a=t.sign,s=t.isExternal,u=t.cornerRadius,l=t.cornerIsExternal,f=u*(s?1:-1)+i,c=Math.asin(u/f)/Id,d=l?o:o+a*c,h=Me(r,n,f,d),p=Me(r,n,i,d),v=l?o-a*c:o,g=Me(r,n,f*Math.cos(c*Id),v);return{center:h,circleTangency:p,lineTangency:g,theta:c}},rT=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,u=$Y(a,s),l=a+u,f=Me(r,n,o,a),c=Me(r,n,o,l),d="M ".concat(f.x,",").concat(f.y,`
A `).concat(o,",").concat(o,`,0,
`).concat(+(Math.abs(u)>180),",").concat(+(a>l),`,
`).concat(c.x,",").concat(c.y,`
`);if(i>0){var h=Me(r,n,i,a),p=Me(r,n,i,l);d+="L ".concat(p.x,",").concat(p.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(u)>180),",").concat(+(a<=l),`,
`).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},jY=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,u=t.cornerIsExternal,l=t.startAngle,f=t.endAngle,c=Mt(f-l),d=tf({cx:r,cy:n,radius:o,angle:l,sign:c,cornerRadius:a,cornerIsExternal:u}),h=d.circleTangency,p=d.lineTangency,v=d.theta,g=tf({cx:r,cy:n,radius:o,angle:f,sign:-c,cornerRadius:a,cornerIsExternal:u}),m=g.circleTangency,y=g.lineTangency,b=g.theta,O=u?Math.abs(l-f):Math.abs(l-f)-v-b;if(O<0)return s?"M ".concat(p.x,",").concat(p.y,`
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
`):rT({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:l,endAngle:f});var x="M ".concat(p.x,",").concat(p.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(h.x,",").concat(h.y,`
A`).concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(y.x,",").concat(y.y,`
`);if(i>0){var w=tf({cx:r,cy:n,radius:i,angle:l,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),S=w.circleTangency,_=w.lineTangency,P=w.theta,A=tf({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),E=A.circleTangency,$=A.lineTangency,T=A.theta,I=u?Math.abs(l-f):Math.abs(l-f)-P-T;if(I<0&&a===0)return"".concat(x,"L").concat(r,",").concat(n,"Z");x+="L".concat($.x,",").concat($.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(E.x,",").concat(E.y,`
A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(c>0),",").concat(S.x,",").concat(S.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else x+="L".concat(r,",").concat(n,"Z");return x},CY={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},nT=function(t){var r=xO(xO({},CY),t),n=r.cx,i=r.cy,o=r.innerRadius,a=r.outerRadius,s=r.cornerRadius,u=r.forceCornerRadius,l=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(a<o||f===c)return null;var h=fe("recharts-sector",d),p=a-o,v=It(s,p,0,!0),g;return v>0&&Math.abs(f-c)<360?g=jY({cx:n,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(v,p/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:f,endAngle:c}):g=rT({cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:f,endAngle:c}),C.createElement("path",rg({},oe(r,!0),{className:h,d:g,role:"img"}))};function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ng.apply(this,arguments)}function 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){TY(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 TY(e,t,r){return t=kY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kY(e){var t=MY(e,"string");return Tl(t)=="symbol"?t:t+""}function MY(e,t){if(Tl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OO={curveBasisClosed:k4,curveBasisOpen:M4,curveBasis:T4,curveBumpX:m4,curveBumpY:g4,curveLinearClosed:I4,curveLinear:Gh,curveMonotoneX:R4,curveMonotoneY:N4,curveNatural:D4,curveStep:L4,curveStepAfter:B4,curveStepBefore:F4},rf=function(t){return t.x===+t.x&&t.y===+t.y},vu=function(t){return t.x},yu=function(t){return t.y},IY=function(t,r){if(ue(t))return t;var n="curve".concat(Kh(t));return(n==="curveMonotone"||n==="curveBump")&&r?OO["".concat(n).concat(r==="vertical"?"Y":"X")]:OO[n]||Gh},RY=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,o=i===void 0?[]:i,a=t.baseLine,s=t.layout,u=t.connectNulls,l=u===void 0?!1:u,f=IY(n,s),c=l?o.filter(function(v){return rf(v)}):o,d;if(Array.isArray(a)){var h=l?a.filter(function(v){return rf(v)}):a,p=c.map(function(v,g){return SO(SO({},v),{},{base:h[g]})});return s==="vertical"?d=Kc().y(yu).x1(vu).x0(function(v){return v.base.x}):d=Kc().x(vu).y1(yu).y0(function(v){return v.base.y}),d.defined(rf).curve(f),d(p)}return s==="vertical"&&K(a)?d=Kc().y(yu).x1(vu).x0(a):K(a)?d=Kc().x(vu).y1(yu).y0(a):d=Y$().x(vu).y(yu),d.defined(rf).curve(f),d(c)},Nd=function(t){var r=t.className,n=t.points,i=t.path,o=t.pathRef;if((!n||!n.length)&&!i)return null;var a=n&&n.length?RY(t):i;return k.createElement("path",ng({},oe(t,!1),ad(t),{className:fe("recharts-curve",r),d:a,ref:o}))},iT={exports:{}},NY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",DY=NY,LY=DY;function oT(){}function aT(){}aT.resetWarningCache=oT;var FY=function(){function e(n,i,o,a,s,u){if(u!==LY){var l=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 l.name="Invariant Violation",l}}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:aT,resetWarningCache:oT};return r.PropTypes=r,r};iT.exports=FY();var BY=iT.exports;const Se=Pe(BY);var zY=Object.getOwnPropertyNames,UY=Object.getOwnPropertySymbols,WY=Object.prototype.hasOwnProperty;function _O(e,t){return function(n,i,o){return e(n,i,o)&&t(n,i,o)}}function nf(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var o=i.cache,a=o.get(r),s=o.get(n);if(a&&s)return a===n&&s===r;o.set(r,n),o.set(n,r);var u=e(r,n,i);return o.delete(r),o.delete(n),u}}function PO(e){return zY(e).concat(UY(e))}var qY=Object.hasOwn||function(e,t){return WY.call(e,t)};function Ko(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var HY="__v",KY="__o",VY="_owner",AO=Object.getOwnPropertyDescriptor,EO=Object.keys;function GY(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function QY(e,t){return Ko(e.getTime(),t.getTime())}function XY(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function YY(e,t){return e===t}function $O(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),o=e.entries(),a,s,u=0;(a=o.next())&&!a.done;){for(var l=t.entries(),f=!1,c=0;(s=l.next())&&!s.done;){if(i[c]){c++;continue}var d=a.value,h=s.value;if(r.equals(d[0],h[0],u,c,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;u++}return!0}var ZY=Ko;function JY(e,t,r){var n=EO(e),i=n.length;if(EO(t).length!==i)return!1;for(;i-- >0;)if(!sT(e,t,r,n[i]))return!1;return!0}function mu(e,t,r){var n=PO(e),i=n.length;if(PO(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=n[i],!sT(e,t,r,o)||(a=AO(e,o),s=AO(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function eZ(e,t){return Ko(e.valueOf(),t.valueOf())}function tZ(e,t){return e.source===t.source&&e.flags===t.flags}function jO(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),o=e.values(),a,s;(a=o.next())&&!a.done;){for(var u=t.values(),l=!1,f=0;(s=u.next())&&!s.done;){if(!i[f]&&r.equals(a.value,s.value,a.value,s.value,e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1}return!0}function rZ(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function 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 sT(e,t,r,n){return(n===VY||n===KY||n===HY)&&(e.$$typeof||t.$$typeof)?!0:qY(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var iZ="[object Arguments]",oZ="[object Boolean]",aZ="[object Date]",sZ="[object Error]",uZ="[object Map]",lZ="[object Number]",cZ="[object Object]",fZ="[object RegExp]",dZ="[object Set]",hZ="[object String]",pZ="[object URL]",vZ=Array.isArray,CO=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,TO=Object.assign,yZ=Object.prototype.toString.call.bind(Object.prototype.toString);function mZ(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,o=e.areMapsEqual,a=e.areNumbersEqual,s=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,l=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(p,v,g){if(p===v)return!0;if(p==null||v==null)return!1;var m=typeof p;if(m!==typeof v)return!1;if(m!=="object")return m==="number"?a(p,v,g):m==="function"?i(p,v,g):!1;var y=p.constructor;if(y!==v.constructor)return!1;if(y===Object)return s(p,v,g);if(vZ(p))return t(p,v,g);if(CO!=null&&CO(p))return c(p,v,g);if(y===Date)return r(p,v,g);if(y===RegExp)return l(p,v,g);if(y===Map)return o(p,v,g);if(y===Set)return f(p,v,g);var b=yZ(p);return b===aZ?r(p,v,g):b===fZ?l(p,v,g):b===uZ?o(p,v,g):b===dZ?f(p,v,g):b===cZ?typeof p.then!="function"&&typeof v.then!="function"&&s(p,v,g):b===pZ?d(p,v,g):b===sZ?n(p,v,g):b===iZ?s(p,v,g):b===oZ||b===lZ||b===hZ?u(p,v,g):!1}}function gZ(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?mu:GY,areDatesEqual:QY,areErrorsEqual:XY,areFunctionsEqual:YY,areMapsEqual:n?_O($O,mu):$O,areNumbersEqual:ZY,areObjectsEqual:n?mu:JY,arePrimitiveWrappersEqual:eZ,areRegExpsEqual:tZ,areSetsEqual:n?_O(jO,mu):jO,areTypedArraysEqual:n?mu:rZ,areUrlsEqual:nZ};if(r&&(i=TO({},i,r(i))),t){var o=nf(i.areArraysEqual),a=nf(i.areMapsEqual),s=nf(i.areObjectsEqual),u=nf(i.areSetsEqual);i=TO({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:u})}return i}function bZ(e){return function(t,r,n,i,o,a,s){return e(t,r,s)}}function xZ(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,o=e.strict;if(n)return function(u,l){var f=n(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,h=f.meta;return r(u,l,{cache:d,equals:i,meta:h,strict:o})};if(t)return function(u,l){return r(u,l,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(u,l){return r(u,l,a)}}var wZ=Wi();Wi({strict:!0});Wi({circular:!0});Wi({circular:!0,strict:!0});Wi({createInternalComparator:function(){return Ko}});Wi({strict:!0,createInternalComparator:function(){return Ko}});Wi({circular:!0,createInternalComparator:function(){return Ko}});Wi({circular:!0,createInternalComparator:function(){return Ko},strict:!0});function Wi(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=gZ(e),u=mZ(s),l=n?n(u):bZ(u);return xZ({circular:r,comparator:u,createState:i,equals:l,strict:a})}function SZ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function kO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(o){r<0&&(r=o),o-r>t?(e(o),r=-1):SZ(i)};requestAnimationFrame(n)}function ig(e){"@babel/helpers - typeof";return ig=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},ig(e)}function OZ(e){return EZ(e)||AZ(e)||PZ(e)||_Z()}function _Z(){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 PZ(e,t){if(e){if(typeof e=="string")return MO(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 MO(e,t)}}function MO(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 AZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EZ(e){if(Array.isArray(e))return e}function $Z(){var e={},t=function(){return null},r=!1,n=function i(o){if(!r){if(Array.isArray(o)){if(!o.length)return;var a=o,s=OZ(a),u=s[0],l=s.slice(1);if(typeof u=="number"){kO(i.bind(null,l),u);return}i(u),kO(i.bind(null,l));return}ig(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){r=!0},start:function(o){r=!1,n(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function kl(e){"@babel/helpers - typeof";return kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kl(e)}function IO(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 RO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IO(Object(r),!0).forEach(function(n){uT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uT(e,t,r){return t=jZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jZ(e){var t=CZ(e,"string");return kl(t)==="symbol"?t:String(t)}function CZ(e,t){if(kl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TZ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(o){return i.includes(o)})})},kZ=function(t){return t},MZ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},zu=function(t,r){return Object.keys(r).reduce(function(n,i){return RO(RO({},n),{},uT({},i,t(i,r[i])))},{})},NO=function(t,r,n){return t.map(function(i){return"".concat(MZ(i)," ").concat(r,"ms ").concat(n)}).join(",")};function IZ(e,t){return DZ(e)||NZ(e,t)||lT(e,t)||RZ()}function RZ(){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 NZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function DZ(e){if(Array.isArray(e))return e}function LZ(e){return zZ(e)||BZ(e)||lT(e)||FZ()}function FZ(){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 lT(e,t){if(e){if(typeof e=="string")return og(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 og(e,t)}}function BZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zZ(e){if(Array.isArray(e))return og(e)}function og(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 Dd=1e-4,cT=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},fT=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},DO=function(t,r){return function(n){var i=cT(t,r);return fT(i,n)}},UZ=function(t,r){return function(n){var i=cT(t,r),o=[].concat(LZ(i.map(function(a,s){return a*s}).slice(1)),[0]);return fT(o,n)}},LO=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],o=r[1],a=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,o=0,a=1,s=1;break;case"ease":i=.25,o=.1,a=.25,s=1;break;case"ease-in":i=.42,o=0,a=1,s=1;break;case"ease-out":i=.42,o=0,a=.58,s=1;break;case"ease-in-out":i=0,o=0,a=.58,s=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var l=u[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),f=IZ(l,4);i=f[0],o=f[1],a=f[2],s=f[3]}}}var c=DO(i,a),d=DO(o,s),h=UZ(i,a),p=function(m){return m>1?1:m<0?0:m},v=function(m){for(var y=m>1?1:m,b=y,O=0;O<8;++O){var x=c(b)-y,w=h(b);if(Math.abs(x-y)<Dd||w<Dd)return d(b);b=p(b-x/w)}return d(b)};return v.isStepper=!1,v},WZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,u=function(f,c,d){var h=-(f-c)*n,p=d*o,v=d+(h-p)*s/1e3,g=d*s/1e3+f;return Math.abs(g-c)<Dd&&Math.abs(v)<Dd?[c,0]:[g,v]};return u.isStepper=!0,u.dt=s,u},qZ=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 LO(i);case"spring":return WZ();default:if(i.split("(")[0]==="cubic-bezier")return LO(i)}return typeof i=="function"?i:null};function Ml(e){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ml(e)}function FO(e){return VZ(e)||KZ(e)||dT(e)||HZ()}function HZ(){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 KZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VZ(e){if(Array.isArray(e))return sg(e)}function BO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vt(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){ag(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 ag(e,t,r){return t=GZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GZ(e){var t=QZ(e,"string");return Ml(t)==="symbol"?t:String(t)}function QZ(e,t){if(Ml(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ml(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XZ(e,t){return JZ(e)||ZZ(e,t)||dT(e,t)||YZ()}function YZ(){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 dT(e,t){if(e){if(typeof e=="string")return sg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sg(e,t)}}function sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ZZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function JZ(e){if(Array.isArray(e))return e}var Ld=function(t,r,n){return t+(r-t)*n},ug=function(t){var r=t.from,n=t.to;return r!==n},eJ=function e(t,r,n){var i=zu(function(o,a){if(ug(a)){var s=t(a.from,a.to,a.velocity),u=XZ(s,2),l=u[0],f=u[1];return vt(vt({},a),{},{from:l,velocity:f})}return a},r);return n<1?zu(function(o,a){return ug(a)?vt(vt({},a),{},{velocity:Ld(a.velocity,i[o].velocity,n),from:Ld(a.from,i[o].from,n)}):a},r):e(t,i,n-1)};const tJ=function(e,t,r,n,i){var o=TZ(e,t),a=o.reduce(function(g,m){return vt(vt({},g),{},ag({},m,[e[m],t[m]]))},{}),s=o.reduce(function(g,m){return vt(vt({},g),{},ag({},m,{from:e[m],velocity:0,to:t[m]}))},{}),u=-1,l,f,c=function(){return null},d=function(){return zu(function(m,y){return y.from},s)},h=function(){return!Object.values(s).filter(ug).length},p=function(m){l||(l=m);var y=m-l,b=y/r.dt;s=eJ(r,s,b),i(vt(vt(vt({},e),t),d())),l=m,h()||(u=requestAnimationFrame(c))},v=function(m){f||(f=m);var y=(m-f)/n,b=zu(function(x,w){return Ld.apply(void 0,FO(w).concat([r(y)]))},a);if(i(vt(vt(vt({},e),t),b)),y<1)u=requestAnimationFrame(c);else{var O=zu(function(x,w){return Ld.apply(void 0,FO(w).concat([r(1)]))},a);i(vt(vt(vt({},e),t),O))}};return c=r.isStepper?p:v,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(u)}}};function vs(e){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vs(e)}var rJ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function nJ(e,t){if(e==null)return{};var r=iJ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iJ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Rv(e){return uJ(e)||sJ(e)||aJ(e)||oJ()}function oJ(){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 aJ(e,t){if(e){if(typeof e=="string")return lg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lg(e,t)}}function sJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uJ(e){if(Array.isArray(e))return lg(e)}function lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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 Tr(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){Au(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 Au(e,t,r){return t=hT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lJ(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,hT(n.key),n)}}function fJ(e,t,r){return t&&cJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hT(e){var t=dJ(e,"string");return vs(t)==="symbol"?t:String(t)}function dJ(e,t){if(vs(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vs(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hJ(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 pJ(e){var t=vJ();return function(){var n=Fd(e),i;if(t){var o=Fd(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return fg(this,i)}}function fg(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 dg(e)}function dg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vJ(){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 Fd(e){return Fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fd(e)}var gn=function(e){hJ(r,e);var t=pJ(r);function r(n,i){var o;lJ(this,r),o=t.call(this,n,i);var a=o.props,s=a.isActive,u=a.attributeName,l=a.from,f=a.to,c=a.steps,d=a.children,h=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(dg(o)),o.changeStyle=o.changeStyle.bind(dg(o)),!s||h<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:f}),fg(o);if(c&&c.length)o.state={style:c[0].style};else if(l){if(typeof d=="function")return o.state={style:l},fg(o);o.state={style:u?Au({},u,l):l}}else o.state={style:{}};return o}return fJ(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,u=o.attributeName,l=o.shouldReAnimate,f=o.to,c=o.from,d=this.state.style;if(s){if(!a){var h={style:u?Au({},u,f):f};this.state&&d&&(u&&d[u]!==f||!u&&d!==f)&&this.setState(h);return}if(!(wZ(i.to,f)&&i.canBegin&&i.isActive)){var p=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=p||l?c:i.to;if(this.state&&d){var g={style:u?Au({},u,v):v};(u&&d[u]!==v||!u&&d!==v)&&this.setState(g)}this.runAnimation(Tr(Tr({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,u=i.duration,l=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,h=tJ(a,s,qZ(l),u,this.changeStyle),p=function(){o.stopJSAnimation=h()};this.manager.start([d,f,p,u,c])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,u=i.onAnimationStart,l=a[0],f=l.style,c=l.duration,d=c===void 0?0:c,h=function(v,g,m){if(m===0)return v;var y=g.duration,b=g.easing,O=b===void 0?"ease":b,x=g.style,w=g.properties,S=g.onAnimationEnd,_=m>0?a[m-1]:g,P=w||Object.keys(x);if(typeof O=="function"||O==="spring")return[].concat(Rv(v),[o.runJSAnimation.bind(o,{from:_.style,to:x,duration:y,easing:O}),y]);var A=NO(P,y,O),E=Tr(Tr(Tr({},_.style),x),{},{transition:A});return[].concat(Rv(v),[E,y,S]).filter(kZ)};return this.manager.start([u].concat(Rv(a.reduce(h,[f,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=$Z());var o=i.begin,a=i.duration,s=i.attributeName,u=i.to,l=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,h=i.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),typeof l=="function"||typeof h=="function"||l==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=s?Au({},s,u):u,g=NO(Object.keys(v),a,l);p.start([f,o,Tr(Tr({},v),{},{transition:g}),a,c])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=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 u=nJ(i,rJ),l=k.Children.count(o),f=this.state.style;if(typeof o=="function")return o(f);if(!s||l===0||a<=0)return o;var c=function(h){var p=h.props,v=p.style,g=v===void 0?{}:v,m=p.className,y=k.cloneElement(h,Tr(Tr({},u),{},{style:Tr(Tr({},g),f),className:m}));return y};return l===1?c(k.Children.only(o)):C.createElement("div",null,k.Children.map(o,function(d){return c(d)}))}}]),r}(k.PureComponent);gn.displayName="Animate";gn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};gn.propTypes={from:Se.oneOfType([Se.object,Se.string]),to:Se.oneOfType([Se.object,Se.string]),attributeName:Se.string,duration:Se.number,begin:Se.number,easing:Se.oneOfType([Se.string,Se.func]),steps:Se.arrayOf(Se.shape({duration:Se.number.isRequired,style:Se.object.isRequired,easing:Se.oneOfType([Se.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Se.func]),properties:Se.arrayOf("string"),onAnimationEnd:Se.func})),children:Se.oneOfType([Se.node,Se.func]),isActive:Se.bool,canBegin:Se.bool,onAnimationEnd:Se.func,shouldReAnimate:Se.bool,onAnimationStart:Se.func,onAnimationReStart:Se.func};function Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function Bd(){return Bd=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},Bd.apply(this,arguments)}function yJ(e,t){return xJ(e)||bJ(e,t)||gJ(e,t)||mJ()}function mJ(){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 gJ(e,t){if(e){if(typeof e=="string")return UO(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 UO(e,t)}}function UO(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 bJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function xJ(e){if(Array.isArray(e))return e}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 qO(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){wJ(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 wJ(e,t,r){return t=SJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SJ(e){var t=OJ(e,"string");return Il(t)=="symbol"?t:t+""}function OJ(e,t){if(Il(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Il(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HO=function(t,r,n,i,o){var a=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,u=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,f;if(a>0&&o instanceof Array){for(var c=[0,0,0,0],d=0,h=4;d<h;d++)c[d]=o[d]>a?a:o[d];f="M".concat(t,",").concat(r+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(t+u*c[0],",").concat(r)),f+="L ".concat(t+n-u*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,`,
`).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(l,`,
`).concat(t+n-u*c[2],",").concat(r+i)),f+="L ".concat(t+u*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,`,
`).concat(t,",").concat(r+i-s*c[3])),f+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);f="M ".concat(t,",").concat(r+s*p,`
A `).concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(r,`
L `).concat(t+n-u*p,",").concat(r,`
A `).concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+n,",").concat(r+s*p,`
L `).concat(t+n,",").concat(r+i-s*p,`
A `).concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+n-u*p,",").concat(r+i,`
L `).concat(t+u*p,",").concat(r+i,`
A `).concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(r+i-s*p," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},_J=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,o=r.x,a=r.y,s=r.width,u=r.height;if(Math.abs(s)>0&&Math.abs(u)>0){var l=Math.min(o,o+s),f=Math.max(o,o+s),c=Math.min(a,a+u),d=Math.max(a,a+u);return n>=l&&n<=f&&i>=c&&i<=d}return!1},PJ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Gb=function(t){var r=qO(qO({},PJ),t),n=k.useRef(),i=k.useState(-1),o=yJ(i,2),a=o[0],s=o[1];k.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&s(O)}catch{}},[]);var u=r.x,l=r.y,f=r.width,c=r.height,d=r.radius,h=r.className,p=r.animationEasing,v=r.animationDuration,g=r.animationBegin,m=r.isAnimationActive,y=r.isUpdateAnimationActive;if(u!==+u||l!==+l||f!==+f||c!==+c||f===0||c===0)return null;var b=fe("recharts-rectangle",h);return y?C.createElement(gn,{canBegin:a>0,from:{width:f,height:c,x:u,y:l},to:{width:f,height:c,x:u,y:l},duration:v,animationEasing:p,isActive:y},function(O){var x=O.width,w=O.height,S=O.x,_=O.y;return C.createElement(gn,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,isActive:m,easing:p},C.createElement("path",Bd({},oe(r,!0),{className:b,d:HO(S,_,x,w,d),ref:n})))}):C.createElement("path",Bd({},oe(r,!0),{className:b,d:HO(u,l,f,c,d)}))},AJ=["points","className","baseLinePoints","connectNulls"];function ya(){return ya=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},ya.apply(this,arguments)}function EJ(e,t){if(e==null)return{};var r=$J(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $J(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 KO(e){return kJ(e)||TJ(e)||CJ(e)||jJ()}function jJ(){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 CJ(e,t){if(e){if(typeof e=="string")return hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hg(e,t)}}function TJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kJ(e){if(Array.isArray(e))return hg(e)}function hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var VO=function(t){return t&&t.x===+t.x&&t.y===+t.y},MJ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){VO(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),VO(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Uu=function(t,r){var n=MJ(t);r&&(n=[n.reduce(function(o,a){return[].concat(KO(o),KO(a))},[])]);var i=n.map(function(o){return o.reduce(function(a,s,u){return"".concat(a).concat(u===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},IJ=function(t,r,n){var i=Uu(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Uu(r.reverse(),n).slice(1))},RJ=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,o=t.connectNulls,a=EJ(t,AJ);if(!r||!r.length)return null;var s=fe("recharts-polygon",n);if(i&&i.length){var u=a.stroke&&a.stroke!=="none",l=IJ(r,i,o);return C.createElement("g",{className:s},C.createElement("path",ya({},oe(a,!0),{fill:l.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:l})),u?C.createElement("path",ya({},oe(a,!0),{fill:"none",d:Uu(r,o)})):null,u?C.createElement("path",ya({},oe(a,!0),{fill:"none",d:Uu(i,o)})):null)}var f=Uu(r,o);return C.createElement("path",ya({},oe(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:s,d:f}))};function pg(){return pg=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},pg.apply(this,arguments)}var fp=function(t){var r=t.cx,n=t.cy,i=t.r,o=t.className,a=fe("recharts-dot",o);return r===+r&&n===+n&&i===+i?k.createElement("circle",pg({},oe(t,!1),ad(t),{className:a,cx:r,cy:n,r:i})):null};function Rl(e){"@babel/helpers - typeof";return Rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rl(e)}var NJ=["x","y","top","left","width","height","className"];function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vg.apply(this,arguments)}function GO(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 DJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(r),!0).forEach(function(n){LJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LJ(e,t,r){return t=FJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FJ(e){var t=BJ(e,"string");return Rl(t)=="symbol"?t:t+""}function BJ(e,t){if(Rl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zJ(e,t){if(e==null)return{};var r=UJ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UJ(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 WJ=function(t,r,n,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(r,"h").concat(n)},qJ=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,u=t.left,l=u===void 0?0:u,f=t.width,c=f===void 0?0:f,d=t.height,h=d===void 0?0:d,p=t.className,v=zJ(t,NJ),g=DJ({x:n,y:o,top:s,left:l,width:c,height:h},v);return!K(n)||!K(o)||!K(c)||!K(h)||!K(s)||!K(l)?null:C.createElement("path",vg({},oe(g,!0),{className:fe("recharts-cross",p),d:WJ(n,o,c,h,s,l)}))},HJ=ap,KJ=PC,VJ=wn;function GJ(e,t){return e&&e.length?HJ(e,VJ(t),KJ):void 0}var QJ=GJ;const XJ=Pe(QJ);var YJ=ap,ZJ=wn,JJ=AC;function eee(e,t){return e&&e.length?YJ(e,ZJ(t),JJ):void 0}var tee=eee;const ree=Pe(tee);var nee=["cx","cy","angle","ticks","axisLine"],iee=["ticks","tick","angle","tickFormatter","stroke"];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 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)}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 Ki(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){dp(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 XO(e,t){if(e==null)return{};var r=oee(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oee(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 aee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YO(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,vT(n.key),n)}}function see(e,t,r){return t&&YO(e.prototype,t),r&&YO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uee(e,t,r){return t=zd(t),lee(e,pT()?Reflect.construct(t,r||[],zd(e).constructor):t.apply(e,r))}function lee(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 cee(e)}function cee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pT=function(){return!!e})()}function zd(e){return zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zd(e)}function fee(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 dp(e,t,r){return t=vT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vT(e){var t=dee(e,"string");return ys(t)=="symbol"?t:t+""}function dee(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 hp=function(e){function t(){return aee(this,t),uee(this,t,arguments)}return fee(t,e),see(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,o=this.props,a=o.angle,s=o.cx,u=o.cy;return Me(s,u,i,a)}},{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,o=n.cy,a=n.angle,s=n.ticks,u=XJ(s,function(f){return f.coordinate||0}),l=ree(s,function(f){return f.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:l.coordinate||0,outerRadius:u.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.angle,s=n.ticks,u=n.axisLine,l=XO(n,nee),f=s.reduce(function(p,v){return[Math.min(p[0],v.coordinate),Math.max(p[1],v.coordinate)]},[1/0,-1/0]),c=Me(i,o,f[0],a),d=Me(i,o,f[1],a),h=Ki(Ki(Ki({},oe(l,!1)),{},{fill:"none"},oe(u,!1)),{},{x1:c.x,y1:c.y,x2:d.x,y2:d.y});return C.createElement("line",Wu({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,u=i.tickFormatter,l=i.stroke,f=XO(i,iee),c=this.getTickTextAnchor(),d=oe(f,!1),h=oe(a,!1),p=o.map(function(v,g){var m=n.getTickValueCoord(v),y=Ki(Ki(Ki(Ki({textAnchor:c,transform:"rotate(".concat(90-s,", ").concat(m.x,", ").concat(m.y,")")},d),{},{stroke:"none",fill:l},h),{},{index:g},m),{},{payload:v});return C.createElement(xe,Wu({className:fe("recharts-polar-radius-axis-tick",eT(a)),key:"tick-".concat(v.coordinate)},Mo(n.props,v,g)),t.renderTickItem(a,y,u?u(v.value,g):v.value))});return C.createElement(xe,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.axisLine,a=n.tick;return!i||!i.length?null:C.createElement(xe,{className:fe("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),dt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,o){var a;return C.isValidElement(n)?a=C.cloneElement(n,i):ue(n)?a=n(i):a=C.createElement(Io,Wu({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(k.PureComponent);dp(hp,"displayName","PolarRadiusAxis");dp(hp,"axisType","radiusAxis");dp(hp,"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 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 to(){return to=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},to.apply(this,arguments)}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 Vi(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){pp(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 hee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JO(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,mT(n.key),n)}}function pee(e,t,r){return t&&JO(e.prototype,t),r&&JO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vee(e,t,r){return t=Ud(t),yee(e,yT()?Reflect.construct(t,r||[],Ud(e).constructor):t.apply(e,r))}function yee(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 mee(e)}function mee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yT=function(){return!!e})()}function Ud(e){return Ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ud(e)}function gee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mg(e,t)}function mg(e,t){return mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mg(e,t)}function pp(e,t,r){return t=mT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mT(e){var t=bee(e,"string");return ms(t)=="symbol"?t:t+""}function bee(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 xee=Math.PI/180,e_=1e-5,vp=function(e){function t(){return hee(this,t),vee(this,t,arguments)}return gee(t,e),pee(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,o=i.cx,a=i.cy,s=i.radius,u=i.orientation,l=i.tickSize,f=l||8,c=Me(o,a,s,n.coordinate),d=Me(o,a,s+(u==="inner"?-1:1)*f,n.coordinate);return{x1:c.x,y1:c.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,o=Math.cos(-n.coordinate*xee),a;return o>e_?a=i==="outer"?"start":"end":o<-e_?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.radius,s=n.axisLine,u=n.axisLineType,l=Vi(Vi({},oe(this.props,!1)),{},{fill:"none"},oe(s,!1));if(u==="circle")return C.createElement(fp,to({className:"recharts-polar-angle-axis-line"},l,{cx:i,cy:o,r:a}));var f=this.props.ticks,c=f.map(function(d){return Me(i,o,a,d.coordinate)});return C.createElement(RJ,to({className:"recharts-polar-angle-axis-line"},l,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,u=i.tickFormatter,l=i.stroke,f=oe(this.props,!1),c=oe(a,!1),d=Vi(Vi({},f),{},{fill:"none"},oe(s,!1)),h=o.map(function(p,v){var g=n.getTickLineCoord(p),m=n.getTickTextAnchor(p),y=Vi(Vi(Vi({textAnchor:m},f),{},{stroke:"none",fill:l},c),{},{index:v,payload:p,x:g.x2,y:g.y2});return C.createElement(xe,to({className:fe("recharts-polar-angle-axis-tick",eT(a)),key:"tick-".concat(p.coordinate)},Mo(n.props,p,v)),s&&C.createElement("line",to({className:"recharts-polar-angle-axis-tick-line"},d,g)),a&&t.renderTickItem(a,y,u?u(p.value,v):p.value))});return C.createElement(xe,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.radius,a=n.axisLine;return o<=0||!i||!i.length?null:C.createElement(xe,{className:fe("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,o){var a;return C.isValidElement(n)?a=C.cloneElement(n,i):ue(n)?a=n(i):a=C.createElement(Io,to({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(k.PureComponent);pp(vp,"displayName","PolarAngleAxis");pp(vp,"axisType","angleAxis");pp(vp,"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 wee=wj,See=wee(Object.getPrototypeOf,Object),Oee=See,_ee=Gn,Pee=Oee,Aee=Qn,Eee="[object Object]",$ee=Function.prototype,jee=Object.prototype,gT=$ee.toString,Cee=jee.hasOwnProperty,Tee=gT.call(Object);function kee(e){if(!Aee(e)||_ee(e)!=Eee)return!1;var t=Pee(e);if(t===null)return!0;var r=Cee.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&gT.call(r)==Tee}var Mee=kee;const Iee=Pe(Mee);var Ree=Gn,Nee=Qn,Dee="[object Boolean]";function Lee(e){return e===!0||e===!1||Nee(e)&&Ree(e)==Dee}var Fee=Lee;const Bee=Pe(Fee);function Nl(e){"@babel/helpers - typeof";return Nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nl(e)}function Wd(){return Wd=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},Wd.apply(this,arguments)}function zee(e,t){return Hee(e)||qee(e,t)||Wee(e,t)||Uee()}function Uee(){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 Wee(e,t){if(e){if(typeof e=="string")return t_(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 t_(e,t)}}function t_(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 qee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function Hee(e){if(Array.isArray(e))return e}function r_(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 n_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?r_(Object(r),!0).forEach(function(n){Kee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kee(e,t,r){return t=Vee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vee(e){var t=Gee(e,"string");return Nl(t)=="symbol"?t:t+""}function Gee(e,t){if(Nl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i_=function(t,r,n,i,o){var a=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-a/2,",").concat(r+o),s+="L ".concat(t+n-a/2-i,",").concat(r+o),s+="L ".concat(t,",").concat(r," Z"),s},Qee={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Xee=function(t){var r=n_(n_({},Qee),t),n=k.useRef(),i=k.useState(-1),o=zee(i,2),a=o[0],s=o[1];k.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var u=r.x,l=r.y,f=r.upperWidth,c=r.lowerWidth,d=r.height,h=r.className,p=r.animationEasing,v=r.animationDuration,g=r.animationBegin,m=r.isUpdateAnimationActive;if(u!==+u||l!==+l||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var y=fe("recharts-trapezoid",h);return m?C.createElement(gn,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:d,x:u,y:l},to:{upperWidth:f,lowerWidth:c,height:d,x:u,y:l},duration:v,animationEasing:p,isActive:m},function(b){var O=b.upperWidth,x=b.lowerWidth,w=b.height,S=b.x,_=b.y;return C.createElement(gn,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,easing:p},C.createElement("path",Wd({},oe(r,!0),{className:y,d:i_(S,_,O,x,w),ref:n})))}):C.createElement("g",null,C.createElement("path",Wd({},oe(r,!0),{className:y,d:i_(u,l,f,c,d)})))},Yee=["option","shapeType","propTransformer","activeClassName","isActive"];function Dl(e){"@babel/helpers - typeof";return Dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dl(e)}function Zee(e,t){if(e==null)return{};var r=Jee(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jee(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 o_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o_(Object(r),!0).forEach(function(n){ete(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ete(e,t,r){return t=tte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tte(e){var t=rte(e,"string");return Dl(t)=="symbol"?t:t+""}function rte(e,t){if(Dl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nte(e,t){return qd(qd({},t),e)}function ite(e,t){return e==="symbols"}function a_(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return C.createElement(Gb,r);case"trapezoid":return C.createElement(Xee,r);case"sector":return C.createElement(nT,r);case"symbols":if(ite(t))return C.createElement(hb,r);break;default:return null}}function ote(e){return k.isValidElement(e)?e.props:e}function bT(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?nte:n,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,u=Zee(e,Yee),l;if(k.isValidElement(t))l=k.cloneElement(t,qd(qd({},u),ote(t)));else if(ue(t))l=t(u);else if(Iee(t)&&!Bee(t)){var f=i(t,u);l=C.createElement(a_,{shapeType:r,elementProps:f})}else{var c=u;l=C.createElement(a_,{shapeType:r,elementProps:c})}return s?C.createElement(xe,{className:a},l):l}function yp(e,t){return t!=null&&"trapezoids"in e.props}function mp(e,t){return t!=null&&"sectors"in e.props}function Ll(e,t){return t!=null&&"points"in e.props}function ate(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,o=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&o}function ste(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function ute(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function lte(e,t){var r;return yp(e,t)?r=ate:mp(e,t)?r=ste:Ll(e,t)&&(r=ute),r}function cte(e,t){var r;return yp(e,t)?r="trapezoids":mp(e,t)?r="sectors":Ll(e,t)&&(r="points"),r}function fte(e,t){if(yp(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(mp(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 Ll(e,t)?t.payload:{}}function dte(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=cte(r,t),o=fte(r,t),a=n.filter(function(u,l){var f=mc(o,u),c=r.props[i].filter(function(p){var v=lte(r,t);return v(p,t)}),d=r.props[i].indexOf(c[c.length-1]),h=l===d;return f&&h}),s=n.indexOf(a[a.length-1]);return s}var Of;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 ma(){return ma=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},ma.apply(this,arguments)}function s_(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?s_(Object(r),!0).forEach(function(n){xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u_(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,wT(n.key),n)}}function pte(e,t,r){return t&&u_(e.prototype,t),r&&u_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vte(e,t,r){return t=Hd(t),yte(e,xT()?Reflect.construct(t,r||[],Hd(e).constructor):t.apply(e,r))}function yte(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 mte(e)}function mte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xT=function(){return!!e})()}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hd(e)}function gte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gg(e,t)}function gg(e,t){return gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gg(e,t)}function xr(e,t,r){return t=wT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wT(e){var t=bte(e,"string");return gs(t)=="symbol"?t:t+""}function bte(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 Yn=function(e){function t(r){var n;return hte(this,t),n=vte(this,t,[r]),xr(n,"pieRef",null),xr(n,"sectorRefs",[]),xr(n,"id",Us("recharts-pie-")),xr(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ue(i)&&i()}),xr(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ue(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return gte(t,e),pte(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 o=this.props,a=o.label,s=o.labelLine,u=o.dataKey,l=o.valueKey,f=oe(this.props,!1),c=oe(a,!1),d=oe(s,!1),h=a&&a.offsetRadius||20,p=n.map(function(v,g){var m=(v.startAngle+v.endAngle)/2,y=Me(v.cx,v.cy,v.outerRadius+h,m),b=Ce(Ce(Ce(Ce({},f),v),{},{stroke:"none"},c),{},{index:g,textAnchor:t.getTextAnchor(y.x,v.cx)},y),O=Ce(Ce(Ce(Ce({},f),v),{},{fill:"none",stroke:v.fill},d),{},{index:g,points:[Me(v.cx,v.cy,v.outerRadius,m),y]}),x=u;return le(u)&&le(l)?x="value":le(u)&&(x=l),C.createElement(xe,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(g)},s&&t.renderLabelLineItem(s,O,"line"),t.renderLabelItem(a,b,at(v,x)))});return C.createElement(xe,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(n){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,u=o.inactiveShape;return n.map(function(l,f){if((l==null?void 0:l.startAngle)===0&&(l==null?void 0:l.endAngle)===0&&n.length!==1)return null;var c=i.isActiveIndex(f),d=u&&i.hasActiveIndex()?u:null,h=c?a:d,p=Ce(Ce({},l),{},{stroke:s?l.fill:l.stroke,tabIndex:-1});return C.createElement(xe,ma({ref:function(g){g&&!i.sectorRefs.includes(g)&&i.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},Mo(i.props,l,f),{key:"sector-".concat(l==null?void 0:l.startAngle,"-").concat(l==null?void 0:l.endAngle,"-").concat(l.midAngle,"-").concat(f)}),C.createElement(bT,ma({option:h,isActive:c,shapeType:"sector"},p)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,u=i.animationDuration,l=i.animationEasing,f=i.animationId,c=this.state,d=c.prevSectors,h=c.prevIsAnimationActive;return C.createElement(gn,{begin:s,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(p){var v=p.t,g=[],m=o&&o[0],y=m.startAngle;return o.forEach(function(b,O){var x=d&&d[O],w=O>0?ir(b,"paddingAngle",0):0;if(x){var S=Jt(x.endAngle-x.startAngle,b.endAngle-b.startAngle),_=Ce(Ce({},b),{},{startAngle:y+w,endAngle:y+S(v)+w});g.push(_),y=_.endAngle}else{var P=b.endAngle,A=b.startAngle,E=Jt(0,P-A),$=E(v),T=Ce(Ce({},b),{},{startAngle:y+w,endAngle:y+$+w});g.push(T),y=T.endAngle}}),C.createElement(xe,null,n.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var 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,o=n.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!mc(a,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,o=i.hide,a=i.sectors,s=i.className,u=i.label,l=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,p=this.state.isAnimationFinished;if(o||!a||!a.length||!K(l)||!K(f)||!K(c)||!K(d))return null;var v=fe("recharts-pie",s);return C.createElement(xe,{tabIndex:this.props.rootTabIndex,className:v,ref:function(m){n.pieRef=m}},this.renderSectors(),u&&this.renderLabels(a),dt.renderCallByParent(this.props,null,!1),(!h||p)&&Ln.renderCallByParent(this.props,a,!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,o){if(C.isValidElement(n))return C.cloneElement(n,i);if(ue(n))return n(i);var a=fe("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return C.createElement(Nd,ma({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(n,i,o){if(C.isValidElement(n))return C.cloneElement(n,i);var a=o;if(ue(n)&&(a=n(i),C.isValidElement(a)))return a;var s=fe("recharts-pie-label-text",typeof n!="boolean"&&!ue(n)?n.className:"");return C.createElement(Io,ma({},i,{alignmentBaseline:"middle",className:s}),a)}}])}(k.PureComponent);Of=Yn;xr(Yn,"displayName","Pie");xr(Yn,"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:!Wo.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});xr(Yn,"parseDeltaAngle",function(e,t){var r=Mt(t-e),n=Math.min(Math.abs(t-e),360);return r*n});xr(Yn,"getRealPieData",function(e){var t=e.data,r=e.children,n=oe(e,!1),i=or(r,Jh);return t&&t.length?t.map(function(o,a){return Ce(Ce(Ce({payload:o},n),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return Ce(Ce({},n),o.props)}):[]});xr(Yn,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,o=t.height,a=JC(i,o),s=n+It(e.cx,i,i/2),u=r+It(e.cy,o,o/2),l=It(e.innerRadius,a,0),f=It(e.outerRadius,a,a*.8),c=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:u,innerRadius:l,outerRadius:f,maxRadius:c}});xr(Yn,"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=Of.getRealPieData(n);if(!i||!i.length)return null;var o=n.cornerRadius,a=n.startAngle,s=n.endAngle,u=n.paddingAngle,l=n.dataKey,f=n.nameKey,c=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),p=Of.parseCoordinateOfPie(n,r),v=Of.parseDeltaAngle(a,s),g=Math.abs(v),m=l;le(l)&&le(c)?(Hr(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),m="value"):le(l)&&(Hr(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),m=c);var y=i.filter(function(_){return at(_,m,0)!==0}).length,b=(g>=360?y:y-1)*u,O=g-y*h-b,x=i.reduce(function(_,P){var A=at(P,m,0);return _+(K(A)?A:0)},0),w;if(x>0){var S;w=i.map(function(_,P){var A=at(_,m,0),E=at(_,f,P),$=(K(A)?A:0)/x,T;P?T=S.endAngle+Mt(v)*u*(A!==0?1:0):T=a;var I=T+Mt(v)*((A!==0?h:0)+$*O),D=(T+I)/2,N=(p.innerRadius+p.outerRadius)/2,F=[{name:E,value:A,payload:_,dataKey:m,type:d}],M=Me(p.cx,p.cy,N,D);return S=Ce(Ce(Ce({percent:$,cornerRadius:o,name:E,tooltipPayload:F,midAngle:D,middleRadius:N,tooltipPosition:M},_),p),{},{value:at(_,m),startAngle:T,endAngle:I,payload:_,paddingAngle:Mt(v)*u}),S})}return Ce(Ce({},p),{},{sectors:w,data:i})});var xte=Math.ceil,wte=Math.max;function Ste(e,t,r,n){for(var i=-1,o=wte(xte((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}var Ote=Ste,_te=Bj,l_=1/0,Pte=17976931348623157e292;function Ate(e){if(!e)return e===0?e:0;if(e=_te(e),e===l_||e===-l_){var t=e<0?-1:1;return t*Pte}return e===e?e:0}var ST=Ate,Ete=Ote,$te=Zh,Nv=ST;function jte(e){return function(t,r,n){return n&&typeof n!="number"&&$te(t,r,n)&&(r=n=void 0),t=Nv(t),r===void 0?(r=t,t=0):r=Nv(r),n=n===void 0?t<r?1:-1:Nv(n),Ete(t,r,n,e)}}var Cte=jte,Tte=Cte,kte=Tte(),Mte=kte;const Kd=Pe(Mte);function Fl(e){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}function c_(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 f_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?c_(Object(r),!0).forEach(function(n){OT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OT(e,t,r){return t=Ite(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ite(e){var t=Rte(e,"string");return Fl(t)=="symbol"?t:t+""}function Rte(e,t){if(Fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nte=["Webkit","Moz","O","ms"],Dte=function(t,r){var n=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=Nte.reduce(function(o,a){return f_(f_({},o),{},OT({},a+n,r))},{});return i[t]=r,i};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 Vd(){return Vd=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},Vd.apply(this,arguments)}function d_(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 Dv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d_(Object(r),!0).forEach(function(n){Xt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h_(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,PT(n.key),n)}}function Fte(e,t,r){return t&&h_(e.prototype,t),r&&h_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bte(e,t,r){return t=Gd(t),zte(e,_T()?Reflect.construct(t,r||[],Gd(e).constructor):t.apply(e,r))}function zte(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 Ute(e)}function Ute(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_T=function(){return!!e})()}function Gd(e){return Gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gd(e)}function Wte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bg(e,t)}function bg(e,t){return bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bg(e,t)}function Xt(e,t,r){return t=PT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PT(e){var t=qte(e,"string");return bs(t)=="symbol"?t:t+""}function qte(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)}var Hte=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,l=Fu().domain(Kd(0,u)).range([o,o+a-s]),f=l.domain().map(function(c){return l(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(i),scale:l,scaleValues:f}},p_=function(t){return t.changedTouches&&!!t.changedTouches.length},xs=function(e){function t(r){var n;return Lte(this,t),n=Bte(this,t,[r]),Xt(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Xt(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Xt(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),n.detachDragEndListener()}),Xt(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Xt(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Xt(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Xt(n,"handleSlideDragStart",function(i){var o=p_(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return Wte(t,e),Fte(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,o=n.endX,a=this.state.scaleValues,s=this.props,u=s.gap,l=s.data,f=l.length-1,c=Math.min(i,o),d=Math.max(i,o),h=t.getIndexInRange(a,c),p=t.getIndexInRange(a,d);return{startIndex:h-h%u,endIndex:p===f?f:p-p%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,u=at(o[n],s,n);return ue(a)?a(u,n):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,u=this.props,l=u.x,f=u.width,c=u.travellerWidth,d=u.startIndex,h=u.endIndex,p=u.onChange,v=n.pageX-o;v>0?v=Math.min(v,l+f-c-s,l+f-c-a):v<0&&(v=Math.max(v,l-a,l-s));var g=this.getIndex({startX:a+v,endX:s+v});(g.startIndex!==d||g.endIndex!==h)&&p&&p(g),this.setState({startX:a+v,endX:s+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=p_(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,u=i.startX,l=this.state[a],f=this.props,c=f.x,d=f.width,h=f.travellerWidth,p=f.onChange,v=f.gap,g=f.data,m={startX:this.state.startX,endX:this.state.endX},y=n.pageX-o;y>0?y=Math.min(y,c+d-h-l):y<0&&(y=Math.max(y,c-l)),m[a]=l+y;var b=this.getIndex(m),O=b.startIndex,x=b.endIndex,w=function(){var _=g.length-1;return a==="startX"&&(s>u?O%v===0:x%v===0)||s<u&&x===_||a==="endX"&&(s>u?x%v===0:O%v===0)||s>u&&x===_};this.setState(Xt(Xt({},a,l+y),"brushMoveStartX",n.pageX),function(){p&&w()&&p(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var o=this,a=this.state,s=a.scaleValues,u=a.startX,l=a.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=l||i==="endX"&&h<=u||this.setState(Xt({},i,h),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,u=n.fill,l=n.stroke;return C.createElement("rect",{stroke:l,fill:u,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,u=n.data,l=n.children,f=n.padding,c=k.Children.only(l);return c?C.cloneElement(c,{x:i,y:o,width:a,height:s,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var o,a,s=this,u=this.props,l=u.y,f=u.travellerWidth,c=u.height,d=u.traveller,h=u.ariaLabel,p=u.data,v=u.startIndex,g=u.endIndex,m=Math.max(n,this.props.x),y=Dv(Dv({},oe(this.props,!1)),{},{x:m,y:l,width:f,height:c}),b=h||"Min value: ".concat((o=p[v])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=p[g])===null||a===void 0?void 0:a.name);return C.createElement(xe,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(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(d,y))}},{key:"renderSlide",value:function(n,i){var o=this.props,a=o.y,s=o.height,u=o.stroke,l=o.travellerWidth,f=Math.min(n,i)+l,c=Math.max(Math.abs(i-n)-l,0);return C.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:a,width:c,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,o=n.endIndex,a=n.y,s=n.height,u=n.travellerWidth,l=n.stroke,f=this.state,c=f.startX,d=f.endX,h=5,p={pointerEvents:"none",fill:l};return C.createElement(xe,{className:"recharts-brush-texts"},C.createElement(Io,Vd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-h,y:a+s/2},p),this.getTextOfTick(i)),C.createElement(Io,Vd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+u+h,y:a+s/2},p),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,i=n.data,o=n.className,a=n.children,s=n.x,u=n.y,l=n.width,f=n.height,c=n.alwaysShowText,d=this.state,h=d.startX,p=d.endX,v=d.isTextActive,g=d.isSlideMoving,m=d.isTravellerMoving,y=d.isTravellerFocused;if(!i||!i.length||!K(s)||!K(u)||!K(l)||!K(f)||l<=0||f<=0)return null;var b=fe("recharts-brush",o),O=C.Children.count(a)===1,x=Dte("userSelect","none");return C.createElement(xe,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,p),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(p,"endX"),(v||g||m||y||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,o=n.y,a=n.width,s=n.height,u=n.stroke,l=Math.floor(o+s/2)-1;return C.createElement(C.Fragment,null,C.createElement("rect",{x:i,y:o,width:a,height:s,fill:u,stroke:"none"}),C.createElement("line",{x1:i+1,y1:l,x2:i+a-1,y2:l,fill:"none",stroke:"#fff"}),C.createElement("line",{x1:i+1,y1:l+2,x2:i+a-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var o;return C.isValidElement(n)?o=C.cloneElement(n,i):ue(n)?o=n(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(n,i){var o=n.data,a=n.width,s=n.x,u=n.travellerWidth,l=n.updateId,f=n.startIndex,c=n.endIndex;if(o!==i.prevData||l!==i.prevUpdateId)return Dv({prevData:o,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:a},o&&o.length?Hte({data:o,width:a,x:s,travellerWidth:u,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([s,s+a-u]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:a,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var o=n.length,a=0,s=o-1;s-a>1;){var u=Math.floor((a+s)/2);n[u]>i?s=u:a=u}return i>=n[s]?s:a}}])}(k.PureComponent);Xt(xs,"displayName","Brush");Xt(xs,"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 Kte=xb;function Vte(e,t){var r;return Kte(e,function(n,i,o){return r=t(n,i,o),!r}),!!r}var Gte=Vte,Qte=hj,Xte=wn,Yte=Gte,Zte=Gt,Jte=Zh;function ere(e,t,r){var n=Zte(e)?Qte:Yte;return r&&Jte(e,t,r)&&(t=void 0),n(e,Xte(t))}var tre=ere;const rre=Pe(tre);var yn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},v_=Rj;function nre(e,t,r){t=="__proto__"&&v_?v_(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ire=nre,ore=ire,are=Mj,sre=wn;function ure(e,t){var r={};return t=sre(t),are(e,function(n,i,o){ore(r,i,t(n,i,o))}),r}var lre=ure;const cre=Pe(lre);function fre(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 dre=fre,hre=xb;function pre(e,t){var r=!0;return hre(e,function(n,i,o){return r=!!t(n,i,o),r}),r}var vre=pre,yre=dre,mre=vre,gre=wn,bre=Gt,xre=Zh;function wre(e,t,r){var n=bre(e)?yre:mre;return r&&xre(e,t,r)&&(t=void 0),n(e,gre(t))}var Sre=wre;const AT=Pe(Sre);var Ore=["x","y"];function Bl(e){"@babel/helpers - typeof";return Bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bl(e)}function xg(){return xg=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},xg.apply(this,arguments)}function y_(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 gu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y_(Object(r),!0).forEach(function(n){_re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _re(e,t,r){return t=Pre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pre(e){var t=Are(e,"string");return Bl(t)=="symbol"?t:t+""}function Are(e,t){if(Bl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ere(e,t){if(e==null)return{};var r=$re(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $re(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 jre(e,t){var r=e.x,n=e.y,i=Ere(e,Ore),o="".concat(r),a=parseInt(o,10),s="".concat(n),u=parseInt(s,10),l="".concat(t.height||i.height),f=parseInt(l,10),c="".concat(t.width||i.width),d=parseInt(c,10);return gu(gu(gu(gu(gu({},t),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function m_(e){return C.createElement(bT,xg({shapeType:"rectangle",propTransformer:jre,activeClassName:"recharts-active-bar"},e))}var Cre=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 o=K(n)||rz(n);return o?t(n,i):(o||$t(!1),r)}},Tre=["value","background"],ET;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 kre(e,t){if(e==null)return{};var r=Mre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mre(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 Qd(){return Qd=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},Qd.apply(this,arguments)}function g_(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 et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g_(Object(r),!0).forEach(function(n){wi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ire(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b_(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,jT(n.key),n)}}function Rre(e,t,r){return t&&b_(e.prototype,t),r&&b_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nre(e,t,r){return t=Xd(t),Dre(e,$T()?Reflect.construct(t,r||[],Xd(e).constructor):t.apply(e,r))}function Dre(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 Lre(e)}function Lre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($T=function(){return!!e})()}function Xd(e){return Xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xd(e)}function Fre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wg(e,t)}function wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wg(e,t)}function wi(e,t,r){return t=jT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jT(e){var t=Bre(e,"string");return ws(t)=="symbol"?t:t+""}function Bre(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 String(e)}var bc=function(e){function t(){var r;Ire(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=Nre(this,t,[].concat(i)),wi(r,"state",{isAnimationFinished:!1}),wi(r,"id",Us("recharts-bar-")),wi(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),a&&a()}),wi(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),a&&a()}),r}return Fre(t,e),Rre(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,o=this.props,a=o.shape,s=o.dataKey,u=o.activeIndex,l=o.activeBar,f=oe(this.props,!1);return n&&n.map(function(c,d){var h=d===u,p=h?l:a,v=et(et(et({},f),c),{},{isActive:h,option:p,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return C.createElement(xe,Qd({className:"recharts-bar-rectangle"},Mo(i.props,c,d),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(d)}),C.createElement(m_,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,o=i.data,a=i.layout,s=i.isAnimationActive,u=i.animationBegin,l=i.animationDuration,f=i.animationEasing,c=i.animationId,d=this.state.prevData;return C.createElement(gn,{begin:u,duration:l,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,v=o.map(function(g,m){var y=d&&d[m];if(y){var b=Jt(y.x,g.x),O=Jt(y.y,g.y),x=Jt(y.width,g.width),w=Jt(y.height,g.height);return et(et({},g),{},{x:b(p),y:O(p),width:x(p),height:w(p)})}if(a==="horizontal"){var S=Jt(0,g.height),_=S(p);return et(et({},g),{},{y:g.y+g.height-_,height:_})}var P=Jt(0,g.width),A=P(p);return et(et({},g),{},{width:A})});return C.createElement(xe,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,o=n.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!mc(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,o=i.data,a=i.dataKey,s=i.activeIndex,u=oe(this.props.background,!1);return o.map(function(l,f){l.value;var c=l.background,d=kre(l,Tre);if(!c)return null;var h=et(et(et(et(et({},d),{},{fill:"#eee"},c),u),Mo(n.props,l,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:a,index:f,className:"recharts-bar-background-rectangle"});return C.createElement(m_,Qd({key:"background-bar-".concat(f),option:n.props.background,isActive:f===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,s=o.xAxis,u=o.yAxis,l=o.layout,f=o.children,c=or(f,gc);if(!c)return null;var d=l==="vertical"?a[0].height/2:a[0].width/2,h=function(g,m){var y=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:y,errorVal:at(g,m)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return C.createElement(xe,p,c.map(function(v){return C.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:a,xAxis:s,yAxis:u,layout:l,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,o=n.data,a=n.className,s=n.xAxis,u=n.yAxis,l=n.left,f=n.top,c=n.width,d=n.height,h=n.isAnimationActive,p=n.background,v=n.id;if(i||!o||!o.length)return null;var g=this.state.isAnimationFinished,m=fe("recharts-bar",a),y=s&&s.allowDataOverflow,b=u&&u.allowDataOverflow,O=y||b,x=le(v)?this.id:v;return C.createElement(xe,{className:m},y||b?C.createElement("defs",null,C.createElement("clipPath",{id:"clipPath-".concat(x)},C.createElement("rect",{x:y?l:l-c/2,y:b?f:f-d/2,width:y?c:c*2,height:b?d:d*2}))):null,C.createElement(xe,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(x,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,x),(!h||g)&&Ln.renderCallByParent(this.props,o))}}],[{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}}])}(k.PureComponent);ET=bc;wi(bc,"displayName","Bar");wi(bc,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Wo.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});wi(bc,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,u=e.yAxisTicks,l=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,h=xX(n,r);if(!h)return null;var p=t.layout,v=r.type.defaultProps,g=v!==void 0?et(et({},v),r.props):r.props,m=g.dataKey,y=g.children,b=g.minPointSize,O=p==="horizontal"?a:o,x=l?O.scale.domain():null,w=EX({numericAxis:O}),S=or(y,Jh),_=c.map(function(P,A){var E,$,T,I,D,N;l?E=wX(l[f+A],x):(E=at(P,m),Array.isArray(E)||(E=[w,E]));var F=Cre(b,ET.defaultProps.minPointSize)(E[1],A);if(p==="horizontal"){var M,L=[a.scale(E[0]),a.scale(E[1])],z=L[0],W=L[1];$=uO({axis:o,ticks:s,bandSize:i,offset:h.offset,entry:P,index:A}),T=(M=W??z)!==null&&M!==void 0?M:void 0,I=h.size;var q=z-W;if(D=Number.isNaN(q)?0:q,N={x:$,y:a.y,width:I,height:a.height},Math.abs(F)>0&&Math.abs(D)<Math.abs(F)){var V=Mt(D||F)*(Math.abs(F)-Math.abs(D));T-=V,D+=V}}else{var Q=[o.scale(E[0]),o.scale(E[1])],re=Q[0],ne=Q[1];if($=re,T=uO({axis:a,ticks:u,bandSize:i,offset:h.offset,entry:P,index:A}),I=ne-re,D=h.size,N={x:o.x,y:T,width:o.width,height:D},Math.abs(F)>0&&Math.abs(I)<Math.abs(F)){var ce=Mt(I||F)*(Math.abs(F)-Math.abs(I));I+=ce}}return et(et(et({},P),{},{x:$,y:T,width:I,height:D,value:l?E:E[1],payload:P,background:N},S&&S[A]&&S[A].props),{},{tooltipPayload:[YC(r,P)],tooltipPosition:{x:$+I/2,y:T+D/2}})});return et({data:_,layout:p},d)});function zl(e){"@babel/helpers - typeof";return zl=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},zl(e)}function zre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x_(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,CT(n.key),n)}}function Ure(e,t,r){return t&&x_(e.prototype,t),r&&x_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w_(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 Lr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(r),!0).forEach(function(n){gp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gp(e,t,r){return t=CT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CT(e){var t=Wre(e,"string");return zl(t)=="symbol"?t:t+""}function Wre(e,t){if(zl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qre=function(t,r,n,i,o){var a=t.width,s=t.height,u=t.layout,l=t.children,f=Object.keys(r),c={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!Zt(l,bc);return f.reduce(function(h,p){var v=r[p],g=v.orientation,m=v.domain,y=v.padding,b=y===void 0?{}:y,O=v.mirror,x=v.reversed,w="".concat(g).concat(O?"Mirror":""),S,_,P,A,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var $=m[1]-m[0],T=1/0,I=v.categoricalDomain.sort(oz);if(I.forEach(function(Q,re){re>0&&(T=Math.min((Q||0)-(I[re-1]||0),T))}),Number.isFinite(T)){var D=T/$,N=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(S=D*N/2),v.padding==="no-gap"){var F=It(t.barCategoryGap,D*N),M=D*N/2;S=M-F-(M-F)/N*F}}}i==="xAxis"?_=[n.left+(b.left||0)+(S||0),n.left+n.width-(b.right||0)-(S||0)]:i==="yAxis"?_=u==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(S||0),n.top+n.height-(b.bottom||0)-(S||0)]:_=v.range,x&&(_=[_[1],_[0]]);var L=VC(v,o,d),z=L.scale,W=L.realScaleType;z.domain(m).range(_),GC(z);var q=QC(z,Lr(Lr({},v),{},{realScaleType:W}));i==="xAxis"?(E=g==="top"&&!O||g==="bottom"&&O,P=n.left,A=c[w]-E*v.height):i==="yAxis"&&(E=g==="left"&&!O||g==="right"&&O,P=c[w]-E*v.width,A=n.top);var V=Lr(Lr(Lr({},v),q),{},{realScaleType:W,x:P,y:A,scale:z,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return V.bandSize=Md(V,q),!v.hide&&i==="xAxis"?c[w]+=(E?-1:1)*V.height:v.hide||(c[w]+=(E?-1:1)*V.width),Lr(Lr({},h),{},gp({},p,V))},{})},TT=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return{x:Math.min(n,o),y:Math.min(i,a),width:Math.abs(o-n),height:Math.abs(a-i)}},Hre=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return TT({x:r,y:n},{x:i,y:o})},kT=function(){function e(t){zre(this,e),this.scale=t}return Ure(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,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],o=n[n.length-1];return i<=o?r>=i&&r<=o:r>=o&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();gp(kT,"EPS",1e-4);var Qb=function(t){var r=Object.keys(t).reduce(function(n,i){return Lr(Lr({},n),{},gp({},i,kT.create(t[i])))},{});return Lr(Lr({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return cre(i,function(u,l){return r[l].apply(u,{bandAware:a,position:s})})},isInRange:function(i){return AT(i,function(o,a){return r[a].isInRange(o)})}})};function Kre(e){return(e%180+180)%180}var Vre=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Kre(i),a=o*Math.PI/180,s=Math.atan(n/r),u=a>s&&a<Math.PI-s?n/Math.sin(a):r/Math.cos(a);return Math.abs(u)},Gre=wn,Qre=dc,Xre=Xh;function Yre(e){return function(t,r,n){var i=Object(t);if(!Qre(t)){var o=Gre(r);t=Xre(t),r=function(s){return o(i[s],s,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:void 0}}var Zre=Yre,Jre=ST;function ene(e){var t=Jre(e),r=t%1;return t===t?r?t-r:t:0}var tne=ene,rne=Ej,nne=wn,ine=tne,one=Math.max;function ane(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:ine(r);return i<0&&(i=one(n+i,0)),rne(e,nne(t),i)}var sne=ane,une=Zre,lne=sne,cne=une(lne),fne=cne;const dne=Pe(fne);var hne=uB(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("")}),Xb=k.createContext(void 0),Yb=k.createContext(void 0),MT=k.createContext(void 0),IT=k.createContext({}),RT=k.createContext(void 0),NT=k.createContext(0),DT=k.createContext(0),S_=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,o=r.offset,a=t.clipPathId,s=t.children,u=t.width,l=t.height,f=hne(o);return C.createElement(Xb.Provider,{value:n},C.createElement(Yb.Provider,{value:i},C.createElement(IT.Provider,{value:o},C.createElement(MT.Provider,{value:f},C.createElement(RT.Provider,{value:a},C.createElement(NT.Provider,{value:l},C.createElement(DT.Provider,{value:u},s)))))))},pne=function(){return k.useContext(RT)},LT=function(t){var r=k.useContext(Xb);r==null&&$t(!1);var n=r[t];return n==null&&$t(!1),n},vne=function(){var t=k.useContext(Xb);return si(t)},yne=function(){var t=k.useContext(Yb),r=dne(t,function(n){return AT(n.domain,Number.isFinite)});return r||si(t)},FT=function(t){var r=k.useContext(Yb);r==null&&$t(!1);var n=r[t];return n==null&&$t(!1),n},mne=function(){var t=k.useContext(MT);return t},gne=function(){return k.useContext(IT)},Zb=function(){return k.useContext(DT)},Jb=function(){return k.useContext(NT)};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)}function bne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xne(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,zT(n.key),n)}}function wne(e,t,r){return t&&xne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sne(e,t,r){return t=Yd(t),One(e,BT()?Reflect.construct(t,r||[],Yd(e).constructor):t.apply(e,r))}function One(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 _ne(e)}function _ne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BT=function(){return!!e})()}function Yd(e){return Yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yd(e)}function Pne(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 O_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function __(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O_(Object(r),!0).forEach(function(n){ex(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ex(e,t,r){return t=zT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zT(e){var t=Ane(e,"string");return Ss(t)=="symbol"?t:t+""}function Ane(e,t){if(Ss(e)!="object"||!e)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 String(e)}function Ene(e,t){return Tne(e)||Cne(e,t)||jne(e,t)||$ne()}function $ne(){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 jne(e,t){if(e){if(typeof e=="string")return P_(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 P_(e,t)}}function P_(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 Cne(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function Tne(e){if(Array.isArray(e))return e}function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Og.apply(this,arguments)}var kne=function(t,r){var n;return C.isValidElement(t)?n=C.cloneElement(t,r):ue(t)?n=t(r):n=C.createElement("line",Og({},r,{className:"recharts-reference-line-line"})),n},Mne=function(t,r,n,i,o,a,s,u,l){var f=o.x,c=o.y,d=o.width,h=o.height;if(n){var p=l.y,v=t.y.apply(p,{position:a});if(yn(l,"discard")&&!t.y.isInRange(v))return null;var g=[{x:f+d,y:v},{x:f,y:v}];return u==="left"?g.reverse():g}if(r){var m=l.x,y=t.x.apply(m,{position:a});if(yn(l,"discard")&&!t.x.isInRange(y))return null;var b=[{x:y,y:c+h},{x:y,y:c}];return s==="top"?b.reverse():b}if(i){var O=l.segment,x=O.map(function(w){return t.apply(w,{position:a})});return yn(l,"discard")&&rre(x,function(w){return!t.isInRange(w)})?null:x}return null};function Ine(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,u=e.alwaysShow,l=pne(),f=LT(i),c=FT(o),d=mne();if(!l||!d)return null;Hr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Qb({x:f.scale,y:c.scale}),p=ut(t),v=ut(r),g=n&&n.length===2,m=Mne(h,p,v,g,d,e.position,f.orientation,c.orientation,e);if(!m)return null;var y=Ene(m,2),b=y[0],O=b.x,x=b.y,w=y[1],S=w.x,_=w.y,P=yn(e,"hidden")?"url(#".concat(l,")"):void 0,A=__(__({clipPath:P},oe(e,!0)),{},{x1:O,y1:x,x2:S,y2:_});return C.createElement(xe,{className:fe("recharts-reference-line",s)},kne(a,A),dt.renderCallByParent(e,Hre({x1:O,y1:x,x2:S,y2:_})))}var tx=function(e){function t(){return bne(this,t),Sne(this,t,arguments)}return Pne(t,e),wne(t,[{key:"render",value:function(){return C.createElement(Ine,this.props)}}])}(C.Component);ex(tx,"displayName","ReferenceLine");ex(tx,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function _g(){return _g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_g.apply(this,arguments)}function 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 A_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function E_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A_(Object(r),!0).forEach(function(n){bp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nne(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,WT(n.key),n)}}function Dne(e,t,r){return t&&Nne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lne(e,t,r){return t=Zd(t),Fne(e,UT()?Reflect.construct(t,r||[],Zd(e).constructor):t.apply(e,r))}function Fne(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 Bne(e)}function Bne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UT=function(){return!!e})()}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zd(e)}function zne(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&&Pg(e,t)}function Pg(e,t){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pg(e,t)}function bp(e,t,r){return t=WT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WT(e){var t=Une(e,"string");return Os(t)=="symbol"?t:t+""}function Une(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 Wne=function(t){var r=t.x,n=t.y,i=t.xAxis,o=t.yAxis,a=Qb({x:i.scale,y:o.scale}),s=a.apply({x:r,y:n},{bandAware:!0});return yn(t,"discard")&&!a.isInRange(s)?null:s},xp=function(e){function t(){return Rne(this,t),Lne(this,t,arguments)}return zne(t,e),Dne(t,[{key:"render",value:function(){var n=this.props,i=n.x,o=n.y,a=n.r,s=n.alwaysShow,u=n.clipPathId,l=ut(i),f=ut(o);if(Hr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!f)return null;var c=Wne(this.props);if(!c)return null;var d=c.x,h=c.y,p=this.props,v=p.shape,g=p.className,m=yn(this.props,"hidden")?"url(#".concat(u,")"):void 0,y=E_(E_({clipPath:m},oe(this.props,!0)),{},{cx:d,cy:h});return C.createElement(xe,{className:fe("recharts-reference-dot",g)},t.renderDot(v,y),dt.renderCallByParent(this.props,{x:d-a,y:h-a,width:2*a,height:2*a}))}}])}(C.Component);bp(xp,"displayName","ReferenceDot");bp(xp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});bp(xp,"renderDot",function(e,t){var r;return C.isValidElement(e)?r=C.cloneElement(e,t):ue(e)?r=e(t):r=C.createElement(fp,_g({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Ag(){return Ag=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},Ag.apply(this,arguments)}function _s(e){"@babel/helpers - typeof";return _s=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},_s(e)}function $_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$_(Object(r),!0).forEach(function(n){wp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hne(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,HT(n.key),n)}}function Kne(e,t,r){return t&&Hne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vne(e,t,r){return t=Jd(t),Gne(e,qT()?Reflect.construct(t,r||[],Jd(e).constructor):t.apply(e,r))}function Gne(e,t){if(t&&(_s(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qne(e)}function Qne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qT=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jd(e)}function Xne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eg(e,t)}function Eg(e,t){return Eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Eg(e,t)}function wp(e,t,r){return t=HT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HT(e){var t=Yne(e,"string");return _s(t)=="symbol"?t:t+""}function Yne(e,t){if(_s(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_s(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zne=function(t,r,n,i,o){var a=o.x1,s=o.x2,u=o.y1,l=o.y2,f=o.xAxis,c=o.yAxis;if(!f||!c)return null;var d=Qb({x:f.scale,y:c.scale}),h={x:t?d.x.apply(a,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(u,{position:"start"}):d.y.rangeMin},p={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(l,{position:"end"}):d.y.rangeMax};return yn(o,"discard")&&(!d.isInRange(h)||!d.isInRange(p))?null:TT(h,p)},Sp=function(e){function t(){return qne(this,t),Vne(this,t,arguments)}return Xne(t,e),Kne(t,[{key:"render",value:function(){var n=this.props,i=n.x1,o=n.x2,a=n.y1,s=n.y2,u=n.className,l=n.alwaysShow,f=n.clipPathId;Hr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=ut(i),d=ut(o),h=ut(a),p=ut(s),v=this.props.shape;if(!c&&!d&&!h&&!p&&!v)return null;var g=Zne(c,d,h,p,this.props);if(!g&&!v)return null;var m=yn(this.props,"hidden")?"url(#".concat(f,")"):void 0;return C.createElement(xe,{className:fe("recharts-reference-area",u)},t.renderRect(v,j_(j_({clipPath:m},oe(this.props,!0)),g)),dt.renderCallByParent(this.props,g))}}])}(C.Component);wp(Sp,"displayName","ReferenceArea");wp(Sp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});wp(Sp,"renderRect",function(e,t){var r;return C.isValidElement(e)?r=C.cloneElement(e,t):ue(e)?r=e(t):r=C.createElement(Gb,Ag({},t,{className:"recharts-reference-area-rect"})),r});function KT(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 Jne(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Vre(n,r)}function eie(e,t,r){var n=r==="width",i=e.x,o=e.y,a=e.width,s=e.height;return t===1?{start:n?i:o,end:n?i+a:o+s}:{start:n?i+a:o+s,end:n?i:o}}function eh(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function tie(e,t){return KT(e,t+1)}function rie(e,t,r,n,i){for(var o=(n||[]).slice(),a=t.start,s=t.end,u=0,l=1,f=a,c=function(){var p=n==null?void 0:n[u];if(p===void 0)return{v:KT(n,l)};var v=u,g,m=function(){return g===void 0&&(g=r(p,v)),g},y=p.coordinate,b=u===0||eh(e,y,m,f,s);b||(u=0,f=a,l+=1),b&&(f=y+e*(m()/2+i),u+=l)},d;l<=o.length;)if(d=c(),d)return d.v;return[]}function Ul(e){"@babel/helpers - typeof";return Ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ul(e)}function C_(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 Ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C_(Object(r),!0).forEach(function(n){nie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nie(e,t,r){return t=iie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iie(e){var t=oie(e,"string");return Ul(t)=="symbol"?t:t+""}function oie(e,t){if(Ul(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ul(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aie(e,t,r,n,i){for(var o=(n||[]).slice(),a=o.length,s=t.start,u=t.end,l=function(d){var h=o[d],p,v=function(){return p===void 0&&(p=r(h,d)),p};if(d===a-1){var g=e*(h.coordinate+e*v()/2-u);o[d]=h=Ot(Ot({},h),{},{tickCoord:g>0?h.coordinate-g*e:h.coordinate})}else o[d]=h=Ot(Ot({},h),{},{tickCoord:h.coordinate});var m=eh(e,h.tickCoord,v,s,u);m&&(u=h.tickCoord-e*(v()/2+i),o[d]=Ot(Ot({},h),{},{isShow:!0}))},f=a-1;f>=0;f--)l(f);return o}function sie(e,t,r,n,i,o){var a=(n||[]).slice(),s=a.length,u=t.start,l=t.end;if(o){var f=n[s-1],c=r(f,s-1),d=e*(f.coordinate+e*c/2-l);a[s-1]=f=Ot(Ot({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=eh(e,f.tickCoord,function(){return c},u,l);h&&(l=f.tickCoord-e*(c/2+i),a[s-1]=Ot(Ot({},f),{},{isShow:!0}))}for(var p=o?s-1:s,v=function(y){var b=a[y],O,x=function(){return O===void 0&&(O=r(b,y)),O};if(y===0){var w=e*(b.coordinate-e*x()/2-u);a[y]=b=Ot(Ot({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else a[y]=b=Ot(Ot({},b),{},{tickCoord:b.coordinate});var S=eh(e,b.tickCoord,x,u,l);S&&(u=b.tickCoord+e*(x()/2+i),a[y]=Ot(Ot({},b),{},{isShow:!0}))},g=0;g<p;g++)v(g);return a}function rx(e,t,r){var n=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,u=e.interval,l=e.tickFormatter,f=e.unit,c=e.angle;if(!i||!i.length||!n)return[];if(K(u)||Wo.isSsr)return tie(i,typeof u=="number"&&K(u)?u:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",p=f&&h==="width"?Lu(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(b,O){var x=ue(l)?l(b.value,O):b.value;return h==="width"?Jne(Lu(x,{fontSize:t,letterSpacing:r}),p,c):Lu(x,{fontSize:t,letterSpacing:r})[h]},g=i.length>=2?Mt(i[1].coordinate-i[0].coordinate):1,m=eie(o,g,h);return u==="equidistantPreserveStart"?rie(g,m,v,i,a):(u==="preserveStart"||u==="preserveStartEnd"?d=sie(g,m,v,i,a,u==="preserveStartEnd"):d=aie(g,m,v,i,a),d.filter(function(y){return y.isShow}))}var uie=["viewBox"],lie=["viewBox"],cie=["ticks"];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 ga(){return ga=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},ga.apply(this,arguments)}function T_(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 nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T_(Object(r),!0).forEach(function(n){nx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lv(e,t){if(e==null)return{};var r=fie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fie(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 die(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k_(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,GT(n.key),n)}}function hie(e,t,r){return t&&k_(e.prototype,t),r&&k_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pie(e,t,r){return t=th(t),vie(e,VT()?Reflect.construct(t,r||[],th(e).constructor):t.apply(e,r))}function vie(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 yie(e)}function yie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VT=function(){return!!e})()}function th(e){return th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},th(e)}function mie(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&&$g(e,t)}function $g(e,t){return $g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$g(e,t)}function nx(e,t,r){return t=GT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GT(e){var t=gie(e,"string");return Ps(t)=="symbol"?t:t+""}function gie(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)}var Qs=function(e){function t(r){var n;return die(this,t),n=pie(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return mie(t,e),hie(t,[{key:"shouldComponentUpdate",value:function(n,i){var o=n.viewBox,a=Lv(n,uie),s=this.props,u=s.viewBox,l=Lv(s,lie);return!Ca(o,u)||!Ca(a,l)||!Ca(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,o=i.x,a=i.y,s=i.width,u=i.height,l=i.orientation,f=i.tickSize,c=i.mirror,d=i.tickMargin,h,p,v,g,m,y,b=c?-1:1,O=n.tickSize||f,x=K(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":h=p=n.coordinate,g=a+ +!c*u,v=g-b*O,y=v-b*d,m=x;break;case"left":v=g=n.coordinate,p=o+ +!c*s,h=p-b*O,m=h-b*d,y=x;break;case"right":v=g=n.coordinate,p=o+ +c*s,h=p+b*O,m=h+b*d,y=x;break;default:h=p=n.coordinate,g=a+ +c*u,v=g+b*O,y=v+b*d,m=x;break}return{line:{x1:h,y1:v,x2:p,y2:g},tick:{x:m,y}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,o=n.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,o=n.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,u=n.orientation,l=n.mirror,f=n.axisLine,c=nt(nt(nt({},oe(this.props,!1)),oe(f,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var d=+(u==="top"&&!l||u==="bottom"&&l);c=nt(nt({},c),{},{x1:i,y1:o+d*s,x2:i+a,y2:o+d*s})}else{var h=+(u==="left"&&!l||u==="right"&&l);c=nt(nt({},c),{},{x1:i+h*a,y1:o,x2:i+h*a,y2:o+s})}return C.createElement("line",ga({},c,{className:fe("recharts-cartesian-axis-line",ir(f,"className"))}))}},{key:"renderTicks",value:function(n,i,o){var a=this,s=this.props,u=s.tickLine,l=s.stroke,f=s.tick,c=s.tickFormatter,d=s.unit,h=rx(nt(nt({},this.props),{},{ticks:n}),i,o),p=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),g=oe(this.props,!1),m=oe(f,!1),y=nt(nt({},g),{},{fill:"none"},oe(u,!1)),b=h.map(function(O,x){var w=a.getTickLineCoord(O),S=w.line,_=w.tick,P=nt(nt(nt(nt({textAnchor:p,verticalAnchor:v},g),{},{stroke:"none",fill:l},m),_),{},{index:x,payload:O,visibleTicksCount:h.length,tickFormatter:c});return C.createElement(xe,ga({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Mo(a.props,O,x)),u&&C.createElement("line",ga({},y,S,{className:fe("recharts-cartesian-axis-tick-line",ir(u,"className"))})),f&&t.renderTickItem(f,P,"".concat(ue(c)?c(O.value,x):O.value).concat(d||"")))});return C.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,o=i.axisLine,a=i.width,s=i.height,u=i.ticksGenerator,l=i.className,f=i.hide;if(f)return null;var c=this.props,d=c.ticks,h=Lv(c,cie),p=d;return ue(u)&&(p=d&&d.length>0?u(this.props):u(h)),a<=0||s<=0||!p||!p.length?null:C.createElement(xe,{className:fe("recharts-cartesian-axis",l),ref:function(g){n.layerReference=g}},o&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),dt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,o){var a,s=fe(i.className,"recharts-cartesian-axis-tick-value");return C.isValidElement(n)?a=C.cloneElement(n,nt(nt({},i),{},{className:s})):ue(n)?a=n(nt(nt({},i),{},{className:s})):a=C.createElement(Io,ga({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}(k.Component);nx(Qs,"displayName","CartesianAxis");nx(Qs,"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 bie=["x1","y1","x2","y2","key"],xie=["offset"];function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function M_(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?M_(Object(r),!0).forEach(function(n){wie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wie(e,t,r){return t=Sie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sie(e){var t=Oie(e,"string");return No(t)=="symbol"?t:t+""}function Oie(e,t){if(No(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(No(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uo(){return uo=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},uo.apply(this,arguments)}function I_(e,t){if(e==null)return{};var r=_ie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _ie(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 Pie=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,u=t.ry;return C.createElement("rect",{x:i,y:o,ry:u,width:a,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function QT(e,t){var r;if(C.isValidElement(e))r=C.cloneElement(e,t);else if(ue(e))r=e(t);else{var n=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,u=I_(t,bie),l=oe(u,!1);l.offset;var f=I_(l,xie);r=C.createElement("line",uo({},f,{x1:n,y1:i,x2:o,y2:a,fill:"none",key:s}))}return r}function Aie(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,u){var l=At(At({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(u),index:u});return QT(i,l)});return C.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Eie(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,u){var l=At(At({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(u),index:u});return QT(i,l)});return C.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function $ie(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,u=e.horizontal,l=u===void 0?!0:u;if(!l||!t||!t.length)return null;var f=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==f[0]&&f.unshift(0);var c=f.map(function(d,h){var p=!f[h+1],v=p?i+a-d:f[h+1]-d;if(v<=0)return null;var g=h%t.length;return C.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:v,width:o,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return C.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function jie(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,u=e.height,l=e.verticalPoints;if(!r||!n||!n.length)return null;var f=l.map(function(d){return Math.round(d+o-o)}).sort(function(d,h){return d-h});o!==f[0]&&f.unshift(0);var c=f.map(function(d,h){var p=!f[h+1],v=p?o+s-d:f[h+1]-d;if(v<=0)return null;var g=h%n.length;return C.createElement("rect",{key:"react-".concat(h),x:d,y:a,width:v,height:u,stroke:"none",fill:n[g],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return C.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var Cie=function(t,r){var n=t.xAxis,i=t.width,o=t.height,a=t.offset;return KC(rx(At(At(At({},Qs.defaultProps),n),{},{ticks:In(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,r)},Tie=function(t,r){var n=t.yAxis,i=t.width,o=t.height,a=t.offset;return KC(rx(At(At(At({},Qs.defaultProps),n),{},{ticks:In(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,r)},Zo={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function XT(e){var t,r,n,i,o,a,s=Zb(),u=Jb(),l=gne(),f=At(At({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Zo.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Zo.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Zo.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Zo.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Zo.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Zo.verticalFill,x:K(e.x)?e.x:l.left,y:K(e.y)?e.y:l.top,width:K(e.width)?e.width:l.width,height:K(e.height)?e.height:l.height}),c=f.x,d=f.y,h=f.width,p=f.height,v=f.syncWithTicks,g=f.horizontalValues,m=f.verticalValues,y=vne(),b=yne();if(!K(h)||h<=0||!K(p)||p<=0||!K(c)||c!==+c||!K(d)||d!==+d)return null;var O=f.verticalCoordinatesGenerator||Cie,x=f.horizontalCoordinatesGenerator||Tie,w=f.horizontalPoints,S=f.verticalPoints;if((!w||!w.length)&&ue(x)){var _=g&&g.length,P=x({yAxis:b?At(At({},b),{},{ticks:_?g:b.ticks}):void 0,width:s,height:u,offset:l},_?!0:v);Hr(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(No(P),"]")),Array.isArray(P)&&(w=P)}if((!S||!S.length)&&ue(O)){var A=m&&m.length,E=O({xAxis:y?At(At({},y),{},{ticks:A?m:y.ticks}):void 0,width:s,height:u,offset:l},A?!0:v);Hr(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(No(E),"]")),Array.isArray(E)&&(S=E)}return C.createElement("g",{className:"recharts-cartesian-grid"},C.createElement(Pie,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),C.createElement(Aie,uo({},f,{offset:l,horizontalPoints:w,xAxis:y,yAxis:b})),C.createElement(Eie,uo({},f,{offset:l,verticalPoints:S,xAxis:y,yAxis:b})),C.createElement($ie,uo({},f,{horizontalPoints:w})),C.createElement(jie,uo({},f,{verticalPoints:S})))}XT.displayName="CartesianGrid";var kie=["type","layout","connectNulls","ref"],Mie=["key"];function As(e){"@babel/helpers - typeof";return As=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},As(e)}function R_(e,t){if(e==null)return{};var r=Iie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Iie(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 qu(){return qu=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},qu.apply(this,arguments)}function N_(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 Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N_(Object(r),!0).forEach(function(n){Fr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jo(e){return Lie(e)||Die(e)||Nie(e)||Rie()}function Rie(){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 Nie(e,t){if(e){if(typeof e=="string")return jg(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 jg(e,t)}}function Die(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lie(e){if(Array.isArray(e))return jg(e)}function jg(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 Fie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D_(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,ZT(n.key),n)}}function Bie(e,t,r){return t&&D_(e.prototype,t),r&&D_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zie(e,t,r){return t=rh(t),Uie(e,YT()?Reflect.construct(t,r||[],rh(e).constructor):t.apply(e,r))}function Uie(e,t){if(t&&(As(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wie(e)}function Wie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YT=function(){return!!e})()}function rh(e){return rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rh(e)}function qie(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 Fr(e,t,r){return t=ZT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZT(e){var t=Hie(e,"string");return As(t)=="symbol"?t:t+""}function Hie(e,t){if(As(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(As(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xc=function(e){function t(){var r;Fie(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=zie(this,t,[].concat(i)),Fr(r,"state",{isAnimationFinished:!0,totalLength:0}),Fr(r,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),Fr(r,"getStrokeDasharray",function(a,s,u){var l=u.reduce(function(m,y){return m+y});if(!l)return r.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/l),c=a%l,d=s-a,h=[],p=0,v=0;p<u.length;v+=u[p],++p)if(v+u[p]>c){h=[].concat(Jo(u.slice(0,p)),[c-v]);break}var g=h.length%2===0?[0,d]:[d];return[].concat(Jo(t.repeat(u,f)),Jo(h),g).map(function(m){return"".concat(m,"px")}).join(", ")}),Fr(r,"id",Us("recharts-line-")),Fr(r,"pathRef",function(a){r.mainCurve=a}),Fr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Fr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return qie(t,e),Bie(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,u=o.yAxis,l=o.layout,f=o.children,c=or(f,gc);if(!c)return null;var d=function(v,g){return{x:v.x,y:v.y,value:v.value,errorVal:at(v.payload,g)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return C.createElement(xe,h,c.map(function(p){return C.cloneElement(p,{key:"bar-".concat(p.props.dataKey),data:a,xAxis:s,yAxis:u,layout:l,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,u=s.dot,l=s.points,f=s.dataKey,c=oe(this.props,!1),d=oe(u,!0),h=l.map(function(v,g){var m=Qt(Qt(Qt({key:"dot-".concat(g),r:3},c),d),{},{index:g,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:l});return t.renderDotItem(u,m)}),p={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return C.createElement(xe,qu({className:"recharts-line-dots",key:"dots"},p),h)}},{key:"renderCurveStatically",value:function(n,i,o,a){var s=this.props,u=s.type,l=s.layout,f=s.connectNulls;s.ref;var c=R_(s,kie),d=Qt(Qt(Qt({},oe(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:n},a),{},{type:u,layout:l,connectNulls:f});return C.createElement(Nd,qu({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var o=this,a=this.props,s=a.points,u=a.strokeDasharray,l=a.isAnimationActive,f=a.animationBegin,c=a.animationDuration,d=a.animationEasing,h=a.animationId,p=a.animateNewValues,v=a.width,g=a.height,m=this.state,y=m.prevPoints,b=m.totalLength;return C.createElement(gn,{begin:f,duration:c,isActive:l,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var x=O.t;if(y){var w=y.length/s.length,S=s.map(function($,T){var I=Math.floor(T*w);if(y[I]){var D=y[I],N=Jt(D.x,$.x),F=Jt(D.y,$.y);return Qt(Qt({},$),{},{x:N(x),y:F(x)})}if(p){var M=Jt(v*2,$.x),L=Jt(g/2,$.y);return Qt(Qt({},$),{},{x:M(x),y:L(x)})}return Qt(Qt({},$),{},{x:$.x,y:$.y})});return o.renderCurveStatically(S,n,i)}var _=Jt(0,b),P=_(x),A;if(u){var E="".concat(u).split(/[,\s]+/gim).map(function($){return parseFloat($)});A=o.getStrokeDasharray(P,b,E)}else A=o.generateSimpleStrokeDasharray(b,P);return o.renderCurveStatically(s,n,i,{strokeDasharray:A})})}},{key:"renderCurve",value:function(n,i){var o=this.props,a=o.points,s=o.isAnimationActive,u=this.state,l=u.prevPoints,f=u.totalLength;return s&&a&&a.length&&(!l&&f>0||!mc(l,a))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(a,n,i)}},{key:"render",value:function(){var n,i=this.props,o=i.hide,a=i.dot,s=i.points,u=i.className,l=i.xAxis,f=i.yAxis,c=i.top,d=i.left,h=i.width,p=i.height,v=i.isAnimationActive,g=i.id;if(o||!s||!s.length)return null;var m=this.state.isAnimationFinished,y=s.length===1,b=fe("recharts-line",u),O=l&&l.allowDataOverflow,x=f&&f.allowDataOverflow,w=O||x,S=le(g)?this.id:g,_=(n=oe(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=_.r,A=P===void 0?3:P,E=_.strokeWidth,$=E===void 0?2:E,T=pz(a)?a:{},I=T.clipDot,D=I===void 0?!0:I,N=A*2+$;return C.createElement(xe,{className:b},O||x?C.createElement("defs",null,C.createElement("clipPath",{id:"clipPath-".concat(S)},C.createElement("rect",{x:O?d:d-h/2,y:x?c:c-p/2,width:O?h:h*2,height:x?p:p*2})),!D&&C.createElement("clipPath",{id:"clipPath-dots-".concat(S)},C.createElement("rect",{x:d-N/2,y:c-N/2,width:h+N,height:p+N}))):null,!y&&this.renderCurve(w,S),this.renderErrorBar(w,S),(y||a)&&this.renderDots(w,D,S),(!v||m)&&Ln.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var o=n.length%2!==0?[].concat(Jo(n),[0]):n,a=[],s=0;s<i;++s)a=[].concat(Jo(a),Jo(o));return a}},{key:"renderDotItem",value:function(n,i){var o;if(C.isValidElement(n))o=C.cloneElement(n,i);else if(ue(n))o=n(i);else{var a=i.key,s=R_(i,Mie),u=fe("recharts-line-dot",typeof n!="boolean"?n.className:"");o=C.createElement(fp,qu({key:a},s,{className:u}))}return o}}])}(k.PureComponent);Fr(xc,"displayName","Line");Fr(xc,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Wo.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Fr(xc,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,u=e.displayedData,l=e.offset,f=t.layout,c=u.map(function(d,h){var p=at(d,a);return f==="horizontal"?{x:sO({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:le(p)?null:n.scale(p),value:p,payload:d}:{x:le(p)?null:r.scale(p),y:sO({axis:n,ticks:o,bandSize:s,entry:d,index:h}),value:p,payload:d}});return Qt({points:c,layout:f},l)});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 Kie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tk(n.key),n)}}function Gie(e,t,r){return t&&Vie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qie(e,t,r){return t=nh(t),Xie(e,JT()?Reflect.construct(t,r||[],nh(e).constructor):t.apply(e,r))}function Xie(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 Yie(e)}function Yie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JT=function(){return!!e})()}function nh(e){return nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nh(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&&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 ek(e,t,r){return t=tk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tk(e){var t=Jie(e,"string");return Es(t)=="symbol"?t:t+""}function Jie(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)}function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kg.apply(this,arguments)}function eoe(e){var t=e.xAxisId,r=Zb(),n=Jb(),i=LT(t);return i==null?null:k.createElement(Qs,kg({},i,{className:fe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(a){return In(a,!0)}}))}var Op=function(e){function t(){return Kie(this,t),Qie(this,t,arguments)}return Zie(t,e),Gie(t,[{key:"render",value:function(){return k.createElement(eoe,this.props)}}])}(k.Component);ek(Op,"displayName","XAxis");ek(Op,"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 $s(e){"@babel/helpers - typeof";return $s=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},$s(e)}function toe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function roe(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 noe(e,t,r){return t&&roe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ioe(e,t,r){return t=ih(t),ooe(e,rk()?Reflect.construct(t,r||[],ih(e).constructor):t.apply(e,r))}function ooe(e,t){if(t&&($s(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aoe(e)}function aoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rk=function(){return!!e})()}function ih(e){return ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ih(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&&Mg(e,t)}function Mg(e,t){return Mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mg(e,t)}function nk(e,t,r){return t=ik(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ik(e){var t=uoe(e,"string");return $s(t)=="symbol"?t:t+""}function uoe(e,t){if($s(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($s(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}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)}var loe=function(t){var r=t.yAxisId,n=Zb(),i=Jb(),o=FT(r);return o==null?null:k.createElement(Qs,Ig({},o,{className:fe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return In(s,!0)}}))},_p=function(e){function t(){return toe(this,t),ioe(this,t,arguments)}return soe(t,e),noe(t,[{key:"render",value:function(){return k.createElement(loe,this.props)}}])}(k.Component);nk(_p,"displayName","YAxis");nk(_p,"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 L_(e){return hoe(e)||doe(e)||foe(e)||coe()}function coe(){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 foe(e,t){if(e){if(typeof e=="string")return Rg(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 Rg(e,t)}}function doe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hoe(e){if(Array.isArray(e))return Rg(e)}function Rg(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 Ng=function(t,r,n,i,o){var a=or(t,tx),s=or(t,xp),u=[].concat(L_(a),L_(s)),l=or(t,Sp),f="".concat(i,"Id"),c=i[0],d=r;if(u.length&&(d=u.reduce(function(v,g){if(g.props[f]===n&&yn(g.props,"extendDomain")&&K(g.props[c])){var m=g.props[c];return[Math.min(v[0],m),Math.max(v[1],m)]}return v},d)),l.length){var h="".concat(c,"1"),p="".concat(c,"2");d=l.reduce(function(v,g){if(g.props[f]===n&&yn(g.props,"extendDomain")&&K(g.props[h])&&K(g.props[p])){var m=g.props[h],y=g.props[p];return[Math.min(v[0],m,y),Math.max(v[1],m,y)]}return v},d)}return o&&o.length&&(d=o.reduce(function(v,g){return K(g)?[Math.min(v[0],g),Math.max(v[1],g)]:v},d)),d},ok={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(u,l,f){this.fn=u,this.context=l,this.once=f||!1}function o(u,l,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,c||u,d),p=r?r+l:l;return u._events[p]?u._events[p].fn?u._events[p]=[u._events[p],h]:u._events[p].push(h):(u._events[p]=h,u._eventsCount++),u}function a(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],f,c;if(this._eventsCount===0)return l;for(c in f=this._events)t.call(f,c)&&l.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(f)):l},s.prototype.listeners=function(l){var f=r?r+l:l,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,h=c.length,p=new Array(h);d<h;d++)p[d]=c[d].fn;return p},s.prototype.listenerCount=function(l){var f=r?r+l:l,c=this._events[f];return c?c.fn?1:c.length:0},s.prototype.emit=function(l,f,c,d,h,p){var v=r?r+l:l;if(!this._events[v])return!1;var g=this._events[v],m=arguments.length,y,b;if(g.fn){switch(g.once&&this.removeListener(l,g.fn,void 0,!0),m){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,f),!0;case 3:return g.fn.call(g.context,f,c),!0;case 4:return g.fn.call(g.context,f,c,d),!0;case 5:return g.fn.call(g.context,f,c,d,h),!0;case 6:return g.fn.call(g.context,f,c,d,h,p),!0}for(b=1,y=new Array(m-1);b<m;b++)y[b-1]=arguments[b];g.fn.apply(g.context,y)}else{var O=g.length,x;for(b=0;b<O;b++)switch(g[b].once&&this.removeListener(l,g[b].fn,void 0,!0),m){case 1:g[b].fn.call(g[b].context);break;case 2:g[b].fn.call(g[b].context,f);break;case 3:g[b].fn.call(g[b].context,f,c);break;case 4:g[b].fn.call(g[b].context,f,c,d);break;default:if(!y)for(x=1,y=new Array(m-1);x<m;x++)y[x-1]=arguments[x];g[b].fn.apply(g[b].context,y)}}return!0},s.prototype.on=function(l,f,c){return o(this,l,f,c,!1)},s.prototype.once=function(l,f,c){return o(this,l,f,c,!0)},s.prototype.removeListener=function(l,f,c,d){var h=r?r+l:l;if(!this._events[h])return this;if(!f)return a(this,h),this;var p=this._events[h];if(p.fn)p.fn===f&&(!d||p.once)&&(!c||p.context===c)&&a(this,h);else{for(var v=0,g=[],m=p.length;v<m;v++)(p[v].fn!==f||d&&!p[v].once||c&&p[v].context!==c)&&g.push(p[v]);g.length?this._events[h]=g.length===1?g[0]:g:a(this,h)}return this},s.prototype.removeAllListeners=function(l){var f;return l?(f=r?r+l:l,this._events[f]&&a(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})(ok);var poe=ok.exports;const voe=Pe(poe);var Fv=new voe,Bv="recharts.syncMouseEvents";function Wl(e){"@babel/helpers - typeof";return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wl(e)}function yoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function moe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ak(n.key),n)}}function goe(e,t,r){return t&&moe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zv(e,t,r){return t=ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ak(e){var t=boe(e,"string");return Wl(t)=="symbol"?t:t+""}function boe(e,t){if(Wl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xoe=function(){function e(){yoe(this,e),zv(this,"activeIndex",0),zv(this,"coordinateList",[]),zv(this,"layout","horizontal")}return goe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,o=i===void 0?null:i,a=r.container,s=a===void 0?null:a,u=r.layout,l=u===void 0?null:u,f=r.offset,c=f===void 0?null:f,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=o??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=l??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=h??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(),o=i.x,a=i.y,s=i.height,u=this.coordinateList[this.activeIndex].coordinate,l=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,c=o+u+l,d=a+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:c,pageY:d})}}}])}();function woe(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&&K(n)&&K(i))return!0}return!1}function Soe(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 sk(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,o=e.endAngle,a=Me(t,r,n,i),s=Me(t,r,n,o);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}function Ooe(e,t,r){var n,i,o,a;if(e==="horizontal")n=t.x,o=n,i=r.top,a=r.top+r.height;else if(e==="vertical")i=t.y,a=i,n=r.left,o=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,u=t.cy,l=t.innerRadius,f=t.outerRadius,c=t.angle,d=Me(s,u,l,c),h=Me(s,u,f,c);n=d.x,i=d.y,o=h.x,a=h.y}else return sk(t);return[{x:n,y:i},{x:o,y:a}]}function ql(e){"@babel/helpers - typeof";return ql=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},ql(e)}function F_(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 of(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F_(Object(r),!0).forEach(function(n){_oe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _oe(e,t,r){return t=Poe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Poe(e){var t=Aoe(e,"string");return ql(t)=="symbol"?t:t+""}function Aoe(e,t){if(ql(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ql(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eoe(e){var t,r,n=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,s=e.activePayload,u=e.offset,l=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!o||!a||d!=="ScatterChart"&&i!=="axis")return null;var p,v=Nd;if(d==="ScatterChart")p=a,v=qJ;else if(d==="BarChart")p=Soe(c,a,u,f),v=Gb;else if(c==="radial"){var g=sk(a),m=g.cx,y=g.cy,b=g.radius,O=g.startAngle,x=g.endAngle;p={cx:m,cy:y,startAngle:O,endAngle:x,innerRadius:b,outerRadius:b},v=nT}else p={points:Ooe(c,a,u)},v=Nd;var w=of(of(of(of({stroke:"#ccc",pointerEvents:"none"},u),p),oe(h,!1)),{},{payload:s,payloadIndex:l,className:fe("recharts-tooltip-cursor",h.className)});return k.isValidElement(h)?k.cloneElement(h,w):k.createElement(v,w)}var $oe=["item"],joe=["children","className","width","height","style","compact","title","desc"];function js(e){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},js(e)}function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ba.apply(this,arguments)}function B_(e,t){return koe(e)||Toe(e,t)||lk(e,t)||Coe()}function Coe(){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 Toe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function koe(e){if(Array.isArray(e))return e}function z_(e,t){if(e==null)return{};var r=Moe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Moe(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 Ioe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Roe(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,ck(n.key),n)}}function Noe(e,t,r){return t&&Roe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Doe(e,t,r){return t=oh(t),Loe(e,uk()?Reflect.construct(t,r||[],oh(e).constructor):t.apply(e,r))}function Loe(e,t){if(t&&(js(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Foe(e)}function Foe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uk=function(){return!!e})()}function oh(e){return oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oh(e)}function Boe(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 Cs(e){return Woe(e)||Uoe(e)||lk(e)||zoe()}function zoe(){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 lk(e,t){if(e){if(typeof e=="string")return Lg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lg(e,t)}}function Uoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Woe(e){if(Array.isArray(e))return Lg(e)}function Lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function U_(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 B(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U_(Object(r),!0).forEach(function(n){se(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function se(e,t,r){return t=ck(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ck(e){var t=qoe(e,"string");return js(t)=="symbol"?t:t+""}function qoe(e,t){if(js(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hoe={xAxis:["bottom","top"],yAxis:["left","right"]},Koe={width:"100%",height:"100%"},fk={x:0,y:0};function af(e){return e}var Voe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Goe=function(t,r,n,i){var o=r.find(function(f){return f&&f.index===n});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,s=i.radius;return B(B(B({},i),Me(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var u=o.coordinate,l=i.angle;return B(B(B({},i),Me(i.cx,i.cy,u,l)),{},{angle:l,radius:u})}return fk},Pp=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,o=r.dataEndIndex,a=(n??[]).reduce(function(s,u){var l=u.props.data;return l&&l.length?[].concat(Cs(s),Cs(l)):s},[]);return a.length>0?a:t&&t.length&&K(i)&&K(o)?t.slice(i,o+1):[]};function dk(e){return e==="number"?[0,"auto"]:void 0}var Fg=function(t,r,n,i){var o=t.graphicalItems,a=t.tooltipAxis,s=Pp(r,t);return n<0||!o||!o.length||n>=s.length?null:o.reduce(function(u,l){var f,c=(f=l.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 d;if(a.dataKey&&!a.allowDuplicatedCategory){var h=c===void 0?s:c;d=od(h,a.dataKey,i)}else d=c&&c[n]||s[n];return d?[].concat(Cs(u),[YC(l,d)]):u},[])},W_=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},a=Voe(o,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,f=pX(a,s,l,u);if(f>=0&&l){var c=l[f]&&l[f].value,d=Fg(t,r,f,c),h=Goe(n,s,f,o);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:h}}return null},Qoe=function(t,r){var n=r.axes,i=r.graphicalItems,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,h=HC(f,o);return n.reduce(function(p,v){var g,m=v.type.defaultProps!==void 0?B(B({},v.type.defaultProps),v.props):v.props,y=m.type,b=m.dataKey,O=m.allowDataOverflow,x=m.allowDuplicatedCategory,w=m.scale,S=m.ticks,_=m.includeHidden,P=m[a];if(p[P])return p;var A=Pp(t.data,{graphicalItems:i.filter(function(q){var V,Q=a in q.props?q.props[a]:(V=q.type.defaultProps)===null||V===void 0?void 0:V[a];return Q===P}),dataStartIndex:u,dataEndIndex:l}),E=A.length,$,T,I;woe(m.domain,O,y)&&($=Jm(m.domain,null,O),h&&(y==="number"||w!=="auto")&&(I=Bu(A,b,"category")));var D=dk(y);if(!$||$.length===0){var N,F=(N=m.domain)!==null&&N!==void 0?N:D;if(b){if($=Bu(A,b,y),y==="category"&&h){var M=iz($);x&&M?(T=$,$=Kd(0,E)):x||($=fO(F,$,v).reduce(function(q,V){return q.indexOf(V)>=0?q:[].concat(Cs(q),[V])},[]))}else if(y==="category")x?$=$.filter(function(q){return q!==""&&!le(q)}):$=fO(F,$,v).reduce(function(q,V){return q.indexOf(V)>=0||V===""||le(V)?q:[].concat(Cs(q),[V])},[]);else if(y==="number"){var L=bX(A,i.filter(function(q){var V,Q,re=a in q.props?q.props[a]:(V=q.type.defaultProps)===null||V===void 0?void 0:V[a],ne="hide"in q.props?q.props.hide:(Q=q.type.defaultProps)===null||Q===void 0?void 0:Q.hide;return re===P&&(_||!ne)}),b,o,f);L&&($=L)}h&&(y==="number"||w!=="auto")&&(I=Bu(A,b,"category"))}else h?$=Kd(0,E):s&&s[P]&&s[P].hasStack&&y==="number"?$=d==="expand"?[0,1]:XC(s[P].stackGroups,u,l):$=qC(A,i.filter(function(q){var V=a in q.props?q.props[a]:q.type.defaultProps[a],Q="hide"in q.props?q.props.hide:q.type.defaultProps.hide;return V===P&&(_||!Q)}),y,f,!0);if(y==="number")$=Ng(c,$,P,o,S),F&&($=Jm(F,$,O));else if(y==="category"&&F){var z=F,W=$.every(function(q){return z.indexOf(q)>=0});W&&($=z)}}return B(B({},p),{},se({},P,B(B({},m),{},{axisType:o,domain:$,categoricalDomain:I,duplicateDomain:T,originalDomain:(g=m.domain)!==null&&g!==void 0?g:D,isCategorical:h,layout:f})))},{})},Xoe=function(t,r){var n=r.graphicalItems,i=r.Axis,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,f=t.layout,c=t.children,d=Pp(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),h=d.length,p=HC(f,o),v=-1;return n.reduce(function(g,m){var y=m.type.defaultProps!==void 0?B(B({},m.type.defaultProps),m.props):m.props,b=y[a],O=dk("number");if(!g[b]){v++;var x;return p?x=Kd(0,h):s&&s[b]&&s[b].hasStack?(x=XC(s[b].stackGroups,u,l),x=Ng(c,x,b,o)):(x=Jm(O,qC(d,n.filter(function(w){var S,_,P=a in w.props?w.props[a]:(S=w.type.defaultProps)===null||S===void 0?void 0:S[a],A="hide"in w.props?w.props.hide:(_=w.type.defaultProps)===null||_===void 0?void 0:_.hide;return P===b&&!A}),"number",f),i.defaultProps.allowDataOverflow),x=Ng(c,x,b,o)),B(B({},g),{},se({},b,B(B({axisType:o},i.defaultProps),{},{hide:!0,orientation:ir(Hoe,"".concat(o,".").concat(v%2),null),domain:x,originalDomain:O,isCategorical:p,layout:f})))}return g},{})},Yoe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,o=r.AxisComp,a=r.graphicalItems,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=or(f,o),h={};return d&&d.length?h=Qoe(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:u,dataEndIndex:l}):a&&a.length&&(h=Xoe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:u,dataEndIndex:l})),h},Zoe=function(t){var r=si(t),n=In(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:wb(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Md(r,n)}},q_=function(t){var r=t.children,n=t.defaultShowTooltip,i=Zt(r,xs),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},Joe=function(t){return!t||!t.length?!1:t.some(function(r){var n=Nn(r&&r.type);return n&&n.indexOf("Bar")>=0})},H_=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"}},eae=function(t,r){var n=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,u=s===void 0?{}:s,l=n.width,f=n.height,c=n.children,d=n.margin||{},h=Zt(c,xs),p=Zt(c,Ta),v=Object.keys(u).reduce(function(x,w){var S=u[w],_=S.orientation;return!S.mirror&&!S.hide?B(B({},x),{},se({},_,x[_]+S.width)):x},{left:d.left||0,right:d.right||0}),g=Object.keys(a).reduce(function(x,w){var S=a[w],_=S.orientation;return!S.mirror&&!S.hide?B(B({},x),{},se({},_,ir(x,"".concat(_))+S.height)):x},{top:d.top||0,bottom:d.bottom||0}),m=B(B({},g),v),y=m.bottom;h&&(m.bottom+=h.props.height||xs.defaultProps.height),p&&r&&(m=mX(m,i,n,r));var b=l-m.left-m.right,O=f-m.top-m.bottom;return B(B({brushBottom:y},m),{},{width:Math.max(b,0),height:Math.max(O,0)})},tae=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},hk=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,u=t.axisComponents,l=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(m,y){var b=y.graphicalItems,O=y.stackGroups,x=y.offset,w=y.updateId,S=y.dataStartIndex,_=y.dataEndIndex,P=m.barSize,A=m.layout,E=m.barGap,$=m.barCategoryGap,T=m.maxBarSize,I=H_(A),D=I.numericAxisName,N=I.cateAxisName,F=Joe(b),M=[];return b.forEach(function(L,z){var W=Pp(m.data,{graphicalItems:[L],dataStartIndex:S,dataEndIndex:_}),q=L.type.defaultProps!==void 0?B(B({},L.type.defaultProps),L.props):L.props,V=q.dataKey,Q=q.maxBarSize,re=q["".concat(D,"Id")],ne=q["".concat(N,"Id")],ce={},Ee=u.reduce(function(Yr,ye){var Ve=y["".concat(ye.axisType,"Map")],Vo=q["".concat(ye.axisType,"Id")];Ve&&Ve[Vo]||ye.axisType==="zAxis"||$t(!1);var Xs=Ve[Vo];return B(B({},Yr),{},se(se({},ye.axisType,Xs),"".concat(ye.axisType,"Ticks"),In(Xs)))},ce),G=Ee[N],Z=Ee["".concat(N,"Ticks")],ie=O&&O[re]&&O[re].hasStack&&$X(L,O[re].stackGroups),U=Nn(L.type).indexOf("Bar")>=0,ge=Md(G,Z),he=[],ze=F&&vX({barSize:P,stackGroups:O,totalSize:tae(Ee,N)});if(U){var Ue,Ke,lr=le(Q)?T:Q,Xr=(Ue=(Ke=Md(G,Z,!0))!==null&&Ke!==void 0?Ke:lr)!==null&&Ue!==void 0?Ue:0;he=yX({barGap:E,barCategoryGap:$,bandSize:Xr!==ge?Xr:ge,sizeList:ze[ne],maxBarSize:lr}),Xr!==ge&&(he=he.map(function(Yr){return B(B({},Yr),{},{position:B(B({},Yr.position),{},{offset:Yr.position.offset-Xr/2})})}))}var qi=L&&L.type&&L.type.getComposedData;qi&&M.push({props:B(B({},qi(B(B({},Ee),{},{displayedData:W,props:m,dataKey:V,item:L,bandSize:ge,barPosition:he,offset:x,stackedData:ie,layout:A,dataStartIndex:S,dataEndIndex:_}))),{},se(se(se({key:L.key||"item-".concat(z)},D,Ee[D]),N,Ee[N]),"animationId",w)),childIndex:mz(L,m.children),item:L})}),M},h=function(m,y){var b=m.props,O=m.dataStartIndex,x=m.dataEndIndex,w=m.updateId;if(!nS({props:b}))return null;var S=b.children,_=b.layout,P=b.stackOffset,A=b.data,E=b.reverseStackOrder,$=H_(_),T=$.numericAxisName,I=$.cateAxisName,D=or(S,n),N=AX(A,D,"".concat(T,"Id"),"".concat(I,"Id"),P,E),F=u.reduce(function(q,V){var Q="".concat(V.axisType,"Map");return B(B({},q),{},se({},Q,Yoe(b,B(B({},V),{},{graphicalItems:D,stackGroups:V.axisType===T&&N,dataStartIndex:O,dataEndIndex:x}))))},{}),M=eae(B(B({},F),{},{props:b,graphicalItems:D}),y==null?void 0:y.legendBBox);Object.keys(F).forEach(function(q){F[q]=f(b,F[q],M,q.replace("Map",""),r)});var L=F["".concat(I,"Map")],z=Zoe(L),W=d(b,B(B({},F),{},{dataStartIndex:O,dataEndIndex:x,updateId:w,graphicalItems:D,stackGroups:N,offset:M}));return B(B({formattedGraphicalItems:W,graphicalItems:D,offset:M,stackGroups:N},z),F)},p=function(g){function m(y){var b,O,x;return Ioe(this,m),x=Doe(this,m,[y]),se(x,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),se(x,"accessibilityManager",new xoe),se(x,"handleLegendBBoxUpdate",function(w){if(w){var S=x.state,_=S.dataStartIndex,P=S.dataEndIndex,A=S.updateId;x.setState(B({legendBBox:w},h({props:x.props,dataStartIndex:_,dataEndIndex:P,updateId:A},B(B({},x.state),{},{legendBBox:w}))))}}),se(x,"handleReceiveSyncEvent",function(w,S,_){if(x.props.syncId===w){if(_===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(S)}}),se(x,"handleBrushChange",function(w){var S=w.startIndex,_=w.endIndex;if(S!==x.state.dataStartIndex||_!==x.state.dataEndIndex){var P=x.state.updateId;x.setState(function(){return B({dataStartIndex:S,dataEndIndex:_},h({props:x.props,dataStartIndex:S,dataEndIndex:_,updateId:P},x.state))}),x.triggerSyncEvent({dataStartIndex:S,dataEndIndex:_})}}),se(x,"handleMouseEnter",function(w){var S=x.getMouseInfo(w);if(S){var _=B(B({},S),{},{isTooltipActive:!0});x.setState(_),x.triggerSyncEvent(_);var P=x.props.onMouseEnter;ue(P)&&P(_,w)}}),se(x,"triggeredAfterMouseMove",function(w){var S=x.getMouseInfo(w),_=S?B(B({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(_),x.triggerSyncEvent(_);var P=x.props.onMouseMove;ue(P)&&P(_,w)}),se(x,"handleItemMouseEnter",function(w){x.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),se(x,"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),se(x,"handleMouseMove",function(w){w.persist(),x.throttleTriggeredAfterMouseMove(w)}),se(x,"handleMouseLeave",function(w){x.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};x.setState(S),x.triggerSyncEvent(S);var _=x.props.onMouseLeave;ue(_)&&_(S,w)}),se(x,"handleOuterEvent",function(w){var S=yz(w),_=ir(x.props,"".concat(S));if(S&&ue(_)){var P,A;/.*touch.*/i.test(S)?A=x.getMouseInfo(w.changedTouches[0]):A=x.getMouseInfo(w),_((P=A)!==null&&P!==void 0?P:{},w)}}),se(x,"handleClick",function(w){var S=x.getMouseInfo(w);if(S){var _=B(B({},S),{},{isTooltipActive:!0});x.setState(_),x.triggerSyncEvent(_);var P=x.props.onClick;ue(P)&&P(_,w)}}),se(x,"handleMouseDown",function(w){var S=x.props.onMouseDown;if(ue(S)){var _=x.getMouseInfo(w);S(_,w)}}),se(x,"handleMouseUp",function(w){var S=x.props.onMouseUp;if(ue(S)){var _=x.getMouseInfo(w);S(_,w)}}),se(x,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),se(x,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&x.handleMouseDown(w.changedTouches[0])}),se(x,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&x.handleMouseUp(w.changedTouches[0])}),se(x,"handleDoubleClick",function(w){var S=x.props.onDoubleClick;if(ue(S)){var _=x.getMouseInfo(w);S(_,w)}}),se(x,"handleContextMenu",function(w){var S=x.props.onContextMenu;if(ue(S)){var _=x.getMouseInfo(w);S(_,w)}}),se(x,"triggerSyncEvent",function(w){x.props.syncId!==void 0&&Fv.emit(Bv,x.props.syncId,w,x.eventEmitterSymbol)}),se(x,"applySyncEvent",function(w){var S=x.props,_=S.layout,P=S.syncMethod,A=x.state.updateId,E=w.dataStartIndex,$=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)x.setState(B({dataStartIndex:E,dataEndIndex:$},h({props:x.props,dataStartIndex:E,dataEndIndex:$,updateId:A},x.state)));else if(w.activeTooltipIndex!==void 0){var T=w.chartX,I=w.chartY,D=w.activeTooltipIndex,N=x.state,F=N.offset,M=N.tooltipTicks;if(!F)return;if(typeof P=="function")D=P(M,w);else if(P==="value"){D=-1;for(var L=0;L<M.length;L++)if(M[L].value===w.activeLabel){D=L;break}}var z=B(B({},F),{},{x:F.left,y:F.top}),W=Math.min(T,z.x+z.width),q=Math.min(I,z.y+z.height),V=M[D]&&M[D].value,Q=Fg(x.state,x.props.data,D),re=M[D]?{x:_==="horizontal"?M[D].coordinate:W,y:_==="horizontal"?q:M[D].coordinate}:fk;x.setState(B(B({},w),{},{activeLabel:V,activeCoordinate:re,activePayload:Q,activeTooltipIndex:D}))}else x.setState(w)}),se(x,"renderCursor",function(w){var S,_=x.state,P=_.isTooltipActive,A=_.activeCoordinate,E=_.activePayload,$=_.offset,T=_.activeTooltipIndex,I=_.tooltipAxisBandSize,D=x.getTooltipEventType(),N=(S=w.props.active)!==null&&S!==void 0?S:P,F=x.props.layout,M=w.key||"_recharts-cursor";return C.createElement(Eoe,{key:M,activeCoordinate:A,activePayload:E,activeTooltipIndex:T,chartName:r,element:w,isActive:N,layout:F,offset:$,tooltipAxisBandSize:I,tooltipEventType:D})}),se(x,"renderPolarAxis",function(w,S,_){var P=ir(w,"type.axisType"),A=ir(x.state,"".concat(P,"Map")),E=w.type.defaultProps,$=E!==void 0?B(B({},E),w.props):w.props,T=A&&A[$["".concat(P,"Id")]];return k.cloneElement(w,B(B({},T),{},{className:fe(P,T.className),key:w.key||"".concat(S,"-").concat(_),ticks:In(T,!0)}))}),se(x,"renderPolarGrid",function(w){var S=w.props,_=S.radialLines,P=S.polarAngles,A=S.polarRadius,E=x.state,$=E.radiusAxisMap,T=E.angleAxisMap,I=si($),D=si(T),N=D.cx,F=D.cy,M=D.innerRadius,L=D.outerRadius;return k.cloneElement(w,{polarAngles:Array.isArray(P)?P:In(D,!0).map(function(z){return z.coordinate}),polarRadius:Array.isArray(A)?A:In(I,!0).map(function(z){return z.coordinate}),cx:N,cy:F,innerRadius:M,outerRadius:L,key:w.key||"polar-grid",radialLines:_})}),se(x,"renderLegend",function(){var w=x.state.formattedGraphicalItems,S=x.props,_=S.children,P=S.width,A=S.height,E=x.props.margin||{},$=P-(E.left||0)-(E.right||0),T=UC({children:_,formattedGraphicalItems:w,legendWidth:$,legendContent:l});if(!T)return null;var I=T.item,D=z_(T,$oe);return k.cloneElement(I,B(B({},D),{},{chartWidth:P,chartHeight:A,margin:E,onBBoxUpdate:x.handleLegendBBoxUpdate}))}),se(x,"renderTooltip",function(){var w,S=x.props,_=S.children,P=S.accessibilityLayer,A=Zt(_,Dr);if(!A)return null;var E=x.state,$=E.isTooltipActive,T=E.activeCoordinate,I=E.activePayload,D=E.activeLabel,N=E.offset,F=(w=A.props.active)!==null&&w!==void 0?w:$;return k.cloneElement(A,{viewBox:B(B({},N),{},{x:N.left,y:N.top}),active:F,label:D,payload:F?I:[],coordinate:T,accessibilityLayer:P})}),se(x,"renderBrush",function(w){var S=x.props,_=S.margin,P=S.data,A=x.state,E=A.offset,$=A.dataStartIndex,T=A.dataEndIndex,I=A.updateId;return k.cloneElement(w,{key:w.key||"_recharts-brush",onChange:ef(x.handleBrushChange,w.props.onChange),data:P,x:K(w.props.x)?w.props.x:E.left,y:K(w.props.y)?w.props.y:E.top+E.height+E.brushBottom-(_.bottom||0),width:K(w.props.width)?w.props.width:E.width,startIndex:$,endIndex:T,updateId:"brush-".concat(I)})}),se(x,"renderReferenceElement",function(w,S,_){if(!w)return null;var P=x,A=P.clipPathId,E=x.state,$=E.xAxisMap,T=E.yAxisMap,I=E.offset,D=w.type.defaultProps||{},N=w.props,F=N.xAxisId,M=F===void 0?D.xAxisId:F,L=N.yAxisId,z=L===void 0?D.yAxisId:L;return k.cloneElement(w,{key:w.key||"".concat(S,"-").concat(_),xAxis:$[M],yAxis:T[z],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:A})}),se(x,"renderActivePoints",function(w){var S=w.item,_=w.activePoint,P=w.basePoint,A=w.childIndex,E=w.isRange,$=[],T=S.props.key,I=S.item.type.defaultProps!==void 0?B(B({},S.item.type.defaultProps),S.item.props):S.item.props,D=I.activeDot,N=I.dataKey,F=B(B({index:A,dataKey:N,cx:_.x,cy:_.y,r:4,fill:Vb(S.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},oe(D,!1)),ad(D));return $.push(m.renderActiveDot(D,F,"".concat(T,"-activePoint-").concat(A))),P?$.push(m.renderActiveDot(D,B(B({},F),{},{cx:P.x,cy:P.y}),"".concat(T,"-basePoint-").concat(A))):E&&$.push(null),$}),se(x,"renderGraphicChild",function(w,S,_){var P=x.filterFormatItem(w,S,_);if(!P)return null;var A=x.getTooltipEventType(),E=x.state,$=E.isTooltipActive,T=E.tooltipAxis,I=E.activeTooltipIndex,D=E.activeLabel,N=x.props.children,F=Zt(N,Dr),M=P.props,L=M.points,z=M.isRange,W=M.baseLine,q=P.item.type.defaultProps!==void 0?B(B({},P.item.type.defaultProps),P.item.props):P.item.props,V=q.activeDot,Q=q.hide,re=q.activeBar,ne=q.activeShape,ce=!!(!Q&&$&&F&&(V||re||ne)),Ee={};A!=="axis"&&F&&F.props.trigger==="click"?Ee={onClick:ef(x.handleItemMouseEnter,w.props.onClick)}:A!=="axis"&&(Ee={onMouseLeave:ef(x.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:ef(x.handleItemMouseEnter,w.props.onMouseEnter)});var G=k.cloneElement(w,B(B({},P.props),Ee));function Z(ye){return typeof T.dataKey=="function"?T.dataKey(ye.payload):null}if(ce)if(I>=0){var ie,U;if(T.dataKey&&!T.allowDuplicatedCategory){var ge=typeof T.dataKey=="function"?Z:"payload.".concat(T.dataKey.toString());ie=od(L,ge,D),U=z&&W&&od(W,ge,D)}else ie=L==null?void 0:L[I],U=z&&W&&W[I];if(ne||re){var he=w.props.activeIndex!==void 0?w.props.activeIndex:I;return[k.cloneElement(w,B(B(B({},P.props),Ee),{},{activeIndex:he})),null,null]}if(!le(ie))return[G].concat(Cs(x.renderActivePoints({item:P,activePoint:ie,basePoint:U,childIndex:I,isRange:z})))}else{var ze,Ue=(ze=x.getItemByXY(x.state.activeCoordinate))!==null&&ze!==void 0?ze:{graphicalItem:G},Ke=Ue.graphicalItem,lr=Ke.item,Xr=lr===void 0?w:lr,qi=Ke.childIndex,Yr=B(B(B({},P.props),Ee),{},{activeIndex:qi});return[k.cloneElement(Xr,Yr),null,null]}return z?[G,null,null]:[G,null]}),se(x,"renderCustomized",function(w,S,_){return k.cloneElement(w,B(B({key:"recharts-customized-".concat(_)},x.props),x.state))}),se(x,"renderMap",{CartesianGrid:{handler:af,once:!0},ReferenceArea:{handler:x.renderReferenceElement},ReferenceLine:{handler:af},ReferenceDot:{handler:x.renderReferenceElement},XAxis:{handler:af},YAxis:{handler:af},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((b=y.id)!==null&&b!==void 0?b:Us("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=zj(x.triggeredAfterMouseMove,(O=y.throttleDelay)!==null&&O!==void 0?O:1e3/60),x.state={},x}return Boe(m,g),Noe(m,[{key:"componentDidMount",value:function(){var b,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b: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 b=this.props,O=b.children,x=b.data,w=b.height,S=b.layout,_=Zt(O,Dr);if(_){var P=_.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var A=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,E=Fg(this.state,x,P,A),$=this.state.tooltipTicks[P].coordinate,T=(this.state.offset.top+w)/2,I=S==="horizontal",D=I?{x:$,y:T}:{y:$,x:T},N=this.state.formattedGraphicalItems.find(function(M){var L=M.item;return L.type.name==="Scatter"});N&&(D=B(B({},D),N.props.points[P].tooltipPosition),E=N.props.points[P].tooltipPayload);var F={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:A,activePayload:E,activeCoordinate:D};this.setState(F),this.renderCursor(_),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var x,w;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(b){pm([Zt(b.children,Dr)],[Zt(this.props.children,Dr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Zt(this.props.children,Dr);if(b&&typeof b.props.shared=="boolean"){var O=b.props.shared?"axis":"item";return s.indexOf(O)>=0?O:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var O=this.container,x=O.getBoundingClientRect(),w=WV(x),S={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},_=x.width/O.offsetWidth||1,P=this.inRange(S.chartX,S.chartY,_);if(!P)return null;var A=this.state,E=A.xAxisMap,$=A.yAxisMap,T=this.getTooltipEventType(),I=W_(this.state,this.props.data,this.props.layout,P);if(T!=="axis"&&E&&$){var D=si(E).scale,N=si($).scale,F=D&&D.invert?D.invert(S.chartX):null,M=N&&N.invert?N.invert(S.chartY):null;return B(B({},S),{},{xValue:F,yValue:M},I)}return I?B(B({},S),I):null}},{key:"inRange",value:function(b,O){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,S=b/x,_=O/x;if(w==="horizontal"||w==="vertical"){var P=this.state.offset,A=S>=P.left&&S<=P.left+P.width&&_>=P.top&&_<=P.top+P.height;return A?{x:S,y:_}:null}var E=this.state,$=E.angleAxisMap,T=E.radiusAxisMap;if($&&T){var I=si($);return pO({x:S,y:_},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,O=this.getTooltipEventType(),x=Zt(b,Dr),w={};x&&O==="axis"&&(x.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=ad(this.props,this.handleOuterEvent);return B(B({},S),w)}},{key:"addListener",value:function(){Fv.on(Bv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Fv.removeListener(Bv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,O,x){for(var w=this.state.formattedGraphicalItems,S=0,_=w.length;S<_;S++){var P=w[S];if(P.item===b||P.props.key===b.key||O===Nn(P.item.type)&&x===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,O=this.state.offset,x=O.left,w=O.top,S=O.height,_=O.width;return C.createElement("defs",null,C.createElement("clipPath",{id:b},C.createElement("rect",{x,y:w,height:S,width:_})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(O,x){var w=B_(x,2),S=w[0],_=w[1];return B(B({},O),{},se({},S,_.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(O,x){var w=B_(x,2),S=w[0],_=w[1];return B(B({},O),{},se({},S,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[b])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(b){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[b])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(b){var O=this.state,x=O.formattedGraphicalItems,w=O.activeItem;if(x&&x.length)for(var S=0,_=x.length;S<_;S++){var P=x[S],A=P.props,E=P.item,$=E.type.defaultProps!==void 0?B(B({},E.type.defaultProps),E.props):E.props,T=Nn(E.type);if(T==="Bar"){var I=(A.data||[]).find(function(M){return _J(b,M)});if(I)return{graphicalItem:P,payload:I}}else if(T==="RadialBar"){var D=(A.data||[]).find(function(M){return pO(b,M)});if(D)return{graphicalItem:P,payload:D}}else if(yp(P,w)||mp(P,w)||Ll(P,w)){var N=dte({graphicalItem:P,activeTooltipItem:w,itemData:$.data}),F=$.activeIndex===void 0?N:$.activeIndex;return{graphicalItem:B(B({},P),{},{childIndex:F}),payload:Ll(P,w)?$.data[N]:P.props.data[N]}}}return null}},{key:"render",value:function(){var b=this;if(!nS(this))return null;var O=this.props,x=O.children,w=O.className,S=O.width,_=O.height,P=O.style,A=O.compact,E=O.title,$=O.desc,T=z_(O,joe),I=oe(T,!1);if(A)return C.createElement(S_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},C.createElement(ym,ba({},I,{width:S,height:_,title:E,desc:$}),this.renderClipPath(),oS(x,this.renderMap)));if(this.props.accessibilityLayer){var D,N;I.tabIndex=(D=this.props.tabIndex)!==null&&D!==void 0?D:0,I.role=(N=this.props.role)!==null&&N!==void 0?N:"application",I.onKeyDown=function(M){b.accessibilityManager.keyboardEvent(M)},I.onFocus=function(){b.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return C.createElement(S_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},C.createElement("div",ba({className:fe("recharts-wrapper",w),style:B({position:"relative",cursor:"default",width:S,height:_},P)},F,{ref:function(L){b.container=L}}),C.createElement(ym,ba({},I,{width:S,height:_,title:E,desc:$,style:Koe}),this.renderClipPath(),oS(x,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(k.Component);se(p,"displayName",r),se(p,"defaultProps",B({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),se(p,"getDerivedStateFromProps",function(g,m){var y=g.dataKey,b=g.data,O=g.children,x=g.width,w=g.height,S=g.layout,_=g.stackOffset,P=g.margin,A=m.dataStartIndex,E=m.dataEndIndex;if(m.updateId===void 0){var $=q_(g);return B(B(B({},$),{},{updateId:0},h(B(B({props:g},$),{},{updateId:0}),m)),{},{prevDataKey:y,prevData:b,prevWidth:x,prevHeight:w,prevLayout:S,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(y!==m.prevDataKey||b!==m.prevData||x!==m.prevWidth||w!==m.prevHeight||S!==m.prevLayout||_!==m.prevStackOffset||!Ca(P,m.prevMargin)){var T=q_(g),I={chartX:m.chartX,chartY:m.chartY,isTooltipActive:m.isTooltipActive},D=B(B({},W_(m,b,S)),{},{updateId:m.updateId+1}),N=B(B(B({},T),I),D);return B(B(B({},N),h(B({props:g},N),m)),{},{prevDataKey:y,prevData:b,prevWidth:x,prevHeight:w,prevLayout:S,prevStackOffset:_,prevMargin:P,prevChildren:O})}if(!pm(O,m.prevChildren)){var F,M,L,z,W=Zt(O,xs),q=W&&(F=(M=W.props)===null||M===void 0?void 0:M.startIndex)!==null&&F!==void 0?F:A,V=W&&(L=(z=W.props)===null||z===void 0?void 0:z.endIndex)!==null&&L!==void 0?L:E,Q=q!==A||V!==E,re=!le(b),ne=re&&!Q?m.updateId:m.updateId+1;return B(B({updateId:ne},h(B(B({props:g},m),{},{updateId:ne,dataStartIndex:q,dataEndIndex:V}),m)),{},{prevChildren:O,dataStartIndex:q,dataEndIndex:V})}return null}),se(p,"renderActiveDot",function(g,m,y){var b;return k.isValidElement(g)?b=k.cloneElement(g,m):ue(g)?b=g(m):b=C.createElement(fp,m),C.createElement(xe,{className:"recharts-active-dot",key:y},b)});var v=k.forwardRef(function(m,y){return C.createElement(p,ba({},m,{ref:y}))});return v.displayName=p.displayName,v},rae=hk({chartName:"LineChart",GraphicalChild:xc,axisComponents:[{axisType:"xAxis",AxisComp:Op},{axisType:"yAxis",AxisComp:_p}],formatAxisMap:qre}),nae=hk({chartName:"PieChart",GraphicalChild:Yn,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:vp},{axisType:"radiusAxis",AxisComp:hp}],formatAxisMap:LX,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const pk=os("/")({component:oae}),iae={openai:"#10a37f",google:"#4285f4",azure:"#0078d4"};function oae(){const{data:e,isLoading:t}=sc.stats.overview.useQuery();if(t)return R.jsx("div",{className:"p-8",children:R.jsxs("div",{className:"animate-pulse space-y-4",children:[R.jsx("div",{className:"h-32 bg-gray-200 rounded"}),R.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[1,2,3,4].map(i=>R.jsx("div",{className:"h-24 bg-gray-200 rounded"},i))})]})});const r=(e==null?void 0:e.byProvider.map(i=>({name:i.provider,value:i.totalCost})))||[],n=(e==null?void 0:e.last30Days)||[];return R.jsxs("div",{className:"p-8",children:[R.jsxs("div",{className:"mb-8",children:[R.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Dashboard Overview"}),R.jsx("p",{className:"text-muted-foreground",children:"Your AI usage statistics and insights"})]}),R.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4 mb-8",children:[R.jsxs(an,{children:[R.jsx(sn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:R.jsx(un,{className:"text-sm font-medium",children:"Total Requests"})}),R.jsx(ln,{children:R.jsx("div",{className:"text-2xl font-bold",children:Ww((e==null?void 0:e.totalRequests)||0)})})]}),R.jsxs(an,{children:[R.jsx(sn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:R.jsx(un,{className:"text-sm font-medium",children:"Total Tokens"})}),R.jsx(ln,{children:R.jsx("div",{className:"text-2xl font-bold",children:Ww((e==null?void 0:e.totalTokens)||0)})})]}),R.jsxs(an,{children:[R.jsx(sn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:R.jsx(un,{className:"text-sm font-medium",children:"Total Cost"})}),R.jsx(ln,{children:R.jsx("div",{className:"text-2xl font-bold",children:Uw((e==null?void 0:e.totalCost)||0)})})]}),R.jsxs(an,{children:[R.jsx(sn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:R.jsx(un,{className:"text-sm font-medium",children:"Active Providers"})}),R.jsx(ln,{children:R.jsx("div",{className:"text-2xl font-bold",children:(e==null?void 0:e.byProvider.length)||0})})]})]}),R.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[R.jsxs(an,{children:[R.jsx(sn,{children:R.jsx(un,{children:"Usage Trend (Last 30 Days)"})}),R.jsx(ln,{children:R.jsx(r1,{width:"100%",height:300,children:R.jsxs(rae,{data:n,children:[R.jsx(XT,{strokeDasharray:"3 3"}),R.jsx(Op,{dataKey:"date"}),R.jsx(_p,{}),R.jsx(Dr,{}),R.jsx(xc,{type:"monotone",dataKey:"requests",stroke:"#8884d8",name:"Requests"})]})})})]}),R.jsxs(an,{children:[R.jsx(sn,{children:R.jsx(un,{children:"Cost by Provider"})}),R.jsx(ln,{children:R.jsx(r1,{width:"100%",height:300,children:R.jsxs(nae,{children:[R.jsx(Yn,{data:r,cx:"50%",cy:"50%",labelLine:!1,label:i=>i.name,outerRadius:80,fill:"#8884d8",dataKey:"value",children:r.map((i,o)=>R.jsx(Jh,{fill:iae[i.name]||"#8884d8"},`cell-${o}`))}),R.jsx(Dr,{formatter:i=>Uw(i)})]})})})]})]})]})}const vk=os("/config")({component:aae});function aae(){var r,n,i,o,a,s,u,l,f;const{data:e}=sc.config.get.useQuery(),t=[{name:"OpenAI",key:"openai",configured:(r=e==null?void 0:e.openai)==null?void 0:r.configured,apiKey:(n=e==null?void 0:e.openai)==null?void 0:n.apiKey},{name:"Google Gemini",key:"google",configured:(i=e==null?void 0:e.google)==null?void 0:i.configured,apiKey:(o=e==null?void 0:e.google)==null?void 0:o.apiKey},{name:"Azure OpenAI",key:"azure",configured:(a=e==null?void 0:e.azure)==null?void 0:a.configured,apiKey:(s=e==null?void 0:e.azure)==null?void 0:s.apiKey,endpoint:(u=e==null?void 0:e.azure)==null?void 0:u.endpoint},{name:"xAI Grok",key:"xai",configured:(l=e==null?void 0:e.xai)==null?void 0:l.configured,apiKey:(f=e==null?void 0:e.xai)==null?void 0:f.apiKey}];return R.jsxs("div",{className:"p-8",children:[R.jsxs("div",{className:"mb-8",children:[R.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Configuration"}),R.jsx("p",{className:"text-muted-foreground",children:"Manage your API keys and provider settings"})]}),R.jsx("div",{className:"grid gap-4",children:t.map(c=>R.jsxs(an,{children:[R.jsxs(sn,{children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx(un,{children:c.name}),c.configured?R.jsx(UD,{className:"h-5 w-5 text-green-500"}):R.jsx(KD,{className:"h-5 w-5 text-red-500"})]}),R.jsx(Y0,{children:c.configured?"Configured":"Not configured"})]}),R.jsx(ln,{children:R.jsxs("div",{className:"space-y-2",children:[c.apiKey&&R.jsxs("div",{children:[R.jsx("span",{className:"text-sm text-muted-foreground",children:"API Key: "}),R.jsx("code",{className:"text-sm bg-muted px-1 py-0.5 rounded",children:c.apiKey})]}),c.endpoint&&R.jsxs("div",{children:[R.jsx("span",{className:"text-sm text-muted-foreground",children:"Endpoint: "}),R.jsx("code",{className:"text-sm bg-muted px-1 py-0.5 rounded",children:c.endpoint})]})]})})]},c.key))}),R.jsx("div",{className:"mt-8 p-4 bg-muted rounded-lg",children:R.jsxs("p",{className:"text-sm text-muted-foreground",children:["To update your API keys, run ",R.jsx("code",{className:"bg-background px-1 py-0.5 rounded",children:"npx ultra-mcp config"})," in your terminal."]})})]})}const yk=os("/models")({component:sae});function sae(){const{data:e}=sc.models.list.useQuery();return R.jsxs("div",{className:"p-8",children:[R.jsxs("div",{className:"mb-8",children:[R.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Available Models"}),R.jsx("p",{className:"text-muted-foreground",children:"AI models available through your configured providers"})]}),R.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:e==null?void 0:e.map(t=>R.jsxs(an,{children:[R.jsxs(sn,{children:[R.jsx(un,{className:"text-lg",children:t.name}),R.jsx(Y0,{children:t.provider})]}),R.jsx(ln,{children:R.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})})]},`${t.provider}-${t.id}`))})]})}const mk=os("/usage")({component:uae});function uae(){return R.jsxs("div",{className:"p-8",children:[R.jsxs("div",{className:"mb-8",children:[R.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Usage Analytics"}),R.jsx("p",{className:"text-muted-foreground",children:"Detailed usage statistics and history"})]}),R.jsxs(an,{children:[R.jsx(sn,{children:R.jsx(un,{children:"Usage History"})}),R.jsx(ln,{children:R.jsx("p",{className:"text-muted-foreground",children:"Detailed usage table coming soon..."})})]})]})}Object.assign(pk.options,{path:"/",getParentRoute:()=>lc});Object.assign(vk.options,{path:"/config",getParentRoute:()=>lc});Object.assign(yk.options,{path:"/models",getParentRoute:()=>lc});Object.assign(mk.options,{path:"/usage",getParentRoute:()=>lc});const lae=lc.addChildren([pk,vk,yk,mk]),cae=RD({routeTree:lae});function fae(){return R.jsx(LD,{router:cae})}const K_=new lI({defaultOptions:{queries:{staleTime:1e3*60*5}}});Uv.createRoot(document.getElementById("root")).render(R.jsx(C.StrictMode,{children:R.jsx(sc.Provider,{client:GR,queryClient:K_,children:R.jsx(vI,{client:K_,children:R.jsx(fae,{})})})}));