UNPKG

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

225 lines 763 kB
var ax=e=>{throw TypeError(e)};var $p=(e,t,r)=>t.has(e)||ax("Cannot "+r);var $=(e,t,r)=>($p(e,t,"read from private field"),r?r.call(e):t.get(e)),te=(e,t,r)=>t.has(e)?ax("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Q=(e,t,r,n)=>($p(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ae=(e,t,r)=>($p(e,t,"access private method"),r);var Sc=(e,t,r,n)=>({set _(i){Q(e,t,i,r)},get _(){return $(e,t,n)}});function _k(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 Oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d_={exports:{}},ch={},h_={exports:{}},de={};/**
 * @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 tc=Symbol.for("react.element"),Ak=Symbol.for("react.portal"),Ek=Symbol.for("react.fragment"),jk=Symbol.for("react.strict_mode"),Ck=Symbol.for("react.profiler"),$k=Symbol.for("react.provider"),Tk=Symbol.for("react.context"),kk=Symbol.for("react.forward_ref"),Mk=Symbol.for("react.suspense"),Ik=Symbol.for("react.memo"),Rk=Symbol.for("react.lazy"),sx=Symbol.iterator;function Nk(e){return e===null||typeof e!="object"?null:(e=sx&&e[sx]||e["@@iterator"],typeof e=="function"?e:null)}var p_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v_=Object.assign,y_={};function Ns(e,t,r){this.props=e,this.context=t,this.refs=y_,this.updater=r||p_}Ns.prototype.isReactComponent={};Ns.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")};Ns.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function m_(){}m_.prototype=Ns.prototype;function Ug(e,t,r){this.props=e,this.context=t,this.refs=y_,this.updater=r||p_}var Wg=Ug.prototype=new m_;Wg.constructor=Ug;v_(Wg,Ns.prototype);Wg.isPureReactComponent=!0;var ux=Array.isArray,g_=Object.prototype.hasOwnProperty,qg={current:null},b_={key:!0,ref:!0,__self:!0,__source:!0};function x_(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)g_.call(t,n)&&!b_.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:tc,type:e,key:o,ref:a,props:i,_owner:qg.current}}function Dk(e,t){return{$$typeof:tc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Hg(e){return typeof e=="object"&&e!==null&&e.$$typeof===tc}function Lk(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var lx=/\/+/g;function Tp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Lk(""+e.key):t.toString(36)}function lf(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 tc:case Ak:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+Tp(a,0):n,ux(i)?(r="",e!=null&&(r=e.replace(lx,"$&/")+"/"),lf(i,t,r,"",function(l){return l})):i!=null&&(Hg(i)&&(i=Dk(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(lx,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",ux(e))for(var s=0;s<e.length;s++){o=e[s];var u=n+Tp(o,s);a+=lf(o,t,r,u,i)}else if(u=Nk(e),typeof u=="function")for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=n+Tp(o,s++),a+=lf(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 Pc(e,t,r){if(e==null)return e;var n=[],i=0;return lf(e,n,"","",function(o){return t.call(r,o,i++)}),n}function Fk(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},cf={transition:null},Bk={ReactCurrentDispatcher:Lt,ReactCurrentBatchConfig:cf,ReactCurrentOwner:qg};function w_(){throw Error("act(...) is not supported in production builds of React.")}de.Children={map:Pc,forEach:function(e,t,r){Pc(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Pc(e,function(){t++}),t},toArray:function(e){return Pc(e,function(t){return t})||[]},only:function(e){if(!Hg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};de.Component=Ns;de.Fragment=Ek;de.Profiler=Ck;de.PureComponent=Ug;de.StrictMode=jk;de.Suspense=Mk;de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bk;de.act=w_;de.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=v_({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=qg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)g_.call(t,u)&&!b_.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:tc,type:e.type,key:i,ref:o,props:n,_owner:a}};de.createContext=function(e){return e={$$typeof:Tk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$k,_context:e},e.Consumer=e};de.createElement=x_;de.createFactory=function(e){var t=x_.bind(null,e);return t.type=e,t};de.createRef=function(){return{current:null}};de.forwardRef=function(e){return{$$typeof:kk,render:e}};de.isValidElement=Hg;de.lazy=function(e){return{$$typeof:Rk,_payload:{_status:-1,_result:e},_init:Fk}};de.memo=function(e,t){return{$$typeof:Ik,type:e,compare:t===void 0?null:t}};de.startTransition=function(e){var t=cf.transition;cf.transition={};try{e()}finally{cf.transition=t}};de.unstable_act=w_;de.useCallback=function(e,t){return Lt.current.useCallback(e,t)};de.useContext=function(e){return Lt.current.useContext(e)};de.useDebugValue=function(){};de.useDeferredValue=function(e){return Lt.current.useDeferredValue(e)};de.useEffect=function(e,t){return Lt.current.useEffect(e,t)};de.useId=function(){return Lt.current.useId()};de.useImperativeHandle=function(e,t,r){return Lt.current.useImperativeHandle(e,t,r)};de.useInsertionEffect=function(e,t){return Lt.current.useInsertionEffect(e,t)};de.useLayoutEffect=function(e,t){return Lt.current.useLayoutEffect(e,t)};de.useMemo=function(e,t){return Lt.current.useMemo(e,t)};de.useReducer=function(e,t,r){return Lt.current.useReducer(e,t,r)};de.useRef=function(e){return Lt.current.useRef(e)};de.useState=function(e){return Lt.current.useState(e)};de.useSyncExternalStore=function(e,t,r){return Lt.current.useSyncExternalStore(e,t,r)};de.useTransition=function(){return Lt.current.useTransition()};de.version="18.3.1";h_.exports=de;var M=h_.exports;const T=Ae(M),zk=_k({__proto__:null,default:T},[M]);/**
 * @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 Uk=M,Wk=Symbol.for("react.element"),qk=Symbol.for("react.fragment"),Hk=Object.prototype.hasOwnProperty,Kk=Uk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vk={key:!0,ref:!0,__self:!0,__source:!0};function S_(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)Hk.call(t,n)&&!Vk.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:Wk,type:e,key:o,ref:a,props:i,_owner:Kk.current}}ch.Fragment=qk;ch.jsx=S_;ch.jsxs=S_;d_.exports=ch;var E=d_.exports,Hv={},O_={exports:{}},lr={},P_={exports:{}},__={};/**
 * @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(k,L){var z=k.length;k.push(L);e:for(;0<z;){var U=z-1>>>1,W=k[U];if(0<i(W,L))k[U]=L,k[z]=W,z=U;else break e}}function r(k){return k.length===0?null:k[0]}function n(k){if(k.length===0)return null;var L=k[0],z=k.pop();if(z!==L){k[0]=z;e:for(var U=0,W=k.length,H=W>>>1;U<H;){var X=2*(U+1)-1,Z=k[X],ne=X+1,he=k[ne];if(0>i(Z,z))ne<W&&0>i(he,Z)?(k[U]=he,k[ne]=z,U=ne):(k[U]=Z,k[X]=z,U=X);else if(ne<W&&0>i(he,z))k[U]=he,k[ne]=z,U=ne;else break e}}return L}function i(k,L){var z=k.sortIndex-L.sortIndex;return z!==0?z:k.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,v=!1,p=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(k){for(var L=r(l);L!==null;){if(L.callback===null)n(l);else if(L.startTime<=k)n(l),L.sortIndex=L.expirationTime,t(u,L);else break;L=r(l)}}function S(k){if(p=!1,b(k),!v)if(r(u)!==null)v=!0,R(x);else{var L=r(l);L!==null&&F(S,L.startTime-k)}}function x(k,L){v=!1,p&&(p=!1,y(P),P=-1),h=!0;var z=d;try{for(b(L),c=r(u);c!==null&&(!(c.expirationTime>L)||k&&!C());){var U=c.callback;if(typeof U=="function"){c.callback=null,d=c.priorityLevel;var W=U(c.expirationTime<=L);L=e.unstable_now(),typeof W=="function"?c.callback=W:c===r(u)&&n(u),b(L)}else n(u);c=r(u)}if(c!==null)var H=!0;else{var X=r(l);X!==null&&F(S,X.startTime-L),H=!1}return H}finally{c=null,d=z,h=!1}}var w=!1,O=null,P=-1,_=5,A=-1;function C(){return!(e.unstable_now()-A<_)}function j(){if(O!==null){var k=e.unstable_now();A=k;var L=!0;try{L=O(!0,k)}finally{L?I():(w=!1,O=null)}}else w=!1}var I;if(typeof g=="function")I=function(){g(j)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,D=N.port2;N.port1.onmessage=j,I=function(){D.postMessage(null)}}else I=function(){m(j,0)};function R(k){O=k,w||(w=!0,I())}function F(k,L){P=m(function(){k(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(k){k.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,R(x))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(u)},e.unstable_next=function(k){switch(d){case 1:case 2:case 3:var L=3;break;default:L=d}var z=d;d=L;try{return k()}finally{d=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,L){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var z=d;d=k;try{return L()}finally{d=z}},e.unstable_scheduleCallback=function(k,L,z){var U=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?U+z:U):z=U,k){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=z+W,k={id:f++,callback:L,priorityLevel:k,startTime:z,expirationTime:W,sortIndex:-1},z>U?(k.sortIndex=z,t(l,k),r(u)===null&&k===r(l)&&(p?(y(P),P=-1):p=!0,F(S,z-U))):(k.sortIndex=W,t(u,k),v||h||(v=!0,R(x))),k},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(k){var L=d;return function(){var z=d;d=L;try{return k.apply(this,arguments)}finally{d=z}}}})(__);P_.exports=__;var Gk=P_.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=M,ur=Gk;function V(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 A_=new Set,Gu={};function Uo(e,t){Ja(e,t),Ja(e+"Capture",t)}function Ja(e,t){for(Gu[e]=t,e=0;e<t.length;e++)A_.add(t[e])}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kv=Object.prototype.hasOwnProperty,Xk=/^[: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]*$/,cx={},fx={};function Yk(e){return Kv.call(fx,e)?!0:Kv.call(cx,e)?!1:Xk.test(e)?fx[e]=!0:(cx[e]=!0,!1)}function Zk(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 Jk(e,t,r,n){if(t===null||typeof t>"u"||Zk(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 mt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){mt[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];mt[t]=new Ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){mt[e]=new Ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){mt[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){mt[e]=new Ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){mt[e]=new Ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){mt[e]=new Ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){mt[e]=new Ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){mt[e]=new Ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kg=/[\-:]([a-z])/g;function Vg(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(Kg,Vg);mt[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(Kg,Vg);mt[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(Kg,Vg);mt[t]=new Ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){mt[e]=new Ft(e,1,!1,e.toLowerCase(),null,!1,!1)});mt.xlinkHref=new Ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){mt[e]=new Ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gg(e,t,r,n){var i=mt.hasOwnProperty(t)?mt[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Jk(t,r,i,n)&&(r=null),n||i===null?Yk(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 Xn=Qk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_c=Symbol.for("react.element"),aa=Symbol.for("react.portal"),sa=Symbol.for("react.fragment"),Qg=Symbol.for("react.strict_mode"),Vv=Symbol.for("react.profiler"),E_=Symbol.for("react.provider"),j_=Symbol.for("react.context"),Xg=Symbol.for("react.forward_ref"),Gv=Symbol.for("react.suspense"),Qv=Symbol.for("react.suspense_list"),Yg=Symbol.for("react.memo"),oi=Symbol.for("react.lazy"),C_=Symbol.for("react.offscreen"),dx=Symbol.iterator;function eu(e){return e===null||typeof e!="object"?null:(e=dx&&e[dx]||e["@@iterator"],typeof e=="function"?e:null)}var We=Object.assign,kp;function Ou(e){if(kp===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);kp=t&&t[1]||""}return`
`+kp+e}var Mp=!1;function Ip(e,t){if(!e||Mp)return"";Mp=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(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{Mp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ou(e):""}function e2(e){switch(e.tag){case 5:return Ou(e.type);case 16:return Ou("Lazy");case 13:return Ou("Suspense");case 19:return Ou("SuspenseList");case 0:case 2:case 15:return e=Ip(e.type,!1),e;case 11:return e=Ip(e.type.render,!1),e;case 1:return e=Ip(e.type,!0),e;default:return""}}function Xv(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 sa:return"Fragment";case aa:return"Portal";case Vv:return"Profiler";case Qg:return"StrictMode";case Gv:return"Suspense";case Qv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j_:return(e.displayName||"Context")+".Consumer";case E_:return(e._context.displayName||"Context")+".Provider";case Xg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yg:return t=e.displayName||null,t!==null?t:Xv(e.type)||"Memo";case oi:t=e._payload,e=e._init;try{return Xv(e(t))}catch{}}return null}function t2(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 Xv(t);case 8:return t===Qg?"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 Di(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function r2(e){var t=$_(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 Ac(e){e._valueTracker||(e._valueTracker=r2(e))}function T_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=$_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Af(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 Yv(e,t){var r=t.checked;return We({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function hx(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Di(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 k_(e,t){t=t.checked,t!=null&&Gg(e,"checked",t,!1)}function Zv(e,t){k_(e,t);var r=Di(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")?Jv(e,t.type,r):t.hasOwnProperty("defaultValue")&&Jv(e,t.type,Di(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function px(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 Jv(e,t,r){(t!=="number"||Af(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Pu=Array.isArray;function Pa(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=""+Di(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 ey(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return We({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function vx(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(V(92));if(Pu(r)){if(1<r.length)throw Error(V(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Di(r)}}function M_(e,t){var r=Di(t.value),n=Di(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 yx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function I_(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 ty(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?I_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ec,R_=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(Ec=Ec||document.createElement("div"),Ec.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ec.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var $u={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},n2=["Webkit","ms","Moz","O"];Object.keys($u).forEach(function(e){n2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$u[t]=$u[e]})});function N_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||$u.hasOwnProperty(e)&&$u[e]?(""+t).trim():t+"px"}function D_(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=N_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var i2=We({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 ry(e,t){if(t){if(i2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function ny(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 iy=null;function Zg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oy=null,_a=null,Aa=null;function mx(e){if(e=ic(e)){if(typeof oy!="function")throw Error(V(280));var t=e.stateNode;t&&(t=vh(t),oy(e.stateNode,e.type,t))}}function L_(e){_a?Aa?Aa.push(e):Aa=[e]:_a=e}function F_(){if(_a){var e=_a,t=Aa;if(Aa=_a=null,mx(e),t)for(e=0;e<t.length;e++)mx(t[e])}}function B_(e,t){return e(t)}function z_(){}var Rp=!1;function U_(e,t,r){if(Rp)return e(t,r);Rp=!0;try{return B_(e,t,r)}finally{Rp=!1,(_a!==null||Aa!==null)&&(z_(),F_())}}function Xu(e,t){var r=e.stateNode;if(r===null)return null;var n=vh(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(V(231,t,typeof r));return r}var ay=!1;if(Wn)try{var tu={};Object.defineProperty(tu,"passive",{get:function(){ay=!0}}),window.addEventListener("test",tu,tu),window.removeEventListener("test",tu,tu)}catch{ay=!1}function o2(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 Tu=!1,Ef=null,jf=!1,sy=null,a2={onError:function(e){Tu=!0,Ef=e}};function s2(e,t,r,n,i,o,a,s,u){Tu=!1,Ef=null,o2.apply(a2,arguments)}function u2(e,t,r,n,i,o,a,s,u){if(s2.apply(this,arguments),Tu){if(Tu){var l=Ef;Tu=!1,Ef=null}else throw Error(V(198));jf||(jf=!0,sy=l)}}function Wo(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 W_(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 gx(e){if(Wo(e)!==e)throw Error(V(188))}function l2(e){var t=e.alternate;if(!t){if(t=Wo(e),t===null)throw Error(V(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 gx(i),e;if(o===n)return gx(i),t;o=o.sibling}throw Error(V(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(V(189))}}if(r.alternate!==n)throw Error(V(190))}if(r.tag!==3)throw Error(V(188));return r.stateNode.current===r?e:t}function q_(e){return e=l2(e),e!==null?H_(e):null}function H_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=H_(e);if(t!==null)return t;e=e.sibling}return null}var K_=ur.unstable_scheduleCallback,bx=ur.unstable_cancelCallback,c2=ur.unstable_shouldYield,f2=ur.unstable_requestPaint,Xe=ur.unstable_now,d2=ur.unstable_getCurrentPriorityLevel,Jg=ur.unstable_ImmediatePriority,V_=ur.unstable_UserBlockingPriority,Cf=ur.unstable_NormalPriority,h2=ur.unstable_LowPriority,G_=ur.unstable_IdlePriority,fh=null,pn=null;function p2(e){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(fh,e,void 0,(e.current.flags&128)===128)}catch{}}var Yr=Math.clz32?Math.clz32:m2,v2=Math.log,y2=Math.LN2;function m2(e){return e>>>=0,e===0?32:31-(v2(e)/y2|0)|0}var jc=64,Cc=4194304;function _u(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=_u(s):(o&=a,o!==0&&(n=_u(o)))}else a=r&~i,a!==0?n=_u(a):o!==0&&(n=_u(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-Yr(t),i=1<<r,n|=e[r],t&=~i;return n}function g2(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 b2(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Yr(o),s=1<<a,u=i[a];u===-1?(!(s&r)||s&n)&&(i[a]=g2(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}function uy(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Q_(){var e=jc;return jc<<=1,!(jc&4194240)&&(jc=64),e}function Np(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function rc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Yr(t),e[t]=r}function x2(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-Yr(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function e0(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Yr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var _e=0;function X_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Y_,t0,Z_,J_,eA,ly=!1,$c=[],_i=null,Ai=null,Ei=null,Yu=new Map,Zu=new Map,ui=[],w2="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 xx(e,t){switch(e){case"focusin":case"focusout":_i=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":Ei=null;break;case"pointerover":case"pointerout":Yu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zu.delete(t.pointerId)}}function ru(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=ic(t),t!==null&&t0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function S2(e,t,r,n,i){switch(t){case"focusin":return _i=ru(_i,e,t,r,n,i),!0;case"dragenter":return Ai=ru(Ai,e,t,r,n,i),!0;case"mouseover":return Ei=ru(Ei,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Yu.set(o,ru(Yu.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Zu.set(o,ru(Zu.get(o)||null,e,t,r,n,i)),!0}return!1}function tA(e){var t=oo(e.target);if(t!==null){var r=Wo(t);if(r!==null){if(t=r.tag,t===13){if(t=W_(r),t!==null){e.blockedOn=t,eA(e.priority,function(){Z_(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 ff(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=cy(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);iy=n,r.target.dispatchEvent(n),iy=null}else return t=ic(r),t!==null&&t0(t),e.blockedOn=r,!1;t.shift()}return!0}function wx(e,t,r){ff(e)&&r.delete(t)}function O2(){ly=!1,_i!==null&&ff(_i)&&(_i=null),Ai!==null&&ff(Ai)&&(Ai=null),Ei!==null&&ff(Ei)&&(Ei=null),Yu.forEach(wx),Zu.forEach(wx)}function nu(e,t){e.blockedOn===t&&(e.blockedOn=null,ly||(ly=!0,ur.unstable_scheduleCallback(ur.unstable_NormalPriority,O2)))}function Ju(e){function t(i){return nu(i,e)}if(0<$c.length){nu($c[0],e);for(var r=1;r<$c.length;r++){var n=$c[r];n.blockedOn===e&&(n.blockedOn=null)}}for(_i!==null&&nu(_i,e),Ai!==null&&nu(Ai,e),Ei!==null&&nu(Ei,e),Yu.forEach(t),Zu.forEach(t),r=0;r<ui.length;r++)n=ui[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<ui.length&&(r=ui[0],r.blockedOn===null);)tA(r),r.blockedOn===null&&ui.shift()}var Ea=Xn.ReactCurrentBatchConfig,Tf=!0;function P2(e,t,r,n){var i=_e,o=Ea.transition;Ea.transition=null;try{_e=1,r0(e,t,r,n)}finally{_e=i,Ea.transition=o}}function _2(e,t,r,n){var i=_e,o=Ea.transition;Ea.transition=null;try{_e=4,r0(e,t,r,n)}finally{_e=i,Ea.transition=o}}function r0(e,t,r,n){if(Tf){var i=cy(e,t,r,n);if(i===null)Kp(e,t,n,kf,r),xx(e,n);else if(S2(i,e,t,r,n))n.stopPropagation();else if(xx(e,n),t&4&&-1<w2.indexOf(e)){for(;i!==null;){var o=ic(i);if(o!==null&&Y_(o),o=cy(e,t,r,n),o===null&&Kp(e,t,n,kf,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else Kp(e,t,n,null,r)}}var kf=null;function cy(e,t,r,n){if(kf=null,e=Zg(n),e=oo(e),e!==null)if(t=Wo(e),t===null)e=null;else if(r=t.tag,r===13){if(e=W_(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 kf=e,null}function rA(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(d2()){case Jg:return 1;case V_:return 4;case Cf:case h2:return 16;case G_:return 536870912;default:return 16}default:return 16}}var Si=null,n0=null,df=null;function nA(){if(df)return df;var e,t=n0,r=t.length,n,i="value"in Si?Si.value:Si.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 df=i.slice(e,1<n?1-n:void 0)}function hf(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 Tc(){return!0}function Sx(){return!1}function cr(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)?Tc:Sx,this.isPropagationStopped=Sx,this}return We(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=Tc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Tc)},persist:function(){},isPersistent:Tc}),t}var Ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},i0=cr(Ds),nc=We({},Ds,{view:0,detail:0}),A2=cr(nc),Dp,Lp,iu,dh=We({},nc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:o0,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!==iu&&(iu&&e.type==="mousemove"?(Dp=e.screenX-iu.screenX,Lp=e.screenY-iu.screenY):Lp=Dp=0,iu=e),Dp)},movementY:function(e){return"movementY"in e?e.movementY:Lp}}),Ox=cr(dh),E2=We({},dh,{dataTransfer:0}),j2=cr(E2),C2=We({},nc,{relatedTarget:0}),Fp=cr(C2),$2=We({},Ds,{animationName:0,elapsedTime:0,pseudoElement:0}),T2=cr($2),k2=We({},Ds,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),M2=cr(k2),I2=We({},Ds,{data:0}),Px=cr(I2),R2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N2={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"},D2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=D2[e])?!!t[e]:!1}function o0(){return L2}var F2=We({},nc,{key:function(e){if(e.key){var t=R2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?N2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:o0,charCode:function(e){return e.type==="keypress"?hf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),B2=cr(F2),z2=We({},dh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_x=cr(z2),U2=We({},nc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:o0}),W2=cr(U2),q2=We({},Ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),H2=cr(q2),K2=We({},dh,{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}),V2=cr(K2),G2=[9,13,27,32],a0=Wn&&"CompositionEvent"in window,ku=null;Wn&&"documentMode"in document&&(ku=document.documentMode);var Q2=Wn&&"TextEvent"in window&&!ku,iA=Wn&&(!a0||ku&&8<ku&&11>=ku),Ax=" ",Ex=!1;function oA(e,t){switch(e){case"keyup":return G2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ua=!1;function X2(e,t){switch(e){case"compositionend":return aA(t);case"keypress":return t.which!==32?null:(Ex=!0,Ax);case"textInput":return e=t.data,e===Ax&&Ex?null:e;default:return null}}function Y2(e,t){if(ua)return e==="compositionend"||!a0&&oA(e,t)?(e=nA(),df=n0=Si=null,ua=!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 iA&&t.locale!=="ko"?null:t.data;default:return null}}var Z2={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 jx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Z2[e.type]:t==="textarea"}function sA(e,t,r,n){L_(n),t=Mf(t,"onChange"),0<t.length&&(r=new i0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Mu=null,el=null;function J2(e){gA(e,0)}function hh(e){var t=fa(e);if(T_(t))return e}function eM(e,t){if(e==="change")return t}var uA=!1;if(Wn){var Bp;if(Wn){var zp="oninput"in document;if(!zp){var Cx=document.createElement("div");Cx.setAttribute("oninput","return;"),zp=typeof Cx.oninput=="function"}Bp=zp}else Bp=!1;uA=Bp&&(!document.documentMode||9<document.documentMode)}function $x(){Mu&&(Mu.detachEvent("onpropertychange",lA),el=Mu=null)}function lA(e){if(e.propertyName==="value"&&hh(el)){var t=[];sA(t,el,e,Zg(e)),U_(J2,t)}}function tM(e,t,r){e==="focusin"?($x(),Mu=t,el=r,Mu.attachEvent("onpropertychange",lA)):e==="focusout"&&$x()}function rM(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hh(el)}function nM(e,t){if(e==="click")return hh(t)}function iM(e,t){if(e==="input"||e==="change")return hh(t)}function oM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:oM;function tl(e,t){if(en(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(!Kv.call(t,i)||!en(e[i],t[i]))return!1}return!0}function Tx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kx(e,t){var r=Tx(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=Tx(r)}}function cA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fA(){for(var e=window,t=Af();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Af(e.document)}return t}function s0(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 aM(e){var t=fA(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&cA(r.ownerDocument.documentElement,r)){if(n!==null&&s0(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=kx(r,o);var a=kx(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 sM=Wn&&"documentMode"in document&&11>=document.documentMode,la=null,fy=null,Iu=null,dy=!1;function Mx(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;dy||la==null||la!==Af(n)||(n=la,"selectionStart"in n&&s0(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}),Iu&&tl(Iu,n)||(Iu=n,n=Mf(fy,"onSelect"),0<n.length&&(t=new i0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=la)))}function kc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ca={animationend:kc("Animation","AnimationEnd"),animationiteration:kc("Animation","AnimationIteration"),animationstart:kc("Animation","AnimationStart"),transitionend:kc("Transition","TransitionEnd")},Up={},dA={};Wn&&(dA=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function ph(e){if(Up[e])return Up[e];if(!ca[e])return e;var t=ca[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in dA)return Up[e]=t[r];return e}var hA=ph("animationend"),pA=ph("animationiteration"),vA=ph("animationstart"),yA=ph("transitionend"),mA=new Map,Ix="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 Bi(e,t){mA.set(e,t),Uo(t,[e])}for(var Wp=0;Wp<Ix.length;Wp++){var qp=Ix[Wp],uM=qp.toLowerCase(),lM=qp[0].toUpperCase()+qp.slice(1);Bi(uM,"on"+lM)}Bi(hA,"onAnimationEnd");Bi(pA,"onAnimationIteration");Bi(vA,"onAnimationStart");Bi("dblclick","onDoubleClick");Bi("focusin","onFocus");Bi("focusout","onBlur");Bi(yA,"onTransitionEnd");Ja("onMouseEnter",["mouseout","mouseover"]);Ja("onMouseLeave",["mouseout","mouseover"]);Ja("onPointerEnter",["pointerout","pointerover"]);Ja("onPointerLeave",["pointerout","pointerover"]);Uo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Uo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Uo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Uo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Uo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Uo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Au="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(" "),cM=new Set("cancel close invalid load scroll toggle".split(" ").concat(Au));function Rx(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,u2(n,t,void 0,e),e.currentTarget=null}function gA(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;Rx(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;Rx(i,s,l),o=u}}}if(jf)throw e=sy,jf=!1,sy=null,e}function Re(e,t){var r=t[my];r===void 0&&(r=t[my]=new Set);var n=e+"__bubble";r.has(n)||(bA(t,e,2,!1),r.add(n))}function Hp(e,t,r){var n=0;t&&(n|=4),bA(r,e,n,t)}var Mc="_reactListening"+Math.random().toString(36).slice(2);function rl(e){if(!e[Mc]){e[Mc]=!0,A_.forEach(function(r){r!=="selectionchange"&&(cM.has(r)||Hp(r,!1,e),Hp(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mc]||(t[Mc]=!0,Hp("selectionchange",!1,t))}}function bA(e,t,r,n){switch(rA(t)){case 1:var i=P2;break;case 4:i=_2;break;default:i=r0}r=i.bind(null,t,r,e),i=void 0,!ay||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Kp(e,t,r,n,i){var 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=oo(s),a===null)return;if(u=a.tag,u===5||u===6){n=o=a;continue e}s=s.parentNode}}n=n.return}U_(function(){var l=o,f=Zg(r),c=[];e:{var d=mA.get(e);if(d!==void 0){var h=i0,v=e;switch(e){case"keypress":if(hf(r)===0)break e;case"keydown":case"keyup":h=B2;break;case"focusin":v="focus",h=Fp;break;case"focusout":v="blur",h=Fp;break;case"beforeblur":case"afterblur":h=Fp;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=Ox;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=j2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=W2;break;case hA:case pA:case vA:h=T2;break;case yA:h=H2;break;case"scroll":h=A2;break;case"wheel":h=V2;break;case"copy":case"cut":case"paste":h=M2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=_x}var p=(t&4)!==0,m=!p&&e==="scroll",y=p?d!==null?d+"Capture":null:d;p=[];for(var g=l,b;g!==null;){b=g;var S=b.stateNode;if(b.tag===5&&S!==null&&(b=S,y!==null&&(S=Xu(g,y),S!=null&&p.push(nl(g,S,b)))),m)break;g=g.return}0<p.length&&(d=new h(d,v,null,r,f),c.push({event:d,listeners:p}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&r!==iy&&(v=r.relatedTarget||r.fromElement)&&(oo(v)||v[qn]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(v=r.relatedTarget||r.toElement,h=l,v=v?oo(v):null,v!==null&&(m=Wo(v),v!==m||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=l),h!==v)){if(p=Ox,S="onMouseLeave",y="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(p=_x,S="onPointerLeave",y="onPointerEnter",g="pointer"),m=h==null?d:fa(h),b=v==null?d:fa(v),d=new p(S,g+"leave",h,r,f),d.target=m,d.relatedTarget=b,S=null,oo(f)===l&&(p=new p(y,g+"enter",v,r,f),p.target=b,p.relatedTarget=m,S=p),m=S,h&&v)t:{for(p=h,y=v,g=0,b=p;b;b=Zo(b))g++;for(b=0,S=y;S;S=Zo(S))b++;for(;0<g-b;)p=Zo(p),g--;for(;0<b-g;)y=Zo(y),b--;for(;g--;){if(p===y||y!==null&&p===y.alternate)break t;p=Zo(p),y=Zo(y)}p=null}else p=null;h!==null&&Nx(c,d,h,p,!1),v!==null&&m!==null&&Nx(c,m,v,p,!0)}}e:{if(d=l?fa(l):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var x=eM;else if(jx(d))if(uA)x=iM;else{x=rM;var w=tM}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(x=nM);if(x&&(x=x(e,l))){sA(c,x,r,f);break e}w&&w(e,d,l),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&Jv(d,"number",d.value)}switch(w=l?fa(l):window,e){case"focusin":(jx(w)||w.contentEditable==="true")&&(la=w,fy=l,Iu=null);break;case"focusout":Iu=fy=la=null;break;case"mousedown":dy=!0;break;case"contextmenu":case"mouseup":case"dragend":dy=!1,Mx(c,r,f);break;case"selectionchange":if(sM)break;case"keydown":case"keyup":Mx(c,r,f)}var O;if(a0)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else ua?oA(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(iA&&r.locale!=="ko"&&(ua||P!=="onCompositionStart"?P==="onCompositionEnd"&&ua&&(O=nA()):(Si=f,n0="value"in Si?Si.value:Si.textContent,ua=!0)),w=Mf(l,P),0<w.length&&(P=new Px(P,e,null,r,f),c.push({event:P,listeners:w}),O?P.data=O:(O=aA(r),O!==null&&(P.data=O)))),(O=Q2?X2(e,r):Y2(e,r))&&(l=Mf(l,"onBeforeInput"),0<l.length&&(f=new Px("onBeforeInput","beforeinput",null,r,f),c.push({event:f,listeners:l}),f.data=O))}gA(c,t)})}function nl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Mf(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Xu(e,r),o!=null&&n.unshift(nl(e,o,i)),o=Xu(e,t),o!=null&&n.push(nl(e,o,i))),e=e.return}return n}function Zo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Nx(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=Xu(r,o),u!=null&&a.unshift(nl(r,u,s))):i||(u=Xu(r,o),u!=null&&a.push(nl(r,u,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var fM=/\r\n?/g,dM=/\u0000|\uFFFD/g;function Dx(e){return(typeof e=="string"?e:""+e).replace(fM,`
`).replace(dM,"")}function Ic(e,t,r){if(t=Dx(t),Dx(e)!==t&&r)throw Error(V(425))}function If(){}var hy=null,py=null;function vy(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 yy=typeof setTimeout=="function"?setTimeout:void 0,hM=typeof clearTimeout=="function"?clearTimeout:void 0,Lx=typeof Promise=="function"?Promise:void 0,pM=typeof queueMicrotask=="function"?queueMicrotask:typeof Lx<"u"?function(e){return Lx.resolve(null).then(e).catch(vM)}:yy;function vM(e){setTimeout(function(){throw e})}function Vp(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),Ju(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Ju(t)}function ji(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 Fx(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 Ls=Math.random().toString(36).slice(2),dn="__reactFiber$"+Ls,il="__reactProps$"+Ls,qn="__reactContainer$"+Ls,my="__reactEvents$"+Ls,yM="__reactListeners$"+Ls,mM="__reactHandles$"+Ls;function oo(e){var t=e[dn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[qn]||r[dn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Fx(e);e!==null;){if(r=e[dn])return r;e=Fx(e)}return t}e=r,r=e.parentNode}return null}function ic(e){return e=e[dn]||e[qn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function vh(e){return e[il]||null}var gy=[],da=-1;function zi(e){return{current:e}}function Le(e){0>da||(e.current=gy[da],gy[da]=null,da--)}function ke(e,t){da++,gy[da]=e.current,e.current=t}var Li={},jt=zi(Li),Ht=zi(!1),jo=Li;function es(e,t){var r=e.type.contextTypes;if(!r)return Li;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 Rf(){Le(Ht),Le(jt)}function Bx(e,t,r){if(jt.current!==Li)throw Error(V(168));ke(jt,t),ke(Ht,r)}function xA(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(V(108,t2(e)||"Unknown",i));return We({},r,n)}function Nf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Li,jo=jt.current,ke(jt,e),ke(Ht,Ht.current),!0}function zx(e,t,r){var n=e.stateNode;if(!n)throw Error(V(169));r?(e=xA(e,t,jo),n.__reactInternalMemoizedMergedChildContext=e,Le(Ht),Le(jt),ke(jt,e)):Le(Ht),ke(Ht,r)}var jn=null,yh=!1,Gp=!1;function wA(e){jn===null?jn=[e]:jn.push(e)}function gM(e){yh=!0,wA(e)}function Ui(){if(!Gp&&jn!==null){Gp=!0;var e=0,t=_e;try{var r=jn;for(_e=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}jn=null,yh=!1}catch(i){throw jn!==null&&(jn=jn.slice(e+1)),K_(Jg,Ui),i}finally{_e=t,Gp=!1}}return null}var ha=[],pa=0,Df=null,Lf=0,wr=[],Sr=0,Co=null,Tn=1,kn="";function Zi(e,t){ha[pa++]=Lf,ha[pa++]=Df,Df=e,Lf=t}function SA(e,t,r){wr[Sr++]=Tn,wr[Sr++]=kn,wr[Sr++]=Co,Co=e;var n=Tn;e=kn;var i=32-Yr(n)-1;n&=~(1<<i),r+=1;var o=32-Yr(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Tn=1<<32-Yr(t)+i|r<<i|n,kn=o+e}else Tn=1<<o|r<<i|n,kn=e}function u0(e){e.return!==null&&(Zi(e,1),SA(e,1,0))}function l0(e){for(;e===Df;)Df=ha[--pa],ha[pa]=null,Lf=ha[--pa],ha[pa]=null;for(;e===Co;)Co=wr[--Sr],wr[Sr]=null,kn=wr[--Sr],wr[Sr]=null,Tn=wr[--Sr],wr[Sr]=null}var or=null,ir=null,Fe=!1,Vr=null;function OA(e,t){var r=Ar(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 Ux(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,or=e,ir=ji(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,or=e,ir=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Co!==null?{id:Tn,overflow:kn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Ar(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,or=e,ir=null,!0):!1;default:return!1}}function by(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xy(e){if(Fe){var t=ir;if(t){var r=t;if(!Ux(e,t)){if(by(e))throw Error(V(418));t=ji(r.nextSibling);var n=or;t&&Ux(e,t)?OA(n,r):(e.flags=e.flags&-4097|2,Fe=!1,or=e)}}else{if(by(e))throw Error(V(418));e.flags=e.flags&-4097|2,Fe=!1,or=e}}}function Wx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;or=e}function Rc(e){if(e!==or)return!1;if(!Fe)return Wx(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!vy(e.type,e.memoizedProps)),t&&(t=ir)){if(by(e))throw PA(),Error(V(418));for(;t;)OA(e,t),t=ji(t.nextSibling)}if(Wx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ir=ji(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ir=null}}else ir=or?ji(e.stateNode.nextSibling):null;return!0}function PA(){for(var e=ir;e;)e=ji(e.nextSibling)}function ts(){ir=or=null,Fe=!1}function c0(e){Vr===null?Vr=[e]:Vr.push(e)}var bM=Xn.ReactCurrentBatchConfig;function ou(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(V(309));var n=r.stateNode}if(!n)throw Error(V(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(V(284));if(!r._owner)throw Error(V(290,e))}return e}function Nc(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qx(e){var t=e._init;return t(e._payload)}function _A(e){function t(y,g){if(e){var b=y.deletions;b===null?(y.deletions=[g],y.flags|=16):b.push(g)}}function r(y,g){if(!e)return null;for(;g!==null;)t(y,g),g=g.sibling;return null}function n(y,g){for(y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(y,g){return y=ki(y,g),y.index=0,y.sibling=null,y}function o(y,g,b){return y.index=b,e?(b=y.alternate,b!==null?(b=b.index,b<g?(y.flags|=2,g):b):(y.flags|=2,g)):(y.flags|=1048576,g)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,g,b,S){return g===null||g.tag!==6?(g=tv(b,y.mode,S),g.return=y,g):(g=i(g,b),g.return=y,g)}function u(y,g,b,S){var x=b.type;return x===sa?f(y,g,b.props.children,S,b.key):g!==null&&(g.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===oi&&qx(x)===g.type)?(S=i(g,b.props),S.ref=ou(y,g,b),S.return=y,S):(S=xf(b.type,b.key,b.props,null,y.mode,S),S.ref=ou(y,g,b),S.return=y,S)}function l(y,g,b,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=rv(b,y.mode,S),g.return=y,g):(g=i(g,b.children||[]),g.return=y,g)}function f(y,g,b,S,x){return g===null||g.tag!==7?(g=Oo(b,y.mode,S,x),g.return=y,g):(g=i(g,b),g.return=y,g)}function c(y,g,b){if(typeof g=="string"&&g!==""||typeof g=="number")return g=tv(""+g,y.mode,b),g.return=y,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case _c:return b=xf(g.type,g.key,g.props,null,y.mode,b),b.ref=ou(y,null,g),b.return=y,b;case aa:return g=rv(g,y.mode,b),g.return=y,g;case oi:var S=g._init;return c(y,S(g._payload),b)}if(Pu(g)||eu(g))return g=Oo(g,y.mode,b,null),g.return=y,g;Nc(y,g)}return null}function d(y,g,b,S){var x=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return x!==null?null:s(y,g,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case _c:return b.key===x?u(y,g,b,S):null;case aa:return b.key===x?l(y,g,b,S):null;case oi:return x=b._init,d(y,g,x(b._payload),S)}if(Pu(b)||eu(b))return x!==null?null:f(y,g,b,S,null);Nc(y,b)}return null}function h(y,g,b,S,x){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(b)||null,s(g,y,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case _c:return y=y.get(S.key===null?b:S.key)||null,u(g,y,S,x);case aa:return y=y.get(S.key===null?b:S.key)||null,l(g,y,S,x);case oi:var w=S._init;return h(y,g,b,w(S._payload),x)}if(Pu(S)||eu(S))return y=y.get(b)||null,f(g,y,S,x,null);Nc(g,S)}return null}function v(y,g,b,S){for(var x=null,w=null,O=g,P=g=0,_=null;O!==null&&P<b.length;P++){O.index>P?(_=O,O=null):_=O.sibling;var A=d(y,O,b[P],S);if(A===null){O===null&&(O=_);break}e&&O&&A.alternate===null&&t(y,O),g=o(A,g,P),w===null?x=A:w.sibling=A,w=A,O=_}if(P===b.length)return r(y,O),Fe&&Zi(y,P),x;if(O===null){for(;P<b.length;P++)O=c(y,b[P],S),O!==null&&(g=o(O,g,P),w===null?x=O:w.sibling=O,w=O);return Fe&&Zi(y,P),x}for(O=n(y,O);P<b.length;P++)_=h(O,y,P,b[P],S),_!==null&&(e&&_.alternate!==null&&O.delete(_.key===null?P:_.key),g=o(_,g,P),w===null?x=_:w.sibling=_,w=_);return e&&O.forEach(function(C){return t(y,C)}),Fe&&Zi(y,P),x}function p(y,g,b,S){var x=eu(b);if(typeof x!="function")throw Error(V(150));if(b=x.call(b),b==null)throw Error(V(151));for(var w=x=null,O=g,P=g=0,_=null,A=b.next();O!==null&&!A.done;P++,A=b.next()){O.index>P?(_=O,O=null):_=O.sibling;var C=d(y,O,A.value,S);if(C===null){O===null&&(O=_);break}e&&O&&C.alternate===null&&t(y,O),g=o(C,g,P),w===null?x=C:w.sibling=C,w=C,O=_}if(A.done)return r(y,O),Fe&&Zi(y,P),x;if(O===null){for(;!A.done;P++,A=b.next())A=c(y,A.value,S),A!==null&&(g=o(A,g,P),w===null?x=A:w.sibling=A,w=A);return Fe&&Zi(y,P),x}for(O=n(y,O);!A.done;P++,A=b.next())A=h(O,y,P,A.value,S),A!==null&&(e&&A.alternate!==null&&O.delete(A.key===null?P:A.key),g=o(A,g,P),w===null?x=A:w.sibling=A,w=A);return e&&O.forEach(function(j){return t(y,j)}),Fe&&Zi(y,P),x}function m(y,g,b,S){if(typeof b=="object"&&b!==null&&b.type===sa&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case _c:e:{for(var x=b.key,w=g;w!==null;){if(w.key===x){if(x=b.type,x===sa){if(w.tag===7){r(y,w.sibling),g=i(w,b.props.children),g.return=y,y=g;break e}}else if(w.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===oi&&qx(x)===w.type){r(y,w.sibling),g=i(w,b.props),g.ref=ou(y,w,b),g.return=y,y=g;break e}r(y,w);break}else t(y,w);w=w.sibling}b.type===sa?(g=Oo(b.props.children,y.mode,S,b.key),g.return=y,y=g):(S=xf(b.type,b.key,b.props,null,y.mode,S),S.ref=ou(y,g,b),S.return=y,y=S)}return a(y);case aa:e:{for(w=b.key;g!==null;){if(g.key===w)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){r(y,g.sibling),g=i(g,b.children||[]),g.return=y,y=g;break e}else{r(y,g);break}else t(y,g);g=g.sibling}g=rv(b,y.mode,S),g.return=y,y=g}return a(y);case oi:return w=b._init,m(y,g,w(b._payload),S)}if(Pu(b))return v(y,g,b,S);if(eu(b))return p(y,g,b,S);Nc(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(r(y,g.sibling),g=i(g,b),g.return=y,y=g):(r(y,g),g=tv(b,y.mode,S),g.return=y,y=g),a(y)):r(y,g)}return m}var rs=_A(!0),AA=_A(!1),Ff=zi(null),Bf=null,va=null,f0=null;function d0(){f0=va=Bf=null}function h0(e){var t=Ff.current;Le(Ff),e._currentValue=t}function wy(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 ja(e,t){Bf=e,f0=va=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wt=!0),e.firstContext=null)}function Cr(e){var t=e._currentValue;if(f0!==e)if(e={context:e,memoizedValue:t,next:null},va===null){if(Bf===null)throw Error(V(308));va=e,Bf.dependencies={lanes:0,firstContext:e}}else va=va.next=e;return t}var ao=null;function p0(e){ao===null?ao=[e]:ao.push(e)}function EA(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,p0(t)):(r.next=i.next,i.next=r),t.interleaved=r,Hn(e,n)}function Hn(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 ai=!1;function v0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jA(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 Nn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ci(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,Hn(e,r)}return i=n.interleaved,i===null?(t.next=t,p0(n)):(t.next=i.next,i.next=t),n.interleaved=t,Hn(e,r)}function pf(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,e0(e,r)}}function Hx(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 zf(e,t,r,n){var i=e.updateQueue;ai=!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 v=e,p=s;switch(d=t,h=r,p.tag){case 1:if(v=p.payload,typeof v=="function"){c=v.call(h,c,d);break e}c=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,d=typeof v=="function"?v.call(h,c,d):v,d==null)break e;c=We({},c,d);break e;case 2:ai=!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);To|=a,e.lanes=a,e.memoizedState=c}}function Kx(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(V(191,i));i.call(n)}}}var oc={},vn=zi(oc),ol=zi(oc),al=zi(oc);function so(e){if(e===oc)throw Error(V(174));return e}function y0(e,t){switch(ke(al,t),ke(ol,e),ke(vn,oc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ty(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ty(t,e)}Le(vn),ke(vn,t)}function ns(){Le(vn),Le(ol),Le(al)}function CA(e){so(al.current);var t=so(vn.current),r=ty(t,e.type);t!==r&&(ke(ol,e),ke(vn,r))}function m0(e){ol.current===e&&(Le(vn),Le(ol))}var ze=zi(0);function Uf(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 Qp=[];function g0(){for(var e=0;e<Qp.length;e++)Qp[e]._workInProgressVersionPrimary=null;Qp.length=0}var vf=Xn.ReactCurrentDispatcher,Xp=Xn.ReactCurrentBatchConfig,$o=0,Ue=null,nt=null,ct=null,Wf=!1,Ru=!1,sl=0,xM=0;function wt(){throw Error(V(321))}function b0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!en(e[r],t[r]))return!1;return!0}function x0(e,t,r,n,i,o){if($o=o,Ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vf.current=e===null||e.memoizedState===null?PM:_M,e=r(n,i),Ru){o=0;do{if(Ru=!1,sl=0,25<=o)throw Error(V(301));o+=1,ct=nt=null,t.updateQueue=null,vf.current=AM,e=r(n,i)}while(Ru)}if(vf.current=qf,t=nt!==null&&nt.next!==null,$o=0,ct=nt=Ue=null,Wf=!1,t)throw Error(V(300));return e}function w0(){var e=sl!==0;return sl=0,e}function sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Ue.memoizedState=ct=e:ct=ct.next=e,ct}function $r(){if(nt===null){var e=Ue.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=ct===null?Ue.memoizedState:ct.next;if(t!==null)ct=t,nt=e;else{if(e===null)throw Error(V(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},ct===null?Ue.memoizedState=ct=e:ct=ct.next=e}return ct}function ul(e,t){return typeof t=="function"?t(e):t}function Yp(e){var t=$r(),r=t.queue;if(r===null)throw Error(V(311));r.lastRenderedReducer=e;var n=nt,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(($o&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,Ue.lanes|=f,To|=f}l=l.next}while(l!==null&&l!==o);u===null?a=n:u.next=s,en(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,Ue.lanes|=o,To|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Zp(e){var t=$r(),r=t.queue;if(r===null)throw Error(V(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);en(o,t.memoizedState)||(Wt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function $A(){}function TA(e,t){var r=Ue,n=$r(),i=t(),o=!en(n.memoizedState,i);if(o&&(n.memoizedState=i,Wt=!0),n=n.queue,S0(IA.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||ct!==null&&ct.memoizedState.tag&1){if(r.flags|=2048,ll(9,MA.bind(null,r,n,i,t),void 0,null),dt===null)throw Error(V(349));$o&30||kA(r,t,i)}return i}function kA(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function MA(e,t,r,n){t.value=r,t.getSnapshot=n,RA(t)&&NA(e)}function IA(e,t,r){return r(function(){RA(t)&&NA(e)})}function RA(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!en(e,r)}catch{return!0}}function NA(e){var t=Hn(e,1);t!==null&&Zr(t,e,1,-1)}function Vx(e){var t=sn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:e},t.queue=e,e=e.dispatch=OM.bind(null,Ue,e),[t.memoizedState,e]}function ll(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Ue.updateQueue,t===null?(t={lastEffect:null,stores:null},Ue.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 DA(){return $r().memoizedState}function yf(e,t,r,n){var i=sn();Ue.flags|=e,i.memoizedState=ll(1|t,r,void 0,n===void 0?null:n)}function mh(e,t,r,n){var i=$r();n=n===void 0?null:n;var o=void 0;if(nt!==null){var a=nt.memoizedState;if(o=a.destroy,n!==null&&b0(n,a.deps)){i.memoizedState=ll(t,r,o,n);return}}Ue.flags|=e,i.memoizedState=ll(1|t,r,o,n)}function Gx(e,t){return yf(8390656,8,e,t)}function S0(e,t){return mh(2048,8,e,t)}function LA(e,t){return mh(4,2,e,t)}function FA(e,t){return mh(4,4,e,t)}function BA(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 zA(e,t,r){return r=r!=null?r.concat([e]):null,mh(4,4,BA.bind(null,t,e),r)}function O0(){}function UA(e,t){var r=$r();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&b0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function WA(e,t){var r=$r();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&b0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function qA(e,t,r){return $o&21?(en(r,t)||(r=Q_(),Ue.lanes|=r,To|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Wt=!0),e.memoizedState=r)}function wM(e,t){var r=_e;_e=r!==0&&4>r?r:4,e(!0);var n=Xp.transition;Xp.transition={};try{e(!1),t()}finally{_e=r,Xp.transition=n}}function HA(){return $r().memoizedState}function SM(e,t,r){var n=Ti(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},KA(e))VA(t,r);else if(r=EA(e,t,r,n),r!==null){var i=Dt();Zr(r,e,n,i),GA(r,t,n)}}function OM(e,t,r){var n=Ti(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(KA(e))VA(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,en(s,a)){var u=t.interleaved;u===null?(i.next=i,p0(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=EA(e,t,i,n),r!==null&&(i=Dt(),Zr(r,e,n,i),GA(r,t,n))}}function KA(e){var t=e.alternate;return e===Ue||t!==null&&t===Ue}function VA(e,t){Ru=Wf=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function GA(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,e0(e,r)}}var qf={readContext:Cr,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},PM={readContext:Cr,useCallback:function(e,t){return sn().memoizedState=[e,t===void 0?null:t],e},useContext:Cr,useEffect:Gx,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,yf(4194308,4,BA.bind(null,t,e),r)},useLayoutEffect:function(e,t){return yf(4194308,4,e,t)},useInsertionEffect:function(e,t){return yf(4,2,e,t)},useMemo:function(e,t){var r=sn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sn();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=SM.bind(null,Ue,e),[n.memoizedState,e]},useRef:function(e){var t=sn();return e={current:e},t.memoizedState=e},useState:Vx,useDebugValue:O0,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=Vx(!1),t=e[0];return e=wM.bind(null,e[1]),sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ue,i=sn();if(Fe){if(r===void 0)throw Error(V(407));r=r()}else{if(r=t(),dt===null)throw Error(V(349));$o&30||kA(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,Gx(IA.bind(null,n,o,e),[e]),n.flags|=2048,ll(9,MA.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=sn(),t=dt.identifierPrefix;if(Fe){var r=kn,n=Tn;r=(n&~(1<<32-Yr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=sl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=xM++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_M={readContext:Cr,useCallback:UA,useContext:Cr,useEffect:S0,useImperativeHandle:zA,useInsertionEffect:LA,useLayoutEffect:FA,useMemo:WA,useReducer:Yp,useRef:DA,useState:function(){return Yp(ul)},useDebugValue:O0,useDeferredValue:function(e){var t=$r();return qA(t,nt.memoizedState,e)},useTransition:function(){var e=Yp(ul)[0],t=$r().memoizedState;return[e,t]},useMutableSource:$A,useSyncExternalStore:TA,useId:HA,unstable_isNewReconciler:!1},AM={readContext:Cr,useCallback:UA,useContext:Cr,useEffect:S0,useImperativeHandle:zA,useInsertionEffect:LA,useLayoutEffect:FA,useMemo:WA,useReducer:Zp,useRef:DA,useState:function(){return Zp(ul)},useDebugValue:O0,useDeferredValue:function(e){var t=$r();return nt===null?t.memoizedState=e:qA(t,nt.memoizedState,e)},useTransition:function(){var e=Zp(ul)[0],t=$r().memoizedState;return[e,t]},useMutableSource:$A,useSyncExternalStore:TA,useId:HA,unstable_isNewReconciler:!1};function Br(e,t){if(e&&e.defaultProps){t=We({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Sy(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:We({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var gh={isMounted:function(e){return(e=e._reactInternals)?Wo(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Dt(),i=Ti(e),o=Nn(n,i);o.payload=t,r!=null&&(o.callback=r),t=Ci(e,o,i),t!==null&&(Zr(t,e,i,n),pf(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Dt(),i=Ti(e),o=Nn(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Ci(e,o,i),t!==null&&(Zr(t,e,i,n),pf(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Dt(),n=Ti(e),i=Nn(r,n);i.tag=2,t!=null&&(i.callback=t),t=Ci(e,i,n),t!==null&&(Zr(t,e,n,r),pf(t,e,n))}};function Qx(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?!tl(r,n)||!tl(i,o):!0}function QA(e,t,r){var n=!1,i=Li,o=t.contextType;return typeof o=="object"&&o!==null?o=Cr(o):(i=Kt(t)?jo:jt.current,n=t.contextTypes,o=(n=n!=null)?es(e,i):Li),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gh,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Xx(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&&gh.enqueueReplaceState(t,t.state,null)}function Oy(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},v0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Cr(o):(o=Kt(t)?jo:jt.current,i.context=es(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Sy(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&&gh.enqueueReplaceState(i,i.state,null),zf(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function is(e,t){try{var r="",n=t;do r+=e2(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 Jp(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Py(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var EM=typeof WeakMap=="function"?WeakMap:Map;function XA(e,t,r){r=Nn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Kf||(Kf=!0,Iy=n),Py(e,t)},r}function YA(e,t,r){r=Nn(-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(){Py(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Py(e,t),typeof n!="function"&&($i===null?$i=new Set([this]):$i.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function Yx(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new EM;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=zM.bind(null,e,t,r),t.then(e,e))}function Zx(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 Jx(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=Nn(-1,1),t.tag=2,Ci(r,t,1))),r.lanes|=1),e)}var jM=Xn.ReactCurrentOwner,Wt=!1;function kt(e,t,r,n){t.child=e===null?AA(t,null,r,n):rs(t,e.child,r,n)}function ew(e,t,r,n,i){r=r.render;var o=t.ref;return ja(t,i),n=x0(e,t,r,n,o,i),r=w0(),e!==null&&!Wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Kn(e,t,i)):(Fe&&r&&u0(t),t.flags|=1,kt(e,t,n,i),t.child)}function tw(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!T0(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,ZA(e,t,o,n,i)):(e=xf(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:tl,r(a,n)&&e.ref===t.ref)return Kn(e,t,i)}return t.flags|=1,e=ki(o,n),e.ref=t.ref,e.return=t,t.child=e}function ZA(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(tl(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,Kn(e,t,i)}return _y(e,t,r,n,i)}function JA(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(ma,Jt),Jt|=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(ma,Jt),Jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,ke(ma,Jt),Jt|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ke(ma,Jt),Jt|=n;return kt(e,t,i,r),t.child}function eE(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function _y(e,t,r,n,i){var o=Kt(r)?jo:jt.current;return o=es(t,o),ja(t,i),r=x0(e,t,r,n,o,i),n=w0(),e!==null&&!Wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Kn(e,t,i)):(Fe&&n&&u0(t),t.flags|=1,kt(e,t,r,i),t.child)}function rw(e,t,r,n,i){if(Kt(r)){var o=!0;Nf(t)}else o=!1;if(ja(t,i),t.stateNode===null)mf(e,t),QA(t,r,n),Oy(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=Cr(l):(l=Kt(r)?jo:jt.current,l=es(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)&&Xx(t,a,n,l),ai=!1;var d=t.memoizedState;a.state=d,zf(t,n,a,i),u=t.memoizedState,s!==n||d!==u||Ht.current||ai?(typeof f=="function"&&(Sy(t,r,f,n),u=t.memoizedState),(s=ai||Qx(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,jA(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Br(t.type,s),a.props=l,c=t.pendingProps,d=a.context,u=r.contextType,typeof u=="object"&&u!==null?u=Cr(u):(u=Kt(r)?jo:jt.current,u=es(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)&&Xx(t,a,n,u),ai=!1,d=t.memoizedState,a.state=d,zf(t,n,a,i);var v=t.memoizedState;s!==c||d!==v||Ht.current||ai?(typeof h=="function"&&(Sy(t,r,h,n),v=t.memoizedState),(l=ai||Qx(t,r,l,n,d,v,u)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,v,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,v,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=v),a.props=n,a.state=v,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 Ay(e,t,r,n,o,i)}function Ay(e,t,r,n,i,o){eE(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&zx(t,r,!1),Kn(e,t,o);n=t.stateNode,jM.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=rs(t,e.child,null,o),t.child=rs(t,null,s,o)):kt(e,t,s,o),t.memoizedState=n.state,i&&zx(t,r,!0),t.child}function tE(e){var t=e.stateNode;t.pendingContext?Bx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bx(e,t.context,!1),y0(e,t.containerInfo)}function nw(e,t,r,n,i){return ts(),c0(i),t.flags|=256,kt(e,t,r,n),t.child}var Ey={dehydrated:null,treeContext:null,retryLane:0};function jy(e){return{baseLanes:e,cachePool:null,transitions:null}}function rE(e,t,r){var n=t.pendingProps,i=ze.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(ze,i&1),e===null)return xy(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=wh(a,n,0,null),e=Oo(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=jy(r),t.memoizedState=Ey,e):P0(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return CM(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=ki(i,u),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=ki(s,o):(o=Oo(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?jy(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~r,t.memoizedState=Ey,n}return o=e.child,e=o.sibling,n=ki(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 P0(e,t){return t=wh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Dc(e,t,r,n){return n!==null&&c0(n),rs(t,e.child,null,r),e=P0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function CM(e,t,r,n,i,o,a){if(r)return t.flags&256?(t.flags&=-257,n=Jp(Error(V(422))),Dc(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=wh({mode:"visible",children:n.children},i,0,null),o=Oo(o,i,a,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&rs(t,e.child,null,a),t.child.memoizedState=jy(a),t.memoizedState=Ey,o);if(!(t.mode&1))return Dc(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(V(419)),n=Jp(o,n,void 0),Dc(e,t,a,n)}if(s=(a&e.childLanes)!==0,Wt||s){if(n=dt,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,Hn(e,i),Zr(n,e,i,-1))}return $0(),n=Jp(Error(V(421))),Dc(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=UM.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ir=ji(i.nextSibling),or=t,Fe=!0,Vr=null,e!==null&&(wr[Sr++]=Tn,wr[Sr++]=kn,wr[Sr++]=Co,Tn=e.id,kn=e.overflow,Co=t),t=P0(t,n.children),t.flags|=4096,t)}function iw(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),wy(e.return,t,r)}function ev(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 nE(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(kt(e,t,n.children,r),n=ze.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&&iw(e,r,t);else if(e.tag===19)iw(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(ze,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&&Uf(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),ev(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&&Uf(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}ev(t,!0,r,null,o);break;case"together":ev(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Kn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),To|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,r=ki(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ki(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function $M(e,t,r){switch(t.tag){case 3:tE(t),ts();break;case 5:CA(t);break;case 1:Kt(t.type)&&Nf(t);break;case 4:y0(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ke(Ff,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ke(ze,ze.current&1),t.flags|=128,null):r&t.child.childLanes?rE(e,t,r):(ke(ze,ze.current&1),e=Kn(e,t,r),e!==null?e.sibling:null);ke(ze,ze.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return nE(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ke(ze,ze.current),n)break;return null;case 22:case 23:return t.lanes=0,JA(e,t,r)}return Kn(e,t,r)}var iE,Cy,oE,aE;iE=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}};Cy=function(){};oE=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,so(vn.current);var o=null;switch(r){case"input":i=Yv(e,i),n=Yv(e,n),o=[];break;case"select":i=We({},i,{value:void 0}),n=We({},n,{value:void 0}),o=[];break;case"textarea":i=ey(e,i),n=ey(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=If)}ry(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"&&(Gu.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"&&(Gu.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)}};aE=function(e,t,r,n){r!==n&&(t.flags|=4)};function au(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 St(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 TM(e,t,r){var n=t.pendingProps;switch(l0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(t),null;case 1:return Kt(t.type)&&Rf(),St(t),null;case 3:return n=t.stateNode,ns(),Le(Ht),Le(jt),g0(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Rc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vr!==null&&(Dy(Vr),Vr=null))),Cy(e,t),St(t),null;case 5:m0(t);var i=so(al.current);if(r=t.type,e!==null&&t.stateNode!=null)oE(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(V(166));return St(t),null}if(e=so(vn.current),Rc(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[dn]=t,n[il]=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<Au.length;i++)Re(Au[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":hx(n,o),Re("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Re("invalid",n);break;case"textarea":vx(n,o),Re("invalid",n)}ry(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&&Ic(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Ic(n.textContent,s,e),i=["children",""+s]):Gu.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Re("scroll",n)}switch(r){case"input":Ac(n),px(n,o,!0);break;case"textarea":Ac(n),yx(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=If)}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=I_(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[dn]=t,e[il]=n,iE(e,t,!1,!1),t.stateNode=e;e:{switch(a=ny(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<Au.length;i++)Re(Au[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":hx(e,n),i=Yv(e,n),Re("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=We({},n,{value:void 0}),Re("invalid",e);break;case"textarea":vx(e,n),i=ey(e,n),Re("invalid",e);break;default:i=n}ry(r,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?D_(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&R_(e,u)):o==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Qu(e,u):typeof u=="number"&&Qu(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Gu.hasOwnProperty(o)?u!=null&&o==="onScroll"&&Re("scroll",e):u!=null&&Gg(e,o,u,a))}switch(r){case"input":Ac(e),px(e,n,!1);break;case"textarea":Ac(e),yx(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Di(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Pa(e,!!n.multiple,o,!1):n.defaultValue!=null&&Pa(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=If)}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 St(t),null;case 6:if(e&&t.stateNode!=null)aE(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(V(166));if(r=so(al.current),so(vn.current),Rc(t)){if(n=t.stateNode,r=t.memoizedProps,n[dn]=t,(o=n.nodeValue!==r)&&(e=or,e!==null))switch(e.tag){case 3:Ic(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ic(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[dn]=t,t.stateNode=n}return St(t),null;case 13:if(Le(ze),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&ir!==null&&t.mode&1&&!(t.flags&128))PA(),ts(),t.flags|=98560,o=!1;else if(o=Rc(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(V(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(V(317));o[dn]=t}else ts(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;St(t),o=!1}else Vr!==null&&(Dy(Vr),Vr=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||ze.current&1?ot===0&&(ot=3):$0())),t.updateQueue!==null&&(t.flags|=4),St(t),null);case 4:return ns(),Cy(e,t),e===null&&rl(t.stateNode.containerInfo),St(t),null;case 10:return h0(t.type._context),St(t),null;case 17:return Kt(t.type)&&Rf(),St(t),null;case 19:if(Le(ze),o=t.memoizedState,o===null)return St(t),null;if(n=(t.flags&128)!==0,a=o.rendering,a===null)if(n)au(o,!1);else{if(ot!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Uf(e),a!==null){for(t.flags|=128,au(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(ze,ze.current&1|2),t.child}e=e.sibling}o.tail!==null&&Xe()>os&&(t.flags|=128,n=!0,au(o,!1),t.lanes=4194304)}else{if(!n)if(e=Uf(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),au(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Fe)return St(t),null}else 2*Xe()-o.renderingStartTime>os&&r!==1073741824&&(t.flags|=128,n=!0,au(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=Xe(),t.sibling=null,r=ze.current,ke(ze,n?r&1|2:r&1),t):(St(t),null);case 22:case 23:return C0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Jt&1073741824&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function kM(e,t){switch(l0(t),t.tag){case 1:return Kt(t.type)&&Rf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ns(),Le(Ht),Le(jt),g0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return m0(t),null;case 13:if(Le(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));ts()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(ze),null;case 4:return ns(),null;case 10:return h0(t.type._context),null;case 22:case 23:return C0(),null;case 24:return null;default:return null}}var Lc=!1,At=!1,MM=typeof WeakSet=="function"?WeakSet:Set,J=null;function ya(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){He(e,t,n)}else r.current=null}function $y(e,t,r){try{r()}catch(n){He(e,t,n)}}var ow=!1;function IM(e,t){if(hy=Tf,e=fA(),s0(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(py={focusedElem:e,selectionRange:r},Tf=!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 v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,m=v.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:Br(t.type,p),m);y.__reactInternalSnapshotBeforeUpdate=g}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(V(163))}}catch(S){He(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return v=ow,ow=!1,v}function Nu(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&&$y(t,r,o)}i=i.next}while(i!==n)}}function bh(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 Ty(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 sE(e){var t=e.alternate;t!==null&&(e.alternate=null,sE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[il],delete t[my],delete t[yM],delete t[mM])),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 uE(e){return e.tag===5||e.tag===3||e.tag===4}function aw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uE(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 ky(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=If));else if(n!==4&&(e=e.child,e!==null))for(ky(e,t,r),e=e.sibling;e!==null;)ky(e,t,r),e=e.sibling}function My(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(My(e,t,r),e=e.sibling;e!==null;)My(e,t,r),e=e.sibling}var vt=null,Wr=!1;function ti(e,t,r){for(r=r.child;r!==null;)lE(e,t,r),r=r.sibling}function lE(e,t,r){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(fh,r)}catch{}switch(r.tag){case 5:At||ya(r,t);case 6:var n=vt,i=Wr;vt=null,ti(e,t,r),vt=n,Wr=i,vt!==null&&(Wr?(e=vt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):vt.removeChild(r.stateNode));break;case 18:vt!==null&&(Wr?(e=vt,r=r.stateNode,e.nodeType===8?Vp(e.parentNode,r):e.nodeType===1&&Vp(e,r),Ju(e)):Vp(vt,r.stateNode));break;case 4:n=vt,i=Wr,vt=r.stateNode.containerInfo,Wr=!0,ti(e,t,r),vt=n,Wr=i;break;case 0:case 11:case 14:case 15:if(!At&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&$y(r,t,a),i=i.next}while(i!==n)}ti(e,t,r);break;case 1:if(!At&&(ya(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){He(r,t,s)}ti(e,t,r);break;case 21:ti(e,t,r);break;case 22:r.mode&1?(At=(n=At)||r.memoizedState!==null,ti(e,t,r),At=n):ti(e,t,r);break;default:ti(e,t,r)}}function sw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new MM),t.forEach(function(n){var i=WM.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Lr(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:vt=s.stateNode,Wr=!1;break e;case 3:vt=s.stateNode.containerInfo,Wr=!0;break e;case 4:vt=s.stateNode.containerInfo,Wr=!0;break e}s=s.return}if(vt===null)throw Error(V(160));lE(o,a,i),vt=null,Wr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){He(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)cE(t,e),t=t.sibling}function cE(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Lr(t,e),on(e),n&4){try{Nu(3,e,e.return),bh(3,e)}catch(p){He(e,e.return,p)}try{Nu(5,e,e.return)}catch(p){He(e,e.return,p)}}break;case 1:Lr(t,e),on(e),n&512&&r!==null&&ya(r,r.return);break;case 5:if(Lr(t,e),on(e),n&512&&r!==null&&ya(r,r.return),e.flags&32){var i=e.stateNode;try{Qu(i,"")}catch(p){He(e,e.return,p)}}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&&k_(i,o),ny(s,a);var l=ny(s,o);for(a=0;a<u.length;a+=2){var f=u[a],c=u[a+1];f==="style"?D_(i,c):f==="dangerouslySetInnerHTML"?R_(i,c):f==="children"?Qu(i,c):Gg(i,f,c,l)}switch(s){case"input":Zv(i,o);break;case"textarea":M_(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Pa(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?Pa(i,!!o.multiple,o.defaultValue,!0):Pa(i,!!o.multiple,o.multiple?[]:"",!1))}i[il]=o}catch(p){He(e,e.return,p)}}break;case 6:if(Lr(t,e),on(e),n&4){if(e.stateNode===null)throw Error(V(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(p){He(e,e.return,p)}}break;case 3:if(Lr(t,e),on(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Ju(t.containerInfo)}catch(p){He(e,e.return,p)}break;case 4:Lr(t,e),on(e);break;case 13:Lr(t,e),on(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(E0=Xe())),n&4&&sw(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(At=(l=At)||f,Lr(t,e),At=l):Lr(t,e),on(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:Nu(4,d,d.return);break;case 1:ya(d,d.return);var v=d.stateNode;if(typeof v.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(p){He(n,r,p)}}break;case 5:ya(d,d.return);break;case 22:if(d.memoizedState!==null){lw(c);continue}}h!==null?(h.return=d,J=h):lw(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=N_("display",a))}catch(p){He(e,e.return,p)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=l?"":c.memoizedProps}catch(p){He(e,e.return,p)}}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:Lr(t,e),on(e),n&4&&sw(e);break;case 21:break;default:Lr(t,e),on(e)}}function on(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(uE(r)){var n=r;break e}r=r.return}throw Error(V(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Qu(i,""),n.flags&=-33);var o=aw(e);My(e,o,i);break;case 3:case 4:var a=n.stateNode.containerInfo,s=aw(e);ky(e,s,a);break;default:throw Error(V(161))}}catch(u){He(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function RM(e,t,r){J=e,fE(e)}function fE(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||Lc;if(!a){var s=i.alternate,u=s!==null&&s.memoizedState!==null||At;s=Lc;var l=At;if(Lc=a,(At=u)&&!l)for(J=i;J!==null;)a=J,u=a.child,a.tag===22&&a.memoizedState!==null?cw(i):u!==null?(u.return=a,J=u):cw(i);for(;o!==null;)J=o,fE(o),o=o.sibling;J=i,Lc=s,At=l}uw(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,J=o):uw(e)}}function uw(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:At||bh(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!At)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Br(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Kx(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}Kx(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&&Ju(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}At||t.flags&512&&Ty(t)}catch(d){He(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 lw(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 cw(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{bh(4,t)}catch(u){He(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){He(t,i,u)}}var o=t.return;try{Ty(t)}catch(u){He(t,o,u)}break;case 5:var a=t.return;try{Ty(t)}catch(u){He(t,a,u)}}}catch(u){He(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 NM=Math.ceil,Hf=Xn.ReactCurrentDispatcher,_0=Xn.ReactCurrentOwner,jr=Xn.ReactCurrentBatchConfig,me=0,dt=null,Je=null,yt=0,Jt=0,ma=zi(0),ot=0,cl=null,To=0,xh=0,A0=0,Du=null,Ut=null,E0=0,os=1/0,An=null,Kf=!1,Iy=null,$i=null,Fc=!1,Oi=null,Vf=0,Lu=0,Ry=null,gf=-1,bf=0;function Dt(){return me&6?Xe():gf!==-1?gf:gf=Xe()}function Ti(e){return e.mode&1?me&2&&yt!==0?yt&-yt:bM.transition!==null?(bf===0&&(bf=Q_()),bf):(e=_e,e!==0||(e=window.event,e=e===void 0?16:rA(e.type)),e):1}function Zr(e,t,r,n){if(50<Lu)throw Lu=0,Ry=null,Error(V(185));rc(e,r,n),(!(me&2)||e!==dt)&&(e===dt&&(!(me&2)&&(xh|=r),ot===4&&li(e,yt)),Vt(e,n),r===1&&me===0&&!(t.mode&1)&&(os=Xe()+500,yh&&Ui()))}function Vt(e,t){var r=e.callbackNode;b2(e,t);var n=$f(e,e===dt?yt:0);if(n===0)r!==null&&bx(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&bx(r),t===1)e.tag===0?gM(fw.bind(null,e)):wA(fw.bind(null,e)),pM(function(){!(me&6)&&Ui()}),r=null;else{switch(X_(n)){case 1:r=Jg;break;case 4:r=V_;break;case 16:r=Cf;break;case 536870912:r=G_;break;default:r=Cf}r=bE(r,dE.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function dE(e,t){if(gf=-1,bf=0,me&6)throw Error(V(327));var r=e.callbackNode;if(Ca()&&e.callbackNode!==r)return null;var n=$f(e,e===dt?yt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Gf(e,n);else{t=n;var i=me;me|=2;var o=pE();(dt!==e||yt!==t)&&(An=null,os=Xe()+500,So(e,t));do try{FM();break}catch(s){hE(e,s)}while(!0);d0(),Hf.current=o,me=i,Je!==null?t=0:(dt=null,yt=0,t=ot)}if(t!==0){if(t===2&&(i=uy(e),i!==0&&(n=i,t=Ny(e,i))),t===1)throw r=cl,So(e,0),li(e,n),Vt(e,Xe()),r;if(t===6)li(e,n);else{if(i=e.current.alternate,!(n&30)&&!DM(i)&&(t=Gf(e,n),t===2&&(o=uy(e),o!==0&&(n=o,t=Ny(e,o))),t===1))throw r=cl,So(e,0),li(e,n),Vt(e,Xe()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(V(345));case 2:Ji(e,Ut,An);break;case 3:if(li(e,n),(n&130023424)===n&&(t=E0+500-Xe(),10<t)){if($f(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Dt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=yy(Ji.bind(null,e,Ut,An),t);break}Ji(e,Ut,An);break;case 4:if(li(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var a=31-Yr(n);o=1<<a,a=t[a],a>i&&(i=a),n&=~o}if(n=i,n=Xe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*NM(n/1960))-n,10<n){e.timeoutHandle=yy(Ji.bind(null,e,Ut,An),n);break}Ji(e,Ut,An);break;case 5:Ji(e,Ut,An);break;default:throw Error(V(329))}}}return Vt(e,Xe()),e.callbackNode===r?dE.bind(null,e):null}function Ny(e,t){var r=Du;return e.current.memoizedState.isDehydrated&&(So(e,t).flags|=256),e=Gf(e,t),e!==2&&(t=Ut,Ut=r,t!==null&&Dy(t)),e}function Dy(e){Ut===null?Ut=e:Ut.push.apply(Ut,e)}function DM(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(!en(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 li(e,t){for(t&=~A0,t&=~xh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Yr(t),n=1<<r;e[r]=-1,t&=~n}}function fw(e){if(me&6)throw Error(V(327));Ca();var t=$f(e,0);if(!(t&1))return Vt(e,Xe()),null;var r=Gf(e,t);if(e.tag!==0&&r===2){var n=uy(e);n!==0&&(t=n,r=Ny(e,n))}if(r===1)throw r=cl,So(e,0),li(e,t),Vt(e,Xe()),r;if(r===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ji(e,Ut,An),Vt(e,Xe()),null}function j0(e,t){var r=me;me|=1;try{return e(t)}finally{me=r,me===0&&(os=Xe()+500,yh&&Ui())}}function ko(e){Oi!==null&&Oi.tag===0&&!(me&6)&&Ca();var t=me;me|=1;var r=jr.transition,n=_e;try{if(jr.transition=null,_e=1,e)return e()}finally{_e=n,jr.transition=r,me=t,!(me&6)&&Ui()}}function C0(){Jt=ma.current,Le(ma)}function So(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,hM(r)),Je!==null)for(r=Je.return;r!==null;){var n=r;switch(l0(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Rf();break;case 3:ns(),Le(Ht),Le(jt),g0();break;case 5:m0(n);break;case 4:ns();break;case 13:Le(ze);break;case 19:Le(ze);break;case 10:h0(n.type._context);break;case 22:case 23:C0()}r=r.return}if(dt=e,Je=e=ki(e.current,null),yt=Jt=t,ot=0,cl=null,A0=xh=To=0,Ut=Du=null,ao!==null){for(t=0;t<ao.length;t++)if(r=ao[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}ao=null}return e}function hE(e,t){do{var r=Je;try{if(d0(),vf.current=qf,Wf){for(var n=Ue.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Wf=!1}if($o=0,ct=nt=Ue=null,Ru=!1,sl=0,_0.current=null,r===null||r.return===null){ot=1,cl=t,Je=null;break}e:{var o=e,a=r.return,s=r,u=t;if(t=yt,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=Zx(a);if(h!==null){h.flags&=-257,Jx(h,a,s,o,t),h.mode&1&&Yx(o,l,t),t=h,u=l;var v=t.updateQueue;if(v===null){var p=new Set;p.add(u),t.updateQueue=p}else v.add(u);break e}else{if(!(t&1)){Yx(o,l,t),$0();break e}u=Error(V(426))}}else if(Fe&&s.mode&1){var m=Zx(a);if(m!==null){!(m.flags&65536)&&(m.flags|=256),Jx(m,a,s,o,t),c0(is(u,s));break e}}o=u=is(u,s),ot!==4&&(ot=2),Du===null?Du=[o]:Du.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=XA(o,u,t);Hx(o,y);break e;case 1:s=u;var g=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&($i===null||!$i.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=YA(o,s,t);Hx(o,S);break e}}o=o.return}while(o!==null)}yE(r)}catch(x){t=x,Je===r&&r!==null&&(Je=r=r.return);continue}break}while(!0)}function pE(){var e=Hf.current;return Hf.current=qf,e===null?qf:e}function $0(){(ot===0||ot===3||ot===2)&&(ot=4),dt===null||!(To&268435455)&&!(xh&268435455)||li(dt,yt)}function Gf(e,t){var r=me;me|=2;var n=pE();(dt!==e||yt!==t)&&(An=null,So(e,t));do try{LM();break}catch(i){hE(e,i)}while(!0);if(d0(),me=r,Hf.current=n,Je!==null)throw Error(V(261));return dt=null,yt=0,ot}function LM(){for(;Je!==null;)vE(Je)}function FM(){for(;Je!==null&&!c2();)vE(Je)}function vE(e){var t=gE(e.alternate,e,Jt);e.memoizedProps=e.pendingProps,t===null?yE(e):Je=t,_0.current=null}function yE(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=kM(r,t),r!==null){r.flags&=32767,Je=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ot=6,Je=null;return}}else if(r=TM(r,t,Jt),r!==null){Je=r;return}if(t=t.sibling,t!==null){Je=t;return}Je=t=e}while(t!==null);ot===0&&(ot=5)}function Ji(e,t,r){var n=_e,i=jr.transition;try{jr.transition=null,_e=1,BM(e,t,r,n)}finally{jr.transition=i,_e=n}return null}function BM(e,t,r,n){do Ca();while(Oi!==null);if(me&6)throw Error(V(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(V(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(x2(e,o),e===dt&&(Je=dt=null,yt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Fc||(Fc=!0,bE(Cf,function(){return Ca(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=jr.transition,jr.transition=null;var a=_e;_e=1;var s=me;me|=4,_0.current=null,IM(e,r),cE(r,e),aM(py),Tf=!!hy,py=hy=null,e.current=r,RM(r),f2(),me=s,_e=a,jr.transition=o}else e.current=r;if(Fc&&(Fc=!1,Oi=e,Vf=i),o=e.pendingLanes,o===0&&($i=null),p2(r.stateNode),Vt(e,Xe()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Kf)throw Kf=!1,e=Iy,Iy=null,e;return Vf&1&&e.tag!==0&&Ca(),o=e.pendingLanes,o&1?e===Ry?Lu++:(Lu=0,Ry=e):Lu=0,Ui(),null}function Ca(){if(Oi!==null){var e=X_(Vf),t=jr.transition,r=_e;try{if(jr.transition=null,_e=16>e?16:e,Oi===null)var n=!1;else{if(e=Oi,Oi=null,Vf=0,me&6)throw Error(V(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:Nu(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(sE(f),f===l){J=null;break}if(d!==null){d.return=h,J=d;break}J=h}}}var v=o.alternate;if(v!==null){var p=v.child;if(p!==null){v.child=null;do{var m=p.sibling;p.sibling=null,p=m}while(p!==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:Nu(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,J=y;break e}J=o.return}}var g=e.current;for(J=g;J!==null;){a=J;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,J=b;else e:for(a=g;J!==null;){if(s=J,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:bh(9,s)}}catch(x){He(s,s.return,x)}if(s===a){J=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,J=S;break e}J=s.return}}if(me=i,Ui(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(fh,e)}catch{}n=!0}return n}finally{_e=r,jr.transition=t}}return!1}function dw(e,t,r){t=is(r,t),t=XA(e,t,1),e=Ci(e,t,1),t=Dt(),e!==null&&(rc(e,1,t),Vt(e,t))}function He(e,t,r){if(e.tag===3)dw(e,e,r);else for(;t!==null;){if(t.tag===3){dw(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&($i===null||!$i.has(n))){e=is(r,e),e=YA(t,e,1),t=Ci(t,e,1),e=Dt(),t!==null&&(rc(t,1,e),Vt(t,e));break}}t=t.return}}function zM(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Dt(),e.pingedLanes|=e.suspendedLanes&r,dt===e&&(yt&r)===r&&(ot===4||ot===3&&(yt&130023424)===yt&&500>Xe()-E0?So(e,0):A0|=r),Vt(e,t)}function mE(e,t){t===0&&(e.mode&1?(t=Cc,Cc<<=1,!(Cc&130023424)&&(Cc=4194304)):t=1);var r=Dt();e=Hn(e,t),e!==null&&(rc(e,t,r),Vt(e,r))}function UM(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),mE(e,r)}function WM(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(V(314))}n!==null&&n.delete(t),mE(e,r)}var gE;gE=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,$M(e,t,r);Wt=!!(e.flags&131072)}else Wt=!1,Fe&&t.flags&1048576&&SA(t,Lf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;mf(e,t),e=t.pendingProps;var i=es(t,jt.current);ja(t,r),i=x0(null,t,n,e,i,r);var o=w0();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,Nf(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,v0(t),i.updater=gh,t.stateNode=i,i._reactInternals=t,Oy(t,n,e,r),t=Ay(null,t,n,!0,o,r)):(t.tag=0,Fe&&o&&u0(t),kt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(mf(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=HM(n),e=Br(n,e),i){case 0:t=_y(null,t,n,e,r);break e;case 1:t=rw(null,t,n,e,r);break e;case 11:t=ew(null,t,n,e,r);break e;case 14:t=tw(null,t,n,Br(n.type,e),r);break e}throw Error(V(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),_y(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),rw(e,t,n,i,r);case 3:e:{if(tE(t),e===null)throw Error(V(387));n=t.pendingProps,o=t.memoizedState,i=o.element,jA(e,t),zf(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=is(Error(V(423)),t),t=nw(e,t,n,r,i);break e}else if(n!==i){i=is(Error(V(424)),t),t=nw(e,t,n,r,i);break e}else for(ir=ji(t.stateNode.containerInfo.firstChild),or=t,Fe=!0,Vr=null,r=AA(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ts(),n===i){t=Kn(e,t,r);break e}kt(e,t,n,r)}t=t.child}return t;case 5:return CA(t),e===null&&xy(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,vy(n,i)?a=null:o!==null&&vy(n,o)&&(t.flags|=32),eE(e,t),kt(e,t,a,r),t.child;case 6:return e===null&&xy(t),null;case 13:return rE(e,t,r);case 4:return y0(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=rs(t,null,n,r):kt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),ew(e,t,n,i,r);case 7:return kt(e,t,t.pendingProps,r),t.child;case 8:return kt(e,t,t.pendingProps.children,r),t.child;case 12:return kt(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(Ff,n._currentValue),n._currentValue=a,o!==null)if(en(o.value,a)){if(o.children===i.children&&!Ht.current){t=Kn(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=Nn(-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),wy(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(V(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),wy(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}kt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ja(t,r),i=Cr(i),n=n(i),t.flags|=1,kt(e,t,n,r),t.child;case 14:return n=t.type,i=Br(n,t.pendingProps),i=Br(n.type,i),tw(e,t,n,i,r);case 15:return ZA(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),mf(e,t),t.tag=1,Kt(n)?(e=!0,Nf(t)):e=!1,ja(t,r),QA(t,n,i),Oy(t,n,i,r),Ay(null,t,n,!0,e,r);case 19:return nE(e,t,r);case 22:return JA(e,t,r)}throw Error(V(156,t.tag))};function bE(e,t){return K_(e,t)}function qM(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 Ar(e,t,r,n){return new qM(e,t,r,n)}function T0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HM(e){if(typeof e=="function")return T0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xg)return 11;if(e===Yg)return 14}return 2}function ki(e,t){var r=e.alternate;return r===null?(r=Ar(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 xf(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")T0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case sa:return Oo(r.children,i,o,t);case Qg:a=8,i|=8;break;case Vv:return e=Ar(12,r,t,i|2),e.elementType=Vv,e.lanes=o,e;case Gv:return e=Ar(13,r,t,i),e.elementType=Gv,e.lanes=o,e;case Qv:return e=Ar(19,r,t,i),e.elementType=Qv,e.lanes=o,e;case C_:return wh(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E_:a=10;break e;case j_:a=9;break e;case Xg:a=11;break e;case Yg:a=14;break e;case oi:a=16,n=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=Ar(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Oo(e,t,r,n){return e=Ar(7,e,n,t),e.lanes=r,e}function wh(e,t,r,n){return e=Ar(22,e,n,t),e.elementType=C_,e.lanes=r,e.stateNode={isHidden:!1},e}function tv(e,t,r){return e=Ar(6,e,null,t),e.lanes=r,e}function rv(e,t,r){return t=Ar(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KM(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=Np(0),this.expirationTimes=Np(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Np(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function k0(e,t,r,n,i,o,a,s,u){return e=new KM(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ar(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},v0(o),e}function VM(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:aa,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function xE(e){if(!e)return Li;e=e._reactInternals;e:{if(Wo(e)!==e||e.tag!==1)throw Error(V(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(V(171))}if(e.tag===1){var r=e.type;if(Kt(r))return xA(e,r,t)}return t}function wE(e,t,r,n,i,o,a,s,u){return e=k0(r,n,!0,e,i,o,a,s,u),e.context=xE(null),r=e.current,n=Dt(),i=Ti(r),o=Nn(n,i),o.callback=t??null,Ci(r,o,i),e.current.lanes=i,rc(e,i,n),Vt(e,n),e}function Sh(e,t,r,n){var i=t.current,o=Dt(),a=Ti(i);return r=xE(r),t.context===null?t.context=r:t.pendingContext=r,t=Nn(o,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Ci(i,t,a),e!==null&&(Zr(e,i,a,o),pf(e,i,a)),a}function Qf(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 hw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function M0(e,t){hw(e,t),(e=e.alternate)&&hw(e,t)}function GM(){return null}var SE=typeof reportError=="function"?reportError:function(e){console.error(e)};function I0(e){this._internalRoot=e}Oh.prototype.render=I0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));Sh(e,t,null,null)};Oh.prototype.unmount=I0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ko(function(){Sh(null,e,null,null)}),t[qn]=null}};function Oh(e){this._internalRoot=e}Oh.prototype.unstable_scheduleHydration=function(e){if(e){var t=J_();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ui.length&&t!==0&&t<ui[r].priority;r++);ui.splice(r,0,e),r===0&&tA(e)}};function R0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ph(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pw(){}function QM(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var l=Qf(a);o.call(l)}}var a=wE(t,n,e,0,null,!1,!1,"",pw);return e._reactRootContainer=a,e[qn]=a.current,rl(e.nodeType===8?e.parentNode:e),ko(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var l=Qf(u);s.call(l)}}var u=k0(e,0,!1,null,null,!1,!1,"",pw);return e._reactRootContainer=u,e[qn]=u.current,rl(e.nodeType===8?e.parentNode:e),ko(function(){Sh(t,u,r,n)}),u}function _h(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=Qf(a);s.call(u)}}Sh(t,a,e,i)}else a=QM(r,t,e,i,n);return Qf(a)}Y_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=_u(t.pendingLanes);r!==0&&(e0(t,r|1),Vt(t,Xe()),!(me&6)&&(os=Xe()+500,Ui()))}break;case 13:ko(function(){var n=Hn(e,1);if(n!==null){var i=Dt();Zr(n,e,1,i)}}),M0(e,1)}};t0=function(e){if(e.tag===13){var t=Hn(e,134217728);if(t!==null){var r=Dt();Zr(t,e,134217728,r)}M0(e,134217728)}};Z_=function(e){if(e.tag===13){var t=Ti(e),r=Hn(e,t);if(r!==null){var n=Dt();Zr(r,e,t,n)}M0(e,t)}};J_=function(){return _e};eA=function(e,t){var r=_e;try{return _e=e,t()}finally{_e=r}};oy=function(e,t,r){switch(t){case"input":if(Zv(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=vh(n);if(!i)throw Error(V(90));T_(n),Zv(n,i)}}}break;case"textarea":M_(e,r);break;case"select":t=r.value,t!=null&&Pa(e,!!r.multiple,t,!1)}};B_=j0;z_=ko;var XM={usingClientEntryPoint:!1,Events:[ic,fa,vh,L_,F_,j0]},su={findFiberByHostInstance:oo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},YM={bundleType:su.bundleType,version:su.version,rendererPackageName:su.rendererPackageName,rendererConfig:su.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=q_(e),e===null?null:e.stateNode},findFiberByHostInstance:su.findFiberByHostInstance||GM,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 Bc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bc.isDisabled&&Bc.supportsFiber)try{fh=Bc.inject(YM),pn=Bc}catch{}}lr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=XM;lr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!R0(t))throw Error(V(200));return VM(e,t,null,r)};lr.createRoot=function(e,t){if(!R0(e))throw Error(V(299));var r=!1,n="",i=SE;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=k0(e,1,!1,null,null,r,!1,n,i),e[qn]=t.current,rl(e.nodeType===8?e.parentNode:e),new I0(t)};lr.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(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=q_(t),e=e===null?null:e.stateNode,e};lr.flushSync=function(e){return ko(e)};lr.hydrate=function(e,t,r){if(!Ph(t))throw Error(V(200));return _h(null,e,t,!0,r)};lr.hydrateRoot=function(e,t,r){if(!R0(e))throw Error(V(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",a=SE;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=wE(t,null,e,1,r??null,i,!1,o,a),e[qn]=t.current,rl(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 Oh(t)};lr.render=function(e,t,r){if(!Ph(t))throw Error(V(200));return _h(null,e,t,!1,r)};lr.unmountComponentAtNode=function(e){if(!Ph(e))throw Error(V(40));return e._reactRootContainer?(ko(function(){_h(null,null,e,!1,function(){e._reactRootContainer=null,e[qn]=null})}),!0):!1};lr.unstable_batchedUpdates=j0;lr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Ph(r))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return _h(e,t,r,!1,n)};lr.version="18.3.1-next-f1338f8080-20240426";function OE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OE)}catch(e){console.error(e)}}OE(),O_.exports=lr;var PE=O_.exports,vw=PE;Hv.createRoot=vw.createRoot,Hv.hydrateRoot=vw.hydrateRoot;var qo=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(){}},Mo=typeof window>"u"||"Deno"in globalThis;function _t(){}function ZM(e,t){return typeof e=="function"?e(t):e}function Ly(e){return typeof e=="number"&&e>=0&&e!==1/0}function _E(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mi(e,t){return typeof e=="function"?e(t):e}function br(e,t){return typeof e=="function"?e(t):e}function yw(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==N0(a,t.options))return!1}else if(!fl(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 mw(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Fi(t.options.mutationKey)!==Fi(o))return!1}else if(!fl(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function N0(e,t){return((t==null?void 0:t.queryKeyHashFn)||Fi)(e)}function Fi(e){return JSON.stringify(e,(t,r)=>Fy(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function fl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>fl(e[r],t[r])):!1}function D0(e,t){if(e===t)return e;const r=gw(e)&&gw(t);if(r||Fy(e)&&Fy(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]=D0(e[c],t[c]),s[c]===e[c]&&e[c]!==void 0&&l++)}return i===a&&l===i?e:s}return t}function Xf(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 gw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fy(e){if(!bw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!bw(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function bw(e){return Object.prototype.toString.call(e)==="[object Object]"}function JM(e){return new Promise(t=>{setTimeout(t,e)})}function By(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?D0(e,t):t}function eI(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function tI(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var rr=Symbol();function AE(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===rr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function EE(e,t){return typeof e=="function"?e(...t):!!e}var ho,fi,La,t_,rI=(t_=class extends qo{constructor(){super();te(this,ho);te(this,fi);te(this,La);Q(this,La,t=>{if(!Mo&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){$(this,fi)||this.setEventListener($(this,La))}onUnsubscribe(){var t;this.hasListeners()||((t=$(this,fi))==null||t.call(this),Q(this,fi,void 0))}setEventListener(t){var r;Q(this,La,t),(r=$(this,fi))==null||r.call(this),Q(this,fi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){$(this,ho)!==t&&(Q(this,ho,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof $(this,ho)=="boolean"?$(this,ho):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ho=new WeakMap,fi=new WeakMap,La=new WeakMap,t_),L0=new rI,Fa,di,Ba,r_,nI=(r_=class extends qo{constructor(){super();te(this,Fa,!0);te(this,di);te(this,Ba);Q(this,Ba,t=>{if(!Mo&&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(){$(this,di)||this.setEventListener($(this,Ba))}onUnsubscribe(){var t;this.hasListeners()||((t=$(this,di))==null||t.call(this),Q(this,di,void 0))}setEventListener(t){var r;Q(this,Ba,t),(r=$(this,di))==null||r.call(this),Q(this,di,t(this.setOnline.bind(this)))}setOnline(t){$(this,Fa)!==t&&(Q(this,Fa,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return $(this,Fa)}},Fa=new WeakMap,di=new WeakMap,Ba=new WeakMap,r_),Yf=new nI;function zy(){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 iI(e){return Math.min(1e3*2**e,3e4)}function jE(e){return(e??"online")==="online"?Yf.isOnline():!0}var CE=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function nv(e){return e instanceof CE}function $E(e){let t=!1,r=0,n=!1,i;const o=zy(),a=p=>{var m;n||(d(new CE(p)),(m=e.abort)==null||m.call(e))},s=()=>{t=!0},u=()=>{t=!1},l=()=>L0.isFocused()&&(e.networkMode==="always"||Yf.isOnline())&&e.canRun(),f=()=>jE(e.networkMode)&&e.canRun(),c=p=>{var m;n||(n=!0,(m=e.onSuccess)==null||m.call(e,p),i==null||i(),o.resolve(p))},d=p=>{var m;n||(n=!0,(m=e.onError)==null||m.call(e,p),i==null||i(),o.reject(p))},h=()=>new Promise(p=>{var m;i=y=>{(n||l())&&p(y)},(m=e.onPause)==null||m.call(e)}).then(()=>{var p;i=void 0,n||(p=e.onContinue)==null||p.call(e)}),v=()=>{if(n)return;let p;const m=r===0?e.initialPromise:void 0;try{p=m??e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(c).catch(y=>{var w;if(n)return;const g=e.retry??(Mo?0:3),b=e.retryDelay??iI,S=typeof b=="function"?b(r,y):b,x=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,y);if(t||!x){d(y);return}r++,(w=e.onFail)==null||w.call(e,r,y),JM(S).then(()=>l()?void 0:h()).then(()=>{t?d(y):v()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:u,canStart:f,start:()=>(f()?v():h().then(v),o)}}var oI=e=>setTimeout(e,0);function aI(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=oI;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 Ve=aI(),po,n_,TE=(n_=class{constructor(){te(this,po)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ly(this.gcTime)&&Q(this,po,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mo?1/0:5*60*1e3))}clearGcTimeout(){$(this,po)&&(clearTimeout($(this,po)),Q(this,po,void 0))}},po=new WeakMap,n_),za,vo,vr,yo,Ot,Gl,mo,zr,_n,i_,sI=(i_=class extends TE{constructor(t){super();te(this,zr);te(this,za);te(this,vo);te(this,vr);te(this,yo);te(this,Ot);te(this,Gl);te(this,mo);Q(this,mo,!1),Q(this,Gl,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,yo,t.client),Q(this,vr,$(this,yo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,za,uI(this.options)),this.state=t.state??$(this,za),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=$(this,Ot))==null?void 0:t.promise}setOptions(t){this.options={...$(this,Gl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&$(this,vr).remove(this)}setData(t,r){const n=By(this.state.data,t,this.options);return ae(this,zr,_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,zr,_n).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=$(this,Ot))==null?void 0:n.promise;return(i=$(this,Ot))==null||i.cancel(t),r?r.then(_t).catch(_t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState($(this,za))}isActive(){return this.observers.some(t=>br(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Mi(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:!_E(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=$(this,Ot))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=$(this,Ot))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),$(this,vr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||($(this,Ot)&&($(this,mo)?$(this,Ot).cancel({revert:!0}):$(this,Ot).cancelRetry()),this.scheduleGc()),$(this,vr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ae(this,zr,_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($(this,Ot))return $(this,Ot).continueRetry(),$(this,Ot).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:()=>(Q(this,mo,!0),n.signal)})},o=()=>{const d=AE(this.options,r),v=(()=>{const p={client:$(this,yo),queryKey:this.queryKey,meta:this.meta};return i(p),p})();return Q(this,mo,!1),this.options.persister?this.options.persister(d,v,this):d(v)},s=(()=>{const d={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:$(this,yo),state:this.state,fetchFn:o};return i(d),d})();(l=this.options.behavior)==null||l.onFetch(s,this),Q(this,vo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&ae(this,zr,_n).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var h,v,p,m;nv(d)&&d.silent||ae(this,zr,_n).call(this,{type:"error",error:d}),nv(d)||((v=(h=$(this,vr).config).onError)==null||v.call(h,d,this),(m=(p=$(this,vr).config).onSettled)==null||m.call(p,this.state.data,d,this)),this.scheduleGc()};return Q(this,Ot,$E({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{var h,v,p,m;if(d===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){u(y);return}(v=(h=$(this,vr).config).onSuccess)==null||v.call(h,d,this),(m=(p=$(this,vr).config).onSettled)==null||m.call(p,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,h)=>{ae(this,zr,_n).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{ae(this,zr,_n).call(this,{type:"pause"})},onContinue:()=>{ae(this,zr,_n).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),$(this,Ot).start()}},za=new WeakMap,vo=new WeakMap,vr=new WeakMap,yo=new WeakMap,Ot=new WeakMap,Gl=new WeakMap,mo=new WeakMap,zr=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,...kE(n.data,this.options),fetchMeta:t.meta??null};case"success":return Q(this,vo,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 nv(i)&&i.revert&&$(this,vo)?{...$(this,vo),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),Ve.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),$(this,vr).notify({query:this,type:"updated",action:t})})},i_);function kE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jE(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function uI(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 ln,o_,lI=(o_=class extends qo{constructor(t={}){super();te(this,ln);this.config=t,Q(this,ln,new Map)}build(t,r,n){const i=r.queryKey,o=r.queryHash??N0(i,r);let a=this.get(o);return a||(a=new sI({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){$(this,ln).has(t.queryHash)||($(this,ln).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=$(this,ln).get(t.queryHash);r&&(t.destroy(),r===t&&$(this,ln).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ve.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return $(this,ln).get(t)}getAll(){return[...$(this,ln).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>yw(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>yw(t,n)):r}notify(t){Ve.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ve.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ve.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ln=new WeakMap,o_),cn,$t,go,fn,ii,a_,cI=(a_=class extends TE{constructor(t){super();te(this,fn);te(this,cn);te(this,$t);te(this,go);this.mutationId=t.mutationId,Q(this,$t,t.mutationCache),Q(this,cn,[]),this.state=t.state||ME(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){$(this,cn).includes(t)||($(this,cn).push(t),this.clearGcTimeout(),$(this,$t).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,cn,$(this,cn).filter(r=>r!==t)),this.scheduleGc(),$(this,$t).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){$(this,cn).length||(this.state.status==="pending"?this.scheduleGc():$(this,$t).remove(this))}continue(){var t;return((t=$(this,go))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,s,u,l,f,c,d,h,v,p,m,y,g,b,S,x,w,O,P;const r=()=>{ae(this,fn,ii).call(this,{type:"continue"})};Q(this,go,$E({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,A)=>{ae(this,fn,ii).call(this,{type:"failed",failureCount:_,error:A})},onPause:()=>{ae(this,fn,ii).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>$(this,$t).canRun(this)}));const n=this.state.status==="pending",i=!$(this,go).canStart();try{if(n)r();else{ae(this,fn,ii).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(o=$(this,$t).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,fn,ii).call(this,{type:"pending",context:A,variables:t,isPaused:i})}const _=await $(this,go).start();return await((f=(l=$(this,$t).config).onSuccess)==null?void 0:f.call(l,_,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,_,t,this.state.context)),await((v=(h=$(this,$t).config).onSettled)==null?void 0:v.call(h,_,null,this.state.variables,this.state.context,this)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,_,null,t,this.state.context)),ae(this,fn,ii).call(this,{type:"success",data:_}),_}catch(_){try{throw await((g=(y=$(this,$t).config).onError)==null?void 0:g.call(y,_,t,this.state.context,this)),await((S=(b=this.options).onError)==null?void 0:S.call(b,_,t,this.state.context)),await((w=(x=$(this,$t).config).onSettled)==null?void 0:w.call(x,void 0,_,this.state.variables,this.state.context,this)),await((P=(O=this.options).onSettled)==null?void 0:P.call(O,void 0,_,t,this.state.context)),_}finally{ae(this,fn,ii).call(this,{type:"error",error:_})}}finally{$(this,$t).runNext(this)}}},cn=new WeakMap,$t=new WeakMap,go=new WeakMap,fn=new WeakSet,ii=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),Ve.batch(()=>{$(this,cn).forEach(n=>{n.onMutationUpdate(t)}),$(this,$t).notify({mutation:this,type:"updated",action:t})})},a_);function ME(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cn,Ur,Ql,s_,fI=(s_=class extends qo{constructor(t={}){super();te(this,Cn);te(this,Ur);te(this,Ql);this.config=t,Q(this,Cn,new Set),Q(this,Ur,new Map),Q(this,Ql,0)}build(t,r,n){const i=new cI({mutationCache:this,mutationId:++Sc(this,Ql)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){$(this,Cn).add(t);const r=zc(t);if(typeof r=="string"){const n=$(this,Ur).get(r);n?n.push(t):$(this,Ur).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if($(this,Cn).delete(t)){const r=zc(t);if(typeof r=="string"){const n=$(this,Ur).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&$(this,Ur).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=zc(t);if(typeof r=="string"){const n=$(this,Ur).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=zc(t);if(typeof r=="string"){const i=(n=$(this,Ur).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(){Ve.batch(()=>{$(this,Cn).forEach(t=>{this.notify({type:"removed",mutation:t})}),$(this,Cn).clear(),$(this,Ur).clear()})}getAll(){return Array.from($(this,Cn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>mw(r,n))}findAll(t={}){return this.getAll().filter(r=>mw(t,r))}notify(t){Ve.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Ve.batch(()=>Promise.all(t.map(r=>r.continue().catch(_t))))}},Cn=new WeakMap,Ur=new WeakMap,Ql=new WeakMap,s_);function zc(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Zf(e){return{onFetch:(t,r)=>{var f,c,d,h,v;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=((v=t.state.data)==null?void 0:v.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let p=!1;const m=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=AE(t.options,t.fetchOptions),g=async(b,S,x)=>{if(p)return Promise.reject();if(S==null&&b.pages.length)return Promise.resolve(b);const O=(()=>{const C={client:t.client,queryKey:t.queryKey,pageParam:S,direction:x?"backward":"forward",meta:t.options.meta};return m(C),C})(),P=await y(O),{maxPages:_}=t.options,A=x?tI:eI;return{pages:A(b.pages,P,_),pageParams:A(b.pageParams,S,_)}};if(i&&o.length){const b=i==="backward",S=b?IE:Uy,x={pages:o,pageParams:a},w=S(n,x);s=await g(x,w,b)}else{const b=e??o.length;do{const S=u===0?a[0]??n.initialPageParam:Uy(n,s);if(u>0&&S==null)break;s=await g(s,S),u++}while(u<b)}return s};t.options.persister?t.fetchFn=()=>{var p,m;return(m=(p=t.options).persister)==null?void 0:m.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function Uy(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 IE(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 dI(e,t){return t?Uy(e,t)!=null:!1}function hI(e,t){return!t||!e.getPreviousPageParam?!1:IE(e,t)!=null}var qe,hi,pi,Ua,Wa,vi,qa,Ha,u_,pI=(u_=class{constructor(e={}){te(this,qe);te(this,hi);te(this,pi);te(this,Ua);te(this,Wa);te(this,vi);te(this,qa);te(this,Ha);Q(this,qe,e.queryCache||new lI),Q(this,hi,e.mutationCache||new fI),Q(this,pi,e.defaultOptions||{}),Q(this,Ua,new Map),Q(this,Wa,new Map),Q(this,vi,0)}mount(){Sc(this,vi)._++,$(this,vi)===1&&(Q(this,qa,L0.subscribe(async e=>{e&&(await this.resumePausedMutations(),$(this,qe).onFocus())})),Q(this,Ha,Yf.subscribe(async e=>{e&&(await this.resumePausedMutations(),$(this,qe).onOnline())})))}unmount(){var e,t;Sc(this,vi)._--,$(this,vi)===0&&((e=$(this,qa))==null||e.call(this),Q(this,qa,void 0),(t=$(this,Ha))==null||t.call(this),Q(this,Ha,void 0))}isFetching(e){return $(this,qe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return $(this,hi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=$(this,qe).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=$(this,qe).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Mi(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return $(this,qe).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=$(this,qe).get(n.queryHash),o=i==null?void 0:i.state.data,a=ZM(t,o);if(a!==void 0)return $(this,qe).build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return Ve.batch(()=>$(this,qe).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=$(this,qe).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=$(this,qe);Ve.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=$(this,qe);return Ve.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ve.batch(()=>$(this,qe).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(_t).catch(_t)}invalidateQueries(e,t={}){return Ve.batch(()=>($(this,qe).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=Ve.batch(()=>$(this,qe).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=$(this,qe).build(this,t);return r.isStaleByTime(Mi(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=Zf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_t).catch(_t)}ensureInfiniteQueryData(e){return e.behavior=Zf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Yf.isOnline()?$(this,hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return $(this,qe)}getMutationCache(){return $(this,hi)}getDefaultOptions(){return $(this,pi)}setDefaultOptions(e){Q(this,pi,e)}setQueryDefaults(e,t){$(this,Ua).set(Fi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...$(this,Ua).values()],r={};return t.forEach(n=>{fl(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){$(this,Wa).set(Fi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...$(this,Wa).values()],r={};return t.forEach(n=>{fl(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...$(this,pi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=N0(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===rr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...$(this,pi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){$(this,qe).clear(),$(this,hi).clear()}},qe=new WeakMap,hi=new WeakMap,pi=new WeakMap,Ua=new WeakMap,Wa=new WeakMap,vi=new WeakMap,qa=new WeakMap,Ha=new WeakMap,u_),Bt,ye,Xl,Tt,bo,Ka,yi,mi,Yl,Va,Ga,xo,wo,gi,Qa,Oe,Eu,Wy,qy,Hy,Ky,Vy,Gy,Qy,RE,l_,ac=(l_=class extends qo{constructor(t,r){super();te(this,Oe);te(this,Bt);te(this,ye);te(this,Xl);te(this,Tt);te(this,bo);te(this,Ka);te(this,yi);te(this,mi);te(this,Yl);te(this,Va);te(this,Ga);te(this,xo);te(this,wo);te(this,gi);te(this,Qa,new Set);this.options=r,Q(this,Bt,t),Q(this,mi,null),Q(this,yi,zy()),this.options.experimental_prefetchInRender||$(this,yi).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&&($(this,ye).addObserver(this),xw($(this,ye),this.options)?ae(this,Oe,Eu).call(this):this.updateResult(),ae(this,Oe,Ky).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xy($(this,ye),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xy($(this,ye),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ae(this,Oe,Vy).call(this),ae(this,Oe,Gy).call(this),$(this,ye).removeObserver(this)}setOptions(t){const r=this.options,n=$(this,ye);if(this.options=$(this,Bt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof br(this.options.enabled,$(this,ye))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ae(this,Oe,Qy).call(this),$(this,ye).setOptions(this.options),r._defaulted&&!Xf(this.options,r)&&$(this,Bt).getQueryCache().notify({type:"observerOptionsUpdated",query:$(this,ye),observer:this});const i=this.hasListeners();i&&ww($(this,ye),n,this.options,r)&&ae(this,Oe,Eu).call(this),this.updateResult(),i&&($(this,ye)!==n||br(this.options.enabled,$(this,ye))!==br(r.enabled,$(this,ye))||Mi(this.options.staleTime,$(this,ye))!==Mi(r.staleTime,$(this,ye)))&&ae(this,Oe,Wy).call(this);const o=ae(this,Oe,qy).call(this);i&&($(this,ye)!==n||br(this.options.enabled,$(this,ye))!==br(r.enabled,$(this,ye))||o!==$(this,gi))&&ae(this,Oe,Hy).call(this,o)}getOptimisticResult(t){const r=$(this,Bt).getQueryCache().build($(this,Bt),t),n=this.createResult(r,t);return yI(this,n)&&(Q(this,Tt,n),Q(this,Ka,this.options),Q(this,bo,$(this,ye).state)),n}getCurrentResult(){return $(this,Tt)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),Reflect.get(n,i))})}trackProp(t){$(this,Qa).add(t)}getCurrentQuery(){return $(this,ye)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=$(this,Bt).defaultQueryOptions(t),n=$(this,Bt).getQueryCache().build($(this,Bt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ae(this,Oe,Eu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),$(this,Tt)))}createResult(t,r){var _;const n=$(this,ye),i=this.options,o=$(this,Tt),a=$(this,bo),s=$(this,Ka),l=t!==n?t.state:$(this,Xl),{state:f}=t;let c={...f},d=!1,h;if(r._optimisticResults){const A=this.hasListeners(),C=!A&&xw(t,r),j=A&&ww(t,n,r,i);(C||j)&&(c={...c,...kE(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:v,errorUpdatedAt:p,status:m}=c;h=c.data;let y=!1;if(r.placeholderData!==void 0&&h===void 0&&m==="pending"){let A;o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(A=o.data,y=!0):A=typeof r.placeholderData=="function"?r.placeholderData((_=$(this,Ga))==null?void 0:_.state.data,$(this,Ga)):r.placeholderData,A!==void 0&&(m="success",h=By(o==null?void 0:o.data,A,r),d=!0)}if(r.select&&h!==void 0&&!y)if(o&&h===(a==null?void 0:a.data)&&r.select===$(this,Yl))h=$(this,Va);else try{Q(this,Yl,r.select),h=r.select(h),h=By(o==null?void 0:o.data,h,r),Q(this,Va,h),Q(this,mi,null)}catch(A){Q(this,mi,A)}$(this,mi)&&(v=$(this,mi),h=$(this,Va),p=Date.now(),m="error");const g=c.fetchStatus==="fetching",b=m==="pending",S=m==="error",x=b&&g,w=h!==void 0,P={status:m,fetchStatus:c.fetchStatus,isPending:b,isSuccess:m==="success",isError:S,isInitialLoading:x,isLoading:x,data:h,dataUpdatedAt:c.dataUpdatedAt,error:v,errorUpdatedAt:p,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:g,isRefetching:g&&!b,isLoadingError:S&&!w,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:S&&w,isStale:F0(t,r),refetch:this.refetch,promise:$(this,yi),isEnabled:br(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const A=I=>{P.status==="error"?I.reject(P.error):P.data!==void 0&&I.resolve(P.data)},C=()=>{const I=Q(this,yi,P.promise=zy());A(I)},j=$(this,yi);switch(j.status){case"pending":t.queryHash===n.queryHash&&A(j);break;case"fulfilled":(P.status==="error"||P.data!==j.value)&&C();break;case"rejected":(P.status!=="error"||P.error!==j.reason)&&C();break}}return P}updateResult(){const t=$(this,Tt),r=this.createResult($(this,ye),this.options);if(Q(this,bo,$(this,ye).state),Q(this,Ka,this.options),$(this,bo).data!==void 0&&Q(this,Ga,$(this,ye)),Xf(r,t))return;Q(this,Tt,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!$(this,Qa).size)return!0;const a=new Set(o??$(this,Qa));return this.options.throwOnError&&a.add("error"),Object.keys($(this,Tt)).some(s=>{const u=s;return $(this,Tt)[u]!==t[u]&&a.has(u)})};ae(this,Oe,RE).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ae(this,Oe,Ky).call(this)}},Bt=new WeakMap,ye=new WeakMap,Xl=new WeakMap,Tt=new WeakMap,bo=new WeakMap,Ka=new WeakMap,yi=new WeakMap,mi=new WeakMap,Yl=new WeakMap,Va=new WeakMap,Ga=new WeakMap,xo=new WeakMap,wo=new WeakMap,gi=new WeakMap,Qa=new WeakMap,Oe=new WeakSet,Eu=function(t){ae(this,Oe,Qy).call(this);let r=$(this,ye).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(_t)),r},Wy=function(){ae(this,Oe,Vy).call(this);const t=Mi(this.options.staleTime,$(this,ye));if(Mo||$(this,Tt).isStale||!Ly(t))return;const n=_E($(this,Tt).dataUpdatedAt,t)+1;Q(this,xo,setTimeout(()=>{$(this,Tt).isStale||this.updateResult()},n))},qy=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval($(this,ye)):this.options.refetchInterval)??!1},Hy=function(t){ae(this,Oe,Gy).call(this),Q(this,gi,t),!(Mo||br(this.options.enabled,$(this,ye))===!1||!Ly($(this,gi))||$(this,gi)===0)&&Q(this,wo,setInterval(()=>{(this.options.refetchIntervalInBackground||L0.isFocused())&&ae(this,Oe,Eu).call(this)},$(this,gi)))},Ky=function(){ae(this,Oe,Wy).call(this),ae(this,Oe,Hy).call(this,ae(this,Oe,qy).call(this))},Vy=function(){$(this,xo)&&(clearTimeout($(this,xo)),Q(this,xo,void 0))},Gy=function(){$(this,wo)&&(clearInterval($(this,wo)),Q(this,wo,void 0))},Qy=function(){const t=$(this,Bt).getQueryCache().build($(this,Bt),this.options);if(t===$(this,ye))return;const r=$(this,ye);Q(this,ye,t),Q(this,Xl,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},RE=function(t){Ve.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r($(this,Tt))}),$(this,Bt).getQueryCache().notify({query:$(this,ye),type:"observerResultsUpdated"})})},l_);function vI(e,t){return br(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function xw(e,t){return vI(e,t)||e.state.data!==void 0&&Xy(e,t,t.refetchOnMount)}function Xy(e,t,r){if(br(t.enabled,e)!==!1&&Mi(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&F0(e,t)}return!1}function ww(e,t,r,n){return(e!==t||br(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&F0(e,r)}function F0(e,t){return br(t.enabled,e)!==!1&&e.isStaleByTime(Mi(t.staleTime,e))}function yI(e,t){return!Xf(e.getCurrentResult(),t)}function Sw(e,t){const r=new Set(t);return e.filter(n=>!r.has(n))}function mI(e,t,r){const n=e.slice(0);return n[t]=r,n}var Xa,yr,Ya,Za,mr,bi,Zl,Jl,ec,gt,Yy,Zy,Jy,em,tm,c_,gI=(c_=class extends qo{constructor(t,r,n){super();te(this,gt);te(this,Xa);te(this,yr);te(this,Ya);te(this,Za);te(this,mr);te(this,bi);te(this,Zl);te(this,Jl);te(this,ec,[]);Q(this,Xa,t),Q(this,Za,n),Q(this,Ya,[]),Q(this,mr,[]),Q(this,yr,[]),this.setQueries(r)}onSubscribe(){this.listeners.size===1&&$(this,mr).forEach(t=>{t.subscribe(r=>{ae(this,gt,em).call(this,t,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,$(this,mr).forEach(t=>{t.destroy()})}setQueries(t,r){Q(this,Ya,t),Q(this,Za,r),Ve.batch(()=>{const n=$(this,mr),i=ae(this,gt,Jy).call(this,$(this,Ya));Q(this,ec,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||(Q(this,mr,o),Q(this,yr,a),this.hasListeners()&&(Sw(n,o).forEach(u=>{u.destroy()}),Sw(o,n).forEach(u=>{u.subscribe(l=>{ae(this,gt,em).call(this,u,l)})}),ae(this,gt,tm).call(this)))})}getCurrentResult(){return $(this,yr)}getQueries(){return $(this,mr).map(t=>t.getCurrentQuery())}getObservers(){return $(this,mr)}getOptimisticResult(t,r){const n=ae(this,gt,Jy).call(this,t),i=n.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[i,o=>ae(this,gt,Zy).call(this,o??i,r),()=>ae(this,gt,Yy).call(this,i,n)]}},Xa=new WeakMap,yr=new WeakMap,Ya=new WeakMap,Za=new WeakMap,mr=new WeakMap,bi=new WeakMap,Zl=new WeakMap,Jl=new WeakMap,ec=new WeakMap,gt=new WeakSet,Yy=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)})})})},Zy=function(t,r){return r?((!$(this,bi)||$(this,yr)!==$(this,Jl)||r!==$(this,Zl))&&(Q(this,Zl,r),Q(this,Jl,$(this,yr)),Q(this,bi,D0($(this,bi),r(t)))),$(this,bi)):t},Jy=function(t){const r=new Map($(this,mr).map(i=>[i.options.queryHash,i])),n=[];return t.forEach(i=>{const o=$(this,Xa).defaultQueryOptions(i),a=r.get(o.queryHash);a?n.push({defaultedQueryOptions:o,observer:a}):n.push({defaultedQueryOptions:o,observer:new ac($(this,Xa),o)})}),n},em=function(t,r){const n=$(this,mr).indexOf(t);n!==-1&&(Q(this,yr,mI($(this,yr),n,r)),ae(this,gt,tm).call(this))},tm=function(){var t;if(this.hasListeners()){const r=$(this,bi),n=ae(this,gt,Yy).call(this,$(this,yr),$(this,ec)),i=ae(this,gt,Zy).call(this,n,(t=$(this,Za))==null?void 0:t.combine);r!==i&&Ve.batch(()=>{this.listeners.forEach(o=>{o($(this,yr))})})}},c_),NE=class extends ac{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:Zf()})}getOptimisticResult(e){return e.behavior=Zf(),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 v,p;const{state:r}=e,n=super.createResult(e,t),{isFetching:i,isRefetching:o,isError:a,isRefetchError:s}=n,u=(p=(v=r.fetchMeta)==null?void 0:v.fetchMore)==null?void 0:p.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:dI(t,r.data),hasPreviousPage:hI(t,r.data),isFetchNextPageError:l,isFetchingNextPage:f,isFetchPreviousPageError:c,isFetchingPreviousPage:d,isRefetchError:s&&!l&&!c,isRefetching:o&&!f&&!d}}},xi,wi,zt,$n,Un,wf,rm,f_,bI=(f_=class extends qo{constructor(r,n){super();te(this,Un);te(this,xi);te(this,wi);te(this,zt);te(this,$n);Q(this,xi,r),this.setOptions(n),this.bindMethods(),ae(this,Un,wf).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=$(this,xi).defaultMutationOptions(r),Xf(this.options,n)||$(this,xi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:$(this,zt),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Fi(n.mutationKey)!==Fi(this.options.mutationKey)?this.reset():((i=$(this,zt))==null?void 0:i.state.status)==="pending"&&$(this,zt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=$(this,zt))==null||r.removeObserver(this)}onMutationUpdate(r){ae(this,Un,wf).call(this),ae(this,Un,rm).call(this,r)}getCurrentResult(){return $(this,wi)}reset(){var r;(r=$(this,zt))==null||r.removeObserver(this),Q(this,zt,void 0),ae(this,Un,wf).call(this),ae(this,Un,rm).call(this)}mutate(r,n){var i;return Q(this,$n,n),(i=$(this,zt))==null||i.removeObserver(this),Q(this,zt,$(this,xi).getMutationCache().build($(this,xi),this.options)),$(this,zt).addObserver(this),$(this,zt).execute(r)}},xi=new WeakMap,wi=new WeakMap,zt=new WeakMap,$n=new WeakMap,Un=new WeakSet,wf=function(){var n;const r=((n=$(this,zt))==null?void 0:n.state)??ME();Q(this,wi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},rm=function(r){Ve.batch(()=>{var n,i,o,a,s,u,l,f;if($(this,$n)&&this.hasListeners()){const c=$(this,wi).variables,d=$(this,wi).context;(r==null?void 0:r.type)==="success"?((i=(n=$(this,$n)).onSuccess)==null||i.call(n,r.data,c,d),(a=(o=$(this,$n)).onSettled)==null||a.call(o,r.data,null,c,d)):(r==null?void 0:r.type)==="error"&&((u=(s=$(this,$n)).onError)==null||u.call(s,r.error,c,d),(f=(l=$(this,$n)).onSettled)==null||f.call(l,void 0,r.error,c,d))}this.listeners.forEach(c=>{c($(this,wi))})})},f_),DE=M.createContext(void 0),sc=e=>{const t=M.useContext(DE);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},xI=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(DE.Provider,{value:e,children:t})),LE=M.createContext(!1),FE=()=>M.useContext(LE);LE.Provider;function wI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var SI=M.createContext(wI()),BE=()=>M.useContext(SI),zE=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},UE=e=>{M.useEffect(()=>{e.clearReset()},[e])},WE=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||EE(r,[e.error,n])),B0=(e,t)=>t.state.data===void 0,qE=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))}},HE=(e,t)=>e.isLoading&&e.isFetching&&!t,nm=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Jf=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function KE({queries:e,...t},r){const n=sc(r),i=FE(),o=BE(),a=M.useMemo(()=>e.map(p=>{const m=n.defaultQueryOptions(p);return m._optimisticResults=i?"isRestoring":"optimistic",m}),[e,n,i]);a.forEach(p=>{qE(p),zE(p,o)}),UE(o);const[s]=M.useState(()=>new gI(n,a,t)),[u,l,f]=s.getOptimisticResult(a,t.combine),c=!i&&t.subscribed!==!1;M.useSyncExternalStore(M.useCallback(p=>c?s.subscribe(Ve.batchCalls(p)):_t,[s,c]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),M.useEffect(()=>{s.setQueries(a,t)},[a,t,s]);const h=u.some((p,m)=>nm(a[m],p))?u.flatMap((p,m)=>{const y=a[m];if(y){const g=new ac(n,y);if(nm(y,p))return Jf(y,g,o);HE(p,i)&&Jf(y,g,o)}return[]}):[];if(h.length>0)throw Promise.all(h);const v=u.find((p,m)=>{const y=a[m];return y&&WE({result:p,errorResetBoundary:o,throwOnError:y.throwOnError,query:n.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(v!=null&&v.error)throw v.error;return l(f())}function Ah(e,t,r){var c,d,h,v,p;const n=FE(),i=BE(),o=sc(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",qE(a),zE(a,i),UE(i);const s=!o.getQueryCache().get(a.queryHash),[u]=M.useState(()=>new t(o,a)),l=u.getOptimisticResult(a),f=!n&&e.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(m=>{const y=f?u.subscribe(Ve.batchCalls(m)):_t;return u.updateResult(),y},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),M.useEffect(()=>{u.setOptions(a)},[a,u]),nm(a,l))throw Jf(a,u,i);if(WE({result:l,errorResetBoundary:i,throwOnError:a.throwOnError,query:o.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw l.error;if((v=(h=o.getDefaultOptions().queries)==null?void 0:h._experimental_afterQuery)==null||v.call(h,a,l),a.experimental_prefetchInRender&&!Mo&&HE(l,n)){const m=s?Jf(a,u,i):(p=o.getQueryCache().get(a.queryHash))==null?void 0:p.promise;m==null||m.catch(_t).finally(()=>{u.updateResult()})}return a.notifyOnChangeProps?l:u.trackResult(l)}function OI(e,t){return Ah(e,ac,t)}function PI(e,t){return Ah({...e,enabled:!0,suspense:!0,throwOnError:B0,placeholderData:void 0},ac,t)}function _I(e,t){return Ah({...e,enabled:!0,suspense:!0,throwOnError:B0},NE,t)}function AI(e,t){return KE({...e,queries:e.queries.map(r=>({...r,suspense:!0,throwOnError:B0,enabled:!0,placeholderData:void 0}))},t)}function EI(e,t){const r=sc(t);r.getQueryState(e.queryKey)||r.prefetchQuery(e)}function jI(e,t){const r=sc(t);r.getQueryState(e.queryKey)||r.prefetchInfiniteQuery(e)}function CI(e,t){const r=sc(t),[n]=M.useState(()=>new bI(r,e));M.useEffect(()=>{n.setOptions(e)},[n,e]);const i=M.useSyncExternalStore(M.useCallback(a=>n.subscribe(Ve.batchCalls(a)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=M.useCallback((a,s)=>{n.mutate(a,s).catch(_t)},[n]);if(i.error&&EE(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function $I(e,t){return Ah(e,NE,t)}function Io(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const TI=typeof Symbol=="function"&&!!Symbol.asyncIterator;function VE(e){return TI&&Io(e)&&Symbol.asyncIterator in e}var kI=Object.create,GE=Object.defineProperty,MI=Object.getOwnPropertyDescriptor,QE=Object.getOwnPropertyNames,II=Object.getPrototypeOf,RI=Object.prototype.hasOwnProperty,uc=(e,t)=>function(){return t||(0,e[QE(e)[0]])((t={exports:{}}).exports,t),t.exports},NI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=QE(t),o=0,a=i.length,s;o<a;o++)s=i[o],!RI.call(e,s)&&s!==r&&GE(e,s,{get:(u=>t[u]).bind(null,s),enumerable:!(n=MI(t,s))||n.enumerable});return e},Eh=(e,t,r)=>(r=e!=null?kI(II(e)):{},NI(GE(r,"default",{value:e,enumerable:!0}),e));const XE=()=>{},Ow=e=>{Object.freeze&&Object.freeze(e)};function YE(e,t,r){var n;const i=t.join(".");return(n=r[i])!==null&&n!==void 0||(r[i]=new Proxy(XE,{get(o,a){if(!(typeof a!="string"||a==="then"))return YE(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)}),Ow(l.args),Ow(l.path),e(l)}})),r[i]}const jh=e=>YE(e,[],Object.create(null)),z0=e=>new Proxy(XE,{get(t,r){if(r!=="then")return e(r)}});var ZE=uc({"../../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}}),DI=uc({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=ZE().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}}),LI=uc({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=ZE().default,n=DI();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}}),JE=uc({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=LI();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}}),U0=uc({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=JE();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}});Eh(U0());Eh(JE());var Uc=Eh(U0());function FI(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,Uc.default)((0,Uc.default)({},e),{},{error:n})}}return{ok:!0,result:(0,Uc.default)((0,Uc.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var iv=class extends Error{constructor(){super("Unable to transform response from server")}};function BI(e,t){let r;try{r=FI(e,t)}catch{throw new iv}if(!r.ok&&(!Io(r.error.error)||typeof r.error.error.code!="number"))throw new iv;if(r.ok&&!Io(r.result))throw new iv;return r}Eh(U0());function Ch(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(zI,t)}};return t}function zI(e,t){return t(e)}function UI(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 WI=Object.create,ej=Object.defineProperty,qI=Object.getOwnPropertyDescriptor,tj=Object.getOwnPropertyNames,HI=Object.getPrototypeOf,KI=Object.prototype.hasOwnProperty,Wi=(e,t)=>function(){return t||(0,e[tj(e)[0]])((t={exports:{}}).exports,t),t.exports},VI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=tj(t),o=0,a=i.length,s;o<a;o++)s=i[o],!KI.call(e,s)&&s!==r&&ej(e,s,{get:(u=>t[u]).bind(null,s),enumerable:!(n=qI(t,s))||n.enumerable});return e},Ho=(e,t,r)=>(r=e!=null?WI(HI(e)):{},VI(t||!e||!e.__esModule?ej(r,"default",{value:e,enumerable:!0}):r,e)),GI=Wi({"../../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=Wi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var r=GI();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}}),rj=Wi({"../../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}}),XI=Wi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=rj().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}}),YI=Wi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=rj().default,n=XI();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}}),ZI=Wi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=YI();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}}),lc=Wi({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=ZI();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}}),JI=Ho(QI(),1),Pw=Ho(lc(),1);const eR=["cursor","direction"];function un(e,t,r){const n=e.flatMap(i=>i.split("."));if(!t&&(!r||r==="any"))return n.length?[n]:[];if(r==="infinite"&&Io(t)&&("direction"in t||"cursor"in t)){const{cursor:i,direction:o}=t,a=(0,JI.default)(t,eR);return[n,{input:a,type:"infinite"}]}return[n,(0,Pw.default)((0,Pw.default)({},typeof t<"u"&&t!==rr&&{input:t}),r&&r!=="any"&&{type:r})]}function Sf(e){return un(e,void 0,"any")}var tR=Object.create,nj=Object.defineProperty,rR=Object.getOwnPropertyDescriptor,ij=Object.getOwnPropertyNames,nR=Object.getPrototypeOf,iR=Object.prototype.hasOwnProperty,xn=(e,t)=>function(){return t||(0,e[ij(e)[0]])((t={exports:{}}).exports,t),t.exports},oR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=ij(t),o=0,a=i.length,s;o<a;o++)s=i[o],!iR.call(e,s)&&s!==r&&nj(e,s,{get:(u=>t[u]).bind(null,s),enumerable:!(n=rR(t,s))||n.enumerable});return e},Ye=(e,t,r)=>(r=e!=null?tR(nR(e)):{},oR(nj(r,"default",{value:e,enumerable:!0}),e)),oj=xn({"../../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}}),aR=xn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=oj().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}}),sR=xn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=oj().default,n=aR();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}}),Ko=xn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=sR();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}}),tn=xn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=Ko();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 uR(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 Ch(s=>(r++,i.push(s),o(),{unsubscribe(){r--,a();const u=i.findIndex(l=>l===s);u>-1&&i.splice(u,1)}}))}}function lR(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=Ch(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 cR(e){return Ch(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 Wc=Ye(Ko()),Jo=Ye(tn());function fR(e){return e instanceof ed}function dR(e){return Io(e)&&Io(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function hR(e,t){return typeof e=="string"?e:Io(e)&&typeof e.message=="string"?e.message:t}var ed=class Of extends Error{constructor(t,r){var n,i;const o=r==null?void 0:r.cause;super(t,{cause:o}),(0,Wc.default)(this,"cause",void 0),(0,Wc.default)(this,"shape",void 0),(0,Wc.default)(this,"data",void 0),(0,Wc.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,Of.prototype)}static from(t,r={}){const n=t;return fR(n)?(r.meta&&(n.meta=(0,Jo.default)((0,Jo.default)({},n.meta),r.meta)),n):dR(n)?new Of(n.error.message,(0,Jo.default)((0,Jo.default)({},r),{},{result:n})):new Of(hR(n,"Unknown error"),(0,Jo.default)((0,Jo.default)({},r),{},{cause:n}))}};function pR(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 _w=e=>typeof e=="function";function vR(e){if(e)return e;if(typeof window<"u"&&_w(window.fetch))return window.fetch;if(typeof globalThis<"u"&&_w(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Fu=Ye(tn());function yR(e){return{url:e.url.toString(),fetch:e.fetch,transformer:pR(e.transformer),methodOverride:e.methodOverride}}function mR(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[r]=n}return t}const gR={query:"GET",mutation:"POST",subscription:"PATCH"};function aj(e){return"input"in e?e.transformer.input.serialize(e.input):mR(e.inputs.map(t=>e.transformer.input.serialize(t)))}const sj=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=aj(e);o!==void 0&&e.methodOverride!=="POST"&&i.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return i.length&&(n+="?"+i.join("&")),n},bR=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=aj(e);return t!==void 0?JSON.stringify(t):void 0},xR=e=>PR((0,Fu.default)((0,Fu.default)({},e),{},{contentTypeHeader:"application/json",getUrl:sj,getBody:bR}));var wR=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const SR=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 wR};async function OR(e){var t;SR(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,Fu.default)((0,Fu.default)((0,Fu.default)({},e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),o);return vR(e.fetch)(r,{method:(t=e.methodOverride)!==null&&t!==void 0?t:gR[i],signal:e.signal,body:n,headers:a})}async function PR(e){const t={},r=await OR(e);t.response=r;const n=await r.json();return t.responseJSON=n,{json:n,meta:t}}Ye(tn());const Aw=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Ew(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(p=>p.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,v)=>{const p=l.items[v];try{var m;const g=await Promise.resolve(h);(m=p.resolve)===null||m===void 0||m.call(p,g)}catch(g){var y;(y=p.reject)===null||y===void 0||y.call(p,g)}p.batch=null,p.reject=null,p.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:Aw,reject:Aw},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 _R(...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 qc=Ye(tn());function AR(e){var t,r;const n=yR(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(p=>p.path).join(","),h=c.map(p=>p.input);return sj((0,qc.default)((0,qc.default)({},n),{},{type:f,path:d,inputs:h,signal:null})).length<=i},async fetch(c){const d=c.map(g=>g.path).join(","),h=c.map(g=>g.input),v=_R(...c.map(g=>g.signal)),p=await xR((0,qc.default)((0,qc.default)({},n),{},{path:d,inputs:h,type:f,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:c}):e.headers:{}},signal:v}));return(Array.isArray(p.json)?p.json:c.map(()=>p.json)).map(g=>({meta:p.meta,json:g}))}}),s=Ew(a("query")),u=Ew(a("mutation")),l={query:s,mutation:u};return({op:f})=>Ch(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 v;return h.then(p=>{v=p;const m=BI(p.json,n.transformer.output);if(!m.ok){c.error(ed.from(m.error,{meta:p.meta}));return}c.next({context:p.meta,result:m.result}),c.complete()}).catch(p=>{c.error(ed.from(p,{meta:v==null?void 0:v.meta}))}),()=>{}})}}Ye(tn());const uj=(e,...t)=>typeof e=="function"?e(...t):e;Ye(Ko());function ER(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}}async function jR(e){const t=await uj(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function CR(e){const t={method:"connectionParams",data:await uj(e)};return JSON.stringify(t)}Ye(Ko());var eo=Ye(Ko());function $R(e){const{promise:t,resolve:r,reject:n}=ER();return e.addEventListener("open",()=>{e.removeEventListener("error",n),r()}),e.addEventListener("error",n),t}function TR(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 kR=class im{constructor(t){var r;if((0,eo.default)(this,"id",++im.connectCount),(0,eo.default)(this,"WebSocketPonyfill",void 0),(0,eo.default)(this,"urlOptions",void 0),(0,eo.default)(this,"keepAliveOpts",void 0),(0,eo.default)(this,"wsObservable",lR(null)),(0,eo.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=++im.connectCount;const r=jR(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&&TR(n,t.keepAliveOpts),n.addEventListener("close",()=>{t.ws===n&&(t.ws=null)}),await $R(n),t.urlOptions.connectionParams&&n.send(await CR(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,eo.default)(kR,"connectCount",0);Ye(Ko());Ye(tn());var ov=Ye(Ko()),jw=Ye(tn()),$h=class{constructor(e){(0,ov.default)(this,"links",void 0),(0,ov.default)(this,"runtime",void 0),(0,ov.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return cR({links:this.links,op:(0,jw.default)((0,jw.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(uR())}async requestAsPromise(e){var t=this;try{const r=t.$request(e);return(await UI(r)).result.data}catch(r){throw ed.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 lj=Symbol.for("trpc_untypedClient"),MR={query:"query",mutate:"mutation",subscribe:"subscription"},IR=e=>MR[e];function cj(e){const t=jh(({path:r,args:n})=>{const i=[...r],o=IR(i.pop()),a=i.join(".");return e[o](a,...n)});return z0(r=>r===lj?e:t[r])}function RR(e){const t=new $h(e);return cj(t)}function W0(e){return e[lj]}Ye(tn());Ye(tn());var NR=xn({"../../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}});Ye(NR());Ye(tn());var DR=xn({"../../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(v){return d(v)}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}}),fj=xn({"../../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}}),LR=xn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var r=fj();function n(i){return new r(i,0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),FR=xn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var r=fj();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,v=h instanceof r;Promise.resolve(v?h.v:h).then(function(p){if(v){var m=f==="return"?"return":"next";if(!h.k||p.done)return u(m,p);p=o[m](p).value}l(d.done?"return":"normal",p)},function(p){u("throw",p)})}catch(p){l("throw",p)}}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 v={key:f,arg:c,resolve:d,reject:h,next:null};s?s=s.next=v:(a=s=v,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}});Ye(DR());Ye(LR());Ye(FR());Ye(tn());function BR(e){return jh(({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 av;const zR=["client","ssrContext","ssrState","abortOnUnmount"],UR=(av=M.createContext)===null||av===void 0?void 0:av.call(zk,null),WR=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 qR(e){return jh(t=>{const r=[...t.path],n=r.pop(),i=[...t.args],o=i.shift(),a=WR(n),s=un(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(Sf(r),o),getMutationDefaults:()=>e.getMutationDefaults(Sf(r)),isMutating:()=>e.isMutating({mutationKey:Sf(r)})}[n]()})}function HR(e){const t=cj(e.client),r=qR(e);return z0(n=>{const i=n;return i==="client"?t:zR.includes(i)?e[i]:r[n]})}var KR=Ho(lc(),1);function Cw(e){const t=e instanceof $h?e:W0(e);return jh(r=>{const n=r.path,i=n.join("."),[o,a]=r.args;return(0,KR.default)({queryKey:un(n,o,"query"),queryFn:()=>t.query(i,o,a==null?void 0:a.trpc)},a)})}var sv=Ho(lc(),1);function Mt(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,sv.default)((0,sv.default)((0,sv.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 VR=Wi({"../../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}}),GR=Ho(VR(),1);function om(e){return{path:e.path.join(".")}}function uu(e){const t=om(e);return M.useMemo(()=>t,[t])}async function dj(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,GR.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 ge=Ho(lc(),1);function QR(e){const{client:t,queryClient:r}=e,n=t instanceof $h?t:W0(t);return{infiniteQueryOptions:(i,o,a)=>{var s,u;const l=((s=o[1])===null||s===void 0?void 0:s.input)===rr,f=async c=>{var d;const h=(0,ge.default)((0,ge.default)({},a),{},{trpc:(0,ge.default)((0,ge.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(...Mt(o,h,{direction:c.direction,pageParam:c.pageParam}))};return Object.assign((0,ge.default)((0,ge.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:o,queryFn:l?rr:f,initialPageParam:(u=a==null?void 0:a.initialCursor)!==null&&u!==void 0?u:null}),{trpc:om({path:i})})},queryOptions:(i,o,a)=>{var s;const u=((s=o[1])===null||s===void 0?void 0:s.input)===rr,l=async f=>{var c;const d=(0,ge.default)((0,ge.default)({},a),{},{trpc:(0,ge.default)((0,ge.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(...Mt(o,d));return VE(h)?dj(h,r,o):h};return Object.assign((0,ge.default)((0,ge.default)({},a),{},{initialData:a==null?void 0:a.initialData,queryKey:o,queryFn:u?rr:l}),{trpc:om({path:i})})},fetchQuery:(i,o)=>r.fetchQuery((0,ge.default)((0,ge.default)({},o),{},{queryKey:i,queryFn:()=>n.query(...Mt(i,o))})),fetchInfiniteQuery:(i,o)=>{var a;return r.fetchInfiniteQuery((0,ge.default)((0,ge.default)({},o),{},{queryKey:i,queryFn:({pageParam:s,direction:u})=>n.query(...Mt(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,ge.default)((0,ge.default)({},o),{},{queryKey:i,queryFn:()=>n.query(...Mt(i,o))})),prefetchInfiniteQuery:(i,o)=>{var a;return r.prefetchInfiniteQuery((0,ge.default)((0,ge.default)({},o),{},{queryKey:i,queryFn:({pageParam:s,direction:u})=>n.query(...Mt(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,ge.default)((0,ge.default)({},o),{},{queryKey:i,queryFn:()=>n.query(...Mt(i,o))})),invalidateQueries:(i,o,a)=>r.invalidateQueries((0,ge.default)((0,ge.default)({},o),{},{queryKey:i}),a),resetQueries:(i,o,a)=>r.resetQueries((0,ge.default)((0,ge.default)({},o),{},{queryKey:i}),a),refetchQueries:(i,o,a)=>r.refetchQueries((0,ge.default)((0,ge.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,ge.default)((0,ge.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(...Mt([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,ge.default)((0,ge.default)({},i),{},{exact:!0}))}}var Y=Ho(lc());const $w=(e,t)=>new Proxy(e,{get(n,i){return t(i),n[i]}});function XR(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:UR,o=RR,a=x=>{var w;const{abortOnUnmount:O=!1,queryClient:P,ssrContext:_}=x,[A,C]=M.useState((w=x.ssrState)!==null&&w!==void 0?w:!1),j=x.client instanceof $h?x.client:W0(x.client),I=M.useMemo(()=>QR({client:j,queryClient:P}),[j,P]),N=M.useMemo(()=>(0,Y.default)({abortOnUnmount:O,queryClient:P,client:j,ssrContext:_??null,ssrState:A},I),[O,j,I,P,_,A]);return M.useEffect(()=>{C(D=>D?"mounted":!1)},[]),E.jsx(i.Provider,{value:N,children:x.children})};function s(){const x=M.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 O;const{queryClient:P,ssrState:_}=s();return _&&_!=="mounted"&&((O=P.getQueryCache().find({queryKey:x}))===null||O===void 0?void 0:O.state.status)==="error"?(0,Y.default)({retryOnMount:!1},w):w}function l(x,w,O){var P,_,A,C,j;const I=s(),{abortOnUnmount:N,client:D,ssrState:R,queryClient:F,prefetchQuery:k}=I,L=un(x,w,"query"),z=F.getQueryDefaults(L),U=w===rr;typeof window>"u"&&R==="prepass"&&(O==null||(P=O.trpc)===null||P===void 0?void 0:P.ssr)!==!1&&((_=O==null?void 0:O.enabled)!==null&&_!==void 0?_:z==null?void 0:z.enabled)!==!1&&!U&&!F.getQueryCache().find({queryKey:L})&&k(L,O);const W=u(L,(0,Y.default)((0,Y.default)({},z),O)),H=(A=(C=O==null||(j=O.trpc)===null||j===void 0?void 0:j.abortOnUnmount)!==null&&C!==void 0?C:void 0)!==null&&A!==void 0?A:N,X=OI((0,Y.default)((0,Y.default)({},W),{},{queryKey:L,queryFn:U?w:async Z=>{const ne=(0,Y.default)((0,Y.default)({},W),{},{trpc:(0,Y.default)((0,Y.default)({},W==null?void 0:W.trpc),H?{signal:Z.signal}:{signal:null})}),he=await D.query(...Mt(L,ne));return VE(he)?dj(he,F,L):he}}),F);return X.trpc=uu({path:x}),X}function f(x,w,O){var P,_,A;const C=s(),j=un(x,w,"query"),I=w===rr,N=(P=(_=O==null||(A=O.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&_!==void 0?_:void 0)!==null&&P!==void 0?P:C.abortOnUnmount;EI((0,Y.default)((0,Y.default)({},O),{},{queryKey:j,queryFn:I?w:D=>{const R={trpc:(0,Y.default)((0,Y.default)({},O==null?void 0:O.trpc),N?{signal:D.signal}:{})};return C.client.query(...Mt(j,R))}}))}function c(x,w,O){var P,_,A;const C=s(),j=un(x,w,"query"),I=(P=(_=O==null||(A=O.trpc)===null||A===void 0?void 0:A.abortOnUnmount)!==null&&_!==void 0?_:void 0)!==null&&P!==void 0?P:C.abortOnUnmount,N=PI((0,Y.default)((0,Y.default)({},O),{},{queryKey:j,queryFn:D=>{const R=(0,Y.default)((0,Y.default)({},O),{},{trpc:(0,Y.default)((0,Y.default)({},O==null?void 0:O.trpc),I?{signal:D.signal}:{signal:null})});return C.client.query(...Mt(j,R))}}),C.queryClient);return N.trpc=uu({path:x}),[N.data,N]}function d(x,w){const{client:O,queryClient:P}=s(),_=Sf(x),A=P.defaultMutationOptions(P.getMutationDefaults(_)),C=CI((0,Y.default)((0,Y.default)({},w),{},{mutationKey:_,mutationFn:j=>O.mutation(...Mt([x,{input:j}],w)),onSuccess(...j){var I,N;return n({originalFn:()=>{var R,F,k;return(R=w==null||(F=w.onSuccess)===null||F===void 0?void 0:F.call(w,...j))!==null&&R!==void 0?R:A==null||(k=A.onSuccess)===null||k===void 0?void 0:k.call(A,...j)},queryClient:P,meta:(I=(N=w==null?void 0:w.meta)!==null&&N!==void 0?N:A==null?void 0:A.meta)!==null&&I!==void 0?I:{}})}}),P);return C.trpc=uu({path:x}),C}const h={data:void 0,error:null,status:"idle"},v={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function p(x,w,O){var P;const _=(P=O==null?void 0:O.enabled)!==null&&P!==void 0?P:w!==rr,A=Fi(un(x,w,"any")),{client:C}=s(),j=M.useRef(O);M.useEffect(()=>{j.current=O});const[I]=M.useState(new Set([])),N=M.useCallback(U=>{I.add(U)},[I]),D=M.useRef(null),R=M.useCallback(U=>{const W=k.current,H=k.current=U(W);let X=!1;for(const Z of I)if(W[Z]!==H[Z]){X=!0;break}X&&z($w(H,N))},[N,I]),F=M.useCallback(()=>{var U;if((U=D.current)===null||U===void 0||U.unsubscribe(),!_){R(()=>(0,Y.default)((0,Y.default)({},h),{},{reset:F}));return}R(()=>(0,Y.default)((0,Y.default)({},v),{},{reset:F}));const W=C.subscription(x.join("."),w??void 0,{onStarted:()=>{var H,X;(H=(X=j.current).onStarted)===null||H===void 0||H.call(X),R(Z=>(0,Y.default)((0,Y.default)({},Z),{},{status:"pending",error:null}))},onData:H=>{var X,Z;(X=(Z=j.current).onData)===null||X===void 0||X.call(Z,H),R(ne=>(0,Y.default)((0,Y.default)({},ne),{},{status:"pending",data:H,error:null}))},onError:H=>{var X,Z;(X=(Z=j.current).onError)===null||X===void 0||X.call(Z,H),R(ne=>(0,Y.default)((0,Y.default)({},ne),{},{status:"error",error:H}))},onConnectionStateChange:H=>{R(X=>{switch(H.state){case"idle":return(0,Y.default)((0,Y.default)({},X),{},{status:H.state,error:null,data:void 0});case"connecting":return(0,Y.default)((0,Y.default)({},X),{},{error:H.error,status:H.state});case"pending":return X}})},onComplete:()=>{var H,X;(H=(X=j.current).onComplete)===null||H===void 0||H.call(X),R(Z=>(0,Y.default)((0,Y.default)({},Z),{},{status:"idle",error:null,data:void 0}))}});D.current=W},[C,A,_,R]);M.useEffect(()=>(F(),()=>{var U;(U=D.current)===null||U===void 0||U.unsubscribe()}),[F]);const k=M.useRef(_?(0,Y.default)((0,Y.default)({},v),{},{reset:F}):(0,Y.default)((0,Y.default)({},h),{},{reset:F})),[L,z]=M.useState($w(k.current,N));return L}function m(x,w,O){var P,_,A,C,j;const{client:I,ssrState:N,prefetchInfiniteQuery:D,queryClient:R,abortOnUnmount:F}=s(),k=un(x,w,"infinite"),L=R.getQueryDefaults(k),z=w===rr;typeof window>"u"&&N==="prepass"&&(O==null||(P=O.trpc)===null||P===void 0?void 0:P.ssr)!==!1&&((_=O==null?void 0:O.enabled)!==null&&_!==void 0?_:L==null?void 0:L.enabled)!==!1&&!z&&!R.getQueryCache().find({queryKey:k})&&D(k,(0,Y.default)((0,Y.default)({},L),O));const U=u(k,(0,Y.default)((0,Y.default)({},L),O)),W=(A=O==null||(C=O.trpc)===null||C===void 0?void 0:C.abortOnUnmount)!==null&&A!==void 0?A:F,H=$I((0,Y.default)((0,Y.default)({},U),{},{initialPageParam:(j=O.initialCursor)!==null&&j!==void 0?j:null,persister:O.persister,queryKey:k,queryFn:z?w:X=>{var Z;const ne=(0,Y.default)((0,Y.default)({},U),{},{trpc:(0,Y.default)((0,Y.default)({},U==null?void 0:U.trpc),W?{signal:X.signal}:{signal:null})});return I.query(...Mt(k,ne,{pageParam:(Z=X.pageParam)!==null&&Z!==void 0?Z:O.initialCursor,direction:X.direction}))}}),R);return H.trpc=uu({path:x}),H}function y(x,w,O){var P,_,A;const C=s(),j=un(x,w,"infinite"),I=C.queryClient.getQueryDefaults(j),N=w===rr,D=u(j,(0,Y.default)((0,Y.default)({},I),O)),R=(P=O==null||(_=O.trpc)===null||_===void 0?void 0:_.abortOnUnmount)!==null&&P!==void 0?P:C.abortOnUnmount;jI((0,Y.default)((0,Y.default)({},O),{},{initialPageParam:(A=O.initialCursor)!==null&&A!==void 0?A:null,queryKey:j,queryFn:N?w:F=>{var k;const L=(0,Y.default)((0,Y.default)({},D),{},{trpc:(0,Y.default)((0,Y.default)({},D==null?void 0:D.trpc),R?{signal:F.signal}:{})});return C.client.query(...Mt(j,L,{pageParam:(k=F.pageParam)!==null&&k!==void 0?k:O.initialCursor,direction:F.direction}))}}))}function g(x,w,O){var P,_,A;const C=s(),j=un(x,w,"infinite"),I=C.queryClient.getQueryDefaults(j),N=u(j,(0,Y.default)((0,Y.default)({},I),O)),D=(P=O==null||(_=O.trpc)===null||_===void 0?void 0:_.abortOnUnmount)!==null&&P!==void 0?P:C.abortOnUnmount,R=_I((0,Y.default)((0,Y.default)({},O),{},{initialPageParam:(A=O.initialCursor)!==null&&A!==void 0?A:null,queryKey:j,queryFn:F=>{var k;const L=(0,Y.default)((0,Y.default)({},N),{},{trpc:(0,Y.default)((0,Y.default)({},N==null?void 0:N.trpc),D?{signal:F.signal}:{})});return C.client.query(...Mt(j,L,{pageParam:(k=F.pageParam)!==null&&k!==void 0?k:O.initialCursor,direction:F.direction}))}}),C.queryClient);return R.trpc=uu({path:x}),[R.data,R]}return{Provider:a,createClient:o,useContext:s,useUtils:s,useQuery:l,usePrefetchQuery:f,useSuspenseQuery:c,useQueries:(x,w)=>{const{ssrState:O,queryClient:P,prefetchQuery:_,client:A}=s(),C=Cw(A),j=x(C);if(typeof window>"u"&&O==="prepass")for(const N of j){var I;const D=N;((I=D.trpc)===null||I===void 0?void 0:I.ssr)!==!1&&!P.getQueryCache().find({queryKey:D.queryKey})&&_(D.queryKey,D)}return KE({queries:j.map(N=>(0,Y.default)((0,Y.default)({},N),{},{queryKey:N.queryKey})),combine:w==null?void 0:w.combine},P)},useSuspenseQueries:x=>{const{queryClient:w,client:O}=s(),P=Cw(O),_=x(P),A=AI({queries:_.map(C=>(0,Y.default)((0,Y.default)({},C),{},{queryFn:C.queryFn,queryKey:C.queryKey}))},w);return[A.map(C=>C.data),A]},useMutation:d,useSubscription:p,useInfiniteQuery:m,usePrefetchInfiniteQuery:y,useSuspenseInfiniteQuery:g}}function YR(e){const t=BR(e);return z0(r=>r==="useContext"||r==="useUtils"?()=>{const n=e.useUtils();return M.useMemo(()=>HR(n),[n])}:e.hasOwnProperty(r)?e[r]:t[r])}function ZR(e){const t=XR();return YR(t)}const Ii=ZR(),JR=Ii.createClient({links:[AR({url:"/api/trpc"})]});var eN="Invariant failed";function Ct(e,t){if(!e)throw new Error(eN)}const $a=new WeakMap,Pf=new WeakMap,td={current:[]};let uv=!1,Bu=0;const ju=new Set,Hc=new Map;function hj(e){const t=Array.from(e).sort((r,n)=>r instanceof Ta&&r.options.deps.includes(n)?1:n instanceof Ta&&n.options.deps.includes(r)?-1:0);for(const r of t){if(td.current.includes(r))continue;td.current.push(r),r.recompute();const n=Pf.get(r);if(n)for(const i of n){const o=$a.get(i);o&&hj(o)}}}function tN(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function rN(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function pj(e){if(Bu>0&&!Hc.has(e)&&Hc.set(e,e.prevState),ju.add(e),!(Bu>0)&&!uv)try{for(uv=!0;ju.size>0;){const t=Array.from(ju);ju.clear();for(const r of t){const n=Hc.get(r)??r.prevState;r.prevState=n,tN(r)}for(const r of t){const n=$a.get(r);n&&(td.current.push(r),hj(n))}for(const r of t){const n=$a.get(r);if(n)for(const i of n)rN(i)}}}finally{uv=!1,td.current=[],Hc.clear()}}function Tw(e){Bu++;try{e()}finally{if(Bu--,Bu===0){const t=Array.from(ju)[0];t&&pj(t)}}}function nN(e){return typeof e=="function"}class am{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):nN(t)?this.state=t(this.prevState):this.state=t,(i=(n=this.options)==null?void 0:n.onUpdate)==null||i.call(n),pj(this)}}class Ta{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 Ta&&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 Ta)r.registerOnGraph(),this.registerOnGraph(r.options.deps);else if(r instanceof am){let n=$a.get(r);n||(n=new Set,$a.set(r,n)),n.add(this);let i=Pf.get(this);i||(i=new Set,Pf.set(this,i)),i.add(r)}}unregisterFromGraph(t=this.options.deps){for(const r of t)if(r instanceof Ta)this.unregisterFromGraph(r.options.deps);else if(r instanceof am){const n=$a.get(r);n&&n.delete(this);const i=Pf.get(this);i&&i.delete(r)}}}const Ri="__TSR_index",kw="popstate",Mw="beforeunload";function vj(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 v of d){const p=dl(u.path,u.state);if(await v.blockerFn({currentLocation:t,nextLocation:p,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[Ri];s=sm(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[Ri];s=sm(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[Ri]!==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 sm(e,t){t||(t={});const r=q0();return{...t,key:r,__TSR_key:r,[Ri]:e}}function iN(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=()=>dl(`${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=q0();n.history.replaceState({[Ri]:0,key:A,__TSR_key:A},"")}let c=f(),d,h=!1,v=!1,p=!1,m=!1;const y=()=>c;let g,b;const S=()=>{g&&(_._ignoreSubscribers=!0,(g.isPush?n.history.pushState:n.history.replaceState)(g.state,"",g.href),_._ignoreSubscribers=!1,g=void 0,b=void 0,d=void 0)},x=(A,C,j)=>{const I=l(C);b||(d=c),c=dl(C,j),g={href:I,state:j,isPush:(g==null?void 0:g.isPush)||A==="push"},b||(b=Promise.resolve().then(()=>S()))},w=A=>{c=f(),_.notify({type:A})},O=async()=>{if(v){v=!1;return}const A=f(),C=A.state[Ri]-c.state[Ri],j=C===1,I=C===-1,N=!j&&!I||h;h=!1;const D=N?"GO":I?"BACK":"FORWARD",R=N?{type:"GO",index:C}:{type:I?"BACK":"FORWARD"};if(p)p=!1;else{const F=s();if(typeof document<"u"&&F.length){for(const k of F)if(await k.blockerFn({currentLocation:c,nextLocation:A,action:D})){v=!0,n.history.go(1),_.notify(R);return}}}c=f(),_.notify(R)},P=A=>{if(m){m=!1;return}let C=!1;const j=s();if(typeof document<"u"&&j.length)for(const I of j){const N=I.enableBeforeUnload??!0;if(N===!0){C=!0;break}if(typeof N=="function"&&N()===!0){C=!0;break}}if(C)return A.preventDefault(),A.returnValue=""},_=vj({getLocation:y,getLength:()=>n.history.length,pushState:(A,C)=>x("push",A,C),replaceState:(A,C)=>x("replace",A,C),back:A=>(A&&(p=!0),m=!0,n.history.back()),forward:A=>{A&&(p=!0),m=!0,n.history.forward()},go:A=>{h=!0,n.history.go(A)},createHref:A=>l(A),flush:S,destroy:()=>{n.history.pushState=i,n.history.replaceState=o,n.removeEventListener(Mw,P,{capture:!0}),n.removeEventListener(kw,O)},onBlocked:()=>{d&&c!==d&&(c=d)},getBlockers:s,setBlockers:u,notifyOnIndexChange:!1});return n.addEventListener(Mw,P,{capture:!0}),n.addEventListener(kw,O),n.history.pushState=function(...A){const C=i.apply(n.history,A);return _._ignoreSubscribers||w("PUSH"),C},n.history.replaceState=function(...A){const C=o.apply(n.history,A);return _._ignoreSubscribers||w("REPLACE"),C},_}function oN(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)=>sm(a,void 0));return vj({getLocation:()=>dl(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 dl(e,t){const r=e.indexOf("#"),n=e.indexOf("?"),i=q0();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||{[Ri]:0,key:i,__TSR_key:i}}}function q0(){return(Math.random()+1).toString(36).substring(7)}function um(e){return e[e.length-1]}function aN(e){return typeof e=="function"}function Po(e,t){return aN(e)?e(t):e}function rd(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function pr(e,t){if(e===t)return e;const r=t,n=Nw(e)&&Nw(r);if(n||Iw(e)&&Iw(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]=pr(e[c],r[c]),u[c]===e[c]&&e[c]!==void 0&&l++)}return o===s&&l===o?e:u}return r}function Iw(e){return lm(e)&&Object.getOwnPropertyNames(e).length===Object.keys(e).length}function lm(e){if(!Rw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Rw(r)||!r.hasOwnProperty("isPrototypeOf"))}function Rw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Nw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Dw(e,t){let r=Object.keys(e);return t&&(r=r.filter(n=>e[n]!==void 0)),r}function ka(e,t,r){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(lm(e)&&lm(t)){const n=(r==null?void 0:r.ignoreUndefined)??!0,i=Dw(e,n),o=Dw(t,n);return!(r!=null&&r.partial)&&i.length!==o.length?!1:o.every(a=>ka(e[a],t[a],r))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((n,i)=>!ka(n,t[i],r)):!1}function ia(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}const Dn=0,Ro=1,No=2,as=3;function Ln(e){return H0(e.filter(t=>t!==void 0).join("/"))}function H0(e){return e.replace(/\/{2,}/g,"/")}function K0(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ss(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function lv(e){return ss(K0(e))}function nd(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function sN(e,t,r){return nd(e,r)===nd(t,r)}function uN(e){const{type:t,value:r}=e;if(t===Dn)return r;const{prefixSegment:n,suffixSegment:i}=e;if(t===Ro){const o=r.substring(1);if(n&&i)return`${n}{$${o}}${i}`;if(n)return`${n}{$${o}}`;if(i)return`{$${o}}${i}`}if(t===as){const o=r.substring(1);return n&&i?`${n}{-$${o}}${i}`:n?`${n}{-$${o}}`:i?`{-$${o}}${i}`:`{-$${o}}`}if(t===No){if(n&&i)return`${n}{$}${i}`;if(n)return`${n}{$}`;if(i)return`{$}${i}`}return r}function lN({basepath:e,base:t,to:r,trailingSlash:n="never",caseSensitive:i,parseCache:o}){var a;t=id(e,t,i),r=id(e,r,i);let s=us(t,o).slice();const u=us(r,o);s.length>1&&((a=um(s))==null?void 0:a.value)==="/"&&s.pop();for(let c=0,d=u.length;c<d;c++){const h=u[c],v=h.value;v==="/"?c?c===d-1&&s.push(h):s=[h]:v===".."?s.pop():v==="."||s.push(h)}s.length>1&&(um(s).value==="/"?n==="never"&&s.pop():n==="always"&&s.push({type:Dn,value:"/"}));const l=s.map(uN);return Ln([e,...l])}const us=(e,t)=>{if(!e)return[];const r=t==null?void 0:t.get(e);if(r)return r;const n=vN(e);return t==null||t.set(e,n),n},cN=/^\$.{1,}$/,fN=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,dN=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,hN=/^\$$/,pN=/^(.*?)\{\$\}(.*)$/;function vN(e){e=H0(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:Dn,value:"/"})),!e)return t;const r=e.split("/").filter(Boolean);return t.push(...r.map(n=>{const i=n.match(pN);if(i){const s=i[1],u=i[2];return{type:No,value:"$",prefixSegment:s||void 0,suffixSegment:u||void 0}}const o=n.match(dN);if(o){const s=o[1],u=o[2],l=o[3];return{type:as,value:u,prefixSegment:s||void 0,suffixSegment:l||void 0}}const a=n.match(fN);if(a){const s=a[1],u=a[2],l=a[3];return{type:Ro,value:""+u,prefixSegment:s||void 0,suffixSegment:l||void 0}}if(cN.test(n)){const s=n.substring(1);return{type:Ro,value:"$"+s,prefixSegment:void 0,suffixSegment:void 0}}return hN.test(n)?{type:No,value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:Dn,value:n.includes("%25")?n.split("%25").map(s=>decodeURI(s)).join("%25"):decodeURI(n)}})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:Dn,value:"/"})),t}function Kc({path:e,params:t,leaveWildcards:r,leaveParams:n,decodeCharMap:i,parseCache:o}){const a=us(e,o);function s(c){const d=t[c],h=typeof d=="string";return c==="*"||c==="_splat"?h?encodeURI(d):d:h?yN(d,i):d}let u=!1;const l={},f=Ln(a.map(c=>{if(c.type===Dn)return c.value;if(c.type===No){l._splat=t._splat;const d=c.prefixSegment||"",h=c.suffixSegment||"";if(!("_splat"in t))return u=!0,r?`${d}${c.value}${h}`:d||h?`${d}${h}`:void 0;const v=s("_splat");return r?`${d}${c.value}${v??""}${h}`:`${d}${v}${h}`}if(c.type===Ro){const d=c.value.substring(1);!u&&!(d in t)&&(u=!0),l[d]=t[d];const h=c.prefixSegment||"",v=c.suffixSegment||"";if(n){const p=s(c.value);return`${h}${c.value}${p??""}${v}`}return`${h}${s(d)??"undefined"}${v}`}if(c.type===as){const d=c.value.substring(1),h=c.prefixSegment||"",v=c.suffixSegment||"";if(!(d in t)||t[d]==null)return r?`${h}${d}${v}`:h||v?`${h}${v}`:void 0;if(l[d]=t[d],n){const p=s(c.value);return`${h}${c.value}${p??""}${v}`}return r?`${h}${d}${s(d)??""}${v}`:`${h}${s(d)??""}${v}`}return c.value}));return{usedParams:l,interpolatedPath:f,isMissingParams:u}}function yN(e,t){let r=encodeURIComponent(e);if(t)for(const[n,i]of t)r=r.replaceAll(n,i);return r}function cm(e,t,r,n){const i=mN(e,t,r,n);if(!(r.to&&!i))return i??{}}function id(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 mN(e,t,{to:r,fuzzy:n,caseSensitive:i},o){if(e!=="/"&&!t.startsWith(e))return;t=id(e,t,i),r=id(e,`${r??"$"}`,i);const a=us(t.startsWith("/")?t:`/${t}`,o),s=us(r.startsWith("/")?r:`/${r}`,o),u={};return gN(a,s,u,n,i)?u:void 0}function gN(e,t,r,n,i){var o,a,s;let u=0,l=0;for(;u<e.length||l<t.length;){const f=e[u],c=t[l];if(c){if(c.type===No){const d=e.slice(u);let h;if(c.prefixSegment||c.suffixSegment){if(!f)return!1;const v=c.prefixSegment||"",p=c.suffixSegment||"",m=f.value;if("prefixSegment"in c&&!m.startsWith(v)||"suffixSegment"in c&&!((o=e[e.length-1])!=null&&o.value.endsWith(p)))return!1;let y=decodeURI(Ln(d.map(g=>g.value)));v&&y.startsWith(v)&&(y=y.slice(v.length)),p&&y.endsWith(p)&&(y=y.slice(0,y.length-p.length)),h=y}else h=decodeURI(Ln(d.map(v=>v.value)));return r["*"]=h,r._splat=h,!0}if(c.type===Dn){if(c.value==="/"&&!(f!=null&&f.value)){l++;continue}if(f){if(i){if(c.value!==f.value)return!1}else if(c.value.toLowerCase()!==f.value.toLowerCase())return!1;u++,l++;continue}else return!1}if(c.type===Ro){if(!f||f.value==="/")return!1;let d="",h=!1;if(c.prefixSegment||c.suffixSegment){const v=c.prefixSegment||"",p=c.suffixSegment||"",m=f.value;if(v&&!m.startsWith(v)||p&&!m.endsWith(p))return!1;let y=m;v&&y.startsWith(v)&&(y=y.slice(v.length)),p&&y.endsWith(p)&&(y=y.slice(0,y.length-p.length)),d=decodeURIComponent(y),h=!0}else d=decodeURIComponent(f.value),h=!0;h&&(r[c.value.substring(1)]=d,u++),l++;continue}if(c.type===as){if(!f){l++;continue}if(f.value==="/"){l++;continue}let d="",h=!1;if(c.prefixSegment||c.suffixSegment){const v=c.prefixSegment||"",p=c.suffixSegment||"",m=f.value;if((!v||m.startsWith(v))&&(!p||m.endsWith(p))){let y=m;v&&y.startsWith(v)&&(y=y.slice(v.length)),p&&y.endsWith(p)&&(y=y.slice(0,y.length-p.length)),d=decodeURIComponent(y),h=!0}}else{let v=!0;for(let p=l+1;p<t.length;p++){const m=t[p];if((m==null?void 0:m.type)===Dn&&m.value===f.value){v=!1;break}if((m==null?void 0:m.type)===Ro||(m==null?void 0:m.type)===No){e.length<t.length&&(v=!1);break}}v&&(d=decodeURIComponent(f.value),h=!0)}h&&(r[c.value.substring(1)]=d,u++),l++;continue}}if(u<e.length&&l>=t.length)return r["**"]=Ln(e.slice(u).map(d=>d.value)),!!n&&((a=t[t.length-1])==null?void 0:a.value)!=="/";if(l<t.length&&u>=e.length){for(let d=l;d<t.length;d++)if(((s=t[d])==null?void 0:s.type)!==as)return!1;break}break}return!0}function gr(e){return!!(e!=null&&e.isNotFound)}function bN(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{return}}const od="tsr-scroll-restoration-v1_3",xN=(e,t)=>{let r;return(...n)=>{r||(r=setTimeout(()=>{e(...n),r=null},t))}};function wN(){const e=bN();if(!e)return;const t=e.getItem(od);let r=t?JSON.parse(t):{};return{state:r,set:n=>(r=Po(n,r)||r,e.setItem(od,JSON.stringify(r)))}}const cv=wN(),fm=e=>e.state.__TSR_key||e.href;function SN(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 ad=!1;function yj({storageKey:e,key:t,behavior:r,shouldScrollRestoration:n,scrollToTopSelectors:i,location:o}){var a;let s;try{s=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(f){console.error(f);return}const u=t||((a=window.history.state)==null?void 0:a.key),l=s[u];ad=!0,(()=>{if(n&&l&&Object.keys(l).length>0){for(const c in l){const d=l[c];if(c==="window")window.scrollTo({top:d.scrollY,left:d.scrollX,behavior:r});else if(c){const h=document.querySelector(c);h&&(h.scrollLeft=d.scrollX,h.scrollTop=d.scrollY)}}return}const f=(o??window.location).hash.split("#")[1];if(f){const c=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(c){const d=document.getElementById(f);d&&d.scrollIntoView(c)}return}["window",...(i==null?void 0:i.filter(c=>c!=="window"))??[]].forEach(c=>{const d=c==="window"?window:typeof c=="function"?c():document.querySelector(c);d&&d.scrollTo({top:0,left:0,behavior:r})})})(),ad=!1}function ON(e,t){if(cv===void 0||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),typeof document>"u"||e.isScrollRestorationSetup))return;e.isScrollRestorationSetup=!0,ad=!1;const n=e.options.getScrollRestorationKey||fm;window.history.scrollRestoration="manual";const i=o=>{if(ad||!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=SN(o.target)}const s=n(e.state.location);cv.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",xN(i,100),!0),e.subscribe("onRendered",o=>{const a=n(o.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}yj({storageKey:od,key:a,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&cv.set(s=>(s[a]=s[a]||{},s))})}function PN(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 _N(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 fv(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function AN(e,t){const r=e;return[...new URLSearchParams(r).entries()].reduce((o,[a,s])=>{const u=o[a];return u==null?o[a]=fv(s):o[a]=Array.isArray(u)?[...u,fv(s)]:[u,fv(s)],o},{})}const EN=CN(JSON.parse),jN=$N(JSON.stringify,JSON.parse);function CN(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));const r=AN(t);for(const n in r){const i=r[n];if(typeof i=="string")try{r[n]=e(i)}catch{}}return r}}function $N(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=_N(n).toString();return i?`?${i}`:""}}const xr="__root__";function TN(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 an(e){return e instanceof Response&&!!e.options}function kN(e){const t=new Map;let r,n;const i=o=>{o.next&&(o.prev?(o.prev.next=o.next,o.next.prev=o.prev,o.next=void 0,n&&(n.next=o,o.prev=n)):(o.next.prev=void 0,r=o.next,o.next=void 0,n&&(o.prev=n,n.next=o)),n=o)};return{get(o){const a=t.get(o);if(a)return i(a),a.value},set(o,a){if(t.size>=e&&r){const u=r;t.delete(u.key),u.next&&(r=u.next,u.next.prev=void 0),u===n&&(n=void 0)}const s=t.get(o);if(s)s.value=a,i(s);else{const u={key:o,value:a,prev:n};n&&(n.next=u),n=u,r||(r=u),t.set(o,u)}}}}function _o(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 MN{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.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=`/${lv(r.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?oN({initialEntries:[this.basepath||"/"]}):iN()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new am(RN(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(o=>!["redirected"].includes(o.status))}}}),ON(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.buildRouteTree=()=>{const{routesById:r,routesByPath:n,flatRoutes:i}=UN({routeTree:this.routeTree,initRoute:(a,s)=>{a.init({originalIndex:s})}});this.routesById=r,this.routesByPath=n,this.flatRoutes=i;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),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:pr(r==null?void 0:r.search,d),hash:f.split("#").reverse()[0]??"",href:`${u}${h}${f}`,state:pr(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)=>lN({basepath:this.basepath,base:r,to:H0(n),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive,parseCache:this.parsePathnameCache}),this.matchRoutes=(r,n,i)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:n},i):this.matchRoutesInternal(r,n),this.parsePathnameCache=kN(1e3),this.getMatchedRoutes=(r,n)=>WN({pathname:r,routePathname:n,basepath:this.basepath,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes,parseCache:this.parsePathnameCache}),this.cancelMatch=r=>{const n=this.getMatch(r);n&&(n.abortController.abort(),this.updateMatch(r,i=>(clearTimeout(i.pendingTimeout),{...i,pendingTimeout:void 0})))},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=um(u);let f=l.fullPath;const c=o.to?this.resolvePathWithBase(f,`${o.to}`):this.resolvePathWithBase(f,"."),d=!!o.to&&!Fw(o.to.toString(),f)&&!Fw(c,f);o.unsafeRelative==="path"?f=s.pathname:d&&o.from&&(f=o.from);const h=l.search,v={...l.params},p=o.to?this.resolvePathWithBase(f,`${o.to}`):this.resolvePathWithBase(f,".");let m=o.params===!1||o.params===null?{}:(o.params??!0)===!0?v:{...v,...Po(o.params,v)};const y=Kc({path:p,params:m??{},parseCache:this.parsePathnameCache}).interpolatedPath,g=this.matchRoutes(y,{},{_buildLocation:!0}).map(_=>this.looseRoutesById[_.routeId]);Object.keys(m).length>0&&g.map(_=>{var A;return((A=_.options.params)==null?void 0:A.stringify)??_.options.stringifyParams}).filter(Boolean).forEach(_=>{m={...m,..._(m)}});const b=Kc({path:p,params:m??{},leaveWildcards:!1,leaveParams:r.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath;let S=h;if(r._includeValidateSearch&&((a=this.options.search)!=null&&a.strict)){let _={};g.forEach(A=>{try{A.options.validateSearch&&(_={..._,...dm(A.options.validateSearch,{..._,...S})??{}})}catch{}}),S=_}S=qN({search:S,dest:o,destRoutes:g,_includeValidateSearch:r._includeValidateSearch}),S=pr(h,S);const x=this.options.stringifySearch(S),w=o.hash===!0?s.hash:o.hash?Po(o.hash,s.hash):void 0,O=w?`#${w}`:"";let P=o.state===!0?s.state:o.state?Po(o.state,s.state):{};return P=pr(s.state,P),{pathname:b,search:S,searchStr:x,state:P,hash:w??"",href:`${b}${x}${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=cm(this.basepath,u.pathname,{to:d.from,caseSensitive:!1,fuzzy:!1},this.parsePathnameCache);return h?(f=h,!0):!1});if(c){const{from:d,...h}=c;a={...rd(r,["from"]),...h,params:f},l=n(a)}}if(l){const f=n(a);u.maskedLocation=f}return u};return r.mask?i(r,{...rd(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=ka(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=ia(()=>{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=dl(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)}return o.replace?window.location.replace(i):window.location.href=i,Promise.resolve()}return this.buildAndCommitLocation({...o,href:i,to:r,_isNavigate:!0})},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}),i=o=>{try{return encodeURI(decodeURI(o))}catch{return o}};if(lv(i(this.latestLocation.href))!==lv(i(n.href)))throw TN({href:n.href})}const r=this.matchRoutes(this.latestLocation);this.__store.setState(n=>({...n,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:r,cachedMatches:n.cachedMatches.filter(i=>!r.some(o=>o.id===i.id))}))},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",..._o({resolvedLocation:l,location:u})}),this.emit({type:"onBeforeLoad",..._o({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;Tw(()=>{this.__store.setState(h=>{const v=h.matches,p=h.pendingMatches||h.matches;return f=v.filter(m=>!p.some(y=>y.id===m.id)),c=p.filter(m=>!v.some(y=>y.id===m.id)),d=v.filter(m=>p.some(y=>y.id===m.id)),{...h,isLoading:!1,loadedAt:Date.now(),matches:p,pendingMatches:void 0,cachedMatches:[...h.cachedMatches,...f.filter(m=>m.status!=="error")]}}),this.clearExpiredCache()}),[[f,"onLeave"],[c,"onEnter"],[d,"onStay"]].forEach(([h,v])=>{h.forEach(p=>{var m,y;(y=(m=this.looseRoutesById[p.routeId].options)[v])==null||y.call(m,p)})})})}})}catch(u){an(u)?(n=u,this.isServer||this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):gr(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(_o({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;const o=(i=this.state.pendingMatches)!=null&&i.some(a=>a.id===r)?"pendingMatches":this.state.matches.some(a=>a.id===r)?"matches":this.state.cachedMatches.some(a=>a.id===r)?"cachedMatches":"";o&&this.__store.setState(a=>{var s;return{...a,[o]:(s=a[o])==null?void 0:s.map(u=>u.id===r?n(u):u)}})},this.getMatch=r=>{var n;const i=o=>o.id===r;return this.state.cachedMatches.find(i)??((n=this.state.pendingMatches)==null?void 0:n.find(i))??this.state.matches.find(i)},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=v=>!!(i&&!this.state.matches.some(p=>p.id===v));!this.isServer&&this.state.matches.some(v=>v._forcePending)&&f();const d=(v,p)=>{var m,y,g;if(an(p)||gr(p)){if(an(p)&&p.redirectHandled&&!p.options.reloadDocument)throw p;if((m=v.beforeLoadPromise)==null||m.resolve(),(y=v.loaderPromise)==null||y.resolve(),a(v.id,b=>({...b,status:an(p)?"redirected":gr(p)?"notFound":"error",isFetching:!1,error:p,beforeLoadPromise:void 0,loaderPromise:void 0})),p.routeId||(p.routeId=v.routeId),(g=v.loadPromise)==null||g.resolve(),an(p))throw l=!0,p.options._fromLocation=r,p.redirectHandled=!0,p=this.resolveRedirect(p),p;if(gr(p))throw this._handleNotFound(n,p,{updateMatch:a}),p}},h=v=>{const p=this.getMatch(v);return!!(!this.isServer&&p._dehydrated||this.isServer&&p.ssr===!1)};try{await new Promise((v,p)=>{(async()=>{var m,y,g,b;try{const S=(O,P,_)=>{var A,C;const{id:j,routeId:I}=n[O],N=this.looseRoutesById[I];if(P instanceof Promise)throw P;P.routerCode=_,u=u??O,d(this.getMatch(j),P);try{(C=(A=N.options).onError)==null||C.call(A,P)}catch(D){P=D,d(this.getMatch(j),P)}a(j,D=>{var R,F;return(R=D.beforeLoadPromise)==null||R.resolve(),(F=D.loadPromise)==null||F.resolve(),{...D,error:P,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[O,{id:P,routeId:_}]of n.entries()){const A=this.getMatch(P),C=(m=n[O-1])==null?void 0:m.id,j=C?this.getMatch(C):void 0,I=this.looseRoutesById[_],N=I.options.pendingMs??this.options.defaultPendingMs;if(this.isServer){let k;if(this.isShell())k=P===xr;else{const L=this.options.defaultSsr??!0;if((j==null?void 0:j.ssr)===!1)k=!1;else{let z;if(I.options.ssr===void 0)z=L;else if(typeof I.options.ssr=="function"){let U=function(Z,ne){return ne?{status:"error",error:ne}:{status:"success",value:Z}};const{search:W,params:H}=this.getMatch(P),X={search:U(W,A.searchError),params:U(H,A.paramsError),location:r,matches:n.map(Z=>({index:Z.index,pathname:Z.pathname,fullPath:Z.fullPath,staticData:Z.staticData,id:Z.id,routeId:Z.routeId,search:U(Z.search,Z.searchError),params:U(Z.params,Z.paramsError),ssr:Z.ssr}))};z=await I.options.ssr(X)??L}else z=I.options.ssr;z===!0&&(j==null?void 0:j.ssr)==="data-only"?k="data-only":k=z}}a(P,L=>({...L,ssr:k}))}if(h(P))continue;const D=!!(o&&!this.isServer&&!c(P)&&(I.options.loader||I.options.beforeLoad||Bw(I))&&typeof N=="number"&&N!==1/0&&(I.options.pendingComponent??((y=this.options)==null?void 0:y.defaultPendingComponent)));let R=!0;const F=()=>{if(D&&this.getMatch(P).pendingTimeout===void 0){const k=setTimeout(()=>{try{f()}catch{}},N);a(P,L=>({...L,pendingTimeout:k}))}};if(A.beforeLoadPromise||A.loaderPromise){F(),await A.beforeLoadPromise;const k=this.getMatch(P);k.status==="error"?R=!0:k.preload&&(k.status==="redirected"||k.status==="notFound")&&d(k,k.error)}if(R){try{a(P,K=>{const re=K.loadPromise;return{...K,loadPromise:ia(()=>{re==null||re.resolve()}),beforeLoadPromise:ia()}});const{paramsError:k,searchError:L}=this.getMatch(P);k&&S(O,k,"PARSE_PARAMS"),L&&S(O,L,"VALIDATE_SEARCH"),F();const z=new AbortController,U=(j==null?void 0:j.context)??this.options.context??{};a(P,K=>({...K,isFetching:"beforeLoad",fetchCount:K.fetchCount+1,abortController:z,context:{...U,...K.__routeContext}}));const{search:W,params:H,context:X,cause:Z}=this.getMatch(P),ne=c(P),he={search:W,abortController:z,params:H,preload:ne,context:X,location:r,navigate:K=>this.navigate({...K,_fromLocation:r}),buildLocation:this.buildLocation,cause:ne?"preload":Z,matches:n},pe=await((b=(g=I.options).beforeLoad)==null?void 0:b.call(g,he));(an(pe)||gr(pe))&&S(O,pe,"BEFORE_LOAD"),a(P,K=>({...K,__beforeLoadContext:pe,context:{...U,...K.__routeContext,...pe},abortController:z}))}catch(k){S(O,k,"BEFORE_LOAD")}a(P,k=>{var L;return(L=k.beforeLoadPromise)==null||L.resolve(),{...k,beforeLoadPromise:void 0,isFetching:!1}})}}const x=n.slice(0,u),w=[];x.forEach(({id:O,routeId:P},_)=>{w.push((async()=>{let A=!1,C=!1;const j=this.looseRoutesById[P],I=async()=>{var R,F,k,L,z,U;const W=this.getMatch(O);if(!W)return;const H={matches:n,match:W,params:W.params,loaderData:W.loaderData},X=await((F=(R=j.options).head)==null?void 0:F.call(R,H)),Z=X==null?void 0:X.meta,ne=X==null?void 0:X.links,he=X==null?void 0:X.scripts,pe=X==null?void 0:X.styles,K=await((L=(k=j.options).scripts)==null?void 0:L.call(k,H)),re=await((U=(z=j.options).headers)==null?void 0:U.call(z,H));return{meta:Z,links:ne,headScripts:he,headers:re,scripts:K,styles:pe}},N=async()=>{const R=this.getMatch(O);R.minPendingPromise&&await R.minPendingPromise},D=this.getMatch(O);if(h(O)){if(this.isServer){const R=await I();return a(O,F=>({...F,...R})),this.getMatch(O)}}else if(D.loaderPromise){if(D.status==="success"&&!s&&!D.preload)return this.getMatch(O);await D.loaderPromise;const R=this.getMatch(O);R.error&&d(R,R.error)}else{const R=w[_-1],F=()=>{const{params:ne,loaderDeps:he,abortController:pe,context:K,cause:re}=this.getMatch(O),ie=c(O);return{params:ne,deps:he,preload:!!ie,parentMatchPromise:R,abortController:pe,context:K,location:r,navigate:q=>this.navigate({...q,_fromLocation:r}),cause:ie?"preload":re,route:j}},k=Date.now()-this.getMatch(O).updatedAt,L=c(O),z=L?j.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:j.options.staleTime??this.options.defaultStaleTime??0,U=j.options.shouldReload,W=typeof U=="function"?U(F()):U;a(O,ne=>({...ne,loaderPromise:ia(),preload:!!L&&!this.state.matches.some(he=>he.id===O)}));const H=async()=>{var ne,he,pe,K;try{try{(!this.isServer||this.isServer&&this.getMatch(O).ssr===!0)&&this.loadRouteChunk(j),a(O,q=>({...q,isFetching:"loader"}));const re=await((he=(ne=j.options).loader)==null?void 0:he.call(ne,F()));d(this.getMatch(O),re),a(O,q=>({...q,loaderData:re})),await j._lazyPromise;const ie=await I();await N(),await j._componentsPromise,a(O,q=>({...q,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...ie}))}catch(re){let ie=re;await N(),d(this.getMatch(O),re);try{(K=(pe=j.options).onError)==null||K.call(pe,re)}catch(Pe){ie=Pe,d(this.getMatch(O),Pe)}const q=await I();a(O,Pe=>({...Pe,error:ie,status:"error",isFetching:!1,...q}))}}catch(re){const ie=await I();a(O,q=>({...q,loaderPromise:void 0,...ie})),d(this.getMatch(O),re)}},{status:X,invalid:Z}=this.getMatch(O);if(A=X==="success"&&(Z||(W??k>z)),!(L&&j.options.preload===!1))if(A&&!s)C=!0,(async()=>{try{await H();const{loaderPromise:ne,loadPromise:he}=this.getMatch(O);ne==null||ne.resolve(),he==null||he.resolve(),a(O,pe=>({...pe,loaderPromise:void 0}))}catch(ne){an(ne)&&await this.navigate(ne.options)}})();else if(X!=="success"||A&&s)await H();else{const ne=await I();a(O,he=>({...he,...ne}))}}if(!C){const{loaderPromise:R,loadPromise:F}=this.getMatch(O);R==null||R.resolve(),F==null||F.resolve()}return a(O,R=>(clearTimeout(R.pendingTimeout),{...R,isFetching:C?R.isFetching:!1,loaderPromise:C?R.loaderPromise:void 0,invalid:!1,pendingTimeout:void 0,_dehydrated:void 0})),this.getMatch(O)})())}),await Promise.all(w),v()}catch(S){p(S)}})()}),await f()}catch(v){if(an(v)||gr(v))throw gr(v)&&!i&&await f(),v}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,...r!=null&&r.forcePending||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"?!0: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(mj.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)]);Tw(()=>{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(an(s))return s.options.reloadDocument?void 0:await this.preloadRoute({...s.options,_fromLocation:n});gr(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=cm(this.basepath,s.pathname,{...n,to:o.pathname},this.parsePathnameCache);return!u||r.params&&!ka(u,r.params,{partial:!0})?!1:u&&((n==null?void 0:n.includeSearch)??!0)?ka(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),Ct(a.options.notFoundComponent);const u=s[a.id];Ct(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??jN,parseSearch:t.parseSearch??EN}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}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["**"]:ss(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 xr}})(),l=o.map(d=>{var h;let v;const p=((h=d.options.params)==null?void 0:h.parse)??d.options.parseParams;if(p)try{const m=p(a);Object.assign(a,m)}catch(m){if(v=new IN(m.message,{cause:m}),r!=null&&r.throwOnError)throw v;return v}}),f=[],c=d=>(d==null?void 0:d.id)?d.context??this.options.context??{}:this.options.context??{};return o.forEach((d,h)=>{var v,p;const m=f[h-1],[y,g,b]=(()=>{const N=(m==null?void 0:m.search)??t.search,D=(m==null?void 0:m._strictSearch)??{};try{const R=dm(d.options.validateSearch,{...N})??{};return[{...N,...R},{...D,...R},void 0]}catch(R){let F=R;if(R instanceof sd||(F=new sd(R.message,{cause:R})),r!=null&&r.throwOnError)throw F;return[N,{},F]}})(),S=((p=(v=d.options).loaderDeps)==null?void 0:p.call(v,{search:y}))??"",x=S?JSON.stringify(S):"",{usedParams:w,interpolatedPath:O}=Kc({path:d.fullPath,params:a,decodeCharMap:this.pathParamsDecodeCharMap}),P=Kc({path:d.id,params:a,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath+x,_=this.getMatch(P),A=this.state.matches.find(N=>N.routeId===d.id),C=A?"stay":"enter";let j;if(_)j={..._,cause:C,params:A?pr(A.params,a):a,_strictParams:w,search:pr(A?A.search:_.search,y),_strictSearch:g};else{const N=d.options.loader||d.options.beforeLoad||d.lazyFn||Bw(d)?"pending":"success";j={id:P,index:h,routeId:d.id,params:A?pr(A.params,a):a,_strictParams:w,pathname:Ln([this.basepath,O]),updatedAt:Date.now(),search:A?pr(A.search,y):y,_strictSearch:g,searchError:void 0,status:N,isFetching:!1,error:void 0,paramsError:l[h],__routeContext:{},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:C,loaderDeps:A?pr(A.loaderDeps,S):S,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:d.options.staticData||{},loadPromise:ia(),fullPath:d.fullPath}}r!=null&&r.preload||(j.globalNotFound=u===d.id),j.searchError=b;const I=c(m);j.context={...I,...j.__routeContext,...j.__beforeLoadContext},f.push(j)}),f.forEach((d,h)=>{var v,p;const m=this.looseRoutesById[d.routeId];if(!this.getMatch(d.id)&&(r==null?void 0:r._buildLocation)!==!0){const g=f[h-1],b=c(g),S={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=((p=(v=m.options).context)==null?void 0:p.call(v,S))??{},d.context={...b,...d.__routeContext,...d.__beforeLoadContext}}}),f}}class sd extends Error{}class IN extends Error{}const Lw=e=>e.endsWith("/")&&e.length>1?e.slice(0,-1):e;function Fw(e,t){return Lw(e)===Lw(t)}function RN(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function dm(e,t){if(e==null)return{};if("~standard"in e){const r=e["~standard"].validate(t);if(r instanceof Promise)throw new sd("Async validation not supported");if(r.issues)throw new sd(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 mj=["component","errorComponent","pendingComponent","notFoundComponent"];function Bw(e){var t;for(const r of mj)if((t=e.options[r])!=null&&t.preload)return!0;return!1}const NN=.5,DN=.4,LN=.25,FN=.05,BN=.02,zN=.01,zw=2e-4,Uw=1e-4;function Ww(e,t){return e.prefixSegment&&e.suffixSegment?t+FN+zw*e.prefixSegment.length+Uw*e.suffixSegment.length:e.prefixSegment?t+BN+zw*e.prefixSegment.length:e.suffixSegment?t+zN+Uw*e.suffixSegment.length:t}function UN({routeTree:e,initRoute:t}){const r={},n={},i=u=>{u.forEach((l,f)=>{t==null||t(l,f);const c=r[l.id];if(Ct(!c,`Duplicate routes found with id: ${String(l.id)}`),r[l.id]=l,!l.isRoot&&l.path){const h=ss(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=K0(u.fullPath);let d=us(c),h=0;for(;d.length>h+1&&((f=d[h])==null?void 0:f.value)==="/";)h++;h>0&&(d=d.slice(h));let v=0,p=!1;const m=d.map((y,g)=>{if(y.value==="/")return .75;let b;if(y.type===Ro?b=NN:y.type===as?(b=DN,v++):y.type===No&&(b=LN),b){for(let S=g+1;S<d.length;S++){const x=d[S];if(x.type===Dn&&x.value!=="/")return p=!0,Ww(y,b+.2)}return Ww(y,b)}return 1});o.push({child:u,trimmed:c,parsed:d,index:l,scores:m,optionalParamCount:v,hasStaticAfter:p})});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){if(u.optionalParamCount!==l.optionalParamCount){if(u.hasStaticAfter===l.hasStaticAfter)return u.optionalParamCount-l.optionalParamCount;if(u.hasStaticAfter&&!l.hasStaticAfter)return-1;if(!u.hasStaticAfter&&l.hasStaticAfter)return 1}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 WN({pathname:e,routePathname:t,basepath:r,caseSensitive:n,routesByPath:i,routesById:o,flatRoutes:a,parseCache:s}){let u={};const l=ss(e),f=v=>{var p;return cm(r,l,{to:v.fullPath,caseSensitive:((p=v.options)==null?void 0:p.caseSensitive)??n,fuzzy:!0},s)};let c=t!==void 0?i[t]:void 0;if(c)u=f(c);else{let v;for(const p of a){const m=f(p);if(m)if(p.path!=="/"&&m["**"])v||(v={foundRoute:p,routeParams:m});else{c=p,u=m;break}}!c&&v&&(c=v.foundRoute,u=v.routeParams)}let d=c||o[xr];const h=[d];for(;d.parentRoute;)d=d.parentRoute,h.push(d);return h.reverse(),{matchedRoutes:h,routeParams:u,foundRoute:c}}function qN({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 v=d;"preSearchFilters"in u.options&&u.options.preSearchFilters&&(v=u.options.preSearchFilters.reduce((m,y)=>y(m),d));const p=h(v);return"postSearchFilters"in u.options&&u.options.postSearchFilters?u.options.postSearchFilters.reduce((m,y)=>y(m),p):p};f.push(c)}if(n&&u.options.validateSearch){const c=({search:d,next:h})=>{const v=h(d);try{return{...v,...dm(u.options.validateSearch,v)??{}}}catch{return v}};f.push(c)}return s.concat(f)},[])??[],o=({search:s})=>t.search?t.search===!0?s:Po(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 HN="Error preloading route! ☝️";class gj{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=xr:this.parentRoute||Ct(!1);let s=a?xr:o==null?void 0:o.path;s&&s!=="/"&&(s=K0(s));const u=(o==null?void 0:o.id)||s;let l=a?xr:Ln([this.parentRoute.id===xr?"":this.parentRoute.id,u]);s===xr&&(s="/"),l!==xr&&(l=Ln(["/",l]));const f=l===xr?"/":Ln([this.parentRoute.fullPath,s]);this._path=s,this._id=l,this._fullPath=f,this._to=f},this.clone=r=>{this._path=r._path,this._id=r._id,this._fullPath=r._fullPath,this._to=r._to,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}}class KN extends gj{constructor(t){super(t)}}function V0(e){const t=e.errorComponent??Th;return E.jsx(VN,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:r,reset:n})=>r?M.createElement(t,{error:r,reset:n}):e.children})}class VN extends M.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 Th({error:e}){const[t,r]=M.useState(!1);return E.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[E.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[E.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),E.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"})]}),E.jsx("div",{style:{height:".25rem"}}),t?E.jsx("div",{children:E.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?E.jsx("code",{children:e.message}):null})}):null]})}function GN({children:e,fallback:t=null}){return QN()?E.jsx(T.Fragment,{children:e}):E.jsx(T.Fragment,{children:t})}function QN(){return T.useSyncExternalStore(XN,()=>!0,()=>!1)}function XN(){return()=>{}}var bj={exports:{}},xj={},wj={exports:{}},Sj={};/**
 * @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 ls=M;function YN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ZN=typeof Object.is=="function"?Object.is:YN,JN=ls.useState,eD=ls.useEffect,tD=ls.useLayoutEffect,rD=ls.useDebugValue;function nD(e,t){var r=t(),n=JN({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return tD(function(){i.value=r,i.getSnapshot=t,dv(i)&&o({inst:i})},[e,r,t]),eD(function(){return dv(i)&&o({inst:i}),e(function(){dv(i)&&o({inst:i})})},[e]),rD(r),r}function dv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ZN(e,r)}catch{return!0}}function iD(e,t){return t()}var oD=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?iD:nD;Sj.useSyncExternalStore=ls.useSyncExternalStore!==void 0?ls.useSyncExternalStore:oD;wj.exports=Sj;var aD=wj.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 kh=M,sD=aD;function uD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lD=typeof Object.is=="function"?Object.is:uD,cD=sD.useSyncExternalStore,fD=kh.useRef,dD=kh.useEffect,hD=kh.useMemo,pD=kh.useDebugValue;xj.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=fD(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=hD(function(){function u(h){if(!l){if(l=!0,f=h,h=n(h),i!==void 0&&a.hasValue){var v=a.value;if(i(v,h))return c=v}return c=h}if(v=c,lD(f,h))return v;var p=n(h);return i!==void 0&&i(v,p)?(f=h,v):(f=h,c=p)}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=cD(e,o[0],o[1]);return dD(function(){a.hasValue=!0,a.value=s},[s]),pD(s),s};bj.exports=xj;var vD=bj.exports;function yD(e,t=r=>r){return vD.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,mD)}function mD(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}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();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 hv=M.createContext(null);function Oj(){return typeof document>"u"?hv:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=hv,hv)}function Mr(e){const t=M.useContext(Oj());return e==null||e.warn,t}function Gt(e){const t=Mr({warn:(e==null?void 0:e.router)===void 0}),r=(e==null?void 0:e.router)||t,n=M.useRef(void 0);return yD(r.__store,i=>{if(e!=null&&e.select){if(e.structuralSharing??r.options.defaultStructuralSharing){const o=pr(n.current,e.select(i));return n.current=o,o}return e.select(i)}return i})}const Mh=M.createContext(void 0),gD=M.createContext(void 0);function Tr(e){const t=M.useContext(e.from?gD:Mh);return Gt({select:n=>{const i=n.matches.find(o=>e.from?e.from===o.routeId:o.id===t);if(Ct(!((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 G0(e){return Tr({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Q0(e){const{select:t,...r}=e;return Tr({...r,select:n=>t?t(n.loaderDeps):n.loaderDeps})}function X0(e){return Tr({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.params):t.params})}function Y0(e){return Tr({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Z0(e){const{navigate:t,state:r}=Mr(),n=Tr({strict:!1,select:i=>i.index});return M.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 Vc=typeof window<"u"?M.useLayoutEffect:M.useEffect;function pv(e){const t=M.useRef({value:e,prev:null}),r=t.current.value;return e!==r&&(t.current={value:e,prev:r}),t.current.prev}function bD(e,t,r={},n={}){M.useEffect(()=>{if(!e.current||n.disabled||typeof IntersectionObserver!="function")return;const i=new IntersectionObserver(([o])=>{t(o)},r);return i.observe(e.current),()=>{i.disconnect()}},[t,r,n.disabled,e])}function xD(e){const t=M.useRef(null);return M.useImperativeHandle(e,()=>t.current,[]),t}function wD(e,t){const r=Mr(),[n,i]=M.useState(!1),o=M.useRef(!1),a=xD(t),{activeProps:s,inactiveProps:u,activeOptions:l,to:f,preload:c,preloadDelay:d,hashScrollIntoView:h,replace:v,startTransition:p,resetScroll:m,viewTransition:y,children:g,target:b,disabled:S,style:x,className:w,onClick:O,onFocus:P,onMouseEnter:_,onMouseLeave:A,onTouchStart:C,ignoreBlocker:j,params:I,search:N,hash:D,state:R,mask:F,reloadDocument:k,unsafeRelative:L,from:z,_fromLocation:U,...W}=e,H=M.useMemo(()=>{try{return new URL(f),"external"}catch{}return"internal"},[f]),X=Gt({select:we=>we.location.search,structuralSharing:!0}),Z=Tr({strict:!1,select:we=>e.from??we.fullPath}),ne=M.useMemo(()=>r.buildLocation({...e,from:Z}),[r,X,e._fromLocation,Z,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),he=H==="external",pe=e.reloadDocument||he?!1:c??r.options.defaultPreload,K=d??r.options.defaultPreloadDelay??0,re=Gt({select:we=>{if(he)return!1;if(l!=null&&l.exact){if(!sN(we.location.pathname,ne.pathname,r.basepath))return!1}else{const ut=nd(we.location.pathname,r.basepath),Dr=nd(ne.pathname,r.basepath);if(!(ut.startsWith(Dr)&&(ut.length===Dr.length||ut[Dr.length]==="/")))return!1}return((l==null?void 0:l.includeSearch)??!0)&&!ka(we.location.search,ne.search,{partial:!(l!=null&&l.exact),ignoreUndefined:!(l!=null&&l.explicitUndefined)})?!1:l!=null&&l.includeHash?we.location.hash===ne.hash:!0}}),ie=M.useCallback(()=>{r.preloadRoute({...e,from:Z}).catch(we=>{console.warn(we),console.warn(HN)})},[r,e.to,e._fromLocation,Z,e.search,e.hash,e.params,e.state,e.mask,e.unsafeRelative,e.hashScrollIntoView,e.href,e.ignoreBlocker,e.reloadDocument,e.replace,e.resetScroll,e.viewTransition]),q=M.useCallback(we=>{we!=null&&we.isIntersecting&&ie()},[ie]);if(bD(a,q,AD,{disabled:!!S||pe!=="viewport"}),M.useEffect(()=>{o.current||!S&&pe==="render"&&(ie(),o.current=!0)},[S,ie,pe]),he)return{...W,ref:a,type:H,href:f,...g&&{children:g},...b&&{target:b},...S&&{disabled:S},...x&&{style:x},...w&&{className:w},...O&&{onClick:O},...P&&{onFocus:P},..._&&{onMouseEnter:_},...A&&{onMouseLeave:A},...C&&{onTouchStart:C}};const Pe=we=>{if(!S&&!ED(we)&&!we.defaultPrevented&&(!b||b==="_self")&&we.button===0){we.preventDefault(),PE.flushSync(()=>{i(!0)});const ut=r.subscribe("onResolved",()=>{ut(),i(!1)});r.navigate({...e,from:Z,replace:v,resetScroll:m,hashScrollIntoView:h,startTransition:p,viewTransition:y,ignoreBlocker:j})}},ve=we=>{S||pe&&ie()},Ge=ve,Qe=we=>{if(!(S||!pe))if(!K)ie();else{const ut=we.target;if(lu.has(ut))return;const Dr=setTimeout(()=>{lu.delete(ut),ie()},K);lu.set(ut,Dr)}},xt=we=>{if(S||!pe||!K)return;const ut=we.target,Dr=lu.get(ut);Dr&&(clearTimeout(Dr),lu.delete(ut))},Xt=re?Po(s,{})??SD:vv,Nr=re?vv:Po(u,{})??vv,Gi=[w,Xt.className,Nr.className].filter(Boolean).join(" "),nn=(x||Xt.style||Nr.style)&&{...x,...Xt.style,...Nr.style};return{...W,...Xt,...Nr,href:S?void 0:ne.maskedLocation?r.history.createHref(ne.maskedLocation.href):r.history.createHref(ne.href),ref:a,onClick:cu([O,Pe]),onFocus:cu([P,ve]),onMouseEnter:cu([_,Qe]),onMouseLeave:cu([A,xt]),onTouchStart:cu([C,Ge]),disabled:!!S,target:b,...nn&&{style:nn},...Gi&&{className:Gi},...S&&OD,...re&&PD,...n&&_D}}const vv={},SD={className:"active"},OD={role:"link","aria-disabled":!0},PD={"data-status":"active","aria-current":"page"},_D={"data-transitioning":"transitioning"},lu=new WeakMap,AD={rootMargin:"100px"},cu=e=>t=>{e.filter(Boolean).forEach(r=>{t.defaultPrevented||r(t)})},ga=M.forwardRef((e,t)=>{const{_asChild:r,...n}=e,{type:i,ref:o,...a}=wD(n,t),s=typeof n.children=="function"?n.children({isActive:a["data-status"]==="active"}):n.children;return r===void 0&&delete a.disabled,M.createElement(r||"a",{...a,ref:o},s)});function ED(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let jD=class extends gj{constructor(t){super(t),this.useMatch=r=>Tr({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>Tr({...r,from:this.id,select:n=>r!=null&&r.select?r.select(n.context):n.context}),this.useSearch=r=>Y0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>X0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>Q0({...r,from:this.id}),this.useLoaderData=r=>G0({...r,from:this.id}),this.useNavigate=()=>Z0({from:this.fullPath}),this.Link=T.forwardRef((r,n)=>E.jsx(ga,{ref:n,from:this.fullPath,...r})),this.$$typeof=Symbol.for("react.memo")}};function CD(e){return new jD(e)}class $D extends KN{constructor(t){super(t),this.useMatch=r=>Tr({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>Tr({...r,from:this.id,select:n=>r!=null&&r.select?r.select(n.context):n.context}),this.useSearch=r=>Y0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>X0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>Q0({...r,from:this.id}),this.useLoaderData=r=>G0({...r,from:this.id}),this.useNavigate=()=>Z0({from:this.fullPath}),this.Link=T.forwardRef((r,n)=>E.jsx(ga,{ref:n,from:this.fullPath,...r})),this.$$typeof=Symbol.for("react.memo")}}function TD(e){return new $D(e)}function cs(e){return typeof e=="object"?new qw(e,{silent:!0}).createRoute(e):new qw(e,{silent:!0}).createRoute}class qw{constructor(t,r){this.path=t,this.createRoute=n=>{this.silent;const i=CD(n);return i.isRoot=!1,i},this.silent=r==null?void 0:r.silent}}class Hw{constructor(t){this.useMatch=r=>Tr({select:r==null?void 0:r.select,from:this.options.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>Tr({from:this.options.id,select:n=>r!=null&&r.select?r.select(n.context):n.context}),this.useSearch=r=>Y0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.options.id}),this.useParams=r=>X0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.options.id}),this.useLoaderDeps=r=>Q0({...r,from:this.options.id}),this.useLoaderData=r=>G0({...r,from:this.options.id}),this.useNavigate=()=>{const r=Mr();return Z0({from:r.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function Kw(e){return typeof e=="object"?new Hw(e):t=>new Hw({id:e,...t})}function kD(){const e=Mr(),t=M.useRef({router:e,mounted:!1}),[r,n]=M.useState(!1),{hasPendingMatches:i,isLoading:o}=Gt({select:c=>({isLoading:c.isLoading,hasPendingMatches:c.matches.some(d=>d.status==="pending")}),structuralSharing:!0}),a=pv(o),s=o||r||i,u=pv(s),l=o||i,f=pv(l);return e.startTransition=c=>{n(!0),M.startTransition(()=>{c(),n(!1)})},M.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 ss(e.latestLocation.href)!==ss(d.href)&&e.commitLocation({...d,replace:!0}),()=>{c()}},[e,e.history]),Vc(()=>{if(typeof window<"u"&&e.ssr||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]),Vc(()=>{a&&!o&&e.emit({type:"onLoad",..._o(e.state)})},[a,e,o]),Vc(()=>{f&&!l&&e.emit({type:"onBeforeRouteMount",..._o(e.state)})},[l,f,e]),Vc(()=>{u&&!s&&(e.emit({type:"onResolved",..._o(e.state)}),e.__store.setState(c=>({...c,status:"idle",resolvedLocation:c.location})),PN(e))},[s,u,e]),null}function MD(e){const t=Gt({select:r=>`not-found-${r.location.pathname}-${r.status}`});return E.jsx(V0,{getResetKey:()=>t,onCatch:(r,n)=>{var i;if(gr(r))(i=e.onCatch)==null||i.call(e,r,n);else throw r},errorComponent:({error:r})=>{var n;if(gr(r))return(n=e.fallback)==null?void 0:n.call(e,r);throw r},children:e.children})}function ID(){return E.jsx("p",{children:"Not Found"})}function oa(e){return E.jsx(E.Fragment,{children:e.children})}function Pj(e,t,r){return t.options.notFoundComponent?E.jsx(t.options.notFoundComponent,{data:r}):e.options.defaultNotFoundComponent?E.jsx(e.options.defaultNotFoundComponent,{data:r}):E.jsx(ID,{})}function RD({children:e}){return typeof document<"u"?null:E.jsx("script",{className:"$tsr",dangerouslySetInnerHTML:{__html:[e].filter(Boolean).join(`
`)}})}function ND(){const e=Mr(),r=(e.options.getScrollRestorationKey||fm)(e.latestLocation),n=r!==fm(e.latestLocation)?r:void 0;if(!e.isScrollRestoring||!e.isServer)return null;const i={storageKey:od,shouldScrollRestoration:!0};return n&&(i.key=n),E.jsx(RD,{children:`(${yj.toString()})(${JSON.stringify(i)})`})}const _j=M.memo(function({matchId:t}){var r,n;const i=Mr(),o=Gt({select:b=>{const S=b.matches.find(x=>x.id===t);return Ct(S),rd(S,["routeId","ssr","_displayPending"])},structuralSharing:!0}),a=i.routesById[o.routeId],s=a.options.pendingComponent??i.options.defaultPendingComponent,u=s?E.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=o.ssr===!1||o.ssr==="data-only",h=(!a.isRoot||a.options.wrapInSuspense||d)&&(a.options.wrapInSuspense??s??(((n=a.options.errorComponent)==null?void 0:n.preload)||d))?M.Suspense:oa,v=l?V0:oa,p=c?MD:oa,m=Gt({select:b=>b.loadedAt}),y=Gt({select:b=>{var S;const x=b.matches.findIndex(w=>w.id===t);return(S=b.matches[x-1])==null?void 0:S.routeId}}),g=a.isRoot?a.options.shellComponent??oa:oa;return E.jsxs(g,{children:[E.jsx(Mh.Provider,{value:t,children:E.jsx(h,{fallback:u,children:E.jsx(v,{getResetKey:()=>m,errorComponent:l||Th,onCatch:(b,S)=>{if(gr(b))throw b;f==null||f(b,S)},children:E.jsx(p,{fallback:b=>{if(!c||b.routeId&&b.routeId!==o.routeId||!b.routeId&&!a.isRoot)throw b;return M.createElement(c,b)},children:d||o._displayPending?E.jsx(GN,{fallback:u,children:E.jsx(Vw,{matchId:t})}):E.jsx(Vw,{matchId:t})})})})}),y===xr&&i.options.scrollRestoration?E.jsxs(E.Fragment,{children:[E.jsx(DD,{}),E.jsx(ND,{})]}):null]})});function DD(){const e=Mr(),t=M.useRef(void 0);return E.jsx("script",{suppressHydrationWarning:!0,ref:r=>{r&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",..._o(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const Vw=M.memo(function({matchId:t}){var r,n,i,o,a;const s=Mr(),{match:u,key:l,routeId:f}=Gt({select:h=>{const v=h.matches.findIndex(S=>S.id===t),p=h.matches[v],m=p.routeId,y=s.routesById[m].options.remountDeps??s.options.defaultRemountDeps,g=y==null?void 0:y({routeId:m,loaderDeps:p.loaderDeps,params:p._strictParams,search:p._strictSearch});return{key:g?JSON.stringify(g):void 0,routeId:m,match:rd(p,["id","status","error","_forcePending","_displayPending"])}},structuralSharing:!0}),c=s.routesById[f],d=M.useMemo(()=>{const h=c.options.component??s.options.defaultComponent;return h?E.jsx(h,{},l):E.jsx(Aj,{})},[l,c.options.component,s.options.defaultComponent]);if(u._displayPending)throw(r=s.getMatch(u.id))==null?void 0:r.displayPendingPromise;if(u._forcePending)throw(n=s.getMatch(u.id))==null?void 0:n.minPendingPromise;if(u.status==="pending"){const h=c.options.pendingMinMs??s.options.defaultPendingMinMs;if(h&&!((i=s.getMatch(u.id))!=null&&i.minPendingPromise)&&!s.isServer){const v=ia();Promise.resolve().then(()=>{s.updateMatch(u.id,p=>({...p,minPendingPromise:v}))}),setTimeout(()=>{v.resolve(),s.updateMatch(u.id,p=>({...p,minPendingPromise:void 0}))},h)}throw(o=s.getMatch(u.id))==null?void 0:o.loadPromise}if(u.status==="notFound")return Ct(gr(u.error)),Pj(s,c,u.error);if(u.status==="redirected")throw Ct(an(u.error)),(a=s.getMatch(u.id))==null?void 0:a.loadPromise;if(u.status==="error"){if(s.isServer){const h=(c.options.errorComponent??s.options.defaultErrorComponent)||Th;return E.jsx(h,{error:u.error,reset:void 0,info:{componentStack:""}})}throw u.error}return d}),Aj=M.memo(function(){const t=Mr(),r=M.useContext(Mh),n=Gt({select:l=>{var f;return(f=l.matches.find(c=>c.id===r))==null?void 0:f.routeId}}),i=t.routesById[n],o=Gt({select:l=>{const c=l.matches.find(d=>d.id===r);return Ct(c),c.globalNotFound}}),a=Gt({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?E.jsx(t.options.defaultPendingComponent,{}):null;if(o)return Pj(t,i,void 0);if(!a)return null;const u=E.jsx(_j,{matchId:a});return r===xr?E.jsx(M.Suspense,{fallback:s,children:u}):u});function LD(){const e=Mr(),t=e.options.defaultPendingComponent?E.jsx(e.options.defaultPendingComponent,{}):null,r=e.isServer||typeof document<"u"&&e.ssr?oa:M.Suspense,n=E.jsxs(r,{fallback:t,children:[!e.isServer&&E.jsx(kD,{}),E.jsx(FD,{})]});return e.options.InnerWrap?E.jsx(e.options.InnerWrap,{children:n}):n}function FD(){const e=Mr(),t=Gt({select:i=>{var o;return(o=i.matches[0])==null?void 0:o.id}}),r=Gt({select:i=>i.loadedAt}),n=t?E.jsx(_j,{matchId:t}):null;return E.jsx(Mh.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?n:E.jsx(V0,{getResetKey:()=>r,errorComponent:Th,onCatch:i=>{i.message||i.toString()},children:n})})}const BD=e=>new zD(e);class zD extends MN{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=cs,globalThis.createLazyFileRoute=Kw):typeof window<"u"&&(window.createFileRoute=cs,window.createFileRoute=Kw);function UD({router:e,children:t,...r}){Object.keys(r).length>0&&e.update({...e.options,...r,context:{...e.options.context,...r.context}});const n=Oj(),i=E.jsx(n.Provider,{value:e,children:t});return e.options.Wrap?E.jsx(e.options.Wrap,{children:i}):i}function WD({router:e,...t}){return E.jsx(UD,{router:e,...t,children:E.jsx(LD,{})})}/**
 * @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 qD={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 HD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),bt=(e,t)=>{const r=M.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:s="",children:u,...l},f)=>M.createElement("svg",{ref:f,...qD,width:i,height:i,stroke:n,strokeWidth:a?Number(o)*24/Number(i):o,className:["lucide",`lucide-${HD(e)}`,s].join(" "),...l},[...t.map(([c,d])=>M.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 KD=bt("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @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 VD=bt("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 GD=bt("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]);/**
 * @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 Ej=bt("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 QD=bt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @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 XD=bt("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @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 YD=bt("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 ZD=bt("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
 * @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 JD=bt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @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 eL=bt("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["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 tL=bt("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
 * @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 rL=bt("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 nL=bt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @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 iL=bt("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 oL=bt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @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 aL=bt("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"}]]);/**
 * @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 sL=bt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cc=TD({component:()=>E.jsx("div",{className:"min-h-screen bg-background",children:E.jsxs("div",{className:"flex",children:[E.jsxs("div",{className:"w-64 bg-card border-r min-h-screen p-4",children:[E.jsxs("div",{className:"mb-8",children:[E.jsx("h1",{className:"text-2xl font-bold text-primary",children:"Ultra MCP"}),E.jsx("p",{className:"text-sm text-muted-foreground",children:"Dashboard"})]}),E.jsxs("nav",{className:"space-y-2",children:[E.jsxs(ga,{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:[E.jsx(rL,{className:"h-4 w-4"}),"Overview"]}),E.jsxs(ga,{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:[E.jsx(VD,{className:"h-4 w-4"}),"Usage Analytics"]}),E.jsxs(ga,{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:[E.jsx(YD,{className:"h-4 w-4"}),"Models"]}),E.jsxs(ga,{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:[E.jsx(iL,{className:"h-4 w-4"}),"Configuration"]})]})]}),E.jsx("div",{className:"flex-1",children:E.jsx(Aj,{})})]})})});function jj(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=jj(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ce(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=jj(e))&&(n&&(n+=" "),n+=t);return n}const J0="-",uL=e=>{const t=cL(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const s=a.split(J0);return s[0]===""&&s.length!==1&&s.shift(),Cj(s,t)||lL(a)},getConflictingClassGroupIds:(a,s)=>{const u=r[a]||[];return s&&n[a]?[...u,...n[a]]:u}}},Cj=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?Cj(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(J0);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},Gw=/^\[(.+)\]$/,lL=e=>{if(Gw.test(e)){const t=Gw.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},cL=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return dL(Object.entries(e.classGroups),r).forEach(([o,a])=>{hm(a,n,o,t)}),n},hm=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:Qw(t,i);o.classGroupId=r;return}if(typeof i=="function"){if(fL(i)){hm(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([o,a])=>{hm(a,Qw(t,o),r,n)})})},Qw=(e,t)=>{let r=e;return t.split(J0).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},fL=e=>e.isThemeGetter,dL=(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,hL=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)}}},$j="!",pL=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 m=0;m<s.length;m++){let y=s[m];if(l===0){if(y===i&&(n||s.slice(m,m+o)===t)){u.push(s.slice(f,m)),f=m+o;continue}if(y==="/"){c=m;continue}}y==="["?l++:y==="]"&&l--}const d=u.length===0?s:s.substring(f),h=d.startsWith($j),v=h?d.substring(1):d,p=c&&c>f?c-f:void 0;return{modifiers:u,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:p}};return r?s=>r({className:s,parseClassName:a}):a},vL=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},yL=e=>({cache:hL(e.cacheSize),parseClassName:pL(e),...uL(e)}),mL=/\s+/,gL=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(mL);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 v=!!h,p=n(v?d.substring(0,h):d);if(!p){if(!v){s=l+(s.length>0?" "+s:s);continue}if(p=n(d),!p){s=l+(s.length>0?" "+s:s);continue}v=!1}const m=vL(f).join(":"),y=c?m+$j:m,g=y+p;if(o.includes(g))continue;o.push(g);const b=i(p,v);for(let S=0;S<b.length;++S){const x=b[S];o.push(y+x)}s=l+(s.length>0?" "+s:s)}return s};function bL(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Tj(t))&&(n&&(n+=" "),n+=r);return n}const Tj=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Tj(e[n]))&&(r&&(r+=" "),r+=t);return r};function xL(e,...t){let r,n,i,o=a;function a(u){const l=t.reduce((f,c)=>c(f),e());return r=yL(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=gL(u,r);return i(u,f),f}return function(){return o(bL.apply(null,arguments))}}const Ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},kj=/^\[(?:([a-z-]+):)?(.+)\]$/i,wL=/^\d+\/\d+$/,SL=new Set(["px","full","screen"]),OL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PL=/\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$/,_L=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,AL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,On=e=>Ma(e)||SL.has(e)||wL.test(e),ri=e=>Fs(e,"length",RL),Ma=e=>!!e&&!Number.isNaN(Number(e)),yv=e=>Fs(e,"number",Ma),fu=e=>!!e&&Number.isInteger(Number(e)),jL=e=>e.endsWith("%")&&Ma(e.slice(0,-1)),fe=e=>kj.test(e),ni=e=>OL.test(e),CL=new Set(["length","size","percentage"]),$L=e=>Fs(e,CL,Mj),TL=e=>Fs(e,"position",Mj),kL=new Set(["image","url"]),ML=e=>Fs(e,kL,DL),IL=e=>Fs(e,"",NL),du=()=>!0,Fs=(e,t,r)=>{const n=kj.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},RL=e=>PL.test(e)&&!_L.test(e),Mj=()=>!1,NL=e=>AL.test(e),DL=e=>EL.test(e),LL=()=>{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"),v=Ie("gradientColorStopPositions"),p=Ie("inset"),m=Ie("margin"),y=Ie("opacity"),g=Ie("padding"),b=Ie("saturate"),S=Ie("scale"),x=Ie("sepia"),w=Ie("skew"),O=Ie("space"),P=Ie("translate"),_=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",fe,t],j=()=>[fe,t],I=()=>["",On,ri],N=()=>["auto",Ma,fe],D=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["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"],k=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",fe],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Ma,fe];return{cacheSize:500,separator:":",theme:{colors:[du],spacing:[On,ri],blur:["none","",ni,fe],brightness:U(),borderColor:[e],borderRadius:["none","","full",ni,fe],borderSpacing:j(),borderWidth:I(),contrast:U(),grayscale:L(),hueRotate:U(),invert:L(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[jL,ri],inset:C(),margin:C(),opacity:U(),padding:j(),saturate:U(),scale:U(),sepia:L(),skew:U(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",fe]}],container:["container"],columns:[{columns:[ni]}],"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(),fe]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fu,fe]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fe]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",fu,fe]}],"grid-cols":[{"grid-cols":[du]}],"col-start-end":[{col:["auto",{span:["full",fu,fe]},fe]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[du]}],"row-start-end":[{row:["auto",{span:[fu,fe]},fe]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fe]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",fe,t]}],"min-w":[{"min-w":[fe,t,"min","max","fit"]}],"max-w":[{"max-w":[fe,t,"none","full","min","max","fit","prose",{screen:[ni]},ni]}],h:[{h:[fe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[fe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[fe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[fe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ni,ri]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yv]}],"font-family":[{font:[du]}],"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",fe]}],"line-clamp":[{"line-clamp":["none",Ma,yv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",On,fe]}],"list-image":[{"list-image":["none",fe]}],"list-style-type":[{list:["none","disc","decimal",fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",On,ri]}],"underline-offset":[{"underline-offset":["auto",On,fe]}],"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:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe]}],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",fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...D(),TL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$L]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ML]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"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":[y]}],"border-style":[{border:[...R(),"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":[y]}],"divide-style":[{divide:R()}],"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:["",...R()]}],"outline-offset":[{"outline-offset":[On,fe]}],"outline-w":[{outline:[On,ri]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[On,ri]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ni,IL]}],"shadow-color":[{shadow:[du]}],opacity:[{opacity:[y]}],"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",ni,fe]}],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":[y]}],"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",fe]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",fe]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[fu,fe]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"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",fe]}],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",fe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",fe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[On,ri,yv]}],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"]}}},FL=xL(LL);function Bs(...e){return FL(ce(e))}function Xw(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:4}).format(e)}function Yw(e){return new Intl.NumberFormat("en-US").format(e)}const Or=M.forwardRef(({className:e,...t},r)=>E.jsx("div",{ref:r,className:Bs("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Or.displayName="Card";const Gr=M.forwardRef(({className:e,...t},r)=>E.jsx("div",{ref:r,className:Bs("flex flex-col space-y-1.5 p-6",e),...t}));Gr.displayName="CardHeader";const Qr=M.forwardRef(({className:e,...t},r)=>E.jsx("h3",{ref:r,className:Bs("text-2xl font-semibold leading-none tracking-tight",e),...t}));Qr.displayName="CardTitle";const ud=M.forwardRef(({className:e,...t},r)=>E.jsx("p",{ref:r,className:Bs("text-sm text-muted-foreground",e),...t}));ud.displayName="CardDescription";const Pr=M.forwardRef(({className:e,...t},r)=>E.jsx("div",{ref:r,className:Bs("p-6 pt-0",e),...t}));Pr.displayName="CardContent";const BL=M.forwardRef(({className:e,...t},r)=>E.jsx("div",{ref:r,className:Bs("flex items-center p-6 pt-0",e),...t}));BL.displayName="CardFooter";var zL=Array.isArray,Qt=zL,UL=typeof Oc=="object"&&Oc&&Oc.Object===Object&&Oc,Ij=UL,WL=Ij,qL=typeof self=="object"&&self&&self.Object===Object&&self,HL=WL||qL||Function("return this")(),wn=HL,KL=wn,VL=KL.Symbol,fc=VL,Zw=fc,Rj=Object.prototype,GL=Rj.hasOwnProperty,QL=Rj.toString,hu=Zw?Zw.toStringTag:void 0;function XL(e){var t=GL.call(e,hu),r=e[hu];try{e[hu]=void 0;var n=!0}catch{}var i=QL.call(e);return n&&(t?e[hu]=r:delete e[hu]),i}var YL=XL,ZL=Object.prototype,JL=ZL.toString;function e3(e){return JL.call(e)}var t3=e3,Jw=fc,r3=YL,n3=t3,i3="[object Null]",o3="[object Undefined]",e1=Jw?Jw.toStringTag:void 0;function a3(e){return e==null?e===void 0?o3:i3:e1&&e1 in Object(e)?r3(e):n3(e)}var Yn=a3;function s3(e){return e!=null&&typeof e=="object"}var Zn=s3,u3=Yn,l3=Zn,c3="[object Symbol]";function f3(e){return typeof e=="symbol"||l3(e)&&u3(e)==c3}var zs=f3,d3=Qt,h3=zs,p3=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v3=/^\w*$/;function y3(e,t){if(d3(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||h3(e)?!0:v3.test(e)||!p3.test(e)||t!=null&&e in Object(t)}var eb=y3;function m3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qi=m3;const Us=Ae(qi);var g3=Yn,b3=qi,x3="[object AsyncFunction]",w3="[object Function]",S3="[object GeneratorFunction]",O3="[object Proxy]";function P3(e){if(!b3(e))return!1;var t=g3(e);return t==w3||t==S3||t==x3||t==O3}var tb=P3;const ue=Ae(tb);var _3=wn,A3=_3["__core-js_shared__"],E3=A3,mv=E3,t1=function(){var e=/[^.]+$/.exec(mv&&mv.keys&&mv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function j3(e){return!!t1&&t1 in e}var C3=j3,$3=Function.prototype,T3=$3.toString;function k3(e){if(e!=null){try{return T3.call(e)}catch{}try{return e+""}catch{}}return""}var Nj=k3,M3=tb,I3=C3,R3=qi,N3=Nj,D3=/[\\^$.*+?()[\]{}|]/g,L3=/^\[object .+?Constructor\]$/,F3=Function.prototype,B3=Object.prototype,z3=F3.toString,U3=B3.hasOwnProperty,W3=RegExp("^"+z3.call(U3).replace(D3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q3(e){if(!R3(e)||I3(e))return!1;var t=M3(e)?W3:L3;return t.test(N3(e))}var H3=q3;function K3(e,t){return e==null?void 0:e[t]}var V3=K3,G3=H3,Q3=V3;function X3(e,t){var r=Q3(e,t);return G3(r)?r:void 0}var Vo=X3,Y3=Vo,Z3=Y3(Object,"create"),Ih=Z3,r1=Ih;function J3(){this.__data__=r1?r1(null):{},this.size=0}var eF=J3;function tF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var rF=tF,nF=Ih,iF="__lodash_hash_undefined__",oF=Object.prototype,aF=oF.hasOwnProperty;function sF(e){var t=this.__data__;if(nF){var r=t[e];return r===iF?void 0:r}return aF.call(t,e)?t[e]:void 0}var uF=sF,lF=Ih,cF=Object.prototype,fF=cF.hasOwnProperty;function dF(e){var t=this.__data__;return lF?t[e]!==void 0:fF.call(t,e)}var hF=dF,pF=Ih,vF="__lodash_hash_undefined__";function yF(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=pF&&t===void 0?vF:t,this}var mF=yF,gF=eF,bF=rF,xF=uF,wF=hF,SF=mF;function Ws(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])}}Ws.prototype.clear=gF;Ws.prototype.delete=bF;Ws.prototype.get=xF;Ws.prototype.has=wF;Ws.prototype.set=SF;var OF=Ws;function PF(){this.__data__=[],this.size=0}var _F=PF;function AF(e,t){return e===t||e!==e&&t!==t}var rb=AF,EF=rb;function jF(e,t){for(var r=e.length;r--;)if(EF(e[r][0],t))return r;return-1}var Rh=jF,CF=Rh,$F=Array.prototype,TF=$F.splice;function kF(e){var t=this.__data__,r=CF(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():TF.call(t,r,1),--this.size,!0}var MF=kF,IF=Rh;function RF(e){var t=this.__data__,r=IF(t,e);return r<0?void 0:t[r][1]}var NF=RF,DF=Rh;function LF(e){return DF(this.__data__,e)>-1}var FF=LF,BF=Rh;function zF(e,t){var r=this.__data__,n=BF(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var UF=zF,WF=_F,qF=MF,HF=NF,KF=FF,VF=UF;function qs(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])}}qs.prototype.clear=WF;qs.prototype.delete=qF;qs.prototype.get=HF;qs.prototype.has=KF;qs.prototype.set=VF;var Nh=qs,GF=Vo,QF=wn,XF=GF(QF,"Map"),nb=XF,n1=OF,YF=Nh,ZF=nb;function JF(){this.size=0,this.__data__={hash:new n1,map:new(ZF||YF),string:new n1}}var eB=JF;function tB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var rB=tB,nB=rB;function iB(e,t){var r=e.__data__;return nB(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Dh=iB,oB=Dh;function aB(e){var t=oB(this,e).delete(e);return this.size-=t?1:0,t}var sB=aB,uB=Dh;function lB(e){return uB(this,e).get(e)}var cB=lB,fB=Dh;function dB(e){return fB(this,e).has(e)}var hB=dB,pB=Dh;function vB(e,t){var r=pB(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var yB=vB,mB=eB,gB=sB,bB=cB,xB=hB,wB=yB;function Hs(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])}}Hs.prototype.clear=mB;Hs.prototype.delete=gB;Hs.prototype.get=bB;Hs.prototype.has=xB;Hs.prototype.set=wB;var ib=Hs,Dj=ib,SB="Expected a function";function ob(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(ob.Cache||Dj),r}ob.Cache=Dj;var Lj=ob;const OB=Ae(Lj);var PB=Lj,_B=500;function AB(e){var t=PB(e,function(n){return r.size===_B&&r.clear(),n}),r=t.cache;return t}var EB=AB,jB=EB,CB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$B=/\\(\\)?/g,TB=jB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(CB,function(r,n,i,o){t.push(i?o.replace($B,"$1"):n||r)}),t}),kB=TB;function MB(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 ab=MB,i1=fc,IB=ab,RB=Qt,NB=zs,o1=i1?i1.prototype:void 0,a1=o1?o1.toString:void 0;function Fj(e){if(typeof e=="string")return e;if(RB(e))return IB(e,Fj)+"";if(NB(e))return a1?a1.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var DB=Fj,LB=DB;function FB(e){return e==null?"":LB(e)}var Bj=FB,BB=Qt,zB=eb,UB=kB,WB=Bj;function qB(e,t){return BB(e)?e:zB(e,t)?[e]:UB(WB(e))}var zj=qB,HB=zs;function KB(e){if(typeof e=="string"||HB(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Lh=KB,VB=zj,GB=Lh;function QB(e,t){t=VB(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[GB(t[r++])];return r&&r==n?e:void 0}var sb=QB,XB=sb;function YB(e,t,r){var n=e==null?void 0:XB(e,t);return n===void 0?r:n}var Uj=YB;const ar=Ae(Uj);function ZB(e){return e==null}var JB=ZB;const le=Ae(JB);var ez=Yn,tz=Qt,rz=Zn,nz="[object String]";function iz(e){return typeof e=="string"||!tz(e)&&rz(e)&&ez(e)==nz}var oz=iz;const Do=Ae(oz);var Wj={exports:{}},Ee={};/**
 * @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 ub=Symbol.for("react.element"),lb=Symbol.for("react.portal"),Fh=Symbol.for("react.fragment"),Bh=Symbol.for("react.strict_mode"),zh=Symbol.for("react.profiler"),Uh=Symbol.for("react.provider"),Wh=Symbol.for("react.context"),az=Symbol.for("react.server_context"),qh=Symbol.for("react.forward_ref"),Hh=Symbol.for("react.suspense"),Kh=Symbol.for("react.suspense_list"),Vh=Symbol.for("react.memo"),Gh=Symbol.for("react.lazy"),sz=Symbol.for("react.offscreen"),qj;qj=Symbol.for("react.module.reference");function Ir(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ub:switch(e=e.type,e){case Fh:case zh:case Bh:case Hh:case Kh:return e;default:switch(e=e&&e.$$typeof,e){case az:case Wh:case qh:case Gh:case Vh:case Uh:return e;default:return t}}case lb:return t}}}Ee.ContextConsumer=Wh;Ee.ContextProvider=Uh;Ee.Element=ub;Ee.ForwardRef=qh;Ee.Fragment=Fh;Ee.Lazy=Gh;Ee.Memo=Vh;Ee.Portal=lb;Ee.Profiler=zh;Ee.StrictMode=Bh;Ee.Suspense=Hh;Ee.SuspenseList=Kh;Ee.isAsyncMode=function(){return!1};Ee.isConcurrentMode=function(){return!1};Ee.isContextConsumer=function(e){return Ir(e)===Wh};Ee.isContextProvider=function(e){return Ir(e)===Uh};Ee.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ub};Ee.isForwardRef=function(e){return Ir(e)===qh};Ee.isFragment=function(e){return Ir(e)===Fh};Ee.isLazy=function(e){return Ir(e)===Gh};Ee.isMemo=function(e){return Ir(e)===Vh};Ee.isPortal=function(e){return Ir(e)===lb};Ee.isProfiler=function(e){return Ir(e)===zh};Ee.isStrictMode=function(e){return Ir(e)===Bh};Ee.isSuspense=function(e){return Ir(e)===Hh};Ee.isSuspenseList=function(e){return Ir(e)===Kh};Ee.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fh||e===zh||e===Bh||e===Hh||e===Kh||e===sz||typeof e=="object"&&e!==null&&(e.$$typeof===Gh||e.$$typeof===Vh||e.$$typeof===Uh||e.$$typeof===Wh||e.$$typeof===qh||e.$$typeof===qj||e.getModuleId!==void 0)};Ee.typeOf=Ir;Wj.exports=Ee;var uz=Wj.exports,lz=Yn,cz=Zn,fz="[object Number]";function dz(e){return typeof e=="number"||cz(e)&&lz(e)==fz}var Hj=dz;const hz=Ae(Hj);var pz=Hj;function vz(e){return pz(e)&&e!=+e}var yz=vz;const dc=Ae(yz);var It=function(t){return t===0?0:t>0?1:-1},uo=function(t){return Do(t)&&t.indexOf("%")===t.length-1},G=function(t){return hz(t)&&!dc(t)},mz=function(t){return le(t)},at=function(t){return G(t)||Do(t)},gz=0,Ks=function(t){var r=++gz;return"".concat(t||"").concat(r)},Rt=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(!G(t)&&!Do(t))return n;var o;if(uo(t)){var a=t.indexOf("%");o=r*parseFloat(t.slice(0,a))/100}else o=+t;return dc(o)&&(o=n),i&&o>r&&(o=r),o},ci=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},bz=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},tr=function(t,r){return G(t)&&G(r)?function(n){return t+n*(r-t)}:function(){return r}};function ld(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):ar(n,t))===r})}var xz=function(t,r){return G(t)&&G(r)?t-r:Do(t)&&Do(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ia(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 pm(e){"@babel/helpers - typeof";return pm=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},pm(e)}var wz=["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"],s1=["points","pathLength"],gv={svg:wz,polygon:s1,polyline:s1},cb=["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"],cd=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(M.isValidElement(t)&&(n=t.props),!Us(n))return null;var i={};return Object.keys(n).forEach(function(o){cb.includes(o)&&(i[o]=r||function(a){return n[o](n,a)})}),i},Oz=function(t,r,n){return function(i){return t(r,n,i),null}},Lo=function(t,r,n){if(!Us(t)||pm(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];cb.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=Oz(a,r,n))}),i},Pz=["children"],_z=["children"];function u1(e,t){if(e==null)return{};var r=Az(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 Az(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 vm(e){"@babel/helpers - typeof";return vm=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},vm(e)}var l1={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"},Fn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},c1=null,bv=null,fb=function e(t){if(t===c1&&Array.isArray(bv))return bv;var r=[];return M.Children.forEach(t,function(n){le(n)||(uz.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),bv=r,c1=t,r};function sr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Fn(i)}):n=[Fn(t)],fb(e).forEach(function(i){var o=ar(i,"type.displayName")||ar(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function er(e,t){var r=sr(e,t);return r&&r[0]}var f1=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!G(n)||n<=0||!G(i)||i<=0)},Ez=["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"],jz=function(t){return t&&t.type&&Do(t.type)&&Ez.indexOf(t.type)>=0},Cz=function(t){return t&&vm(t)==="object"&&"clipDot"in t},$z=function(t,r,n,i){var o,a=(o=gv==null?void 0:gv[i])!==null&&o!==void 0?o:[];return r.startsWith("data-")||!ue(t)&&(i&&a.includes(r)||Sz.includes(r))||n&&cb.includes(r)},oe=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(M.isValidElement(t)&&(i=t.props),!Us(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;$z((s=i)===null||s===void 0?void 0:s[a],a,r,n)&&(o[a]=i[a])}),o},ym=function e(t,r){if(t===r)return!0;var n=M.Children.count(t);if(n!==M.Children.count(r))return!1;if(n===0)return!0;if(n===1)return d1(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(!d1(o,a))return!1}return!0},d1=function(t,r){if(le(t)&&le(r))return!0;if(!le(t)&&!le(r)){var n=t.props||{},i=n.children,o=u1(n,Pz),a=r.props||{},s=a.children,u=u1(a,_z);return i&&s?Ia(o,u)&&ym(i,s):!i&&!s?Ia(o,u):!1}return!1},h1=function(t,r){var n=[],i={};return fb(t).forEach(function(o,a){if(jz(o))n.push(o);else if(o){var s=Fn(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},Tz=function(t){var r=t&&t.type;return r&&l1[r]?l1[r]:null},kz=function(t,r){return fb(r).indexOf(t)},Mz=["children","width","height","viewBox","className","style","title","desc"];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 Iz(e,t){if(e==null)return{};var r=Rz(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 Rz(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 gm(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=Iz(e,Mz),f=i||{width:r,height:n,x:0,y:0},c=ce("recharts-surface",o);return T.createElement("svg",mm({},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)}),T.createElement("title",null,s),T.createElement("desc",null,u),t)}var Nz=["children","className"];function bm(){return bm=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},bm.apply(this,arguments)}function Dz(e,t){if(e==null)return{};var r=Lz(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 Lz(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 be=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=Dz(e,Nz),o=ce("recharts-layer",n);return T.createElement("g",bm({className:o},oe(i,!0),{ref:t}),r)}),Jr=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 Fz(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 Bz=Fz,zz=Bz;function Uz(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:zz(e,t,r)}var Wz=Uz,qz="\\ud800-\\udfff",Hz="\\u0300-\\u036f",Kz="\\ufe20-\\ufe2f",Vz="\\u20d0-\\u20ff",Gz=Hz+Kz+Vz,Qz="\\ufe0e\\ufe0f",Xz="\\u200d",Yz=RegExp("["+Xz+qz+Gz+Qz+"]");function Zz(e){return Yz.test(e)}var Kj=Zz;function Jz(e){return e.split("")}var e4=Jz,Vj="\\ud800-\\udfff",t4="\\u0300-\\u036f",r4="\\ufe20-\\ufe2f",n4="\\u20d0-\\u20ff",i4=t4+r4+n4,o4="\\ufe0e\\ufe0f",a4="["+Vj+"]",xm="["+i4+"]",wm="\\ud83c[\\udffb-\\udfff]",s4="(?:"+xm+"|"+wm+")",Gj="[^"+Vj+"]",Qj="(?:\\ud83c[\\udde6-\\uddff]){2}",Xj="[\\ud800-\\udbff][\\udc00-\\udfff]",u4="\\u200d",Yj=s4+"?",Zj="["+o4+"]?",l4="(?:"+u4+"(?:"+[Gj,Qj,Xj].join("|")+")"+Zj+Yj+")*",c4=Zj+Yj+l4,f4="(?:"+[Gj+xm+"?",xm,Qj,Xj,a4].join("|")+")",d4=RegExp(wm+"(?="+wm+")|"+f4+c4,"g");function h4(e){return e.match(d4)||[]}var p4=h4,v4=e4,y4=Kj,m4=p4;function g4(e){return y4(e)?m4(e):v4(e)}var b4=g4,x4=Wz,w4=Kj,S4=b4,O4=Bj;function P4(e){return function(t){t=O4(t);var r=w4(t)?S4(t):void 0,n=r?r[0]:t.charAt(0),i=r?x4(r,1).join(""):t.slice(1);return n[e]()+i}}var _4=P4,A4=_4,E4=A4("toUpperCase"),j4=E4;const Qh=Ae(j4);function Te(e){return function(){return e}}const Jj=Math.cos,fd=Math.sin,rn=Math.sqrt,dd=Math.PI,Xh=2*dd,Sm=Math.PI,Om=2*Sm,to=1e-6,C4=Om-to;function eC(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function $4(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return eC;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 T4{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?eC:$4(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>to)if(!(Math.abs(c*u-l*f)>to)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-a,v=i-s,p=u*u+l*l,m=h*h+v*v,y=Math.sqrt(p),g=Math.sqrt(d),b=o*Math.tan((Sm-Math.acos((p+d-m)/(2*y*g)))/2),S=b/g,x=b/y;Math.abs(S-1)>to&&this._append`L${t+S*f},${r+S*c}`,this._append`A${o},${o},0,0,${+(c*h>f*v)},${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)>to||Math.abs(this._y1-f)>to)&&this._append`L${l},${f}`,n&&(d<0&&(d=d%Om+Om),d>C4?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>to&&this._append`A${n},${n},0,${+(d>=Sm)},${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 db(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 T4(t)}function hb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function tC(e){this._context=e}tC.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 Yh(e){return new tC(e)}function rC(e){return e[0]}function nC(e){return e[1]}function iC(e,t){var r=Te(!0),n=null,i=Yh,o=null,a=db(s);e=typeof e=="function"?e:e===void 0?rC:Te(e),t=typeof t=="function"?t:t===void 0?nC:Te(t);function s(u){var l,f=(u=hb(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 Gc(e,t,r){var n=null,i=Te(!0),o=null,a=Yh,s=null,u=db(l);e=typeof e=="function"?e:e===void 0?rC:Te(+e),t=typeof t=="function"?t:Te(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?nC:Te(+r);function l(c){var d,h,v,p=(c=hb(c)).length,m,y=!1,g,b=new Array(p),S=new Array(p);for(o==null&&(s=a(g=u())),d=0;d<=p;++d){if(!(d<p&&i(m=c[d],d,c))===y)if(y=!y)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),v=d-1;v>=h;--v)s.point(b[v],S[v]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+e(m,d,c),S[d]=+t(m,d,c),s.point(n?+n(m,d,c):b[d],r?+r(m,d,c):S[d]))}if(g)return s=null,g+""||null}function f(){return iC().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 oC{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 k4(e){return new oC(e,!0)}function M4(e){return new oC(e,!1)}const pb={draw(e,t){const r=rn(t/dd);e.moveTo(r,0),e.arc(0,0,r,0,Xh)}},I4={draw(e,t){const r=rn(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()}},aC=rn(1/3),R4=aC*2,N4={draw(e,t){const r=rn(t/R4),n=r*aC;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},D4={draw(e,t){const r=rn(t),n=-r/2;e.rect(n,n,r,r)}},L4=.8908130915292852,sC=fd(dd/10)/fd(7*dd/10),F4=fd(Xh/10)*sC,B4=-Jj(Xh/10)*sC,z4={draw(e,t){const r=rn(t*L4),n=F4*r,i=B4*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const a=Xh*o/5,s=Jj(a),u=fd(a);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},xv=rn(3),U4={draw(e,t){const r=-rn(t/(xv*3));e.moveTo(0,r*2),e.lineTo(-xv*r,-r),e.lineTo(xv*r,-r),e.closePath()}},fr=-.5,dr=rn(3)/2,Pm=1/rn(12),W4=(Pm/2+1)*3,q4={draw(e,t){const r=rn(t/W4),n=r/2,i=r*Pm,o=n,a=r*Pm+r,s=-o,u=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(fr*n-dr*i,dr*n+fr*i),e.lineTo(fr*o-dr*a,dr*o+fr*a),e.lineTo(fr*s-dr*u,dr*s+fr*u),e.lineTo(fr*n+dr*i,fr*i-dr*n),e.lineTo(fr*o+dr*a,fr*a-dr*o),e.lineTo(fr*s+dr*u,fr*u-dr*s),e.closePath()}};function H4(e,t){let r=null,n=db(i);e=typeof e=="function"?e:Te(e||pb),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 hd(){}function pd(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 uC(e){this._context=e}uC.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:pd(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:pd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function K4(e){return new uC(e)}function lC(e){this._context=e}lC.prototype={areaStart:hd,areaEnd:hd,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:pd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function V4(e){return new lC(e)}function cC(e){this._context=e}cC.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:pd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function G4(e){return new cC(e)}function fC(e){this._context=e}fC.prototype={areaStart:hd,areaEnd:hd,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 Q4(e){return new fC(e)}function p1(e){return e<0?-1:1}function v1(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(p1(o)+p1(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function y1(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function wv(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 vd(e){this._context=e}vd.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:wv(this,this._t0,y1(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,wv(this,y1(this,r=v1(this,e,t)),r);break;default:wv(this,this._t0,r=v1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function dC(e){this._context=new hC(e)}(dC.prototype=Object.create(vd.prototype)).point=function(e,t){vd.prototype.point.call(this,t,e)};function hC(e){this._context=e}hC.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 X4(e){return new vd(e)}function Y4(e){return new dC(e)}function pC(e){this._context=e}pC.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=m1(e),i=m1(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 m1(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 Z4(e){return new pC(e)}function Zh(e,t){this._context=e,this._t=t}Zh.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 J4(e){return new Zh(e,.5)}function eU(e){return new Zh(e,0)}function tU(e){return new Zh(e,1)}function fs(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 _m(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function rU(e,t){return e[t]}function nU(e){const t=[];return t.key=e,t}function iU(){var e=Te([]),t=_m,r=fs,n=rU;function i(o){var a=Array.from(e.apply(this,arguments),nU),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=hb(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?_m:typeof o=="function"?o:Te(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(r=o??fs,i):r},i}function oU(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}fs(e,t)}}function aU(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}fs(e,t)}}function sU(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,v=0;v<s;++v){var p=e[t[v]],m=p[n][1]||0,y=p[n-1][1]||0;h+=m-y}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,fs(e,t)}}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)}var uU=["type","size","sizeType"];function Am(){return Am=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},Am.apply(this,arguments)}function g1(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 b1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g1(Object(r),!0).forEach(function(n){lU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lU(e,t,r){return t=cU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cU(e){var t=fU(e,"string");return hl(t)=="symbol"?t:t+""}function fU(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)}function dU(e,t){if(e==null)return{};var r=hU(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 hU(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 vC={symbolCircle:pb,symbolCross:I4,symbolDiamond:N4,symbolSquare:D4,symbolStar:z4,symbolTriangle:U4,symbolWye:q4},pU=Math.PI/180,vU=function(t){var r="symbol".concat(Qh(t));return vC[r]||pb},yU=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*pU;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}},mU=function(t,r){vC["symbol".concat(Qh(t))]=r},vb=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=dU(t,uU),l=b1(b1({},u),{},{type:n,size:o,sizeType:s}),f=function(){var m=vU(n),y=H4().type(m).size(yU(o,s,n));return y()},c=l.className,d=l.cx,h=l.cy,v=oe(l,!0);return d===+d&&h===+h&&o===+o?T.createElement("path",Am({},v,{className:ce("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};vb.registerSymbol=mU;function ds(e){"@babel/helpers - typeof";return ds=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},ds(e)}function Em(){return Em=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},Em.apply(this,arguments)}function x1(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?x1(Object(r),!0).forEach(function(n){pl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xU(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,mC(n.key),n)}}function wU(e,t,r){return t&&xU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SU(e,t,r){return t=yd(t),OU(e,yC()?Reflect.construct(t,r||[],yd(e).constructor):t.apply(e,r))}function OU(e,t){if(t&&(ds(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PU(e)}function PU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yC=function(){return!!e})()}function yd(e){return yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yd(e)}function _U(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&&jm(e,t)}function jm(e,t){return jm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jm(e,t)}function pl(e,t,r){return t=mC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mC(e){var t=AU(e,"string");return ds(t)=="symbol"?t:t+""}function AU(e,t){if(ds(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ds(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hr=32,yb=function(e){function t(){return bU(this,t),SU(this,t,arguments)}return _U(t,e),wU(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,o=hr/2,a=hr/6,s=hr/3,u=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:o,x2:hr,y2:o,className:"recharts-legend-icon"});if(n.type==="line")return T.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(hr,"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 T.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(hr/8,"h").concat(hr,"v").concat(hr*3/4,"h").concat(-hr,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var l=gU({},n);return delete l.legendIcon,T.cloneElement(n.legendIcon,l)}return T.createElement(vb,{fill:u,cx:o,cy:o,size:hr,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:hr,height:hr},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(h,v){var p=h.formatter||u,m=ce(pl(pl({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=ue(h.value)?null:h.value;Jr(!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 g=h.inactive?l:h.color;return T.createElement("li",Em({className:m,style:c,key:"legend-item-".concat(v)},Lo(n.props,h,v)),T.createElement(gm,{width:a,height:a,viewBox:f,style:d},n.renderIcon(h)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},p?p(y,h,v):y))})}},{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 T.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(M.PureComponent);pl(yb,"displayName","Legend");pl(yb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var EU=Nh;function jU(){this.__data__=new EU,this.size=0}var CU=jU;function $U(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var TU=$U;function kU(e){return this.__data__.get(e)}var MU=kU;function IU(e){return this.__data__.has(e)}var RU=IU,NU=Nh,DU=nb,LU=ib,FU=200;function BU(e,t){var r=this.__data__;if(r instanceof NU){var n=r.__data__;if(!DU||n.length<FU-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new LU(n)}return r.set(e,t),this.size=r.size,this}var zU=BU,UU=Nh,WU=CU,qU=TU,HU=MU,KU=RU,VU=zU;function Vs(e){var t=this.__data__=new UU(e);this.size=t.size}Vs.prototype.clear=WU;Vs.prototype.delete=qU;Vs.prototype.get=HU;Vs.prototype.has=KU;Vs.prototype.set=VU;var gC=Vs,GU="__lodash_hash_undefined__";function QU(e){return this.__data__.set(e,GU),this}var XU=QU;function YU(e){return this.__data__.has(e)}var ZU=YU,JU=ib,e8=XU,t8=ZU;function md(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new JU;++t<r;)this.add(e[t])}md.prototype.add=md.prototype.push=e8;md.prototype.has=t8;var bC=md;function r8(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 xC=r8;function n8(e,t){return e.has(t)}var wC=n8,i8=bC,o8=xC,a8=wC,s8=1,u8=2;function l8(e,t,r,n,i,o){var a=r&s8,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&u8?new i8:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var v=e[c],p=t[c];if(n)var m=a?n(p,v,c,t,e,o):n(v,p,c,e,t,o);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!o8(t,function(y,g){if(!a8(h,g)&&(v===y||i(v,y,r,n,o)))return h.push(g)})){d=!1;break}}else if(!(v===p||i(v,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var SC=l8,c8=wn,f8=c8.Uint8Array,d8=f8;function h8(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var p8=h8;function v8(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var mb=v8,w1=fc,S1=d8,y8=rb,m8=SC,g8=p8,b8=mb,x8=1,w8=2,S8="[object Boolean]",O8="[object Date]",P8="[object Error]",_8="[object Map]",A8="[object Number]",E8="[object RegExp]",j8="[object Set]",C8="[object String]",$8="[object Symbol]",T8="[object ArrayBuffer]",k8="[object DataView]",O1=w1?w1.prototype:void 0,Sv=O1?O1.valueOf:void 0;function M8(e,t,r,n,i,o,a){switch(r){case k8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T8:return!(e.byteLength!=t.byteLength||!o(new S1(e),new S1(t)));case S8:case O8:case A8:return y8(+e,+t);case P8:return e.name==t.name&&e.message==t.message;case E8:case C8:return e==t+"";case _8:var s=g8;case j8:var u=n&x8;if(s||(s=b8),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=w8,a.set(e,t);var f=m8(s(e),s(t),n,i,o,a);return a.delete(e),f;case $8:if(Sv)return Sv.call(e)==Sv.call(t)}return!1}var I8=M8;function R8(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var OC=R8,N8=OC,D8=Qt;function L8(e,t,r){var n=t(e);return D8(e)?n:N8(n,r(e))}var F8=L8;function B8(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 z8=B8;function U8(){return[]}var W8=U8,q8=z8,H8=W8,K8=Object.prototype,V8=K8.propertyIsEnumerable,P1=Object.getOwnPropertySymbols,G8=P1?function(e){return e==null?[]:(e=Object(e),q8(P1(e),function(t){return V8.call(e,t)}))}:H8,Q8=G8;function X8(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Y8=X8,Z8=Yn,J8=Zn,e5="[object Arguments]";function t5(e){return J8(e)&&Z8(e)==e5}var r5=t5,_1=r5,n5=Zn,PC=Object.prototype,i5=PC.hasOwnProperty,o5=PC.propertyIsEnumerable,a5=_1(function(){return arguments}())?_1:function(e){return n5(e)&&i5.call(e,"callee")&&!o5.call(e,"callee")},gb=a5,gd={exports:{}};function s5(){return!1}var u5=s5;gd.exports;(function(e,t){var r=wn,n=u5,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})(gd,gd.exports);var _C=gd.exports,l5=9007199254740991,c5=/^(?:0|[1-9]\d*)$/;function f5(e,t){var r=typeof e;return t=t??l5,!!t&&(r=="number"||r!="symbol"&&c5.test(e))&&e>-1&&e%1==0&&e<t}var bb=f5,d5=9007199254740991;function h5(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=d5}var xb=h5,p5=Yn,v5=xb,y5=Zn,m5="[object Arguments]",g5="[object Array]",b5="[object Boolean]",x5="[object Date]",w5="[object Error]",S5="[object Function]",O5="[object Map]",P5="[object Number]",_5="[object Object]",A5="[object RegExp]",E5="[object Set]",j5="[object String]",C5="[object WeakMap]",$5="[object ArrayBuffer]",T5="[object DataView]",k5="[object Float32Array]",M5="[object Float64Array]",I5="[object Int8Array]",R5="[object Int16Array]",N5="[object Int32Array]",D5="[object Uint8Array]",L5="[object Uint8ClampedArray]",F5="[object Uint16Array]",B5="[object Uint32Array]",Ne={};Ne[k5]=Ne[M5]=Ne[I5]=Ne[R5]=Ne[N5]=Ne[D5]=Ne[L5]=Ne[F5]=Ne[B5]=!0;Ne[m5]=Ne[g5]=Ne[$5]=Ne[b5]=Ne[T5]=Ne[x5]=Ne[w5]=Ne[S5]=Ne[O5]=Ne[P5]=Ne[_5]=Ne[A5]=Ne[E5]=Ne[j5]=Ne[C5]=!1;function z5(e){return y5(e)&&v5(e.length)&&!!Ne[p5(e)]}var U5=z5;function W5(e){return function(t){return e(t)}}var AC=W5,bd={exports:{}};bd.exports;(function(e,t){var r=Ij,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})(bd,bd.exports);var q5=bd.exports,H5=U5,K5=AC,A1=q5,E1=A1&&A1.isTypedArray,V5=E1?K5(E1):H5,EC=V5,G5=Y8,Q5=gb,X5=Qt,Y5=_C,Z5=bb,J5=EC,e6=Object.prototype,t6=e6.hasOwnProperty;function r6(e,t){var r=X5(e),n=!r&&Q5(e),i=!r&&!n&&Y5(e),o=!r&&!n&&!i&&J5(e),a=r||n||i||o,s=a?G5(e.length,String):[],u=s.length;for(var l in e)(t||t6.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Z5(l,u)))&&s.push(l);return s}var n6=r6,i6=Object.prototype;function o6(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||i6;return e===r}var a6=o6;function s6(e,t){return function(r){return e(t(r))}}var jC=s6,u6=jC,l6=u6(Object.keys,Object),c6=l6,f6=a6,d6=c6,h6=Object.prototype,p6=h6.hasOwnProperty;function v6(e){if(!f6(e))return d6(e);var t=[];for(var r in Object(e))p6.call(e,r)&&r!="constructor"&&t.push(r);return t}var y6=v6,m6=tb,g6=xb;function b6(e){return e!=null&&g6(e.length)&&!m6(e)}var hc=b6,x6=n6,w6=y6,S6=hc;function O6(e){return S6(e)?x6(e):w6(e)}var Jh=O6,P6=F8,_6=Q8,A6=Jh;function E6(e){return P6(e,A6,_6)}var j6=E6,j1=j6,C6=1,$6=Object.prototype,T6=$6.hasOwnProperty;function k6(e,t,r,n,i,o){var a=r&C6,s=j1(e),u=s.length,l=j1(t),f=l.length;if(u!=f&&!a)return!1;for(var c=u;c--;){var d=s[c];if(!(a?d in t:T6.call(t,d)))return!1}var h=o.get(e),v=o.get(t);if(h&&v)return h==t&&v==e;var p=!0;o.set(e,t),o.set(t,e);for(var m=a;++c<u;){d=s[c];var y=e[d],g=t[d];if(n)var b=a?n(g,y,d,t,e,o):n(y,g,d,e,t,o);if(!(b===void 0?y===g||i(y,g,r,n,o):b)){p=!1;break}m||(m=d=="constructor")}if(p&&!m){var S=e.constructor,x=t.constructor;S!=x&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof x=="function"&&x instanceof x)&&(p=!1)}return o.delete(e),o.delete(t),p}var M6=k6,I6=Vo,R6=wn,N6=I6(R6,"DataView"),D6=N6,L6=Vo,F6=wn,B6=L6(F6,"Promise"),z6=B6,U6=Vo,W6=wn,q6=U6(W6,"Set"),CC=q6,H6=Vo,K6=wn,V6=H6(K6,"WeakMap"),G6=V6,Cm=D6,$m=nb,Tm=z6,km=CC,Mm=G6,$C=Yn,Gs=Nj,C1="[object Map]",Q6="[object Object]",$1="[object Promise]",T1="[object Set]",k1="[object WeakMap]",M1="[object DataView]",X6=Gs(Cm),Y6=Gs($m),Z6=Gs(Tm),J6=Gs(km),eW=Gs(Mm),ro=$C;(Cm&&ro(new Cm(new ArrayBuffer(1)))!=M1||$m&&ro(new $m)!=C1||Tm&&ro(Tm.resolve())!=$1||km&&ro(new km)!=T1||Mm&&ro(new Mm)!=k1)&&(ro=function(e){var t=$C(e),r=t==Q6?e.constructor:void 0,n=r?Gs(r):"";if(n)switch(n){case X6:return M1;case Y6:return C1;case Z6:return $1;case J6:return T1;case eW:return k1}return t});var tW=ro,Ov=gC,rW=SC,nW=I8,iW=M6,I1=tW,R1=Qt,N1=_C,oW=EC,aW=1,D1="[object Arguments]",L1="[object Array]",Qc="[object Object]",sW=Object.prototype,F1=sW.hasOwnProperty;function uW(e,t,r,n,i,o){var a=R1(e),s=R1(t),u=a?L1:I1(e),l=s?L1:I1(t);u=u==D1?Qc:u,l=l==D1?Qc:l;var f=u==Qc,c=l==Qc,d=u==l;if(d&&N1(e)){if(!N1(t))return!1;a=!0,f=!1}if(d&&!f)return o||(o=new Ov),a||oW(e)?rW(e,t,r,n,i,o):nW(e,t,u,r,n,i,o);if(!(r&aW)){var h=f&&F1.call(e,"__wrapped__"),v=c&&F1.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,m=v?t.value():t;return o||(o=new Ov),i(p,m,r,n,o)}}return d?(o||(o=new Ov),iW(e,t,r,n,i,o)):!1}var lW=uW,cW=lW,B1=Zn;function TC(e,t,r,n,i){return e===t?!0:e==null||t==null||!B1(e)&&!B1(t)?e!==e&&t!==t:cW(e,t,r,n,TC,i)}var wb=TC,fW=gC,dW=wb,hW=1,pW=2;function vW(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 fW;if(n)var d=n(l,f,u,e,t,c);if(!(d===void 0?dW(f,l,hW|pW,n,c):d))return!1}}return!0}var yW=vW,mW=qi;function gW(e){return e===e&&!mW(e)}var kC=gW,bW=kC,xW=Jh;function wW(e){for(var t=xW(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,bW(i)]}return t}var SW=wW;function OW(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var MC=OW,PW=yW,_W=SW,AW=MC;function EW(e){var t=_W(e);return t.length==1&&t[0][2]?AW(t[0][0],t[0][1]):function(r){return r===e||PW(r,e,t)}}var jW=EW;function CW(e,t){return e!=null&&t in Object(e)}var $W=CW,TW=zj,kW=gb,MW=Qt,IW=bb,RW=xb,NW=Lh;function DW(e,t,r){t=TW(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=NW(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&&RW(i)&&IW(a,i)&&(MW(e)||kW(e)))}var LW=DW,FW=$W,BW=LW;function zW(e,t){return e!=null&&BW(e,t,FW)}var UW=zW,WW=wb,qW=Uj,HW=UW,KW=eb,VW=kC,GW=MC,QW=Lh,XW=1,YW=2;function ZW(e,t){return KW(e)&&VW(t)?GW(QW(e),t):function(r){var n=qW(r,e);return n===void 0&&n===t?HW(r,e):WW(t,n,XW|YW)}}var JW=ZW;function eq(e){return e}var Qs=eq;function tq(e){return function(t){return t==null?void 0:t[e]}}var rq=tq,nq=sb;function iq(e){return function(t){return nq(t,e)}}var oq=iq,aq=rq,sq=oq,uq=eb,lq=Lh;function cq(e){return uq(e)?aq(lq(e)):sq(e)}var fq=cq,dq=jW,hq=JW,pq=Qs,vq=Qt,yq=fq;function mq(e){return typeof e=="function"?e:e==null?pq:typeof e=="object"?vq(e)?hq(e[0],e[1]):dq(e):yq(e)}var Sn=mq;function gq(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 IC=gq;function bq(e){return e!==e}var xq=bq;function wq(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var Sq=wq,Oq=IC,Pq=xq,_q=Sq;function Aq(e,t,r){return t===t?_q(e,t,r):Oq(e,Pq,r)}var Eq=Aq,jq=Eq;function Cq(e,t){var r=e==null?0:e.length;return!!r&&jq(e,t,0)>-1}var $q=Cq;function Tq(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 kq=Tq;function Mq(){}var Iq=Mq,Pv=CC,Rq=Iq,Nq=mb,Dq=1/0,Lq=Pv&&1/Nq(new Pv([,-0]))[1]==Dq?function(e){return new Pv(e)}:Rq,Fq=Lq,Bq=bC,zq=$q,Uq=kq,Wq=wC,qq=Fq,Hq=mb,Kq=200;function Vq(e,t,r){var n=-1,i=zq,o=e.length,a=!0,s=[],u=s;if(r)a=!1,i=Uq;else if(o>=Kq){var l=t?null:qq(e);if(l)return Hq(l);a=!1,i=Wq,u=new Bq}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 Gq=Vq,Qq=Sn,Xq=Gq;function Yq(e,t){return e&&e.length?Xq(e,Qq(t)):[]}var Zq=Yq;const z1=Ae(Zq);function RC(e,t,r){return t===!0?z1(e,r):ue(t)?z1(e,t):e}function hs(e){"@babel/helpers - typeof";return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(e)}var Jq=["ref"];function U1(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 Pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U1(Object(r),!0).forEach(function(n){ep(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DC(n.key),n)}}function tH(e,t,r){return t&&W1(e.prototype,t),r&&W1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rH(e,t,r){return t=xd(t),nH(e,NC()?Reflect.construct(t,r||[],xd(e).constructor):t.apply(e,r))}function nH(e,t){if(t&&(hs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iH(e)}function iH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NC=function(){return!!e})()}function xd(e){return xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xd(e)}function oH(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 ep(e,t,r){return t=DC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DC(e){var t=aH(e,"string");return hs(t)=="symbol"?t:t+""}function aH(e,t){if(hs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sH(e,t){if(e==null)return{};var r=uH(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 uH(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 lH(e){return e.value}function cH(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=sH(t,Jq);return T.createElement(yb,r)}var q1=1,Ra=function(e){function t(){var r;eH(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=rH(this,t,[].concat(i)),ep(r,"lastBoundingBox",{width:-1,height:-1}),r}return oH(t,e),tH(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)>q1||Math.abs(i.height-this.lastBoundingBox.height)>q1)&&(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?Pn({},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 v=this.getBBoxSnapshot();d={top:((f||0)-v.height)/2}}else d=s==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Pn(Pn({},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=Pn(Pn({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(u)),u);return T.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){n.wrapperNode=h}},cH(o,Pn(Pn({},this.props),{},{payload:RC(f,l,lH)})))}}],[{key:"getWithHeight",value:function(n,i){var o=Pn(Pn({},this.defaultProps),n.props),a=o.layout;return a==="vertical"&&G(n.props.height)?{height:n.props.height}:a==="horizontal"?{width:n.props.width||i}:null}}])}(M.PureComponent);ep(Ra,"displayName","Legend");ep(Ra,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var H1=fc,fH=gb,dH=Qt,K1=H1?H1.isConcatSpreadable:void 0;function hH(e){return dH(e)||fH(e)||!!(K1&&e&&e[K1])}var pH=hH,vH=OC,yH=pH;function LC(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=yH),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?LC(s,t-1,r,n,i):vH(i,s):n||(i[i.length]=s)}return i}var FC=LC;function mH(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 gH=mH,bH=gH,xH=bH(),wH=xH,SH=wH,OH=Jh;function PH(e,t){return e&&SH(e,t,OH)}var BC=PH,_H=hc;function AH(e,t){return function(r,n){if(r==null)return r;if(!_H(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 EH=AH,jH=BC,CH=EH,$H=CH(jH),Sb=$H,TH=Sb,kH=hc;function MH(e,t){var r=-1,n=kH(e)?Array(e.length):[];return TH(e,function(i,o,a){n[++r]=t(i,o,a)}),n}var zC=MH;function IH(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var RH=IH,V1=zs;function NH(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,o=V1(e),a=t!==void 0,s=t===null,u=t===t,l=V1(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 DH=NH,LH=DH;function FH(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var u=LH(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 BH=FH,_v=ab,zH=sb,UH=Sn,WH=zC,qH=RH,HH=AC,KH=BH,VH=Qs,GH=Qt;function QH(e,t,r){t.length?t=_v(t,function(o){return GH(o)?function(a){return zH(a,o.length===1?o[0]:o)}:o}):t=[VH];var n=-1;t=_v(t,HH(UH));var i=WH(e,function(o,a,s){var u=_v(t,function(l){return l(o)});return{criteria:u,index:++n,value:o}});return qH(i,function(o,a){return KH(o,a,r)})}var XH=QH;function YH(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 ZH=YH,JH=ZH,G1=Math.max;function eK(e,t,r){return t=G1(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=G1(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),JH(e,this,s)}}var tK=eK;function rK(e){return function(){return e}}var nK=rK,iK=Vo,oK=function(){try{var e=iK(Object,"defineProperty");return e({},"",{}),e}catch{}}(),UC=oK,aK=nK,Q1=UC,sK=Qs,uK=Q1?function(e,t){return Q1(e,"toString",{configurable:!0,enumerable:!1,value:aK(t),writable:!0})}:sK,lK=uK,cK=800,fK=16,dK=Date.now;function hK(e){var t=0,r=0;return function(){var n=dK(),i=fK-(n-r);if(r=n,i>0){if(++t>=cK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pK=hK,vK=lK,yK=pK,mK=yK(vK),gK=mK,bK=Qs,xK=tK,wK=gK;function SK(e,t){return wK(xK(e,t,bK),e+"")}var OK=SK,PK=rb,_K=hc,AK=bb,EK=qi;function jK(e,t,r){if(!EK(r))return!1;var n=typeof t;return(n=="number"?_K(r)&&AK(t,r.length):n=="string"&&t in r)?PK(r[t],e):!1}var tp=jK,CK=FC,$K=XH,TK=OK,X1=tp,kK=TK(function(e,t){if(e==null)return[];var r=t.length;return r>1&&X1(e,t[0],t[1])?t=[]:r>2&&X1(t[0],t[1],t[2])&&(t=[t[0]]),$K(e,CK(t,1),[])}),MK=kK;const Ob=Ae(MK);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 Rm(){return Rm=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},Rm.apply(this,arguments)}function IK(e,t){return LK(e)||DK(e,t)||NK(e,t)||RK()}function RK(){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 NK(e,t){if(e){if(typeof e=="string")return Y1(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 Y1(e,t)}}function Y1(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 DK(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 LK(e){if(Array.isArray(e))return e}function Z1(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 Av(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z1(Object(r),!0).forEach(function(n){FK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FK(e,t,r){return t=BK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BK(e){var t=zK(e,"string");return vl(t)=="symbol"?t:t+""}function zK(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)}function UK(e){return Array.isArray(e)&&at(e[0])&&at(e[1])?e.join(" ~ "):e}var WK=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,v=t.labelClassName,p=t.label,m=t.labelFormatter,y=t.accessibilityLayer,g=y===void 0?!1:y,b=function(){if(f&&f.length){var j={padding:0,margin:0},I=(d?Ob(f,d):f).map(function(N,D){if(N.type==="none")return null;var R=Av({display:"block",paddingTop:4,paddingBottom:4,color:N.color||"#000"},s),F=N.formatter||c||UK,k=N.value,L=N.name,z=k,U=L;if(F&&z!=null&&U!=null){var W=F(k,L,N,D,f);if(Array.isArray(W)){var H=IK(W,2);z=H[0],U=H[1]}else z=W}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:R},at(U)?T.createElement("span",{className:"recharts-tooltip-item-name"},U):null,at(U)?T.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,T.createElement("span",{className:"recharts-tooltip-item-value"},z),T.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:j},I)}return null},S=Av({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),x=Av({margin:0},l),w=!le(p),O=w?p:"",P=ce("recharts-default-tooltip",h),_=ce("recharts-tooltip-label",v);w&&m&&f!==void 0&&f!==null&&(O=m(p,f));var A=g?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",Rm({className:P,style:S},A),T.createElement("p",{className:_,style:x},T.isValidElement(O)?O:"".concat(O)),b())};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 Xc(e,t,r){return t=qK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qK(e){var t=HK(e,"string");return yl(t)=="symbol"?t:t+""}function HK(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(t==="string"?String:Number)(e)}var pu="recharts-tooltip-wrapper",KK={visibility:"hidden"};function VK(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ce(pu,Xc(Xc(Xc(Xc({},"".concat(pu,"-right"),G(r)&&t&&G(t.x)&&r>=t.x),"".concat(pu,"-left"),G(r)&&t&&G(t.x)&&r<t.x),"".concat(pu,"-bottom"),G(n)&&t&&G(t.y)&&n>=t.y),"".concat(pu,"-top"),G(n)&&t&&G(t.y)&&n<t.y))}function J1(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&&G(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 v=c+s,p=u[n]+l;return v>p?Math.max(f,u[n]):Math.max(c,u[n])}function GK(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 QK(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=J1({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:u,viewBoxDimension:u.width}),c=J1({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:u,viewBoxDimension:u.height}),l=GK({translateX:f,translateY:c,useTranslate3d:s})):l=KK,{cssProperties:l,cssClasses:VK({translateX:f,translateY:c,coordinate:r})}}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 eS(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 tS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eS(Object(r),!0).forEach(function(n){Dm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qC(n.key),n)}}function ZK(e,t,r){return t&&YK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JK(e,t,r){return t=wd(t),eV(e,WC()?Reflect.construct(t,r||[],wd(e).constructor):t.apply(e,r))}function eV(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 tV(e)}function tV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WC=function(){return!!e})()}function wd(e){return wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wd(e)}function rV(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 Dm(e,t,r){return t=qC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qC(e){var t=nV(e,"string");return ps(t)=="symbol"?t:t+""}function nV(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 rS=1,iV=function(e){function t(){var r;XK(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=JK(this,t,[].concat(i)),Dm(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Dm(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 rV(t,e),ZK(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>rS||Math.abs(n.height-this.state.lastBoundingBox.height)>rS)&&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,v=i.position,p=i.reverseDirection,m=i.useTranslate3d,y=i.viewBox,g=i.wrapperStyle,b=QK({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:h,position:v,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:y}),S=b.cssClasses,x=b.cssProperties,w=tS(tS({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},g);return T.createElement("div",{tabIndex:-1,className:S,style:w,ref:function(P){n.wrapperNode=P}},l)}}])}(M.PureComponent),oV=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Go={isSsr:oV()};function vs(e){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vs(e)}function nS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nS(Object(r),!0).forEach(function(n){Pb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sV(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,KC(n.key),n)}}function uV(e,t,r){return t&&sV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lV(e,t,r){return t=Sd(t),cV(e,HC()?Reflect.construct(t,r||[],Sd(e).constructor):t.apply(e,r))}function cV(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 fV(e)}function fV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HC=function(){return!!e})()}function Sd(e){return Sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sd(e)}function dV(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&&Lm(e,t)}function Lm(e,t){return Lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lm(e,t)}function Pb(e,t,r){return t=KC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KC(e){var t=hV(e,"string");return vs(t)=="symbol"?t:t+""}function hV(e,t){if(vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function pV(e){return e.dataKey}function vV(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(WK,t)}var qr=function(e){function t(){return aV(this,t),lV(this,t,arguments)}return dV(t,e),uV(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,v=i.payload,p=i.payloadUniqBy,m=i.position,y=i.reverseDirection,g=i.useTranslate3d,b=i.viewBox,S=i.wrapperStyle,x=v??[];c&&x.length&&(x=RC(v.filter(function(O){return O.value!=null&&(O.hide!==!0||n.props.includeHidden)}),p,pV));var w=x.length>0;return T.createElement(iV,{allowEscapeViewBox:a,animationDuration:s,animationEasing:u,isAnimationActive:d,active:o,coordinate:f,hasPayload:w,offset:h,position:m,reverseDirection:y,useTranslate3d:g,viewBox:b,wrapperStyle:S},vV(l,iS(iS({},this.props),{},{payload:x})))}}])}(M.PureComponent);Pb(qr,"displayName","Tooltip");Pb(qr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Go.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 yV=wn,mV=function(){return yV.Date.now()},gV=mV,bV=/\s/;function xV(e){for(var t=e.length;t--&&bV.test(e.charAt(t)););return t}var wV=xV,SV=wV,OV=/^\s+/;function PV(e){return e&&e.slice(0,SV(e)+1).replace(OV,"")}var _V=PV,AV=_V,oS=qi,EV=zs,aS=NaN,jV=/^[-+]0x[0-9a-f]+$/i,CV=/^0b[01]+$/i,$V=/^0o[0-7]+$/i,TV=parseInt;function kV(e){if(typeof e=="number")return e;if(EV(e))return aS;if(oS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=AV(e);var r=CV.test(e);return r||$V.test(e)?TV(e.slice(2),r?2:8):jV.test(e)?aS:+e}var VC=kV,MV=qi,Ev=gV,sS=VC,IV="Expected a function",RV=Math.max,NV=Math.min;function DV(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(IV);t=sS(t)||0,MV(r)&&(f=!!r.leading,c="maxWait"in r,o=c?RV(sS(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(w){var O=n,P=i;return n=i=void 0,l=w,a=e.apply(P,O),a}function v(w){return l=w,s=setTimeout(y,t),f?h(w):a}function p(w){var O=w-u,P=w-l,_=t-O;return c?NV(_,o-P):_}function m(w){var O=w-u,P=w-l;return u===void 0||O>=t||O<0||c&&P>=o}function y(){var w=Ev();if(m(w))return g(w);s=setTimeout(y,p(w))}function g(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 S(){return s===void 0?a:g(Ev())}function x(){var w=Ev(),O=m(w);if(n=arguments,i=this,u=w,O){if(s===void 0)return v(u);if(c)return clearTimeout(s),s=setTimeout(y,t),h(u)}return s===void 0&&(s=setTimeout(y,t)),a}return x.cancel=b,x.flush=S,x}var LV=DV,FV=LV,BV=qi,zV="Expected a function";function UV(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(zV);return BV(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),FV(e,t,{leading:n,maxWait:t,trailing:i})}var WV=UV;const GC=Ae(WV);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 uS(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 Yc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uS(Object(r),!0).forEach(function(n){qV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qV(e,t,r){return t=HV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HV(e){var t=KV(e,"string");return ml(t)=="symbol"?t:t+""}function KV(e,t){if(ml(e)!="object"||!e)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 VV(e,t){return YV(e)||XV(e,t)||QV(e,t)||GV()}function GV(){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 QV(e,t){if(e){if(typeof e=="string")return lS(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 lS(e,t)}}function lS(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 XV(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 YV(e){if(Array.isArray(e))return e}var cS=M.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,v=e.debounce,p=v===void 0?0:v,m=e.id,y=e.className,g=e.onResize,b=e.style,S=b===void 0?{}:b,x=M.useRef(null),w=M.useRef();w.current=g,M.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 O=M.useState({containerWidth:i.width,containerHeight:i.height}),P=VV(O,2),_=P[0],A=P[1],C=M.useCallback(function(I,N){A(function(D){var R=Math.round(I),F=Math.round(N);return D.containerWidth===R&&D.containerHeight===F?D:{containerWidth:R,containerHeight:F}})},[]);M.useEffect(function(){var I=function(L){var z,U=L[0].contentRect,W=U.width,H=U.height;C(W,H),(z=w.current)===null||z===void 0||z.call(w,W,H)};p>0&&(I=GC(I,p,{trailing:!0,leading:!1}));var N=new ResizeObserver(I),D=x.current.getBoundingClientRect(),R=D.width,F=D.height;return C(R,F),N.observe(x.current),function(){N.disconnect()}},[C,p]);var j=M.useMemo(function(){var I=_.containerWidth,N=_.containerHeight;if(I<0||N<0)return null;Jr(uo(a)||uo(u),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,a,u),Jr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var D=uo(a)?I:a,R=uo(u)?N:u;r&&r>0&&(D?R=D/r:R&&(D=R*r),d&&R>d&&(R=d)),Jr(D>0||R>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,R,a,u,f,c,r);var F=!Array.isArray(h)&&Fn(h.type).endsWith("Chart");return T.Children.map(h,function(k){return T.isValidElement(k)?M.cloneElement(k,Yc({width:D,height:R},F?{style:Yc({height:"100%",width:"100%",maxHeight:R,maxWidth:D},k.props.style)}:{})):k})},[r,h,u,d,c,f,_,a]);return T.createElement("div",{id:m?"".concat(m):void 0,className:ce("recharts-responsive-container",y),style:Yc(Yc({},S),{},{width:a,height:u,minWidth:f,minHeight:c,maxHeight:d}),ref:x},j)}),rp=function(t){return null};rp.displayName="Cell";function gl(e){"@babel/helpers - typeof";return gl=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},gl(e)}function fS(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 Fm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fS(Object(r),!0).forEach(function(n){ZV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZV(e,t,r){return t=JV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JV(e){var t=e7(e,"string");return gl(t)=="symbol"?t:t+""}function e7(e,t){if(gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ea={widthCache:{},cacheCount:0},t7=2e3,r7={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},dS="recharts_measurement_span";function n7(e){var t=Fm({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var zu=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Go.isSsr)return{width:0,height:0};var n=n7(r),i=JSON.stringify({text:t,copyStyle:n});if(ea.widthCache[i])return ea.widthCache[i];try{var o=document.getElementById(dS);o||(o=document.createElement("span"),o.setAttribute("id",dS),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Fm(Fm({},r7),n);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),u={width:s.width,height:s.height};return ea.widthCache[i]=u,++ea.cacheCount>t7&&(ea.cacheCount=0,ea.widthCache={}),u}catch{return{width:0,height:0}}},i7=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Od(e,t){return u7(e)||s7(e,t)||a7(e,t)||o7()}function o7(){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 a7(e,t){if(e){if(typeof e=="string")return hS(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 hS(e,t)}}function hS(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 s7(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 u7(e){if(Array.isArray(e))return e}function l7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pS(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,f7(n.key),n)}}function c7(e,t,r){return t&&pS(e.prototype,t),r&&pS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f7(e){var t=d7(e,"string");return bl(t)=="symbol"?t:t+""}function d7(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 String(e)}var vS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,h7=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,p7=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,QC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},v7=Object.keys(QC),ba="NaN";function y7(e,t){return e*QC[t]}var Zc=function(){function e(t,r){l7(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!h7.test(r)&&(this.num=NaN,this.unit=""),v7.includes(r)&&(this.num=y7(t,r),this.unit="px")}return c7(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=p7.exec(r))!==null&&n!==void 0?n:[],o=Od(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function XC(e){if(e.includes(ba))return ba;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=vS.exec(t))!==null&&r!==void 0?r:[],i=Od(n,4),o=i[1],a=i[2],s=i[3],u=Zc.parse(o??""),l=Zc.parse(s??""),f=a==="*"?u.multiply(l):u.divide(l);if(f.isNaN())return ba;t=t.replace(vS,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=yS.exec(t))!==null&&c!==void 0?c:[],h=Od(d,4),v=h[1],p=h[2],m=h[3],y=Zc.parse(v??""),g=Zc.parse(m??""),b=p==="+"?y.add(g):y.subtract(g);if(b.isNaN())return ba;t=t.replace(yS,b.toString())}return t}var mS=/\(([^()]*)\)/;function m7(e){for(var t=e;t.includes("(");){var r=mS.exec(t),n=Od(r,2),i=n[1];t=t.replace(mS,XC(i))}return t}function g7(e){var t=e.replace(/\s+/g,"");return t=m7(t),t=XC(t),t}function b7(e){try{return g7(e)}catch{return ba}}function jv(e){var t=b7(e.slice(5,-1));return t===ba?"":t}var x7=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],w7=["dx","dy","angle","className","breakAll"];function Bm(){return Bm=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},Bm.apply(this,arguments)}function gS(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 bS(e,t){return A7(e)||_7(e,t)||P7(e,t)||O7()}function O7(){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 P7(e,t){if(e){if(typeof e=="string")return xS(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 xS(e,t)}}function xS(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 _7(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 A7(e){if(Array.isArray(e))return e}var YC=/[ \f\n\r\t\v\u2028\u2029]+/,ZC=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(YC));var a=o.map(function(u){return{word:u,width:zu(u,i).width}}),s=n?0:zu(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},E7=function(t,r,n,i,o){var a=t.maxLines,s=t.children,u=t.style,l=t.breakAll,f=G(a),c=s,d=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.reduce(function(R,F){var k=F.word,L=F.width,z=R[R.length-1];if(z&&(i==null||o||z.width+L+n<Number(i)))z.words.push(k),z.width+=L+n;else{var U={words:[k],width:L};R.push(U)}return R},[])},h=d(r),v=function(D){return D.reduce(function(R,F){return R.width>F.width?R:F})};if(!f)return h;for(var p="…",m=function(D){var R=c.slice(0,D),F=ZC({breakAll:l,style:u,children:R+p}).wordsWithComputedWidth,k=d(F),L=k.length>a||v(k).width>Number(i);return[L,k]},y=0,g=c.length-1,b=0,S;y<=g&&b<=c.length-1;){var x=Math.floor((y+g)/2),w=x-1,O=m(w),P=bS(O,2),_=P[0],A=P[1],C=m(x),j=bS(C,1),I=j[0];if(!_&&!I&&(y=x+1),_&&I&&(g=x-1),!_&&I){S=A;break}b++}return S||h},wS=function(t){var r=le(t)?[]:t.toString().split(YC);return[{words:r}]},j7=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((r||n)&&!Go.isSsr){var u,l,f=ZC({breakAll:a,children:i,style:o});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;u=c,l=d}else return wS(i);return E7({breakAll:a,children:i,maxLines:s,style:o},u,l,r,n)}return wS(i)},SS="#808080",Fo=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,v=t.verticalAnchor,p=v===void 0?"end":v,m=t.fill,y=m===void 0?SS:m,g=gS(t,x7),b=M.useMemo(function(){return j7({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:c,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,c,g.style,g.width]),S=g.dx,x=g.dy,w=g.angle,O=g.className,P=g.breakAll,_=gS(g,w7);if(!at(n)||!at(o))return null;var A=n+(G(S)?S:0),C=o+(G(x)?x:0),j;switch(p){case"start":j=jv("calc(".concat(l,")"));break;case"middle":j=jv("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:j=jv("calc(".concat(b.length-1," * -").concat(s,")"));break}var I=[];if(c){var N=b[0].width,D=g.width;I.push("scale(".concat((G(D)?D/N:1)/N,")"))}return w&&I.push("rotate(".concat(w,", ").concat(A,", ").concat(C,")")),I.length&&(_.transform=I.join(" ")),T.createElement("text",Bm({},oe(_,!0),{x:A,y:C,className:ce("recharts-text",O),textAnchor:h,fill:y.includes("url")?SS:y}),b.map(function(R,F){var k=R.words.join(P?"":" ");return T.createElement("tspan",{x:A,dy:F===0?j:s,key:"".concat(k,"-").concat(F)},k)}))};function Ni(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function C7(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function _b(e){let t,r,n;e.length!==2?(t=Ni,r=(s,u)=>Ni(e(s),u),n=(s,u)=>e(s)-u):(t=e===Ni||e===C7?e:$7,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 $7(){return 0}function JC(e){return e===null?NaN:+e}function*T7(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const k7=_b(Ni),pc=k7.right;_b(JC).center;class OS extends Map{constructor(t,r=R7){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(PS(this,t))}has(t){return super.has(PS(this,t))}set(t,r){return super.set(M7(this,t),r)}delete(t){return super.delete(I7(this,t))}}function PS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function M7({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function I7({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function R7(e){return e!==null&&typeof e=="object"?e.valueOf():e}function N7(e=Ni){if(e===Ni)return e$;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 e$(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const D7=Math.sqrt(50),L7=Math.sqrt(10),F7=Math.sqrt(2);function Pd(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>=D7?10:o>=L7?5:o>=F7?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?Pd(e,t,r*2):[s,u,l]}function zm(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?Pd(t,e,r):Pd(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 Um(e,t,r){return t=+t,e=+e,r=+r,Pd(e,t,r)[2]}function Wm(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Um(t,e,r):Um(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function _S(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function AS(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function t$(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?e$:N7(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)),v=Math.min(n,Math.floor(t+(u-l)*c/u+d));t$(e,t,h,v,i)}const o=e[t];let a=r,s=n;for(vu(e,r,t),i(e[n],o)>0&&vu(e,r,n);a<s;){for(vu(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[r],o)===0?vu(e,r,s):(++s,vu(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function vu(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function B7(e,t,r){if(e=Float64Array.from(T7(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return AS(e);if(t>=1)return _S(e);var n,i=(n-1)*t,o=Math.floor(i),a=_S(t$(e,o).subarray(0,o+1)),s=AS(e.subarray(o+1));return a+(s-a)*(i-o)}}function z7(e,t,r=JC){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 U7(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 Rr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Jn(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 qm=Symbol("implicit");function Ab(){var e=new OS,t=[],r=[],n=qm;function i(o){let a=e.get(o);if(a===void 0){if(n!==qm)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 OS;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 Ab(t,r).unknown(n)},Rr.apply(i,arguments),i}function xl(){var e=Ab().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,v=h?i:n,p=h?n:i;o=(p-v)/Math.max(1,d-u+l*2),s&&(o=Math.floor(o)),v+=(p-v-o*(d-u))*f,a=o*(1-u),s&&(v=Math.round(v),a=Math.round(a));var m=U7(d).map(function(y){return v+o*y});return r(h?m.reverse():m)}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 xl(t(),[n,i]).round(s).paddingInner(u).paddingOuter(l).align(f)},Rr.apply(c(),arguments)}function r$(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return r$(t())},e}function Uu(){return r$(xl.apply(null,arguments).paddingInner(1))}function Eb(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function n$(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function vc(){}var wl=.7,_d=1/wl,Na="\\s*([+-]?\\d+)\\s*",Sl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",W7=/^#([0-9a-f]{3,8})$/,q7=new RegExp(`^rgb\\(${Na},${Na},${Na}\\)$`),H7=new RegExp(`^rgb\\(${yn},${yn},${yn}\\)$`),K7=new RegExp(`^rgba\\(${Na},${Na},${Na},${Sl}\\)$`),V7=new RegExp(`^rgba\\(${yn},${yn},${yn},${Sl}\\)$`),G7=new RegExp(`^hsl\\(${Sl},${yn},${yn}\\)$`),Q7=new RegExp(`^hsla\\(${Sl},${yn},${yn},${Sl}\\)$`),ES={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};Eb(vc,Ol,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jS,formatHex:jS,formatHex8:X7,formatHsl:Y7,formatRgb:CS,toString:CS});function jS(){return this.rgb().formatHex()}function X7(){return this.rgb().formatHex8()}function Y7(){return i$(this).formatHsl()}function CS(){return this.rgb().formatRgb()}function Ol(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=W7.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?$S(t):r===3?new qt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Jc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Jc(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=q7.exec(e))?new qt(t[1],t[2],t[3],1):(t=H7.exec(e))?new qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=K7.exec(e))?Jc(t[1],t[2],t[3],t[4]):(t=V7.exec(e))?Jc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=G7.exec(e))?MS(t[1],t[2]/100,t[3]/100,1):(t=Q7.exec(e))?MS(t[1],t[2]/100,t[3]/100,t[4]):ES.hasOwnProperty(e)?$S(ES[e]):e==="transparent"?new qt(NaN,NaN,NaN,0):null}function $S(e){return new qt(e>>16&255,e>>8&255,e&255,1)}function Jc(e,t,r,n){return n<=0&&(e=t=r=NaN),new qt(e,t,r,n)}function Z7(e){return e instanceof vc||(e=Ol(e)),e?(e=e.rgb(),new qt(e.r,e.g,e.b,e.opacity)):new qt}function Hm(e,t,r,n){return arguments.length===1?Z7(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}Eb(qt,Hm,n$(vc,{brighter(e){return e=e==null?_d:Math.pow(_d,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?wl:Math.pow(wl,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qt(Ao(this.r),Ao(this.g),Ao(this.b),Ad(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:TS,formatHex:TS,formatHex8:J7,formatRgb:kS,toString:kS}));function TS(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}`}function J7(){return`#${lo(this.r)}${lo(this.g)}${lo(this.b)}${lo((isNaN(this.opacity)?1:this.opacity)*255)}`}function kS(){const e=Ad(this.opacity);return`${e===1?"rgb(":"rgba("}${Ao(this.r)}, ${Ao(this.g)}, ${Ao(this.b)}${e===1?")":`, ${e})`}`}function Ad(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ao(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lo(e){return e=Ao(e),(e<16?"0":"")+e.toString(16)}function MS(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xr(e,t,r,n)}function i$(e){if(e instanceof Xr)return new Xr(e.h,e.s,e.l,e.opacity);if(e instanceof vc||(e=Ol(e)),!e)return new Xr;if(e instanceof Xr)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 Xr(a,s,u,e.opacity)}function e9(e,t,r,n){return arguments.length===1?i$(e):new Xr(e,t,r,n??1)}function Xr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Eb(Xr,e9,n$(vc,{brighter(e){return e=e==null?_d:Math.pow(_d,e),new Xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?wl:Math.pow(wl,e),new Xr(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(Cv(e>=240?e-240:e+120,i,n),Cv(e,i,n),Cv(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xr(IS(this.h),ef(this.s),ef(this.l),Ad(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=Ad(this.opacity);return`${e===1?"hsl(":"hsla("}${IS(this.h)}, ${ef(this.s)*100}%, ${ef(this.l)*100}%${e===1?")":`, ${e})`}`}}));function IS(e){return e=(e||0)%360,e<0?e+360:e}function ef(e){return Math.max(0,Math.min(1,e||0))}function Cv(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 jb=e=>()=>e;function t9(e,t){return function(r){return e+r*t}}function r9(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 n9(e){return(e=+e)==1?o$:function(t,r){return r-t?r9(t,r,e):jb(isNaN(t)?r:t)}}function o$(e,t){var r=t-e;return r?t9(e,r):jb(isNaN(e)?t:e)}const RS=function e(t){var r=n9(t);function n(i,o){var a=r((i=Hm(i)).r,(o=Hm(o)).r),s=r(i.g,o.g),u=r(i.b,o.b),l=o$(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 i9(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 o9(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function a9(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]=Xs(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 s9(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ed(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function u9(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]=Xs(e[i],t[i]):n[i]=t[i];return function(o){for(i in r)n[i]=r[i](o);return n}}var Km=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$v=new RegExp(Km.source,"g");function l9(e){return function(){return e}}function c9(e){return function(t){return e(t)+""}}function f9(e,t){var r=Km.lastIndex=$v.lastIndex=0,n,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(n=Km.exec(e))&&(i=$v.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:Ed(n,i)})),r=$v.lastIndex;return r<t.length&&(o=t.slice(r),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?c9(u[0].x):l9(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 Xs(e,t){var r=typeof t,n;return t==null||r==="boolean"?jb(t):(r==="number"?Ed:r==="string"?(n=Ol(t))?(t=n,RS):f9:t instanceof Ol?RS:t instanceof Date?s9:o9(t)?i9:Array.isArray(t)?a9:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?u9:Ed)(e,t)}function Cb(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function d9(e,t){t===void 0&&(t=e,e=Xs);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 h9(e){return function(){return e}}function jd(e){return+e}var NS=[0,1];function Nt(e){return e}function Vm(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:h9(isNaN(t)?NaN:.5)}function p9(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function v9(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=Vm(i,n),o=r(a,o)):(n=Vm(n,i),o=r(o,a)),function(s){return o(n(s))}}function y9(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]=Vm(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(s){var u=pc(e,s,1,n)-1;return o[u](i[u](s))}}function yc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function np(){var e=NS,t=NS,r=Xs,n,i,o,a=Nt,s,u,l;function f(){var d=Math.min(e.length,t.length);return a!==Nt&&(a=p9(e[0],e[d-1])),s=d>2?y9:v9,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),Ed)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,jd),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=Cb,f()},c.clamp=function(d){return arguments.length?(a=d?!0:Nt,f()):a!==Nt},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 np()(Nt,Nt)}function m9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Cd(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 ys(e){return e=Cd(Math.abs(e)),e?e[1]:NaN}function g9(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 b9(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var x9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pl(e){if(!(t=x9.exec(e)))throw new Error("invalid format: "+e);var t;return new Tb({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]})}Pl.prototype=Tb.prototype;function Tb(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+""}Tb.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 w9(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 a$;function S9(e,t){var r=Cd(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(a$=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")+Cd(e,Math.max(0,t+o-1))[0]}function DS(e,t){var r=Cd(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 LS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:m9,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)=>DS(e*100,t),r:DS,s:S9,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function FS(e){return e}var BS=Array.prototype.map,zS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function O9(e){var t=e.grouping===void 0||e.thousands===void 0?FS:g9(BS.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?FS:b9(BS.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=Pl(c);var d=c.fill,h=c.align,v=c.sign,p=c.symbol,m=c.zero,y=c.width,g=c.comma,b=c.precision,S=c.trim,x=c.type;x==="n"?(g=!0,x="g"):LS[x]||(b===void 0&&(b=12),S=!0,x="g"),(m||d==="0"&&h==="=")&&(m=!0,d="0",h="=");var w=p==="$"?r:p==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",O=p==="$"?n:/[%p]/.test(x)?a:"",P=LS[x],_=/[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(C){var j=w,I=O,N,D,R;if(x==="c")I=P(C)+I,C="";else{C=+C;var F=C<0||1/C<0;if(C=isNaN(C)?u:P(Math.abs(C),b),S&&(C=w9(C)),F&&+C==0&&v!=="+"&&(F=!1),j=(F?v==="("?v:s:v==="-"||v==="("?"":v)+j,I=(x==="s"?zS[8+a$/3]:"")+I+(F&&v==="("?")":""),_){for(N=-1,D=C.length;++N<D;)if(R=C.charCodeAt(N),48>R||R>57){I=(R===46?i+C.slice(N+1):C.slice(N))+I,C=C.slice(0,N);break}}}g&&!m&&(C=t(C,1/0));var k=j.length+C.length+I.length,L=k<y?new Array(y-k+1).join(d):"";switch(g&&m&&(C=t(L+C,L.length?y-I.length:1/0),L=""),h){case"<":C=j+C+I+L;break;case"=":C=j+L+C+I;break;case"^":C=L.slice(0,k=L.length>>1)+j+C+I+L.slice(k);break;default:C=L+j+C+I;break}return o(C)}return A.toString=function(){return c+""},A}function f(c,d){var h=l((c=Pl(c),c.type="f",c)),v=Math.max(-8,Math.min(8,Math.floor(ys(d)/3)))*3,p=Math.pow(10,-v),m=zS[8+v/3];return function(y){return h(p*y)+m}}return{format:l,formatPrefix:f}}var tf,kb,s$;P9({thousands:",",grouping:[3],currency:["$",""]});function P9(e){return tf=O9(e),kb=tf.format,s$=tf.formatPrefix,tf}function _9(e){return Math.max(0,-ys(Math.abs(e)))}function A9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ys(t)/3)))*3-ys(Math.abs(e)))}function E9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ys(t)-ys(e))+1}function u$(e,t,r,n){var i=Wm(e,t,r),o;switch(n=Pl(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=A9(i,a))&&(n.precision=o),s$(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=E9(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=_9(i))&&(n.precision=o-(n.type==="%")*2);break}}return kb(n)}function Hi(e){var t=e.domain;return e.ticks=function(r){var n=t();return zm(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return u$(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=Um(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 $d(){var e=$b();return e.copy=function(){return yc(e,$d())},Rr.apply(e,arguments),Hi(e)}function l$(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,jd),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return l$(e).unknown(t)},e=arguments.length?Array.from(e,jd):[0,1],Hi(r)}function c$(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 US(e){return Math.log(e)}function WS(e){return Math.exp(e)}function j9(e){return-Math.log(-e)}function C9(e){return-Math.exp(-e)}function $9(e){return isFinite(e)?+("1e"+e):e<0?0:e}function T9(e){return e===10?$9:e===Math.E?Math.exp:t=>Math.pow(e,t)}function k9(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 qS(e){return(t,r)=>-e(-t,r)}function Mb(e){const t=e(US,WS),r=t.domain;let n=10,i,o;function a(){return i=k9(n),o=T9(n),r()[0]<0?(i=qS(i),o=qS(o),e(j9,C9)):e(US,WS),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),v,p;const m=s==null?10:+s;let y=[];if(!(n%1)&&h-d<m){if(d=Math.floor(d),h=Math.ceil(h),l>0){for(;d<=h;++d)for(v=1;v<n;++v)if(p=d<0?v/o(-d):v*o(d),!(p<l)){if(p>f)break;y.push(p)}}else for(;d<=h;++d)for(v=n-1;v>=1;--v)if(p=d>0?v/o(-d):v*o(d),!(p<l)){if(p>f)break;y.push(p)}y.length*2<m&&(y=zm(l,f,m))}else y=zm(d,h,Math.min(h-d,m)).map(o);return c?y.reverse():y},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Pl(u)).precision==null&&(u.trim=!0),u=kb(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(c$(r(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function f$(){const e=Mb(np()).domain([1,10]);return e.copy=()=>yc(e,f$()).base(e.base()),Rr.apply(e,arguments),e}function HS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function KS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ib(e){var t=1,r=e(HS(t),KS(t));return r.constant=function(n){return arguments.length?e(HS(t=+n),KS(t)):t},Hi(r)}function d$(){var e=Ib(np());return e.copy=function(){return yc(e,d$()).constant(e.constant())},Rr.apply(e,arguments)}function VS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function M9(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function I9(e){return e<0?-e*e:e*e}function Rb(e){var t=e(Nt,Nt),r=1;function n(){return r===1?e(Nt,Nt):r===.5?e(M9,I9):e(VS(r),VS(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Hi(t)}function Nb(){var e=Rb(np());return e.copy=function(){return yc(e,Nb()).exponent(e.exponent())},Rr.apply(e,arguments),e}function R9(){return Nb.apply(null,arguments).exponent(.5)}function GS(e){return Math.sign(e)*e*e}function N9(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function h$(){var e=$b(),t=[0,1],r=!1,n;function i(o){var a=N9(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert(GS(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,jd)).map(GS)),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 h$(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Rr.apply(i,arguments),Hi(i)}function p$(){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]=z7(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?n:t[pc(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(Ni),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 p$().domain(e).range(t).unknown(n)},Rr.apply(o,arguments)}function v$(){var e=0,t=1,r=1,n=[.5],i=[0,1],o;function a(u){return u!=null&&u<=u?i[pc(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 v$().domain([e,t]).range(i).unknown(o)},Rr.apply(Hi(a),arguments)}function y$(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[pc(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 y$().domain(e).range(t).unknown(r)},Rr.apply(i,arguments)}const Tv=new Date,kv=new Date;function st(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=>st(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)=>(Tv.setTime(+o),kv.setTime(+a),e(Tv),e(kv),Math.floor(r(Tv,kv))),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 Td=st(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Td.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?st(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Td);Td.range;const Mn=1e3,Er=Mn*60,In=Er*60,Vn=In*24,Db=Vn*7,QS=Vn*30,Mv=Vn*365,co=st(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getUTCSeconds());co.range;const Lb=st(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mn)},(e,t)=>{e.setTime(+e+t*Er)},(e,t)=>(t-e)/Er,e=>e.getMinutes());Lb.range;const Fb=st(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Er)},(e,t)=>(t-e)/Er,e=>e.getUTCMinutes());Fb.range;const Bb=st(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mn-e.getMinutes()*Er)},(e,t)=>{e.setTime(+e+t*In)},(e,t)=>(t-e)/In,e=>e.getHours());Bb.range;const zb=st(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*In)},(e,t)=>(t-e)/In,e=>e.getUTCHours());zb.range;const mc=st(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Er)/Vn,e=>e.getDate()-1);mc.range;const ip=st(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Vn,e=>e.getUTCDate()-1);ip.range;const m$=st(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Vn,e=>Math.floor(e/Vn));m$.range;function Qo(e){return st(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())*Er)/Db)}const op=Qo(0),kd=Qo(1),D9=Qo(2),L9=Qo(3),ms=Qo(4),F9=Qo(5),B9=Qo(6);op.range;kd.range;D9.range;L9.range;ms.range;F9.range;B9.range;function Xo(e){return st(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)/Db)}const ap=Xo(0),Md=Xo(1),z9=Xo(2),U9=Xo(3),gs=Xo(4),W9=Xo(5),q9=Xo(6);ap.range;Md.range;z9.range;U9.range;gs.range;W9.range;q9.range;const Ub=st(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());Ub.range;const Wb=st(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());Wb.range;const Gn=st(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());Gn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:st(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)});Gn.range;const Qn=st(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());Qn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:st(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)});Qn.range;function g$(e,t,r,n,i,o){const a=[[co,1,Mn],[co,5,5*Mn],[co,15,15*Mn],[co,30,30*Mn],[o,1,Er],[o,5,5*Er],[o,15,15*Er],[o,30,30*Er],[i,1,In],[i,3,3*In],[i,6,6*In],[i,12,12*In],[n,1,Vn],[n,2,2*Vn],[r,1,Db],[t,1,QS],[t,3,3*QS],[e,1,Mv]];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),v=h?h.range(l,+f+1):[];return d?v.reverse():v}function u(l,f,c){const d=Math.abs(f-l)/c,h=_b(([,,m])=>m).right(a,d);if(h===a.length)return e.every(Wm(l/Mv,f/Mv,c));if(h===0)return Td.every(Math.max(Wm(l,f,c),1));const[v,p]=a[d/a[h-1][2]<a[h][2]/d?h-1:h];return v.every(p)}return[s,u]}const[H9,K9]=g$(Qn,Wb,ap,m$,zb,Fb),[V9,G9]=g$(Gn,Ub,op,mc,Bb,Lb);function Iv(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 Rv(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 yu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Q9(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=mu(i),f=gu(i),c=mu(o),d=gu(o),h=mu(a),v=gu(a),p=mu(s),m=gu(s),y=mu(u),g=gu(u),b={a:F,A:k,b:L,B:z,c:null,d:tO,e:tO,f:gG,g:jG,G:$G,H:vG,I:yG,j:mG,L:b$,m:bG,M:xG,p:U,q:W,Q:iO,s:oO,S:wG,u:SG,U:OG,V:PG,w:_G,W:AG,x:null,X:null,y:EG,Y:CG,Z:TG,"%":nO},S={a:H,A:X,b:Z,B:ne,c:null,d:rO,e:rO,f:RG,g:HG,G:VG,H:kG,I:MG,j:IG,L:w$,m:NG,M:DG,p:he,q:pe,Q:iO,s:oO,S:LG,u:FG,U:BG,V:zG,w:UG,W:WG,x:null,X:null,y:qG,Y:KG,Z:GG,"%":nO},x={a:A,A:C,b:j,B:I,c:N,d:JS,e:JS,f:fG,g:ZS,G:YS,H:eO,I:eO,j:sG,L:cG,m:aG,M:uG,p:_,q:oG,Q:hG,s:pG,S:lG,u:eG,U:tG,V:rG,w:J9,W:nG,x:D,X:R,y:ZS,Y:YS,Z:iG,"%":dG};b.x=w(r,b),b.X=w(n,b),b.c=w(t,b),S.x=w(r,S),S.X=w(n,S),S.c=w(t,S);function w(K,re){return function(ie){var q=[],Pe=-1,ve=0,Ge=K.length,Qe,xt,Xt;for(ie instanceof Date||(ie=new Date(+ie));++Pe<Ge;)K.charCodeAt(Pe)===37&&(q.push(K.slice(ve,Pe)),(xt=XS[Qe=K.charAt(++Pe)])!=null?Qe=K.charAt(++Pe):xt=Qe==="e"?" ":"0",(Xt=re[Qe])&&(Qe=Xt(ie,xt)),q.push(Qe),ve=Pe+1);return q.push(K.slice(ve,Pe)),q.join("")}}function O(K,re){return function(ie){var q=yu(1900,void 0,1),Pe=P(q,K,ie+="",0),ve,Ge;if(Pe!=ie.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(re&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(ve=Rv(yu(q.y,0,1)),Ge=ve.getUTCDay(),ve=Ge>4||Ge===0?Md.ceil(ve):Md(ve),ve=ip.offset(ve,(q.V-1)*7),q.y=ve.getUTCFullYear(),q.m=ve.getUTCMonth(),q.d=ve.getUTCDate()+(q.w+6)%7):(ve=Iv(yu(q.y,0,1)),Ge=ve.getDay(),ve=Ge>4||Ge===0?kd.ceil(ve):kd(ve),ve=mc.offset(ve,(q.V-1)*7),q.y=ve.getFullYear(),q.m=ve.getMonth(),q.d=ve.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),Ge="Z"in q?Rv(yu(q.y,0,1)).getUTCDay():Iv(yu(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(Ge+5)%7:q.w+q.U*7-(Ge+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,Rv(q)):Iv(q)}}function P(K,re,ie,q){for(var Pe=0,ve=re.length,Ge=ie.length,Qe,xt;Pe<ve;){if(q>=Ge)return-1;if(Qe=re.charCodeAt(Pe++),Qe===37){if(Qe=re.charAt(Pe++),xt=x[Qe in XS?re.charAt(Pe++):Qe],!xt||(q=xt(K,ie,q))<0)return-1}else if(Qe!=ie.charCodeAt(q++))return-1}return q}function _(K,re,ie){var q=l.exec(re.slice(ie));return q?(K.p=f.get(q[0].toLowerCase()),ie+q[0].length):-1}function A(K,re,ie){var q=h.exec(re.slice(ie));return q?(K.w=v.get(q[0].toLowerCase()),ie+q[0].length):-1}function C(K,re,ie){var q=c.exec(re.slice(ie));return q?(K.w=d.get(q[0].toLowerCase()),ie+q[0].length):-1}function j(K,re,ie){var q=y.exec(re.slice(ie));return q?(K.m=g.get(q[0].toLowerCase()),ie+q[0].length):-1}function I(K,re,ie){var q=p.exec(re.slice(ie));return q?(K.m=m.get(q[0].toLowerCase()),ie+q[0].length):-1}function N(K,re,ie){return P(K,t,re,ie)}function D(K,re,ie){return P(K,r,re,ie)}function R(K,re,ie){return P(K,n,re,ie)}function F(K){return a[K.getDay()]}function k(K){return o[K.getDay()]}function L(K){return u[K.getMonth()]}function z(K){return s[K.getMonth()]}function U(K){return i[+(K.getHours()>=12)]}function W(K){return 1+~~(K.getMonth()/3)}function H(K){return a[K.getUTCDay()]}function X(K){return o[K.getUTCDay()]}function Z(K){return u[K.getUTCMonth()]}function ne(K){return s[K.getUTCMonth()]}function he(K){return i[+(K.getUTCHours()>=12)]}function pe(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var re=w(K+="",b);return re.toString=function(){return K},re},parse:function(K){var re=O(K+="",!1);return re.toString=function(){return K},re},utcFormat:function(K){var re=w(K+="",S);return re.toString=function(){return K},re},utcParse:function(K){var re=O(K+="",!0);return re.toString=function(){return K},re}}}var XS={"-":"",_:" ",0:"0"},ht=/^\s*\d+/,X9=/^%/,Y9=/[\\^$*+?|[\]().{}]/g;function xe(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 Z9(e){return e.replace(Y9,"\\$&")}function mu(e){return new RegExp("^(?:"+e.map(Z9).join("|")+")","i")}function gu(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function J9(e,t,r){var n=ht.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function eG(e,t,r){var n=ht.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tG(e,t,r){var n=ht.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function rG(e,t,r){var n=ht.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function nG(e,t,r){var n=ht.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function YS(e,t,r){var n=ht.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ZS(e,t,r){var n=ht.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function iG(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 oG(e,t,r){var n=ht.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function aG(e,t,r){var n=ht.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function JS(e,t,r){var n=ht.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function sG(e,t,r){var n=ht.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function eO(e,t,r){var n=ht.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function uG(e,t,r){var n=ht.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lG(e,t,r){var n=ht.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function cG(e,t,r){var n=ht.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function fG(e,t,r){var n=ht.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function dG(e,t,r){var n=X9.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hG(e,t,r){var n=ht.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function pG(e,t,r){var n=ht.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function tO(e,t){return xe(e.getDate(),t,2)}function vG(e,t){return xe(e.getHours(),t,2)}function yG(e,t){return xe(e.getHours()%12||12,t,2)}function mG(e,t){return xe(1+mc.count(Gn(e),e),t,3)}function b$(e,t){return xe(e.getMilliseconds(),t,3)}function gG(e,t){return b$(e,t)+"000"}function bG(e,t){return xe(e.getMonth()+1,t,2)}function xG(e,t){return xe(e.getMinutes(),t,2)}function wG(e,t){return xe(e.getSeconds(),t,2)}function SG(e){var t=e.getDay();return t===0?7:t}function OG(e,t){return xe(op.count(Gn(e)-1,e),t,2)}function x$(e){var t=e.getDay();return t>=4||t===0?ms(e):ms.ceil(e)}function PG(e,t){return e=x$(e),xe(ms.count(Gn(e),e)+(Gn(e).getDay()===4),t,2)}function _G(e){return e.getDay()}function AG(e,t){return xe(kd.count(Gn(e)-1,e),t,2)}function EG(e,t){return xe(e.getFullYear()%100,t,2)}function jG(e,t){return e=x$(e),xe(e.getFullYear()%100,t,2)}function CG(e,t){return xe(e.getFullYear()%1e4,t,4)}function $G(e,t){var r=e.getDay();return e=r>=4||r===0?ms(e):ms.ceil(e),xe(e.getFullYear()%1e4,t,4)}function TG(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xe(t/60|0,"0",2)+xe(t%60,"0",2)}function rO(e,t){return xe(e.getUTCDate(),t,2)}function kG(e,t){return xe(e.getUTCHours(),t,2)}function MG(e,t){return xe(e.getUTCHours()%12||12,t,2)}function IG(e,t){return xe(1+ip.count(Qn(e),e),t,3)}function w$(e,t){return xe(e.getUTCMilliseconds(),t,3)}function RG(e,t){return w$(e,t)+"000"}function NG(e,t){return xe(e.getUTCMonth()+1,t,2)}function DG(e,t){return xe(e.getUTCMinutes(),t,2)}function LG(e,t){return xe(e.getUTCSeconds(),t,2)}function FG(e){var t=e.getUTCDay();return t===0?7:t}function BG(e,t){return xe(ap.count(Qn(e)-1,e),t,2)}function S$(e){var t=e.getUTCDay();return t>=4||t===0?gs(e):gs.ceil(e)}function zG(e,t){return e=S$(e),xe(gs.count(Qn(e),e)+(Qn(e).getUTCDay()===4),t,2)}function UG(e){return e.getUTCDay()}function WG(e,t){return xe(Md.count(Qn(e)-1,e),t,2)}function qG(e,t){return xe(e.getUTCFullYear()%100,t,2)}function HG(e,t){return e=S$(e),xe(e.getUTCFullYear()%100,t,2)}function KG(e,t){return xe(e.getUTCFullYear()%1e4,t,4)}function VG(e,t){var r=e.getUTCDay();return e=r>=4||r===0?gs(e):gs.ceil(e),xe(e.getUTCFullYear()%1e4,t,4)}function GG(){return"+0000"}function nO(){return"%"}function iO(e){return+e}function oO(e){return Math.floor(+e/1e3)}var ta,O$,P$;QG({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 QG(e){return ta=Q9(e),O$=ta.format,ta.parse,P$=ta.utcFormat,ta.utcParse,ta}function XG(e){return new Date(e)}function YG(e){return e instanceof Date?+e:+new Date(+e)}function qb(e,t,r,n,i,o,a,s,u,l){var f=$b(),c=f.invert,d=f.domain,h=l(".%L"),v=l(":%S"),p=l("%I:%M"),m=l("%I %p"),y=l("%a %d"),g=l("%b %d"),b=l("%B"),S=l("%Y");function x(w){return(u(w)<w?h:s(w)<w?v:a(w)<w?p:o(w)<w?m:n(w)<w?i(w)<w?y:g:r(w)<w?b:S)(w)}return f.invert=function(w){return new Date(c(w))},f.domain=function(w){return arguments.length?d(Array.from(w,YG)):d().map(XG)},f.ticks=function(w){var O=d();return e(O[0],O[O.length-1],w??10)},f.tickFormat=function(w,O){return O==null?x:l(O)},f.nice=function(w){var O=d();return(!w||typeof w.range!="function")&&(w=t(O[0],O[O.length-1],w??10)),w?d(c$(O,w)):f},f.copy=function(){return yc(f,qb(e,t,r,n,i,o,a,s,u,l))},f}function ZG(){return Rr.apply(qb(V9,G9,Gn,Ub,op,mc,Bb,Lb,co,O$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function JG(){return Rr.apply(qb(H9,K9,Qn,Wb,ap,ip,zb,Fb,co,P$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function sp(){var e=0,t=1,r,n,i,o,a=Nt,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,v;return arguments.length?([h,v]=d,a=c(h,v),l):[a(0),a(1)]}}return l.range=f(Xs),l.rangeRound=f(Cb),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 Ki(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function _$(){var e=Hi(sp()(Nt));return e.copy=function(){return Ki(e,_$())},Jn.apply(e,arguments)}function A$(){var e=Mb(sp()).domain([1,10]);return e.copy=function(){return Ki(e,A$()).base(e.base())},Jn.apply(e,arguments)}function E$(){var e=Ib(sp());return e.copy=function(){return Ki(e,E$()).constant(e.constant())},Jn.apply(e,arguments)}function Hb(){var e=Rb(sp());return e.copy=function(){return Ki(e,Hb()).exponent(e.exponent())},Jn.apply(e,arguments)}function eQ(){return Hb.apply(null,arguments).exponent(.5)}function j$(){var e=[],t=Nt;function r(n){if(n!=null&&!isNaN(n=+n))return t((pc(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(Ni),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)=>B7(e,o/n))},r.copy=function(){return j$(t).domain(e)},Jn.apply(r,arguments)}function up(){var e=0,t=.5,r=1,n=1,i,o,a,s,u,l=Nt,f,c=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+f(p))-o)*(n*p<n*o?s:u),l(c?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,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(p){return arguments.length?(c=!!p,h):c},h.interpolator=function(p){return arguments.length?(l=p,h):l};function v(p){return function(m){var y,g,b;return arguments.length?([y,g,b]=m,l=d9(p,[y,g,b]),h):[l(0),l(.5),l(1)]}}return h.range=v(Xs),h.rangeRound=v(Cb),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return f=p,i=p(e),o=p(t),a=p(r),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),n=o<i?-1:1,h}}function C$(){var e=Hi(up()(Nt));return e.copy=function(){return Ki(e,C$())},Jn.apply(e,arguments)}function $$(){var e=Mb(up()).domain([.1,1,10]);return e.copy=function(){return Ki(e,$$()).base(e.base())},Jn.apply(e,arguments)}function T$(){var e=Ib(up());return e.copy=function(){return Ki(e,T$()).constant(e.constant())},Jn.apply(e,arguments)}function Kb(){var e=Rb(up());return e.copy=function(){return Ki(e,Kb()).exponent(e.exponent())},Jn.apply(e,arguments)}function tQ(){return Kb.apply(null,arguments).exponent(.5)}const aO=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:xl,scaleDiverging:C$,scaleDivergingLog:$$,scaleDivergingPow:Kb,scaleDivergingSqrt:tQ,scaleDivergingSymlog:T$,scaleIdentity:l$,scaleImplicit:qm,scaleLinear:$d,scaleLog:f$,scaleOrdinal:Ab,scalePoint:Uu,scalePow:Nb,scaleQuantile:p$,scaleQuantize:v$,scaleRadial:h$,scaleSequential:_$,scaleSequentialLog:A$,scaleSequentialPow:Hb,scaleSequentialQuantile:j$,scaleSequentialSqrt:eQ,scaleSequentialSymlog:E$,scaleSqrt:R9,scaleSymlog:d$,scaleThreshold:y$,scaleTime:ZG,scaleUtc:JG,tickFormat:u$},Symbol.toStringTag,{value:"Module"}));var rQ=zs;function nQ(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&&!rQ(a):r(a,s)))var s=a,u=o}return u}var lp=nQ;function iQ(e,t){return e>t}var k$=iQ,oQ=lp,aQ=k$,sQ=Qs;function uQ(e){return e&&e.length?oQ(e,sQ,aQ):void 0}var lQ=uQ;const cp=Ae(lQ);function cQ(e,t){return e<t}var M$=cQ,fQ=lp,dQ=M$,hQ=Qs;function pQ(e){return e&&e.length?fQ(e,hQ,dQ):void 0}var vQ=pQ;const fp=Ae(vQ);var yQ=ab,mQ=Sn,gQ=zC,bQ=Qt;function xQ(e,t){var r=bQ(e)?yQ:gQ;return r(e,mQ(t))}var wQ=xQ,SQ=FC,OQ=wQ;function PQ(e,t){return SQ(OQ(e,t),1)}var _Q=PQ;const AQ=Ae(_Q);var EQ=wb;function jQ(e,t){return EQ(e,t)}var CQ=jQ;const gc=Ae(CQ);var Ys=1e9,$Q={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Gb,Be=!0,kr="[DecimalError] ",Eo=kr+"Invalid argument: ",Vb=kr+"Exponent out of range: ",Zs=Math.floor,no=Math.pow,TQ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,nr,lt=1e7,De=7,I$=9007199254740991,Id=Zs(I$/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 Bn(this,new this.constructor(e))};ee.dividedToIntegerBy=ee.idiv=function(e){var t=this,r=t.constructor;return Ce(Bn(t,new r(e),0,1),r.precision)};ee.equals=ee.eq=function(e){return!this.cmp(e)};ee.exponent=function(){return et(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(nr))throw Error(kr+"NaN");if(r.s<1)throw Error(kr+(r.s?"NaN":"-Infinity"));return r.eq(nr)?new n(0):(Be=!1,t=Bn(_l(r,o),_l(e,o),o),Be=!0,Ce(t,i))};ee.minus=ee.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?D$(t,e):R$(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(kr+"NaN");return r.s?(Be=!1,t=Bn(r,e,0,1).times(e),Be=!0,r.minus(t)):Ce(new n(r),i)};ee.naturalExponential=ee.exp=function(){return N$(this)};ee.naturalLogarithm=ee.ln=function(){return _l(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?R$(t,e):D$(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(Eo+e);if(t=et(i)+1,n=i.d.length-1,r=n*De+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};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(kr+"NaN")}for(e=et(s),Be=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=hn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Zs((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(Bn(s,o,a+2)).times(.5),hn(o.d).slice(0,a)===(t=hn(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Ce(o,r+1,0),o.times(o).eq(s)){n=o;break}}else if(t!="9999")break;a+=4}return Be=!0,Ce(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%lt|0,t=s/lt|0;o[i]=(o[i]+t)%lt|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Be?Ce(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:(gn(e,0,Ys),t===void 0?t=n.rounding:gn(t,0,8),Ce(r,e+et(r)+1,t))};ee.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Bo(n,!0):(gn(e,0,Ys),t===void 0?t=i.rounding:gn(t,0,8),n=Ce(new i(n),e+1,t),r=Bo(n,!0,e+1)),r};ee.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Bo(i):(gn(e,0,Ys),t===void 0?t=o.rounding:gn(t,0,8),n=Ce(new o(i),e+et(i)+1,t),r=Bo(n.abs(),!1,e+et(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ee.toInteger=ee.toint=function(){var e=this,t=e.constructor;return Ce(new t(e),et(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(nr);if(s=new u(s),!s.s){if(e.s<1)throw Error(kr+"Infinity");return s}if(s.eq(nr))return s;if(n=u.precision,e.eq(nr))return Ce(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=s.s,a){if((r=f<0?-f:f)<=I$){for(i=new u(nr),t=Math.ceil(n/De+4),Be=!1;r%2&&(i=i.times(s),uO(i.d,t)),r=Zs(r/2),r!==0;)s=s.times(s),uO(s.d,t);return Be=!0,e.s<0?new u(nr).div(i):Ce(i,n)}}else if(o<0)throw Error(kr+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Be=!1,i=e.times(_l(s,n+l)),Be=!0,i=N$(i),i.s=o,i};ee.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=et(i),n=Bo(i,r<=o.toExpNeg||r>=o.toExpPos)):(gn(e,1,Ys),t===void 0?t=o.rounding:gn(t,0,8),i=Ce(new o(i),e,t),r=et(i),n=Bo(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):(gn(e,1,Ys),t===void 0?t=n.rounding:gn(t,0,8)),Ce(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=et(e),r=e.constructor;return Bo(e,t<=r.toExpNeg||t>=r.toExpPos)};function R$(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?Ce(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)/lt|0,u[o]%=lt;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,Be?Ce(t,c):t}function gn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Eo+e)}function hn(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+=si(r)),o+=n;a=e[t],n=a+"",r=De-n.length,r&&(o+=si(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Bn=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%lt|0,a=o/lt|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*lt+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,v,p,m,y,g,b,S,x,w,O,P,_=n.constructor,A=n.s==i.s?1:-1,C=n.d,j=i.d;if(!n.s)return new _(n);if(!i.s)throw Error(kr+"Division by zero");for(u=n.e-i.e,O=j.length,x=C.length,h=new _(A),v=h.d=[],l=0;j[l]==(C[l]||0);)++l;if(j[l]>(C[l]||0)&&--u,o==null?g=o=_.precision:a?g=o+(et(n)-et(i))+1:g=o,g<0)return new _(0);if(g=g/De+2|0,l=0,O==1)for(f=0,j=j[0],g++;(l<x||f)&&g--;l++)b=f*lt+(C[l]||0),v[l]=b/j|0,f=b%j|0;else{for(f=lt/(j[0]+1)|0,f>1&&(j=e(j,f),C=e(C,f),O=j.length,x=C.length),S=O,p=C.slice(0,O),m=p.length;m<O;)p[m++]=0;P=j.slice(),P.unshift(0),w=j[0],j[1]>=lt/2&&++w;do f=0,s=t(j,p,O,m),s<0?(y=p[0],O!=m&&(y=y*lt+(p[1]||0)),f=y/w|0,f>1?(f>=lt&&(f=lt-1),c=e(j,f),d=c.length,m=p.length,s=t(c,p,d,m),s==1&&(f--,r(c,O<d?P:j,d))):(f==0&&(s=f=1),c=j.slice()),d=c.length,d<m&&c.unshift(0),r(p,c,m),s==-1&&(m=p.length,s=t(j,p,O,m),s<1&&(f++,r(p,O<m?P:j,m))),m=p.length):s===0&&(f++,p=[0]),v[l++]=f,s&&p[0]?p[m++]=C[S]||0:(p=[C[S]],m=1);while((S++<x||p[0]!==void 0)&&g--)}return v[0]||v.shift(),h.e=u,Ce(h,a?o+et(h)+1:o)}}();function N$(e,t){var r,n,i,o,a,s,u=0,l=0,f=e.constructor,c=f.precision;if(et(e)>16)throw Error(Vb+et(e));if(!e.s)return new f(nr);for(Be=!1,s=c,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),l+=5;for(n=Math.log(no(2,l))/Math.LN10*2+5|0,s+=n,r=i=o=new f(nr),f.precision=s;;){if(i=Ce(i.times(e),s),r=r.times(++u),a=o.plus(Bn(i,r,s)),hn(a.d).slice(0,s)===hn(o.d).slice(0,s)){for(;l--;)o=Ce(o.times(o),s);return f.precision=c,t==null?(Be=!0,Ce(o,c)):o}o=a}}function et(e){for(var t=e.e*De,r=e.d[0];r>=10;r/=10)t++;return t}function Nv(e,t,r){if(t>e.LN10.sd())throw Be=!0,r&&(e.precision=r),Error(kr+"LN10 precision limit exceeded");return Ce(new e(e.LN10),t)}function si(e){for(var t="";e--;)t+="0";return t}function _l(e,t){var r,n,i,o,a,s,u,l,f,c=1,d=10,h=e,v=h.d,p=h.constructor,m=p.precision;if(h.s<1)throw Error(kr+(h.s?"NaN":"-Infinity"));if(h.eq(nr))return new p(0);if(t==null?(Be=!1,l=m):l=t,h.eq(10))return t==null&&(Be=!0),Nv(p,l);if(l+=d,p.precision=l,r=hn(v),n=r.charAt(0),o=et(h),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=hn(h.d),n=r.charAt(0),c++;o=et(h),n>1?(h=new p("0."+r),o++):h=new p(n+"."+r.slice(1))}else return u=Nv(p,l+2,m).times(o+""),h=_l(new p(n+"."+r.slice(1)),l-d).plus(u),p.precision=m,t==null?(Be=!0,Ce(h,m)):h;for(s=a=h=Bn(h.minus(nr),h.plus(nr),l),f=Ce(h.times(h),l),i=3;;){if(a=Ce(a.times(f),l),u=s.plus(Bn(a,new p(i),l)),hn(u.d).slice(0,l)===hn(s.d).slice(0,l))return s=s.times(2),o!==0&&(s=s.plus(Nv(p,l+2,m).times(o+""))),s=Bn(s,new p(c),l),p.precision=m,t==null?(Be=!0,Ce(s,m)):s;s=u,i+=2}}function sO(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=Zs(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>Id||e.e<-Id))throw Error(Vb+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ce(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=no(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/no(10,a-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return u?(o=et(e),c.length=1,t=t-o-1,c[0]=no(10,(De-t%De)%De),e.e=Zs(-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=no(10,De-n),c[f]=i>0?(l/no(10,a-i)%no(10,i)|0)*o:0),u)for(;;)if(f==0){(c[0]+=o)==lt&&(c[0]=1,++e.e);break}else{if(c[f]+=o,c[f]!=lt)break;c[f--]=0,o=1}for(n=c.length;c[--n]===0;)c.pop();if(Be&&(e.e>Id||e.e<-Id))throw Error(Vb+et(e));return e}function D$(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?Ce(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]=lt-1;--u[o],u[i]+=lt}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?Ce(t,h):t):new d(0)}function Bo(e,t,r){var n,i=et(e),o=hn(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+si(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+si(-i-1)+o,r&&(n=r-a)>0&&(o+=si(n))):i>=a?(o+=si(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+si(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=si(n))),e.s<0?"-"+o:o}function uO(e,t){if(e.length>t)return e.length=t,!0}function L$(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(Eo+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 sO(a,o.toString())}else if(typeof o!="string")throw Error(Eo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,TQ.test(o))sO(a,o);else throw Error(Eo+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=L$,i.config=i.set=kQ,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 kQ(e){if(!e||typeof e!="object")throw Error(kr+"Object expected");var t,r,n,i=["precision",1,Ys,"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(Zs(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Eo+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Eo+r+": "+n);return this}var Gb=L$($Q);nr=new Gb(1);const je=Gb;function MQ(e){return DQ(e)||NQ(e)||RQ(e)||IQ()}function IQ(){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 RQ(e,t){if(e){if(typeof e=="string")return Gm(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 Gm(e,t)}}function NQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function DQ(e){if(Array.isArray(e))return Gm(e)}function Gm(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 LQ=function(t){return t},F$={},B$=function(t){return t===F$},lO=function(t){return function r(){return arguments.length===0||arguments.length===1&&B$(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},FQ=function e(t,r){return t===1?r:lO(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!==F$}).length;return a>=t?r.apply(void 0,i):e(t-a,lO(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 B$(c)?u.shift():c});return r.apply(void 0,MQ(f).concat(u))}))})},dp=function(t){return FQ(t.length,t)},Qm=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},BQ=dp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),zQ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return LQ;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))}},Xm=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},z$=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 UQ(e){var t;return e===0?t=1:t=Math.floor(new je(e).abs().log(10).toNumber())+1,t}function WQ(e,t,r){for(var n=new je(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var qQ=dp(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),HQ=dp(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),KQ=dp(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const hp={rangeStep:WQ,getDigitCount:UQ,interpolateNumber:qQ,uninterpolateNumber:HQ,uninterpolateTruncation:KQ};function Ym(e){return QQ(e)||GQ(e)||U$(e)||VQ()}function VQ(){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 GQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function QQ(e){if(Array.isArray(e))return Zm(e)}function Al(e,t){return ZQ(e)||YQ(e,t)||U$(e,t)||XQ()}function XQ(){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 U$(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 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 YQ(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 ZQ(e){if(Array.isArray(e))return e}function W$(e){var t=Al(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function q$(e,t,r){if(e.lte(0))return new je(0);var n=hp.getDigitCount(e.toNumber()),i=new je(10).pow(n),o=e.div(i),a=n!==1?.05:.1,s=new je(Math.ceil(o.div(a).toNumber())).add(r).mul(a),u=s.mul(i);return t?u:new je(Math.ceil(u))}function JQ(e,t,r){var n=1,i=new je(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new je(10).pow(hp.getDigitCount(e)-1),i=new je(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new je(Math.floor(e)))}else e===0?i=new je(Math.floor((t-1)/2)):r||(i=new je(Math.floor(e)));var a=Math.floor((t-1)/2),s=zQ(BQ(function(u){return i.add(new je(u-a).mul(n)).toNumber()}),Qm);return s(0,t)}function H$(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 je(0),tickMin:new je(0),tickMax:new je(0)};var o=q$(new je(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new je(0):(a=new je(e).add(t).div(2),a=a.sub(new je(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),u=Math.ceil(new je(t).sub(a).div(o).toNumber()),l=s+u+1;return l>r?H$(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 je(s).mul(o)),tickMax:a.add(new je(u).mul(o))})}function eX(e){var t=Al(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=W$([r,n]),u=Al(s,2),l=u[0],f=u[1];if(l===-1/0||f===1/0){var c=f===1/0?[l].concat(Ym(Qm(0,i-1).map(function(){return 1/0}))):[].concat(Ym(Qm(0,i-1).map(function(){return-1/0})),[f]);return r>n?Xm(c):c}if(l===f)return JQ(l,i,o);var d=H$(l,f,a,o),h=d.step,v=d.tickMin,p=d.tickMax,m=hp.rangeStep(v,p.add(new je(.1).mul(h)),h);return r>n?Xm(m):m}function tX(e,t){var r=Al(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=W$([n,i]),s=Al(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=q$(new je(l).sub(u).div(f-1),o,0),d=[].concat(Ym(hp.rangeStep(new je(u),new je(l).sub(new je(.99).mul(c)),c)),[l]);return n>i?Xm(d):d}var rX=z$(eX),nX=z$(tX),iX=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 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 oX(e,t){return lX(e)||uX(e,t)||sX(e,t)||aX()}function aX(){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 sX(e,t){if(e){if(typeof e=="string")return cO(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 cO(e,t)}}function cO(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 uX(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 lX(e){if(Array.isArray(e))return e}function cX(e,t){if(e==null)return{};var r=fX(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 fX(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 dX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hX(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,G$(n.key),n)}}function pX(e,t,r){return t&&hX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vX(e,t,r){return t=Nd(t),yX(e,K$()?Reflect.construct(t,r||[],Nd(e).constructor):t.apply(e,r))}function yX(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 mX(e)}function mX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K$=function(){return!!e})()}function Nd(e){return Nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nd(e)}function gX(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&&Jm(e,t)}function Jm(e,t){return Jm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jm(e,t)}function V$(e,t,r){return t=G$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G$(e){var t=bX(e,"string");return bs(t)=="symbol"?t:t+""}function bX(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 bc=function(e){function t(){return dX(this,t),vX(this,t,arguments)}return gX(t,e),pX(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=cX(n,iX),h=oe(d,!1);this.props.direction==="x"&&f.type!=="number"&&Ct(!1);var v=u.map(function(p){var m=l(p,s),y=m.x,g=m.y,b=m.value,S=m.errorVal;if(!S)return null;var x=[],w,O;if(Array.isArray(S)){var P=oX(S,2);w=P[0],O=P[1]}else w=O=S;if(o==="vertical"){var _=f.scale,A=g+i,C=A+a,j=A-a,I=_(b-w),N=_(b+O);x.push({x1:N,y1:C,x2:N,y2:j}),x.push({x1:I,y1:A,x2:N,y2:A}),x.push({x1:I,y1:C,x2:I,y2:j})}else if(o==="horizontal"){var D=c.scale,R=y+i,F=R-a,k=R+a,L=D(b-w),z=D(b+O);x.push({x1:F,y1:z,x2:k,y2:z}),x.push({x1:R,y1:L,x2:R,y2:z}),x.push({x1:F,y1:L,x2:k,y2:L})}return T.createElement(be,Rd({className:"recharts-errorBar",key:"bar-".concat(x.map(function(U){return"".concat(U.x1,"-").concat(U.x2,"-").concat(U.y1,"-").concat(U.y2)}))},h),x.map(function(U){return T.createElement("line",Rd({},U,{key:"line-".concat(U.x1,"-").concat(U.x2,"-").concat(U.y1,"-").concat(U.y2)}))}))});return T.createElement(be,{className:"recharts-errorBars"},v)}}])}(T.Component);V$(bc,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});V$(bc,"displayName","ErrorBar");function El(e){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(e)}function fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){xX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xX(e,t,r){return t=wX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wX(e){var t=SX(e,"string");return El(t)=="symbol"?t:t+""}function SX(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)}var Q$=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=er(r,Ra);if(!a)return null;var s=Ra.defaultProps,u=s!==void 0?Qi(Qi({},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,v=h.sectors||h.data||[];return f.concat(v.map(function(p){return{type:a.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):l=(n||[]).map(function(f){var c=f.item,d=c.type.defaultProps,h=d!==void 0?Qi(Qi({},d),c.props):{},v=h.dataKey,p=h.name,m=h.legendType,y=h.hide;return{inactive:y,dataKey:v,type:u.iconType||m||"square",color:Qb(c),value:p||v,payload:h}}),Qi(Qi(Qi({},u),Ra.getWithHeight(a,i)),{},{payload:l,item:a})};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)}function dO(e){return AX(e)||_X(e)||PX(e)||OX()}function OX(){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 PX(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 _X(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AX(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 hO(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 Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(r),!0).forEach(function(n){Da(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Da(e,t,r){return t=EX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EX(e){var t=jX(e,"string");return jl(t)=="symbol"?t:t+""}function jX(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 it(e,t,r){return le(e)||le(t)?r:at(t)?ar(e,t,r):ue(t)?t(e):r}function Wu(e,t,r,n){var i=AQ(e,function(s){return it(s,t)});if(r==="number"){var o=i.filter(function(s){return G(s)||parseFloat(s)});return o.length?[fp(o),cp(o)]:[1/0,-1/0]}var a=n?i.filter(function(s){return!le(s)}):i;return a.map(function(s){return at(s)||s instanceof Date?s:""})}var CX=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(It(c-f)!==It(d-c)){var v=[];if(It(d-c)===It(u[1]-u[0])){h=d;var p=c+u[1]-u[0];v[0]=Math.min(p,(p+f)/2),v[1]=Math.max(p,(p+f)/2)}else{h=f;var m=d+u[1]-u[0];v[0]=Math.min(c,(m+c)/2),v[1]=Math.max(c,(m+c)/2)}var y=[Math.min(c,(h+c)/2),Math.max(c,(h+c)/2)];if(t>y[0]&&t<=y[1]||t>=v[0]&&t<=v[1]){a=i[l].index;break}}else{var g=Math.min(f,d),b=Math.max(f,d);if(t>(g+c)/2&&t<=(b+c)/2){a=i[l].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){a=n[S].index;break}return a},Qb=function(t){var r,n=t,i=n.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ke(Ke({},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},$X=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 v=f[c[d]],p=v.items,m=v.cateAxisId,y=p.filter(function(O){return Fn(O.type).indexOf("Bar")>=0});if(y&&y.length){var g=y[0].type.defaultProps,b=g!==void 0?Ke(Ke({},g),y[0].props):y[0].props,S=b.barSize,x=b[m];a[x]||(a[x]=[]);var w=le(S)?r:S;a[x].push({item:y[0],stackList:y.slice(1),barSize:le(w)?void 0:Rt(w,n,0)})}}return a},TX=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=Rt(r,i,0,!0),f,c=[];if(a[0].barSize===+a[0].barSize){var d=!1,h=i/u,v=a.reduce(function(S,x){return S+x.barSize||0},0);v+=(u-1)*l,v>=i&&(v-=(u-1)*l,l=0),v>=i&&h>0&&(d=!0,h*=.9,v=u*h);var p=(i-v)/2>>0,m={offset:p-l,size:0};f=a.reduce(function(S,x){var w={item:x.item,position:{offset:m.offset+m.size+l,size:d?h:x.barSize}},O=[].concat(dO(S),[w]);return m=O[O.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(P){O.push({item:P,position:m})}),O},c)}else{var y=Rt(n,i,0,!0);i-2*y-(u-1)*l<=0&&(l=0);var g=(i-2*y-(u-1)*l)/u;g>1&&(g>>=0);var b=s===+s?Math.min(g,s):g;f=a.reduce(function(S,x,w){var O=[].concat(dO(S),[{item:x.item,position:{offset:y+(g+l)*w+(g-b)/2,size:b}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(P){O.push({item:P,position:O[O.length-1].position})}),O},c)}return f},kX=function(t,r,n,i){var o=n.children,a=n.width,s=n.margin,u=a-(s.left||0)-(s.right||0),l=Q$({children:o,legendWidth:u});if(l){var f=i||{},c=f.width,d=f.height,h=l.align,v=l.verticalAlign,p=l.layout;if((p==="vertical"||p==="horizontal"&&v==="middle")&&h!=="center"&&G(t[h]))return Ke(Ke({},t),{},Da({},h,t[h]+(c||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&v!=="middle"&&G(t[v]))return Ke(Ke({},t),{},Da({},v,t[v]+(d||0)))}return t},MX=function(t,r,n){return le(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},X$=function(t,r,n,i,o){var a=r.props.children,s=sr(a,bc).filter(function(l){return MX(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=it(f,n);if(le(c))return l;var d=Array.isArray(c)?[fp(c),cp(c)]:[c,c],h=u.reduce(function(v,p){var m=it(f,p,0),y=d[0]-Math.abs(Array.isArray(m)?m[0]:m),g=d[1]+Math.abs(Array.isArray(m)?m[1]:m);return[Math.min(y,v[0]),Math.max(g,v[1])]},[1/0,-1/0]);return[Math.min(h[0],l[0]),Math.max(h[1],l[1])]},[1/0,-1/0])}return null},IX=function(t,r,n,i,o){var a=r.map(function(s){return X$(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},Y$=function(t,r,n,i,o){var a=r.map(function(u){var l=u.props.dataKey;return n==="number"&&l&&X$(t,u,l,i)||Wu(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},[])},Z$=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},J$=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},Rn=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?It(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!dc(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}})},Dv=new WeakMap,rf=function(t,r){if(typeof r!="function")return t;Dv.has(t)||Dv.set(t,new WeakMap);var n=Dv.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},eT=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:xl(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:$d(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Uu(),realScaleType:"point"}:o==="category"?{scale:xl(),realScaleType:"band"}:{scale:$d(),realScaleType:"linear"};if(Do(i)){var u="scale".concat(Qh(i));return{scale:(aO[u]||Uu)(),realScaleType:aO[u]?u:"point"}}return ue(i)?{scale:i}:{scale:Uu(),realScaleType:"point"}},pO=1e-4,tT=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])-pO,a=Math.max(i[0],i[1])+pO,s=t(r[0]),u=t(r[n-1]);(s<o||s>a||u<o||u>a)&&t.domain([r[0],r[n-1]])}},RX=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},NX=function(t,r){if(!r||r.length!==2||!G(r[0])||!G(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(!G(t[0])||t[0]<n)&&(o[0]=n),(!G(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<n&&(o[1]=n),o},DX=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=dc(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])}},LX=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=dc(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)}},FX={sign:DX,expand:oU,none:fs,silhouette:aU,wiggle:sU,positive:LX},BX=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),o=FX[n],a=iU().keys(i).value(function(s,u){return+it(s,u,0)}).order(_m).offset(o);return a(t)},zX=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,v=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Ke(Ke({},d.type.defaultProps),d.props):d.props,p=v.stackId,m=v.hide;if(m)return c;var y=v[n],g=c[y]||{hasStack:!1,stackGroups:{}};if(at(p)){var b=g.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(d),g.hasStack=!0,g.stackGroups[p]=b}else g.stackGroups[Ks("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ke(Ke({},c),{},Da({},y,g))},u),f={};return Object.keys(l).reduce(function(c,d){var h=l[d];if(h.hasStack){var v={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,m){var y=h.stackGroups[m];return Ke(Ke({},p),{},Da({},m,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:BX(t,y.items,o)}))},v)}return Ke(Ke({},c),{},Da({},d,h))},f)},rT=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=rX(l,o,s);return t.domain([fp(f),cp(f)]),{niceTicks:f}}if(o&&i==="number"){var c=t.domain(),d=nX(c,o,s);return{niceTicks:d}}return null};function vO(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=ld(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var u=it(i,le(a)?t.dataKey:a);return le(u)?null:t.scale(u)}var yO=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=it(a,r.dataKey,r.domain[s]);return le(u)?null:r.scale(u)-o/2+i},UX=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]},WX=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ke(Ke({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(at(o)){var a=r[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},qX=function(t){return t.reduce(function(r,n){return[fp(n.concat([r[0]]).filter(G)),cp(n.concat([r[1]]).filter(G))]},[1/0,-1/0])},nT=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=qX(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})},mO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tg=function(t,r,n){if(ue(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(G(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(mO.test(t[0])){var o=+mO.exec(t[0])[1];i[0]=r[0]-o}else ue(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(G(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(gO.test(t[1])){var a=+gO.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},Dd=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=Ob(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},bO=function(t,r,n){return!t||!t.length||gc(t,ar(n,"type.defaultProps.domain"))?r:t},iT=function(t,r){var n=t.type.defaultProps?Ke(Ke({},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 Ke(Ke({},oe(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:Qb(t),value:it(r,i),type:u,payload:r,chartType:l,hide:f})};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 xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function En(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){oT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oT(e,t,r){return t=HX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HX(e){var t=KX(e,"string");return Cl(t)=="symbol"?t:t+""}function KX(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 VX(e,t){return YX(e)||XX(e,t)||QX(e,t)||GX()}function GX(){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 QX(e,t){if(e){if(typeof e=="string")return wO(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 wO(e,t)}}function wO(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 XX(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 YX(e){if(Array.isArray(e))return e}var Ld=Math.PI/180,ZX=function(t){return t*180/Math.PI},Me=function(t,r,n,i){return{x:t+Math.cos(-Ld*i)*n,y:r+Math.sin(-Ld*i)*n}},aT=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},JX=function(t,r,n,i,o){var a=t.width,s=t.height,u=t.startAngle,l=t.endAngle,f=Rt(t.cx,a,a/2),c=Rt(t.cy,s,s/2),d=aT(a,s,n),h=Rt(t.innerRadius,d,0),v=Rt(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(m,y){var g=r[y],b=g.domain,S=g.reversed,x;if(le(g.range))i==="angleAxis"?x=[u,l]:i==="radiusAxis"&&(x=[h,v]),S&&(x=[x[1],x[0]]);else{x=g.range;var w=x,O=VX(w,2);u=O[0],l=O[1]}var P=eT(g,o),_=P.realScaleType,A=P.scale;A.domain(b).range(x),tT(A);var C=rT(A,En(En({},g),{},{realScaleType:_})),j=En(En(En({},g),C),{},{range:x,radius:v,realScaleType:_,scale:A,cx:f,cy:c,innerRadius:h,outerRadius:v,startAngle:u,endAngle:l});return En(En({},m),{},oT({},y,j))},{})},eY=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))},tY=function(t,r){var n=t.x,i=t.y,o=r.cx,a=r.cy,s=eY({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:ZX(l),angleInRadian:l}},rY=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}},nY=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},SO=function(t,r){var n=t.x,i=t.y,o=tY({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=rY(r),c=f.startAngle,d=f.endAngle,h=s,v;if(c<=d){for(;h>d;)h-=360;for(;h<c;)h+=360;v=h>=c&&h<=d}else{for(;h>c;)h-=360;for(;h<d;)h+=360;v=h>=d&&h<=c}return v?En(En({},r),{},{radius:a,angle:nY(h,r)}):null},sT=function(t){return!M.isValidElement(t)&&!ue(t)&&typeof t!="boolean"?t.className:""};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)}var iY=["offset"];function oY(e){return lY(e)||uY(e)||sY(e)||aY()}function aY(){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 sY(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 uY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lY(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}function cY(e,t){if(e==null)return{};var r=fY(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 fY(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 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 rt(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){dY(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 dY(e,t,r){return t=hY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hY(e){var t=pY(e,"string");return $l(t)=="symbol"?t:t+""}function pY(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)}function Tl(){return Tl=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},Tl.apply(this,arguments)}var vY=function(t){var r=t.value,n=t.formatter,i=le(t.children)?r:t.children;return ue(n)?n(i):i},yY=function(t,r){var n=It(r-t),i=Math.min(Math.abs(r-t),360);return n*i},mY=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,v=u.endAngle,p=u.clockWise,m=(c+d)/2,y=yY(h,v),g=y>=0?1:-1,b,S;i==="insideStart"?(b=h+g*a,S=p):i==="insideEnd"?(b=v-g*a,S=!p):i==="end"&&(b=v+g*a,S=p),S=y<=0?S:!S;var x=Me(l,f,m,b),w=Me(l,f,m,b+(S?1:-1)*359),O="M".concat(x.x,",").concat(x.y,`
    A`).concat(m,",").concat(m,",0,1,").concat(S?0:1,`,
    `).concat(w.x,",").concat(w.y),P=le(t.id)?Ks("recharts-radial-line-"):t.id;return T.createElement("text",Tl({},n,{dominantBaseline:"central",className:ce("recharts-radial-bar-label",s)}),T.createElement("defs",null,T.createElement("path",{id:P,d:O})),T.createElement("textPath",{xlinkHref:"#".concat(P)},r))},gY=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),v=h.x,p=h.y;return{x:v,y:p,textAnchor:v>=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 m=(u+l)/2,y=Me(a,s,m,d),g=y.x,b=y.y;return{x:g,y:b,textAnchor:"middle",verticalAnchor:"middle"}},bY=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",v=c>0?"start":"end",p=l>=0?1:-1,m=p*i,y=p>0?"end":"start",g=p>0?"start":"end";if(o==="top"){var b={x:s+l/2,y:u-c*i,textAnchor:"middle",verticalAnchor:h};return rt(rt({},b),n?{height:Math.max(u-n.y,0),width:l}:{})}if(o==="bottom"){var S={x:s+l/2,y:u+f+d,textAnchor:"middle",verticalAnchor:v};return rt(rt({},S),n?{height:Math.max(n.y+n.height-(u+f),0),width:l}:{})}if(o==="left"){var x={x:s-m,y:u+f/2,textAnchor:y,verticalAnchor:"middle"};return rt(rt({},x),n?{width:Math.max(x.x-n.x,0),height:f}:{})}if(o==="right"){var w={x:s+l+m,y:u+f/2,textAnchor:g,verticalAnchor:"middle"};return rt(rt({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var O=n?{width:l,height:f}:{};return o==="insideLeft"?rt({x:s+m,y:u+f/2,textAnchor:g,verticalAnchor:"middle"},O):o==="insideRight"?rt({x:s+l-m,y:u+f/2,textAnchor:y,verticalAnchor:"middle"},O):o==="insideTop"?rt({x:s+l/2,y:u+d,textAnchor:"middle",verticalAnchor:v},O):o==="insideBottom"?rt({x:s+l/2,y:u+f-d,textAnchor:"middle",verticalAnchor:h},O):o==="insideTopLeft"?rt({x:s+m,y:u+d,textAnchor:g,verticalAnchor:v},O):o==="insideTopRight"?rt({x:s+l-m,y:u+d,textAnchor:y,verticalAnchor:v},O):o==="insideBottomLeft"?rt({x:s+m,y:u+f-d,textAnchor:g,verticalAnchor:h},O):o==="insideBottomRight"?rt({x:s+l-m,y:u+f-d,textAnchor:y,verticalAnchor:h},O):Us(o)&&(G(o.x)||uo(o.x))&&(G(o.y)||uo(o.y))?rt({x:s+Rt(o.x,l),y:u+Rt(o.y,f),textAnchor:"end",verticalAnchor:"end"},O):rt({x:s+l/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},xY=function(t){return"cx"in t&&G(t.cx)};function ft(e){var t=e.offset,r=t===void 0?5:t,n=cY(e,iY),i=rt({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)&&!M.isValidElement(l)&&!ue(l))return null;if(M.isValidElement(l))return M.cloneElement(l,i);var h;if(ue(l)){if(h=M.createElement(l,i),M.isValidElement(h))return h}else h=vY(i);var v=xY(o),p=oe(i,!0);if(v&&(a==="insideStart"||a==="insideEnd"||a==="end"))return mY(i,h,p);var m=v?gY(i):bY(i);return T.createElement(Fo,Tl({className:ce("recharts-label",c)},p,m,{breakAll:d}),h)}ft.displayName="Label";var uT=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,v=t.left,p=t.width,m=t.height,y=t.clockWise,g=t.labelViewBox;if(g)return g;if(G(p)&&G(m)){if(G(c)&&G(d))return{x:c,y:d,width:p,height:m};if(G(h)&&G(v))return{x:h,y:v,width:p,height:m}}return G(c)&&G(d)?{x:c,y:d,width:0,height:0}:G(r)&&G(n)?{cx:r,cy:n,startAngle:o||i||0,endAngle:a||i||0,innerRadius:l||0,outerRadius:f||u||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},wY=function(t,r){return t?t===!0?T.createElement(ft,{key:"label-implicit",viewBox:r}):at(t)?T.createElement(ft,{key:"label-implicit",viewBox:r,value:t}):M.isValidElement(t)?t.type===ft?M.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(ft,{key:"label-implicit",content:t,viewBox:r}):ue(t)?T.createElement(ft,{key:"label-implicit",content:t,viewBox:r}):Us(t)?T.createElement(ft,Tl({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=uT(t),a=sr(i,ft).map(function(u,l){return M.cloneElement(u,{viewBox:r||o,key:"label-".concat(l)})});if(!n)return a;var s=wY(t.label,r||o);return[s].concat(oY(a))};ft.parseViewBox=uT;ft.renderCallByParent=SY;function OY(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var PY=OY;const _Y=Ae(PY);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)}var AY=["valueAccessor"],EY=["data","dataKey","clockWise","id","textBreakAll"];function jY(e){return kY(e)||TY(e)||$Y(e)||CY()}function CY(){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 $Y(e,t){if(e){if(typeof e=="string")return ng(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 ng(e,t)}}function TY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kY(e){if(Array.isArray(e))return ng(e)}function ng(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 Fd(){return Fd=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},Fd.apply(this,arguments)}function PO(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 _O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(r),!0).forEach(function(n){MY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MY(e,t,r){return t=IY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IY(e){var t=RY(e,"string");return kl(t)=="symbol"?t:t+""}function RY(e,t){if(kl(e)!="object"||!e)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)}function AO(e,t){if(e==null)return{};var r=NY(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 NY(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 DY=function(t){return Array.isArray(t.value)?_Y(t.value):t.value};function zn(e){var t=e.valueAccessor,r=t===void 0?DY:t,n=AO(e,AY),i=n.data,o=n.dataKey,a=n.clockWise,s=n.id,u=n.textBreakAll,l=AO(n,EY);return!i||!i.length?null:T.createElement(be,{className:"recharts-label-list"},i.map(function(f,c){var d=le(o)?r(f,c):it(f&&f.payload,o),h=le(s)?{}:{id:"".concat(s,"-").concat(c)};return T.createElement(ft,Fd({},oe(f,!0),l,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:ft.parseViewBox(le(a)?f:_O(_O({},f),{},{clockWise:a})),key:"label-".concat(c),index:c}))}))}zn.displayName="LabelList";function LY(e,t){return e?e===!0?T.createElement(zn,{key:"labelList-implicit",data:t}):T.isValidElement(e)||ue(e)?T.createElement(zn,{key:"labelList-implicit",data:t,content:e}):Us(e)?T.createElement(zn,Fd({data:t},e,{key:"labelList-implicit"})):null:null}function FY(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=sr(n,zn).map(function(a,s){return M.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var o=LY(e.label,t);return[o].concat(jY(i))}zn.renderCallByParent=FY;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 ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ig.apply(this,arguments)}function EO(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 jO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EO(Object(r),!0).forEach(function(n){BY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BY(e,t,r){return t=zY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zY(e){var t=UY(e,"string");return Ml(t)=="symbol"?t:t+""}function UY(e,t){if(Ml(e)!="object"||!e)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)}var WY=function(t,r){var n=It(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},nf=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)/Ld,d=l?o:o+a*c,h=Me(r,n,f,d),v=Me(r,n,i,d),p=l?o-a*c:o,m=Me(r,n,f*Math.cos(c*Ld),p);return{center:h,circleTangency:v,lineTangency:m,theta:c}},lT=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,u=WY(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),v=Me(r,n,i,l);d+="L ".concat(v.x,",").concat(v.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},qY=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=It(f-l),d=nf({cx:r,cy:n,radius:o,angle:l,sign:c,cornerRadius:a,cornerIsExternal:u}),h=d.circleTangency,v=d.lineTangency,p=d.theta,m=nf({cx:r,cy:n,radius:o,angle:f,sign:-c,cornerRadius:a,cornerIsExternal:u}),y=m.circleTangency,g=m.lineTangency,b=m.theta,S=u?Math.abs(l-f):Math.abs(l-f)-p-b;if(S<0)return s?"M ".concat(v.x,",").concat(v.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
      `):lT({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:l,endAngle:f});var x="M ".concat(v.x,",").concat(v.y,`
    A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(h.x,",").concat(h.y,`
    A`).concat(o,",").concat(o,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(y.x,",").concat(y.y,`
    A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(g.x,",").concat(g.y,`
  `);if(i>0){var w=nf({cx:r,cy:n,radius:i,angle:l,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),O=w.circleTangency,P=w.lineTangency,_=w.theta,A=nf({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),C=A.circleTangency,j=A.lineTangency,I=A.theta,N=u?Math.abs(l-f):Math.abs(l-f)-_-I;if(N<0&&a===0)return"".concat(x,"L").concat(r,",").concat(n,"Z");x+="L".concat(j.x,",").concat(j.y,`
      A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(C.x,",").concat(C.y,`
      A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(c>0),",").concat(O.x,",").concat(O.y,`
      A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(P.x,",").concat(P.y,"Z")}else x+="L".concat(r,",").concat(n,"Z");return x},HY={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},cT=function(t){var r=jO(jO({},HY),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=ce("recharts-sector",d),v=a-o,p=Rt(s,v,0,!0),m;return p>0&&Math.abs(f-c)<360?m=qY({cx:n,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(p,v/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:f,endAngle:c}):m=lT({cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:f,endAngle:c}),T.createElement("path",ig({},oe(r,!0),{className:h,d:m,role:"img"}))};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 og(){return og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},og.apply(this,arguments)}function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){KY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KY(e,t,r){return t=VY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VY(e){var t=GY(e,"string");return Il(t)=="symbol"?t:t+""}function GY(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 TO={curveBasisClosed:V4,curveBasisOpen:G4,curveBasis:K4,curveBumpX:k4,curveBumpY:M4,curveLinearClosed:Q4,curveLinear:Yh,curveMonotoneX:X4,curveMonotoneY:Y4,curveNatural:Z4,curveStep:J4,curveStepAfter:tU,curveStepBefore:eU},of=function(t){return t.x===+t.x&&t.y===+t.y},bu=function(t){return t.x},xu=function(t){return t.y},QY=function(t,r){if(ue(t))return t;var n="curve".concat(Qh(t));return(n==="curveMonotone"||n==="curveBump")&&r?TO["".concat(n).concat(r==="vertical"?"Y":"X")]:TO[n]||Yh},XY=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=QY(n,s),c=l?o.filter(function(p){return of(p)}):o,d;if(Array.isArray(a)){var h=l?a.filter(function(p){return of(p)}):a,v=c.map(function(p,m){return $O($O({},p),{},{base:h[m]})});return s==="vertical"?d=Gc().y(xu).x1(bu).x0(function(p){return p.base.x}):d=Gc().x(bu).y1(xu).y0(function(p){return p.base.y}),d.defined(of).curve(f),d(v)}return s==="vertical"&&G(a)?d=Gc().y(xu).x1(bu).x0(a):G(a)?d=Gc().x(bu).y1(xu).y0(a):d=iC().x(bu).y(xu),d.defined(of).curve(f),d(c)},Bd=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?XY(t):i;return M.createElement("path",og({},oe(t,!1),cd(t),{className:ce("recharts-curve",r),d:a,ref:o}))},fT={exports:{}},YY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ZY=YY,JY=ZY;function dT(){}function hT(){}hT.resetWarningCache=dT;var eZ=function(){function e(n,i,o,a,s,u){if(u!==JY){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:hT,resetWarningCache:dT};return r.PropTypes=r,r};fT.exports=eZ();var tZ=fT.exports;const Se=Ae(tZ);var rZ=Object.getOwnPropertyNames,nZ=Object.getOwnPropertySymbols,iZ=Object.prototype.hasOwnProperty;function kO(e,t){return function(n,i,o){return e(n,i,o)&&t(n,i,o)}}function af(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 MO(e){return rZ(e).concat(nZ(e))}var oZ=Object.hasOwn||function(e,t){return iZ.call(e,t)};function Yo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var aZ="__v",sZ="__o",uZ="_owner",IO=Object.getOwnPropertyDescriptor,RO=Object.keys;function lZ(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 cZ(e,t){return Yo(e.getTime(),t.getTime())}function fZ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function dZ(e,t){return e===t}function NO(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 hZ=Yo;function pZ(e,t,r){var n=RO(e),i=n.length;if(RO(t).length!==i)return!1;for(;i-- >0;)if(!pT(e,t,r,n[i]))return!1;return!0}function wu(e,t,r){var n=MO(e),i=n.length;if(MO(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=n[i],!pT(e,t,r,o)||(a=IO(e,o),s=IO(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function vZ(e,t){return Yo(e.valueOf(),t.valueOf())}function yZ(e,t){return e.source===t.source&&e.flags===t.flags}function DO(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 mZ(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 gZ(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 pT(e,t,r,n){return(n===uZ||n===sZ||n===aZ)&&(e.$$typeof||t.$$typeof)?!0:oZ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var bZ="[object Arguments]",xZ="[object Boolean]",wZ="[object Date]",SZ="[object Error]",OZ="[object Map]",PZ="[object Number]",_Z="[object Object]",AZ="[object RegExp]",EZ="[object Set]",jZ="[object String]",CZ="[object URL]",$Z=Array.isArray,LO=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,FO=Object.assign,TZ=Object.prototype.toString.call.bind(Object.prototype.toString);function kZ(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(v,p,m){if(v===p)return!0;if(v==null||p==null)return!1;var y=typeof v;if(y!==typeof p)return!1;if(y!=="object")return y==="number"?a(v,p,m):y==="function"?i(v,p,m):!1;var g=v.constructor;if(g!==p.constructor)return!1;if(g===Object)return s(v,p,m);if($Z(v))return t(v,p,m);if(LO!=null&&LO(v))return c(v,p,m);if(g===Date)return r(v,p,m);if(g===RegExp)return l(v,p,m);if(g===Map)return o(v,p,m);if(g===Set)return f(v,p,m);var b=TZ(v);return b===wZ?r(v,p,m):b===AZ?l(v,p,m):b===OZ?o(v,p,m):b===EZ?f(v,p,m):b===_Z?typeof v.then!="function"&&typeof p.then!="function"&&s(v,p,m):b===CZ?d(v,p,m):b===SZ?n(v,p,m):b===bZ?s(v,p,m):b===xZ||b===PZ||b===jZ?u(v,p,m):!1}}function MZ(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?wu:lZ,areDatesEqual:cZ,areErrorsEqual:fZ,areFunctionsEqual:dZ,areMapsEqual:n?kO(NO,wu):NO,areNumbersEqual:hZ,areObjectsEqual:n?wu:pZ,arePrimitiveWrappersEqual:vZ,areRegExpsEqual:yZ,areSetsEqual:n?kO(DO,wu):DO,areTypedArraysEqual:n?wu:mZ,areUrlsEqual:gZ};if(r&&(i=FO({},i,r(i))),t){var o=af(i.areArraysEqual),a=af(i.areMapsEqual),s=af(i.areObjectsEqual),u=af(i.areSetsEqual);i=FO({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:u})}return i}function IZ(e){return function(t,r,n,i,o,a,s){return e(t,r,s)}}function RZ(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 NZ=Vi();Vi({strict:!0});Vi({circular:!0});Vi({circular:!0,strict:!0});Vi({createInternalComparator:function(){return Yo}});Vi({strict:!0,createInternalComparator:function(){return Yo}});Vi({circular:!0,createInternalComparator:function(){return Yo}});Vi({circular:!0,createInternalComparator:function(){return Yo},strict:!0});function Vi(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=MZ(e),u=kZ(s),l=n?n(u):IZ(u);return RZ({circular:r,comparator:u,createState:i,equals:l,strict:a})}function DZ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function BO(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):DZ(i)};requestAnimationFrame(n)}function ag(e){"@babel/helpers - typeof";return ag=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},ag(e)}function LZ(e){return UZ(e)||zZ(e)||BZ(e)||FZ()}function FZ(){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 BZ(e,t){if(e){if(typeof e=="string")return zO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zO(e,t)}}function zO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UZ(e){if(Array.isArray(e))return e}function WZ(){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=LZ(a),u=s[0],l=s.slice(1);if(typeof u=="number"){BO(i.bind(null,l),u);return}i(u),BO(i.bind(null,l));return}ag(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 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)}function UO(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 WO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(r),!0).forEach(function(n){vT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vT(e,t,r){return t=qZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qZ(e){var t=HZ(e,"string");return Rl(t)==="symbol"?t:String(t)}function HZ(e,t){if(Rl(e)!=="object"||e===null)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)}var KZ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(o){return i.includes(o)})})},VZ=function(t){return t},GZ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},qu=function(t,r){return Object.keys(r).reduce(function(n,i){return WO(WO({},n),{},vT({},i,t(i,r[i])))},{})},qO=function(t,r,n){return t.map(function(i){return"".concat(GZ(i)," ").concat(r,"ms ").concat(n)}).join(",")};function QZ(e,t){return ZZ(e)||YZ(e,t)||yT(e,t)||XZ()}function XZ(){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 YZ(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 ZZ(e){if(Array.isArray(e))return e}function JZ(e){return rJ(e)||tJ(e)||yT(e)||eJ()}function eJ(){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 yT(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 tJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rJ(e){if(Array.isArray(e))return sg(e)}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}var zd=1e-4,mT=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},gT=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},HO=function(t,r){return function(n){var i=mT(t,r);return gT(i,n)}},nJ=function(t,r){return function(n){var i=mT(t,r),o=[].concat(JZ(i.map(function(a,s){return a*s}).slice(1)),[0]);return gT(o,n)}},KO=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(m){return parseFloat(m)}),f=QZ(l,4);i=f[0],o=f[1],a=f[2],s=f[3]}}}var c=HO(i,a),d=HO(o,s),h=nJ(i,a),v=function(y){return y>1?1:y<0?0:y},p=function(y){for(var g=y>1?1:y,b=g,S=0;S<8;++S){var x=c(b)-g,w=h(b);if(Math.abs(x-g)<zd||w<zd)return d(b);b=v(b-x/w)}return d(b)};return p.isStepper=!1,p},iJ=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,v=d*o,p=d+(h-v)*s/1e3,m=d*s/1e3+f;return Math.abs(m-c)<zd&&Math.abs(p)<zd?[c,0]:[m,p]};return u.isStepper=!0,u.dt=s,u},oJ=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 KO(i);case"spring":return iJ();default:if(i.split("(")[0]==="cubic-bezier")return KO(i)}return typeof i=="function"?i:null};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 VO(e){return uJ(e)||sJ(e)||bT(e)||aJ()}function aJ(){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 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 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 pt(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){ug(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 ug(e,t,r){return t=lJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lJ(e){var t=cJ(e,"string");return Nl(t)==="symbol"?t:String(t)}function cJ(e,t){if(Nl(e)!=="object"||e===null)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)}function fJ(e,t){return pJ(e)||hJ(e,t)||bT(e,t)||dJ()}function dJ(){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 bT(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 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 hJ(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 pJ(e){if(Array.isArray(e))return e}var Ud=function(t,r,n){return t+(r-t)*n},cg=function(t){var r=t.from,n=t.to;return r!==n},vJ=function e(t,r,n){var i=qu(function(o,a){if(cg(a)){var s=t(a.from,a.to,a.velocity),u=fJ(s,2),l=u[0],f=u[1];return pt(pt({},a),{},{from:l,velocity:f})}return a},r);return n<1?qu(function(o,a){return cg(a)?pt(pt({},a),{},{velocity:Ud(a.velocity,i[o].velocity,n),from:Ud(a.from,i[o].from,n)}):a},r):e(t,i,n-1)};const yJ=function(e,t,r,n,i){var o=KZ(e,t),a=o.reduce(function(m,y){return pt(pt({},m),{},ug({},y,[e[y],t[y]]))},{}),s=o.reduce(function(m,y){return pt(pt({},m),{},ug({},y,{from:e[y],velocity:0,to:t[y]}))},{}),u=-1,l,f,c=function(){return null},d=function(){return qu(function(y,g){return g.from},s)},h=function(){return!Object.values(s).filter(cg).length},v=function(y){l||(l=y);var g=y-l,b=g/r.dt;s=vJ(r,s,b),i(pt(pt(pt({},e),t),d())),l=y,h()||(u=requestAnimationFrame(c))},p=function(y){f||(f=y);var g=(y-f)/n,b=qu(function(x,w){return Ud.apply(void 0,VO(w).concat([r(g)]))},a);if(i(pt(pt(pt({},e),t),b)),g<1)u=requestAnimationFrame(c);else{var S=qu(function(x,w){return Ud.apply(void 0,VO(w).concat([r(1)]))},a);i(pt(pt(pt({},e),t),S))}};return c=r.isStepper?v:p,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(u)}}};function xs(e){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xs(e)}var mJ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function gJ(e,t){if(e==null)return{};var r=bJ(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 bJ(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 Lv(e){return OJ(e)||SJ(e)||wJ(e)||xJ()}function xJ(){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 wJ(e,t){if(e){if(typeof e=="string")return fg(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 fg(e,t)}}function SJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OJ(e){if(Array.isArray(e))return fg(e)}function fg(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 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 Fr(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){Cu(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 Cu(e,t,r){return t=xT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _J(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xT(n.key),n)}}function AJ(e,t,r){return t&&_J(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xT(e){var t=EJ(e,"string");return xs(t)==="symbol"?t:String(t)}function EJ(e,t){if(xs(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xs(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jJ(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 CJ(e){var t=$J();return function(){var n=Wd(e),i;if(t){var o=Wd(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return hg(this,i)}}function hg(e,t){if(t&&(xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pg(e)}function pg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $J(){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 Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wd(e)}var bn=function(e){jJ(r,e);var t=CJ(r);function r(n,i){var o;PJ(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(pg(o)),o.changeStyle=o.changeStyle.bind(pg(o)),!s||h<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:f}),hg(o);if(c&&c.length)o.state={style:c[0].style};else if(l){if(typeof d=="function")return o.state={style:l},hg(o);o.state={style:u?Cu({},u,l):l}}else o.state={style:{}};return o}return AJ(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?Cu({},u,f):f};this.state&&d&&(u&&d[u]!==f||!u&&d!==f)&&this.setState(h);return}if(!(NZ(i.to,f)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=v||l?c:i.to;if(this.state&&d){var m={style:u?Cu({},u,p):p};(u&&d[u]!==p||!u&&d!==p)&&this.setState(m)}this.runAnimation(Fr(Fr({},this.props),{},{from:p,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=yJ(a,s,oJ(l),u,this.changeStyle),v=function(){o.stopJSAnimation=h()};this.manager.start([d,f,v,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(p,m,y){if(y===0)return p;var g=m.duration,b=m.easing,S=b===void 0?"ease":b,x=m.style,w=m.properties,O=m.onAnimationEnd,P=y>0?a[y-1]:m,_=w||Object.keys(x);if(typeof S=="function"||S==="spring")return[].concat(Lv(p),[o.runJSAnimation.bind(o,{from:P.style,to:x,duration:g,easing:S}),g]);var A=qO(_,g,S),C=Fr(Fr(Fr({},P.style),x),{},{transition:A});return[].concat(Lv(p),[C,g,O]).filter(VZ)};return this.manager.start([u].concat(Lv(a.reduce(h,[f,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=WZ());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,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof l=="function"||typeof h=="function"||l==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?Cu({},s,u):u,m=qO(Object.keys(p),a,l);v.start([f,o,Fr(Fr({},p),{},{transition:m}),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=gJ(i,mJ),l=M.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 v=h.props,p=v.style,m=p===void 0?{}:p,y=v.className,g=M.cloneElement(h,Fr(Fr({},u),{},{style:Fr(Fr({},m),f),className:y}));return g};return l===1?c(M.Children.only(o)):T.createElement("div",null,M.Children.map(o,function(d){return c(d)}))}}]),r}(M.PureComponent);bn.displayName="Animate";bn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};bn.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 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 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 TJ(e,t){return RJ(e)||IJ(e,t)||MJ(e,t)||kJ()}function kJ(){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 MJ(e,t){if(e){if(typeof e=="string")return XO(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 XO(e,t)}}function XO(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 IJ(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 RJ(e){if(Array.isArray(e))return e}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 ZO(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){NJ(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 NJ(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=LJ(e,"string");return Dl(t)=="symbol"?t:t+""}function LJ(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)}var JO=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 v=Math.min(a,o);f="M ".concat(t,",").concat(r+s*v,`
            A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(t+u*v,",").concat(r,`
            L `).concat(t+n-u*v,",").concat(r,`
            A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(t+n,",").concat(r+s*v,`
            L `).concat(t+n,",").concat(r+i-s*v,`
            A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(t+n-u*v,",").concat(r+i,`
            L `).concat(t+u*v,",").concat(r+i,`
            A `).concat(v,",").concat(v,",0,0,").concat(l,",").concat(t,",").concat(r+i-s*v," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},FJ=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},BJ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Xb=function(t){var r=ZO(ZO({},BJ),t),n=M.useRef(),i=M.useState(-1),o=TJ(i,2),a=o[0],s=o[1];M.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&s(S)}catch{}},[]);var u=r.x,l=r.y,f=r.width,c=r.height,d=r.radius,h=r.className,v=r.animationEasing,p=r.animationDuration,m=r.animationBegin,y=r.isAnimationActive,g=r.isUpdateAnimationActive;if(u!==+u||l!==+l||f!==+f||c!==+c||f===0||c===0)return null;var b=ce("recharts-rectangle",h);return g?T.createElement(bn,{canBegin:a>0,from:{width:f,height:c,x:u,y:l},to:{width:f,height:c,x:u,y:l},duration:p,animationEasing:v,isActive:g},function(S){var x=S.width,w=S.height,O=S.x,P=S.y;return T.createElement(bn,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,isActive:y,easing:v},T.createElement("path",qd({},oe(r,!0),{className:b,d:JO(O,P,x,w,d),ref:n})))}):T.createElement("path",qd({},oe(r,!0),{className:b,d:JO(u,l,f,c,d)}))},zJ=["points","className","baseLinePoints","connectNulls"];function xa(){return xa=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},xa.apply(this,arguments)}function UJ(e,t){if(e==null)return{};var r=WJ(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 WJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function eP(e){return VJ(e)||KJ(e)||HJ(e)||qJ()}function qJ(){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 HJ(e,t){if(e){if(typeof e=="string")return vg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vg(e,t)}}function KJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VJ(e){if(Array.isArray(e))return vg(e)}function vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var tP=function(t){return t&&t.x===+t.x&&t.y===+t.y},GJ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){tP(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),tP(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Hu=function(t,r){var n=GJ(t);r&&(n=[n.reduce(function(o,a){return[].concat(eP(o),eP(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},QJ=function(t,r,n){var i=Hu(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Hu(r.reverse(),n).slice(1))},XJ=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,o=t.connectNulls,a=UJ(t,zJ);if(!r||!r.length)return null;var s=ce("recharts-polygon",n);if(i&&i.length){var u=a.stroke&&a.stroke!=="none",l=QJ(r,i,o);return T.createElement("g",{className:s},T.createElement("path",xa({},oe(a,!0),{fill:l.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:l})),u?T.createElement("path",xa({},oe(a,!0),{fill:"none",d:Hu(r,o)})):null,u?T.createElement("path",xa({},oe(a,!0),{fill:"none",d:Hu(i,o)})):null)}var f=Hu(r,o);return T.createElement("path",xa({},oe(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:s,d:f}))};function yg(){return yg=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},yg.apply(this,arguments)}var pp=function(t){var r=t.cx,n=t.cy,i=t.r,o=t.className,a=ce("recharts-dot",o);return r===+r&&n===+n&&i===+i?M.createElement("circle",yg({},oe(t,!1),cd(t),{className:a,cx:r,cy:n,r:i})):null};function Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}var YJ=["x","y","top","left","width","height","className"];function mg(){return mg=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},mg.apply(this,arguments)}function rP(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 ZJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rP(Object(r),!0).forEach(function(n){JJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JJ(e,t,r){return t=eee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eee(e){var t=tee(e,"string");return Ll(t)=="symbol"?t:t+""}function tee(e,t){if(Ll(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ll(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ree(e,t){if(e==null)return{};var r=nee(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 nee(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 iee=function(t,r,n,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(r,"h").concat(n)},oee=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,v=t.className,p=ree(t,YJ),m=ZJ({x:n,y:o,top:s,left:l,width:c,height:h},p);return!G(n)||!G(o)||!G(c)||!G(h)||!G(s)||!G(l)?null:T.createElement("path",mg({},oe(m,!0),{className:ce("recharts-cross",v),d:iee(n,o,c,h,s,l)}))},aee=lp,see=k$,uee=Sn;function lee(e,t){return e&&e.length?aee(e,uee(t),see):void 0}var cee=lee;const fee=Ae(cee);var dee=lp,hee=Sn,pee=M$;function vee(e,t){return e&&e.length?dee(e,hee(t),pee):void 0}var yee=vee;const mee=Ae(yee);var gee=["cx","cy","angle","ticks","axisLine"],bee=["ticks","tick","angle","tickFormatter","stroke"];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 Ku(){return Ku=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},Ku.apply(this,arguments)}function nP(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 Xi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nP(Object(r),!0).forEach(function(n){vp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iP(e,t){if(e==null)return{};var r=xee(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 xee(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 wee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oP(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,ST(n.key),n)}}function See(e,t,r){return t&&oP(e.prototype,t),r&&oP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oee(e,t,r){return t=Hd(t),Pee(e,wT()?Reflect.construct(t,r||[],Hd(e).constructor):t.apply(e,r))}function Pee(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 _ee(e)}function _ee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wT=function(){return!!e})()}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hd(e)}function Aee(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 vp(e,t,r){return t=ST(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ST(e){var t=Eee(e,"string");return ws(t)=="symbol"?t:t+""}function Eee(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 yp=function(e){function t(){return wee(this,t),Oee(this,t,arguments)}return Aee(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=fee(s,function(f){return f.coordinate||0}),l=mee(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=iP(n,gee),f=s.reduce(function(v,p){return[Math.min(v[0],p.coordinate),Math.max(v[1],p.coordinate)]},[1/0,-1/0]),c=Me(i,o,f[0],a),d=Me(i,o,f[1],a),h=Xi(Xi(Xi({},oe(l,!1)),{},{fill:"none"},oe(u,!1)),{},{x1:c.x,y1:c.y,x2:d.x,y2:d.y});return T.createElement("line",Ku({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=iP(i,bee),c=this.getTickTextAnchor(),d=oe(f,!1),h=oe(a,!1),v=o.map(function(p,m){var y=n.getTickValueCoord(p),g=Xi(Xi(Xi(Xi({textAnchor:c,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:l},h),{},{index:m},y),{},{payload:p});return T.createElement(be,Ku({className:ce("recharts-polar-radius-axis-tick",sT(a)),key:"tick-".concat(p.coordinate)},Lo(n.props,p,m)),t.renderTickItem(a,g,u?u(p.value,m):p.value))});return T.createElement(be,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.axisLine,a=n.tick;return!i||!i.length?null:T.createElement(be,{className:ce("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),ft.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,o){var a;return T.isValidElement(n)?a=T.cloneElement(n,i):ue(n)?a=n(i):a=T.createElement(Fo,Ku({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(M.PureComponent);vp(yp,"displayName","PolarRadiusAxis");vp(yp,"axisType","radiusAxis");vp(yp,"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 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 io(){return io=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},io.apply(this,arguments)}function aP(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 Yi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(r),!0).forEach(function(n){mp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sP(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 Cee(e,t,r){return t&&sP(e.prototype,t),r&&sP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ee(e,t,r){return t=Kd(t),Tee(e,OT()?Reflect.construct(t,r||[],Kd(e).constructor):t.apply(e,r))}function Tee(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 kee(e)}function kee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OT=function(){return!!e})()}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kd(e)}function Mee(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 mp(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=Iee(e,"string");return Ss(t)=="symbol"?t:t+""}function Iee(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 Ree=Math.PI/180,uP=1e-5,gp=function(e){function t(){return jee(this,t),$ee(this,t,arguments)}return Mee(t,e),Cee(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*Ree),a;return o>uP?a=i==="outer"?"start":"end":o<-uP?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=Yi(Yi({},oe(this.props,!1)),{},{fill:"none"},oe(s,!1));if(u==="circle")return T.createElement(pp,io({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 T.createElement(XJ,io({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=Yi(Yi({},f),{},{fill:"none"},oe(s,!1)),h=o.map(function(v,p){var m=n.getTickLineCoord(v),y=n.getTickTextAnchor(v),g=Yi(Yi(Yi({textAnchor:y},f),{},{stroke:"none",fill:l},c),{},{index:p,payload:v,x:m.x2,y:m.y2});return T.createElement(be,io({className:ce("recharts-polar-angle-axis-tick",sT(a)),key:"tick-".concat(v.coordinate)},Lo(n.props,v,p)),s&&T.createElement("line",io({className:"recharts-polar-angle-axis-tick-line"},d,m)),a&&t.renderTickItem(a,g,u?u(v.value,p):v.value))});return T.createElement(be,{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:T.createElement(be,{className:ce("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,o){var a;return T.isValidElement(n)?a=T.cloneElement(n,i):ue(n)?a=n(i):a=T.createElement(Fo,io({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(M.PureComponent);mp(gp,"displayName","PolarAngleAxis");mp(gp,"axisType","angleAxis");mp(gp,"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 Nee=jC,Dee=Nee(Object.getPrototypeOf,Object),Lee=Dee,Fee=Yn,Bee=Lee,zee=Zn,Uee="[object Object]",Wee=Function.prototype,qee=Object.prototype,_T=Wee.toString,Hee=qee.hasOwnProperty,Kee=_T.call(Object);function Vee(e){if(!zee(e)||Fee(e)!=Uee)return!1;var t=Bee(e);if(t===null)return!0;var r=Hee.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&_T.call(r)==Kee}var Gee=Vee;const Qee=Ae(Gee);var Xee=Yn,Yee=Zn,Zee="[object Boolean]";function Jee(e){return e===!0||e===!1||Yee(e)&&Xee(e)==Zee}var ete=Jee;const tte=Ae(ete);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 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 rte(e,t){return ate(e)||ote(e,t)||ite(e,t)||nte()}function nte(){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 ite(e,t){if(e){if(typeof e=="string")return lP(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 lP(e,t)}}function lP(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 ote(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 ate(e){if(Array.isArray(e))return e}function cP(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 fP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cP(Object(r),!0).forEach(function(n){ste(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ste(e,t,r){return t=ute(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ute(e){var t=lte(e,"string");return Fl(t)=="symbol"?t:t+""}function lte(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 dP=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},cte={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},fte=function(t){var r=fP(fP({},cte),t),n=M.useRef(),i=M.useState(-1),o=rte(i,2),a=o[0],s=o[1];M.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,v=r.animationEasing,p=r.animationDuration,m=r.animationBegin,y=r.isUpdateAnimationActive;if(u!==+u||l!==+l||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var g=ce("recharts-trapezoid",h);return y?T.createElement(bn,{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:p,animationEasing:v,isActive:y},function(b){var S=b.upperWidth,x=b.lowerWidth,w=b.height,O=b.x,P=b.y;return T.createElement(bn,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,easing:v},T.createElement("path",Vd({},oe(r,!0),{className:g,d:dP(O,P,S,x,w),ref:n})))}):T.createElement("g",null,T.createElement("path",Vd({},oe(r,!0),{className:g,d:dP(u,l,f,c,d)})))},dte=["option","shapeType","propTransformer","activeClassName","isActive"];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 hte(e,t){if(e==null)return{};var r=pte(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 pte(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 hP(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 Gd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(r),!0).forEach(function(n){vte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vte(e,t,r){return t=yte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yte(e){var t=mte(e,"string");return Bl(t)=="symbol"?t:t+""}function mte(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 gte(e,t){return Gd(Gd({},t),e)}function bte(e,t){return e==="symbols"}function pP(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(Xb,r);case"trapezoid":return T.createElement(fte,r);case"sector":return T.createElement(cT,r);case"symbols":if(bte(t))return T.createElement(vb,r);break;default:return null}}function xte(e){return M.isValidElement(e)?e.props:e}function AT(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?gte:n,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,u=hte(e,dte),l;if(M.isValidElement(t))l=M.cloneElement(t,Gd(Gd({},u),xte(t)));else if(ue(t))l=t(u);else if(Qee(t)&&!tte(t)){var f=i(t,u);l=T.createElement(pP,{shapeType:r,elementProps:f})}else{var c=u;l=T.createElement(pP,{shapeType:r,elementProps:c})}return s?T.createElement(be,{className:a},l):l}function bp(e,t){return t!=null&&"trapezoids"in e.props}function xp(e,t){return t!=null&&"sectors"in e.props}function zl(e,t){return t!=null&&"points"in e.props}function wte(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 Ote(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Pte(e,t){var r;return bp(e,t)?r=wte:xp(e,t)?r=Ste:zl(e,t)&&(r=Ote),r}function _te(e,t){var r;return bp(e,t)?r="trapezoids":xp(e,t)?r="sectors":zl(e,t)&&(r="points"),r}function Ate(e,t){if(bp(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(xp(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 zl(e,t)?t.payload:{}}function Ete(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=_te(r,t),o=Ate(r,t),a=n.filter(function(u,l){var f=gc(o,u),c=r.props[i].filter(function(v){var p=Pte(r,t);return p(v,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 _f;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 wa(){return wa=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},wa.apply(this,arguments)}function vP(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?vP(Object(r),!0).forEach(function(n){_r(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yP(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 Cte(e,t,r){return t&&yP(e.prototype,t),r&&yP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $te(e,t,r){return t=Qd(t),Tte(e,ET()?Reflect.construct(t,r||[],Qd(e).constructor):t.apply(e,r))}function Tte(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 kte(e)}function kte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ET(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ET=function(){return!!e})()}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qd(e)}function Mte(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&&xg(e,t)}function xg(e,t){return xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xg(e,t)}function _r(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=Ite(e,"string");return Os(t)=="symbol"?t:t+""}function Ite(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 ei=function(e){function t(r){var n;return jte(this,t),n=$te(this,t,[r]),_r(n,"pieRef",null),_r(n,"sectorRefs",[]),_r(n,"id",Ks("recharts-pie-")),_r(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ue(i)&&i()}),_r(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 Mte(t,e),Cte(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,v=n.map(function(p,m){var y=(p.startAngle+p.endAngle)/2,g=Me(p.cx,p.cy,p.outerRadius+h,y),b=$e($e($e($e({},f),p),{},{stroke:"none"},c),{},{index:m,textAnchor:t.getTextAnchor(g.x,p.cx)},g),S=$e($e($e($e({},f),p),{},{fill:"none",stroke:p.fill},d),{},{index:m,points:[Me(p.cx,p.cy,p.outerRadius,y),g]}),x=u;return le(u)&&le(l)?x="value":le(u)&&(x=l),T.createElement(be,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(m)},s&&t.renderLabelLineItem(s,S,"line"),t.renderLabelItem(a,b,it(p,x)))});return T.createElement(be,{className:"recharts-pie-labels"},v)}},{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,v=$e($e({},l),{},{stroke:s?l.fill:l.stroke,tabIndex:-1});return T.createElement(be,wa({ref:function(m){m&&!i.sectorRefs.includes(m)&&i.sectorRefs.push(m)},tabIndex:-1,className:"recharts-pie-sector"},Lo(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)}),T.createElement(AT,wa({option:h,isActive:c,shapeType:"sector"},v)))})}},{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 T.createElement(bn,{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(v){var p=v.t,m=[],y=o&&o[0],g=y.startAngle;return o.forEach(function(b,S){var x=d&&d[S],w=S>0?ar(b,"paddingAngle",0):0;if(x){var O=tr(x.endAngle-x.startAngle,b.endAngle-b.startAngle),P=$e($e({},b),{},{startAngle:g+w,endAngle:g+O(p)+w});m.push(P),g=P.endAngle}else{var _=b.endAngle,A=b.startAngle,C=tr(0,_-A),j=C(p),I=$e($e({},b),{},{startAngle:g+w,endAngle:g+j+w});m.push(I),g=I.endAngle}}),T.createElement(be,null,n.renderSectorsStatically(m))})}},{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||!gc(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,v=this.state.isAnimationFinished;if(o||!a||!a.length||!G(l)||!G(f)||!G(c)||!G(d))return null;var p=ce("recharts-pie",s);return T.createElement(be,{tabIndex:this.props.rootTabIndex,className:p,ref:function(y){n.pieRef=y}},this.renderSectors(),u&&this.renderLabels(a),ft.renderCallByParent(this.props,null,!1),(!h||v)&&zn.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(T.isValidElement(n))return T.cloneElement(n,i);if(ue(n))return n(i);var a=ce("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return T.createElement(Bd,wa({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(n,i,o){if(T.isValidElement(n))return T.cloneElement(n,i);var a=o;if(ue(n)&&(a=n(i),T.isValidElement(a)))return a;var s=ce("recharts-pie-label-text",typeof n!="boolean"&&!ue(n)?n.className:"");return T.createElement(Fo,wa({},i,{alignmentBaseline:"middle",className:s}),a)}}])}(M.PureComponent);_f=ei;_r(ei,"displayName","Pie");_r(ei,"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:!Go.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});_r(ei,"parseDeltaAngle",function(e,t){var r=It(t-e),n=Math.min(Math.abs(t-e),360);return r*n});_r(ei,"getRealPieData",function(e){var t=e.data,r=e.children,n=oe(e,!1),i=sr(r,rp);return t&&t.length?t.map(function(o,a){return $e($e($e({payload:o},n),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return $e($e({},n),o.props)}):[]});_r(ei,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,o=t.height,a=aT(i,o),s=n+Rt(e.cx,i,i/2),u=r+Rt(e.cy,o,o/2),l=Rt(e.innerRadius,a,0),f=Rt(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}});_r(ei,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?$e($e({},t.type.defaultProps),t.props):t.props,i=_f.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),v=_f.parseCoordinateOfPie(n,r),p=_f.parseDeltaAngle(a,s),m=Math.abs(p),y=l;le(l)&&le(c)?(Jr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y="value"):le(l)&&(Jr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y=c);var g=i.filter(function(P){return it(P,y,0)!==0}).length,b=(m>=360?g:g-1)*u,S=m-g*h-b,x=i.reduce(function(P,_){var A=it(_,y,0);return P+(G(A)?A:0)},0),w;if(x>0){var O;w=i.map(function(P,_){var A=it(P,y,0),C=it(P,f,_),j=(G(A)?A:0)/x,I;_?I=O.endAngle+It(p)*u*(A!==0?1:0):I=a;var N=I+It(p)*((A!==0?h:0)+j*S),D=(I+N)/2,R=(v.innerRadius+v.outerRadius)/2,F=[{name:C,value:A,payload:P,dataKey:y,type:d}],k=Me(v.cx,v.cy,R,D);return O=$e($e($e({percent:j,cornerRadius:o,name:C,tooltipPayload:F,midAngle:D,middleRadius:R,tooltipPosition:k},P),v),{},{value:it(P,y),startAngle:I,endAngle:N,payload:P,paddingAngle:It(p)*u}),O})}return $e($e({},v),{},{sectors:w,data:i})});var Rte=Math.ceil,Nte=Math.max;function Dte(e,t,r,n){for(var i=-1,o=Nte(Rte((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}var Lte=Dte,Fte=VC,mP=1/0,Bte=17976931348623157e292;function zte(e){if(!e)return e===0?e:0;if(e=Fte(e),e===mP||e===-mP){var t=e<0?-1:1;return t*Bte}return e===e?e:0}var CT=zte,Ute=Lte,Wte=tp,Fv=CT;function qte(e){return function(t,r,n){return n&&typeof n!="number"&&Wte(t,r,n)&&(r=n=void 0),t=Fv(t),r===void 0?(r=t,t=0):r=Fv(r),n=n===void 0?t<r?1:-1:Fv(n),Ute(t,r,n,e)}}var Hte=qte,Kte=Hte,Vte=Kte(),Gte=Vte;const Xd=Ae(Gte);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 gP(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 bP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(r),!0).forEach(function(n){$T(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $T(e,t,r){return t=Qte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qte(e){var t=Xte(e,"string");return Ul(t)=="symbol"?t:t+""}function Xte(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)}var Yte=["Webkit","Moz","O","ms"],Zte=function(t,r){var n=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=Yte.reduce(function(o,a){return bP(bP({},o),{},$T({},a+n,r))},{});return i[t]=r,i};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 Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yd.apply(this,arguments)}function xP(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 Bv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xP(Object(r),!0).forEach(function(n){Zt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wP(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,kT(n.key),n)}}function ere(e,t,r){return t&&wP(e.prototype,t),r&&wP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tre(e,t,r){return t=Zd(t),rre(e,TT()?Reflect.construct(t,r||[],Zd(e).constructor):t.apply(e,r))}function rre(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 nre(e)}function nre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TT=function(){return!!e})()}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zd(e)}function ire(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 Zt(e,t,r){return t=kT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kT(e){var t=ore(e,"string");return Ps(t)=="symbol"?t:t+""}function ore(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 are=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=Uu().domain(Xd(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}},SP=function(t){return t.changedTouches&&!!t.changedTouches.length},_s=function(e){function t(r){var n;return Jte(this,t),n=tre(this,t,[r]),Zt(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Zt(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Zt(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()}),Zt(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Zt(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Zt(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Zt(n,"handleSlideDragStart",function(i){var o=SP(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 ire(t,e),ere(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),v=t.getIndexInRange(a,d);return{startIndex:h-h%u,endIndex:v===f?f:v-v%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,u=it(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,v=u.onChange,p=n.pageX-o;p>0?p=Math.min(p,l+f-c-s,l+f-c-a):p<0&&(p=Math.max(p,l-a,l-s));var m=this.getIndex({startX:a+p,endX:s+p});(m.startIndex!==d||m.endIndex!==h)&&v&&v(m),this.setState({startX:a+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=SP(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,v=f.onChange,p=f.gap,m=f.data,y={startX:this.state.startX,endX:this.state.endX},g=n.pageX-o;g>0?g=Math.min(g,c+d-h-l):g<0&&(g=Math.max(g,c-l)),y[a]=l+g;var b=this.getIndex(y),S=b.startIndex,x=b.endIndex,w=function(){var P=m.length-1;return a==="startX"&&(s>u?S%p===0:x%p===0)||s<u&&x===P||a==="endX"&&(s>u?x%p===0:S%p===0)||s>u&&x===P};this.setState(Zt(Zt({},a,l+g),"brushMoveStartX",n.pageX),function(){v&&w()&&v(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(Zt({},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 T.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=M.Children.only(l);return c?T.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,v=u.data,p=u.startIndex,m=u.endIndex,y=Math.max(n,this.props.x),g=Bv(Bv({},oe(this.props,!1)),{},{x:y,y:l,width:f,height:c}),b=h||"Min value: ".concat((o=v[p])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=v[m])===null||a===void 0?void 0:a.name);return T.createElement(be,{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,g))}},{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 T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y: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,v={pointerEvents:"none",fill:l};return T.createElement(be,{className:"recharts-brush-texts"},T.createElement(Fo,Yd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-h,y:a+s/2},v),this.getTextOfTick(i)),T.createElement(Fo,Yd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+u+h,y:a+s/2},v),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,v=d.endX,p=d.isTextActive,m=d.isSlideMoving,y=d.isTravellerMoving,g=d.isTravellerFocused;if(!i||!i.length||!G(s)||!G(u)||!G(l)||!G(f)||l<=0||f<=0)return null;var b=ce("recharts-brush",o),S=T.Children.count(a)===1,x=Zte("userSelect","none");return T.createElement(be,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(h,v),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(v,"endX"),(p||m||y||g||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 T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:o,width:a,height:s,fill:u,stroke:"none"}),T.createElement("line",{x1:i+1,y1:l,x2:i+a-1,y2:l,fill:"none",stroke:"#fff"}),T.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 T.isValidElement(n)?o=T.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 Bv({prevData:o,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:a},o&&o.length?are({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}}])}(M.PureComponent);Zt(_s,"displayName","Brush");Zt(_s,"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 sre=Sb;function ure(e,t){var r;return sre(e,function(n,i,o){return r=t(n,i,o),!r}),!!r}var lre=ure,cre=xC,fre=Sn,dre=lre,hre=Qt,pre=tp;function vre(e,t,r){var n=hre(e)?cre:dre;return r&&pre(e,t,r)&&(t=void 0),n(e,fre(t))}var yre=vre;const mre=Ae(yre);var mn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},OP=UC;function gre(e,t,r){t=="__proto__"&&OP?OP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var bre=gre,xre=bre,wre=BC,Sre=Sn;function Ore(e,t){var r={};return t=Sre(t),wre(e,function(n,i,o){xre(r,i,t(n,i,o))}),r}var Pre=Ore;const _re=Ae(Pre);function Are(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 Ere=Are,jre=Sb;function Cre(e,t){var r=!0;return jre(e,function(n,i,o){return r=!!t(n,i,o),r}),r}var $re=Cre,Tre=Ere,kre=$re,Mre=Sn,Ire=Qt,Rre=tp;function Nre(e,t,r){var n=Ire(e)?Tre:kre;return r&&Rre(e,t,r)&&(t=void 0),n(e,Mre(t))}var Dre=Nre;const MT=Ae(Dre);var Lre=["x","y"];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 Sg(){return Sg=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},Sg.apply(this,arguments)}function PP(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 Su(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PP(Object(r),!0).forEach(function(n){Fre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fre(e,t,r){return t=Bre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bre(e){var t=zre(e,"string");return Wl(t)=="symbol"?t:t+""}function zre(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(t==="string"?String:Number)(e)}function Ure(e,t){if(e==null)return{};var r=Wre(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 Wre(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 qre(e,t){var r=e.x,n=e.y,i=Ure(e,Lre),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 Su(Su(Su(Su(Su({},t),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function _P(e){return T.createElement(AT,Sg({shapeType:"rectangle",propTransformer:qre,activeClassName:"recharts-active-bar"},e))}var Hre=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=G(n)||mz(n);return o?t(n,i):(o||Ct(!1),r)}},Kre=["value","background"],IT;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 Vre(e,t){if(e==null)return{};var r=Gre(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 Gre(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 Jd(){return Jd=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},Jd.apply(this,arguments)}function AP(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 Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AP(Object(r),!0).forEach(function(n){Pi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EP(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,NT(n.key),n)}}function Xre(e,t,r){return t&&EP(e.prototype,t),r&&EP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yre(e,t,r){return t=eh(t),Zre(e,RT()?Reflect.construct(t,r||[],eh(e).constructor):t.apply(e,r))}function Zre(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 Jre(e)}function Jre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RT=function(){return!!e})()}function eh(e){return eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eh(e)}function ene(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&&Og(e,t)}function Og(e,t){return Og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Og(e,t)}function Pi(e,t,r){return t=NT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NT(e){var t=tne(e,"string");return As(t)=="symbol"?t:t+""}function tne(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;Qre(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=Yre(this,t,[].concat(i)),Pi(r,"state",{isAnimationFinished:!1}),Pi(r,"id",Ks("recharts-bar-")),Pi(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),a&&a()}),Pi(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),a&&a()}),r}return ene(t,e),Xre(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,v=h?l:a,p=Ze(Ze(Ze({},f),c),{},{isActive:h,option:v,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(be,Jd({className:"recharts-bar-rectangle"},Lo(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)}),T.createElement(_P,p))})}},{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 T.createElement(bn,{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 v=h.t,p=o.map(function(m,y){var g=d&&d[y];if(g){var b=tr(g.x,m.x),S=tr(g.y,m.y),x=tr(g.width,m.width),w=tr(g.height,m.height);return Ze(Ze({},m),{},{x:b(v),y:S(v),width:x(v),height:w(v)})}if(a==="horizontal"){var O=tr(0,m.height),P=O(v);return Ze(Ze({},m),{},{y:m.y+m.height-P,height:P})}var _=tr(0,m.width),A=_(v);return Ze(Ze({},m),{},{width:A})});return T.createElement(be,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,o=n.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!gc(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=Vre(l,Kre);if(!c)return null;var h=Ze(Ze(Ze(Ze(Ze({},d),{},{fill:"#eee"},c),u),Lo(n.props,l,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:a,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(_P,Jd({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=sr(f,bc);if(!c)return null;var d=l==="vertical"?a[0].height/2:a[0].width/2,h=function(m,y){var g=Array.isArray(m.value)?m.value[1]:m.value;return{x:m.x,y:m.y,value:g,errorVal:it(m,y)}},v={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(be,v,c.map(function(p){return T.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.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,v=n.background,p=n.id;if(i||!o||!o.length)return null;var m=this.state.isAnimationFinished,y=ce("recharts-bar",a),g=s&&s.allowDataOverflow,b=u&&u.allowDataOverflow,S=g||b,x=le(p)?this.id:p;return T.createElement(be,{className:y},g||b?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(x)},T.createElement("rect",{x:g?l:l-c/2,y:b?f:f-d/2,width:g?c:c*2,height:b?d:d*2}))):null,T.createElement(be,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(x,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,x),(!h||m)&&zn.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}}])}(M.PureComponent);IT=xc;Pi(xc,"displayName","Bar");Pi(xc,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Go.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Pi(xc,"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=RX(n,r);if(!h)return null;var v=t.layout,p=r.type.defaultProps,m=p!==void 0?Ze(Ze({},p),r.props):r.props,y=m.dataKey,g=m.children,b=m.minPointSize,S=v==="horizontal"?a:o,x=l?S.scale.domain():null,w=UX({numericAxis:S}),O=sr(g,rp),P=c.map(function(_,A){var C,j,I,N,D,R;l?C=NX(l[f+A],x):(C=it(_,y),Array.isArray(C)||(C=[w,C]));var F=Hre(b,IT.defaultProps.minPointSize)(C[1],A);if(v==="horizontal"){var k,L=[a.scale(C[0]),a.scale(C[1])],z=L[0],U=L[1];j=yO({axis:o,ticks:s,bandSize:i,offset:h.offset,entry:_,index:A}),I=(k=U??z)!==null&&k!==void 0?k:void 0,N=h.size;var W=z-U;if(D=Number.isNaN(W)?0:W,R={x:j,y:a.y,width:N,height:a.height},Math.abs(F)>0&&Math.abs(D)<Math.abs(F)){var H=It(D||F)*(Math.abs(F)-Math.abs(D));I-=H,D+=H}}else{var X=[o.scale(C[0]),o.scale(C[1])],Z=X[0],ne=X[1];if(j=Z,I=yO({axis:a,ticks:u,bandSize:i,offset:h.offset,entry:_,index:A}),N=ne-Z,D=h.size,R={x:o.x,y:I,width:o.width,height:D},Math.abs(F)>0&&Math.abs(N)<Math.abs(F)){var he=It(N||F)*(Math.abs(F)-Math.abs(N));N+=he}}return Ze(Ze(Ze({},_),{},{x:j,y:I,width:N,height:D,value:l?C:C[1],payload:_,background:R},O&&O[A]&&O[A].props),{},{tooltipPayload:[iT(r,_)],tooltipPosition:{x:j+N/2,y:I+D/2}})});return Ze({data:P,layout:v},d)});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 rne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jP(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,DT(n.key),n)}}function nne(e,t,r){return t&&jP(e.prototype,t),r&&jP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function CP(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 Hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CP(Object(r),!0).forEach(function(n){wp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wp(e,t,r){return t=DT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DT(e){var t=ine(e,"string");return ql(t)=="symbol"?t:t+""}function ine(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)}var one=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=!!er(l,xc);return f.reduce(function(h,v){var p=r[v],m=p.orientation,y=p.domain,g=p.padding,b=g===void 0?{}:g,S=p.mirror,x=p.reversed,w="".concat(m).concat(S?"Mirror":""),O,P,_,A,C;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var j=y[1]-y[0],I=1/0,N=p.categoricalDomain.sort(xz);if(N.forEach(function(X,Z){Z>0&&(I=Math.min((X||0)-(N[Z-1]||0),I))}),Number.isFinite(I)){var D=I/j,R=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(O=D*R/2),p.padding==="no-gap"){var F=Rt(t.barCategoryGap,D*R),k=D*R/2;O=k-F-(k-F)/R*F}}}i==="xAxis"?P=[n.left+(b.left||0)+(O||0),n.left+n.width-(b.right||0)-(O||0)]:i==="yAxis"?P=u==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(O||0),n.top+n.height-(b.bottom||0)-(O||0)]:P=p.range,x&&(P=[P[1],P[0]]);var L=eT(p,o,d),z=L.scale,U=L.realScaleType;z.domain(y).range(P),tT(z);var W=rT(z,Hr(Hr({},p),{},{realScaleType:U}));i==="xAxis"?(C=m==="top"&&!S||m==="bottom"&&S,_=n.left,A=c[w]-C*p.height):i==="yAxis"&&(C=m==="left"&&!S||m==="right"&&S,_=c[w]-C*p.width,A=n.top);var H=Hr(Hr(Hr({},p),W),{},{realScaleType:U,x:_,y:A,scale:z,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return H.bandSize=Dd(H,W),!p.hide&&i==="xAxis"?c[w]+=(C?-1:1)*H.height:p.hide||(c[w]+=(C?-1:1)*H.width),Hr(Hr({},h),{},wp({},v,H))},{})},LT=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)}},ane=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return LT({x:r,y:n},{x:i,y:o})},FT=function(){function e(t){rne(this,e),this.scale=t}return nne(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)}}])}();wp(FT,"EPS",1e-4);var Yb=function(t){var r=Object.keys(t).reduce(function(n,i){return Hr(Hr({},n),{},wp({},i,FT.create(t[i])))},{});return Hr(Hr({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return _re(i,function(u,l){return r[l].apply(u,{bandAware:a,position:s})})},isInRange:function(i){return MT(i,function(o,a){return r[a].isInRange(o)})}})};function sne(e){return(e%180+180)%180}var une=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=sne(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)},lne=Sn,cne=hc,fne=Jh;function dne(e){return function(t,r,n){var i=Object(t);if(!cne(t)){var o=lne(r);t=fne(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 hne=dne,pne=CT;function vne(e){var t=pne(e),r=t%1;return t===t?r?t-r:t:0}var yne=vne,mne=IC,gne=Sn,bne=yne,xne=Math.max;function wne(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:bne(r);return i<0&&(i=xne(n+i,0)),mne(e,gne(t),i)}var Sne=wne,One=hne,Pne=Sne,_ne=One(Pne),Ane=_ne;const Ene=Ae(Ane);var jne=OB(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("")}),Zb=M.createContext(void 0),Jb=M.createContext(void 0),BT=M.createContext(void 0),zT=M.createContext({}),UT=M.createContext(void 0),WT=M.createContext(0),qT=M.createContext(0),$P=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=jne(o);return T.createElement(Zb.Provider,{value:n},T.createElement(Jb.Provider,{value:i},T.createElement(zT.Provider,{value:o},T.createElement(BT.Provider,{value:f},T.createElement(UT.Provider,{value:a},T.createElement(WT.Provider,{value:l},T.createElement(qT.Provider,{value:u},s)))))))},Cne=function(){return M.useContext(UT)},HT=function(t){var r=M.useContext(Zb);r==null&&Ct(!1);var n=r[t];return n==null&&Ct(!1),n},$ne=function(){var t=M.useContext(Zb);return ci(t)},Tne=function(){var t=M.useContext(Jb),r=Ene(t,function(n){return MT(n.domain,Number.isFinite)});return r||ci(t)},KT=function(t){var r=M.useContext(Jb);r==null&&Ct(!1);var n=r[t];return n==null&&Ct(!1),n},kne=function(){var t=M.useContext(BT);return t},Mne=function(){return M.useContext(zT)},ex=function(){return M.useContext(qT)},tx=function(){return M.useContext(WT)};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 Ine(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rne(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 Nne(e,t,r){return t&&Rne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dne(e,t,r){return t=th(t),Lne(e,VT()?Reflect.construct(t,r||[],th(e).constructor):t.apply(e,r))}function Lne(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 Fne(e)}function Fne(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 Bne(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 TP(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 kP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TP(Object(r),!0).forEach(function(n){rx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rx(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=zne(e,"string");return Es(t)=="symbol"?t:t+""}function zne(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 Une(e,t){return Kne(e)||Hne(e,t)||qne(e,t)||Wne()}function Wne(){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 qne(e,t){if(e){if(typeof e=="string")return MP(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 MP(e,t)}}function MP(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 Hne(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 Kne(e){if(Array.isArray(e))return e}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)}var Vne=function(t,r){var n;return T.isValidElement(t)?n=T.cloneElement(t,r):ue(t)?n=t(r):n=T.createElement("line",_g({},r,{className:"recharts-reference-line-line"})),n},Gne=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 v=l.y,p=t.y.apply(v,{position:a});if(mn(l,"discard")&&!t.y.isInRange(p))return null;var m=[{x:f+d,y:p},{x:f,y:p}];return u==="left"?m.reverse():m}if(r){var y=l.x,g=t.x.apply(y,{position:a});if(mn(l,"discard")&&!t.x.isInRange(g))return null;var b=[{x:g,y:c+h},{x:g,y:c}];return s==="top"?b.reverse():b}if(i){var S=l.segment,x=S.map(function(w){return t.apply(w,{position:a})});return mn(l,"discard")&&mre(x,function(w){return!t.isInRange(w)})?null:x}return null};function Qne(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=Cne(),f=HT(i),c=KT(o),d=kne();if(!l||!d)return null;Jr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Yb({x:f.scale,y:c.scale}),v=at(t),p=at(r),m=n&&n.length===2,y=Gne(h,v,p,m,d,e.position,f.orientation,c.orientation,e);if(!y)return null;var g=Une(y,2),b=g[0],S=b.x,x=b.y,w=g[1],O=w.x,P=w.y,_=mn(e,"hidden")?"url(#".concat(l,")"):void 0,A=kP(kP({clipPath:_},oe(e,!0)),{},{x1:S,y1:x,x2:O,y2:P});return T.createElement(be,{className:ce("recharts-reference-line",s)},Vne(a,A),ft.renderCallByParent(e,ane({x1:S,y1:x,x2:O,y2:P})))}var nx=function(e){function t(){return Ine(this,t),Dne(this,t,arguments)}return Bne(t,e),Nne(t,[{key:"render",value:function(){return T.createElement(Qne,this.props)}}])}(T.Component);rx(nx,"displayName","ReferenceLine");rx(nx,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});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 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 IP(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 RP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IP(Object(r),!0).forEach(function(n){Sp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yne(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,XT(n.key),n)}}function Zne(e,t,r){return t&&Yne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jne(e,t,r){return t=rh(t),eie(e,QT()?Reflect.construct(t,r||[],rh(e).constructor):t.apply(e,r))}function eie(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 tie(e)}function tie(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 rh(e){return rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rh(e)}function rie(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 Sp(e,t,r){return t=XT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XT(e){var t=nie(e,"string");return js(t)=="symbol"?t:t+""}function nie(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 String(e)}var iie=function(t){var r=t.x,n=t.y,i=t.xAxis,o=t.yAxis,a=Yb({x:i.scale,y:o.scale}),s=a.apply({x:r,y:n},{bandAware:!0});return mn(t,"discard")&&!a.isInRange(s)?null:s},Op=function(e){function t(){return Xne(this,t),Jne(this,t,arguments)}return rie(t,e),Zne(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=at(i),f=at(o);if(Jr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!f)return null;var c=iie(this.props);if(!c)return null;var d=c.x,h=c.y,v=this.props,p=v.shape,m=v.className,y=mn(this.props,"hidden")?"url(#".concat(u,")"):void 0,g=RP(RP({clipPath:y},oe(this.props,!0)),{},{cx:d,cy:h});return T.createElement(be,{className:ce("recharts-reference-dot",m)},t.renderDot(p,g),ft.renderCallByParent(this.props,{x:d-a,y:h-a,width:2*a,height:2*a}))}}])}(T.Component);Sp(Op,"displayName","ReferenceDot");Sp(Op,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Sp(Op,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):ue(e)?r=e(t):r=T.createElement(pp,Ag({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function jg(){return jg=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},jg.apply(this,arguments)}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 NP(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 DP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NP(Object(r),!0).forEach(function(n){Pp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aie(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 sie(e,t,r){return t&&aie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uie(e,t,r){return t=nh(t),lie(e,YT()?Reflect.construct(t,r||[],nh(e).constructor):t.apply(e,r))}function lie(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 cie(e)}function cie(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 nh(e){return nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nh(e)}function fie(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 Pp(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=die(e,"string");return Cs(t)=="symbol"?t:t+""}function die(e,t){if(Cs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hie=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=Yb({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},v={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(l,{position:"end"}):d.y.rangeMax};return mn(o,"discard")&&(!d.isInRange(h)||!d.isInRange(v))?null:LT(h,v)},_p=function(e){function t(){return oie(this,t),uie(this,t,arguments)}return fie(t,e),sie(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;Jr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=at(i),d=at(o),h=at(a),v=at(s),p=this.props.shape;if(!c&&!d&&!h&&!v&&!p)return null;var m=hie(c,d,h,v,this.props);if(!m&&!p)return null;var y=mn(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(be,{className:ce("recharts-reference-area",u)},t.renderRect(p,DP(DP({clipPath:y},oe(this.props,!0)),m)),ft.renderCallByParent(this.props,m))}}])}(T.Component);Pp(_p,"displayName","ReferenceArea");Pp(_p,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Pp(_p,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):ue(e)?r=e(t):r=T.createElement(Xb,jg({},t,{className:"recharts-reference-area-rect"})),r});function JT(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 pie(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return une(n,r)}function vie(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 ih(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 yie(e,t){return JT(e,t+1)}function mie(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 v=n==null?void 0:n[u];if(v===void 0)return{v:JT(n,l)};var p=u,m,y=function(){return m===void 0&&(m=r(v,p)),m},g=v.coordinate,b=u===0||ih(e,g,y,f,s);b||(u=0,f=a,l+=1),b&&(f=g+e*(y()/2+i),u+=l)},d;l<=o.length;)if(d=c(),d)return d.v;return[]}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 LP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LP(Object(r),!0).forEach(function(n){gie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gie(e,t,r){return t=bie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bie(e){var t=xie(e,"string");return Hl(t)=="symbol"?t:t+""}function xie(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)}function wie(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],v,p=function(){return v===void 0&&(v=r(h,d)),v};if(d===a-1){var m=e*(h.coordinate+e*p()/2-u);o[d]=h=Pt(Pt({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate})}else o[d]=h=Pt(Pt({},h),{},{tickCoord:h.coordinate});var y=ih(e,h.tickCoord,p,s,u);y&&(u=h.tickCoord-e*(p()/2+i),o[d]=Pt(Pt({},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=Pt(Pt({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=ih(e,f.tickCoord,function(){return c},u,l);h&&(l=f.tickCoord-e*(c/2+i),a[s-1]=Pt(Pt({},f),{},{isShow:!0}))}for(var v=o?s-1:s,p=function(g){var b=a[g],S,x=function(){return S===void 0&&(S=r(b,g)),S};if(g===0){var w=e*(b.coordinate-e*x()/2-u);a[g]=b=Pt(Pt({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else a[g]=b=Pt(Pt({},b),{},{tickCoord:b.coordinate});var O=ih(e,b.tickCoord,x,u,l);O&&(u=b.tickCoord+e*(x()/2+i),a[g]=Pt(Pt({},b),{},{isShow:!0}))},m=0;m<v;m++)p(m);return a}function ix(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(G(u)||Go.isSsr)return yie(i,typeof u=="number"&&G(u)?u:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",v=f&&h==="width"?zu(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(b,S){var x=ue(l)?l(b.value,S):b.value;return h==="width"?pie(zu(x,{fontSize:t,letterSpacing:r}),v,c):zu(x,{fontSize:t,letterSpacing:r})[h]},m=i.length>=2?It(i[1].coordinate-i[0].coordinate):1,y=vie(o,m,h);return u==="equidistantPreserveStart"?mie(m,y,p,i,a):(u==="preserveStart"||u==="preserveStartEnd"?d=Sie(m,y,p,i,a,u==="preserveStartEnd"):d=wie(m,y,p,i,a),d.filter(function(g){return g.isShow}))}var Oie=["viewBox"],Pie=["viewBox"],_ie=["ticks"];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 Sa(){return Sa=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},Sa.apply(this,arguments)}function FP(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 tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FP(Object(r),!0).forEach(function(n){ox(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zv(e,t){if(e==null)return{};var r=Aie(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 Aie(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 Eie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BP(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 jie(e,t,r){return t&&BP(e.prototype,t),r&&BP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cie(e,t,r){return t=oh(t),$ie(e,ek()?Reflect.construct(t,r||[],oh(e).constructor):t.apply(e,r))}function $ie(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 Tie(e)}function Tie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ek(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ek=function(){return!!e})()}function oh(e){return oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oh(e)}function kie(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 ox(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=Mie(e,"string");return $s(t)=="symbol"?t:t+""}function Mie(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 Js=function(e){function t(r){var n;return Eie(this,t),n=Cie(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return kie(t,e),jie(t,[{key:"shouldComponentUpdate",value:function(n,i){var o=n.viewBox,a=zv(n,Oie),s=this.props,u=s.viewBox,l=zv(s,Pie);return!Ia(o,u)||!Ia(a,l)||!Ia(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,v,p,m,y,g,b=c?-1:1,S=n.tickSize||f,x=G(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":h=v=n.coordinate,m=a+ +!c*u,p=m-b*S,g=p-b*d,y=x;break;case"left":p=m=n.coordinate,v=o+ +!c*s,h=v-b*S,y=h-b*d,g=x;break;case"right":p=m=n.coordinate,v=o+ +c*s,h=v+b*S,y=h+b*d,g=x;break;default:h=v=n.coordinate,m=a+ +c*u,p=m+b*S,g=p+b*d,y=x;break}return{line:{x1:h,y1:p,x2:v,y2:m},tick:{x:y,y:g}}}},{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=tt(tt(tt({},oe(this.props,!1)),oe(f,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var d=+(u==="top"&&!l||u==="bottom"&&l);c=tt(tt({},c),{},{x1:i,y1:o+d*s,x2:i+a,y2:o+d*s})}else{var h=+(u==="left"&&!l||u==="right"&&l);c=tt(tt({},c),{},{x1:i+h*a,y1:o,x2:i+h*a,y2:o+s})}return T.createElement("line",Sa({},c,{className:ce("recharts-cartesian-axis-line",ar(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=ix(tt(tt({},this.props),{},{ticks:n}),i,o),v=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),m=oe(this.props,!1),y=oe(f,!1),g=tt(tt({},m),{},{fill:"none"},oe(u,!1)),b=h.map(function(S,x){var w=a.getTickLineCoord(S),O=w.line,P=w.tick,_=tt(tt(tt(tt({textAnchor:v,verticalAnchor:p},m),{},{stroke:"none",fill:l},y),P),{},{index:x,payload:S,visibleTicksCount:h.length,tickFormatter:c});return T.createElement(be,Sa({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Lo(a.props,S,x)),u&&T.createElement("line",Sa({},g,O,{className:ce("recharts-cartesian-axis-tick-line",ar(u,"className"))})),f&&t.renderTickItem(f,_,"".concat(ue(c)?c(S.value,x):S.value).concat(d||"")))});return T.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=zv(c,_ie),v=d;return ue(u)&&(v=d&&d.length>0?u(this.props):u(h)),a<=0||s<=0||!v||!v.length?null:T.createElement(be,{className:ce("recharts-cartesian-axis",l),ref:function(m){n.layerReference=m}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),ft.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,o){var a,s=ce(i.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(n)?a=T.cloneElement(n,tt(tt({},i),{},{className:s})):ue(n)?a=n(tt(tt({},i),{},{className:s})):a=T.createElement(Fo,Sa({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}(M.Component);ox(Js,"displayName","CartesianAxis");ox(Js,"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 Iie=["x1","y1","x2","y2","key"],Rie=["offset"];function zo(e){"@babel/helpers - typeof";return zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zo(e)}function zP(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?zP(Object(r),!0).forEach(function(n){Nie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nie(e,t,r){return t=Die(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Die(e){var t=Lie(e,"string");return zo(t)=="symbol"?t:t+""}function Lie(e,t){if(zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fo(){return fo=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},fo.apply(this,arguments)}function UP(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}var Bie=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 T.createElement("rect",{x:i,y:o,ry:u,width:a,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function rk(e,t){var r;if(T.isValidElement(e))r=T.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=UP(t,Iie),l=oe(u,!1);l.offset;var f=UP(l,Rie);r=T.createElement("line",fo({},f,{x1:n,y1:i,x2:o,y2:a,fill:"none",key:s}))}return r}function zie(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=Et(Et({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(u),index:u});return rk(i,l)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Uie(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=Et(Et({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(u),index:u});return rk(i,l)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Wie(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 v=!f[h+1],p=v?i+a-d:f[h+1]-d;if(p<=0)return null;var m=h%t.length;return T.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:o,stroke:"none",fill:t[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function qie(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 v=!f[h+1],p=v?o+s-d:f[h+1]-d;if(p<=0)return null;var m=h%n.length;return T.createElement("rect",{key:"react-".concat(h),x:d,y:a,width:p,height:u,stroke:"none",fill:n[m],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var Hie=function(t,r){var n=t.xAxis,i=t.width,o=t.height,a=t.offset;return J$(ix(Et(Et(Et({},Js.defaultProps),n),{},{ticks:Rn(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,r)},Kie=function(t,r){var n=t.yAxis,i=t.width,o=t.height,a=t.offset;return J$(ix(Et(Et(Et({},Js.defaultProps),n),{},{ticks:Rn(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,r)},ra={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function nk(e){var t,r,n,i,o,a,s=ex(),u=tx(),l=Mne(),f=Et(Et({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ra.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:ra.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:ra.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:ra.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:ra.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:ra.verticalFill,x:G(e.x)?e.x:l.left,y:G(e.y)?e.y:l.top,width:G(e.width)?e.width:l.width,height:G(e.height)?e.height:l.height}),c=f.x,d=f.y,h=f.width,v=f.height,p=f.syncWithTicks,m=f.horizontalValues,y=f.verticalValues,g=$ne(),b=Tne();if(!G(h)||h<=0||!G(v)||v<=0||!G(c)||c!==+c||!G(d)||d!==+d)return null;var S=f.verticalCoordinatesGenerator||Hie,x=f.horizontalCoordinatesGenerator||Kie,w=f.horizontalPoints,O=f.verticalPoints;if((!w||!w.length)&&ue(x)){var P=m&&m.length,_=x({yAxis:b?Et(Et({},b),{},{ticks:P?m:b.ticks}):void 0,width:s,height:u,offset:l},P?!0:p);Jr(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(zo(_),"]")),Array.isArray(_)&&(w=_)}if((!O||!O.length)&&ue(S)){var A=y&&y.length,C=S({xAxis:g?Et(Et({},g),{},{ticks:A?y:g.ticks}):void 0,width:s,height:u,offset:l},A?!0:p);Jr(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(zo(C),"]")),Array.isArray(C)&&(O=C)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(Bie,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),T.createElement(zie,fo({},f,{offset:l,horizontalPoints:w,xAxis:g,yAxis:b})),T.createElement(Uie,fo({},f,{offset:l,verticalPoints:O,xAxis:g,yAxis:b})),T.createElement(Wie,fo({},f,{horizontalPoints:w})),T.createElement(qie,fo({},f,{verticalPoints:O})))}nk.displayName="CartesianGrid";var Vie=["type","layout","connectNulls","ref"],Gie=["key"];function Ts(e){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}function WP(e,t){if(e==null)return{};var r=Qie(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 Qie(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 Vu(){return Vu=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},Vu.apply(this,arguments)}function qP(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 Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qP(Object(r),!0).forEach(function(n){Kr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function na(e){return Jie(e)||Zie(e)||Yie(e)||Xie()}function Xie(){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 Yie(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 Zie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jie(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 eoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HP(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,ok(n.key),n)}}function toe(e,t,r){return t&&HP(e.prototype,t),r&&HP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function roe(e,t,r){return t=ah(t),noe(e,ik()?Reflect.construct(t,r||[],ah(e).constructor):t.apply(e,r))}function noe(e,t){if(t&&(Ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ioe(e)}function ioe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ik(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ik=function(){return!!e})()}function ah(e){return ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ah(e)}function ooe(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&&kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kg(e,t)}function Kr(e,t,r){return t=ok(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ok(e){var t=aoe(e,"string");return Ts(t)=="symbol"?t:t+""}function aoe(e,t){if(Ts(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ts(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wc=function(e){function t(){var r;eoe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=roe(this,t,[].concat(i)),Kr(r,"state",{isAnimationFinished:!0,totalLength:0}),Kr(r,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),Kr(r,"getStrokeDasharray",function(a,s,u){var l=u.reduce(function(y,g){return y+g});if(!l)return r.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/l),c=a%l,d=s-a,h=[],v=0,p=0;v<u.length;p+=u[v],++v)if(p+u[v]>c){h=[].concat(na(u.slice(0,v)),[c-p]);break}var m=h.length%2===0?[0,d]:[d];return[].concat(na(t.repeat(u,f)),na(h),m).map(function(y){return"".concat(y,"px")}).join(", ")}),Kr(r,"id",Ks("recharts-line-")),Kr(r,"pathRef",function(a){r.mainCurve=a}),Kr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Kr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return ooe(t,e),toe(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=sr(f,bc);if(!c)return null;var d=function(p,m){return{x:p.x,y:p.y,value:p.value,errorVal:it(p.payload,m)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(be,h,c.map(function(v){return T.cloneElement(v,{key:"bar-".concat(v.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(p,m){var y=Yt(Yt(Yt({key:"dot-".concat(m),r:3},c),d),{},{index:m,cx:p.x,cy:p.y,value:p.value,dataKey:f,payload:p.payload,points:l});return t.renderDotItem(u,y)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return T.createElement(be,Vu({className:"recharts-line-dots",key:"dots"},v),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=WP(s,Vie),d=Yt(Yt(Yt({},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 T.createElement(Bd,Vu({},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,v=a.animateNewValues,p=a.width,m=a.height,y=this.state,g=y.prevPoints,b=y.totalLength;return T.createElement(bn,{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(S){var x=S.t;if(g){var w=g.length/s.length,O=s.map(function(j,I){var N=Math.floor(I*w);if(g[N]){var D=g[N],R=tr(D.x,j.x),F=tr(D.y,j.y);return Yt(Yt({},j),{},{x:R(x),y:F(x)})}if(v){var k=tr(p*2,j.x),L=tr(m/2,j.y);return Yt(Yt({},j),{},{x:k(x),y:L(x)})}return Yt(Yt({},j),{},{x:j.x,y:j.y})});return o.renderCurveStatically(O,n,i)}var P=tr(0,b),_=P(x),A;if(u){var C="".concat(u).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});A=o.getStrokeDasharray(_,b,C)}else A=o.generateSimpleStrokeDasharray(b,_);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||!gc(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,v=i.height,p=i.isAnimationActive,m=i.id;if(o||!s||!s.length)return null;var y=this.state.isAnimationFinished,g=s.length===1,b=ce("recharts-line",u),S=l&&l.allowDataOverflow,x=f&&f.allowDataOverflow,w=S||x,O=le(m)?this.id:m,P=(n=oe(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},_=P.r,A=_===void 0?3:_,C=P.strokeWidth,j=C===void 0?2:C,I=Cz(a)?a:{},N=I.clipDot,D=N===void 0?!0:N,R=A*2+j;return T.createElement(be,{className:b},S||x?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(O)},T.createElement("rect",{x:S?d:d-h/2,y:x?c:c-v/2,width:S?h:h*2,height:x?v:v*2})),!D&&T.createElement("clipPath",{id:"clipPath-dots-".concat(O)},T.createElement("rect",{x:d-R/2,y:c-R/2,width:h+R,height:v+R}))):null,!g&&this.renderCurve(w,O),this.renderErrorBar(w,O),(g||a)&&this.renderDots(w,D,O),(!p||y)&&zn.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(na(n),[0]):n,a=[],s=0;s<i;++s)a=[].concat(na(a),na(o));return a}},{key:"renderDotItem",value:function(n,i){var o;if(T.isValidElement(n))o=T.cloneElement(n,i);else if(ue(n))o=n(i);else{var a=i.key,s=WP(i,Gie),u=ce("recharts-line-dot",typeof n!="boolean"?n.className:"");o=T.createElement(pp,Vu({key:a},s,{className:u}))}return o}}])}(M.PureComponent);Kr(wc,"displayName","Line");Kr(wc,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Go.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Kr(wc,"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 v=it(d,a);return f==="horizontal"?{x:vO({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:le(v)?null:n.scale(v),value:v,payload:d}:{x:le(v)?null:r.scale(v),y:vO({axis:n,ticks:o,bandSize:s,entry:d,index:h}),value:v,payload:d}});return Yt({points:c,layout:f},l)});function ks(e){"@babel/helpers - typeof";return ks=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},ks(e)}function soe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uoe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uk(n.key),n)}}function loe(e,t,r){return t&&uoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function coe(e,t,r){return t=sh(t),foe(e,ak()?Reflect.construct(t,r||[],sh(e).constructor):t.apply(e,r))}function foe(e,t){if(t&&(ks(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return doe(e)}function doe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ak(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ak=function(){return!!e})()}function sh(e){return sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sh(e)}function hoe(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 sk(e,t,r){return t=uk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uk(e){var t=poe(e,"string");return ks(t)=="symbol"?t:t+""}function poe(e,t){if(ks(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ks(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)}function voe(e){var t=e.xAxisId,r=ex(),n=tx(),i=HT(t);return i==null?null:M.createElement(Js,Ig({},i,{className:ce("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(a){return Rn(a,!0)}}))}var Ap=function(e){function t(){return soe(this,t),coe(this,t,arguments)}return hoe(t,e),loe(t,[{key:"render",value:function(){return M.createElement(voe,this.props)}}])}(M.Component);sk(Ap,"displayName","XAxis");sk(Ap,"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 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 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,fk(n.key),n)}}function goe(e,t,r){return t&&moe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function boe(e,t,r){return t=uh(t),xoe(e,lk()?Reflect.construct(t,r||[],uh(e).constructor):t.apply(e,r))}function xoe(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 woe(e)}function woe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lk=function(){return!!e})()}function uh(e){return uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uh(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&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rg(e,t)}function ck(e,t,r){return t=fk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fk(e){var t=Ooe(e,"string");return Ms(t)=="symbol"?t:t+""}function Ooe(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)}function Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ng.apply(this,arguments)}var Poe=function(t){var r=t.yAxisId,n=ex(),i=tx(),o=KT(r);return o==null?null:M.createElement(Js,Ng({},o,{className:ce("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Rn(s,!0)}}))},Ep=function(e){function t(){return yoe(this,t),boe(this,t,arguments)}return Soe(t,e),goe(t,[{key:"render",value:function(){return M.createElement(Poe,this.props)}}])}(M.Component);ck(Ep,"displayName","YAxis");ck(Ep,"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 KP(e){return joe(e)||Eoe(e)||Aoe(e)||_oe()}function _oe(){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 Aoe(e,t){if(e){if(typeof e=="string")return Dg(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 Dg(e,t)}}function Eoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function joe(e){if(Array.isArray(e))return Dg(e)}function Dg(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 Lg=function(t,r,n,i,o){var a=sr(t,nx),s=sr(t,Op),u=[].concat(KP(a),KP(s)),l=sr(t,_p),f="".concat(i,"Id"),c=i[0],d=r;if(u.length&&(d=u.reduce(function(p,m){if(m.props[f]===n&&mn(m.props,"extendDomain")&&G(m.props[c])){var y=m.props[c];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},d)),l.length){var h="".concat(c,"1"),v="".concat(c,"2");d=l.reduce(function(p,m){if(m.props[f]===n&&mn(m.props,"extendDomain")&&G(m.props[h])&&G(m.props[v])){var y=m.props[h],g=m.props[v];return[Math.min(p[0],y,g),Math.max(p[1],y,g)]}return p},d)}return o&&o.length&&(d=o.reduce(function(p,m){return G(m)?[Math.min(p[0],m),Math.max(p[1],m)]:p},d)),d},dk={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),v=r?r+l:l;return u._events[v]?u._events[v].fn?u._events[v]=[u._events[v],h]:u._events[v].push(h):(u._events[v]=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,v=new Array(h);d<h;d++)v[d]=c[d].fn;return v},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,v){var p=r?r+l:l;if(!this._events[p])return!1;var m=this._events[p],y=arguments.length,g,b;if(m.fn){switch(m.once&&this.removeListener(l,m.fn,void 0,!0),y){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,f),!0;case 3:return m.fn.call(m.context,f,c),!0;case 4:return m.fn.call(m.context,f,c,d),!0;case 5:return m.fn.call(m.context,f,c,d,h),!0;case 6:return m.fn.call(m.context,f,c,d,h,v),!0}for(b=1,g=new Array(y-1);b<y;b++)g[b-1]=arguments[b];m.fn.apply(m.context,g)}else{var S=m.length,x;for(b=0;b<S;b++)switch(m[b].once&&this.removeListener(l,m[b].fn,void 0,!0),y){case 1:m[b].fn.call(m[b].context);break;case 2:m[b].fn.call(m[b].context,f);break;case 3:m[b].fn.call(m[b].context,f,c);break;case 4:m[b].fn.call(m[b].context,f,c,d);break;default:if(!g)for(x=1,g=new Array(y-1);x<y;x++)g[x-1]=arguments[x];m[b].fn.apply(m[b].context,g)}}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 v=this._events[h];if(v.fn)v.fn===f&&(!d||v.once)&&(!c||v.context===c)&&a(this,h);else{for(var p=0,m=[],y=v.length;p<y;p++)(v[p].fn!==f||d&&!v[p].once||c&&v[p].context!==c)&&m.push(v[p]);m.length?this._events[h]=m.length===1?m[0]:m: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})(dk);var Coe=dk.exports;const $oe=Ae(Coe);var Uv=new $oe,Wv="recharts.syncMouseEvents";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 Toe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function koe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hk(n.key),n)}}function Moe(e,t,r){return t&&koe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qv(e,t,r){return t=hk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hk(e){var t=Ioe(e,"string");return Kl(t)=="symbol"?t:t+""}function Ioe(e,t){if(Kl(e)!="object"||!e)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 String(e)}var Roe=function(){function e(){Toe(this,e),qv(this,"activeIndex",0),qv(this,"coordinateList",[]),qv(this,"layout","horizontal")}return Moe(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 Noe(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&&G(n)&&G(i))return!0}return!1}function Doe(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 pk(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 Loe(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 pk(t);return[{x:n,y:i},{x:o,y:a}]}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 VP(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 sf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VP(Object(r),!0).forEach(function(n){Foe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Foe(e,t,r){return t=Boe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Boe(e){var t=zoe(e,"string");return Vl(t)=="symbol"?t:t+""}function zoe(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)}function Uoe(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 v,p=Bd;if(d==="ScatterChart")v=a,p=oee;else if(d==="BarChart")v=Doe(c,a,u,f),p=Xb;else if(c==="radial"){var m=pk(a),y=m.cx,g=m.cy,b=m.radius,S=m.startAngle,x=m.endAngle;v={cx:y,cy:g,startAngle:S,endAngle:x,innerRadius:b,outerRadius:b},p=cT}else v={points:Loe(c,a,u)},p=Bd;var w=sf(sf(sf(sf({stroke:"#ccc",pointerEvents:"none"},u),v),oe(h,!1)),{},{payload:s,payloadIndex:l,className:ce("recharts-tooltip-cursor",h.className)});return M.isValidElement(h)?M.cloneElement(h,w):M.createElement(p,w)}var Woe=["item"],qoe=["children","className","width","height","style","compact","title","desc"];function Is(e){"@babel/helpers - typeof";return Is=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},Is(e)}function Oa(){return Oa=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},Oa.apply(this,arguments)}function GP(e,t){return Voe(e)||Koe(e,t)||yk(e,t)||Hoe()}function Hoe(){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 Koe(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 Voe(e){if(Array.isArray(e))return e}function QP(e,t){if(e==null)return{};var r=Goe(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 Goe(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 Qoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xoe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mk(n.key),n)}}function Yoe(e,t,r){return t&&Xoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zoe(e,t,r){return t=lh(t),Joe(e,vk()?Reflect.construct(t,r||[],lh(e).constructor):t.apply(e,r))}function Joe(e,t){if(t&&(Is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eae(e)}function eae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vk=function(){return!!e})()}function lh(e){return lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lh(e)}function tae(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&&Fg(e,t)}function Fg(e,t){return Fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fg(e,t)}function Rs(e){return iae(e)||nae(e)||yk(e)||rae()}function rae(){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 yk(e,t){if(e){if(typeof e=="string")return Bg(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 Bg(e,t)}}function nae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iae(e){if(Array.isArray(e))return Bg(e)}function Bg(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 XP(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?XP(Object(r),!0).forEach(function(n){se(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function se(e,t,r){return t=mk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mk(e){var t=oae(e,"string");return Is(t)=="symbol"?t:t+""}function oae(e,t){if(Is(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Is(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aae={xAxis:["bottom","top"],yAxis:["left","right"]},sae={width:"100%",height:"100%"},gk={x:0,y:0};function uf(e){return e}var uae=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},lae=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 gk},jp=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(Rs(s),Rs(l)):s},[]);return a.length>0?a:t&&t.length&&G(i)&&G(o)?t.slice(i,o+1):[]};function bk(e){return e==="number"?[0,"auto"]:void 0}var zg=function(t,r,n,i){var o=t.graphicalItems,a=t.tooltipAxis,s=jp(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=ld(h,a.dataKey,i)}else d=c&&c[n]||s[n];return d?[].concat(Rs(u),[iT(l,d)]):u},[])},YP=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},a=uae(o,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,f=CX(a,s,l,u);if(f>=0&&l){var c=l[f]&&l[f].value,d=zg(t,r,f,c),h=lae(n,s,f,o);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:h}}return null},cae=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=Z$(f,o);return n.reduce(function(v,p){var m,y=p.type.defaultProps!==void 0?B(B({},p.type.defaultProps),p.props):p.props,g=y.type,b=y.dataKey,S=y.allowDataOverflow,x=y.allowDuplicatedCategory,w=y.scale,O=y.ticks,P=y.includeHidden,_=y[a];if(v[_])return v;var A=jp(t.data,{graphicalItems:i.filter(function(W){var H,X=a in W.props?W.props[a]:(H=W.type.defaultProps)===null||H===void 0?void 0:H[a];return X===_}),dataStartIndex:u,dataEndIndex:l}),C=A.length,j,I,N;Noe(y.domain,S,g)&&(j=tg(y.domain,null,S),h&&(g==="number"||w!=="auto")&&(N=Wu(A,b,"category")));var D=bk(g);if(!j||j.length===0){var R,F=(R=y.domain)!==null&&R!==void 0?R:D;if(b){if(j=Wu(A,b,g),g==="category"&&h){var k=bz(j);x&&k?(I=j,j=Xd(0,C)):x||(j=bO(F,j,p).reduce(function(W,H){return W.indexOf(H)>=0?W:[].concat(Rs(W),[H])},[]))}else if(g==="category")x?j=j.filter(function(W){return W!==""&&!le(W)}):j=bO(F,j,p).reduce(function(W,H){return W.indexOf(H)>=0||H===""||le(H)?W:[].concat(Rs(W),[H])},[]);else if(g==="number"){var L=IX(A,i.filter(function(W){var H,X,Z=a in W.props?W.props[a]:(H=W.type.defaultProps)===null||H===void 0?void 0:H[a],ne="hide"in W.props?W.props.hide:(X=W.type.defaultProps)===null||X===void 0?void 0:X.hide;return Z===_&&(P||!ne)}),b,o,f);L&&(j=L)}h&&(g==="number"||w!=="auto")&&(N=Wu(A,b,"category"))}else h?j=Xd(0,C):s&&s[_]&&s[_].hasStack&&g==="number"?j=d==="expand"?[0,1]:nT(s[_].stackGroups,u,l):j=Y$(A,i.filter(function(W){var H=a in W.props?W.props[a]:W.type.defaultProps[a],X="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return H===_&&(P||!X)}),g,f,!0);if(g==="number")j=Lg(c,j,_,o,O),F&&(j=tg(F,j,S));else if(g==="category"&&F){var z=F,U=j.every(function(W){return z.indexOf(W)>=0});U&&(j=z)}}return B(B({},v),{},se({},_,B(B({},y),{},{axisType:o,domain:j,categoricalDomain:N,duplicateDomain:I,originalDomain:(m=y.domain)!==null&&m!==void 0?m:D,isCategorical:h,layout:f})))},{})},fae=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=jp(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),h=d.length,v=Z$(f,o),p=-1;return n.reduce(function(m,y){var g=y.type.defaultProps!==void 0?B(B({},y.type.defaultProps),y.props):y.props,b=g[a],S=bk("number");if(!m[b]){p++;var x;return v?x=Xd(0,h):s&&s[b]&&s[b].hasStack?(x=nT(s[b].stackGroups,u,l),x=Lg(c,x,b,o)):(x=tg(S,Y$(d,n.filter(function(w){var O,P,_=a in w.props?w.props[a]:(O=w.type.defaultProps)===null||O===void 0?void 0:O[a],A="hide"in w.props?w.props.hide:(P=w.type.defaultProps)===null||P===void 0?void 0:P.hide;return _===b&&!A}),"number",f),i.defaultProps.allowDataOverflow),x=Lg(c,x,b,o)),B(B({},m),{},se({},b,B(B({axisType:o},i.defaultProps),{},{hide:!0,orientation:ar(aae,"".concat(o,".").concat(p%2),null),domain:x,originalDomain:S,isCategorical:v,layout:f})))}return m},{})},dae=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=sr(f,o),h={};return d&&d.length?h=cae(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:u,dataEndIndex:l}):a&&a.length&&(h=fae(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:u,dataEndIndex:l})),h},hae=function(t){var r=ci(t),n=Rn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Ob(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Dd(r,n)}},ZP=function(t){var r=t.children,n=t.defaultShowTooltip,i=er(r,_s),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}},pae=function(t){return!t||!t.length?!1:t.some(function(r){var n=Fn(r&&r.type);return n&&n.indexOf("Bar")>=0})},JP=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"}},vae=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=er(c,_s),v=er(c,Ra),p=Object.keys(u).reduce(function(x,w){var O=u[w],P=O.orientation;return!O.mirror&&!O.hide?B(B({},x),{},se({},P,x[P]+O.width)):x},{left:d.left||0,right:d.right||0}),m=Object.keys(a).reduce(function(x,w){var O=a[w],P=O.orientation;return!O.mirror&&!O.hide?B(B({},x),{},se({},P,ar(x,"".concat(P))+O.height)):x},{top:d.top||0,bottom:d.bottom||0}),y=B(B({},m),p),g=y.bottom;h&&(y.bottom+=h.props.height||_s.defaultProps.height),v&&r&&(y=kX(y,i,n,r));var b=l-y.left-y.right,S=f-y.top-y.bottom;return B(B({brushBottom:g},y),{},{width:Math.max(b,0),height:Math.max(S,0)})},yae=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},xk=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(y,g){var b=g.graphicalItems,S=g.stackGroups,x=g.offset,w=g.updateId,O=g.dataStartIndex,P=g.dataEndIndex,_=y.barSize,A=y.layout,C=y.barGap,j=y.barCategoryGap,I=y.maxBarSize,N=JP(A),D=N.numericAxisName,R=N.cateAxisName,F=pae(b),k=[];return b.forEach(function(L,z){var U=jp(y.data,{graphicalItems:[L],dataStartIndex:O,dataEndIndex:P}),W=L.type.defaultProps!==void 0?B(B({},L.type.defaultProps),L.props):L.props,H=W.dataKey,X=W.maxBarSize,Z=W["".concat(D,"Id")],ne=W["".concat(R,"Id")],he={},pe=u.reduce(function(nn,we){var ut=g["".concat(we.axisType,"Map")],Dr=W["".concat(we.axisType,"Id")];ut&&ut[Dr]||we.axisType==="zAxis"||Ct(!1);var Cp=ut[Dr];return B(B({},nn),{},se(se({},we.axisType,Cp),"".concat(we.axisType,"Ticks"),Rn(Cp)))},he),K=pe[R],re=pe["".concat(R,"Ticks")],ie=S&&S[Z]&&S[Z].hasStack&&WX(L,S[Z].stackGroups),q=Fn(L.type).indexOf("Bar")>=0,Pe=Dd(K,re),ve=[],Ge=F&&$X({barSize:_,stackGroups:S,totalSize:yae(pe,R)});if(q){var Qe,xt,Xt=le(X)?I:X,Nr=(Qe=(xt=Dd(K,re,!0))!==null&&xt!==void 0?xt:Xt)!==null&&Qe!==void 0?Qe:0;ve=TX({barGap:C,barCategoryGap:j,bandSize:Nr!==Pe?Nr:Pe,sizeList:Ge[ne],maxBarSize:Xt}),Nr!==Pe&&(ve=ve.map(function(nn){return B(B({},nn),{},{position:B(B({},nn.position),{},{offset:nn.position.offset-Nr/2})})}))}var Gi=L&&L.type&&L.type.getComposedData;Gi&&k.push({props:B(B({},Gi(B(B({},pe),{},{displayedData:U,props:y,dataKey:H,item:L,bandSize:Pe,barPosition:ve,offset:x,stackedData:ie,layout:A,dataStartIndex:O,dataEndIndex:P}))),{},se(se(se({key:L.key||"item-".concat(z)},D,pe[D]),R,pe[R]),"animationId",w)),childIndex:kz(L,y.children),item:L})}),k},h=function(y,g){var b=y.props,S=y.dataStartIndex,x=y.dataEndIndex,w=y.updateId;if(!f1({props:b}))return null;var O=b.children,P=b.layout,_=b.stackOffset,A=b.data,C=b.reverseStackOrder,j=JP(P),I=j.numericAxisName,N=j.cateAxisName,D=sr(O,n),R=zX(A,D,"".concat(I,"Id"),"".concat(N,"Id"),_,C),F=u.reduce(function(W,H){var X="".concat(H.axisType,"Map");return B(B({},W),{},se({},X,dae(b,B(B({},H),{},{graphicalItems:D,stackGroups:H.axisType===I&&R,dataStartIndex:S,dataEndIndex:x}))))},{}),k=vae(B(B({},F),{},{props:b,graphicalItems:D}),g==null?void 0:g.legendBBox);Object.keys(F).forEach(function(W){F[W]=f(b,F[W],k,W.replace("Map",""),r)});var L=F["".concat(N,"Map")],z=hae(L),U=d(b,B(B({},F),{},{dataStartIndex:S,dataEndIndex:x,updateId:w,graphicalItems:D,stackGroups:R,offset:k}));return B(B({formattedGraphicalItems:U,graphicalItems:D,offset:k,stackGroups:R},z),F)},v=function(m){function y(g){var b,S,x;return Qoe(this,y),x=Zoe(this,y,[g]),se(x,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),se(x,"accessibilityManager",new Roe),se(x,"handleLegendBBoxUpdate",function(w){if(w){var O=x.state,P=O.dataStartIndex,_=O.dataEndIndex,A=O.updateId;x.setState(B({legendBBox:w},h({props:x.props,dataStartIndex:P,dataEndIndex:_,updateId:A},B(B({},x.state),{},{legendBBox:w}))))}}),se(x,"handleReceiveSyncEvent",function(w,O,P){if(x.props.syncId===w){if(P===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(O)}}),se(x,"handleBrushChange",function(w){var O=w.startIndex,P=w.endIndex;if(O!==x.state.dataStartIndex||P!==x.state.dataEndIndex){var _=x.state.updateId;x.setState(function(){return B({dataStartIndex:O,dataEndIndex:P},h({props:x.props,dataStartIndex:O,dataEndIndex:P,updateId:_},x.state))}),x.triggerSyncEvent({dataStartIndex:O,dataEndIndex:P})}}),se(x,"handleMouseEnter",function(w){var O=x.getMouseInfo(w);if(O){var P=B(B({},O),{},{isTooltipActive:!0});x.setState(P),x.triggerSyncEvent(P);var _=x.props.onMouseEnter;ue(_)&&_(P,w)}}),se(x,"triggeredAfterMouseMove",function(w){var O=x.getMouseInfo(w),P=O?B(B({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(P),x.triggerSyncEvent(P);var _=x.props.onMouseMove;ue(_)&&_(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 O={isTooltipActive:!1};x.setState(O),x.triggerSyncEvent(O);var P=x.props.onMouseLeave;ue(P)&&P(O,w)}),se(x,"handleOuterEvent",function(w){var O=Tz(w),P=ar(x.props,"".concat(O));if(O&&ue(P)){var _,A;/.*touch.*/i.test(O)?A=x.getMouseInfo(w.changedTouches[0]):A=x.getMouseInfo(w),P((_=A)!==null&&_!==void 0?_:{},w)}}),se(x,"handleClick",function(w){var O=x.getMouseInfo(w);if(O){var P=B(B({},O),{},{isTooltipActive:!0});x.setState(P),x.triggerSyncEvent(P);var _=x.props.onClick;ue(_)&&_(P,w)}}),se(x,"handleMouseDown",function(w){var O=x.props.onMouseDown;if(ue(O)){var P=x.getMouseInfo(w);O(P,w)}}),se(x,"handleMouseUp",function(w){var O=x.props.onMouseUp;if(ue(O)){var P=x.getMouseInfo(w);O(P,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 O=x.props.onDoubleClick;if(ue(O)){var P=x.getMouseInfo(w);O(P,w)}}),se(x,"handleContextMenu",function(w){var O=x.props.onContextMenu;if(ue(O)){var P=x.getMouseInfo(w);O(P,w)}}),se(x,"triggerSyncEvent",function(w){x.props.syncId!==void 0&&Uv.emit(Wv,x.props.syncId,w,x.eventEmitterSymbol)}),se(x,"applySyncEvent",function(w){var O=x.props,P=O.layout,_=O.syncMethod,A=x.state.updateId,C=w.dataStartIndex,j=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)x.setState(B({dataStartIndex:C,dataEndIndex:j},h({props:x.props,dataStartIndex:C,dataEndIndex:j,updateId:A},x.state)));else if(w.activeTooltipIndex!==void 0){var I=w.chartX,N=w.chartY,D=w.activeTooltipIndex,R=x.state,F=R.offset,k=R.tooltipTicks;if(!F)return;if(typeof _=="function")D=_(k,w);else if(_==="value"){D=-1;for(var L=0;L<k.length;L++)if(k[L].value===w.activeLabel){D=L;break}}var z=B(B({},F),{},{x:F.left,y:F.top}),U=Math.min(I,z.x+z.width),W=Math.min(N,z.y+z.height),H=k[D]&&k[D].value,X=zg(x.state,x.props.data,D),Z=k[D]?{x:P==="horizontal"?k[D].coordinate:U,y:P==="horizontal"?W:k[D].coordinate}:gk;x.setState(B(B({},w),{},{activeLabel:H,activeCoordinate:Z,activePayload:X,activeTooltipIndex:D}))}else x.setState(w)}),se(x,"renderCursor",function(w){var O,P=x.state,_=P.isTooltipActive,A=P.activeCoordinate,C=P.activePayload,j=P.offset,I=P.activeTooltipIndex,N=P.tooltipAxisBandSize,D=x.getTooltipEventType(),R=(O=w.props.active)!==null&&O!==void 0?O:_,F=x.props.layout,k=w.key||"_recharts-cursor";return T.createElement(Uoe,{key:k,activeCoordinate:A,activePayload:C,activeTooltipIndex:I,chartName:r,element:w,isActive:R,layout:F,offset:j,tooltipAxisBandSize:N,tooltipEventType:D})}),se(x,"renderPolarAxis",function(w,O,P){var _=ar(w,"type.axisType"),A=ar(x.state,"".concat(_,"Map")),C=w.type.defaultProps,j=C!==void 0?B(B({},C),w.props):w.props,I=A&&A[j["".concat(_,"Id")]];return M.cloneElement(w,B(B({},I),{},{className:ce(_,I.className),key:w.key||"".concat(O,"-").concat(P),ticks:Rn(I,!0)}))}),se(x,"renderPolarGrid",function(w){var O=w.props,P=O.radialLines,_=O.polarAngles,A=O.polarRadius,C=x.state,j=C.radiusAxisMap,I=C.angleAxisMap,N=ci(j),D=ci(I),R=D.cx,F=D.cy,k=D.innerRadius,L=D.outerRadius;return M.cloneElement(w,{polarAngles:Array.isArray(_)?_:Rn(D,!0).map(function(z){return z.coordinate}),polarRadius:Array.isArray(A)?A:Rn(N,!0).map(function(z){return z.coordinate}),cx:R,cy:F,innerRadius:k,outerRadius:L,key:w.key||"polar-grid",radialLines:P})}),se(x,"renderLegend",function(){var w=x.state.formattedGraphicalItems,O=x.props,P=O.children,_=O.width,A=O.height,C=x.props.margin||{},j=_-(C.left||0)-(C.right||0),I=Q$({children:P,formattedGraphicalItems:w,legendWidth:j,legendContent:l});if(!I)return null;var N=I.item,D=QP(I,Woe);return M.cloneElement(N,B(B({},D),{},{chartWidth:_,chartHeight:A,margin:C,onBBoxUpdate:x.handleLegendBBoxUpdate}))}),se(x,"renderTooltip",function(){var w,O=x.props,P=O.children,_=O.accessibilityLayer,A=er(P,qr);if(!A)return null;var C=x.state,j=C.isTooltipActive,I=C.activeCoordinate,N=C.activePayload,D=C.activeLabel,R=C.offset,F=(w=A.props.active)!==null&&w!==void 0?w:j;return M.cloneElement(A,{viewBox:B(B({},R),{},{x:R.left,y:R.top}),active:F,label:D,payload:F?N:[],coordinate:I,accessibilityLayer:_})}),se(x,"renderBrush",function(w){var O=x.props,P=O.margin,_=O.data,A=x.state,C=A.offset,j=A.dataStartIndex,I=A.dataEndIndex,N=A.updateId;return M.cloneElement(w,{key:w.key||"_recharts-brush",onChange:rf(x.handleBrushChange,w.props.onChange),data:_,x:G(w.props.x)?w.props.x:C.left,y:G(w.props.y)?w.props.y:C.top+C.height+C.brushBottom-(P.bottom||0),width:G(w.props.width)?w.props.width:C.width,startIndex:j,endIndex:I,updateId:"brush-".concat(N)})}),se(x,"renderReferenceElement",function(w,O,P){if(!w)return null;var _=x,A=_.clipPathId,C=x.state,j=C.xAxisMap,I=C.yAxisMap,N=C.offset,D=w.type.defaultProps||{},R=w.props,F=R.xAxisId,k=F===void 0?D.xAxisId:F,L=R.yAxisId,z=L===void 0?D.yAxisId:L;return M.cloneElement(w,{key:w.key||"".concat(O,"-").concat(P),xAxis:j[k],yAxis:I[z],viewBox:{x:N.left,y:N.top,width:N.width,height:N.height},clipPathId:A})}),se(x,"renderActivePoints",function(w){var O=w.item,P=w.activePoint,_=w.basePoint,A=w.childIndex,C=w.isRange,j=[],I=O.props.key,N=O.item.type.defaultProps!==void 0?B(B({},O.item.type.defaultProps),O.item.props):O.item.props,D=N.activeDot,R=N.dataKey,F=B(B({index:A,dataKey:R,cx:P.x,cy:P.y,r:4,fill:Qb(O.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},oe(D,!1)),cd(D));return j.push(y.renderActiveDot(D,F,"".concat(I,"-activePoint-").concat(A))),_?j.push(y.renderActiveDot(D,B(B({},F),{},{cx:_.x,cy:_.y}),"".concat(I,"-basePoint-").concat(A))):C&&j.push(null),j}),se(x,"renderGraphicChild",function(w,O,P){var _=x.filterFormatItem(w,O,P);if(!_)return null;var A=x.getTooltipEventType(),C=x.state,j=C.isTooltipActive,I=C.tooltipAxis,N=C.activeTooltipIndex,D=C.activeLabel,R=x.props.children,F=er(R,qr),k=_.props,L=k.points,z=k.isRange,U=k.baseLine,W=_.item.type.defaultProps!==void 0?B(B({},_.item.type.defaultProps),_.item.props):_.item.props,H=W.activeDot,X=W.hide,Z=W.activeBar,ne=W.activeShape,he=!!(!X&&j&&F&&(H||Z||ne)),pe={};A!=="axis"&&F&&F.props.trigger==="click"?pe={onClick:rf(x.handleItemMouseEnter,w.props.onClick)}:A!=="axis"&&(pe={onMouseLeave:rf(x.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:rf(x.handleItemMouseEnter,w.props.onMouseEnter)});var K=M.cloneElement(w,B(B({},_.props),pe));function re(we){return typeof I.dataKey=="function"?I.dataKey(we.payload):null}if(he)if(N>=0){var ie,q;if(I.dataKey&&!I.allowDuplicatedCategory){var Pe=typeof I.dataKey=="function"?re:"payload.".concat(I.dataKey.toString());ie=ld(L,Pe,D),q=z&&U&&ld(U,Pe,D)}else ie=L==null?void 0:L[N],q=z&&U&&U[N];if(ne||Z){var ve=w.props.activeIndex!==void 0?w.props.activeIndex:N;return[M.cloneElement(w,B(B(B({},_.props),pe),{},{activeIndex:ve})),null,null]}if(!le(ie))return[K].concat(Rs(x.renderActivePoints({item:_,activePoint:ie,basePoint:q,childIndex:N,isRange:z})))}else{var Ge,Qe=(Ge=x.getItemByXY(x.state.activeCoordinate))!==null&&Ge!==void 0?Ge:{graphicalItem:K},xt=Qe.graphicalItem,Xt=xt.item,Nr=Xt===void 0?w:Xt,Gi=xt.childIndex,nn=B(B(B({},_.props),pe),{},{activeIndex:Gi});return[M.cloneElement(Nr,nn),null,null]}return z?[K,null,null]:[K,null]}),se(x,"renderCustomized",function(w,O,P){return M.cloneElement(w,B(B({key:"recharts-customized-".concat(P)},x.props),x.state))}),se(x,"renderMap",{CartesianGrid:{handler:uf,once:!0},ReferenceArea:{handler:x.renderReferenceElement},ReferenceLine:{handler:uf},ReferenceDot:{handler:x.renderReferenceElement},XAxis:{handler:uf},YAxis:{handler:uf},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=g.id)!==null&&b!==void 0?b:Ks("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=GC(x.triggeredAfterMouseMove,(S=g.throttleDelay)!==null&&S!==void 0?S:1e3/60),x.state={},x}return tae(y,m),Yoe(y,[{key:"componentDidMount",value:function(){var b,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,S=b.children,x=b.data,w=b.height,O=b.layout,P=er(S,qr);if(P){var _=P.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var A=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,C=zg(this.state,x,_,A),j=this.state.tooltipTicks[_].coordinate,I=(this.state.offset.top+w)/2,N=O==="horizontal",D=N?{x:j,y:I}:{y:j,x:I},R=this.state.formattedGraphicalItems.find(function(k){var L=k.item;return L.type.name==="Scatter"});R&&(D=B(B({},D),R.props.points[_].tooltipPosition),C=R.props.points[_].tooltipPayload);var F={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:A,activePayload:C,activeCoordinate:D};this.setState(F),this.renderCursor(P),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var 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){ym([er(b.children,qr)],[er(this.props.children,qr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=er(this.props.children,qr);if(b&&typeof b.props.shared=="boolean"){var S=b.props.shared?"axis":"item";return s.indexOf(S)>=0?S:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var S=this.container,x=S.getBoundingClientRect(),w=i7(x),O={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},P=x.width/S.offsetWidth||1,_=this.inRange(O.chartX,O.chartY,P);if(!_)return null;var A=this.state,C=A.xAxisMap,j=A.yAxisMap,I=this.getTooltipEventType(),N=YP(this.state,this.props.data,this.props.layout,_);if(I!=="axis"&&C&&j){var D=ci(C).scale,R=ci(j).scale,F=D&&D.invert?D.invert(O.chartX):null,k=R&&R.invert?R.invert(O.chartY):null;return B(B({},O),{},{xValue:F,yValue:k},N)}return N?B(B({},O),N):null}},{key:"inRange",value:function(b,S){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,O=b/x,P=S/x;if(w==="horizontal"||w==="vertical"){var _=this.state.offset,A=O>=_.left&&O<=_.left+_.width&&P>=_.top&&P<=_.top+_.height;return A?{x:O,y:P}:null}var C=this.state,j=C.angleAxisMap,I=C.radiusAxisMap;if(j&&I){var N=ci(j);return SO({x:O,y:P},N)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,S=this.getTooltipEventType(),x=er(b,qr),w={};x&&S==="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 O=cd(this.props,this.handleOuterEvent);return B(B({},O),w)}},{key:"addListener",value:function(){Uv.on(Wv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Uv.removeListener(Wv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,S,x){for(var w=this.state.formattedGraphicalItems,O=0,P=w.length;O<P;O++){var _=w[O];if(_.item===b||_.props.key===b.key||S===Fn(_.item.type)&&x===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,S=this.state.offset,x=S.left,w=S.top,O=S.height,P=S.width;return T.createElement("defs",null,T.createElement("clipPath",{id:b},T.createElement("rect",{x,y:w,height:O,width:P})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(S,x){var w=GP(x,2),O=w[0],P=w[1];return B(B({},S),{},se({},O,P.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(S,x){var w=GP(x,2),O=w[0],P=w[1];return B(B({},S),{},se({},O,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[b])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(b){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[b])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(b){var S=this.state,x=S.formattedGraphicalItems,w=S.activeItem;if(x&&x.length)for(var O=0,P=x.length;O<P;O++){var _=x[O],A=_.props,C=_.item,j=C.type.defaultProps!==void 0?B(B({},C.type.defaultProps),C.props):C.props,I=Fn(C.type);if(I==="Bar"){var N=(A.data||[]).find(function(k){return FJ(b,k)});if(N)return{graphicalItem:_,payload:N}}else if(I==="RadialBar"){var D=(A.data||[]).find(function(k){return SO(b,k)});if(D)return{graphicalItem:_,payload:D}}else if(bp(_,w)||xp(_,w)||zl(_,w)){var R=Ete({graphicalItem:_,activeTooltipItem:w,itemData:j.data}),F=j.activeIndex===void 0?R:j.activeIndex;return{graphicalItem:B(B({},_),{},{childIndex:F}),payload:zl(_,w)?j.data[R]:_.props.data[R]}}}return null}},{key:"render",value:function(){var b=this;if(!f1(this))return null;var S=this.props,x=S.children,w=S.className,O=S.width,P=S.height,_=S.style,A=S.compact,C=S.title,j=S.desc,I=QP(S,qoe),N=oe(I,!1);if(A)return T.createElement($P,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(gm,Oa({},N,{width:O,height:P,title:C,desc:j}),this.renderClipPath(),h1(x,this.renderMap)));if(this.props.accessibilityLayer){var D,R;N.tabIndex=(D=this.props.tabIndex)!==null&&D!==void 0?D:0,N.role=(R=this.props.role)!==null&&R!==void 0?R:"application",N.onKeyDown=function(k){b.accessibilityManager.keyboardEvent(k)},N.onFocus=function(){b.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return T.createElement($P,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",Oa({className:ce("recharts-wrapper",w),style:B({position:"relative",cursor:"default",width:O,height:P},_)},F,{ref:function(L){b.container=L}}),T.createElement(gm,Oa({},N,{width:O,height:P,title:C,desc:j,style:sae}),this.renderClipPath(),h1(x,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(M.Component);se(v,"displayName",r),se(v,"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(v,"getDerivedStateFromProps",function(m,y){var g=m.dataKey,b=m.data,S=m.children,x=m.width,w=m.height,O=m.layout,P=m.stackOffset,_=m.margin,A=y.dataStartIndex,C=y.dataEndIndex;if(y.updateId===void 0){var j=ZP(m);return B(B(B({},j),{},{updateId:0},h(B(B({props:m},j),{},{updateId:0}),y)),{},{prevDataKey:g,prevData:b,prevWidth:x,prevHeight:w,prevLayout:O,prevStackOffset:P,prevMargin:_,prevChildren:S})}if(g!==y.prevDataKey||b!==y.prevData||x!==y.prevWidth||w!==y.prevHeight||O!==y.prevLayout||P!==y.prevStackOffset||!Ia(_,y.prevMargin)){var I=ZP(m),N={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},D=B(B({},YP(y,b,O)),{},{updateId:y.updateId+1}),R=B(B(B({},I),N),D);return B(B(B({},R),h(B({props:m},R),y)),{},{prevDataKey:g,prevData:b,prevWidth:x,prevHeight:w,prevLayout:O,prevStackOffset:P,prevMargin:_,prevChildren:S})}if(!ym(S,y.prevChildren)){var F,k,L,z,U=er(S,_s),W=U&&(F=(k=U.props)===null||k===void 0?void 0:k.startIndex)!==null&&F!==void 0?F:A,H=U&&(L=(z=U.props)===null||z===void 0?void 0:z.endIndex)!==null&&L!==void 0?L:C,X=W!==A||H!==C,Z=!le(b),ne=Z&&!X?y.updateId:y.updateId+1;return B(B({updateId:ne},h(B(B({props:m},y),{},{updateId:ne,dataStartIndex:W,dataEndIndex:H}),y)),{},{prevChildren:S,dataStartIndex:W,dataEndIndex:H})}return null}),se(v,"renderActiveDot",function(m,y,g){var b;return M.isValidElement(m)?b=M.cloneElement(m,y):ue(m)?b=m(y):b=T.createElement(pp,y),T.createElement(be,{className:"recharts-active-dot",key:g},b)});var p=M.forwardRef(function(y,g){return T.createElement(v,Oa({},y,{ref:g}))});return p.displayName=v.displayName,p},mae=xk({chartName:"LineChart",GraphicalChild:wc,axisComponents:[{axisType:"xAxis",AxisComp:Ap},{axisType:"yAxis",AxisComp:Ep}],formatAxisMap:one}),gae=xk({chartName:"PieChart",GraphicalChild:ei,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:gp},{axisType:"radiusAxis",AxisComp:yp}],formatAxisMap:JX,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const wk=cs("/")({component:xae}),bae={openai:"#10a37f",google:"#4285f4",azure:"#0078d4"};function xae(){const{data:e,isLoading:t}=Ii.stats.overview.useQuery();if(t)return E.jsx("div",{className:"p-8",children:E.jsxs("div",{className:"animate-pulse space-y-4",children:[E.jsx("div",{className:"h-32 bg-gray-200 rounded"}),E.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[1,2,3,4].map(i=>E.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 E.jsxs("div",{className:"p-8",children:[E.jsxs("div",{className:"mb-8",children:[E.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Dashboard Overview"}),E.jsx("p",{className:"text-muted-foreground",children:"Your AI usage statistics and insights"})]}),E.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4 mb-8",children:[E.jsxs(Or,{children:[E.jsx(Gr,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:E.jsx(Qr,{className:"text-sm font-medium",children:"Total Requests"})}),E.jsx(Pr,{children:E.jsx("div",{className:"text-2xl font-bold",children:Yw((e==null?void 0:e.totalRequests)||0)})})]}),E.jsxs(Or,{children:[E.jsx(Gr,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:E.jsx(Qr,{className:"text-sm font-medium",children:"Total Tokens"})}),E.jsx(Pr,{children:E.jsx("div",{className:"text-2xl font-bold",children:Yw((e==null?void 0:e.totalTokens)||0)})})]}),E.jsxs(Or,{children:[E.jsx(Gr,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:E.jsx(Qr,{className:"text-sm font-medium",children:"Total Cost"})}),E.jsx(Pr,{children:E.jsx("div",{className:"text-2xl font-bold",children:Xw((e==null?void 0:e.totalCost)||0)})})]}),E.jsxs(Or,{children:[E.jsx(Gr,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:E.jsx(Qr,{className:"text-sm font-medium",children:"Active Providers"})}),E.jsx(Pr,{children:E.jsx("div",{className:"text-2xl font-bold",children:(e==null?void 0:e.byProvider.length)||0})})]})]}),E.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[E.jsxs(Or,{children:[E.jsx(Gr,{children:E.jsx(Qr,{children:"Usage Trend (Last 30 Days)"})}),E.jsx(Pr,{children:E.jsx(cS,{width:"100%",height:300,children:E.jsxs(mae,{data:n,children:[E.jsx(nk,{strokeDasharray:"3 3"}),E.jsx(Ap,{dataKey:"date"}),E.jsx(Ep,{}),E.jsx(qr,{}),E.jsx(wc,{type:"monotone",dataKey:"requests",stroke:"#8884d8",name:"Requests"})]})})})]}),E.jsxs(Or,{children:[E.jsx(Gr,{children:E.jsx(Qr,{children:"Cost by Provider"})}),E.jsx(Pr,{children:E.jsx(cS,{width:"100%",height:300,children:E.jsxs(gae,{children:[E.jsx(ei,{data:r,cx:"50%",cy:"50%",labelLine:!1,label:i=>i.name,outerRadius:80,fill:"#8884d8",dataKey:"value",children:r.map((i,o)=>E.jsx(rp,{fill:bae[i.name]||"#8884d8"},`cell-${o}`))}),E.jsx(qr,{formatter:i=>Xw(i)})]})})})]})]})]})}const Sk=cs("/config")({component:wae});function wae(){var r,n,i,o,a,s,u,l,f,c,d,h,v,p,m,y,g;const{data:e}=Ii.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,baseURL:(i=e==null?void 0:e.openai)==null?void 0:i.baseURL},{name:"Google Gemini",key:"google",configured:(o=e==null?void 0:e.google)==null?void 0:o.configured,apiKey:(a=e==null?void 0:e.google)==null?void 0:a.apiKey,baseURL:(s=e==null?void 0:e.google)==null?void 0:s.baseURL},{name:"Azure OpenAI",key:"azure",configured:(u=e==null?void 0:e.azure)==null?void 0:u.configured,apiKey:(l=e==null?void 0:e.azure)==null?void 0:l.apiKey,baseURL:(f=e==null?void 0:e.azure)==null?void 0:f.baseURL},{name:"xAI Grok",key:"xai",configured:(c=e==null?void 0:e.xai)==null?void 0:c.configured,apiKey:(d=e==null?void 0:e.xai)==null?void 0:d.apiKey,baseURL:(h=e==null?void 0:e.xai)==null?void 0:h.baseURL}];return E.jsxs("div",{className:"p-8",children:[E.jsxs("div",{className:"mb-8",children:[E.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Configuration"}),E.jsx("p",{className:"text-muted-foreground",children:"Manage your API keys and provider settings"})]}),E.jsx("div",{className:"grid gap-4",children:t.map(b=>E.jsxs(Or,{children:[E.jsxs(Gr,{children:[E.jsxs("div",{className:"flex items-center justify-between",children:[E.jsx(Qr,{children:b.name}),b.configured?E.jsx(Ej,{className:"h-5 w-5 text-green-500"}):E.jsx(aL,{className:"h-5 w-5 text-red-500"})]}),E.jsx(ud,{children:b.configured?"Configured":"Not configured"})]}),E.jsx(Pr,{children:E.jsxs("div",{className:"space-y-2",children:[b.apiKey&&E.jsxs("div",{children:[E.jsx("span",{className:"text-sm text-muted-foreground",children:"API Key: "}),E.jsx("code",{className:"text-sm bg-muted px-1 py-0.5 rounded",children:b.apiKey})]}),b.baseURL&&E.jsxs("div",{children:[E.jsx("span",{className:"text-sm text-muted-foreground",children:"Base URL: "}),E.jsx("code",{className:"text-sm bg-muted px-1 py-0.5 rounded",children:b.baseURL})]})]})})]},b.key))}),E.jsxs("div",{className:"mt-8",children:[E.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Vector Indexing Configuration"}),E.jsxs(Or,{children:[E.jsxs(Gr,{children:[E.jsx(Qr,{children:"Semantic Code Search"}),E.jsx(ud,{children:"Configuration for vector-based semantic code search and indexing"})]}),E.jsx(Pr,{children:E.jsxs("div",{className:"space-y-4",children:[E.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[E.jsxs("div",{children:[E.jsx("span",{className:"text-sm text-muted-foreground",children:"Default Provider: "}),E.jsx("code",{className:"text-sm bg-muted px-1 py-0.5 rounded",children:((v=e==null?void 0:e.vectorConfig)==null?void 0:v.defaultProvider)||"openai"})]}),E.jsxs("div",{children:[E.jsx("span",{className:"text-sm text-muted-foreground",children:"Chunk Size: "}),E.jsxs("code",{className:"text-sm bg-muted px-1 py-0.5 rounded",children:[((p=e==null?void 0:e.vectorConfig)==null?void 0:p.chunkSize)||1500," tokens"]})]}),E.jsxs("div",{children:[E.jsx("span",{className:"text-sm text-muted-foreground",children:"Chunk Overlap: "}),E.jsxs("code",{className:"text-sm bg-muted px-1 py-0.5 rounded",children:[((m=e==null?void 0:e.vectorConfig)==null?void 0:m.chunkOverlap)||200," tokens"]})]}),E.jsxs("div",{children:[E.jsx("span",{className:"text-sm text-muted-foreground",children:"Batch Size: "}),E.jsxs("code",{className:"text-sm bg-muted px-1 py-0.5 rounded",children:[((y=e==null?void 0:e.vectorConfig)==null?void 0:y.batchSize)||10," files"]})]})]}),E.jsxs("div",{children:[E.jsx("span",{className:"text-sm text-muted-foreground",children:"File Patterns: "}),E.jsx("div",{className:"mt-2 flex flex-wrap gap-1",children:(((g=e==null?void 0:e.vectorConfig)==null?void 0:g.filePatterns)||["**/*.ts","**/*.tsx","**/*.js","**/*.jsx","**/*.md","**/*.mdx","**/*.txt","**/*.json","**/*.yaml","**/*.yml"]).map((b,S)=>E.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded",children:b},S))})]})]})})]})]}),E.jsx("div",{className:"mt-8 p-4 bg-muted rounded-lg",children:E.jsxs("p",{className:"text-sm text-muted-foreground",children:["To update your API keys and vector settings, run ",E.jsx("code",{className:"bg-background px-1 py-0.5 rounded",children:"npx ultra-mcp config"})," in your terminal."]})})]})}const Ok=cs("/models")({component:Sae});function Sae(){const{data:e}=Ii.models.list.useQuery();return E.jsxs("div",{className:"p-8",children:[E.jsxs("div",{className:"mb-8",children:[E.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Available Models"}),E.jsx("p",{className:"text-muted-foreground",children:"AI models available through your configured providers"})]}),E.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:e==null?void 0:e.map(t=>E.jsxs(Or,{children:[E.jsxs(Gr,{children:[E.jsx(Qr,{className:"text-lg",children:t.name}),E.jsx(ud,{children:t.provider})]}),E.jsx(Pr,{children:E.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})})]},`${t.provider}-${t.id}`))})]})}const Pk=cs("/usage")({component:Oae});function Oae(){const[e,t]=M.useState(null),[r,n]=M.useState(""),[i,o]=M.useState(""),[a,s]=M.useState("all"),[u,l]=M.useState(0),f=20,{data:c,isLoading:d,refetch:h}=Ii.chats.list.useQuery({searchQuery:r||void 0,provider:i||void 0,status:a,limit:f,offset:u*f,sortBy:"timestamp",sortOrder:"desc"}),{data:v}=Ii.chats.detail.useQuery({id:e},{enabled:!!e}),p=Ii.chats.delete.useMutation({onSuccess:()=>{h(),t(null)}}),m=S=>new Date(S).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}),y=S=>S?`$${S.toFixed(4)}`:"$0.00",g=S=>S?S<1e3?`${S}ms`:`${(S/1e3).toFixed(2)}s`:"0ms",b=S=>({openai:"bg-green-500",gemini:"bg-blue-500",azure:"bg-purple-500",grok:"bg-orange-500","openai-compatible":"bg-gray-500"})[S]||"bg-gray-400";return E.jsxs("div",{className:"p-8",children:[E.jsxs("div",{className:"mb-8",children:[E.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:"Chat History"}),E.jsx("p",{className:"text-muted-foreground",children:"Detailed history of all AI interactions"})]}),E.jsx(Or,{className:"mb-6",children:E.jsx(Pr,{className:"p-4",children:E.jsxs("div",{className:"flex flex-wrap gap-4",children:[E.jsx("div",{className:"flex-1 min-w-[200px]",children:E.jsxs("div",{className:"relative",children:[E.jsx(nL,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4"}),E.jsx("input",{type:"text",placeholder:"Search prompts, responses, models...",className:"w-full pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",value:r,onChange:S=>n(S.target.value)})]})}),E.jsxs("select",{className:"px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",value:i,onChange:S=>o(S.target.value),children:[E.jsx("option",{value:"",children:"All Providers"}),E.jsx("option",{value:"openai",children:"OpenAI"}),E.jsx("option",{value:"gemini",children:"Gemini"}),E.jsx("option",{value:"azure",children:"Azure"}),E.jsx("option",{value:"grok",children:"Grok"}),E.jsx("option",{value:"openai-compatible",children:"OpenAI Compatible"})]}),E.jsxs("select",{className:"px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",value:a,onChange:S=>s(S.target.value),children:[E.jsx("option",{value:"all",children:"All Status"}),E.jsx("option",{value:"success",children:"Success"}),E.jsx("option",{value:"error",children:"Error"})]}),E.jsxs("button",{className:"px-4 py-2 border rounded-lg hover:bg-gray-50 flex items-center gap-2",children:[E.jsx(JD,{className:"h-4 w-4"}),"Export"]})]})})}),E.jsxs(Or,{children:[E.jsx(Gr,{children:E.jsx(Qr,{children:"Chat Sessions"})}),E.jsx(Pr,{children:d?E.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"Loading chat history..."}):(c==null?void 0:c.data.length)===0?E.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No chats found"}):E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"space-y-2",children:c==null?void 0:c.data.map(S=>E.jsx("div",{className:"border rounded-lg p-4 hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>t(S.id),children:E.jsxs("div",{className:"flex items-start justify-between",children:[E.jsxs("div",{className:"flex-1",children:[E.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[E.jsx("span",{className:`${b(S.provider)} text-white text-xs px-2 py-1 rounded`,children:S.provider}),E.jsx("span",{className:"text-sm font-medium",children:S.model}),S.toolName&&E.jsx("span",{className:"text-xs bg-gray-100 px-2 py-1 rounded",children:S.toolName}),S.status==="success"?E.jsx(Ej,{className:"h-4 w-4 text-green-500"}):E.jsx(KD,{className:"h-4 w-4 text-red-500"})]}),E.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-2",children:S.preview}),E.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[E.jsxs("span",{className:"flex items-center gap-1",children:[E.jsx(GD,{className:"h-3 w-3"}),m(S.timestamp)]}),E.jsxs("span",{className:"flex items-center gap-1",children:[E.jsx(tL,{className:"h-3 w-3"}),S.totalTokens||0," tokens"]}),E.jsxs("span",{className:"flex items-center gap-1",children:[E.jsx(ZD,{className:"h-3 w-3"}),y(S.estimatedCost)]}),E.jsxs("span",{className:"flex items-center gap-1",children:[E.jsx(XD,{className:"h-3 w-3"}),g(S.durationMs)]})]})]}),E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("button",{onClick:x=>{x.stopPropagation(),t(S.id)},className:"p-2 hover:bg-gray-100 rounded",children:E.jsx(eL,{className:"h-4 w-4"})}),E.jsx("button",{onClick:x=>{x.stopPropagation(),confirm("Delete this chat?")&&p.mutate({id:S.id})},className:"p-2 hover:bg-red-50 text-red-500 rounded",children:E.jsx(oL,{className:"h-4 w-4"})}),E.jsx(QD,{className:"h-4 w-4 text-muted-foreground"})]})]})},S.id))}),(c==null?void 0:c.pagination)&&E.jsxs("div",{className:"flex items-center justify-between mt-6",children:[E.jsxs("div",{className:"text-sm text-muted-foreground",children:["Showing ",u*f+1," to ",Math.min((u+1)*f,c.pagination.total)," of ",c.pagination.total," chats"]}),E.jsxs("div",{className:"flex gap-2",children:[E.jsx("button",{onClick:()=>l(Math.max(0,u-1)),disabled:u===0,className:"px-4 py-2 border rounded-lg hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:"Previous"}),E.jsx("button",{onClick:()=>l(u+1),disabled:!c.pagination.hasMore,className:"px-4 py-2 border rounded-lg hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:"Next"})]})]})]})})]}),e&&v&&E.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:E.jsxs("div",{className:"bg-white rounded-lg max-w-4xl w-full max-h-[90vh] overflow-hidden",children:[E.jsxs("div",{className:"flex items-center justify-between p-6 border-b",children:[E.jsx("h3",{className:"text-xl font-semibold",children:"Chat Details"}),E.jsx("button",{onClick:()=>t(null),className:"p-2 hover:bg-gray-100 rounded",children:E.jsx(sL,{className:"h-5 w-5"})})]}),E.jsxs("div",{className:"p-6 overflow-y-auto max-h-[calc(90vh-80px)]",children:[E.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:[E.jsxs("div",{children:[E.jsx("div",{className:"text-sm text-muted-foreground",children:"Provider"}),E.jsx("div",{className:"font-medium",children:v.provider})]}),E.jsxs("div",{children:[E.jsx("div",{className:"text-sm text-muted-foreground",children:"Model"}),E.jsx("div",{className:"font-medium",children:v.model})]}),E.jsxs("div",{children:[E.jsx("div",{className:"text-sm text-muted-foreground",children:"Tool"}),E.jsx("div",{className:"font-medium",children:v.toolName||"N/A"})]}),E.jsxs("div",{children:[E.jsx("div",{className:"text-sm text-muted-foreground",children:"Status"}),E.jsx("div",{className:"font-medium",children:v.status==="success"?E.jsx("span",{className:"text-green-600",children:"Success"}):E.jsx("span",{className:"text-red-600",children:"Error"})})]}),E.jsxs("div",{children:[E.jsx("div",{className:"text-sm text-muted-foreground",children:"Timestamp"}),E.jsx("div",{className:"font-medium",children:new Date(v.timestamp).toLocaleString()})]}),E.jsxs("div",{children:[E.jsx("div",{className:"text-sm text-muted-foreground",children:"Duration"}),E.jsx("div",{className:"font-medium",children:g(v.durationMs)})]}),E.jsxs("div",{children:[E.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Tokens"}),E.jsxs("div",{className:"font-medium",children:[v.totalTokens||0,v.inputTokens&&v.outputTokens&&E.jsxs("span",{className:"text-xs text-muted-foreground ml-1",children:["(",v.inputTokens," in / ",v.outputTokens," out)"]})]})]}),E.jsxs("div",{children:[E.jsx("div",{className:"text-sm text-muted-foreground",children:"Cost"}),E.jsx("div",{className:"font-medium",children:y(v.estimatedCost)})]})]}),v.errorMessage&&E.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 mb-6",children:[E.jsx("div",{className:"font-medium text-red-800 mb-1",children:"Error"}),E.jsx("div",{className:"text-sm text-red-700",children:v.errorMessage})]}),v.requestData&&E.jsxs("div",{className:"mb-6",children:[E.jsx("h4",{className:"font-medium mb-2",children:"Request"}),E.jsx("div",{className:"bg-gray-50 rounded-lg p-4 overflow-x-auto",children:E.jsx("pre",{className:"text-sm whitespace-pre-wrap",children:typeof v.requestData=="string"?v.requestData:JSON.stringify(v.requestData,null,2)})})]}),v.responseData&&E.jsxs("div",{children:[E.jsx("h4",{className:"font-medium mb-2",children:"Response"}),E.jsx("div",{className:"bg-gray-50 rounded-lg p-4 overflow-x-auto",children:E.jsx("pre",{className:"text-sm whitespace-pre-wrap",children:typeof v.responseData=="string"?v.responseData:JSON.stringify(v.responseData,null,2)})})]})]})]})})]})}Object.assign(wk.options,{path:"/",getParentRoute:()=>cc});Object.assign(Sk.options,{path:"/config",getParentRoute:()=>cc});Object.assign(Ok.options,{path:"/models",getParentRoute:()=>cc});Object.assign(Pk.options,{path:"/usage",getParentRoute:()=>cc});const Pae=cc.addChildren([wk,Sk,Ok,Pk]),_ae=BD({routeTree:Pae});function Aae(){return E.jsx(WD,{router:_ae})}const e_=new pI({defaultOptions:{queries:{staleTime:1e3*60*5}}});Hv.createRoot(document.getElementById("root")).render(E.jsx(T.StrictMode,{children:E.jsx(Ii.Provider,{client:JR,queryClient:e_,children:E.jsx(xI,{client:e_,children:E.jsx(Aae,{})})})}));