@sailingrotevista/rotevista-webapp 2.0.7 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ul=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var SA={exports:{}},qd={},PA={exports:{}},ke={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var wc=Symbol.for("react.element"),XN=Symbol.for("react.portal"),YN=Symbol.for("react.fragment"),QN=Symbol.for("react.strict_mode"),JN=Symbol.for("react.profiler"),eL=Symbol.for("react.provider"),tL=Symbol.for("react.context"),nL=Symbol.for("react.forward_ref"),rL=Symbol.for("react.suspense"),iL=Symbol.for("react.memo"),oL=Symbol.for("react.lazy"),J1=Symbol.iterator;function aL(e){return e===null||typeof e!="object"?null:(e=J1&&e[J1]||e["@@iterator"],typeof e=="function"?e:null)}var OA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},TA=Object.assign,AA={};function Fs(e,t,n){this.props=e,this.context=t,this.refs=AA,this.updater=n||OA}Fs.prototype.isReactComponent={};Fs.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")};Fs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function EA(){}EA.prototype=Fs.prototype;function P0(e,t,n){this.props=e,this.context=t,this.refs=AA,this.updater=n||OA}var O0=P0.prototype=new EA;O0.constructor=P0;TA(O0,Fs.prototype);O0.isPureReactComponent=!0;var eb=Array.isArray,kA=Object.prototype.hasOwnProperty,T0={current:null},MA={key:!0,ref:!0,__self:!0,__source:!0};function CA(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)kA.call(t,r)&&!MA.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),f=0;f<l;f++)u[f]=arguments[f+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:wc,type:e,key:o,ref:s,props:i,_owner:T0.current}}function sL(e,t){return{$$typeof:wc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function A0(e){return typeof e=="object"&&e!==null&&e.$$typeof===wc}function lL(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tb=/\/+/g;function Pm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lL(""+e.key):t.toString(36)}function nh(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case wc:case XN:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Pm(s,0):r,eb(i)?(n="",e!=null&&(n=e.replace(tb,"$&/")+"/"),nh(i,t,n,"",function(f){return f})):i!=null&&(A0(i)&&(i=sL(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(tb,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",eb(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+Pm(o,l);s+=nh(o,t,n,u,i)}else if(u=aL(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+Pm(o,l++),s+=nh(o,t,n,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 s}function yf(e,t,n){if(e==null)return e;var r=[],i=0;return nh(e,r,"","",function(o){return t.call(n,o,i++)}),r}function uL(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var hn={current:null},rh={transition:null},cL={ReactCurrentDispatcher:hn,ReactCurrentBatchConfig:rh,ReactCurrentOwner:T0};function jA(){throw Error("act(...) is not supported in production builds of React.")}ke.Children={map:yf,forEach:function(e,t,n){yf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yf(e,function(){t++}),t},toArray:function(e){return yf(e,function(t){return t})||[]},only:function(e){if(!A0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ke.Component=Fs;ke.Fragment=YN;ke.Profiler=JN;ke.PureComponent=P0;ke.StrictMode=QN;ke.Suspense=rL;ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cL;ke.act=jA;ke.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=TA({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=T0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)kA.call(t,u)&&!MA.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var f=0;f<u;f++)l[f]=arguments[f+2];r.children=l}return{$$typeof:wc,type:e.type,key:i,ref:o,props:r,_owner:s}};ke.createContext=function(e){return e={$$typeof:tL,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:eL,_context:e},e.Consumer=e};ke.createElement=CA;ke.createFactory=function(e){var t=CA.bind(null,e);return t.type=e,t};ke.createRef=function(){return{current:null}};ke.forwardRef=function(e){return{$$typeof:nL,render:e}};ke.isValidElement=A0;ke.lazy=function(e){return{$$typeof:oL,_payload:{_status:-1,_result:e},_init:uL}};ke.memo=function(e,t){return{$$typeof:iL,type:e,compare:t===void 0?null:t}};ke.startTransition=function(e){var t=rh.transition;rh.transition={};try{e()}finally{rh.transition=t}};ke.unstable_act=jA;ke.useCallback=function(e,t){return hn.current.useCallback(e,t)};ke.useContext=function(e){return hn.current.useContext(e)};ke.useDebugValue=function(){};ke.useDeferredValue=function(e){return hn.current.useDeferredValue(e)};ke.useEffect=function(e,t){return hn.current.useEffect(e,t)};ke.useId=function(){return hn.current.useId()};ke.useImperativeHandle=function(e,t,n){return hn.current.useImperativeHandle(e,t,n)};ke.useInsertionEffect=function(e,t){return hn.current.useInsertionEffect(e,t)};ke.useLayoutEffect=function(e,t){return hn.current.useLayoutEffect(e,t)};ke.useMemo=function(e,t){return hn.current.useMemo(e,t)};ke.useReducer=function(e,t,n){return hn.current.useReducer(e,t,n)};ke.useRef=function(e){return hn.current.useRef(e)};ke.useState=function(e){return hn.current.useState(e)};ke.useSyncExternalStore=function(e,t,n){return hn.current.useSyncExternalStore(e,t,n)};ke.useTransition=function(){return hn.current.useTransition()};ke.version="18.3.1";PA.exports=ke;var j=PA.exports;const D=Ge(j);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var fL=j,hL=Symbol.for("react.element"),dL=Symbol.for("react.fragment"),pL=Object.prototype.hasOwnProperty,mL=fL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vL={key:!0,ref:!0,__self:!0,__source:!0};function $A(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)pL.call(t,r)&&!vL.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:hL,type:e,key:o,ref:s,props:i,_owner:mL.current}}qd.Fragment=dL;qd.jsx=$A;qd.jsxs=$A;SA.exports=qd;var O=SA.exports,Vv={},NA={exports:{}},Fn={},LA={exports:{}},IA={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t($,q){var V=$.length;$.push(q);e:for(;0<V;){var te=V-1>>>1,Q=$[te];if(0<i(Q,q))$[te]=q,$[V]=Q,V=te;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var q=$[0],V=$.pop();if(V!==q){$[0]=V;e:for(var te=0,Q=$.length,ae=Q>>>1;te<ae;){var fe=2*(te+1)-1,he=$[fe],ce=fe+1,Ve=$[ce];if(0>i(he,V))ce<Q&&0>i(Ve,he)?($[te]=Ve,$[ce]=V,te=ce):($[te]=he,$[fe]=V,te=fe);else if(ce<Q&&0>i(Ve,V))$[te]=Ve,$[ce]=V,te=ce;else break e}}return q}function i($,q){var V=$.sortIndex-q.sortIndex;return V!==0?V:$.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],f=[],d=1,h=null,m=3,v=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w($){for(var q=n(f);q!==null;){if(q.callback===null)r(f);else if(q.startTime<=$)r(f),q.sortIndex=q.expirationTime,t(u,q);else break;q=n(f)}}function E($){if(x=!1,w($),!b)if(n(u)!==null)b=!0,Z(P);else{var q=n(f);q!==null&&G(E,q.startTime-$)}}function P($,q){b=!1,x&&(x=!1,y(C),C=-1),v=!0;var V=m;try{for(w(q),h=n(u);h!==null&&(!(h.expirationTime>q)||$&&!z());){var te=h.callback;if(typeof te=="function"){h.callback=null,m=h.priorityLevel;var Q=te(h.expirationTime<=q);q=e.unstable_now(),typeof Q=="function"?h.callback=Q:h===n(u)&&r(u),w(q)}else r(u);h=n(u)}if(h!==null)var ae=!0;else{var fe=n(f);fe!==null&&G(E,fe.startTime-q),ae=!1}return ae}finally{h=null,m=V,v=!1}}var A=!1,M=null,C=-1,N=5,B=-1;function z(){return!(e.unstable_now()-B<N)}function R(){if(M!==null){var $=e.unstable_now();B=$;var q=!0;try{q=M(!0,$)}finally{q?K():(A=!1,M=null)}}else A=!1}var K;if(typeof _=="function")K=function(){_(R)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,W=H.port2;H.port1.onmessage=R,K=function(){W.postMessage(null)}}else K=function(){S(R,0)};function Z($){M=$,A||(A=!0,K())}function G($,q){C=S(function(){$(e.unstable_now())},q)}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($){$.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,Z(P))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function($){switch(m){case 1:case 2:case 3:var q=3;break;default:q=m}var V=m;m=q;try{return $()}finally{m=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,q){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var V=m;m=$;try{return q()}finally{m=V}},e.unstable_scheduleCallback=function($,q,V){var te=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?te+V:te):V=te,$){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=V+Q,$={id:d++,callback:q,priorityLevel:$,startTime:V,expirationTime:Q,sortIndex:-1},V>te?($.sortIndex=V,t(f,$),n(u)===null&&$===n(f)&&(x?(y(C),C=-1):x=!0,G(E,V-te))):($.sortIndex=Q,t(u,$),b||v||(b=!0,Z(P))),$},e.unstable_shouldYield=z,e.unstable_wrapCallback=function($){var q=m;return function(){var V=m;m=q;try{return $.apply(this,arguments)}finally{m=V}}}})(IA);LA.exports=IA;var gL=LA.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var yL=j,Dn=gL;function re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 DA=new Set,yu={};function ua(e,t){ss(e,t),ss(e+"Capture",t)}function ss(e,t){for(yu[e]=t,e=0;e<t.length;e++)DA.add(t[e])}var yi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uv=Object.prototype.hasOwnProperty,xL=/^[: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]*$/,nb={},rb={};function _L(e){return Uv.call(rb,e)?!0:Uv.call(nb,e)?!1:xL.test(e)?rb[e]=!0:(nb[e]=!0,!1)}function bL(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wL(e,t,n,r){if(t===null||typeof t>"u"||bL(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dn(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Zt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zt[e]=new dn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zt[t]=new dn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zt[e]=new dn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zt[e]=new dn(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){Zt[e]=new dn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zt[e]=new dn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zt[e]=new dn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zt[e]=new dn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zt[e]=new dn(e,5,!1,e.toLowerCase(),null,!1,!1)});var E0=/[\-:]([a-z])/g;function k0(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(E0,k0);Zt[t]=new dn(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(E0,k0);Zt[t]=new dn(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(E0,k0);Zt[t]=new dn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zt[e]=new dn(e,1,!1,e.toLowerCase(),null,!1,!1)});Zt.xlinkHref=new dn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zt[e]=new dn(e,1,!1,e.toLowerCase(),null,!0,!0)});function M0(e,t,n,r){var i=Zt.hasOwnProperty(t)?Zt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(wL(t,n,i,r)&&(n=null),r||i===null?_L(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ai=yL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xf=Symbol.for("react.element"),Ca=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),C0=Symbol.for("react.strict_mode"),Wv=Symbol.for("react.profiler"),RA=Symbol.for("react.provider"),zA=Symbol.for("react.context"),j0=Symbol.for("react.forward_ref"),Hv=Symbol.for("react.suspense"),Zv=Symbol.for("react.suspense_list"),$0=Symbol.for("react.memo"),Bi=Symbol.for("react.lazy"),BA=Symbol.for("react.offscreen"),ib=Symbol.iterator;function Sl(e){return e===null||typeof e!="object"?null:(e=ib&&e[ib]||e["@@iterator"],typeof e=="function"?e:null)}var dt=Object.assign,Om;function Wl(e){if(Om===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Om=t&&t[1]||""}return`
|
|
34
|
+
`+Om+e}var Tm=!1;function Am(e,t){if(!e||Tm)return"";Tm=!0;var n=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(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var u=`
|
|
37
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Tm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wl(e):""}function SL(e){switch(e.tag){case 5:return Wl(e.type);case 16:return Wl("Lazy");case 13:return Wl("Suspense");case 19:return Wl("SuspenseList");case 0:case 2:case 15:return e=Am(e.type,!1),e;case 11:return e=Am(e.type.render,!1),e;case 1:return e=Am(e.type,!0),e;default:return""}}function Gv(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 ja:return"Fragment";case Ca:return"Portal";case Wv:return"Profiler";case C0:return"StrictMode";case Hv:return"Suspense";case Zv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zA:return(e.displayName||"Context")+".Consumer";case RA:return(e._context.displayName||"Context")+".Provider";case j0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $0:return t=e.displayName||null,t!==null?t:Gv(e.type)||"Memo";case Bi:t=e._payload,e=e._init;try{return Gv(e(t))}catch{}}return null}function PL(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 Gv(t);case 8:return t===C0?"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 oo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function FA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OL(e){var t=FA(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _f(e){e._valueTracker||(e._valueTracker=OL(e))}function VA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=FA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gh(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 Kv(e,t){var n=t.checked;return dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ob(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=oo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function UA(e,t){t=t.checked,t!=null&&M0(e,"checked",t,!1)}function qv(e,t){UA(e,t);var n=oo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xv(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xv(e,t.type,oo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ab(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xv(e,t,n){(t!=="number"||gh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hl=Array.isArray;function Ya(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+oo(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(re(91));return dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function sb(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(re(92));if(Hl(n)){if(1<n.length)throw Error(re(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:oo(n)}}function WA(e,t){var n=oo(t.value),r=oo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function lb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function HA(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 Qv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?HA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var bf,ZA=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(bf=bf||document.createElement("div"),bf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=bf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jl={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},TL=["Webkit","ms","Moz","O"];Object.keys(Jl).forEach(function(e){TL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jl[t]=Jl[e]})});function GA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jl.hasOwnProperty(e)&&Jl[e]?(""+t).trim():t+"px"}function KA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=GA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var AL=dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Jv(e,t){if(t){if(AL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function eg(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 tg=null;function N0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ng=null,Qa=null,Ja=null;function ub(e){if(e=Oc(e)){if(typeof ng!="function")throw Error(re(280));var t=e.stateNode;t&&(t=ep(t),ng(e.stateNode,e.type,t))}}function qA(e){Qa?Ja?Ja.push(e):Ja=[e]:Qa=e}function XA(){if(Qa){var e=Qa,t=Ja;if(Ja=Qa=null,ub(e),t)for(e=0;e<t.length;e++)ub(t[e])}}function YA(e,t){return e(t)}function QA(){}var Em=!1;function JA(e,t,n){if(Em)return e(t,n);Em=!0;try{return YA(e,t,n)}finally{Em=!1,(Qa!==null||Ja!==null)&&(QA(),XA())}}function _u(e,t){var n=e.stateNode;if(n===null)return null;var r=ep(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(re(231,t,typeof n));return n}var rg=!1;if(yi)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){rg=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{rg=!1}function EL(e,t,n,r,i,o,s,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(d){this.onError(d)}}var eu=!1,yh=null,xh=!1,ig=null,kL={onError:function(e){eu=!0,yh=e}};function ML(e,t,n,r,i,o,s,l,u){eu=!1,yh=null,EL.apply(kL,arguments)}function CL(e,t,n,r,i,o,s,l,u){if(ML.apply(this,arguments),eu){if(eu){var f=yh;eu=!1,yh=null}else throw Error(re(198));xh||(xh=!0,ig=f)}}function ca(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function e2(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 cb(e){if(ca(e)!==e)throw Error(re(188))}function jL(e){var t=e.alternate;if(!t){if(t=ca(e),t===null)throw Error(re(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return cb(i),e;if(o===r)return cb(i),t;o=o.sibling}throw Error(re(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(re(189))}}if(n.alternate!==r)throw Error(re(190))}if(n.tag!==3)throw Error(re(188));return n.stateNode.current===n?e:t}function t2(e){return e=jL(e),e!==null?n2(e):null}function n2(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=n2(e);if(t!==null)return t;e=e.sibling}return null}var r2=Dn.unstable_scheduleCallback,fb=Dn.unstable_cancelCallback,$L=Dn.unstable_shouldYield,NL=Dn.unstable_requestPaint,xt=Dn.unstable_now,LL=Dn.unstable_getCurrentPriorityLevel,L0=Dn.unstable_ImmediatePriority,i2=Dn.unstable_UserBlockingPriority,_h=Dn.unstable_NormalPriority,IL=Dn.unstable_LowPriority,o2=Dn.unstable_IdlePriority,Xd=null,Br=null;function DL(e){if(Br&&typeof Br.onCommitFiberRoot=="function")try{Br.onCommitFiberRoot(Xd,e,void 0,(e.current.flags&128)===128)}catch{}}var Or=Math.clz32?Math.clz32:BL,RL=Math.log,zL=Math.LN2;function BL(e){return e>>>=0,e===0?32:31-(RL(e)/zL|0)|0}var wf=64,Sf=4194304;function Zl(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 bh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Zl(l):(o&=s,o!==0&&(r=Zl(o)))}else s=n&~i,s!==0?r=Zl(s):o!==0&&(r=Zl(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Or(t),i=1<<n,r|=e[n],t&=~i;return r}function FL(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 VL(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Or(o),l=1<<s,u=i[s];u===-1?(!(l&n)||l&r)&&(i[s]=FL(l,t)):u<=t&&(e.expiredLanes|=l),o&=~l}}function og(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function a2(){var e=wf;return wf<<=1,!(wf&4194240)&&(wf=64),e}function km(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Sc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Or(t),e[t]=n}function UL(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Or(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function I0(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Or(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Be=0;function s2(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var l2,D0,u2,c2,f2,ag=!1,Pf=[],Xi=null,Yi=null,Qi=null,bu=new Map,wu=new Map,Ui=[],WL="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 hb(e,t){switch(e){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Yi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":bu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wu.delete(t.pointerId)}}function Ol(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Oc(t),t!==null&&D0(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function HL(e,t,n,r,i){switch(t){case"focusin":return Xi=Ol(Xi,e,t,n,r,i),!0;case"dragenter":return Yi=Ol(Yi,e,t,n,r,i),!0;case"mouseover":return Qi=Ol(Qi,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return bu.set(o,Ol(bu.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,wu.set(o,Ol(wu.get(o)||null,e,t,n,r,i)),!0}return!1}function h2(e){var t=Do(e.target);if(t!==null){var n=ca(t);if(n!==null){if(t=n.tag,t===13){if(t=e2(n),t!==null){e.blockedOn=t,f2(e.priority,function(){u2(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tg=r,n.target.dispatchEvent(r),tg=null}else return t=Oc(n),t!==null&&D0(t),e.blockedOn=n,!1;t.shift()}return!0}function db(e,t,n){ih(e)&&n.delete(t)}function ZL(){ag=!1,Xi!==null&&ih(Xi)&&(Xi=null),Yi!==null&&ih(Yi)&&(Yi=null),Qi!==null&&ih(Qi)&&(Qi=null),bu.forEach(db),wu.forEach(db)}function Tl(e,t){e.blockedOn===t&&(e.blockedOn=null,ag||(ag=!0,Dn.unstable_scheduleCallback(Dn.unstable_NormalPriority,ZL)))}function Su(e){function t(i){return Tl(i,e)}if(0<Pf.length){Tl(Pf[0],e);for(var n=1;n<Pf.length;n++){var r=Pf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Xi!==null&&Tl(Xi,e),Yi!==null&&Tl(Yi,e),Qi!==null&&Tl(Qi,e),bu.forEach(t),wu.forEach(t),n=0;n<Ui.length;n++)r=Ui[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ui.length&&(n=Ui[0],n.blockedOn===null);)h2(n),n.blockedOn===null&&Ui.shift()}var es=Ai.ReactCurrentBatchConfig,wh=!0;function GL(e,t,n,r){var i=Be,o=es.transition;es.transition=null;try{Be=1,R0(e,t,n,r)}finally{Be=i,es.transition=o}}function KL(e,t,n,r){var i=Be,o=es.transition;es.transition=null;try{Be=4,R0(e,t,n,r)}finally{Be=i,es.transition=o}}function R0(e,t,n,r){if(wh){var i=sg(e,t,n,r);if(i===null)zm(e,t,r,Sh,n),hb(e,r);else if(HL(i,e,t,n,r))r.stopPropagation();else if(hb(e,r),t&4&&-1<WL.indexOf(e)){for(;i!==null;){var o=Oc(i);if(o!==null&&l2(o),o=sg(e,t,n,r),o===null&&zm(e,t,r,Sh,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else zm(e,t,r,null,n)}}var Sh=null;function sg(e,t,n,r){if(Sh=null,e=N0(r),e=Do(e),e!==null)if(t=ca(e),t===null)e=null;else if(n=t.tag,n===13){if(e=e2(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Sh=e,null}function d2(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(LL()){case L0:return 1;case i2:return 4;case _h:case IL:return 16;case o2:return 536870912;default:return 16}default:return 16}}var Zi=null,z0=null,oh=null;function p2(){if(oh)return oh;var e,t=z0,n=t.length,r,i="value"in Zi?Zi.value:Zi.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return oh=i.slice(e,1<r?1-r:void 0)}function ah(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 Of(){return!0}function pb(){return!1}function Vn(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Of:pb,this.isPropagationStopped=pb,this}return dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Of)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Of)},persist:function(){},isPersistent:Of}),t}var Vs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},B0=Vn(Vs),Pc=dt({},Vs,{view:0,detail:0}),qL=Vn(Pc),Mm,Cm,Al,Yd=dt({},Pc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:F0,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!==Al&&(Al&&e.type==="mousemove"?(Mm=e.screenX-Al.screenX,Cm=e.screenY-Al.screenY):Cm=Mm=0,Al=e),Mm)},movementY:function(e){return"movementY"in e?e.movementY:Cm}}),mb=Vn(Yd),XL=dt({},Yd,{dataTransfer:0}),YL=Vn(XL),QL=dt({},Pc,{relatedTarget:0}),jm=Vn(QL),JL=dt({},Vs,{animationName:0,elapsedTime:0,pseudoElement:0}),eI=Vn(JL),tI=dt({},Vs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nI=Vn(tI),rI=dt({},Vs,{data:0}),vb=Vn(rI),iI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oI={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"},aI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=aI[e])?!!t[e]:!1}function F0(){return sI}var lI=dt({},Pc,{key:function(e){if(e.key){var t=iI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ah(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:F0,charCode:function(e){return e.type==="keypress"?ah(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ah(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uI=Vn(lI),cI=dt({},Yd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gb=Vn(cI),fI=dt({},Pc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:F0}),hI=Vn(fI),dI=dt({},Vs,{propertyName:0,elapsedTime:0,pseudoElement:0}),pI=Vn(dI),mI=dt({},Yd,{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}),vI=Vn(mI),gI=[9,13,27,32],V0=yi&&"CompositionEvent"in window,tu=null;yi&&"documentMode"in document&&(tu=document.documentMode);var yI=yi&&"TextEvent"in window&&!tu,m2=yi&&(!V0||tu&&8<tu&&11>=tu),yb=" ",xb=!1;function v2(e,t){switch(e){case"keyup":return gI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $a=!1;function xI(e,t){switch(e){case"compositionend":return g2(t);case"keypress":return t.which!==32?null:(xb=!0,yb);case"textInput":return e=t.data,e===yb&&xb?null:e;default:return null}}function _I(e,t){if($a)return e==="compositionend"||!V0&&v2(e,t)?(e=p2(),oh=z0=Zi=null,$a=!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 m2&&t.locale!=="ko"?null:t.data;default:return null}}var bI={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 _b(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bI[e.type]:t==="textarea"}function y2(e,t,n,r){qA(r),t=Ph(t,"onChange"),0<t.length&&(n=new B0("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nu=null,Pu=null;function wI(e){k2(e,0)}function Qd(e){var t=Ia(e);if(VA(t))return e}function SI(e,t){if(e==="change")return t}var x2=!1;if(yi){var $m;if(yi){var Nm="oninput"in document;if(!Nm){var bb=document.createElement("div");bb.setAttribute("oninput","return;"),Nm=typeof bb.oninput=="function"}$m=Nm}else $m=!1;x2=$m&&(!document.documentMode||9<document.documentMode)}function wb(){nu&&(nu.detachEvent("onpropertychange",_2),Pu=nu=null)}function _2(e){if(e.propertyName==="value"&&Qd(Pu)){var t=[];y2(t,Pu,e,N0(e)),JA(wI,t)}}function PI(e,t,n){e==="focusin"?(wb(),nu=t,Pu=n,nu.attachEvent("onpropertychange",_2)):e==="focusout"&&wb()}function OI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qd(Pu)}function TI(e,t){if(e==="click")return Qd(t)}function AI(e,t){if(e==="input"||e==="change")return Qd(t)}function EI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Er=typeof Object.is=="function"?Object.is:EI;function Ou(e,t){if(Er(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Uv.call(t,i)||!Er(e[i],t[i]))return!1}return!0}function Sb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pb(e,t){var n=Sb(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sb(n)}}function b2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?b2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function w2(){for(var e=window,t=gh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gh(e.document)}return t}function U0(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 kI(e){var t=w2(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&b2(n.ownerDocument.documentElement,n)){if(r!==null&&U0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Pb(n,o);var s=Pb(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var MI=yi&&"documentMode"in document&&11>=document.documentMode,Na=null,lg=null,ru=null,ug=!1;function Ob(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ug||Na==null||Na!==gh(r)||(r=Na,"selectionStart"in r&&U0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ru&&Ou(ru,r)||(ru=r,r=Ph(lg,"onSelect"),0<r.length&&(t=new B0("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Na)))}function Tf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var La={animationend:Tf("Animation","AnimationEnd"),animationiteration:Tf("Animation","AnimationIteration"),animationstart:Tf("Animation","AnimationStart"),transitionend:Tf("Transition","TransitionEnd")},Lm={},S2={};yi&&(S2=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function Jd(e){if(Lm[e])return Lm[e];if(!La[e])return e;var t=La[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in S2)return Lm[e]=t[n];return e}var P2=Jd("animationend"),O2=Jd("animationiteration"),T2=Jd("animationstart"),A2=Jd("transitionend"),E2=new Map,Tb="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 uo(e,t){E2.set(e,t),ua(t,[e])}for(var Im=0;Im<Tb.length;Im++){var Dm=Tb[Im],CI=Dm.toLowerCase(),jI=Dm[0].toUpperCase()+Dm.slice(1);uo(CI,"on"+jI)}uo(P2,"onAnimationEnd");uo(O2,"onAnimationIteration");uo(T2,"onAnimationStart");uo("dblclick","onDoubleClick");uo("focusin","onFocus");uo("focusout","onBlur");uo(A2,"onTransitionEnd");ss("onMouseEnter",["mouseout","mouseover"]);ss("onMouseLeave",["mouseout","mouseover"]);ss("onPointerEnter",["pointerout","pointerover"]);ss("onPointerLeave",["pointerout","pointerover"]);ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ua("onBeforeInput",["compositionend","keypress","textInput","paste"]);ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gl="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(" "),$I=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gl));function Ab(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,CL(r,t,void 0,e),e.currentTarget=null}function k2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],u=l.instance,f=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;Ab(i,l,f),o=u}else for(s=0;s<r.length;s++){if(l=r[s],u=l.instance,f=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;Ab(i,l,f),o=u}}}if(xh)throw e=ig,xh=!1,ig=null,e}function Je(e,t){var n=t[pg];n===void 0&&(n=t[pg]=new Set);var r=e+"__bubble";n.has(r)||(M2(t,e,2,!1),n.add(r))}function Rm(e,t,n){var r=0;t&&(r|=4),M2(n,e,r,t)}var Af="_reactListening"+Math.random().toString(36).slice(2);function Tu(e){if(!e[Af]){e[Af]=!0,DA.forEach(function(n){n!=="selectionchange"&&($I.has(n)||Rm(n,!1,e),Rm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Af]||(t[Af]=!0,Rm("selectionchange",!1,t))}}function M2(e,t,n,r){switch(d2(t)){case 1:var i=GL;break;case 4:i=KL;break;default:i=R0}n=i.bind(null,t,n,e),i=void 0,!rg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zm(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Do(l),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}l=l.parentNode}}r=r.return}JA(function(){var f=o,d=N0(n),h=[];e:{var m=E2.get(e);if(m!==void 0){var v=B0,b=e;switch(e){case"keypress":if(ah(n)===0)break e;case"keydown":case"keyup":v=uI;break;case"focusin":b="focus",v=jm;break;case"focusout":b="blur",v=jm;break;case"beforeblur":case"afterblur":v=jm;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=mb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=YL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=hI;break;case P2:case O2:case T2:v=eI;break;case A2:v=pI;break;case"scroll":v=qL;break;case"wheel":v=vI;break;case"copy":case"cut":case"paste":v=nI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=gb}var x=(t&4)!==0,S=!x&&e==="scroll",y=x?m!==null?m+"Capture":null:m;x=[];for(var _=f,w;_!==null;){w=_;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,y!==null&&(E=_u(_,y),E!=null&&x.push(Au(_,E,w)))),S)break;_=_.return}0<x.length&&(m=new v(m,b,null,n,d),h.push({event:m,listeners:x}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==tg&&(b=n.relatedTarget||n.fromElement)&&(Do(b)||b[xi]))break e;if((v||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=f,b=b?Do(b):null,b!==null&&(S=ca(b),b!==S||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=f),v!==b)){if(x=mb,E="onMouseLeave",y="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(x=gb,E="onPointerLeave",y="onPointerEnter",_="pointer"),S=v==null?m:Ia(v),w=b==null?m:Ia(b),m=new x(E,_+"leave",v,n,d),m.target=S,m.relatedTarget=w,E=null,Do(d)===f&&(x=new x(y,_+"enter",b,n,d),x.target=w,x.relatedTarget=S,E=x),S=E,v&&b)t:{for(x=v,y=b,_=0,w=x;w;w=Aa(w))_++;for(w=0,E=y;E;E=Aa(E))w++;for(;0<_-w;)x=Aa(x),_--;for(;0<w-_;)y=Aa(y),w--;for(;_--;){if(x===y||y!==null&&x===y.alternate)break t;x=Aa(x),y=Aa(y)}x=null}else x=null;v!==null&&Eb(h,m,v,x,!1),b!==null&&S!==null&&Eb(h,S,b,x,!0)}}e:{if(m=f?Ia(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var P=SI;else if(_b(m))if(x2)P=AI;else{P=OI;var A=PI}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(P=TI);if(P&&(P=P(e,f))){y2(h,P,n,d);break e}A&&A(e,m,f),e==="focusout"&&(A=m._wrapperState)&&A.controlled&&m.type==="number"&&Xv(m,"number",m.value)}switch(A=f?Ia(f):window,e){case"focusin":(_b(A)||A.contentEditable==="true")&&(Na=A,lg=f,ru=null);break;case"focusout":ru=lg=Na=null;break;case"mousedown":ug=!0;break;case"contextmenu":case"mouseup":case"dragend":ug=!1,Ob(h,n,d);break;case"selectionchange":if(MI)break;case"keydown":case"keyup":Ob(h,n,d)}var M;if(V0)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else $a?v2(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(m2&&n.locale!=="ko"&&($a||C!=="onCompositionStart"?C==="onCompositionEnd"&&$a&&(M=p2()):(Zi=d,z0="value"in Zi?Zi.value:Zi.textContent,$a=!0)),A=Ph(f,C),0<A.length&&(C=new vb(C,e,null,n,d),h.push({event:C,listeners:A}),M?C.data=M:(M=g2(n),M!==null&&(C.data=M)))),(M=yI?xI(e,n):_I(e,n))&&(f=Ph(f,"onBeforeInput"),0<f.length&&(d=new vb("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:f}),d.data=M))}k2(h,t)})}function Au(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ph(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=_u(e,n),o!=null&&r.unshift(Au(e,o,i)),o=_u(e,t),o!=null&&r.push(Au(e,o,i))),e=e.return}return r}function Aa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Eb(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,u=l.alternate,f=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&f!==null&&(l=f,i?(u=_u(n,o),u!=null&&s.unshift(Au(n,u,l))):i||(u=_u(n,o),u!=null&&s.push(Au(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var NI=/\r\n?/g,LI=/\u0000|\uFFFD/g;function kb(e){return(typeof e=="string"?e:""+e).replace(NI,`
|
|
38
|
+
`).replace(LI,"")}function Ef(e,t,n){if(t=kb(t),kb(e)!==t&&n)throw Error(re(425))}function Oh(){}var cg=null,fg=null;function hg(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 dg=typeof setTimeout=="function"?setTimeout:void 0,II=typeof clearTimeout=="function"?clearTimeout:void 0,Mb=typeof Promise=="function"?Promise:void 0,DI=typeof queueMicrotask=="function"?queueMicrotask:typeof Mb<"u"?function(e){return Mb.resolve(null).then(e).catch(RI)}:dg;function RI(e){setTimeout(function(){throw e})}function Bm(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Su(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Su(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 Cb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Us=Math.random().toString(36).slice(2),Dr="__reactFiber$"+Us,Eu="__reactProps$"+Us,xi="__reactContainer$"+Us,pg="__reactEvents$"+Us,zI="__reactListeners$"+Us,BI="__reactHandles$"+Us;function Do(e){var t=e[Dr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xi]||n[Dr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cb(e);e!==null;){if(n=e[Dr])return n;e=Cb(e)}return t}e=n,n=e.parentNode}return null}function Oc(e){return e=e[Dr]||e[xi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ia(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(re(33))}function ep(e){return e[Eu]||null}var mg=[],Da=-1;function co(e){return{current:e}}function nt(e){0>Da||(e.current=mg[Da],mg[Da]=null,Da--)}function Qe(e,t){Da++,mg[Da]=e.current,e.current=t}var ao={},rn=co(ao),bn=co(!1),Jo=ao;function ls(e,t){var n=e.type.contextTypes;if(!n)return ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wn(e){return e=e.childContextTypes,e!=null}function Th(){nt(bn),nt(rn)}function jb(e,t,n){if(rn.current!==ao)throw Error(re(168));Qe(rn,t),Qe(bn,n)}function C2(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(re(108,PL(e)||"Unknown",i));return dt({},n,r)}function Ah(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ao,Jo=rn.current,Qe(rn,e),Qe(bn,bn.current),!0}function $b(e,t,n){var r=e.stateNode;if(!r)throw Error(re(169));n?(e=C2(e,t,Jo),r.__reactInternalMemoizedMergedChildContext=e,nt(bn),nt(rn),Qe(rn,e)):nt(bn),Qe(bn,n)}var oi=null,tp=!1,Fm=!1;function j2(e){oi===null?oi=[e]:oi.push(e)}function FI(e){tp=!0,j2(e)}function fo(){if(!Fm&&oi!==null){Fm=!0;var e=0,t=Be;try{var n=oi;for(Be=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}oi=null,tp=!1}catch(i){throw oi!==null&&(oi=oi.slice(e+1)),r2(L0,fo),i}finally{Be=t,Fm=!1}}return null}var Ra=[],za=0,Eh=null,kh=0,er=[],tr=0,ea=null,si=1,li="";function Mo(e,t){Ra[za++]=kh,Ra[za++]=Eh,Eh=e,kh=t}function $2(e,t,n){er[tr++]=si,er[tr++]=li,er[tr++]=ea,ea=e;var r=si;e=li;var i=32-Or(r)-1;r&=~(1<<i),n+=1;var o=32-Or(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,si=1<<32-Or(t)+i|n<<i|r,li=o+e}else si=1<<o|n<<i|r,li=e}function W0(e){e.return!==null&&(Mo(e,1),$2(e,1,0))}function H0(e){for(;e===Eh;)Eh=Ra[--za],Ra[za]=null,kh=Ra[--za],Ra[za]=null;for(;e===ea;)ea=er[--tr],er[tr]=null,li=er[--tr],er[tr]=null,si=er[--tr],er[tr]=null}var Ln=null,Nn=null,at=!1,wr=null;function N2(e,t){var n=rr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Nb(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ln=e,Nn=Ji(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ln=e,Nn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ea!==null?{id:si,overflow:li}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ln=e,Nn=null,!0):!1;default:return!1}}function vg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gg(e){if(at){var t=Nn;if(t){var n=t;if(!Nb(e,t)){if(vg(e))throw Error(re(418));t=Ji(n.nextSibling);var r=Ln;t&&Nb(e,t)?N2(r,n):(e.flags=e.flags&-4097|2,at=!1,Ln=e)}}else{if(vg(e))throw Error(re(418));e.flags=e.flags&-4097|2,at=!1,Ln=e}}}function Lb(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ln=e}function kf(e){if(e!==Ln)return!1;if(!at)return Lb(e),at=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hg(e.type,e.memoizedProps)),t&&(t=Nn)){if(vg(e))throw L2(),Error(re(418));for(;t;)N2(e,t),t=Ji(t.nextSibling)}if(Lb(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(re(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Nn=Ji(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Nn=null}}else Nn=Ln?Ji(e.stateNode.nextSibling):null;return!0}function L2(){for(var e=Nn;e;)e=Ji(e.nextSibling)}function us(){Nn=Ln=null,at=!1}function Z0(e){wr===null?wr=[e]:wr.push(e)}var VI=Ai.ReactCurrentBatchConfig;function El(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(re(309));var r=n.stateNode}if(!r)throw Error(re(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(re(284));if(!n._owner)throw Error(re(290,e))}return e}function Mf(e,t){throw e=Object.prototype.toString.call(t),Error(re(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ib(e){var t=e._init;return t(e._payload)}function I2(e){function t(y,_){if(e){var w=y.deletions;w===null?(y.deletions=[_],y.flags|=16):w.push(_)}}function n(y,_){if(!e)return null;for(;_!==null;)t(y,_),_=_.sibling;return null}function r(y,_){for(y=new Map;_!==null;)_.key!==null?y.set(_.key,_):y.set(_.index,_),_=_.sibling;return y}function i(y,_){return y=ro(y,_),y.index=0,y.sibling=null,y}function o(y,_,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<_?(y.flags|=2,_):w):(y.flags|=2,_)):(y.flags|=1048576,_)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,_,w,E){return _===null||_.tag!==6?(_=Km(w,y.mode,E),_.return=y,_):(_=i(_,w),_.return=y,_)}function u(y,_,w,E){var P=w.type;return P===ja?d(y,_,w.props.children,E,w.key):_!==null&&(_.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Bi&&Ib(P)===_.type)?(E=i(_,w.props),E.ref=El(y,_,w),E.return=y,E):(E=dh(w.type,w.key,w.props,null,y.mode,E),E.ref=El(y,_,w),E.return=y,E)}function f(y,_,w,E){return _===null||_.tag!==4||_.stateNode.containerInfo!==w.containerInfo||_.stateNode.implementation!==w.implementation?(_=qm(w,y.mode,E),_.return=y,_):(_=i(_,w.children||[]),_.return=y,_)}function d(y,_,w,E,P){return _===null||_.tag!==7?(_=Ko(w,y.mode,E,P),_.return=y,_):(_=i(_,w),_.return=y,_)}function h(y,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return _=Km(""+_,y.mode,w),_.return=y,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case xf:return w=dh(_.type,_.key,_.props,null,y.mode,w),w.ref=El(y,null,_),w.return=y,w;case Ca:return _=qm(_,y.mode,w),_.return=y,_;case Bi:var E=_._init;return h(y,E(_._payload),w)}if(Hl(_)||Sl(_))return _=Ko(_,y.mode,w,null),_.return=y,_;Mf(y,_)}return null}function m(y,_,w,E){var P=_!==null?_.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return P!==null?null:l(y,_,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case xf:return w.key===P?u(y,_,w,E):null;case Ca:return w.key===P?f(y,_,w,E):null;case Bi:return P=w._init,m(y,_,P(w._payload),E)}if(Hl(w)||Sl(w))return P!==null?null:d(y,_,w,E,null);Mf(y,w)}return null}function v(y,_,w,E,P){if(typeof E=="string"&&E!==""||typeof E=="number")return y=y.get(w)||null,l(_,y,""+E,P);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case xf:return y=y.get(E.key===null?w:E.key)||null,u(_,y,E,P);case Ca:return y=y.get(E.key===null?w:E.key)||null,f(_,y,E,P);case Bi:var A=E._init;return v(y,_,w,A(E._payload),P)}if(Hl(E)||Sl(E))return y=y.get(w)||null,d(_,y,E,P,null);Mf(_,E)}return null}function b(y,_,w,E){for(var P=null,A=null,M=_,C=_=0,N=null;M!==null&&C<w.length;C++){M.index>C?(N=M,M=null):N=M.sibling;var B=m(y,M,w[C],E);if(B===null){M===null&&(M=N);break}e&&M&&B.alternate===null&&t(y,M),_=o(B,_,C),A===null?P=B:A.sibling=B,A=B,M=N}if(C===w.length)return n(y,M),at&&Mo(y,C),P;if(M===null){for(;C<w.length;C++)M=h(y,w[C],E),M!==null&&(_=o(M,_,C),A===null?P=M:A.sibling=M,A=M);return at&&Mo(y,C),P}for(M=r(y,M);C<w.length;C++)N=v(M,y,C,w[C],E),N!==null&&(e&&N.alternate!==null&&M.delete(N.key===null?C:N.key),_=o(N,_,C),A===null?P=N:A.sibling=N,A=N);return e&&M.forEach(function(z){return t(y,z)}),at&&Mo(y,C),P}function x(y,_,w,E){var P=Sl(w);if(typeof P!="function")throw Error(re(150));if(w=P.call(w),w==null)throw Error(re(151));for(var A=P=null,M=_,C=_=0,N=null,B=w.next();M!==null&&!B.done;C++,B=w.next()){M.index>C?(N=M,M=null):N=M.sibling;var z=m(y,M,B.value,E);if(z===null){M===null&&(M=N);break}e&&M&&z.alternate===null&&t(y,M),_=o(z,_,C),A===null?P=z:A.sibling=z,A=z,M=N}if(B.done)return n(y,M),at&&Mo(y,C),P;if(M===null){for(;!B.done;C++,B=w.next())B=h(y,B.value,E),B!==null&&(_=o(B,_,C),A===null?P=B:A.sibling=B,A=B);return at&&Mo(y,C),P}for(M=r(y,M);!B.done;C++,B=w.next())B=v(M,y,C,B.value,E),B!==null&&(e&&B.alternate!==null&&M.delete(B.key===null?C:B.key),_=o(B,_,C),A===null?P=B:A.sibling=B,A=B);return e&&M.forEach(function(R){return t(y,R)}),at&&Mo(y,C),P}function S(y,_,w,E){if(typeof w=="object"&&w!==null&&w.type===ja&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case xf:e:{for(var P=w.key,A=_;A!==null;){if(A.key===P){if(P=w.type,P===ja){if(A.tag===7){n(y,A.sibling),_=i(A,w.props.children),_.return=y,y=_;break e}}else if(A.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Bi&&Ib(P)===A.type){n(y,A.sibling),_=i(A,w.props),_.ref=El(y,A,w),_.return=y,y=_;break e}n(y,A);break}else t(y,A);A=A.sibling}w.type===ja?(_=Ko(w.props.children,y.mode,E,w.key),_.return=y,y=_):(E=dh(w.type,w.key,w.props,null,y.mode,E),E.ref=El(y,_,w),E.return=y,y=E)}return s(y);case Ca:e:{for(A=w.key;_!==null;){if(_.key===A)if(_.tag===4&&_.stateNode.containerInfo===w.containerInfo&&_.stateNode.implementation===w.implementation){n(y,_.sibling),_=i(_,w.children||[]),_.return=y,y=_;break e}else{n(y,_);break}else t(y,_);_=_.sibling}_=qm(w,y.mode,E),_.return=y,y=_}return s(y);case Bi:return A=w._init,S(y,_,A(w._payload),E)}if(Hl(w))return b(y,_,w,E);if(Sl(w))return x(y,_,w,E);Mf(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,_!==null&&_.tag===6?(n(y,_.sibling),_=i(_,w),_.return=y,y=_):(n(y,_),_=Km(w,y.mode,E),_.return=y,y=_),s(y)):n(y,_)}return S}var cs=I2(!0),D2=I2(!1),Mh=co(null),Ch=null,Ba=null,G0=null;function K0(){G0=Ba=Ch=null}function q0(e){var t=Mh.current;nt(Mh),e._currentValue=t}function yg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ts(e,t){Ch=e,G0=Ba=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xn=!0),e.firstContext=null)}function sr(e){var t=e._currentValue;if(G0!==e)if(e={context:e,memoizedValue:t,next:null},Ba===null){if(Ch===null)throw Error(re(308));Ba=e,Ch.dependencies={lanes:0,firstContext:e}}else Ba=Ba.next=e;return t}var Ro=null;function X0(e){Ro===null?Ro=[e]:Ro.push(e)}function R2(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,X0(t)):(n.next=i.next,i.next=n),t.interleaved=n,_i(e,r)}function _i(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Fi=!1;function Y0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function z2(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 hi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function eo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$e&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,_i(e,n)}return i=r.interleaved,i===null?(t.next=t,X0(r)):(t.next=i.next,i.next=t),r.interleaved=t,_i(e,n)}function sh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I0(e,n)}}function Db(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jh(e,t,n,r){var i=e.updateQueue;Fi=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,f=u.next;u.next=null,s===null?o=f:s.next=f,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=f:l.next=f,d.lastBaseUpdate=u))}if(o!==null){var h=i.baseState;s=0,d=f=u=null,l=o;do{var m=l.lane,v=l.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,x=l;switch(m=t,v=n,x.tag){case 1:if(b=x.payload,typeof b=="function"){h=b.call(v,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=x.payload,m=typeof b=="function"?b.call(v,h,m):b,m==null)break e;h=dt({},h,m);break e;case 2:Fi=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else v={eventTime:v,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(f=d=v,u=h):d=d.next=v,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(d===null&&(u=h),i.baseState=u,i.firstBaseUpdate=f,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);na|=s,e.lanes=s,e.memoizedState=h}}function Rb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(re(191,i));i.call(r)}}}var Tc={},Fr=co(Tc),ku=co(Tc),Mu=co(Tc);function zo(e){if(e===Tc)throw Error(re(174));return e}function Q0(e,t){switch(Qe(Mu,t),Qe(ku,e),Qe(Fr,Tc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qv(t,e)}nt(Fr),Qe(Fr,t)}function fs(){nt(Fr),nt(ku),nt(Mu)}function B2(e){zo(Mu.current);var t=zo(Fr.current),n=Qv(t,e.type);t!==n&&(Qe(ku,e),Qe(Fr,n))}function J0(e){ku.current===e&&(nt(Fr),nt(ku))}var ut=co(0);function $h(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 Vm=[];function ex(){for(var e=0;e<Vm.length;e++)Vm[e]._workInProgressVersionPrimary=null;Vm.length=0}var lh=Ai.ReactCurrentDispatcher,Um=Ai.ReactCurrentBatchConfig,ta=0,ht=null,kt=null,It=null,Nh=!1,iu=!1,Cu=0,UI=0;function qt(){throw Error(re(321))}function tx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Er(e[n],t[n]))return!1;return!0}function nx(e,t,n,r,i,o){if(ta=o,ht=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,lh.current=e===null||e.memoizedState===null?GI:KI,e=n(r,i),iu){o=0;do{if(iu=!1,Cu=0,25<=o)throw Error(re(301));o+=1,It=kt=null,t.updateQueue=null,lh.current=qI,e=n(r,i)}while(iu)}if(lh.current=Lh,t=kt!==null&&kt.next!==null,ta=0,It=kt=ht=null,Nh=!1,t)throw Error(re(300));return e}function rx(){var e=Cu!==0;return Cu=0,e}function Ir(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?ht.memoizedState=It=e:It=It.next=e,It}function lr(){if(kt===null){var e=ht.alternate;e=e!==null?e.memoizedState:null}else e=kt.next;var t=It===null?ht.memoizedState:It.next;if(t!==null)It=t,kt=e;else{if(e===null)throw Error(re(310));kt=e,e={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},It===null?ht.memoizedState=It=e:It=It.next=e}return It}function ju(e,t){return typeof t=="function"?t(e):t}function Wm(e){var t=lr(),n=t.queue;if(n===null)throw Error(re(311));n.lastRenderedReducer=e;var r=kt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,u=null,f=o;do{var d=f.lane;if((ta&d)===d)u!==null&&(u=u.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var h={lane:d,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};u===null?(l=u=h,s=r):u=u.next=h,ht.lanes|=d,na|=d}f=f.next}while(f!==null&&f!==o);u===null?s=r:u.next=l,Er(r,t.memoizedState)||(xn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ht.lanes|=o,na|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Hm(e){var t=lr(),n=t.queue;if(n===null)throw Error(re(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Er(o,t.memoizedState)||(xn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function F2(){}function V2(e,t){var n=ht,r=lr(),i=t(),o=!Er(r.memoizedState,i);if(o&&(r.memoizedState=i,xn=!0),r=r.queue,ix(H2.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||It!==null&&It.memoizedState.tag&1){if(n.flags|=2048,$u(9,W2.bind(null,n,r,i,t),void 0,null),Dt===null)throw Error(re(349));ta&30||U2(n,t,i)}return i}function U2(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ht.updateQueue,t===null?(t={lastEffect:null,stores:null},ht.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function W2(e,t,n,r){t.value=n,t.getSnapshot=r,Z2(t)&&G2(e)}function H2(e,t,n){return n(function(){Z2(t)&&G2(e)})}function Z2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Er(e,n)}catch{return!0}}function G2(e){var t=_i(e,1);t!==null&&Tr(t,e,1,-1)}function zb(e){var t=Ir();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ju,lastRenderedState:e},t.queue=e,e=e.dispatch=ZI.bind(null,ht,e),[t.memoizedState,e]}function $u(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ht.updateQueue,t===null?(t={lastEffect:null,stores:null},ht.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function K2(){return lr().memoizedState}function uh(e,t,n,r){var i=Ir();ht.flags|=e,i.memoizedState=$u(1|t,n,void 0,r===void 0?null:r)}function np(e,t,n,r){var i=lr();r=r===void 0?null:r;var o=void 0;if(kt!==null){var s=kt.memoizedState;if(o=s.destroy,r!==null&&tx(r,s.deps)){i.memoizedState=$u(t,n,o,r);return}}ht.flags|=e,i.memoizedState=$u(1|t,n,o,r)}function Bb(e,t){return uh(8390656,8,e,t)}function ix(e,t){return np(2048,8,e,t)}function q2(e,t){return np(4,2,e,t)}function X2(e,t){return np(4,4,e,t)}function Y2(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 Q2(e,t,n){return n=n!=null?n.concat([e]):null,np(4,4,Y2.bind(null,t,e),n)}function ox(){}function J2(e,t){var n=lr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function eE(e,t){var n=lr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tx(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function tE(e,t,n){return ta&21?(Er(n,t)||(n=a2(),ht.lanes|=n,na|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xn=!0),e.memoizedState=n)}function WI(e,t){var n=Be;Be=n!==0&&4>n?n:4,e(!0);var r=Um.transition;Um.transition={};try{e(!1),t()}finally{Be=n,Um.transition=r}}function nE(){return lr().memoizedState}function HI(e,t,n){var r=no(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rE(e))iE(t,n);else if(n=R2(e,t,n,r),n!==null){var i=fn();Tr(n,e,r,i),oE(n,t,r)}}function ZI(e,t,n){var r=no(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rE(e))iE(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Er(l,s)){var u=t.interleaved;u===null?(i.next=i,X0(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=R2(e,t,i,r),n!==null&&(i=fn(),Tr(n,e,r,i),oE(n,t,r))}}function rE(e){var t=e.alternate;return e===ht||t!==null&&t===ht}function iE(e,t){iu=Nh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I0(e,n)}}var Lh={readContext:sr,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useInsertionEffect:qt,useLayoutEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useMutableSource:qt,useSyncExternalStore:qt,useId:qt,unstable_isNewReconciler:!1},GI={readContext:sr,useCallback:function(e,t){return Ir().memoizedState=[e,t===void 0?null:t],e},useContext:sr,useEffect:Bb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,uh(4194308,4,Y2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return uh(4194308,4,e,t)},useInsertionEffect:function(e,t){return uh(4,2,e,t)},useMemo:function(e,t){var n=Ir();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ir();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=HI.bind(null,ht,e),[r.memoizedState,e]},useRef:function(e){var t=Ir();return e={current:e},t.memoizedState=e},useState:zb,useDebugValue:ox,useDeferredValue:function(e){return Ir().memoizedState=e},useTransition:function(){var e=zb(!1),t=e[0];return e=WI.bind(null,e[1]),Ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ht,i=Ir();if(at){if(n===void 0)throw Error(re(407));n=n()}else{if(n=t(),Dt===null)throw Error(re(349));ta&30||U2(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Bb(H2.bind(null,r,o,e),[e]),r.flags|=2048,$u(9,W2.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ir(),t=Dt.identifierPrefix;if(at){var n=li,r=si;n=(r&~(1<<32-Or(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=UI++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},KI={readContext:sr,useCallback:J2,useContext:sr,useEffect:ix,useImperativeHandle:Q2,useInsertionEffect:q2,useLayoutEffect:X2,useMemo:eE,useReducer:Wm,useRef:K2,useState:function(){return Wm(ju)},useDebugValue:ox,useDeferredValue:function(e){var t=lr();return tE(t,kt.memoizedState,e)},useTransition:function(){var e=Wm(ju)[0],t=lr().memoizedState;return[e,t]},useMutableSource:F2,useSyncExternalStore:V2,useId:nE,unstable_isNewReconciler:!1},qI={readContext:sr,useCallback:J2,useContext:sr,useEffect:ix,useImperativeHandle:Q2,useInsertionEffect:q2,useLayoutEffect:X2,useMemo:eE,useReducer:Hm,useRef:K2,useState:function(){return Hm(ju)},useDebugValue:ox,useDeferredValue:function(e){var t=lr();return kt===null?t.memoizedState=e:tE(t,kt.memoizedState,e)},useTransition:function(){var e=Hm(ju)[0],t=lr().memoizedState;return[e,t]},useMutableSource:F2,useSyncExternalStore:V2,useId:nE,unstable_isNewReconciler:!1};function xr(e,t){if(e&&e.defaultProps){t=dt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:dt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var rp={isMounted:function(e){return(e=e._reactInternals)?ca(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fn(),i=no(e),o=hi(r,i);o.payload=t,n!=null&&(o.callback=n),t=eo(e,o,i),t!==null&&(Tr(t,e,i,r),sh(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fn(),i=no(e),o=hi(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=eo(e,o,i),t!==null&&(Tr(t,e,i,r),sh(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fn(),r=no(e),i=hi(n,r);i.tag=2,t!=null&&(i.callback=t),t=eo(e,i,r),t!==null&&(Tr(t,e,r,n),sh(t,e,r))}};function Fb(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Ou(n,r)||!Ou(i,o):!0}function aE(e,t,n){var r=!1,i=ao,o=t.contextType;return typeof o=="object"&&o!==null?o=sr(o):(i=wn(t)?Jo:rn.current,r=t.contextTypes,o=(r=r!=null)?ls(e,i):ao),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=rp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Vb(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&rp.enqueueReplaceState(t,t.state,null)}function _g(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Y0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=sr(o):(o=wn(t)?Jo:rn.current,i.context=ls(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(xg(e,t,o,n),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&&rp.enqueueReplaceState(i,i.state,null),jh(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function hs(e,t){try{var n="",r=t;do n+=SL(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Zm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var XI=typeof WeakMap=="function"?WeakMap:Map;function sE(e,t,n){n=hi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Dh||(Dh=!0,Cg=r),bg(e,t)},n}function lE(e,t,n){n=hi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bg(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bg(e,t),typeof r!="function"&&(to===null?to=new Set([this]):to.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ub(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new XI;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=cD.bind(null,e,t,n),t.then(e,e))}function Wb(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 Hb(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=hi(-1,1),t.tag=2,eo(n,t,1))),n.lanes|=1),e)}var YI=Ai.ReactCurrentOwner,xn=!1;function un(e,t,n,r){t.child=e===null?D2(t,null,n,r):cs(t,e.child,n,r)}function Zb(e,t,n,r,i){n=n.render;var o=t.ref;return ts(t,i),r=nx(e,t,n,r,o,i),n=rx(),e!==null&&!xn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bi(e,t,i)):(at&&n&&W0(t),t.flags|=1,un(e,t,r,i),t.child)}function Gb(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!dx(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,uE(e,t,o,r,i)):(e=dh(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ou,n(s,r)&&e.ref===t.ref)return bi(e,t,i)}return t.flags|=1,e=ro(o,r),e.ref=t.ref,e.return=t,t.child=e}function uE(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ou(o,r)&&e.ref===t.ref)if(xn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(xn=!0);else return t.lanes=e.lanes,bi(e,t,i)}return wg(e,t,n,r,i)}function cE(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(Va,Cn),Cn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Qe(Va,Cn),Cn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Qe(Va,Cn),Cn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Qe(Va,Cn),Cn|=r;return un(e,t,i,n),t.child}function fE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wg(e,t,n,r,i){var o=wn(n)?Jo:rn.current;return o=ls(t,o),ts(t,i),n=nx(e,t,n,r,o,i),r=rx(),e!==null&&!xn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bi(e,t,i)):(at&&r&&W0(t),t.flags|=1,un(e,t,n,i),t.child)}function Kb(e,t,n,r,i){if(wn(n)){var o=!0;Ah(t)}else o=!1;if(ts(t,i),t.stateNode===null)ch(e,t),aE(t,n,r),_g(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=sr(f):(f=wn(n)?Jo:rn.current,f=ls(t,f));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==f)&&Vb(t,s,r,f),Fi=!1;var m=t.memoizedState;s.state=m,jh(t,r,s,i),u=t.memoizedState,l!==r||m!==u||bn.current||Fi?(typeof d=="function"&&(xg(t,n,d,r),u=t.memoizedState),(l=Fi||Fb(t,n,l,r,m,u,f))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=f,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,z2(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:xr(t.type,l),s.props=f,h=t.pendingProps,m=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=sr(u):(u=wn(n)?Jo:rn.current,u=ls(t,u));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==h||m!==u)&&Vb(t,s,r,u),Fi=!1,m=t.memoizedState,s.state=m,jh(t,r,s,i);var b=t.memoizedState;l!==h||m!==b||bn.current||Fi?(typeof v=="function"&&(xg(t,n,v,r),b=t.memoizedState),(f=Fi||Fb(t,n,f,r,m,b,u)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,b,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,b,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),s.props=r,s.state=b,s.context=u,r=f):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Sg(e,t,n,r,o,i)}function Sg(e,t,n,r,i,o){fE(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&$b(t,n,!1),bi(e,t,o);r=t.stateNode,YI.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=cs(t,e.child,null,o),t.child=cs(t,null,l,o)):un(e,t,l,o),t.memoizedState=r.state,i&&$b(t,n,!0),t.child}function hE(e){var t=e.stateNode;t.pendingContext?jb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jb(e,t.context,!1),Q0(e,t.containerInfo)}function qb(e,t,n,r,i){return us(),Z0(i),t.flags|=256,un(e,t,n,r),t.child}var Pg={dehydrated:null,treeContext:null,retryLane:0};function Og(e){return{baseLanes:e,cachePool:null,transitions:null}}function dE(e,t,n){var r=t.pendingProps,i=ut.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Qe(ut,i&1),e===null)return gg(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=ap(s,r,0,null),e=Ko(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Og(n),t.memoizedState=Pg,e):ax(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return QI(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ro(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=ro(l,o):(o=Ko(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Og(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Pg,r}return o=e.child,e=o.sibling,r=ro(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ax(e,t){return t=ap({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Cf(e,t,n,r){return r!==null&&Z0(r),cs(t,e.child,null,n),e=ax(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function QI(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Zm(Error(re(422))),Cf(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ap({mode:"visible",children:r.children},i,0,null),o=Ko(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&cs(t,e.child,null,s),t.child.memoizedState=Og(s),t.memoizedState=Pg,o);if(!(t.mode&1))return Cf(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(re(419)),r=Zm(o,r,void 0),Cf(e,t,s,r)}if(l=(s&e.childLanes)!==0,xn||l){if(r=Dt,r!==null){switch(s&-s){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&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,_i(e,i),Tr(r,e,i,-1))}return hx(),r=Zm(Error(re(421))),Cf(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=fD.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Nn=Ji(i.nextSibling),Ln=t,at=!0,wr=null,e!==null&&(er[tr++]=si,er[tr++]=li,er[tr++]=ea,si=e.id,li=e.overflow,ea=t),t=ax(t,r.children),t.flags|=4096,t)}function Xb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yg(e.return,t,n)}function Gm(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function pE(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(un(e,t,r.children,n),r=ut.current,r&2)r=r&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&&Xb(e,n,t);else if(e.tag===19)Xb(e,n,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}r&=1}if(Qe(ut,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&$h(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Gm(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&$h(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Gm(t,!0,n,null,o);break;case"together":Gm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ch(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),na|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(re(153));if(t.child!==null){for(e=t.child,n=ro(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ro(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function JI(e,t,n){switch(t.tag){case 3:hE(t),us();break;case 5:B2(t);break;case 1:wn(t.type)&&Ah(t);break;case 4:Q0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Qe(Mh,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Qe(ut,ut.current&1),t.flags|=128,null):n&t.child.childLanes?dE(e,t,n):(Qe(ut,ut.current&1),e=bi(e,t,n),e!==null?e.sibling:null);Qe(ut,ut.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return pE(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Qe(ut,ut.current),r)break;return null;case 22:case 23:return t.lanes=0,cE(e,t,n)}return bi(e,t,n)}var mE,Tg,vE,gE;mE=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Tg=function(){};vE=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zo(Fr.current);var o=null;switch(n){case"input":i=Kv(e,i),r=Kv(e,r),o=[];break;case"select":i=dt({},i,{value:void 0}),r=dt({},r,{value:void 0}),o=[];break;case"textarea":i=Yv(e,i),r=Yv(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Oh)}Jv(n,r);var s;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(yu.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var u=r[f];if(l=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&u!==l&&(u!=null||l!=null))if(f==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(f,n)),n=u;else f==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(f,u)):f==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(f,""+u):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(yu.hasOwnProperty(f)?(u!=null&&f==="onScroll"&&Je("scroll",e),o||l===u||(o=[])):(o=o||[]).push(f,u))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};gE=function(e,t,n,r){n!==r&&(t.flags|=4)};function kl(e,t){if(!at)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function eD(e,t,n){var r=t.pendingProps;switch(H0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(t),null;case 1:return wn(t.type)&&Th(),Xt(t),null;case 3:return r=t.stateNode,fs(),nt(bn),nt(rn),ex(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(kf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wr!==null&&(Ng(wr),wr=null))),Tg(e,t),Xt(t),null;case 5:J0(t);var i=zo(Mu.current);if(n=t.type,e!==null&&t.stateNode!=null)vE(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(re(166));return Xt(t),null}if(e=zo(Fr.current),kf(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Dr]=t,r[Eu]=o,e=(t.mode&1)!==0,n){case"dialog":Je("cancel",r),Je("close",r);break;case"iframe":case"object":case"embed":Je("load",r);break;case"video":case"audio":for(i=0;i<Gl.length;i++)Je(Gl[i],r);break;case"source":Je("error",r);break;case"img":case"image":case"link":Je("error",r),Je("load",r);break;case"details":Je("toggle",r);break;case"input":ob(r,o),Je("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Je("invalid",r);break;case"textarea":sb(r,o),Je("invalid",r)}Jv(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Ef(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Ef(r.textContent,l,e),i=["children",""+l]):yu.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Je("scroll",r)}switch(n){case"input":_f(r),ab(r,o,!0);break;case"textarea":_f(r),lb(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Oh)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=HA(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Dr]=t,e[Eu]=r,mE(e,t,!1,!1),t.stateNode=e;e:{switch(s=eg(n,r),n){case"dialog":Je("cancel",e),Je("close",e),i=r;break;case"iframe":case"object":case"embed":Je("load",e),i=r;break;case"video":case"audio":for(i=0;i<Gl.length;i++)Je(Gl[i],e);i=r;break;case"source":Je("error",e),i=r;break;case"img":case"image":case"link":Je("error",e),Je("load",e),i=r;break;case"details":Je("toggle",e),i=r;break;case"input":ob(e,r),i=Kv(e,r),Je("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=dt({},r,{value:void 0}),Je("invalid",e);break;case"textarea":sb(e,r),i=Yv(e,r),Je("invalid",e);break;default:i=r}Jv(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?KA(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&ZA(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&xu(e,u):typeof u=="number"&&xu(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(yu.hasOwnProperty(o)?u!=null&&o==="onScroll"&&Je("scroll",e):u!=null&&M0(e,o,u,s))}switch(n){case"input":_f(e),ab(e,r,!1);break;case"textarea":_f(e),lb(e);break;case"option":r.value!=null&&e.setAttribute("value",""+oo(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ya(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ya(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Oh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Xt(t),null;case 6:if(e&&t.stateNode!=null)gE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(re(166));if(n=zo(Mu.current),zo(Fr.current),kf(t)){if(r=t.stateNode,n=t.memoizedProps,r[Dr]=t,(o=r.nodeValue!==n)&&(e=Ln,e!==null))switch(e.tag){case 3:Ef(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ef(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Dr]=t,t.stateNode=r}return Xt(t),null;case 13:if(nt(ut),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(at&&Nn!==null&&t.mode&1&&!(t.flags&128))L2(),us(),t.flags|=98560,o=!1;else if(o=kf(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(re(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(re(317));o[Dr]=t}else us(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xt(t),o=!1}else wr!==null&&(Ng(wr),wr=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ut.current&1?Mt===0&&(Mt=3):hx())),t.updateQueue!==null&&(t.flags|=4),Xt(t),null);case 4:return fs(),Tg(e,t),e===null&&Tu(t.stateNode.containerInfo),Xt(t),null;case 10:return q0(t.type._context),Xt(t),null;case 17:return wn(t.type)&&Th(),Xt(t),null;case 19:if(nt(ut),o=t.memoizedState,o===null)return Xt(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)kl(o,!1);else{if(Mt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=$h(e),s!==null){for(t.flags|=128,kl(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===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=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Qe(ut,ut.current&1|2),t.child}e=e.sibling}o.tail!==null&&xt()>ds&&(t.flags|=128,r=!0,kl(o,!1),t.lanes=4194304)}else{if(!r)if(e=$h(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!at)return Xt(t),null}else 2*xt()-o.renderingStartTime>ds&&n!==1073741824&&(t.flags|=128,r=!0,kl(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=xt(),t.sibling=null,n=ut.current,Qe(ut,r?n&1|2:n&1),t):(Xt(t),null);case 22:case 23:return fx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Cn&1073741824&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function tD(e,t){switch(H0(t),t.tag){case 1:return wn(t.type)&&Th(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fs(),nt(bn),nt(rn),ex(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return J0(t),null;case 13:if(nt(ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));us()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ut),null;case 4:return fs(),null;case 10:return q0(t.type._context),null;case 22:case 23:return fx(),null;case 24:return null;default:return null}}var jf=!1,Jt=!1,nD=typeof WeakSet=="function"?WeakSet:Set,le=null;function Fa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){mt(e,t,r)}else n.current=null}function Ag(e,t,n){try{n()}catch(r){mt(e,t,r)}}var Yb=!1;function rD(e,t){if(cg=wh,e=w2(),U0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,f=0,d=0,h=e,m=null;t:for(;;){for(var v;h!==n||i!==0&&h.nodeType!==3||(l=s+i),h!==o||r!==0&&h.nodeType!==3||(u=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===i&&(l=s),m===o&&++d===r&&(u=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(fg={focusedElem:e,selectionRange:n},wh=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var x=b.memoizedProps,S=b.memoizedState,y=t.stateNode,_=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:xr(t.type,x),S);y.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(E){mt(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return b=Yb,Yb=!1,b}function ou(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ag(t,n,o)}i=i.next}while(i!==r)}}function ip(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Eg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yE(e){var t=e.alternate;t!==null&&(e.alternate=null,yE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dr],delete t[Eu],delete t[pg],delete t[zI],delete t[BI])),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 xE(e){return e.tag===5||e.tag===3||e.tag===4}function Qb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xE(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 kg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Oh));else if(r!==4&&(e=e.child,e!==null))for(kg(e,t,n),e=e.sibling;e!==null;)kg(e,t,n),e=e.sibling}function Mg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mg(e,t,n),e=e.sibling;e!==null;)Mg(e,t,n),e=e.sibling}var Vt=null,_r=!1;function Di(e,t,n){for(n=n.child;n!==null;)_E(e,t,n),n=n.sibling}function _E(e,t,n){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(Xd,n)}catch{}switch(n.tag){case 5:Jt||Fa(n,t);case 6:var r=Vt,i=_r;Vt=null,Di(e,t,n),Vt=r,_r=i,Vt!==null&&(_r?(e=Vt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Vt.removeChild(n.stateNode));break;case 18:Vt!==null&&(_r?(e=Vt,n=n.stateNode,e.nodeType===8?Bm(e.parentNode,n):e.nodeType===1&&Bm(e,n),Su(e)):Bm(Vt,n.stateNode));break;case 4:r=Vt,i=_r,Vt=n.stateNode.containerInfo,_r=!0,Di(e,t,n),Vt=r,_r=i;break;case 0:case 11:case 14:case 15:if(!Jt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ag(n,t,s),i=i.next}while(i!==r)}Di(e,t,n);break;case 1:if(!Jt&&(Fa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){mt(n,t,l)}Di(e,t,n);break;case 21:Di(e,t,n);break;case 22:n.mode&1?(Jt=(r=Jt)||n.memoizedState!==null,Di(e,t,n),Jt=r):Di(e,t,n);break;default:Di(e,t,n)}}function Jb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nD),t.forEach(function(r){var i=hD.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Vt=l.stateNode,_r=!1;break e;case 3:Vt=l.stateNode.containerInfo,_r=!0;break e;case 4:Vt=l.stateNode.containerInfo,_r=!0;break e}l=l.return}if(Vt===null)throw Error(re(160));_E(o,s,i),Vt=null,_r=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(f){mt(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)bE(t,e),t=t.sibling}function bE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vr(t,e),Lr(e),r&4){try{ou(3,e,e.return),ip(3,e)}catch(x){mt(e,e.return,x)}try{ou(5,e,e.return)}catch(x){mt(e,e.return,x)}}break;case 1:vr(t,e),Lr(e),r&512&&n!==null&&Fa(n,n.return);break;case 5:if(vr(t,e),Lr(e),r&512&&n!==null&&Fa(n,n.return),e.flags&32){var i=e.stateNode;try{xu(i,"")}catch(x){mt(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&UA(i,o),eg(l,s);var f=eg(l,o);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];d==="style"?KA(i,h):d==="dangerouslySetInnerHTML"?ZA(i,h):d==="children"?xu(i,h):M0(i,d,h,f)}switch(l){case"input":qv(i,o);break;case"textarea":WA(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Ya(i,!!o.multiple,v,!1):m!==!!o.multiple&&(o.defaultValue!=null?Ya(i,!!o.multiple,o.defaultValue,!0):Ya(i,!!o.multiple,o.multiple?[]:"",!1))}i[Eu]=o}catch(x){mt(e,e.return,x)}}break;case 6:if(vr(t,e),Lr(e),r&4){if(e.stateNode===null)throw Error(re(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(x){mt(e,e.return,x)}}break;case 3:if(vr(t,e),Lr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Su(t.containerInfo)}catch(x){mt(e,e.return,x)}break;case 4:vr(t,e),Lr(e);break;case 13:vr(t,e),Lr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ux=xt())),r&4&&Jb(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Jt=(f=Jt)||d,vr(t,e),Jt=f):vr(t,e),Lr(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!d&&e.mode&1)for(le=e,d=e.child;d!==null;){for(h=le=d;le!==null;){switch(m=le,v=m.child,m.tag){case 0:case 11:case 14:case 15:ou(4,m,m.return);break;case 1:Fa(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(x){mt(r,n,x)}}break;case 5:Fa(m,m.return);break;case 22:if(m.memoizedState!==null){tw(h);continue}}v!==null?(v.return=m,le=v):tw(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,f?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=h.stateNode,u=h.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=GA("display",s))}catch(x){mt(e,e.return,x)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(x){mt(e,e.return,x)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:vr(t,e),Lr(e),r&4&&Jb(e);break;case 21:break;default:vr(t,e),Lr(e)}}function Lr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(xE(n)){var r=n;break e}n=n.return}throw Error(re(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(xu(i,""),r.flags&=-33);var o=Qb(e);Mg(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Qb(e);kg(e,l,s);break;default:throw Error(re(161))}}catch(u){mt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function iD(e,t,n){le=e,wE(e)}function wE(e,t,n){for(var r=(e.mode&1)!==0;le!==null;){var i=le,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||jf;if(!s){var l=i.alternate,u=l!==null&&l.memoizedState!==null||Jt;l=jf;var f=Jt;if(jf=s,(Jt=u)&&!f)for(le=i;le!==null;)s=le,u=s.child,s.tag===22&&s.memoizedState!==null?nw(i):u!==null?(u.return=s,le=u):nw(i);for(;o!==null;)le=o,wE(o),o=o.sibling;le=i,jf=l,Jt=f}ew(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,le=o):ew(e)}}function ew(e){for(;le!==null;){var t=le;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Jt||ip(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Jt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:xr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Rb(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Rb(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var d=f.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Su(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(re(163))}Jt||t.flags&512&&Eg(t)}catch(m){mt(t,t.return,m)}}if(t===e){le=null;break}if(n=t.sibling,n!==null){n.return=t.return,le=n;break}le=t.return}}function tw(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var n=t.sibling;if(n!==null){n.return=t.return,le=n;break}le=t.return}}function nw(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ip(4,t)}catch(u){mt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){mt(t,i,u)}}var o=t.return;try{Eg(t)}catch(u){mt(t,o,u)}break;case 5:var s=t.return;try{Eg(t)}catch(u){mt(t,s,u)}}}catch(u){mt(t,t.return,u)}if(t===e){le=null;break}var l=t.sibling;if(l!==null){l.return=t.return,le=l;break}le=t.return}}var oD=Math.ceil,Ih=Ai.ReactCurrentDispatcher,sx=Ai.ReactCurrentOwner,or=Ai.ReactCurrentBatchConfig,$e=0,Dt=null,Pt=null,Ht=0,Cn=0,Va=co(0),Mt=0,Nu=null,na=0,op=0,lx=0,au=null,yn=null,ux=0,ds=1/0,ri=null,Dh=!1,Cg=null,to=null,$f=!1,Gi=null,Rh=0,su=0,jg=null,fh=-1,hh=0;function fn(){return $e&6?xt():fh!==-1?fh:fh=xt()}function no(e){return e.mode&1?$e&2&&Ht!==0?Ht&-Ht:VI.transition!==null?(hh===0&&(hh=a2()),hh):(e=Be,e!==0||(e=window.event,e=e===void 0?16:d2(e.type)),e):1}function Tr(e,t,n,r){if(50<su)throw su=0,jg=null,Error(re(185));Sc(e,n,r),(!($e&2)||e!==Dt)&&(e===Dt&&(!($e&2)&&(op|=n),Mt===4&&Wi(e,Ht)),Sn(e,r),n===1&&$e===0&&!(t.mode&1)&&(ds=xt()+500,tp&&fo()))}function Sn(e,t){var n=e.callbackNode;VL(e,t);var r=bh(e,e===Dt?Ht:0);if(r===0)n!==null&&fb(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fb(n),t===1)e.tag===0?FI(rw.bind(null,e)):j2(rw.bind(null,e)),DI(function(){!($e&6)&&fo()}),n=null;else{switch(s2(r)){case 1:n=L0;break;case 4:n=i2;break;case 16:n=_h;break;case 536870912:n=o2;break;default:n=_h}n=ME(n,SE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function SE(e,t){if(fh=-1,hh=0,$e&6)throw Error(re(327));var n=e.callbackNode;if(ns()&&e.callbackNode!==n)return null;var r=bh(e,e===Dt?Ht:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=zh(e,r);else{t=r;var i=$e;$e|=2;var o=OE();(Dt!==e||Ht!==t)&&(ri=null,ds=xt()+500,Go(e,t));do try{lD();break}catch(l){PE(e,l)}while(!0);K0(),Ih.current=o,$e=i,Pt!==null?t=0:(Dt=null,Ht=0,t=Mt)}if(t!==0){if(t===2&&(i=og(e),i!==0&&(r=i,t=$g(e,i))),t===1)throw n=Nu,Go(e,0),Wi(e,r),Sn(e,xt()),n;if(t===6)Wi(e,r);else{if(i=e.current.alternate,!(r&30)&&!aD(i)&&(t=zh(e,r),t===2&&(o=og(e),o!==0&&(r=o,t=$g(e,o))),t===1))throw n=Nu,Go(e,0),Wi(e,r),Sn(e,xt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(re(345));case 2:Co(e,yn,ri);break;case 3:if(Wi(e,r),(r&130023424)===r&&(t=ux+500-xt(),10<t)){if(bh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=dg(Co.bind(null,e,yn,ri),t);break}Co(e,yn,ri);break;case 4:if(Wi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Or(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=xt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oD(r/1960))-r,10<r){e.timeoutHandle=dg(Co.bind(null,e,yn,ri),r);break}Co(e,yn,ri);break;case 5:Co(e,yn,ri);break;default:throw Error(re(329))}}}return Sn(e,xt()),e.callbackNode===n?SE.bind(null,e):null}function $g(e,t){var n=au;return e.current.memoizedState.isDehydrated&&(Go(e,t).flags|=256),e=zh(e,t),e!==2&&(t=yn,yn=n,t!==null&&Ng(t)),e}function Ng(e){yn===null?yn=e:yn.push.apply(yn,e)}function aD(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Er(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Wi(e,t){for(t&=~lx,t&=~op,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Or(t),r=1<<n;e[n]=-1,t&=~r}}function rw(e){if($e&6)throw Error(re(327));ns();var t=bh(e,0);if(!(t&1))return Sn(e,xt()),null;var n=zh(e,t);if(e.tag!==0&&n===2){var r=og(e);r!==0&&(t=r,n=$g(e,r))}if(n===1)throw n=Nu,Go(e,0),Wi(e,t),Sn(e,xt()),n;if(n===6)throw Error(re(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Co(e,yn,ri),Sn(e,xt()),null}function cx(e,t){var n=$e;$e|=1;try{return e(t)}finally{$e=n,$e===0&&(ds=xt()+500,tp&&fo())}}function ra(e){Gi!==null&&Gi.tag===0&&!($e&6)&&ns();var t=$e;$e|=1;var n=or.transition,r=Be;try{if(or.transition=null,Be=1,e)return e()}finally{Be=r,or.transition=n,$e=t,!($e&6)&&fo()}}function fx(){Cn=Va.current,nt(Va)}function Go(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,II(n)),Pt!==null)for(n=Pt.return;n!==null;){var r=n;switch(H0(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Th();break;case 3:fs(),nt(bn),nt(rn),ex();break;case 5:J0(r);break;case 4:fs();break;case 13:nt(ut);break;case 19:nt(ut);break;case 10:q0(r.type._context);break;case 22:case 23:fx()}n=n.return}if(Dt=e,Pt=e=ro(e.current,null),Ht=Cn=t,Mt=0,Nu=null,lx=op=na=0,yn=au=null,Ro!==null){for(t=0;t<Ro.length;t++)if(n=Ro[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Ro=null}return e}function PE(e,t){do{var n=Pt;try{if(K0(),lh.current=Lh,Nh){for(var r=ht.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Nh=!1}if(ta=0,It=kt=ht=null,iu=!1,Cu=0,sx.current=null,n===null||n.return===null){Mt=1,Nu=t,Pt=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=Ht,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=u,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=Wb(s);if(v!==null){v.flags&=-257,Hb(v,s,l,o,t),v.mode&1&&Ub(o,f,t),t=v,u=f;var b=t.updateQueue;if(b===null){var x=new Set;x.add(u),t.updateQueue=x}else b.add(u);break e}else{if(!(t&1)){Ub(o,f,t),hx();break e}u=Error(re(426))}}else if(at&&l.mode&1){var S=Wb(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Hb(S,s,l,o,t),Z0(hs(u,l));break e}}o=u=hs(u,l),Mt!==4&&(Mt=2),au===null?au=[o]:au.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=sE(o,u,t);Db(o,y);break e;case 1:l=u;var _=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof _.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(to===null||!to.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=lE(o,l,t);Db(o,E);break e}}o=o.return}while(o!==null)}AE(n)}catch(P){t=P,Pt===n&&n!==null&&(Pt=n=n.return);continue}break}while(!0)}function OE(){var e=Ih.current;return Ih.current=Lh,e===null?Lh:e}function hx(){(Mt===0||Mt===3||Mt===2)&&(Mt=4),Dt===null||!(na&268435455)&&!(op&268435455)||Wi(Dt,Ht)}function zh(e,t){var n=$e;$e|=2;var r=OE();(Dt!==e||Ht!==t)&&(ri=null,Go(e,t));do try{sD();break}catch(i){PE(e,i)}while(!0);if(K0(),$e=n,Ih.current=r,Pt!==null)throw Error(re(261));return Dt=null,Ht=0,Mt}function sD(){for(;Pt!==null;)TE(Pt)}function lD(){for(;Pt!==null&&!$L();)TE(Pt)}function TE(e){var t=kE(e.alternate,e,Cn);e.memoizedProps=e.pendingProps,t===null?AE(e):Pt=t,sx.current=null}function AE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=tD(n,t),n!==null){n.flags&=32767,Pt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Mt=6,Pt=null;return}}else if(n=eD(n,t,Cn),n!==null){Pt=n;return}if(t=t.sibling,t!==null){Pt=t;return}Pt=t=e}while(t!==null);Mt===0&&(Mt=5)}function Co(e,t,n){var r=Be,i=or.transition;try{or.transition=null,Be=1,uD(e,t,n,r)}finally{or.transition=i,Be=r}return null}function uD(e,t,n,r){do ns();while(Gi!==null);if($e&6)throw Error(re(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(re(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(UL(e,o),e===Dt&&(Pt=Dt=null,Ht=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||$f||($f=!0,ME(_h,function(){return ns(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=or.transition,or.transition=null;var s=Be;Be=1;var l=$e;$e|=4,sx.current=null,rD(e,n),bE(n,e),kI(fg),wh=!!cg,fg=cg=null,e.current=n,iD(n),NL(),$e=l,Be=s,or.transition=o}else e.current=n;if($f&&($f=!1,Gi=e,Rh=i),o=e.pendingLanes,o===0&&(to=null),DL(n.stateNode),Sn(e,xt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Dh)throw Dh=!1,e=Cg,Cg=null,e;return Rh&1&&e.tag!==0&&ns(),o=e.pendingLanes,o&1?e===jg?su++:(su=0,jg=e):su=0,fo(),null}function ns(){if(Gi!==null){var e=s2(Rh),t=or.transition,n=Be;try{if(or.transition=null,Be=16>e?16:e,Gi===null)var r=!1;else{if(e=Gi,Gi=null,Rh=0,$e&6)throw Error(re(331));var i=$e;for($e|=4,le=e.current;le!==null;){var o=le,s=o.child;if(le.flags&16){var l=o.deletions;if(l!==null){for(var u=0;u<l.length;u++){var f=l[u];for(le=f;le!==null;){var d=le;switch(d.tag){case 0:case 11:case 15:ou(8,d,o)}var h=d.child;if(h!==null)h.return=d,le=h;else for(;le!==null;){d=le;var m=d.sibling,v=d.return;if(yE(d),d===f){le=null;break}if(m!==null){m.return=v,le=m;break}le=v}}}var b=o.alternate;if(b!==null){var x=b.child;if(x!==null){b.child=null;do{var S=x.sibling;x.sibling=null,x=S}while(x!==null)}}le=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,le=s;else e:for(;le!==null;){if(o=le,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ou(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,le=y;break e}le=o.return}}var _=e.current;for(le=_;le!==null;){s=le;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,le=w;else e:for(s=_;le!==null;){if(l=le,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ip(9,l)}}catch(P){mt(l,l.return,P)}if(l===s){le=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,le=E;break e}le=l.return}}if($e=i,fo(),Br&&typeof Br.onPostCommitFiberRoot=="function")try{Br.onPostCommitFiberRoot(Xd,e)}catch{}r=!0}return r}finally{Be=n,or.transition=t}}return!1}function iw(e,t,n){t=hs(n,t),t=sE(e,t,1),e=eo(e,t,1),t=fn(),e!==null&&(Sc(e,1,t),Sn(e,t))}function mt(e,t,n){if(e.tag===3)iw(e,e,n);else for(;t!==null;){if(t.tag===3){iw(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(to===null||!to.has(r))){e=hs(n,e),e=lE(t,e,1),t=eo(t,e,1),e=fn(),t!==null&&(Sc(t,1,e),Sn(t,e));break}}t=t.return}}function cD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fn(),e.pingedLanes|=e.suspendedLanes&n,Dt===e&&(Ht&n)===n&&(Mt===4||Mt===3&&(Ht&130023424)===Ht&&500>xt()-ux?Go(e,0):lx|=n),Sn(e,t)}function EE(e,t){t===0&&(e.mode&1?(t=Sf,Sf<<=1,!(Sf&130023424)&&(Sf=4194304)):t=1);var n=fn();e=_i(e,t),e!==null&&(Sc(e,t,n),Sn(e,n))}function fD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),EE(e,n)}function hD(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(re(314))}r!==null&&r.delete(t),EE(e,n)}var kE;kE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bn.current)xn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xn=!1,JI(e,t,n);xn=!!(e.flags&131072)}else xn=!1,at&&t.flags&1048576&&$2(t,kh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ch(e,t),e=t.pendingProps;var i=ls(t,rn.current);ts(t,n),i=nx(null,t,r,e,i,n);var o=rx();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,wn(r)?(o=!0,Ah(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Y0(t),i.updater=rp,t.stateNode=i,i._reactInternals=t,_g(t,r,e,n),t=Sg(null,t,r,!0,o,n)):(t.tag=0,at&&o&&W0(t),un(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ch(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=pD(r),e=xr(r,e),i){case 0:t=wg(null,t,r,e,n);break e;case 1:t=Kb(null,t,r,e,n);break e;case 11:t=Zb(null,t,r,e,n);break e;case 14:t=Gb(null,t,r,xr(r.type,e),n);break e}throw Error(re(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),wg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),Kb(e,t,r,i,n);case 3:e:{if(hE(t),e===null)throw Error(re(387));r=t.pendingProps,o=t.memoizedState,i=o.element,z2(e,t),jh(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=hs(Error(re(423)),t),t=qb(e,t,r,n,i);break e}else if(r!==i){i=hs(Error(re(424)),t),t=qb(e,t,r,n,i);break e}else for(Nn=Ji(t.stateNode.containerInfo.firstChild),Ln=t,at=!0,wr=null,n=D2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(us(),r===i){t=bi(e,t,n);break e}un(e,t,r,n)}t=t.child}return t;case 5:return B2(t),e===null&&gg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,hg(r,i)?s=null:o!==null&&hg(r,o)&&(t.flags|=32),fE(e,t),un(e,t,s,n),t.child;case 6:return e===null&&gg(t),null;case 13:return dE(e,t,n);case 4:return Q0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cs(t,null,r,n):un(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),Zb(e,t,r,i,n);case 7:return un(e,t,t.pendingProps,n),t.child;case 8:return un(e,t,t.pendingProps.children,n),t.child;case 12:return un(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Qe(Mh,r._currentValue),r._currentValue=s,o!==null)if(Er(o.value,s)){if(o.children===i.children&&!bn.current){t=bi(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=hi(-1,n&-n),u.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var d=f.pending;d===null?u.next=u:(u.next=d.next,d.next=u),f.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),yg(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(re(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),yg(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}un(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ts(t,n),i=sr(i),r=r(i),t.flags|=1,un(e,t,r,n),t.child;case 14:return r=t.type,i=xr(r,t.pendingProps),i=xr(r.type,i),Gb(e,t,r,i,n);case 15:return uE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:xr(r,i),ch(e,t),t.tag=1,wn(r)?(e=!0,Ah(t)):e=!1,ts(t,n),aE(t,r,i),_g(t,r,i,n),Sg(null,t,r,!0,e,n);case 19:return pE(e,t,n);case 22:return cE(e,t,n)}throw Error(re(156,t.tag))};function ME(e,t){return r2(e,t)}function dD(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rr(e,t,n,r){return new dD(e,t,n,r)}function dx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pD(e){if(typeof e=="function")return dx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j0)return 11;if(e===$0)return 14}return 2}function ro(e,t){var n=e.alternate;return n===null?(n=rr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function dh(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")dx(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ja:return Ko(n.children,i,o,t);case C0:s=8,i|=8;break;case Wv:return e=rr(12,n,t,i|2),e.elementType=Wv,e.lanes=o,e;case Hv:return e=rr(13,n,t,i),e.elementType=Hv,e.lanes=o,e;case Zv:return e=rr(19,n,t,i),e.elementType=Zv,e.lanes=o,e;case BA:return ap(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case RA:s=10;break e;case zA:s=9;break e;case j0:s=11;break e;case $0:s=14;break e;case Bi:s=16,r=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=rr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ko(e,t,n,r){return e=rr(7,e,r,t),e.lanes=n,e}function ap(e,t,n,r){return e=rr(22,e,r,t),e.elementType=BA,e.lanes=n,e.stateNode={isHidden:!1},e}function Km(e,t,n){return e=rr(6,e,null,t),e.lanes=n,e}function qm(e,t,n){return t=rr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mD(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=km(0),this.expirationTimes=km(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=km(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function px(e,t,n,r,i,o,s,l,u){return e=new mD(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=rr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Y0(o),e}function vD(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ca,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function CE(e){if(!e)return ao;e=e._reactInternals;e:{if(ca(e)!==e||e.tag!==1)throw Error(re(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(re(171))}if(e.tag===1){var n=e.type;if(wn(n))return C2(e,n,t)}return t}function jE(e,t,n,r,i,o,s,l,u){return e=px(n,r,!0,e,i,o,s,l,u),e.context=CE(null),n=e.current,r=fn(),i=no(n),o=hi(r,i),o.callback=t??null,eo(n,o,i),e.current.lanes=i,Sc(e,i,r),Sn(e,r),e}function sp(e,t,n,r){var i=t.current,o=fn(),s=no(i);return n=CE(n),t.context===null?t.context=n:t.pendingContext=n,t=hi(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=eo(i,t,s),e!==null&&(Tr(e,i,s,o),sh(e,i,s)),s}function Bh(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 ow(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mx(e,t){ow(e,t),(e=e.alternate)&&ow(e,t)}function gD(){return null}var $E=typeof reportError=="function"?reportError:function(e){console.error(e)};function vx(e){this._internalRoot=e}lp.prototype.render=vx.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(re(409));sp(e,t,null,null)};lp.prototype.unmount=vx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ra(function(){sp(null,e,null,null)}),t[xi]=null}};function lp(e){this._internalRoot=e}lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=c2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ui.length&&t!==0&&t<Ui[n].priority;n++);Ui.splice(n,0,e),n===0&&h2(e)}};function gx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function up(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function aw(){}function yD(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var f=Bh(s);o.call(f)}}var s=jE(t,r,e,0,null,!1,!1,"",aw);return e._reactRootContainer=s,e[xi]=s.current,Tu(e.nodeType===8?e.parentNode:e),ra(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var f=Bh(u);l.call(f)}}var u=px(e,0,!1,null,null,!1,!1,"",aw);return e._reactRootContainer=u,e[xi]=u.current,Tu(e.nodeType===8?e.parentNode:e),ra(function(){sp(t,u,n,r)}),u}function cp(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var u=Bh(s);l.call(u)}}sp(t,s,e,i)}else s=yD(n,t,e,i,r);return Bh(s)}l2=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Zl(t.pendingLanes);n!==0&&(I0(t,n|1),Sn(t,xt()),!($e&6)&&(ds=xt()+500,fo()))}break;case 13:ra(function(){var r=_i(e,1);if(r!==null){var i=fn();Tr(r,e,1,i)}}),mx(e,1)}};D0=function(e){if(e.tag===13){var t=_i(e,134217728);if(t!==null){var n=fn();Tr(t,e,134217728,n)}mx(e,134217728)}};u2=function(e){if(e.tag===13){var t=no(e),n=_i(e,t);if(n!==null){var r=fn();Tr(n,e,t,r)}mx(e,t)}};c2=function(){return Be};f2=function(e,t){var n=Be;try{return Be=e,t()}finally{Be=n}};ng=function(e,t,n){switch(t){case"input":if(qv(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ep(r);if(!i)throw Error(re(90));VA(r),qv(r,i)}}}break;case"textarea":WA(e,n);break;case"select":t=n.value,t!=null&&Ya(e,!!n.multiple,t,!1)}};YA=cx;QA=ra;var xD={usingClientEntryPoint:!1,Events:[Oc,Ia,ep,qA,XA,cx]},Ml={findFiberByHostInstance:Do,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_D={bundleType:Ml.bundleType,version:Ml.version,rendererPackageName:Ml.rendererPackageName,rendererConfig:Ml.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ai.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=t2(e),e===null?null:e.stateNode},findFiberByHostInstance:Ml.findFiberByHostInstance||gD,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 Nf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nf.isDisabled&&Nf.supportsFiber)try{Xd=Nf.inject(_D),Br=Nf}catch{}}Fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xD;Fn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gx(t))throw Error(re(200));return vD(e,t,null,n)};Fn.createRoot=function(e,t){if(!gx(e))throw Error(re(299));var n=!1,r="",i=$E;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=px(e,1,!1,null,null,n,!1,r,i),e[xi]=t.current,Tu(e.nodeType===8?e.parentNode:e),new vx(t)};Fn.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(re(188)):(e=Object.keys(e).join(","),Error(re(268,e)));return e=t2(t),e=e===null?null:e.stateNode,e};Fn.flushSync=function(e){return ra(e)};Fn.hydrate=function(e,t,n){if(!up(t))throw Error(re(200));return cp(null,e,t,!0,n)};Fn.hydrateRoot=function(e,t,n){if(!gx(e))throw Error(re(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=$E;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=jE(t,null,e,1,n??null,i,!1,o,s),e[xi]=t.current,Tu(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new lp(t)};Fn.render=function(e,t,n){if(!up(t))throw Error(re(200));return cp(null,e,t,!1,n)};Fn.unmountComponentAtNode=function(e){if(!up(e))throw Error(re(40));return e._reactRootContainer?(ra(function(){cp(null,null,e,!1,function(){e._reactRootContainer=null,e[xi]=null})}),!0):!1};Fn.unstable_batchedUpdates=cx;Fn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!up(n))throw Error(re(200));if(e==null||e._reactInternals===void 0)throw Error(re(38));return cp(e,t,n,!1,r)};Fn.version="18.3.1-next-f1338f8080-20240426";function NE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NE)}catch(e){console.error(e)}}NE(),NA.exports=Fn;var bD=NA.exports,sw=bD;Vv.createRoot=sw.createRoot,Vv.hydrateRoot=sw.hydrateRoot;const yx=j.createContext({});function xx(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const fp=j.createContext(null),_x=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class wD extends j.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function SD({children:e,isPresent:t}){const n=j.useId(),r=j.useRef(null),i=j.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=j.useContext(_x);return j.useInsertionEffect(()=>{const{width:s,height:l,top:u,left:f}=i.current;if(t||!r.current||!s||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
41
|
+
[data-motion-pop-id="${n}"] {
|
|
42
|
+
position: absolute !important;
|
|
43
|
+
width: ${s}px !important;
|
|
44
|
+
height: ${l}px !important;
|
|
45
|
+
top: ${u}px !important;
|
|
46
|
+
left: ${f}px !important;
|
|
47
|
+
}
|
|
48
|
+
`),()=>{document.head.removeChild(d)}},[t]),O.jsx(wD,{isPresent:t,childRef:r,sizeRef:i,children:j.cloneElement(e,{ref:r})})}const PD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=xx(OD),u=j.useId(),f=j.useCallback(h=>{l.set(h,!0);for(const m of l.values())if(!m)return;r&&r()},[l,r]),d=j.useMemo(()=>({id:u,initial:t,isPresent:n,custom:i,onExitComplete:f,register:h=>(l.set(h,!1),()=>l.delete(h))}),o?[Math.random(),f]:[n,f]);return j.useMemo(()=>{l.forEach((h,m)=>l.set(m,!1))},[n]),j.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=O.jsx(SD,{isPresent:n,children:e})),O.jsx(fp.Provider,{value:d,children:e})};function OD(){return new Map}function LE(e=!0){const t=j.useContext(fp);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=j.useId();j.useEffect(()=>{e&&i(o)},[e]);const s=j.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Lf=e=>e.key||"";function lw(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const bx=typeof window<"u",IE=bx?j.useLayoutEffect:j.useEffect,TD=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1})=>{const[l,u]=LE(s),f=j.useMemo(()=>lw(e),[e]),d=s&&!l?[]:f.map(Lf),h=j.useRef(!0),m=j.useRef(f),v=xx(()=>new Map),[b,x]=j.useState(f),[S,y]=j.useState(f);IE(()=>{h.current=!1,m.current=f;for(let E=0;E<S.length;E++){const P=Lf(S[E]);d.includes(P)?v.delete(P):v.get(P)!==!0&&v.set(P,!1)}},[S,d.length,d.join("-")]);const _=[];if(f!==b){let E=[...f];for(let P=0;P<S.length;P++){const A=S[P],M=Lf(A);d.includes(M)||(E.splice(P,0,A),_.push(A))}o==="wait"&&_.length&&(E=_),y(lw(E)),x(f);return}const{forceRender:w}=j.useContext(yx);return O.jsx(O.Fragment,{children:S.map(E=>{const P=Lf(E),A=s&&!l?!1:f===S||d.includes(P),M=()=>{if(v.has(P))v.set(P,!0);else return;let C=!0;v.forEach(N=>{N||(C=!1)}),C&&(w==null||w(),y(m.current),s&&(u==null||u()),r&&r())};return O.jsx(PD,{isPresent:A,initial:!h.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:A?void 0:M,children:E},P)})})},In=e=>e;let DE=In;function wx(e){let t;return()=>(t===void 0&&(t=e()),t)}const ps=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},di=e=>e*1e3,pi=e=>e/1e3,AD={useManualTiming:!1};function ED(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(f){o.has(f)&&(u.schedule(f),e()),f(s)}const u={schedule:(f,d=!1,h=!1)=>{const v=h&&r?t:n;return d&&o.add(f),v.has(f)||v.add(f),f},cancel:f=>{n.delete(f),o.delete(f)},process:f=>{if(s=f,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,u.process(f))}};return u}const If=["read","resolveKeyframes","update","preRender","render","postRender"],kD=40;function RE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=If.reduce((y,_)=>(y[_]=ED(o),y),{}),{read:l,resolveKeyframes:u,update:f,preRender:d,render:h,postRender:m}=s,v=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,kD),1),i.timestamp=y,i.isProcessing=!0,l.process(i),u.process(i),f.process(i),d.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},b=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:If.reduce((y,_)=>{const w=s[_];return y[_]=(E,P=!1,A=!1)=>(n||b(),w.schedule(E,P,A)),y},{}),cancel:y=>{for(let _=0;_<If.length;_++)s[If[_]].cancel(y)},state:i,steps:s}}const{schedule:rt,cancel:so,state:Ut,steps:Xm}=RE(typeof requestAnimationFrame<"u"?requestAnimationFrame:In,!0),zE=j.createContext({strict:!1}),uw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ms={};for(const e in uw)ms[e]={isEnabled:t=>uw[e].some(n=>!!t[n])};function MD(e){for(const t in e)ms[t]={...ms[t],...e[t]}}const CD=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||CD.has(e)}let BE=e=>!Fh(e);function jD(e){e&&(BE=t=>t.startsWith("on")?!Fh(t):e(t))}try{jD(require("@emotion/is-prop-valid").default)}catch{}function $D(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(BE(i)||n===!0&&Fh(i)||!t&&!Fh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function ND(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const hp=j.createContext({});function Lu(e){return typeof e=="string"||Array.isArray(e)}function dp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Sx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Px=["initial",...Sx];function pp(e){return dp(e.animate)||Px.some(t=>Lu(e[t]))}function FE(e){return!!(pp(e)||e.variants)}function LD(e,t){if(pp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Lu(n)?n:void 0,animate:Lu(r)?r:void 0}}return e.inherit!==!1?t:{}}function ID(e){const{initial:t,animate:n}=LD(e,j.useContext(hp));return j.useMemo(()=>({initial:t,animate:n}),[cw(t),cw(n)])}function cw(e){return Array.isArray(e)?e.join(" "):e}const DD=Symbol.for("motionComponentSymbol");function Ua(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function RD(e,t,n){return j.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ua(n)&&(n.current=r))},[t])}const Ox=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zD="framerAppearId",VE="data-"+Ox(zD),{schedule:Tx}=RE(queueMicrotask,!1),UE=j.createContext({});function BD(e,t,n,r,i){var o,s;const{visualElement:l}=j.useContext(hp),u=j.useContext(zE),f=j.useContext(fp),d=j.useContext(_x).reducedMotion,h=j.useRef(null);r=r||u.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const m=h.current,v=j.useContext(UE);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&FD(h.current,n,i,v);const b=j.useRef(!1);j.useInsertionEffect(()=>{m&&b.current&&m.update(n,f)});const x=n[VE],S=j.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,x)));return IE(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Tx.render(m.render),S.current&&m.animationState&&m.animationState.animateChanges())}),j.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,x)}),S.current=!1))}),m}function FD(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:WE(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||l&&Ua(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function WE(e){if(e)return e.options.allowProjection!==!1?e.projection:WE(e.parent)}function VD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&MD(e);function l(f,d){let h;const m={...j.useContext(_x),...f,layoutId:UD(f)},{isStatic:v}=m,b=ID(f),x=r(f,v);if(!v&&bx){WD();const S=HD(m);h=S.MeasureLayout,b.visualElement=BD(i,x,m,t,S.ProjectionNode)}return O.jsxs(hp.Provider,{value:b,children:[h&&b.visualElement?O.jsx(h,{visualElement:b.visualElement,...m}):null,n(i,f,RD(x,b.visualElement,d),x,v,b.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const u=j.forwardRef(l);return u[DD]=i,u}function UD({layoutId:e}){const t=j.useContext(yx).id;return t&&e!==void 0?t+"-"+e:e}function WD(e,t){j.useContext(zE).strict}function HD(e){const{drag:t,layout:n}=ms;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ZD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ax(e){return typeof e!="string"||e.includes("-")?!1:!!(ZD.indexOf(e)>-1||/[A-Z]/u.test(e))}function fw(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ex(e,t,n,r){if(typeof t=="function"){const[i,o]=fw(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=fw(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lg=e=>Array.isArray(e),GD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KD=e=>Lg(e)?e[e.length-1]||0:e,nn=e=>!!(e&&e.getVelocity);function ph(e){const t=nn(e)?e.get():e;return GD(t)?t.toValue():t}function qD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:XD(r,i,o,e),renderState:t()};return n&&(s.onMount=l=>n({props:r,current:l,...s}),s.onUpdate=l=>n(l)),s}const HE=e=>(t,n)=>{const r=j.useContext(hp),i=j.useContext(fp),o=()=>qD(e,t,r,i);return n?o():xx(o)};function XD(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=ph(o[m]);let{initial:s,animate:l}=e;const u=pp(e),f=FE(e);t&&f&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const h=d?l:s;if(h&&typeof h!="boolean"&&!dp(h)){const m=Array.isArray(h)?h:[h];for(let v=0;v<m.length;v++){const b=Ex(e,m[v]);if(b){const{transitionEnd:x,transition:S,...y}=b;for(const _ in y){let w=y[_];if(Array.isArray(w)){const E=d?w.length-1:0;w=w[E]}w!==null&&(i[_]=w)}for(const _ in x)i[_]=x[_]}}}return i}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fa=new Set(Ws),ZE=e=>t=>typeof t=="string"&&t.startsWith(e),GE=ZE("--"),YD=ZE("var(--"),kx=e=>YD(e)?QD.test(e.split("/*")[0].trim()):!1,QD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,KE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,wi=(e,t,n)=>n>t?t:n<e?e:n,Hs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Iu={...Hs,transform:e=>wi(0,1,e)},Df={...Hs,default:1},Ac=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ri=Ac("deg"),Vr=Ac("%"),ge=Ac("px"),JD=Ac("vh"),eR=Ac("vw"),hw={...Vr,parse:e=>Vr.parse(e)/100,transform:e=>Vr.transform(e*100)},tR={borderWidth:ge,borderTopWidth:ge,borderRightWidth:ge,borderBottomWidth:ge,borderLeftWidth:ge,borderRadius:ge,radius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomRightRadius:ge,borderBottomLeftRadius:ge,width:ge,maxWidth:ge,height:ge,maxHeight:ge,top:ge,right:ge,bottom:ge,left:ge,padding:ge,paddingTop:ge,paddingRight:ge,paddingBottom:ge,paddingLeft:ge,margin:ge,marginTop:ge,marginRight:ge,marginBottom:ge,marginLeft:ge,backgroundPositionX:ge,backgroundPositionY:ge},nR={rotate:Ri,rotateX:Ri,rotateY:Ri,rotateZ:Ri,scale:Df,scaleX:Df,scaleY:Df,scaleZ:Df,skew:Ri,skewX:Ri,skewY:Ri,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:Iu,originX:hw,originY:hw,originZ:ge},dw={...Hs,transform:Math.round},Mx={...tR,...nR,zIndex:dw,size:ge,fillOpacity:Iu,strokeOpacity:Iu,numOctaves:dw},rR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iR=Ws.length;function oR(e,t,n){let r="",i=!0;for(let o=0;o<iR;o++){const s=Ws[o],l=e[s];if(l===void 0)continue;let u=!0;if(typeof l=="number"?u=l===(s.startsWith("scale")?1:0):u=parseFloat(l)===0,!u||n){const f=KE(l,Mx[s]);if(!u){i=!1;const d=rR[s]||s;r+=`${d}(${f}) `}n&&(t[s]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Cx(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,l=!1;for(const u in t){const f=t[u];if(fa.has(u)){s=!0;continue}else if(GE(u)){i[u]=f;continue}else{const d=KE(f,Mx[u]);u.startsWith("origin")?(l=!0,o[u]=d):r[u]=d}}if(t.transform||(s||n?r.transform=oR(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:f="50%",originZ:d=0}=o;r.transformOrigin=`${u} ${f} ${d}`}}const aR={offset:"stroke-dashoffset",array:"stroke-dasharray"},sR={offset:"strokeDashoffset",array:"strokeDasharray"};function lR(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?aR:sR;e[o.offset]=ge.transform(-r);const s=ge.transform(t),l=ge.transform(n);e[o.array]=`${s} ${l}`}function pw(e,t,n){return typeof e=="string"?e:ge.transform(t+n*e)}function uR(e,t,n){const r=pw(t,e.x,e.width),i=pw(n,e.y,e.height);return`${r} ${i}`}function jx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...f},d,h){if(Cx(e,f,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v,dimensions:b}=e;m.transform&&(b&&(v.transform=m.transform),delete m.transform),b&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=uR(b,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&lR(m,s,l,u,!1)}const $x=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),qE=()=>({...$x(),attrs:{}}),Nx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XE(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const YE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function QE(e,t,n,r){XE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(YE.has(i)?i:Ox(i),t.attrs[i])}const Vh={};function cR(e){Object.assign(Vh,e)}function JE(e,{layout:t,layoutId:n}){return fa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vh[e]||e==="opacity")}function Lx(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(nn(i[s])||t.style&&nn(t.style[s])||JE(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function ek(e,t,n){const r=Lx(e,t,n);for(const i in e)if(nn(e[i])||nn(t[i])){const o=Ws.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function fR(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const mw=["x","y","width","height","cx","cy","r"],hR={useVisualState:HE({scrapeMotionValuesFromProps:ek,createRenderState:qE,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(fa.has(l)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let l=0;l<mw.length;l++){const u=mw[l];e[u]!==t[u]&&(s=!0)}s&&rt.read(()=>{fR(n,r),rt.render(()=>{jx(r,i,Nx(n.tagName),e.transformTemplate),QE(n,r)})})}})},dR={useVisualState:HE({scrapeMotionValuesFromProps:Lx,createRenderState:$x})};function tk(e,t,n){for(const r in t)!nn(t[r])&&!JE(r,n)&&(e[r]=t[r])}function pR({transformTemplate:e},t){return j.useMemo(()=>{const n=$x();return Cx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mR(e,t){const n=e.style||{},r={};return tk(r,n,e),Object.assign(r,pR(e,t)),r}function vR(e,t){const n={},r=mR(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function gR(e,t,n,r){const i=j.useMemo(()=>{const o=qE();return jx(o,t,Nx(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};tk(o,e.style,e),i.style={...o,...i.style}}return i}function yR(e=!1){return(n,r,i,{latestValues:o},s)=>{const u=(Ax(n)?gR:vR)(r,o,s,n),f=$D(r,typeof n=="string",e),d=n!==j.Fragment?{...f,...u,ref:i}:{},{children:h}=r,m=j.useMemo(()=>nn(h)?h.get():h,[h]);return j.createElement(n,{...d,children:m})}}function xR(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...Ax(r)?hR:dR,preloadedFeatures:e,useRender:yR(i),createVisualElement:t,Component:r};return VD(s)}}function nk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function mp(e,t,n){const r=e.getProps();return Ex(r,t,n!==void 0?n:r.custom,e)}const _R=wx(()=>window.ScrollTimeline!==void 0);class bR{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(_R()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class wR extends bR{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Ix(e,t){return e?e[t]||e.default||e:void 0}const Ig=2e4;function rk(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ig;)t+=n,r=e.next(t);return t>=Ig?1/0:t}function Dx(e){return typeof e=="function"}function vw(e,t){e.timeline=t,e.onfinish=null}const Rx=e=>Array.isArray(e)&&typeof e[0]=="number",SR={linearEasing:void 0};function PR(e,t){const n=wx(e);return()=>{var r;return(r=SR[t])!==null&&r!==void 0?r:n()}}const Uh=PR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ik=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(ps(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ok(e){return!!(typeof e=="function"&&Uh()||!e||typeof e=="string"&&(e in Dg||Uh())||Rx(e)||Array.isArray(e)&&e.every(ok))}const Kl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kl([0,.65,.55,1]),circOut:Kl([.55,0,1,.45]),backIn:Kl([.31,.01,.66,-.59]),backOut:Kl([.33,1.53,.69,.99])};function ak(e,t){if(e)return typeof e=="function"&&Uh()?ik(e,t):Rx(e)?Kl(e):Array.isArray(e)?e.map(n=>ak(n,t)||Dg.easeOut):Dg[e]}const yr={x:!1,y:!1};function sk(){return yr.x||yr.y}function OR(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function lk(e,t){const n=OR(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function gw(e){return t=>{t.pointerType==="touch"||sk()||e(t)}}function TR(e,t,n={}){const[r,i,o]=lk(e,n),s=gw(l=>{const{target:u}=l,f=t(l);if(typeof f!="function"||!u)return;const d=gw(h=>{f(h),u.removeEventListener("pointerleave",d)});u.addEventListener("pointerleave",d,i)});return r.forEach(l=>{l.addEventListener("pointerenter",s,i)}),o}const uk=(e,t)=>t?e===t?!0:uk(e,t.parentElement):!1,zx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,AR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ER(e){return AR.has(e.tagName)||e.tabIndex!==-1}const ql=new WeakSet;function yw(e){return t=>{t.key==="Enter"&&e(t)}}function Ym(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const kR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yw(()=>{if(ql.has(n))return;Ym(n,"down");const i=yw(()=>{Ym(n,"up")}),o=()=>Ym(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function xw(e){return zx(e)&&!sk()}function MR(e,t,n={}){const[r,i,o]=lk(e,n),s=l=>{const u=l.currentTarget;if(!xw(l)||ql.has(u))return;ql.add(u);const f=t(l),d=(v,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!xw(v)||!ql.has(u))&&(ql.delete(u),typeof f=="function"&&f(v,{success:b}))},h=v=>{d(v,n.useGlobalTarget||uk(u,v.target))},m=v=>{d(v,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(l=>{!ER(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,i),l.addEventListener("focus",f=>kR(f,i),i)}),o}function CR(e){return e==="x"||e==="y"?yr[e]?null:(yr[e]=!0,()=>{yr[e]=!1}):yr.x||yr.y?null:(yr.x=yr.y=!0,()=>{yr.x=yr.y=!1})}const ck=new Set(["width","height","top","left","right","bottom",...Ws]);let mh;function jR(){mh=void 0}const Ur={now:()=>(mh===void 0&&Ur.set(Ut.isProcessing||AD.useManualTiming?Ut.timestamp:performance.now()),mh),set:e=>{mh=e,queueMicrotask(jR)}};function Bx(e,t){e.indexOf(t)===-1&&e.push(t)}function Fx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Vx{constructor(){this.subscriptions=[]}add(t){return Bx(this.subscriptions,t),()=>Fx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function fk(e,t){return t?e*(1e3/t):0}const _w=30,$R=e=>!isNaN(parseFloat(e));class NR{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ur.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ur.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$R(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Vx);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ur.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_w)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_w);return fk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Du(e,t){return new NR(e,t)}function LR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Du(n))}function IR(e,t){const n=mp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const l=KD(o[s]);LR(e,s,l)}}function DR(e){return!!(nn(e)&&e.add)}function Rg(e,t){const n=e.getValue("willChange");if(DR(n))return n.add(t)}function hk(e){return e.props[VE]}const dk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,RR=1e-7,zR=12;function BR(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=dk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>RR&&++l<zR);return s}function Ec(e,t,n,r){if(e===t&&n===r)return In;const i=o=>BR(o,0,1,e,n);return o=>o===0||o===1?o:dk(i(o),t,r)}const pk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mk=e=>t=>1-e(1-t),vk=Ec(.33,1.53,.69,.99),Ux=mk(vk),gk=pk(Ux),yk=e=>(e*=2)<1?.5*Ux(e):.5*(2-Math.pow(2,-10*(e-1))),Wx=e=>1-Math.sin(Math.acos(e)),xk=mk(Wx),_k=pk(Wx),bk=e=>/^0[^.\s]+$/u.test(e);function FR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||bk(e):!0}const lu=e=>Math.round(e*1e5)/1e5,Hx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VR(e){return e==null}const UR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zx=(e,t)=>n=>!!(typeof n=="string"&&UR.test(n)&&n.startsWith(e)||t&&!VR(n)&&Object.prototype.hasOwnProperty.call(n,t)),wk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,l]=r.match(Hx);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},WR=e=>wi(0,255,e),Qm={...Hs,transform:e=>Math.round(WR(e))},Bo={test:Zx("rgb","red"),parse:wk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qm.transform(e)+", "+Qm.transform(t)+", "+Qm.transform(n)+", "+lu(Iu.transform(r))+")"};function HR(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const zg={test:Zx("#"),parse:HR,transform:Bo.transform},Wa={test:Zx("hsl","hue"),parse:wk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vr.transform(lu(t))+", "+Vr.transform(lu(n))+", "+lu(Iu.transform(r))+")"},Yt={test:e=>Bo.test(e)||zg.test(e)||Wa.test(e),parse:e=>Bo.test(e)?Bo.parse(e):Wa.test(e)?Wa.parse(e):zg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Bo.transform(e):Wa.transform(e)},ZR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function GR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Hx))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ZR))===null||n===void 0?void 0:n.length)||0)>0}const Sk="number",Pk="color",KR="var",qR="var(",bw="${}",XR=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ru(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(XR,u=>(Yt.test(u)?(r.color.push(o),i.push(Pk),n.push(Yt.parse(u))):u.startsWith(qR)?(r.var.push(o),i.push(KR),n.push(u)):(r.number.push(o),i.push(Sk),n.push(parseFloat(u))),++o,bw)).split(bw);return{values:n,split:l,indexes:r,types:i}}function Ok(e){return Ru(e).values}function Tk(e){const{split:t,types:n}=Ru(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const l=n[s];l===Sk?o+=lu(i[s]):l===Pk?o+=Yt.transform(i[s]):o+=i[s]}return o}}const YR=e=>typeof e=="number"?0:e;function QR(e){const t=Ok(e);return Tk(e)(t.map(YR))}const lo={test:GR,parse:Ok,createTransformer:Tk,getAnimatableNone:QR},JR=new Set(["brightness","contrast","saturate","opacity"]);function e5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Hx)||[];if(!r)return e;const i=n.replace(r,"");let o=JR.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const t5=/\b([a-z-]*)\(.*?\)/gu,Bg={...lo,getAnimatableNone:e=>{const t=e.match(t5);return t?t.map(e5).join(" "):e}},n5={...Mx,color:Yt,backgroundColor:Yt,outlineColor:Yt,fill:Yt,stroke:Yt,borderColor:Yt,borderTopColor:Yt,borderRightColor:Yt,borderBottomColor:Yt,borderLeftColor:Yt,filter:Bg,WebkitFilter:Bg},Gx=e=>n5[e];function Ak(e,t){let n=Gx(e);return n!==Bg&&(n=lo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const r5=new Set(["auto","none","0"]);function i5(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!r5.has(o)&&Ru(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Ak(n,i)}const ww=e=>e===Hs||e===ge,Sw=(e,t)=>parseFloat(e.split(", ")[t]),Pw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Sw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Sw(o[1],e):0}},o5=new Set(["x","y","z"]),a5=Ws.filter(e=>!o5.has(e));function s5(e){const t=[];return a5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const vs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Pw(4,13),y:Pw(5,14)};vs.translateX=vs.x;vs.translateY=vs.y;const qo=new Set;let Fg=!1,Vg=!1;function Ek(){if(Vg){const e=Array.from(qo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=s5(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Vg=!1,Fg=!1,qo.forEach(e=>e.complete()),qo.clear()}function kk(){qo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Vg=!0)})}function l5(){kk(),Ek()}class Kx{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(qo.add(this),Fg||(Fg=!0,rt.read(kk),rt.resolveKeyframes(Ek))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),qo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,qo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Mk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),u5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function c5(e){const t=u5.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Ck(e,t,n=1){const[r,i]=c5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Mk(s)?parseFloat(s):s}return kx(i)?Ck(i,t,n+1):i}const jk=e=>t=>t.test(e),f5={test:e=>e==="auto",parse:e=>e},$k=[Hs,ge,Vr,Ri,eR,JD,f5],Ow=e=>$k.find(jk(e));class Nk extends Kx{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let f=t[u];if(typeof f=="string"&&(f=f.trim(),kx(f))){const d=Ck(f,n.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ck.has(r)||t.length!==2)return;const[i,o]=t,s=Ow(i),l=Ow(o);if(s!==l)if(ww(s)&&ww(l))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)FR(t[i])&&r.push(i);r.length&&i5(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=vs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,l=i[s];i[s]=vs[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}}const Tw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(lo.test(e)||e==="0")&&!e.startsWith("url("));function h5(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function d5(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Tw(i,t),l=Tw(o,t);return!s||!l?!1:h5(e)||(n==="spring"||Dx(n))&&r}const p5=e=>e!==null;function vp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(p5),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const m5=40;class Lk{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ur.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>m5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&l5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ur.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:l,onUpdate:u,isGenerator:f}=this.options;if(!f&&!d5(t,r,i,o))if(s)this.options.duration=0;else{u&&u(vp(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ct=(e,t,n)=>e+(t-e)*n;function Jm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function v5({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;i=Jm(u,l,e+1/3),o=Jm(u,l,e),s=Jm(u,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Wh(e,t){return n=>n>0?t:e}const ev=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},g5=[zg,Bo,Wa],y5=e=>g5.find(t=>t.test(e));function Aw(e){const t=y5(e);if(!t)return!1;let n=t.parse(e);return t===Wa&&(n=v5(n)),n}const Ew=(e,t)=>{const n=Aw(e),r=Aw(t);if(!n||!r)return Wh(e,t);const i={...n};return o=>(i.red=ev(n.red,r.red,o),i.green=ev(n.green,r.green,o),i.blue=ev(n.blue,r.blue,o),i.alpha=ct(n.alpha,r.alpha,o),Bo.transform(i))},x5=(e,t)=>n=>t(e(n)),kc=(...e)=>e.reduce(x5),Ug=new Set(["none","hidden"]);function _5(e,t){return Ug.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function b5(e,t){return n=>ct(e,t,n)}function qx(e){return typeof e=="number"?b5:typeof e=="string"?kx(e)?Wh:Yt.test(e)?Ew:P5:Array.isArray(e)?Ik:typeof e=="object"?Yt.test(e)?Ew:w5:Wh}function Ik(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>qx(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function w5(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=qx(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function S5(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],l=e.indexes[s][i[s]],u=(n=e.values[l])!==null&&n!==void 0?n:0;r[o]=u,i[s]++}return r}const P5=(e,t)=>{const n=lo.createTransformer(t),r=Ru(e),i=Ru(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ug.has(e)&&!i.values.length||Ug.has(t)&&!r.values.length?_5(e,t):kc(Ik(S5(r,i),i.values),n):Wh(e,t)};function Dk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):qx(e)(e,t)}const O5=5;function Rk(e,t,n){const r=Math.max(t-O5,0);return fk(n-e(r),t-r)}const pt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},tv=.001;function T5({duration:e=pt.duration,bounce:t=pt.bounce,velocity:n=pt.velocity,mass:r=pt.mass}){let i,o,s=1-t;s=wi(pt.minDamping,pt.maxDamping,s),e=wi(pt.minDuration,pt.maxDuration,pi(e)),s<1?(i=f=>{const d=f*s,h=d*e,m=d-n,v=Wg(f,s),b=Math.exp(-h);return tv-m/v*b},o=f=>{const h=f*s*e,m=h*n+n,v=Math.pow(s,2)*Math.pow(f,2)*e,b=Math.exp(-h),x=Wg(Math.pow(f,2),s);return(-i(f)+tv>0?-1:1)*((m-v)*b)/x}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-tv+d*h},o=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const l=5/e,u=E5(i,o,l);if(e=di(e),isNaN(u))return{stiffness:pt.stiffness,damping:pt.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const A5=12;function E5(e,t,n){let r=n;for(let i=1;i<A5;i++)r=r-e(r)/t(r);return r}function Wg(e,t){return e*Math.sqrt(1-t*t)}const k5=["duration","bounce"],M5=["stiffness","damping","mass"];function kw(e,t){return t.some(n=>e[n]!==void 0)}function C5(e){let t={velocity:pt.velocity,stiffness:pt.stiffness,damping:pt.damping,mass:pt.mass,isResolvedFromDuration:!1,...e};if(!kw(e,M5)&&kw(e,k5))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*wi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:pt.mass,stiffness:i,damping:o}}else{const n=T5(e);t={...t,...n,mass:pt.mass},t.isResolvedFromDuration=!0}return t}function zk(e=pt.visualDuration,t=pt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:f,mass:d,duration:h,velocity:m,isResolvedFromDuration:v}=C5({...n,velocity:-pi(n.velocity||0)}),b=m||0,x=f/(2*Math.sqrt(u*d)),S=s-o,y=pi(Math.sqrt(u/d)),_=Math.abs(S)<5;r||(r=_?pt.restSpeed.granular:pt.restSpeed.default),i||(i=_?pt.restDelta.granular:pt.restDelta.default);let w;if(x<1){const P=Wg(y,x);w=A=>{const M=Math.exp(-x*y*A);return s-M*((b+x*y*S)/P*Math.sin(P*A)+S*Math.cos(P*A))}}else if(x===1)w=P=>s-Math.exp(-y*P)*(S+(b+y*S)*P);else{const P=y*Math.sqrt(x*x-1);w=A=>{const M=Math.exp(-x*y*A),C=Math.min(P*A,300);return s-M*((b+x*y*S)*Math.sinh(C)+P*S*Math.cosh(C))/P}}const E={calculatedDuration:v&&h||null,next:P=>{const A=w(P);if(v)l.done=P>=h;else{let M=0;x<1&&(M=P===0?di(b):Rk(w,P,A));const C=Math.abs(M)<=r,N=Math.abs(s-A)<=i;l.done=C&&N}return l.value=l.done?s:A,l},toString:()=>{const P=Math.min(rk(E),Ig),A=ik(M=>E.next(P*M).value,P,30);return P+"ms "+A}};return E}function Mw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:u,restDelta:f=.5,restSpeed:d}){const h=e[0],m={done:!1,value:h},v=C=>l!==void 0&&C<l||u!==void 0&&C>u,b=C=>l===void 0?u:u===void 0||Math.abs(l-C)<Math.abs(u-C)?l:u;let x=n*t;const S=h+x,y=s===void 0?S:s(S);y!==S&&(x=y-h);const _=C=>-x*Math.exp(-C/r),w=C=>y+_(C),E=C=>{const N=_(C),B=w(C);m.done=Math.abs(N)<=f,m.value=m.done?y:B};let P,A;const M=C=>{v(m.value)&&(P=C,A=zk({keyframes:[m.value,b(m.value)],velocity:Rk(w,C,m.value),damping:i,stiffness:o,restDelta:f,restSpeed:d}))};return M(0),{calculatedDuration:null,next:C=>{let N=!1;return!A&&P===void 0&&(N=!0,E(C),M(C)),P!==void 0&&C>=P?A.next(C-P):(!N&&E(C),m)}}}const j5=Ec(.42,0,1,1),$5=Ec(0,0,.58,1),Bk=Ec(.42,0,.58,1),N5=e=>Array.isArray(e)&&typeof e[0]!="number",L5={linear:In,easeIn:j5,easeInOut:Bk,easeOut:$5,circIn:Wx,circInOut:_k,circOut:xk,backIn:Ux,backInOut:gk,backOut:vk,anticipate:yk},Cw=e=>{if(Rx(e)){DE(e.length===4);const[t,n,r,i]=e;return Ec(t,n,r,i)}else if(typeof e=="string")return L5[e];return e};function I5(e,t,n){const r=[],i=n||Dk,o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const u=Array.isArray(t)?t[s]||In:t;l=kc(u,l)}r.push(l)}return r}function D5(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(DE(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=I5(t,r,i),u=l.length,f=d=>{if(s&&d<e[0])return t[0];let h=0;if(u>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const m=ps(e[h],e[h+1],d);return l[h](m)};return n?d=>f(wi(e[0],e[o-1],d)):f}function R5(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ps(0,t,r);e.push(ct(n,1,i))}}function z5(e){const t=[0];return R5(t,e.length-1),t}function B5(e,t){return e.map(n=>n*t)}function F5(e,t){return e.map(()=>t||Bk).splice(0,e.length-1)}function Hh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=N5(r)?r.map(Cw):Cw(r),o={done:!1,value:t[0]},s=B5(n&&n.length===t.length?n:z5(t),e),l=D5(s,t,{ease:Array.isArray(i)?i:F5(t,i)});return{calculatedDuration:e,next:u=>(o.value=l(u),o.done=u>=e,o)}}const V5=e=>{const t=({timestamp:n})=>e(n);return{start:()=>rt.update(t,!0),stop:()=>so(t),now:()=>Ut.isProcessing?Ut.timestamp:Ur.now()}},U5={decay:Mw,inertia:Mw,tween:Hh,keyframes:Hh,spring:zk},W5=e=>e/100;class Xx extends Lk{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Kx,l=(u,f)=>this.onKeyframesResolved(u,f);this.resolver=new s(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,l=Dx(n)?n:U5[n]||Hh;let u,f;l!==Hh&&typeof t[0]!="number"&&(u=kc(W5,Dk(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(f=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=rk(d));const{calculatedDuration:h}=d,m=h+i,v=m*(r+1)-i;return{generator:d,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:h,resolvedDuration:m,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:f,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:v,repeatType:b,repeatDelay:x,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-m*(this.speed>=0?1:-1),_=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,E=o;if(v){const C=Math.min(this.currentTime,d)/h;let N=Math.floor(C),B=C%1;!B&&C>=1&&(B=1),B===1&&N--,N=Math.min(N,v+1),!!(N%2)&&(b==="reverse"?(B=1-B,x&&(B-=x/h)):b==="mirror"&&(E=s)),w=wi(0,1,B)*h}const P=_?{done:!1,value:u[0]}:E.next(w);l&&(P.value=l(P.value));let{done:A}=P;!_&&f!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(P.value=vp(u,this.options,i)),S&&S(P.value),M&&this.finish(),P}get duration(){const{resolved:t}=this;return t?pi(t.calculatedDuration):0}get time(){return pi(this.currentTime)}set time(t){t=di(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=pi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=V5,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const H5=new Set(["opacity","clipPath","filter","transform"]);function Z5(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:l="easeInOut",times:u}={}){const f={[t]:n};u&&(f.offset=u);const d=ak(l,i);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const G5=wx(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Zh=10,K5=2e4;function q5(e){return Dx(e.type)||e.type==="spring"||!ok(e.ease)}function X5(e,t){const n=new Xx({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<K5;)r=n.sample(o),i.push(r.value),o+=Zh;return{times:void 0,keyframes:i,duration:o-Zh,ease:"linear"}}const Fk={anticipate:yk,backInOut:gk,circInOut:_k};function Y5(e){return e in Fk}class jw extends Lk{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Nk(o,(s,l)=>this.onKeyframesResolved(s,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:l,name:u,startTime:f}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&Uh()&&Y5(o)&&(o=Fk[o]),q5(this.options)){const{onComplete:h,onUpdate:m,motionValue:v,element:b,...x}=this.options,S=X5(t,x);t=S.keyframes,t.length===1&&(t[1]=t[0]),r=S.duration,i=S.times,o=S.ease,s="keyframes"}const d=Z5(l.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=f??this.calcStartTime(),this.pendingTimeline?(vw(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(vp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return pi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return pi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=di(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return In;const{animation:r}=n;vw(r,t)}return In}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:d,onComplete:h,element:m,...v}=this.options,b=new Xx({...v,keyframes:r,duration:i,type:o,ease:s,times:l,isGenerator:!0}),x=di(this.time);f.setWithVelocity(b.sample(x-Zh).value,b.sample(x).value,Zh)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:f}=n.owner.getProps();return G5()&&r&&H5.has(r)&&!u&&!f&&!i&&o!=="mirror"&&s!==0&&l!=="inertia"}}const Q5={type:"spring",stiffness:500,damping:25,restSpeed:10},J5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),e3={type:"keyframes",duration:.8},t3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},n3=(e,{keyframes:t})=>t.length>2?e3:fa.has(e)?e.startsWith("scale")?J5(t[1]):Q5:t3;function r3({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:u,elapsed:f,...d}){return!!Object.keys(d).length}const Yx=(e,t,n,r={},i,o)=>s=>{const l=Ix(r,e)||{},u=l.delay||r.delay||0;let{elapsed:f=0}=r;f=f-di(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-f,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};r3(l)||(d={...d,...n3(e,d)}),d.duration&&(d.duration=di(d.duration)),d.repeatDelay&&(d.repeatDelay=di(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=vp(d.keyframes,l);if(m!==void 0)return rt.update(()=>{d.onUpdate(m),d.onComplete()}),new wR([])}return!o&&jw.supports(d)?new jw(d):new Xx(d)};function i3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(s=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in u){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),v=u[h];if(v===void 0||d&&i3(d,h))continue;const b={delay:n,...Ix(s||{},h)};let x=!1;if(window.MotionHandoffAnimation){const y=hk(e);if(y){const _=window.MotionHandoffAnimation(y,h,rt);_!==null&&(b.startTime=_,x=!0)}}Rg(e,h),m.start(Yx(h,m,v,e.shouldReduceMotion&&ck.has(h)?{type:!1}:b,e,x));const S=m.animation;S&&f.push(S)}return l&&Promise.all(f).then(()=>{rt.update(()=>{l&&IR(e,l)})}),f}function Hg(e,t,n={}){var r;const i=mp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Vk(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:m}=o;return o3(e,t,d+f,h,m,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,d]=u==="beforeChildren"?[s,l]:[l,s];return f().then(()=>d())}else return Promise.all([s(),l(n.delay)])}function o3(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,u=i===1?(f=0)=>f*r:(f=0)=>l-f*r;return Array.from(e.variantChildren).sort(a3).forEach((f,d)=>{f.notify("AnimationStart",t),s.push(Hg(f,t,{...o,delay:n+u(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(s)}function a3(e,t){return e.sortNodePosition(t)}function s3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Hg(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Hg(e,t,n);else{const i=typeof t=="function"?mp(e,t,n.custom):t;r=Promise.all(Vk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const l3=Px.length;function Uk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Uk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<l3;n++){const r=Px[n],i=e.props[r];(Lu(i)||i===!1)&&(t[r]=i)}return t}const u3=[...Sx].reverse(),c3=Sx.length;function f3(e){return t=>Promise.all(t.map(({animation:n,options:r})=>s3(e,n,r)))}function h3(e){let t=f3(e),n=$w(),r=!0;const i=u=>(f,d)=>{var h;const m=mp(e,d,u==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:v,transitionEnd:b,...x}=m;f={...f,...x,...b}}return f};function o(u){t=u(e)}function s(u){const{props:f}=e,d=Uk(e.parent)||{},h=[],m=new Set;let v={},b=1/0;for(let S=0;S<c3;S++){const y=u3[S],_=n[y],w=f[y]!==void 0?f[y]:d[y],E=Lu(w),P=y===u?_.isActive:null;P===!1&&(b=S);let A=w===d[y]&&w!==f[y]&&E;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),_.protectedKeys={...v},!_.isActive&&P===null||!w&&!_.prevProp||dp(w)||typeof w=="boolean")continue;const M=d3(_.prevProp,w);let C=M||y===u&&_.isActive&&!A&&E||S>b&&E,N=!1;const B=Array.isArray(w)?w:[w];let z=B.reduce(i(y),{});P===!1&&(z={});const{prevResolvedValues:R={}}=_,K={...R,...z},H=G=>{C=!0,m.has(G)&&(N=!0,m.delete(G)),_.needsAnimating[G]=!0;const $=e.getValue(G);$&&($.liveStyle=!1)};for(const G in K){const $=z[G],q=R[G];if(v.hasOwnProperty(G))continue;let V=!1;Lg($)&&Lg(q)?V=!nk($,q):V=$!==q,V?$!=null?H(G):m.add(G):$!==void 0&&m.has(G)?H(G):_.protectedKeys[G]=!0}_.prevProp=w,_.prevResolvedValues=z,_.isActive&&(v={...v,...z}),r&&e.blockInitialAnimation&&(C=!1),C&&(!(A&&M)||N)&&h.push(...B.map(G=>({animation:G,options:{type:y}})))}if(m.size){const S={};m.forEach(y=>{const _=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),S[y]=_??null}),h.push({animation:S})}let x=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(h):Promise.resolve()}function l(u,f){var d;if(n[u].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var v;return(v=m.animationState)===null||v===void 0?void 0:v.setActive(u,f)}),n[u].isActive=f;const h=s(u);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$w(),r=!0}}}function d3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!nk(t,e):!1}function Eo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $w(){return{animate:Eo(!0),whileInView:Eo(),whileHover:Eo(),whileTap:Eo(),whileDrag:Eo(),whileFocus:Eo(),exit:Eo()}}class ho{constructor(t){this.isMounted=!1,this.node=t}update(){}}class p3 extends ho{constructor(t){super(t),t.animationState||(t.animationState=h3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();dp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let m3=0;class v3 extends ho{constructor(){super(...arguments),this.id=m3++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const g3={animation:{Feature:p3},exit:{Feature:v3}};function zu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Mc(e){return{point:{x:e.pageX,y:e.pageY}}}const y3=e=>t=>zx(t)&&e(t,Mc(t));function uu(e,t,n,r){return zu(e,t,y3(n),r)}const Nw=(e,t)=>Math.abs(e-t);function x3(e,t){const n=Nw(e.x,t.x),r=Nw(e.y,t.y);return Math.sqrt(n**2+r**2)}class Wk{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=rv(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=x3(h.offset,{x:0,y:0})>=3;if(!m&&!v)return;const{point:b}=h,{timestamp:x}=Ut;this.history.push({...b,timestamp:x});const{onStart:S,onMove:y}=this.handlers;m||(S&&S(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=nv(m,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:v,onSessionEnd:b,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=rv(h.type==="pointercancel"?this.lastMoveEventInfo:nv(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(h,S),b&&b(h,S)},!zx(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Mc(t),l=nv(s,this.transformPagePoint),{point:u}=l,{timestamp:f}=Ut;this.history=[{...u,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,rv(l,this.history)),this.removeListeners=kc(uu(this.contextWindow,"pointermove",this.handlePointerMove),uu(this.contextWindow,"pointerup",this.handlePointerUp),uu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),so(this.updatePoint)}}function nv(e,t){return t?{point:t(e.point)}:e}function Lw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rv({point:e},t){return{point:e,delta:Lw(e,Hk(t)),offset:Lw(e,_3(t)),velocity:b3(t,.1)}}function _3(e){return e[0]}function Hk(e){return e[e.length-1]}function b3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Hk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>di(t)));)n--;if(!r)return{x:0,y:0};const o=pi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const Zk=1e-4,w3=1-Zk,S3=1+Zk,Gk=.01,P3=0-Gk,O3=0+Gk;function Rn(e){return e.max-e.min}function T3(e,t,n){return Math.abs(e-t)<=n}function Iw(e,t,n,r=.5){e.origin=r,e.originPoint=ct(t.min,t.max,e.origin),e.scale=Rn(n)/Rn(t),e.translate=ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=w3&&e.scale<=S3||isNaN(e.scale))&&(e.scale=1),(e.translate>=P3&&e.translate<=O3||isNaN(e.translate))&&(e.translate=0)}function cu(e,t,n,r){Iw(e.x,t.x,n.x,r?r.originX:void 0),Iw(e.y,t.y,n.y,r?r.originY:void 0)}function Dw(e,t,n){e.min=n.min+t.min,e.max=e.min+Rn(t)}function A3(e,t,n){Dw(e.x,t.x,n.x),Dw(e.y,t.y,n.y)}function Rw(e,t,n){e.min=t.min-n.min,e.max=e.min+Rn(t)}function fu(e,t,n){Rw(e.x,t.x,n.x),Rw(e.y,t.y,n.y)}function E3(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ct(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ct(n,e,r.max):Math.min(e,n)),e}function zw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function k3(e,{top:t,left:n,bottom:r,right:i}){return{x:zw(e.x,n,i),y:zw(e.y,t,r)}}function Bw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function M3(e,t){return{x:Bw(e.x,t.x),y:Bw(e.y,t.y)}}function C3(e,t){let n=.5;const r=Rn(e),i=Rn(t);return i>r?n=ps(t.min,t.max-r,e.min):r>i&&(n=ps(e.min,e.max-i,t.min)),wi(0,1,n)}function j3(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Zg=.35;function $3(e=Zg){return e===!1?e=0:e===!0&&(e=Zg),{x:Fw(e,"left","right"),y:Fw(e,"top","bottom")}}function Fw(e,t,n){return{min:Vw(e,t),max:Vw(e,n)}}function Vw(e,t){return typeof e=="number"?e:e[t]||0}const Uw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ha=()=>({x:Uw(),y:Uw()}),Ww=()=>({min:0,max:0}),yt=()=>({x:Ww(),y:Ww()});function Qn(e){return[e("x"),e("y")]}function Kk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function N3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function L3(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function iv(e){return e===void 0||e===1}function Gg({scale:e,scaleX:t,scaleY:n}){return!iv(e)||!iv(t)||!iv(n)}function jo(e){return Gg(e)||qk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function qk(e){return Hw(e.x)||Hw(e.y)}function Hw(e){return e&&e!=="0%"}function Gh(e,t,n){const r=e-n,i=t*r;return n+i}function Zw(e,t,n,r,i){return i!==void 0&&(e=Gh(e,i,r)),Gh(e,n,r)+t}function Kg(e,t=0,n=1,r,i){e.min=Zw(e.min,t,n,r,i),e.max=Zw(e.max,t,n,r,i)}function Xk(e,{x:t,y:n}){Kg(e.x,t.translate,t.scale,t.originPoint),Kg(e.y,n.translate,n.scale,n.originPoint)}const Gw=.999999999999,Kw=1.0000000000001;function I3(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ga(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Xk(e,s)),r&&jo(o.latestValues)&&Ga(e,o.latestValues))}t.x<Kw&&t.x>Gw&&(t.x=1),t.y<Kw&&t.y>Gw&&(t.y=1)}function Za(e,t){e.min=e.min+t,e.max=e.max+t}function qw(e,t,n,r,i=.5){const o=ct(e.min,e.max,i);Kg(e,t,n,o,r)}function Ga(e,t){qw(e.x,t.x,t.scaleX,t.scale,t.originX),qw(e.y,t.y,t.scaleY,t.scale,t.originY)}function Yk(e,t){return Kk(L3(e.getBoundingClientRect(),t))}function D3(e,t,n){const r=Yk(e,n),{scroll:i}=t;return i&&(Za(r.x,i.offset.x),Za(r.y,i.offset.y)),r}const Qk=({current:e})=>e?e.ownerDocument.defaultView:null,R3=new WeakMap;class z3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Mc(d).point)},o=(d,h)=>{const{drag:m,dragPropagation:v,onDragStart:b}=this.getProps();if(m&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=CR(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qn(S=>{let y=this.getAxisMotionValue(S).get()||0;if(Vr.test(y)){const{projection:_}=this.visualElement;if(_&&_.layout){const w=_.layout.layoutBox[S];w&&(y=Rn(w)*(parseFloat(y)/100))}}this.originPoint[S]=y}),b&&rt.postRender(()=>b(d,h)),Rg(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(d,h)=>{const{dragPropagation:m,dragDirectionLock:v,onDirectionLock:b,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:S}=h;if(v&&this.currentDirection===null){this.currentDirection=B3(S),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",h.point,S),this.updateAxis("y",h.point,S),this.visualElement.render(),x&&x(d,h)},l=(d,h)=>this.stop(d,h),u=()=>Qn(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new Wk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:Qk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Rf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=E3(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ua(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=k3(i.layoutBox,n):this.constraints=!1,this.elastic=$3(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=j3(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ua(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=D3(r,i.root,this.visualElement.getTransformPagePoint());let s=M3(i.layout.layoutBox,o);if(n){const l=n(N3(s));this.hasMutatedConstraints=!!l,l&&(s=Kk(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},f=Qn(d=>{if(!Rf(d,n,this.currentDirection))return;let h=u&&u[d]||{};s&&(h={min:0,max:0});const m=i?200:1e6,v=i?40:1e7,b={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(d,b)});return Promise.all(f).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Rg(this.visualElement,t),r.start(Yx(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qn(n=>{const{drag:r}=this.getProps();if(!Rf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-ct(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ua(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qn(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const u=l.get();i[s]=C3({min:u,max:u},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qn(s=>{if(!Rf(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:f}=this.constraints[s];l.set(ct(u,f,i[s]))})}addListeners(){if(!this.visualElement.current)return;R3.set(this.visualElement,this);const t=this.visualElement.current,n=uu(t,"pointerdown",u=>{const{drag:f,dragListener:d=!0}=this.getProps();f&&d&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ua(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(r);const s=zu(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(Qn(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Zg,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Rf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function B3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class F3 extends ho{constructor(t){super(t),this.removeGroupControls=In,this.removeListeners=In,this.controls=new z3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||In}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xw=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class V3 extends ho{constructor(){super(...arguments),this.removePointerDownListener=In}onPointerDown(t){this.session=new Wk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xw(t),onStart:Xw(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&rt.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=uu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const vh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Cl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const n=Yw(e,t.target.x),r=Yw(e,t.target.y);return`${n}% ${r}%`}},U3={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=lo.parse(e);if(i.length>5)return r;const o=lo.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=u;const f=ct(l,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=f),typeof i[3+s]=="number"&&(i[3+s]/=f),o(i)}};class W3 extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;cR(H3),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),vh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||rt.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Tx.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Jk(e){const[t,n]=LE(),r=j.useContext(yx);return O.jsx(W3,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(UE),isPresent:t,safeToRemove:n})}const H3={borderRadius:{...Cl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cl,borderTopRightRadius:Cl,borderBottomLeftRadius:Cl,borderBottomRightRadius:Cl,boxShadow:U3};function Z3(e,t,n){const r=nn(e)?e:Du(e);return r.start(Yx("",r,t,n)),r.animation}function G3(e){return e instanceof SVGElement&&e.tagName!=="svg"}const K3=(e,t)=>e.depth-t.depth;class q3{constructor(){this.children=[],this.isDirty=!1}add(t){Bx(this.children,t),this.isDirty=!0}remove(t){Fx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(K3),this.isDirty=!1,this.children.forEach(t)}}function X3(e,t){const n=Ur.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(so(r),e(o-t))};return rt.read(r,!0),()=>so(r)}const eM=["TopLeft","TopRight","BottomLeft","BottomRight"],Y3=eM.length,Qw=e=>typeof e=="string"?parseFloat(e):e,Jw=e=>typeof e=="number"||ge.test(e);function Q3(e,t,n,r,i,o){i?(e.opacity=ct(0,n.opacity!==void 0?n.opacity:1,J3(r)),e.opacityExit=ct(t.opacity!==void 0?t.opacity:1,0,ez(r))):o&&(e.opacity=ct(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Y3;s++){const l=`border${eM[s]}Radius`;let u=eS(t,l),f=eS(n,l);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||Jw(u)===Jw(f)?(e[l]=Math.max(ct(Qw(u),Qw(f),r),0),(Vr.test(f)||Vr.test(u))&&(e[l]+="%")):e[l]=f}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,r))}function eS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const J3=tM(0,.5,xk),ez=tM(.5,.95,In);function tM(e,t,n){return r=>r<e?0:r>t?1:n(ps(e,t,r))}function tS(e,t){e.min=t.min,e.max=t.max}function Kn(e,t){tS(e.x,t.x),tS(e.y,t.y)}function nS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rS(e,t,n,r,i){return e-=t,e=Gh(e,1/n,r),i!==void 0&&(e=Gh(e,1/i,r)),e}function tz(e,t=0,n=1,r=.5,i,o=e,s=e){if(Vr.test(t)&&(t=parseFloat(t),t=ct(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=ct(o.min,o.max,r);e===o&&(l-=t),e.min=rS(e.min,t,n,l,i),e.max=rS(e.max,t,n,l,i)}function iS(e,t,[n,r,i],o,s){tz(e,t[n],t[r],t[i],t.scale,o,s)}const nz=["x","scaleX","originX"],rz=["y","scaleY","originY"];function oS(e,t,n,r){iS(e.x,t,nz,n?n.x:void 0,r?r.x:void 0),iS(e.y,t,rz,n?n.y:void 0,r?r.y:void 0)}function aS(e){return e.translate===0&&e.scale===1}function nM(e){return aS(e.x)&&aS(e.y)}function sS(e,t){return e.min===t.min&&e.max===t.max}function iz(e,t){return sS(e.x,t.x)&&sS(e.y,t.y)}function lS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rM(e,t){return lS(e.x,t.x)&&lS(e.y,t.y)}function uS(e){return Rn(e.x)/Rn(e.y)}function cS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oz{constructor(){this.members=[]}add(t){Bx(this.members,t),t.scheduleRender()}remove(t){if(Fx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function az(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:d,rotateX:h,rotateY:m,skewX:v,skewY:b}=n;f&&(r=`perspective(${f}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),v&&(r+=`skewX(${v}deg) `),b&&(r+=`skewY(${b}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const $o={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Xl=typeof window<"u"&&window.MotionDebug!==void 0,ov=["","X","Y","Z"],sz={visibility:"hidden"},fS=1e3;let lz=0;function av(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=hk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&iM(r)}function oM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=lz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xl&&($o.totalNodes=$o.resolvedTargetDeltas=$o.recalculatedProjection=0),this.nodes.forEach(fz),this.nodes.forEach(vz),this.nodes.forEach(gz),this.nodes.forEach(hz),Xl&&window.MotionDebug.record($o)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new q3)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Vx),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const u=this.eventHandlers.get(s);u&&u.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=G3(s),this.instance=s;const{layoutId:u,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(f||u)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=X3(m,250),vh.hasAnimatedSinceResize&&(vh.hasAnimatedSinceResize=!1,this.nodes.forEach(dS))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||d.getDefaultTransition()||wz,{onLayoutAnimationStart:S,onLayoutAnimationComplete:y}=d.getProps(),_=!this.targetLayout||!rM(this.targetLayout,b)||v,w=!m&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||m&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,w);const E={...Ix(x,"layout"),onPlay:S,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else m||dS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,so(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(yz),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&iM(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hS);return}this.isUpdating||this.nodes.forEach(pz),this.isUpdating=!1,this.nodes.forEach(mz),this.nodes.forEach(uz),this.nodes.forEach(cz),this.clearAllSnapshots();const l=Ur.now();Ut.delta=wi(0,1e3/60,l-Ut.timestamp),Ut.timestamp=l,Ut.isProcessing=!0,Xm.update.process(Ut),Xm.preRender.process(Ut),Xm.render.process(Ut),Ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(dz),this.sharedNodes.forEach(xz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=yt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!nM(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,d=f!==this.prevTransformTemplateValue;s&&(l||jo(this.latestValues)||d)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return s&&(u=this.removeTransform(u)),Sz(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:l}=this.options;if(!l)return yt();const u=l.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Pz))){const{scroll:d}=this.root;d&&(Za(u.x,d.offset.x),Za(u.y,d.offset.y))}return u}removeElementScroll(s){var l;const u=yt();if(Kn(u,s),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return u;for(let f=0;f<this.path.length;f++){const d=this.path[f],{scroll:h,options:m}=d;d!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Kn(u,s),Za(u.x,h.offset.x),Za(u.y,h.offset.y))}return u}applyTransform(s,l=!1){const u=yt();Kn(u,s);for(let f=0;f<this.path.length;f++){const d=this.path[f];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ga(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),jo(d.latestValues)&&Ga(u,d.latestValues)}return jo(this.latestValues)&&Ga(u,this.latestValues),u}removeTransform(s){const l=yt();Kn(l,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!jo(f.latestValues))continue;Gg(f.latestValues)&&f.updateSnapshot();const d=yt(),h=f.measurePageBox();Kn(d,h),oS(l,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,d)}return jo(this.latestValues)&&oS(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(s||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Ut.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yt(),this.relativeTargetOrigin=yt(),fu(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=yt(),this.targetWithTransforms=yt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),A3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Kn(this.target,this.layout.layoutBox),Xk(this.target,this.targetDelta)):Kn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yt(),this.relativeTargetOrigin=yt(),fu(this.relativeTargetOrigin,this.target,v.target),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Xl&&$o.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Gg(this.parent.latestValues)||qk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Ut.timestamp&&(f=!1),f)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;Kn(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;I3(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=yt());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(nS(this.prevProjectionDelta.x,this.projectionDelta.x),nS(this.prevProjectionDelta.y,this.projectionDelta.y)),cu(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!cS(this.projectionDelta.x,this.prevProjectionDelta.x)||!cS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),Xl&&$o.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),s){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ha(),this.projectionDelta=Ha(),this.projectionDeltaWithTransform=Ha()}setAnimationOrigin(s,l=!1){const u=this.snapshot,f=u?u.latestValues:{},d={...this.latestValues},h=Ha();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=yt(),v=u?u.source:void 0,b=this.layout?this.layout.source:void 0,x=v!==b,S=this.getStack(),y=!S||S.members.length<=1,_=!!(x&&!y&&this.options.crossfade===!0&&!this.path.some(bz));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;pS(h.x,s.x,P),pS(h.y,s.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fu(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_z(this.relativeTarget,this.relativeTargetOrigin,m,P),w&&iz(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=yt()),Kn(w,this.relativeTarget)),x&&(this.animationValues=d,Q3(d,f,this.latestValues,P,_,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(so(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{vh.hasAnimatedSinceResize=!0,this.currentAnimation=Z3(0,fS,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:u,layout:f,latestValues:d}=s;if(!(!l||!u||!f)){if(this!==s&&this.layout&&f&&aM(this.options.animationType,this.layout.layoutBox,f.layoutBox)){u=this.target||yt();const h=Rn(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;const m=Rn(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}Kn(l,u),Ga(l,d),cu(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new oz),this.sharedNodes.get(s).add(l);const f=l.options.initialPromotionConfig;l.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:u}={}){const f=this.getStack();f&&f.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const f={};u.z&&av("z",s,f,this.animationValues);for(let d=0;d<ov.length;d++)av(`rotate${ov[d]}`,s,f,this.animationValues),av(`skew${ov[d]}`,s,f,this.animationValues);s.render();for(const d in f)s.setStaticValue(d,f[d]),this.animationValues&&(this.animationValues[d]=f[d]);s.scheduleRender()}getProjectionStyles(s){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return sz;const f={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=ph(s==null?void 0:s.pointerEvents)||"",f.transform=d?d(this.latestValues,""):"none",f;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=ph(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!jo(this.latestValues)&&(x.transform=d?d({},""):"none",this.hasProjected=!1),x}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),f.transform=az(this.projectionDeltaWithTransform,this.treeScale,m),d&&(f.transform=d(m,f.transform));const{x:v,y:b}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${b.origin*100}% 0`,h.animationValues?f.opacity=h===this?(u=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:f.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const x in Vh){if(m[x]===void 0)continue;const{correct:S,applyTo:y}=Vh[x],_=f.transform==="none"?m[x]:S(m[x],h);if(y){const w=y.length;for(let E=0;E<w;E++)f[y[E]]=_}else f[x]=_}return this.options.layoutId&&(f.pointerEvents=h===this?ph(s==null?void 0:s.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(hS),this.root.sharedNodes.clear()}}}function uz(e){e.updateLayout()}function cz(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Qn(h=>{const m=s?n.measuredBox[h]:n.layoutBox[h],v=Rn(m);m.min=r[h].min,m.max=m.min+v}):aM(o,n.layoutBox,r)&&Qn(h=>{const m=s?n.measuredBox[h]:n.layoutBox[h],v=Rn(r[h]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+v)});const l=Ha();cu(l,r,n.layoutBox);const u=Ha();s?cu(u,e.applyTransform(i,!0),n.measuredBox):cu(u,r,n.layoutBox);const f=!nM(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:v}=h;if(m&&v){const b=yt();fu(b,n.layoutBox,m.layoutBox);const x=yt();fu(x,r,v.layoutBox),rM(b,x)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=b,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function fz(e){Xl&&$o.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function hz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dz(e){e.clearSnapshot()}function hS(e){e.clearMeasurements()}function pz(e){e.isLayoutDirty=!1}function mz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vz(e){e.resolveTargetDelta()}function gz(e){e.calcProjection()}function yz(e){e.resetSkewAndRotation()}function xz(e){e.removeLeadSnapshot()}function pS(e,t,n){e.translate=ct(t.translate,0,n),e.scale=ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mS(e,t,n,r){e.min=ct(t.min,n.min,r),e.max=ct(t.max,n.max,r)}function _z(e,t,n,r){mS(e.x,t.x,n.x,r),mS(e.y,t.y,n.y,r)}function bz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wz={duration:.45,ease:[.4,0,.1,1]},vS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gS=vS("applewebkit/")&&!vS("chrome/")?Math.round:In;function yS(e){e.min=gS(e.min),e.max=gS(e.max)}function Sz(e){yS(e.x),yS(e.y)}function aM(e,t,n){return e==="position"||e==="preserve-aspect"&&!T3(uS(t),uS(n),.2)}function Pz(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Oz=oM({attachResizeListener:(e,t)=>zu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sv={current:void 0},sM=oM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sv.current){const e=new Oz({});e.mount(window),e.setOptions({layoutScroll:!0}),sv.current=e}return sv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Tz={pan:{Feature:V3},drag:{Feature:F3,ProjectionNode:sM,MeasureLayout:Jk}};function xS(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&rt.postRender(()=>o(t,Mc(t)))}class Az extends ho{mount(){const{current:t}=this.node;t&&(this.unmount=TR(t,n=>(xS(this.node,n,"Start"),r=>xS(this.node,r,"End"))))}unmount(){}}class Ez extends ho{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=kc(zu(this.node.current,"focus",()=>this.onFocus()),zu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _S(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&rt.postRender(()=>o(t,Mc(t)))}class kz extends ho{mount(){const{current:t}=this.node;t&&(this.unmount=MR(t,n=>(_S(this.node,n,"Start"),(r,{success:i})=>_S(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const qg=new WeakMap,lv=new WeakMap,Mz=e=>{const t=qg.get(e.target);t&&t(e)},Cz=e=>{e.forEach(Mz)};function jz({root:e,...t}){const n=e||document;lv.has(n)||lv.set(n,{});const r=lv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Cz,{root:e,...t})),r[i]}function $z(e,t,n){const r=jz(t);return qg.set(e,n),r.observe(e),()=>{qg.delete(e),r.unobserve(e)}}const Nz={some:0,all:1};class Lz extends ho{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Nz[i]},l=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),m=f?d:h;m&&m(u)};return $z(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Iz(t,n))&&this.startObserver()}unmount(){}}function Iz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Dz={inView:{Feature:Lz},tap:{Feature:kz},focus:{Feature:Ez},hover:{Feature:Az}},Rz={layout:{ProjectionNode:sM,MeasureLayout:Jk}},Xg={current:null},lM={current:!1};function zz(){if(lM.current=!0,!!bx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xg.current=e.matches;e.addListener(t),t()}else Xg.current=!1}const Bz=[...$k,Yt,lo],Fz=e=>Bz.find(jk(e)),bS=new WeakMap;function Vz(e,t,n){for(const r in t){const i=t[r],o=n[r];if(nn(i))e.addValue(r,i);else if(nn(o))e.addValue(r,Du(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Du(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Uz{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Kx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Ur.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,rt.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:d}=s;this.onUpdate=d,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=pp(n),this.isVariantNode=FE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in m){const b=m[v];u[v]!==void 0&&nn(b)&&b.set(u[v],!1)}}mount(t){this.current=t,bS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),lM.current||zz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Xg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bS.delete(this.current),this.projection&&this.projection.unmount(),so(this.notifyUpdate),so(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=fa.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ms){const n=ms[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<wS.length;r++){const i=wS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Vz(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Du(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Mk(i)||bk(i))?i=parseFloat(i):!Fz(i)&&lo.test(n)&&(i=Ak(t,n)),this.setBaseTarget(t,nn(i)?i.get():i)),nn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Ex(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!nn(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class uM extends Uz{constructor(){super(...arguments),this.KeyframeResolver=Nk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;nn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Wz(e){return window.getComputedStyle(e)}class Hz extends uM{constructor(){super(...arguments),this.type="html",this.renderInstance=XE}readValueFromInstance(t,n){if(fa.has(n)){const r=Gx(n);return r&&r.default||0}else{const r=Wz(t),i=(GE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Yk(t,n)}build(t,n,r){Cx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Lx(t,n,r)}}class Zz extends uM{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fa.has(n)){const r=Gx(n);return r&&r.default||0}return n=YE.has(n)?n:Ox(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ek(t,n,r)}build(t,n,r){jx(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){QE(t,n,r,i)}mount(t){this.isSVGTag=Nx(t.tagName),super.mount(t)}}const Gz=(e,t)=>Ax(e)?new Zz(t):new Hz(t,{allowProjection:e!==j.Fragment}),Kz=xR({...g3,...Dz,...Tz,...Rz},Gz),qz=ND(Kz);/**
|
|
49
|
+
* @license lucide-react v0.344.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var Xz={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"};/**
|
|
54
|
+
* @license lucide-react v0.344.0 - ISC
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the ISC license.
|
|
57
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/const Yz=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Oe=(e,t)=>{const n=j.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:l="",children:u,...f},d)=>j.createElement("svg",{ref:d,...Xz,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${Yz(e)}`,l].join(" "),...f},[...t.map(([h,m])=>j.createElement(h,m)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/**
|
|
59
|
+
* @license lucide-react v0.344.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/const Qz=Oe("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
|
|
64
|
+
* @license lucide-react v0.344.0 - ISC
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the ISC license.
|
|
67
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/const Jz=Oe("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
69
|
+
* @license lucide-react v0.344.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const e4=Oe("Anchor",[["path",{d:"M12 22V8",key:"qkxhtm"}],["path",{d:"M5 12H2a10 10 0 0 0 20 0h-3",key:"1hv3nh"}],["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}]]);/**
|
|
74
|
+
* @license lucide-react v0.344.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const t4=Oe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
79
|
+
* @license lucide-react v0.344.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const n4=Oe("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
|
|
84
|
+
* @license lucide-react v0.344.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const r4=Oe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
89
|
+
* @license lucide-react v0.344.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const cM=Oe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
94
|
+
* @license lucide-react v0.344.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const i4=Oe("CloudDrizzle",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 19v1",key:"1dk2by"}],["path",{d:"M8 14v1",key:"84yxot"}],["path",{d:"M16 19v1",key:"v220m7"}],["path",{d:"M16 14v1",key:"g12gj6"}],["path",{d:"M12 21v1",key:"q8vafk"}],["path",{d:"M12 16v1",key:"1mx6rx"}]]);/**
|
|
99
|
+
* @license lucide-react v0.344.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const o4=Oe("CloudLightning",[["path",{d:"M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973",key:"1cez44"}],["path",{d:"m13 12-3 5h4l-3 5",key:"1t22er"}]]);/**
|
|
104
|
+
* @license lucide-react v0.344.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const a4=Oe("CloudRain",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
|
109
|
+
* @license lucide-react v0.344.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const s4=Oe("CloudSun",[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]]);/**
|
|
114
|
+
* @license lucide-react v0.344.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const SS=Oe("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/**
|
|
119
|
+
* @license lucide-react v0.344.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const l4=Oe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
124
|
+
* @license lucide-react v0.344.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const u4=Oe("Droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]);/**
|
|
129
|
+
* @license lucide-react v0.344.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const c4=Oe("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
|
|
134
|
+
* @license lucide-react v0.344.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const f4=Oe("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
139
|
+
* @license lucide-react v0.344.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const h4=Oe("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"}]]);/**
|
|
144
|
+
* @license lucide-react v0.344.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const d4=Oe("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
149
|
+
* @license lucide-react v0.344.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const p4=Oe("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
154
|
+
* @license lucide-react v0.344.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const m4=Oe("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
159
|
+
* @license lucide-react v0.344.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const fM=Oe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
164
|
+
* @license lucide-react v0.344.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const hM=Oe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
169
|
+
* @license lucide-react v0.344.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const PS=Oe("Navigation2",[["polygon",{points:"12 2 19 21 12 17 5 21 12 2",key:"x8c0qg"}]]);/**
|
|
174
|
+
* @license lucide-react v0.344.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const v4=Oe("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);/**
|
|
179
|
+
* @license lucide-react v0.344.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const dM=Oe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
184
|
+
* @license lucide-react v0.344.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const g4=Oe("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
|
189
|
+
* @license lucide-react v0.344.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const y4=Oe("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/**
|
|
194
|
+
* @license lucide-react v0.344.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const x4=Oe("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
|
199
|
+
* @license lucide-react v0.344.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const _4=Oe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
204
|
+
* @license lucide-react v0.344.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const b4=Oe("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);/**
|
|
209
|
+
* @license lucide-react v0.344.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const w4=Oe("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
|
214
|
+
* @license lucide-react v0.344.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const OS=Oe("Snowflake",[["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"m20 16-4-4 4-4",key:"rquw4f"}],["path",{d:"m4 8 4 4-4 4",key:"12s3z9"}],["path",{d:"m16 4-4 4-4-4",key:"1tumq1"}],["path",{d:"m8 20 4-4 4 4",key:"9p200w"}]]);/**
|
|
219
|
+
* @license lucide-react v0.344.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const S4=Oe("Sofa",[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 11v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H6v-2a2 2 0 0 0-4 0Z",key:"u5qfb7"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]]);/**
|
|
224
|
+
* @license lucide-react v0.344.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const Qx=Oe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
229
|
+
* @license lucide-react v0.344.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const pM=Oe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
|
|
234
|
+
* @license lucide-react v0.344.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const mM=Oe("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);/**
|
|
239
|
+
* @license lucide-react v0.344.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const P4=Oe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
244
|
+
* @license lucide-react v0.344.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const O4=Oe("Triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]);/**
|
|
249
|
+
* @license lucide-react v0.344.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const T4=Oe("Wind",[["path",{d:"M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2",key:"1k4u03"}],["path",{d:"M9.6 4.6A2 2 0 1 1 11 8H2",key:"b7d0fd"}],["path",{d:"M12.6 19.4A2 2 0 1 0 14 16H2",key:"1p5cb3"}]]);/**
|
|
254
|
+
* @license lucide-react v0.344.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const uv=Oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
259
|
+
* @license lucide-react v0.344.0 - ISC
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the ISC license.
|
|
262
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
+
*/const A4=Oe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),E4=()=>{const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.startsWith("192.168.")?"https://192.168.111.240:1881":`https://${e}:1881`},k4=()=>{const[e,t]=j.useState(null),[n,r]=j.useState(null),[i,o]=j.useState(0),[s,l]=j.useState(!0),[u,f]=j.useState(null),[d,h]=j.useState(!1),m=E4(),v=`${m}/api/boat`,b=`${m}/api/boat/control`,x=j.useRef(!1),S=j.useCallback(async()=>{if(x.current)return;x.current=!0;const w=new AbortController,E=setTimeout(()=>w.abort(),4e3);try{const P=await fetch(v,{signal:w.signal});if(clearTimeout(E),!P.ok)throw new Error(`Errore Server: ${P.status}`);const A=await P.json();t(A),r(new Date),l(!1),f(null),h(!1)}catch(P){clearTimeout(E),P.name!=="AbortError"&&(console.error("Fetch Error:",P),f(P.message)),l(!0),h(!1)}finally{x.current=!1}},[v]),y=async(w,E)=>{h(!0);try{if(!(await fetch(b,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({device:w,state:E})})).ok)throw new Error("Comando fallito");setTimeout(S,1e3)}catch(P){console.error("Errore invio comando:",P),h(!1)}};j.useEffect(()=>{let w=null;const E=()=>{w&&(clearInterval(w),w=null),document.hidden||(S(),w=setInterval(S,5e3))};return E(),document.addEventListener("visibilitychange",E),window.addEventListener("pageshow",E),window.addEventListener("focus",E),window.addEventListener("online",E),()=>{w&&clearInterval(w),document.removeEventListener("visibilitychange",E),window.removeEventListener("pageshow",E),window.removeEventListener("focus",E),window.removeEventListener("online",E)}},[]),j.useEffect(()=>{const w=setInterval(()=>{if(!document.hidden)if(n){const E=Math.floor((new Date-n)/1e3);o(E),l(E>30),E>=8&&!d&&!x.current&&S()}else x.current||S()},1e3);return()=>clearInterval(w)},[n,d,S]);const _=i<15?"bg-green-500":i<30?"bg-orange-500":"bg-red-500";return{data:e,secondsSinceLastUpdate:i,isDataStale:s,statusColor:_,isUpdating:d,error:u,apiUrl:m,toggleSwitch:(w,E)=>y(w,E),setShoreLimit:w=>y("shore_limit",w)}};function M4(e,t){const n=j.useRef(t);j.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function C4(e,t,n){t.center!==n.center&&e.setLatLng(t.center),t.radius!=null&&t.radius!==n.radius&&e.setRadius(t.radius)}const j4=1;function $4(e){return Object.freeze({__version:j4,map:e})}function Jx(e,t){return Object.freeze({...e,...t})}const vM=j.createContext(null),gM=vM.Provider;function e_(){const e=j.useContext(vM);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function yM(e){function t(n,r){const{instance:i,context:o}=e(n).current;return j.useImperativeHandle(r,()=>i),n.children==null?null:D.createElement(gM,{value:o},n.children)}return j.forwardRef(t)}function N4(e){function t(n,r){const{instance:i}=e(n).current;return j.useImperativeHandle(r,()=>i),null}return j.forwardRef(t)}function xM(e,t){const n=j.useRef();j.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function t_(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}var Yg={exports:{}};/* @preserve
|
|
264
|
+
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
265
|
+
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
266
|
+
*/(function(e,t){(function(n,r){r(t)})(Ul,function(n){var r="1.9.4";function i(a){var c,p,g,T;for(p=1,g=arguments.length;p<g;p++){T=arguments[p];for(c in T)a[c]=T[c]}return a}var o=Object.create||function(){function a(){}return function(c){return a.prototype=c,new a}}();function s(a,c){var p=Array.prototype.slice;if(a.bind)return a.bind.apply(a,p.call(arguments,1));var g=p.call(arguments,2);return function(){return a.apply(c,g.length?g.concat(p.call(arguments)):arguments)}}var l=0;function u(a){return"_leaflet_id"in a||(a._leaflet_id=++l),a._leaflet_id}function f(a,c,p){var g,T,k,I;return I=function(){g=!1,T&&(k.apply(p,T),T=!1)},k=function(){g?T=arguments:(a.apply(p,arguments),setTimeout(I,c),g=!0)},k}function d(a,c,p){var g=c[1],T=c[0],k=g-T;return a===g&&p?a:((a-T)%k+k)%k+T}function h(){return!1}function m(a,c){if(c===!1)return a;var p=Math.pow(10,c===void 0?6:c);return Math.round(a*p)/p}function v(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function b(a){return v(a).split(/\s+/)}function x(a,c){Object.prototype.hasOwnProperty.call(a,"options")||(a.options=a.options?o(a.options):{});for(var p in c)a.options[p]=c[p];return a.options}function S(a,c,p){var g=[];for(var T in a)g.push(encodeURIComponent(p?T.toUpperCase():T)+"="+encodeURIComponent(a[T]));return(!c||c.indexOf("?")===-1?"?":"&")+g.join("&")}var y=/\{ *([\w_ -]+) *\}/g;function _(a,c){return a.replace(y,function(p,g){var T=c[g];if(T===void 0)throw new Error("No value provided for variable "+p);return typeof T=="function"&&(T=T(c)),T})}var w=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function E(a,c){for(var p=0;p<a.length;p++)if(a[p]===c)return p;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function A(a){return window["webkit"+a]||window["moz"+a]||window["ms"+a]}var M=0;function C(a){var c=+new Date,p=Math.max(0,16-(c-M));return M=c+p,window.setTimeout(a,p)}var N=window.requestAnimationFrame||A("RequestAnimationFrame")||C,B=window.cancelAnimationFrame||A("CancelAnimationFrame")||A("CancelRequestAnimationFrame")||function(a){window.clearTimeout(a)};function z(a,c,p){if(p&&N===C)a.call(c);else return N.call(window,s(a,c))}function R(a){a&&B.call(window,a)}var K={__proto__:null,extend:i,create:o,bind:s,get lastId(){return l},stamp:u,throttle:f,wrapNum:d,falseFn:h,formatNum:m,trim:v,splitWords:b,setOptions:x,getParamString:S,template:_,isArray:w,indexOf:E,emptyImageUrl:P,requestFn:N,cancelFn:B,requestAnimFrame:z,cancelAnimFrame:R};function H(){}H.extend=function(a){var c=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},p=c.__super__=this.prototype,g=o(p);g.constructor=c,c.prototype=g;for(var T in this)Object.prototype.hasOwnProperty.call(this,T)&&T!=="prototype"&&T!=="__super__"&&(c[T]=this[T]);return a.statics&&i(c,a.statics),a.includes&&(W(a.includes),i.apply(null,[g].concat(a.includes))),i(g,a),delete g.statics,delete g.includes,g.options&&(g.options=p.options?o(p.options):{},i(g.options,a.options)),g._initHooks=[],g.callInitHooks=function(){if(!this._initHooksCalled){p.callInitHooks&&p.callInitHooks.call(this),this._initHooksCalled=!0;for(var k=0,I=g._initHooks.length;k<I;k++)g._initHooks[k].call(this)}},c},H.include=function(a){var c=this.prototype.options;return i(this.prototype,a),a.options&&(this.prototype.options=c,this.mergeOptions(a.options)),this},H.mergeOptions=function(a){return i(this.prototype.options,a),this},H.addInitHook=function(a){var c=Array.prototype.slice.call(arguments,1),p=typeof a=="function"?a:function(){this[a].apply(this,c)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(p),this};function W(a){if(!(typeof L>"u"||!L||!L.Mixin)){a=w(a)?a:[a];for(var c=0;c<a.length;c++)a[c]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Z={on:function(a,c,p){if(typeof a=="object")for(var g in a)this._on(g,a[g],c);else{a=b(a);for(var T=0,k=a.length;T<k;T++)this._on(a[T],c,p)}return this},off:function(a,c,p){if(!arguments.length)delete this._events;else if(typeof a=="object")for(var g in a)this._off(g,a[g],c);else{a=b(a);for(var T=arguments.length===1,k=0,I=a.length;k<I;k++)T?this._off(a[k]):this._off(a[k],c,p)}return this},_on:function(a,c,p,g){if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}if(this._listens(a,c,p)===!1){p===this&&(p=void 0);var T={fn:c,ctx:p};g&&(T.once=!0),this._events=this._events||{},this._events[a]=this._events[a]||[],this._events[a].push(T)}},_off:function(a,c,p){var g,T,k;if(this._events&&(g=this._events[a],!!g)){if(arguments.length===1){if(this._firingCount)for(T=0,k=g.length;T<k;T++)g[T].fn=h;delete this._events[a];return}if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}var I=this._listens(a,c,p);if(I!==!1){var F=g[I];this._firingCount&&(F.fn=h,this._events[a]=g=g.slice()),g.splice(I,1)}}},fire:function(a,c,p){if(!this.listens(a,p))return this;var g=i({},c,{type:a,target:this,sourceTarget:c&&c.sourceTarget||this});if(this._events){var T=this._events[a];if(T){this._firingCount=this._firingCount+1||1;for(var k=0,I=T.length;k<I;k++){var F=T[k],U=F.fn;F.once&&this.off(a,U,F.ctx),U.call(F.ctx||this,g)}this._firingCount--}}return p&&this._propagateEvent(g),this},listens:function(a,c,p,g){typeof a!="string"&&console.warn('"string" type argument expected');var T=c;typeof c!="function"&&(g=!!c,T=void 0,p=void 0);var k=this._events&&this._events[a];if(k&&k.length&&this._listens(a,T,p)!==!1)return!0;if(g){for(var I in this._eventParents)if(this._eventParents[I].listens(a,c,p,g))return!0}return!1},_listens:function(a,c,p){if(!this._events)return!1;var g=this._events[a]||[];if(!c)return!!g.length;p===this&&(p=void 0);for(var T=0,k=g.length;T<k;T++)if(g[T].fn===c&&g[T].ctx===p)return T;return!1},once:function(a,c,p){if(typeof a=="object")for(var g in a)this._on(g,a[g],c,!0);else{a=b(a);for(var T=0,k=a.length;T<k;T++)this._on(a[T],c,p,!0)}return this},addEventParent:function(a){return this._eventParents=this._eventParents||{},this._eventParents[u(a)]=a,this},removeEventParent:function(a){return this._eventParents&&delete this._eventParents[u(a)],this},_propagateEvent:function(a){for(var c in this._eventParents)this._eventParents[c].fire(a.type,i({layer:a.target,propagatedFrom:a.target},a),!0)}};Z.addEventListener=Z.on,Z.removeEventListener=Z.clearAllEventListeners=Z.off,Z.addOneTimeEventListener=Z.once,Z.fireEvent=Z.fire,Z.hasEventListeners=Z.listens;var G=H.extend(Z);function $(a,c,p){this.x=p?Math.round(a):a,this.y=p?Math.round(c):c}var q=Math.trunc||function(a){return a>0?Math.floor(a):Math.ceil(a)};$.prototype={clone:function(){return new $(this.x,this.y)},add:function(a){return this.clone()._add(V(a))},_add:function(a){return this.x+=a.x,this.y+=a.y,this},subtract:function(a){return this.clone()._subtract(V(a))},_subtract:function(a){return this.x-=a.x,this.y-=a.y,this},divideBy:function(a){return this.clone()._divideBy(a)},_divideBy:function(a){return this.x/=a,this.y/=a,this},multiplyBy:function(a){return this.clone()._multiplyBy(a)},_multiplyBy:function(a){return this.x*=a,this.y*=a,this},scaleBy:function(a){return new $(this.x*a.x,this.y*a.y)},unscaleBy:function(a){return new $(this.x/a.x,this.y/a.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=q(this.x),this.y=q(this.y),this},distanceTo:function(a){a=V(a);var c=a.x-this.x,p=a.y-this.y;return Math.sqrt(c*c+p*p)},equals:function(a){return a=V(a),a.x===this.x&&a.y===this.y},contains:function(a){return a=V(a),Math.abs(a.x)<=Math.abs(this.x)&&Math.abs(a.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function V(a,c,p){return a instanceof $?a:w(a)?new $(a[0],a[1]):a==null?a:typeof a=="object"&&"x"in a&&"y"in a?new $(a.x,a.y):new $(a,c,p)}function te(a,c){if(a)for(var p=c?[a,c]:a,g=0,T=p.length;g<T;g++)this.extend(p[g])}te.prototype={extend:function(a){var c,p;if(!a)return this;if(a instanceof $||typeof a[0]=="number"||"x"in a)c=p=V(a);else if(a=Q(a),c=a.min,p=a.max,!c||!p)return this;return!this.min&&!this.max?(this.min=c.clone(),this.max=p.clone()):(this.min.x=Math.min(c.x,this.min.x),this.max.x=Math.max(p.x,this.max.x),this.min.y=Math.min(c.y,this.min.y),this.max.y=Math.max(p.y,this.max.y)),this},getCenter:function(a){return V((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,a)},getBottomLeft:function(){return V(this.min.x,this.max.y)},getTopRight:function(){return V(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(a){var c,p;return typeof a[0]=="number"||a instanceof $?a=V(a):a=Q(a),a instanceof te?(c=a.min,p=a.max):c=p=a,c.x>=this.min.x&&p.x<=this.max.x&&c.y>=this.min.y&&p.y<=this.max.y},intersects:function(a){a=Q(a);var c=this.min,p=this.max,g=a.min,T=a.max,k=T.x>=c.x&&g.x<=p.x,I=T.y>=c.y&&g.y<=p.y;return k&&I},overlaps:function(a){a=Q(a);var c=this.min,p=this.max,g=a.min,T=a.max,k=T.x>c.x&&g.x<p.x,I=T.y>c.y&&g.y<p.y;return k&&I},isValid:function(){return!!(this.min&&this.max)},pad:function(a){var c=this.min,p=this.max,g=Math.abs(c.x-p.x)*a,T=Math.abs(c.y-p.y)*a;return Q(V(c.x-g,c.y-T),V(p.x+g,p.y+T))},equals:function(a){return a?(a=Q(a),this.min.equals(a.getTopLeft())&&this.max.equals(a.getBottomRight())):!1}};function Q(a,c){return!a||a instanceof te?a:new te(a,c)}function ae(a,c){if(a)for(var p=c?[a,c]:a,g=0,T=p.length;g<T;g++)this.extend(p[g])}ae.prototype={extend:function(a){var c=this._southWest,p=this._northEast,g,T;if(a instanceof he)g=a,T=a;else if(a instanceof ae){if(g=a._southWest,T=a._northEast,!g||!T)return this}else return a?this.extend(ce(a)||fe(a)):this;return!c&&!p?(this._southWest=new he(g.lat,g.lng),this._northEast=new he(T.lat,T.lng)):(c.lat=Math.min(g.lat,c.lat),c.lng=Math.min(g.lng,c.lng),p.lat=Math.max(T.lat,p.lat),p.lng=Math.max(T.lng,p.lng)),this},pad:function(a){var c=this._southWest,p=this._northEast,g=Math.abs(c.lat-p.lat)*a,T=Math.abs(c.lng-p.lng)*a;return new ae(new he(c.lat-g,c.lng-T),new he(p.lat+g,p.lng+T))},getCenter:function(){return new he((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new he(this.getNorth(),this.getWest())},getSouthEast:function(){return new he(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(a){typeof a[0]=="number"||a instanceof he||"lat"in a?a=ce(a):a=fe(a);var c=this._southWest,p=this._northEast,g,T;return a instanceof ae?(g=a.getSouthWest(),T=a.getNorthEast()):g=T=a,g.lat>=c.lat&&T.lat<=p.lat&&g.lng>=c.lng&&T.lng<=p.lng},intersects:function(a){a=fe(a);var c=this._southWest,p=this._northEast,g=a.getSouthWest(),T=a.getNorthEast(),k=T.lat>=c.lat&&g.lat<=p.lat,I=T.lng>=c.lng&&g.lng<=p.lng;return k&&I},overlaps:function(a){a=fe(a);var c=this._southWest,p=this._northEast,g=a.getSouthWest(),T=a.getNorthEast(),k=T.lat>c.lat&&g.lat<p.lat,I=T.lng>c.lng&&g.lng<p.lng;return k&&I},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(a,c){return a?(a=fe(a),this._southWest.equals(a.getSouthWest(),c)&&this._northEast.equals(a.getNorthEast(),c)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function fe(a,c){return a instanceof ae?a:new ae(a,c)}function he(a,c,p){if(isNaN(a)||isNaN(c))throw new Error("Invalid LatLng object: ("+a+", "+c+")");this.lat=+a,this.lng=+c,p!==void 0&&(this.alt=+p)}he.prototype={equals:function(a,c){if(!a)return!1;a=ce(a);var p=Math.max(Math.abs(this.lat-a.lat),Math.abs(this.lng-a.lng));return p<=(c===void 0?1e-9:c)},toString:function(a){return"LatLng("+m(this.lat,a)+", "+m(this.lng,a)+")"},distanceTo:function(a){return ze.distance(this,ce(a))},wrap:function(){return ze.wrapLatLng(this)},toBounds:function(a){var c=180*a/40075017,p=c/Math.cos(Math.PI/180*this.lat);return fe([this.lat-c,this.lng-p],[this.lat+c,this.lng+p])},clone:function(){return new he(this.lat,this.lng,this.alt)}};function ce(a,c,p){return a instanceof he?a:w(a)&&typeof a[0]!="object"?a.length===3?new he(a[0],a[1],a[2]):a.length===2?new he(a[0],a[1]):null:a==null?a:typeof a=="object"&&"lat"in a?new he(a.lat,"lng"in a?a.lng:a.lon,a.alt):c===void 0?null:new he(a,c,p)}var Ve={latLngToPoint:function(a,c){var p=this.projection.project(a),g=this.scale(c);return this.transformation._transform(p,g)},pointToLatLng:function(a,c){var p=this.scale(c),g=this.transformation.untransform(a,p);return this.projection.unproject(g)},project:function(a){return this.projection.project(a)},unproject:function(a){return this.projection.unproject(a)},scale:function(a){return 256*Math.pow(2,a)},zoom:function(a){return Math.log(a/256)/Math.LN2},getProjectedBounds:function(a){if(this.infinite)return null;var c=this.projection.bounds,p=this.scale(a),g=this.transformation.transform(c.min,p),T=this.transformation.transform(c.max,p);return new te(g,T)},infinite:!1,wrapLatLng:function(a){var c=this.wrapLng?d(a.lng,this.wrapLng,!0):a.lng,p=this.wrapLat?d(a.lat,this.wrapLat,!0):a.lat,g=a.alt;return new he(p,c,g)},wrapLatLngBounds:function(a){var c=a.getCenter(),p=this.wrapLatLng(c),g=c.lat-p.lat,T=c.lng-p.lng;if(g===0&&T===0)return a;var k=a.getSouthWest(),I=a.getNorthEast(),F=new he(k.lat-g,k.lng-T),U=new he(I.lat-g,I.lng-T);return new ae(F,U)}},ze=i({},Ve,{wrapLng:[-180,180],R:6371e3,distance:function(a,c){var p=Math.PI/180,g=a.lat*p,T=c.lat*p,k=Math.sin((c.lat-a.lat)*p/2),I=Math.sin((c.lng-a.lng)*p/2),F=k*k+Math.cos(g)*Math.cos(T)*I*I,U=2*Math.atan2(Math.sqrt(F),Math.sqrt(1-F));return this.R*U}}),oe=6378137,me={R:oe,MAX_LATITUDE:85.0511287798,project:function(a){var c=Math.PI/180,p=this.MAX_LATITUDE,g=Math.max(Math.min(p,a.lat),-p),T=Math.sin(g*c);return new $(this.R*a.lng*c,this.R*Math.log((1+T)/(1-T))/2)},unproject:function(a){var c=180/Math.PI;return new he((2*Math.atan(Math.exp(a.y/this.R))-Math.PI/2)*c,a.x*c/this.R)},bounds:function(){var a=oe*Math.PI;return new te([-a,-a],[a,a])}()};function ye(a,c,p,g){if(w(a)){this._a=a[0],this._b=a[1],this._c=a[2],this._d=a[3];return}this._a=a,this._b=c,this._c=p,this._d=g}ye.prototype={transform:function(a,c){return this._transform(a.clone(),c)},_transform:function(a,c){return c=c||1,a.x=c*(this._a*a.x+this._b),a.y=c*(this._c*a.y+this._d),a},untransform:function(a,c){return c=c||1,new $((a.x/c-this._b)/this._a,(a.y/c-this._d)/this._c)}};function J(a,c,p,g){return new ye(a,c,p,g)}var Le=i({},ze,{code:"EPSG:3857",projection:me,transformation:function(){var a=.5/(Math.PI*me.R);return J(a,.5,-a,.5)}()}),Se=i({},Le,{code:"EPSG:900913"});function Ue(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function We(a,c){var p="",g,T,k,I,F,U;for(g=0,k=a.length;g<k;g++){for(F=a[g],T=0,I=F.length;T<I;T++)U=F[T],p+=(T?"L":"M")+U.x+" "+U.y;p+=c?de.svg?"z":"x":""}return p||"M0 0"}var it=document.documentElement.style,Tt="ActiveXObject"in window,pn=Tt&&!document.addEventListener,On="msLaunchUri"in navigator&&!("documentMode"in document),zt=En("webkit"),Gt=En("android"),Y=En("android 2")||En("android 3"),_e=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),be=Gt&&En("Google")&&_e<537&&!("AudioNode"in window),Ie=!!window.opera,_t=!On&&En("chrome"),He=En("gecko")&&!zt&&!Ie&&!Tt,gt=!_t&&En("safari"),on=En("phantom"),an="OTransition"in it,Tn=navigator.platform.indexOf("Win")===0,Kt=Tt&&"transition"in it,An="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Y,Un="MozPerspective"in it,hr=!window.L_DISABLE_3D&&(Kt||An||Un)&&!an&&!on,mn=typeof orientation<"u"||En("mobile"),qr=mn&&zt,_o=mn&&An,Mr=!window.PointerEvent&&window.MSPointerEvent,bo=!!(window.PointerEvent||Mr),wo="ontouchstart"in window||!!window.TouchEvent,So=!window.L_NO_TOUCH&&(wo||bo),Rc=mn&&Ie,zc=mn&&He,Bc=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Fc=function(){var a=!1;try{var c=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveEventSupport",h,c),window.removeEventListener("testPassiveEventSupport",h,c)}catch{}return a}(),Vc=function(){return!!document.createElement("canvas").getContext}(),ga=!!(document.createElementNS&&Ue("svg").createSVGRect),Uc=!!ga&&function(){var a=document.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Wc=!ga&&function(){try{var a=document.createElement("div");a.innerHTML='<v:shape adj="1"/>';var c=a.firstChild;return c.style.behavior="url(#default#VML)",c&&typeof c.adj=="object"}catch{return!1}}(),Hc=navigator.platform.indexOf("Mac")===0,Zc=navigator.platform.indexOf("Linux")===0;function En(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var de={ie:Tt,ielt9:pn,edge:On,webkit:zt,android:Gt,android23:Y,androidStock:be,opera:Ie,chrome:_t,gecko:He,safari:gt,phantom:on,opera12:an,win:Tn,ie3d:Kt,webkit3d:An,gecko3d:Un,any3d:hr,mobile:mn,mobileWebkit:qr,mobileWebkit3d:_o,msPointer:Mr,pointer:bo,touch:So,touchNative:wo,mobileOpera:Rc,mobileGecko:zc,retina:Bc,passiveEvents:Fc,canvas:Vc,svg:ga,vml:Wc,inlineSvg:Uc,mac:Hc,linux:Zc},sl=de.msPointer?"MSPointerDown":"pointerdown",ll=de.msPointer?"MSPointerMove":"pointermove",ul=de.msPointer?"MSPointerUp":"pointerup",cl=de.msPointer?"MSPointerCancel":"pointercancel",ya={touchstart:sl,touchmove:ll,touchend:ul,touchcancel:cl},fl={touchstart:Qc,touchmove:Po,touchend:Po,touchcancel:Po},Xr={},hl=!1;function Gc(a,c,p){return c==="touchstart"&&Yc(),fl[c]?(p=fl[c].bind(this,p),a.addEventListener(ya[c],p,!1),p):(console.warn("wrong event specified:",c),h)}function Kc(a,c,p){if(!ya[c]){console.warn("wrong event specified:",c);return}a.removeEventListener(ya[c],p,!1)}function qc(a){Xr[a.pointerId]=a}function Xc(a){Xr[a.pointerId]&&(Xr[a.pointerId]=a)}function dl(a){delete Xr[a.pointerId]}function Yc(){hl||(document.addEventListener(sl,qc,!0),document.addEventListener(ll,Xc,!0),document.addEventListener(ul,dl,!0),document.addEventListener(cl,dl,!0),hl=!0)}function Po(a,c){if(c.pointerType!==(c.MSPOINTER_TYPE_MOUSE||"mouse")){c.touches=[];for(var p in Xr)c.touches.push(Xr[p]);c.changedTouches=[c],a(c)}}function Qc(a,c){c.MSPOINTER_TYPE_TOUCH&&c.pointerType===c.MSPOINTER_TYPE_TOUCH&&Bt(c),Po(a,c)}function Jc(a){var c={},p,g;for(g in a)p=a[g],c[g]=p&&p.bind?p.bind(a):p;return a=c,c.type="dblclick",c.detail=2,c.isTrusted=!1,c._simulated=!0,c}var ef=200;function tf(a,c){a.addEventListener("dblclick",c);var p=0,g;function T(k){if(k.detail!==1){g=k.detail;return}if(!(k.pointerType==="mouse"||k.sourceCapabilities&&!k.sourceCapabilities.firesTouchEvents)){var I=m1(k);if(!(I.some(function(U){return U instanceof HTMLLabelElement&&U.attributes.for})&&!I.some(function(U){return U instanceof HTMLInputElement||U instanceof HTMLSelectElement}))){var F=Date.now();F-p<=ef?(g++,g===2&&c(Jc(k))):g=1,p=F}}}return a.addEventListener("click",T),{dblclick:c,simDblclick:T}}function nf(a,c){a.removeEventListener("dblclick",c.dblclick),a.removeEventListener("click",c.simDblclick)}var xa=Hn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ci=Hn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),pl=Ci==="webkitTransition"||Ci==="OTransition"?Ci+"End":"transitionend";function ml(a){return typeof a=="string"?document.getElementById(a):a}function ji(a,c){var p=a.style[c]||a.currentStyle&&a.currentStyle[c];if((!p||p==="auto")&&document.defaultView){var g=document.defaultView.getComputedStyle(a,null);p=g?g[c]:null}return p==="auto"?null:p}function Ce(a,c,p){var g=document.createElement(a);return g.className=c||"",p&&p.appendChild(g),g}function ne(a){var c=a.parentNode;c&&c.removeChild(a)}function lt(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function ot(a){var c=a.parentNode;c&&c.lastChild!==a&&c.appendChild(a)}function sn(a){var c=a.parentNode;c&&c.firstChild!==a&&c.insertBefore(a,c.firstChild)}function bt(a,c){if(a.classList!==void 0)return a.classList.contains(c);var p=Cr(a);return p.length>0&&new RegExp("(^|\\s)"+c+"(\\s|$)").test(p)}function pe(a,c){if(a.classList!==void 0)for(var p=b(c),g=0,T=p.length;g<T;g++)a.classList.add(p[g]);else if(!bt(a,c)){var k=Cr(a);kn(a,(k?k+" ":"")+c)}}function Ae(a,c){a.classList!==void 0?a.classList.remove(c):kn(a,v((" "+Cr(a)+" ").replace(" "+c+" "," ")))}function kn(a,c){a.className.baseVal===void 0?a.className=c:a.className.baseVal=c}function Cr(a){return a.correspondingElement&&(a=a.correspondingElement),a.className.baseVal===void 0?a.className:a.className.baseVal}function $t(a,c){"opacity"in a.style?a.style.opacity=c:"filter"in a.style&&Wn(a,c)}function Wn(a,c){var p=!1,g="DXImageTransform.Microsoft.Alpha";try{p=a.filters.item(g)}catch{if(c===1)return}c=Math.round(c*100),p?(p.Enabled=c!==100,p.Opacity=c):a.style.filter+=" progid:"+g+"(opacity="+c+")"}function Hn(a){for(var c=document.documentElement.style,p=0;p<a.length;p++)if(a[p]in c)return a[p];return!1}function vn(a,c,p){var g=c||new $(0,0);a.style[xa]=(de.ie3d?"translate("+g.x+"px,"+g.y+"px)":"translate3d("+g.x+"px,"+g.y+"px,0)")+(p?" scale("+p+")":"")}function Ke(a,c){a._leaflet_pos=c,de.any3d?vn(a,c):(a.style.left=c.x+"px",a.style.top=c.y+"px")}function dr(a){return a._leaflet_pos||new $(0,0)}var $i,Yr,_a;if("onselectstart"in document)$i=function(){we(window,"selectstart",Bt)},Yr=function(){Xe(window,"selectstart",Bt)};else{var Ni=Hn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);$i=function(){if(Ni){var a=document.documentElement.style;_a=a[Ni],a[Ni]="none"}},Yr=function(){Ni&&(document.documentElement.style[Ni]=_a,_a=void 0)}}function rm(){we(window,"dragstart",Bt)}function im(){Xe(window,"dragstart",Bt)}var rf,om;function am(a){for(;a.tabIndex===-1;)a=a.parentNode;a.style&&(of(),rf=a,om=a.style.outlineStyle,a.style.outlineStyle="none",we(window,"keydown",of))}function of(){rf&&(rf.style.outlineStyle=om,rf=void 0,om=void 0,Xe(window,"keydown",of))}function d1(a){do a=a.parentNode;while((!a.offsetWidth||!a.offsetHeight)&&a!==document.body);return a}function sm(a){var c=a.getBoundingClientRect();return{x:c.width/a.offsetWidth||1,y:c.height/a.offsetHeight||1,boundingClientRect:c}}var nN={__proto__:null,TRANSFORM:xa,TRANSITION:Ci,TRANSITION_END:pl,get:ml,getStyle:ji,create:Ce,remove:ne,empty:lt,toFront:ot,toBack:sn,hasClass:bt,addClass:pe,removeClass:Ae,setClass:kn,getClass:Cr,setOpacity:$t,testProp:Hn,setTransform:vn,setPosition:Ke,getPosition:dr,get disableTextSelection(){return $i},get enableTextSelection(){return Yr},disableImageDrag:rm,enableImageDrag:im,preventOutline:am,restoreOutline:of,getSizedParentNode:d1,getScale:sm};function we(a,c,p,g){if(c&&typeof c=="object")for(var T in c)um(a,T,c[T],p);else{c=b(c);for(var k=0,I=c.length;k<I;k++)um(a,c[k],p,g)}return this}var jr="_leaflet_events";function Xe(a,c,p,g){if(arguments.length===1)p1(a),delete a[jr];else if(c&&typeof c=="object")for(var T in c)cm(a,T,c[T],p);else if(c=b(c),arguments.length===2)p1(a,function(F){return E(c,F)!==-1});else for(var k=0,I=c.length;k<I;k++)cm(a,c[k],p,g);return this}function p1(a,c){for(var p in a[jr]){var g=p.split(/\d/)[0];(!c||c(g))&&cm(a,g,null,null,p)}}var lm={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function um(a,c,p,g){var T=c+u(p)+(g?"_"+u(g):"");if(a[jr]&&a[jr][T])return this;var k=function(F){return p.call(g||a,F||window.event)},I=k;!de.touchNative&&de.pointer&&c.indexOf("touch")===0?k=Gc(a,c,k):de.touch&&c==="dblclick"?k=tf(a,k):"addEventListener"in a?c==="touchstart"||c==="touchmove"||c==="wheel"||c==="mousewheel"?a.addEventListener(lm[c]||c,k,de.passiveEvents?{passive:!1}:!1):c==="mouseenter"||c==="mouseleave"?(k=function(F){F=F||window.event,hm(a,F)&&I(F)},a.addEventListener(lm[c],k,!1)):a.addEventListener(c,I,!1):a.attachEvent("on"+c,k),a[jr]=a[jr]||{},a[jr][T]=k}function cm(a,c,p,g,T){T=T||c+u(p)+(g?"_"+u(g):"");var k=a[jr]&&a[jr][T];if(!k)return this;!de.touchNative&&de.pointer&&c.indexOf("touch")===0?Kc(a,c,k):de.touch&&c==="dblclick"?nf(a,k):"removeEventListener"in a?a.removeEventListener(lm[c]||c,k,!1):a.detachEvent("on"+c,k),a[jr][T]=null}function Oo(a){return a.stopPropagation?a.stopPropagation():a.originalEvent?a.originalEvent._stopped=!0:a.cancelBubble=!0,this}function fm(a){return um(a,"wheel",Oo),this}function vl(a){return we(a,"mousedown touchstart dblclick contextmenu",Oo),a._leaflet_disable_click=!0,this}function Bt(a){return a.preventDefault?a.preventDefault():a.returnValue=!1,this}function To(a){return Bt(a),Oo(a),this}function m1(a){if(a.composedPath)return a.composedPath();for(var c=[],p=a.target;p;)c.push(p),p=p.parentNode;return c}function v1(a,c){if(!c)return new $(a.clientX,a.clientY);var p=sm(c),g=p.boundingClientRect;return new $((a.clientX-g.left)/p.x-c.clientLeft,(a.clientY-g.top)/p.y-c.clientTop)}var rN=de.linux&&de.chrome?window.devicePixelRatio:de.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function g1(a){return de.edge?a.wheelDeltaY/2:a.deltaY&&a.deltaMode===0?-a.deltaY/rN:a.deltaY&&a.deltaMode===1?-a.deltaY*20:a.deltaY&&a.deltaMode===2?-a.deltaY*60:a.deltaX||a.deltaZ?0:a.wheelDelta?(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&Math.abs(a.detail)<32765?-a.detail*20:a.detail?a.detail/-32765*60:0}function hm(a,c){var p=c.relatedTarget;if(!p)return!0;try{for(;p&&p!==a;)p=p.parentNode}catch{return!1}return p!==a}var iN={__proto__:null,on:we,off:Xe,stopPropagation:Oo,disableScrollPropagation:fm,disableClickPropagation:vl,preventDefault:Bt,stop:To,getPropagationPath:m1,getMousePosition:v1,getWheelDelta:g1,isExternalTarget:hm,addListener:we,removeListener:Xe},y1=G.extend({run:function(a,c,p,g){this.stop(),this._el=a,this._inProgress=!0,this._duration=p||.25,this._easeOutPower=1/Math.max(g||.5,.2),this._startPos=dr(a),this._offset=c.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=z(this._animate,this),this._step()},_step:function(a){var c=+new Date-this._startTime,p=this._duration*1e3;c<p?this._runFrame(this._easeOut(c/p),a):(this._runFrame(1),this._complete())},_runFrame:function(a,c){var p=this._startPos.add(this._offset.multiplyBy(a));c&&p._round(),Ke(this._el,p),this.fire("step")},_complete:function(){R(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(a){return 1-Math.pow(1-a,this._easeOutPower)}}),je=G.extend({options:{crs:Le,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(a,c){c=x(this,c),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(a),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),c.maxBounds&&this.setMaxBounds(c.maxBounds),c.zoom!==void 0&&(this._zoom=this._limitZoom(c.zoom)),c.center&&c.zoom!==void 0&&this.setView(ce(c.center),c.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ci&&de.any3d&&!de.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),we(this._proxy,pl,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(a,c,p){if(c=c===void 0?this._zoom:this._limitZoom(c),a=this._limitCenter(ce(a),c,this.options.maxBounds),p=p||{},this._stop(),this._loaded&&!p.reset&&p!==!0){p.animate!==void 0&&(p.zoom=i({animate:p.animate},p.zoom),p.pan=i({animate:p.animate,duration:p.duration},p.pan));var g=this._zoom!==c?this._tryAnimatedZoom&&this._tryAnimatedZoom(a,c,p.zoom):this._tryAnimatedPan(a,p.pan);if(g)return clearTimeout(this._sizeTimer),this}return this._resetView(a,c,p.pan&&p.pan.noMoveStart),this},setZoom:function(a,c){return this._loaded?this.setView(this.getCenter(),a,{zoom:c}):(this._zoom=a,this)},zoomIn:function(a,c){return a=a||(de.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+a,c)},zoomOut:function(a,c){return a=a||(de.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-a,c)},setZoomAround:function(a,c,p){var g=this.getZoomScale(c),T=this.getSize().divideBy(2),k=a instanceof $?a:this.latLngToContainerPoint(a),I=k.subtract(T).multiplyBy(1-1/g),F=this.containerPointToLatLng(T.add(I));return this.setView(F,c,{zoom:p})},_getBoundsCenterZoom:function(a,c){c=c||{},a=a.getBounds?a.getBounds():fe(a);var p=V(c.paddingTopLeft||c.padding||[0,0]),g=V(c.paddingBottomRight||c.padding||[0,0]),T=this.getBoundsZoom(a,!1,p.add(g));if(T=typeof c.maxZoom=="number"?Math.min(c.maxZoom,T):T,T===1/0)return{center:a.getCenter(),zoom:T};var k=g.subtract(p).divideBy(2),I=this.project(a.getSouthWest(),T),F=this.project(a.getNorthEast(),T),U=this.unproject(I.add(F).divideBy(2).add(k),T);return{center:U,zoom:T}},fitBounds:function(a,c){if(a=fe(a),!a.isValid())throw new Error("Bounds are not valid.");var p=this._getBoundsCenterZoom(a,c);return this.setView(p.center,p.zoom,c)},fitWorld:function(a){return this.fitBounds([[-90,-180],[90,180]],a)},panTo:function(a,c){return this.setView(a,this._zoom,{pan:c})},panBy:function(a,c){if(a=V(a).round(),c=c||{},!a.x&&!a.y)return this.fire("moveend");if(c.animate!==!0&&!this.getSize().contains(a))return this._resetView(this.unproject(this.project(this.getCenter()).add(a)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new y1,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),c.noMoveStart||this.fire("movestart"),c.animate!==!1){pe(this._mapPane,"leaflet-pan-anim");var p=this._getMapPanePos().subtract(a).round();this._panAnim.run(this._mapPane,p,c.duration||.25,c.easeLinearity)}else this._rawPanBy(a),this.fire("move").fire("moveend");return this},flyTo:function(a,c,p){if(p=p||{},p.animate===!1||!de.any3d)return this.setView(a,c,p);this._stop();var g=this.project(this.getCenter()),T=this.project(a),k=this.getSize(),I=this._zoom;a=ce(a),c=c===void 0?I:c;var F=Math.max(k.x,k.y),U=F*this.getZoomScale(I,c),ee=T.distanceTo(g)||1,se=1.42,xe=se*se;function Te(wt){var gf=wt?-1:1,ZN=wt?U:F,GN=U*U-F*F+gf*xe*xe*ee*ee,KN=2*ZN*xe*ee,Sm=GN/KN,Q1=Math.sqrt(Sm*Sm+1)-Sm,qN=Q1<1e-9?-18:Math.log(Q1);return qN}function ln(wt){return(Math.exp(wt)-Math.exp(-wt))/2}function Nt(wt){return(Math.exp(wt)+Math.exp(-wt))/2}function Gn(wt){return ln(wt)/Nt(wt)}var gn=Te(0);function Ta(wt){return F*(Nt(gn)/Nt(gn+se*wt))}function VN(wt){return F*(Nt(gn)*Gn(gn+se*wt)-ln(gn))/xe}function UN(wt){return 1-Math.pow(1-wt,1.5)}var WN=Date.now(),X1=(Te(1)-gn)/se,HN=p.duration?1e3*p.duration:1e3*X1*.8;function Y1(){var wt=(Date.now()-WN)/HN,gf=UN(wt)*X1;wt<=1?(this._flyToFrame=z(Y1,this),this._move(this.unproject(g.add(T.subtract(g).multiplyBy(VN(gf)/ee)),I),this.getScaleZoom(F/Ta(gf),I),{flyTo:!0})):this._move(a,c)._moveEnd(!0)}return this._moveStart(!0,p.noMoveStart),Y1.call(this),this},flyToBounds:function(a,c){var p=this._getBoundsCenterZoom(a,c);return this.flyTo(p.center,p.zoom,c)},setMaxBounds:function(a){return a=fe(a),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),a.isValid()?(this.options.maxBounds=a,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(a){var c=this.options.minZoom;return this.options.minZoom=a,this._loaded&&c!==a&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(a):this},setMaxZoom:function(a){var c=this.options.maxZoom;return this.options.maxZoom=a,this._loaded&&c!==a&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(a):this},panInsideBounds:function(a,c){this._enforcingBounds=!0;var p=this.getCenter(),g=this._limitCenter(p,this._zoom,fe(a));return p.equals(g)||this.panTo(g,c),this._enforcingBounds=!1,this},panInside:function(a,c){c=c||{};var p=V(c.paddingTopLeft||c.padding||[0,0]),g=V(c.paddingBottomRight||c.padding||[0,0]),T=this.project(this.getCenter()),k=this.project(a),I=this.getPixelBounds(),F=Q([I.min.add(p),I.max.subtract(g)]),U=F.getSize();if(!F.contains(k)){this._enforcingBounds=!0;var ee=k.subtract(F.getCenter()),se=F.extend(k).getSize().subtract(U);T.x+=ee.x<0?-se.x:se.x,T.y+=ee.y<0?-se.y:se.y,this.panTo(this.unproject(T),c),this._enforcingBounds=!1}return this},invalidateSize:function(a){if(!this._loaded)return this;a=i({animate:!1,pan:!0},a===!0?{animate:!0}:a);var c=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var p=this.getSize(),g=c.divideBy(2).round(),T=p.divideBy(2).round(),k=g.subtract(T);return!k.x&&!k.y?this:(a.animate&&a.pan?this.panBy(k):(a.pan&&this._rawPanBy(k),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:c,newSize:p}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(a){if(a=this._locateOptions=i({timeout:1e4,watch:!1},a),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var c=s(this._handleGeolocationResponse,this),p=s(this._handleGeolocationError,this);return a.watch?this._locationWatchId=navigator.geolocation.watchPosition(c,p,a):navigator.geolocation.getCurrentPosition(c,p,a),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(a){if(this._container._leaflet_id){var c=a.code,p=a.message||(c===1?"permission denied":c===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:c,message:"Geolocation error: "+p+"."})}},_handleGeolocationResponse:function(a){if(this._container._leaflet_id){var c=a.coords.latitude,p=a.coords.longitude,g=new he(c,p),T=g.toBounds(a.coords.accuracy*2),k=this._locateOptions;if(k.setView){var I=this.getBoundsZoom(T);this.setView(g,k.maxZoom?Math.min(I,k.maxZoom):I)}var F={latlng:g,bounds:T,timestamp:a.timestamp};for(var U in a.coords)typeof a.coords[U]=="number"&&(F[U]=a.coords[U]);this.fire("locationfound",F)}},addHandler:function(a,c){if(!c)return this;var p=this[a]=new c(this);return this._handlers.push(p),this.options[a]&&p.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),ne(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(R(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var a;for(a in this._layers)this._layers[a].remove();for(a in this._panes)ne(this._panes[a]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(a,c){var p="leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),g=Ce("div",p,c||this._mapPane);return a&&(this._panes[a]=g),g},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds(),c=this.unproject(a.getBottomLeft()),p=this.unproject(a.getTopRight());return new ae(c,p)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(a,c,p){a=fe(a),p=V(p||[0,0]);var g=this.getZoom()||0,T=this.getMinZoom(),k=this.getMaxZoom(),I=a.getNorthWest(),F=a.getSouthEast(),U=this.getSize().subtract(p),ee=Q(this.project(F,g),this.project(I,g)).getSize(),se=de.any3d?this.options.zoomSnap:1,xe=U.x/ee.x,Te=U.y/ee.y,ln=c?Math.max(xe,Te):Math.min(xe,Te);return g=this.getScaleZoom(ln,g),se&&(g=Math.round(g/(se/100))*(se/100),g=c?Math.ceil(g/se)*se:Math.floor(g/se)*se),Math.max(T,Math.min(k,g))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new $(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(a,c){var p=this._getTopLeftPoint(a,c);return new te(p,p.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(a===void 0?this.getZoom():a)},getPane:function(a){return typeof a=="string"?this._panes[a]:a},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(a,c){var p=this.options.crs;return c=c===void 0?this._zoom:c,p.scale(a)/p.scale(c)},getScaleZoom:function(a,c){var p=this.options.crs;c=c===void 0?this._zoom:c;var g=p.zoom(a*p.scale(c));return isNaN(g)?1/0:g},project:function(a,c){return c=c===void 0?this._zoom:c,this.options.crs.latLngToPoint(ce(a),c)},unproject:function(a,c){return c=c===void 0?this._zoom:c,this.options.crs.pointToLatLng(V(a),c)},layerPointToLatLng:function(a){var c=V(a).add(this.getPixelOrigin());return this.unproject(c)},latLngToLayerPoint:function(a){var c=this.project(ce(a))._round();return c._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(ce(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(fe(a))},distance:function(a,c){return this.options.crs.distance(ce(a),ce(c))},containerPointToLayerPoint:function(a){return V(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return V(a).add(this._getMapPanePos())},containerPointToLatLng:function(a){var c=this.containerPointToLayerPoint(V(a));return this.layerPointToLatLng(c)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ce(a)))},mouseEventToContainerPoint:function(a){return v1(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},_initContainer:function(a){var c=this._container=ml(a);if(c){if(c._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");we(c,"scroll",this._onScroll,this),this._containerId=u(c)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&de.any3d,pe(a,"leaflet-container"+(de.touch?" leaflet-touch":"")+(de.retina?" leaflet-retina":"")+(de.ielt9?" leaflet-oldie":"")+(de.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var c=ji(a,"position");c!=="absolute"&&c!=="relative"&&c!=="fixed"&&c!=="sticky"&&(a.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ke(this._mapPane,new $(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(pe(a.markerPane,"leaflet-zoom-hide"),pe(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,c,p){Ke(this._mapPane,new $(0,0));var g=!this._loaded;this._loaded=!0,c=this._limitZoom(c),this.fire("viewprereset");var T=this._zoom!==c;this._moveStart(T,p)._move(a,c)._moveEnd(T),this.fire("viewreset"),g&&this.fire("load")},_moveStart:function(a,c){return a&&this.fire("zoomstart"),c||this.fire("movestart"),this},_move:function(a,c,p,g){c===void 0&&(c=this._zoom);var T=this._zoom!==c;return this._zoom=c,this._lastCenter=a,this._pixelOrigin=this._getNewPixelOrigin(a),g?p&&p.pinch&&this.fire("zoom",p):((T||p&&p.pinch)&&this.fire("zoom",p),this.fire("move",p)),this},_moveEnd:function(a){return a&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return R(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(a){Ke(this._mapPane,this._getMapPanePos().subtract(a))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(a){this._targets={},this._targets[u(this._container)]=this;var c=a?Xe:we;c(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&c(window,"resize",this._onResize,this),de.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){R(this._resizeRequest),this._resizeRequest=z(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,c){for(var p=[],g,T=c==="mouseout"||c==="mouseover",k=a.target||a.srcElement,I=!1;k;){if(g=this._targets[u(k)],g&&(c==="click"||c==="preclick")&&this._draggableMoved(g)){I=!0;break}if(g&&g.listens(c,!0)&&(T&&!hm(k,a)||(p.push(g),T))||k===this._container)break;k=k.parentNode}return!p.length&&!I&&!T&&this.listens(c,!0)&&(p=[this]),p},_isClickDisabled:function(a){for(;a&&a!==this._container;){if(a._leaflet_disable_click)return!0;a=a.parentNode}},_handleDOMEvent:function(a){var c=a.target||a.srcElement;if(!(!this._loaded||c._leaflet_disable_events||a.type==="click"&&this._isClickDisabled(c))){var p=a.type;p==="mousedown"&&am(c),this._fireDOMEvent(a,p)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(a,c,p){if(a.type==="click"){var g=i({},a);g.type="preclick",this._fireDOMEvent(g,g.type,p)}var T=this._findEventTargets(a,c);if(p){for(var k=[],I=0;I<p.length;I++)p[I].listens(c,!0)&&k.push(p[I]);T=k.concat(T)}if(T.length){c==="contextmenu"&&Bt(a);var F=T[0],U={originalEvent:a};if(a.type!=="keypress"&&a.type!=="keydown"&&a.type!=="keyup"){var ee=F.getLatLng&&(!F._radius||F._radius<=10);U.containerPoint=ee?this.latLngToContainerPoint(F.getLatLng()):this.mouseEventToContainerPoint(a),U.layerPoint=this.containerPointToLayerPoint(U.containerPoint),U.latlng=ee?F.getLatLng():this.layerPointToLatLng(U.layerPoint)}for(I=0;I<T.length;I++)if(T[I].fire(c,U,!0),U.originalEvent._stopped||T[I].options.bubblingMouseEvents===!1&&E(this._mouseEvents,c)!==-1)return}},_draggableMoved:function(a){return a=a.dragging&&a.dragging.enabled()?a:this,a.dragging&&a.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var a=0,c=this._handlers.length;a<c;a++)this._handlers[a].disable()},whenReady:function(a,c){return this._loaded?a.call(c||this,{target:this}):this.on("load",a,c),this},_getMapPanePos:function(){return dr(this._mapPane)||new $(0,0)},_moved:function(){var a=this._getMapPanePos();return a&&!a.equals([0,0])},_getTopLeftPoint:function(a,c){var p=a&&c!==void 0?this._getNewPixelOrigin(a,c):this.getPixelOrigin();return p.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(a,c){var p=this.getSize()._divideBy(2);return this.project(a,c)._subtract(p)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(a,c,p){var g=this._getNewPixelOrigin(p,c);return this.project(a,c)._subtract(g)},_latLngBoundsToNewLayerBounds:function(a,c,p){var g=this._getNewPixelOrigin(p,c);return Q([this.project(a.getSouthWest(),c)._subtract(g),this.project(a.getNorthWest(),c)._subtract(g),this.project(a.getSouthEast(),c)._subtract(g),this.project(a.getNorthEast(),c)._subtract(g)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(a){return this.latLngToLayerPoint(a).subtract(this._getCenterLayerPoint())},_limitCenter:function(a,c,p){if(!p)return a;var g=this.project(a,c),T=this.getSize().divideBy(2),k=new te(g.subtract(T),g.add(T)),I=this._getBoundsOffset(k,p,c);return Math.abs(I.x)<=1&&Math.abs(I.y)<=1?a:this.unproject(g.add(I),c)},_limitOffset:function(a,c){if(!c)return a;var p=this.getPixelBounds(),g=new te(p.min.add(a),p.max.add(a));return a.add(this._getBoundsOffset(g,c))},_getBoundsOffset:function(a,c,p){var g=Q(this.project(c.getNorthEast(),p),this.project(c.getSouthWest(),p)),T=g.min.subtract(a.min),k=g.max.subtract(a.max),I=this._rebound(T.x,-k.x),F=this._rebound(T.y,-k.y);return new $(I,F)},_rebound:function(a,c){return a+c>0?Math.round(a-c)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(c))},_limitZoom:function(a){var c=this.getMinZoom(),p=this.getMaxZoom(),g=de.any3d?this.options.zoomSnap:1;return g&&(a=Math.round(a/g)*g),Math.max(c,Math.min(p,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ae(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(a,c){var p=this._getCenterOffset(a)._trunc();return(c&&c.animate)!==!0&&!this.getSize().contains(p)?!1:(this.panBy(p,c),!0)},_createAnimProxy:function(){var a=this._proxy=Ce("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(c){var p=xa,g=this._proxy.style[p];vn(this._proxy,this.project(c.center,c.zoom),this.getZoomScale(c.zoom,1)),g===this._proxy.style[p]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ne(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),c=this.getZoom();vn(this._proxy,this.project(a,c),this.getZoomScale(c,1))},_catchTransitionEnd:function(a){this._animatingZoom&&a.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,c,p){if(this._animatingZoom)return!0;if(p=p||{},!this._zoomAnimated||p.animate===!1||this._nothingToAnimate()||Math.abs(c-this._zoom)>this.options.zoomAnimationThreshold)return!1;var g=this.getZoomScale(c),T=this._getCenterOffset(a)._divideBy(1-1/g);return p.animate!==!0&&!this.getSize().contains(T)?!1:(z(function(){this._moveStart(!0,p.noMoveStart||!1)._animateZoom(a,c,!0)},this),!0)},_animateZoom:function(a,c,p,g){this._mapPane&&(p&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=c,pe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:a,zoom:c,noUpdate:g}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ae(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function oN(a,c){return new je(a,c)}var pr=H.extend({options:{position:"topright"},initialize:function(a){x(this,a)},getPosition:function(){return this.options.position},setPosition:function(a){var c=this._map;return c&&c.removeControl(this),this.options.position=a,c&&c.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var c=this._container=this.onAdd(a),p=this.getPosition(),g=a._controlCorners[p];return pe(c,"leaflet-control"),p.indexOf("bottom")!==-1?g.insertBefore(c,g.firstChild):g.appendChild(c),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ne(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(a){this._map&&a&&a.screenX>0&&a.screenY>0&&this._map.getContainer().focus()}}),gl=function(a){return new pr(a)};je.include({addControl:function(a){return a.addTo(this),this},removeControl:function(a){return a.remove(),this},_initControlPos:function(){var a=this._controlCorners={},c="leaflet-",p=this._controlContainer=Ce("div",c+"control-container",this._container);function g(T,k){var I=c+T+" "+c+k;a[T+k]=Ce("div",I,p)}g("top","left"),g("top","right"),g("bottom","left"),g("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)ne(this._controlCorners[a]);ne(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var x1=pr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,c,p,g){return p<g?-1:g<p?1:0}},initialize:function(a,c,p){x(this,p),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var g in a)this._addLayer(a[g],g);for(g in c)this._addLayer(c[g],g,!0)},onAdd:function(a){this._initLayout(),this._update(),this._map=a,a.on("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(a){return pr.prototype.addTo.call(this,a),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(a,c){return this._addLayer(a,c),this._map?this._update():this},addOverlay:function(a,c){return this._addLayer(a,c,!0),this._map?this._update():this},removeLayer:function(a){a.off("add remove",this._onLayerChange,this);var c=this._getLayer(u(a));return c&&this._layers.splice(this._layers.indexOf(c),1),this._map?this._update():this},expand:function(){pe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var a=this._map.getSize().y-(this._container.offsetTop+50);return a<this._section.clientHeight?(pe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=a+"px"):Ae(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ae(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var a="leaflet-control-layers",c=this._container=Ce("div",a),p=this.options.collapsed;c.setAttribute("aria-haspopup",!0),vl(c),fm(c);var g=this._section=Ce("section",a+"-list");p&&(this._map.on("click",this.collapse,this),we(c,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var T=this._layersLink=Ce("a",a+"-toggle",c);T.href="#",T.title="Layers",T.setAttribute("role","button"),we(T,{keydown:function(k){k.keyCode===13&&this._expandSafely()},click:function(k){Bt(k),this._expandSafely()}},this),p||this.expand(),this._baseLayersList=Ce("div",a+"-base",g),this._separator=Ce("div",a+"-separator",g),this._overlaysList=Ce("div",a+"-overlays",g),c.appendChild(g)},_getLayer:function(a){for(var c=0;c<this._layers.length;c++)if(this._layers[c]&&u(this._layers[c].layer)===a)return this._layers[c]},_addLayer:function(a,c,p){this._map&&a.on("add remove",this._onLayerChange,this),this._layers.push({layer:a,name:c,overlay:p}),this.options.sortLayers&&this._layers.sort(s(function(g,T){return this.options.sortFunction(g.layer,T.layer,g.name,T.name)},this)),this.options.autoZIndex&&a.setZIndex&&(this._lastZIndex++,a.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;lt(this._baseLayersList),lt(this._overlaysList),this._layerControlInputs=[];var a,c,p,g,T=0;for(p=0;p<this._layers.length;p++)g=this._layers[p],this._addItem(g),c=c||g.overlay,a=a||!g.overlay,T+=g.overlay?0:1;return this.options.hideSingleBase&&(a=a&&T>1,this._baseLayersList.style.display=a?"":"none"),this._separator.style.display=c&&a?"":"none",this},_onLayerChange:function(a){this._handlingClick||this._update();var c=this._getLayer(u(a.target)),p=c.overlay?a.type==="add"?"overlayadd":"overlayremove":a.type==="add"?"baselayerchange":null;p&&this._map.fire(p,c)},_createRadioElement:function(a,c){var p='<input type="radio" class="leaflet-control-layers-selector" name="'+a+'"'+(c?' checked="checked"':"")+"/>",g=document.createElement("div");return g.innerHTML=p,g.firstChild},_addItem:function(a){var c=document.createElement("label"),p=this._map.hasLayer(a.layer),g;a.overlay?(g=document.createElement("input"),g.type="checkbox",g.className="leaflet-control-layers-selector",g.defaultChecked=p):g=this._createRadioElement("leaflet-base-layers_"+u(this),p),this._layerControlInputs.push(g),g.layerId=u(a.layer),we(g,"click",this._onInputClick,this);var T=document.createElement("span");T.innerHTML=" "+a.name;var k=document.createElement("span");c.appendChild(k),k.appendChild(g),k.appendChild(T);var I=a.overlay?this._overlaysList:this._baseLayersList;return I.appendChild(c),this._checkDisabledLayers(),c},_onInputClick:function(){if(!this._preventClick){var a=this._layerControlInputs,c,p,g=[],T=[];this._handlingClick=!0;for(var k=a.length-1;k>=0;k--)c=a[k],p=this._getLayer(c.layerId).layer,c.checked?g.push(p):c.checked||T.push(p);for(k=0;k<T.length;k++)this._map.hasLayer(T[k])&&this._map.removeLayer(T[k]);for(k=0;k<g.length;k++)this._map.hasLayer(g[k])||this._map.addLayer(g[k]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var a=this._layerControlInputs,c,p,g=this._map.getZoom(),T=a.length-1;T>=0;T--)c=a[T],p=this._getLayer(c.layerId).layer,c.disabled=p.options.minZoom!==void 0&&g<p.options.minZoom||p.options.maxZoom!==void 0&&g>p.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var a=this._section;this._preventClick=!0,we(a,"click",Bt),this.expand();var c=this;setTimeout(function(){Xe(a,"click",Bt),c._preventClick=!1})}}),aN=function(a,c,p){return new x1(a,c,p)},dm=pr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(a){var c="leaflet-control-zoom",p=Ce("div",c+" leaflet-bar"),g=this.options;return this._zoomInButton=this._createButton(g.zoomInText,g.zoomInTitle,c+"-in",p,this._zoomIn),this._zoomOutButton=this._createButton(g.zoomOutText,g.zoomOutTitle,c+"-out",p,this._zoomOut),this._updateDisabled(),a.on("zoomend zoomlevelschange",this._updateDisabled,this),p},onRemove:function(a){a.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(a){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(a.shiftKey?3:1))},_zoomOut:function(a){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,c,p,g,T){var k=Ce("a",p,g);return k.innerHTML=a,k.href="#",k.title=c,k.setAttribute("role","button"),k.setAttribute("aria-label",c),vl(k),we(k,"click",To),we(k,"click",T,this),we(k,"click",this._refocusOnMap,this),k},_updateDisabled:function(){var a=this._map,c="leaflet-disabled";Ae(this._zoomInButton,c),Ae(this._zoomOutButton,c),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(pe(this._zoomOutButton,c),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(pe(this._zoomInButton,c),this._zoomInButton.setAttribute("aria-disabled","true"))}});je.mergeOptions({zoomControl:!0}),je.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new dm,this.addControl(this.zoomControl))});var sN=function(a){return new dm(a)},_1=pr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var c="leaflet-control-scale",p=Ce("div",c),g=this.options;return this._addScales(g,c+"-line",p),a.on(g.updateWhenIdle?"moveend":"move",this._update,this),a.whenReady(this._update,this),p},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,c,p){a.metric&&(this._mScale=Ce("div",c,p)),a.imperial&&(this._iScale=Ce("div",c,p))},_update:function(){var a=this._map,c=a.getSize().y/2,p=a.distance(a.containerPointToLatLng([0,c]),a.containerPointToLatLng([this.options.maxWidth,c]));this._updateScales(p)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a),this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var c=this._getRoundNum(a),p=c<1e3?c+" m":c/1e3+" km";this._updateScale(this._mScale,p,c/a)},_updateImperial:function(a){var c=a*3.2808399,p,g,T;c>5280?(p=c/5280,g=this._getRoundNum(p),this._updateScale(this._iScale,g+" mi",g/p)):(T=this._getRoundNum(c),this._updateScale(this._iScale,T+" ft",T/c))},_updateScale:function(a,c,p){a.style.width=Math.round(this.options.maxWidth*p)+"px",a.innerHTML=c},_getRoundNum:function(a){var c=Math.pow(10,(Math.floor(a)+"").length-1),p=a/c;return p=p>=10?10:p>=5?5:p>=3?3:p>=2?2:1,c*p}}),lN=function(a){return new _1(a)},uN='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',pm=pr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(de.inlineSvg?uN+" ":"")+"Leaflet</a>"},initialize:function(a){x(this,a),this._attributions={}},onAdd:function(a){a.attributionControl=this,this._container=Ce("div","leaflet-control-attribution"),vl(this._container);for(var c in a._layers)a._layers[c].getAttribution&&this.addAttribution(a._layers[c].getAttribution());return this._update(),a.on("layeradd",this._addAttribution,this),this._container},onRemove:function(a){a.off("layeradd",this._addAttribution,this)},_addAttribution:function(a){a.layer.getAttribution&&(this.addAttribution(a.layer.getAttribution()),a.layer.once("remove",function(){this.removeAttribution(a.layer.getAttribution())},this))},setPrefix:function(a){return this.options.prefix=a,this._update(),this},addAttribution:function(a){return a?(this._attributions[a]||(this._attributions[a]=0),this._attributions[a]++,this._update(),this):this},removeAttribution:function(a){return a?(this._attributions[a]&&(this._attributions[a]--,this._update()),this):this},_update:function(){if(this._map){var a=[];for(var c in this._attributions)this._attributions[c]&&a.push(c);var p=[];this.options.prefix&&p.push(this.options.prefix),a.length&&p.push(a.join(", ")),this._container.innerHTML=p.join(' <span aria-hidden="true">|</span> ')}}});je.mergeOptions({attributionControl:!0}),je.addInitHook(function(){this.options.attributionControl&&new pm().addTo(this)});var cN=function(a){return new pm(a)};pr.Layers=x1,pr.Zoom=dm,pr.Scale=_1,pr.Attribution=pm,gl.layers=aN,gl.zoom=sN,gl.scale=lN,gl.attribution=cN;var $r=H.extend({initialize:function(a){this._map=a},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});$r.addTo=function(a,c){return a.addHandler(c,this),this};var fN={Events:Z},b1=de.touch?"touchstart mousedown":"mousedown",Li=G.extend({options:{clickTolerance:3},initialize:function(a,c,p,g){x(this,g),this._element=a,this._dragStartTarget=c||a,this._preventOutline=p},enable:function(){this._enabled||(we(this._dragStartTarget,b1,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Li._dragging===this&&this.finishDrag(!0),Xe(this._dragStartTarget,b1,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!bt(this._element,"leaflet-zoom-anim"))){if(a.touches&&a.touches.length!==1){Li._dragging===this&&this.finishDrag();return}if(!(Li._dragging||a.shiftKey||a.which!==1&&a.button!==1&&!a.touches)&&(Li._dragging=this,this._preventOutline&&am(this._element),rm(),$i(),!this._moving)){this.fire("down");var c=a.touches?a.touches[0]:a,p=d1(this._element);this._startPoint=new $(c.clientX,c.clientY),this._startPos=dr(this._element),this._parentScale=sm(p);var g=a.type==="mousedown";we(document,g?"mousemove":"touchmove",this._onMove,this),we(document,g?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(a){if(this._enabled){if(a.touches&&a.touches.length>1){this._moved=!0;return}var c=a.touches&&a.touches.length===1?a.touches[0]:a,p=new $(c.clientX,c.clientY)._subtract(this._startPoint);!p.x&&!p.y||Math.abs(p.x)+Math.abs(p.y)<this.options.clickTolerance||(p.x/=this._parentScale.x,p.y/=this._parentScale.y,Bt(a),this._moved||(this.fire("dragstart"),this._moved=!0,pe(document.body,"leaflet-dragging"),this._lastTarget=a.target||a.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),pe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(p),this._moving=!0,this._lastEvent=a,this._updatePosition())}},_updatePosition:function(){var a={originalEvent:this._lastEvent};this.fire("predrag",a),Ke(this._element,this._newPos),this.fire("drag",a)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(a){Ae(document.body,"leaflet-dragging"),this._lastTarget&&(Ae(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Xe(document,"mousemove touchmove",this._onMove,this),Xe(document,"mouseup touchend touchcancel",this._onUp,this),im(),Yr();var c=this._moved&&this._moving;this._moving=!1,Li._dragging=!1,c&&this.fire("dragend",{noInertia:a,distance:this._newPos.distanceTo(this._startPos)})}});function w1(a,c,p){var g,T=[1,4,2,8],k,I,F,U,ee,se,xe,Te;for(k=0,se=a.length;k<se;k++)a[k]._code=Ao(a[k],c);for(F=0;F<4;F++){for(xe=T[F],g=[],k=0,se=a.length,I=se-1;k<se;I=k++)U=a[k],ee=a[I],U._code&xe?ee._code&xe||(Te=af(ee,U,xe,c,p),Te._code=Ao(Te,c),g.push(Te)):(ee._code&xe&&(Te=af(ee,U,xe,c,p),Te._code=Ao(Te,c),g.push(Te)),g.push(U));a=g}return a}function S1(a,c){var p,g,T,k,I,F,U,ee,se;if(!a||a.length===0)throw new Error("latlngs not passed");Zn(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var xe=ce([0,0]),Te=fe(a),ln=Te.getNorthWest().distanceTo(Te.getSouthWest())*Te.getNorthEast().distanceTo(Te.getNorthWest());ln<1700&&(xe=mm(a));var Nt=a.length,Gn=[];for(p=0;p<Nt;p++){var gn=ce(a[p]);Gn.push(c.project(ce([gn.lat-xe.lat,gn.lng-xe.lng])))}for(F=U=ee=0,p=0,g=Nt-1;p<Nt;g=p++)T=Gn[p],k=Gn[g],I=T.y*k.x-k.y*T.x,U+=(T.x+k.x)*I,ee+=(T.y+k.y)*I,F+=I*3;F===0?se=Gn[0]:se=[U/F,ee/F];var Ta=c.unproject(V(se));return ce([Ta.lat+xe.lat,Ta.lng+xe.lng])}function mm(a){for(var c=0,p=0,g=0,T=0;T<a.length;T++){var k=ce(a[T]);c+=k.lat,p+=k.lng,g++}return ce([c/g,p/g])}var hN={__proto__:null,clipPolygon:w1,polygonCenter:S1,centroid:mm};function P1(a,c){if(!c||!a.length)return a.slice();var p=c*c;return a=mN(a,p),a=pN(a,p),a}function O1(a,c,p){return Math.sqrt(yl(a,c,p,!0))}function dN(a,c,p){return yl(a,c,p)}function pN(a,c){var p=a.length,g=typeof Uint8Array<"u"?Uint8Array:Array,T=new g(p);T[0]=T[p-1]=1,vm(a,T,c,0,p-1);var k,I=[];for(k=0;k<p;k++)T[k]&&I.push(a[k]);return I}function vm(a,c,p,g,T){var k=0,I,F,U;for(F=g+1;F<=T-1;F++)U=yl(a[F],a[g],a[T],!0),U>k&&(I=F,k=U);k>p&&(c[I]=1,vm(a,c,p,g,I),vm(a,c,p,I,T))}function mN(a,c){for(var p=[a[0]],g=1,T=0,k=a.length;g<k;g++)vN(a[g],a[T])>c&&(p.push(a[g]),T=g);return T<k-1&&p.push(a[k-1]),p}var T1;function A1(a,c,p,g,T){var k=g?T1:Ao(a,p),I=Ao(c,p),F,U,ee;for(T1=I;;){if(!(k|I))return[a,c];if(k&I)return!1;F=k||I,U=af(a,c,F,p,T),ee=Ao(U,p),F===k?(a=U,k=ee):(c=U,I=ee)}}function af(a,c,p,g,T){var k=c.x-a.x,I=c.y-a.y,F=g.min,U=g.max,ee,se;return p&8?(ee=a.x+k*(U.y-a.y)/I,se=U.y):p&4?(ee=a.x+k*(F.y-a.y)/I,se=F.y):p&2?(ee=U.x,se=a.y+I*(U.x-a.x)/k):p&1&&(ee=F.x,se=a.y+I*(F.x-a.x)/k),new $(ee,se,T)}function Ao(a,c){var p=0;return a.x<c.min.x?p|=1:a.x>c.max.x&&(p|=2),a.y<c.min.y?p|=4:a.y>c.max.y&&(p|=8),p}function vN(a,c){var p=c.x-a.x,g=c.y-a.y;return p*p+g*g}function yl(a,c,p,g){var T=c.x,k=c.y,I=p.x-T,F=p.y-k,U=I*I+F*F,ee;return U>0&&(ee=((a.x-T)*I+(a.y-k)*F)/U,ee>1?(T=p.x,k=p.y):ee>0&&(T+=I*ee,k+=F*ee)),I=a.x-T,F=a.y-k,g?I*I+F*F:new $(T,k)}function Zn(a){return!w(a[0])||typeof a[0][0]!="object"&&typeof a[0][0]<"u"}function E1(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Zn(a)}function k1(a,c){var p,g,T,k,I,F,U,ee;if(!a||a.length===0)throw new Error("latlngs not passed");Zn(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var se=ce([0,0]),xe=fe(a),Te=xe.getNorthWest().distanceTo(xe.getSouthWest())*xe.getNorthEast().distanceTo(xe.getNorthWest());Te<1700&&(se=mm(a));var ln=a.length,Nt=[];for(p=0;p<ln;p++){var Gn=ce(a[p]);Nt.push(c.project(ce([Gn.lat-se.lat,Gn.lng-se.lng])))}for(p=0,g=0;p<ln-1;p++)g+=Nt[p].distanceTo(Nt[p+1])/2;if(g===0)ee=Nt[0];else for(p=0,k=0;p<ln-1;p++)if(I=Nt[p],F=Nt[p+1],T=I.distanceTo(F),k+=T,k>g){U=(k-g)/T,ee=[F.x-U*(F.x-I.x),F.y-U*(F.y-I.y)];break}var gn=c.unproject(V(ee));return ce([gn.lat+se.lat,gn.lng+se.lng])}var gN={__proto__:null,simplify:P1,pointToSegmentDistance:O1,closestPointOnSegment:dN,clipSegment:A1,_getEdgeIntersection:af,_getBitCode:Ao,_sqClosestPointOnSegment:yl,isFlat:Zn,_flat:E1,polylineCenter:k1},gm={project:function(a){return new $(a.lng,a.lat)},unproject:function(a){return new he(a.y,a.x)},bounds:new te([-180,-90],[180,90])},ym={R:6378137,R_MINOR:6356752314245179e-9,bounds:new te([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(a){var c=Math.PI/180,p=this.R,g=a.lat*c,T=this.R_MINOR/p,k=Math.sqrt(1-T*T),I=k*Math.sin(g),F=Math.tan(Math.PI/4-g/2)/Math.pow((1-I)/(1+I),k/2);return g=-p*Math.log(Math.max(F,1e-10)),new $(a.lng*c*p,g)},unproject:function(a){for(var c=180/Math.PI,p=this.R,g=this.R_MINOR/p,T=Math.sqrt(1-g*g),k=Math.exp(-a.y/p),I=Math.PI/2-2*Math.atan(k),F=0,U=.1,ee;F<15&&Math.abs(U)>1e-7;F++)ee=T*Math.sin(I),ee=Math.pow((1-ee)/(1+ee),T/2),U=Math.PI/2-2*Math.atan(k*ee)-I,I+=U;return new he(I*c,a.x*c/p)}},yN={__proto__:null,LonLat:gm,Mercator:ym,SphericalMercator:me},xN=i({},ze,{code:"EPSG:3395",projection:ym,transformation:function(){var a=.5/(Math.PI*ym.R);return J(a,.5,-a,.5)}()}),M1=i({},ze,{code:"EPSG:4326",projection:gm,transformation:J(1/180,1,-1/180,.5)}),_N=i({},Ve,{projection:gm,transformation:J(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,c){var p=c.lng-a.lng,g=c.lat-a.lat;return Math.sqrt(p*p+g*g)},infinite:!0});Ve.Earth=ze,Ve.EPSG3395=xN,Ve.EPSG3857=Le,Ve.EPSG900913=Se,Ve.EPSG4326=M1,Ve.Simple=_N;var mr=G.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(a){return a.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){return a&&a.removeLayer(this),this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){return this._map._targets[u(a)]=this,this},removeInteractiveTarget:function(a){return delete this._map._targets[u(a)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var c=a.target;if(c.hasLayer(this)){if(this._map=c,this._zoomAnimated=c._zoomAnimated,this.getEvents){var p=this.getEvents();c.on(p,this),this.once("remove",function(){c.off(p,this)},this)}this.onAdd(c),this.fire("add"),c.fire("layeradd",{layer:this})}}});je.include({addLayer:function(a){if(!a._layerAdd)throw new Error("The provided object is not a Layer.");var c=u(a);return this._layers[c]?this:(this._layers[c]=a,a._mapToAdd=this,a.beforeAdd&&a.beforeAdd(this),this.whenReady(a._layerAdd,a),this)},removeLayer:function(a){var c=u(a);return this._layers[c]?(this._loaded&&a.onRemove(this),delete this._layers[c],this._loaded&&(this.fire("layerremove",{layer:a}),a.fire("remove")),a._map=a._mapToAdd=null,this):this},hasLayer:function(a){return u(a)in this._layers},eachLayer:function(a,c){for(var p in this._layers)a.call(c,this._layers[p]);return this},_addLayers:function(a){a=a?w(a)?a:[a]:[];for(var c=0,p=a.length;c<p;c++)this.addLayer(a[c])},_addZoomLimit:function(a){(!isNaN(a.options.maxZoom)||!isNaN(a.options.minZoom))&&(this._zoomBoundLayers[u(a)]=a,this._updateZoomLevels())},_removeZoomLimit:function(a){var c=u(a);this._zoomBoundLayers[c]&&(delete this._zoomBoundLayers[c],this._updateZoomLevels())},_updateZoomLevels:function(){var a=1/0,c=-1/0,p=this._getZoomSpan();for(var g in this._zoomBoundLayers){var T=this._zoomBoundLayers[g].options;a=T.minZoom===void 0?a:Math.min(a,T.minZoom),c=T.maxZoom===void 0?c:Math.max(c,T.maxZoom)}this._layersMaxZoom=c===-1/0?void 0:c,this._layersMinZoom=a===1/0?void 0:a,p!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ba=mr.extend({initialize:function(a,c){x(this,c),this._layers={};var p,g;if(a)for(p=0,g=a.length;p<g;p++)this.addLayer(a[p])},addLayer:function(a){var c=this.getLayerId(a);return this._layers[c]=a,this._map&&this._map.addLayer(a),this},removeLayer:function(a){var c=a in this._layers?a:this.getLayerId(a);return this._map&&this._layers[c]&&this._map.removeLayer(this._layers[c]),delete this._layers[c],this},hasLayer:function(a){var c=typeof a=="number"?a:this.getLayerId(a);return c in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(a){var c=Array.prototype.slice.call(arguments,1),p,g;for(p in this._layers)g=this._layers[p],g[a]&&g[a].apply(g,c);return this},onAdd:function(a){this.eachLayer(a.addLayer,a)},onRemove:function(a){this.eachLayer(a.removeLayer,a)},eachLayer:function(a,c){for(var p in this._layers)a.call(c,this._layers[p]);return this},getLayer:function(a){return this._layers[a]},getLayers:function(){var a=[];return this.eachLayer(a.push,a),a},setZIndex:function(a){return this.invoke("setZIndex",a)},getLayerId:function(a){return u(a)}}),bN=function(a,c){return new ba(a,c)},Qr=ba.extend({addLayer:function(a){return this.hasLayer(a)?this:(a.addEventParent(this),ba.prototype.addLayer.call(this,a),this.fire("layeradd",{layer:a}))},removeLayer:function(a){return this.hasLayer(a)?(a in this._layers&&(a=this._layers[a]),a.removeEventParent(this),ba.prototype.removeLayer.call(this,a),this.fire("layerremove",{layer:a})):this},setStyle:function(a){return this.invoke("setStyle",a)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var a=new ae;for(var c in this._layers){var p=this._layers[c];a.extend(p.getBounds?p.getBounds():p.getLatLng())}return a}}),wN=function(a,c){return new Qr(a,c)},wa=H.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(a){x(this,a)},createIcon:function(a){return this._createIcon("icon",a)},createShadow:function(a){return this._createIcon("shadow",a)},_createIcon:function(a,c){var p=this._getIconUrl(a);if(!p){if(a==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var g=this._createImg(p,c&&c.tagName==="IMG"?c:null);return this._setIconStyles(g,a),(this.options.crossOrigin||this.options.crossOrigin==="")&&(g.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),g},_setIconStyles:function(a,c){var p=this.options,g=p[c+"Size"];typeof g=="number"&&(g=[g,g]);var T=V(g),k=V(c==="shadow"&&p.shadowAnchor||p.iconAnchor||T&&T.divideBy(2,!0));a.className="leaflet-marker-"+c+" "+(p.className||""),k&&(a.style.marginLeft=-k.x+"px",a.style.marginTop=-k.y+"px"),T&&(a.style.width=T.x+"px",a.style.height=T.y+"px")},_createImg:function(a,c){return c=c||document.createElement("img"),c.src=a,c},_getIconUrl:function(a){return de.retina&&this.options[a+"RetinaUrl"]||this.options[a+"Url"]}});function SN(a){return new wa(a)}var xl=wa.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(a){return typeof xl.imagePath!="string"&&(xl.imagePath=this._detectIconPath()),(this.options.imagePath||xl.imagePath)+wa.prototype._getIconUrl.call(this,a)},_stripUrl:function(a){var c=function(p,g,T){var k=g.exec(p);return k&&k[T]};return a=c(a,/^url\((['"])?(.+)\1\)$/,2),a&&c(a,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var a=Ce("div","leaflet-default-icon-path",document.body),c=ji(a,"background-image")||ji(a,"backgroundImage");if(document.body.removeChild(a),c=this._stripUrl(c),c)return c;var p=document.querySelector('link[href$="leaflet.css"]');return p?p.href.substring(0,p.href.length-11-1):""}}),C1=$r.extend({initialize:function(a){this._marker=a},addHooks:function(){var a=this._marker._icon;this._draggable||(this._draggable=new Li(a,a,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),pe(a,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ae(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(a){var c=this._marker,p=c._map,g=this._marker.options.autoPanSpeed,T=this._marker.options.autoPanPadding,k=dr(c._icon),I=p.getPixelBounds(),F=p.getPixelOrigin(),U=Q(I.min._subtract(F).add(T),I.max._subtract(F).subtract(T));if(!U.contains(k)){var ee=V((Math.max(U.max.x,k.x)-U.max.x)/(I.max.x-U.max.x)-(Math.min(U.min.x,k.x)-U.min.x)/(I.min.x-U.min.x),(Math.max(U.max.y,k.y)-U.max.y)/(I.max.y-U.max.y)-(Math.min(U.min.y,k.y)-U.min.y)/(I.min.y-U.min.y)).multiplyBy(g);p.panBy(ee,{animate:!1}),this._draggable._newPos._add(ee),this._draggable._startPos._add(ee),Ke(c._icon,this._draggable._newPos),this._onDrag(a),this._panRequest=z(this._adjustPan.bind(this,a))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(a){this._marker.options.autoPan&&(R(this._panRequest),this._panRequest=z(this._adjustPan.bind(this,a)))},_onDrag:function(a){var c=this._marker,p=c._shadow,g=dr(c._icon),T=c._map.layerPointToLatLng(g);p&&Ke(p,g),c._latlng=T,a.latlng=T,a.oldLatLng=this._oldLatLng,c.fire("move",a).fire("drag",a)},_onDragEnd:function(a){R(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",a)}}),sf=mr.extend({options:{icon:new xl,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(a,c){x(this,c),this._latlng=ce(a)},onAdd:function(a){this._zoomAnimated=this._zoomAnimated&&a.options.markerZoomAnimation,this._zoomAnimated&&a.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(a){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&a.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(a){var c=this._latlng;return this._latlng=ce(a),this.update(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},setZIndexOffset:function(a){return this.options.zIndexOffset=a,this.update()},getIcon:function(){return this.options.icon},setIcon:function(a){return this.options.icon=a,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var a=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(a)}return this},_initIcon:function(){var a=this.options,c="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),p=a.icon.createIcon(this._icon),g=!1;p!==this._icon&&(this._icon&&this._removeIcon(),g=!0,a.title&&(p.title=a.title),p.tagName==="IMG"&&(p.alt=a.alt||"")),pe(p,c),a.keyboard&&(p.tabIndex="0",p.setAttribute("role","button")),this._icon=p,a.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&we(p,"focus",this._panOnFocus,this);var T=a.icon.createShadow(this._shadow),k=!1;T!==this._shadow&&(this._removeShadow(),k=!0),T&&(pe(T,c),T.alt=""),this._shadow=T,a.opacity<1&&this._updateOpacity(),g&&this.getPane().appendChild(this._icon),this._initInteraction(),T&&k&&this.getPane(a.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Xe(this._icon,"focus",this._panOnFocus,this),ne(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ne(this._shadow),this._shadow=null},_setPos:function(a){this._icon&&Ke(this._icon,a),this._shadow&&Ke(this._shadow,a),this._zIndex=a.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(a){this._icon&&(this._icon.style.zIndex=this._zIndex+a)},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center).round();this._setPos(c)},_initInteraction:function(){if(this.options.interactive&&(pe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),C1)){var a=this.options.draggable;this.dragging&&(a=this.dragging.enabled(),this.dragging.disable()),this.dragging=new C1(this),a&&this.dragging.enable()}},setOpacity:function(a){return this.options.opacity=a,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var a=this.options.opacity;this._icon&&$t(this._icon,a),this._shadow&&$t(this._shadow,a)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var a=this._map;if(a){var c=this.options.icon.options,p=c.iconSize?V(c.iconSize):V(0,0),g=c.iconAnchor?V(c.iconAnchor):V(0,0);a.panInside(this._latlng,{paddingTopLeft:g,paddingBottomRight:p.subtract(g)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function PN(a,c){return new sf(a,c)}var Ii=mr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(a){this._renderer=a.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(a){return x(this,a),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&a&&Object.prototype.hasOwnProperty.call(a,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),lf=Ii.extend({options:{fill:!0,radius:10},initialize:function(a,c){x(this,c),this._latlng=ce(a),this._radius=this.options.radius},setLatLng:function(a){var c=this._latlng;return this._latlng=ce(a),this.redraw(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(a){return this.options.radius=this._radius=a,this.redraw()},getRadius:function(){return this._radius},setStyle:function(a){var c=a&&a.radius||this._radius;return Ii.prototype.setStyle.call(this,a),this.setRadius(c),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var a=this._radius,c=this._radiusY||a,p=this._clickTolerance(),g=[a+p,c+p];this._pxBounds=new te(this._point.subtract(g),this._point.add(g))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(a){return a.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ON(a,c){return new lf(a,c)}var xm=lf.extend({initialize:function(a,c,p){if(typeof c=="number"&&(c=i({},p,{radius:c})),x(this,c),this._latlng=ce(a),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(a){return this._mRadius=a,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var a=[this._radius,this._radiusY||this._radius];return new ae(this._map.layerPointToLatLng(this._point.subtract(a)),this._map.layerPointToLatLng(this._point.add(a)))},setStyle:Ii.prototype.setStyle,_project:function(){var a=this._latlng.lng,c=this._latlng.lat,p=this._map,g=p.options.crs;if(g.distance===ze.distance){var T=Math.PI/180,k=this._mRadius/ze.R/T,I=p.project([c+k,a]),F=p.project([c-k,a]),U=I.add(F).divideBy(2),ee=p.unproject(U).lat,se=Math.acos((Math.cos(k*T)-Math.sin(c*T)*Math.sin(ee*T))/(Math.cos(c*T)*Math.cos(ee*T)))/T;(isNaN(se)||se===0)&&(se=k/Math.cos(Math.PI/180*c)),this._point=U.subtract(p.getPixelOrigin()),this._radius=isNaN(se)?0:U.x-p.project([ee,a-se]).x,this._radiusY=U.y-I.y}else{var xe=g.unproject(g.project(this._latlng).subtract([this._mRadius,0]));this._point=p.latLngToLayerPoint(this._latlng),this._radius=this._point.x-p.latLngToLayerPoint(xe).x}this._updateBounds()}});function TN(a,c,p){return new xm(a,c,p)}var Jr=Ii.extend({options:{smoothFactor:1,noClip:!1},initialize:function(a,c){x(this,c),this._setLatLngs(a)},getLatLngs:function(){return this._latlngs},setLatLngs:function(a){return this._setLatLngs(a),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(a){for(var c=1/0,p=null,g=yl,T,k,I=0,F=this._parts.length;I<F;I++)for(var U=this._parts[I],ee=1,se=U.length;ee<se;ee++){T=U[ee-1],k=U[ee];var xe=g(a,T,k,!0);xe<c&&(c=xe,p=g(a,T,k))}return p&&(p.distance=Math.sqrt(c)),p},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return k1(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(a,c){return c=c||this._defaultShape(),a=ce(a),c.push(a),this._bounds.extend(a),this.redraw()},_setLatLngs:function(a){this._bounds=new ae,this._latlngs=this._convertLatLngs(a)},_defaultShape:function(){return Zn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(a){for(var c=[],p=Zn(a),g=0,T=a.length;g<T;g++)p?(c[g]=ce(a[g]),this._bounds.extend(c[g])):c[g]=this._convertLatLngs(a[g]);return c},_project:function(){var a=new te;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,a),this._bounds.isValid()&&a.isValid()&&(this._rawPxBounds=a,this._updateBounds())},_updateBounds:function(){var a=this._clickTolerance(),c=new $(a,a);this._rawPxBounds&&(this._pxBounds=new te([this._rawPxBounds.min.subtract(c),this._rawPxBounds.max.add(c)]))},_projectLatlngs:function(a,c,p){var g=a[0]instanceof he,T=a.length,k,I;if(g){for(I=[],k=0;k<T;k++)I[k]=this._map.latLngToLayerPoint(a[k]),p.extend(I[k]);c.push(I)}else for(k=0;k<T;k++)this._projectLatlngs(a[k],c,p)},_clipPoints:function(){var a=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(a))){if(this.options.noClip){this._parts=this._rings;return}var c=this._parts,p,g,T,k,I,F,U;for(p=0,T=0,k=this._rings.length;p<k;p++)for(U=this._rings[p],g=0,I=U.length;g<I-1;g++)F=A1(U[g],U[g+1],a,g,!0),F&&(c[T]=c[T]||[],c[T].push(F[0]),(F[1]!==U[g+1]||g===I-2)&&(c[T].push(F[1]),T++))}},_simplifyPoints:function(){for(var a=this._parts,c=this.options.smoothFactor,p=0,g=a.length;p<g;p++)a[p]=P1(a[p],c)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(a,c){var p,g,T,k,I,F,U=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(p=0,k=this._parts.length;p<k;p++)for(F=this._parts[p],g=0,I=F.length,T=I-1;g<I;T=g++)if(!(!c&&g===0)&&O1(a,F[T],F[g])<=U)return!0;return!1}});function AN(a,c){return new Jr(a,c)}Jr._flat=E1;var Sa=Jr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return S1(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(a){var c=Jr.prototype._convertLatLngs.call(this,a),p=c.length;return p>=2&&c[0]instanceof he&&c[0].equals(c[p-1])&&c.pop(),c},_setLatLngs:function(a){Jr.prototype._setLatLngs.call(this,a),Zn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Zn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,c=this.options.weight,p=new $(c,c);if(a=new te(a.min.subtract(p),a.max.add(p)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(a))){if(this.options.noClip){this._parts=this._rings;return}for(var g=0,T=this._rings.length,k;g<T;g++)k=w1(this._rings[g],a,!0),k.length&&this._parts.push(k)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(a){var c=!1,p,g,T,k,I,F,U,ee;if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(k=0,U=this._parts.length;k<U;k++)for(p=this._parts[k],I=0,ee=p.length,F=ee-1;I<ee;F=I++)g=p[I],T=p[F],g.y>a.y!=T.y>a.y&&a.x<(T.x-g.x)*(a.y-g.y)/(T.y-g.y)+g.x&&(c=!c);return c||Jr.prototype._containsPoint.call(this,a,!0)}});function EN(a,c){return new Sa(a,c)}var ei=Qr.extend({initialize:function(a,c){x(this,c),this._layers={},a&&this.addData(a)},addData:function(a){var c=w(a)?a:a.features,p,g,T;if(c){for(p=0,g=c.length;p<g;p++)T=c[p],(T.geometries||T.geometry||T.features||T.coordinates)&&this.addData(T);return this}var k=this.options;if(k.filter&&!k.filter(a))return this;var I=uf(a,k);return I?(I.feature=hf(a),I.defaultOptions=I.options,this.resetStyle(I),k.onEachFeature&&k.onEachFeature(a,I),this.addLayer(I)):this},resetStyle:function(a){return a===void 0?this.eachLayer(this.resetStyle,this):(a.options=i({},a.defaultOptions),this._setLayerStyle(a,this.options.style),this)},setStyle:function(a){return this.eachLayer(function(c){this._setLayerStyle(c,a)},this)},_setLayerStyle:function(a,c){a.setStyle&&(typeof c=="function"&&(c=c(a.feature)),a.setStyle(c))}});function uf(a,c){var p=a.type==="Feature"?a.geometry:a,g=p?p.coordinates:null,T=[],k=c&&c.pointToLayer,I=c&&c.coordsToLatLng||_m,F,U,ee,se;if(!g&&!p)return null;switch(p.type){case"Point":return F=I(g),j1(k,a,F,c);case"MultiPoint":for(ee=0,se=g.length;ee<se;ee++)F=I(g[ee]),T.push(j1(k,a,F,c));return new Qr(T);case"LineString":case"MultiLineString":return U=cf(g,p.type==="LineString"?0:1,I),new Jr(U,c);case"Polygon":case"MultiPolygon":return U=cf(g,p.type==="Polygon"?1:2,I),new Sa(U,c);case"GeometryCollection":for(ee=0,se=p.geometries.length;ee<se;ee++){var xe=uf({geometry:p.geometries[ee],type:"Feature",properties:a.properties},c);xe&&T.push(xe)}return new Qr(T);case"FeatureCollection":for(ee=0,se=p.features.length;ee<se;ee++){var Te=uf(p.features[ee],c);Te&&T.push(Te)}return new Qr(T);default:throw new Error("Invalid GeoJSON object.")}}function j1(a,c,p,g){return a?a(c,p):new sf(p,g&&g.markersInheritOptions&&g)}function _m(a){return new he(a[1],a[0],a[2])}function cf(a,c,p){for(var g=[],T=0,k=a.length,I;T<k;T++)I=c?cf(a[T],c-1,p):(p||_m)(a[T]),g.push(I);return g}function bm(a,c){return a=ce(a),a.alt!==void 0?[m(a.lng,c),m(a.lat,c),m(a.alt,c)]:[m(a.lng,c),m(a.lat,c)]}function ff(a,c,p,g){for(var T=[],k=0,I=a.length;k<I;k++)T.push(c?ff(a[k],Zn(a[k])?0:c-1,p,g):bm(a[k],g));return!c&&p&&T.length>0&&T.push(T[0].slice()),T}function Pa(a,c){return a.feature?i({},a.feature,{geometry:c}):hf(c)}function hf(a){return a.type==="Feature"||a.type==="FeatureCollection"?a:{type:"Feature",properties:{},geometry:a}}var wm={toGeoJSON:function(a){return Pa(this,{type:"Point",coordinates:bm(this.getLatLng(),a)})}};sf.include(wm),xm.include(wm),lf.include(wm),Jr.include({toGeoJSON:function(a){var c=!Zn(this._latlngs),p=ff(this._latlngs,c?1:0,!1,a);return Pa(this,{type:(c?"Multi":"")+"LineString",coordinates:p})}}),Sa.include({toGeoJSON:function(a){var c=!Zn(this._latlngs),p=c&&!Zn(this._latlngs[0]),g=ff(this._latlngs,p?2:c?1:0,!0,a);return c||(g=[g]),Pa(this,{type:(p?"Multi":"")+"Polygon",coordinates:g})}}),ba.include({toMultiPoint:function(a){var c=[];return this.eachLayer(function(p){c.push(p.toGeoJSON(a).geometry.coordinates)}),Pa(this,{type:"MultiPoint",coordinates:c})},toGeoJSON:function(a){var c=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(c==="MultiPoint")return this.toMultiPoint(a);var p=c==="GeometryCollection",g=[];return this.eachLayer(function(T){if(T.toGeoJSON){var k=T.toGeoJSON(a);if(p)g.push(k.geometry);else{var I=hf(k);I.type==="FeatureCollection"?g.push.apply(g,I.features):g.push(I)}}}),p?Pa(this,{geometries:g,type:"GeometryCollection"}):{type:"FeatureCollection",features:g}}});function $1(a,c){return new ei(a,c)}var kN=$1,df=mr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(a,c,p){this._url=a,this._bounds=fe(c),x(this,p)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(pe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ne(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(a){return this.options.opacity=a,this._image&&this._updateOpacity(),this},setStyle:function(a){return a.opacity&&this.setOpacity(a.opacity),this},bringToFront:function(){return this._map&&ot(this._image),this},bringToBack:function(){return this._map&&sn(this._image),this},setUrl:function(a){return this._url=a,this._image&&(this._image.src=a),this},setBounds:function(a){return this._bounds=fe(a),this._map&&this._reset(),this},getEvents:function(){var a={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var a=this._url.tagName==="IMG",c=this._image=a?this._url:Ce("img");if(pe(c,"leaflet-image-layer"),this._zoomAnimated&&pe(c,"leaflet-zoom-animated"),this.options.className&&pe(c,this.options.className),c.onselectstart=h,c.onmousemove=h,c.onload=s(this.fire,this,"load"),c.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),a){this._url=c.src;return}c.src=this._url,c.alt=this.options.alt},_animateZoom:function(a){var c=this._map.getZoomScale(a.zoom),p=this._map._latLngBoundsToNewLayerBounds(this._bounds,a.zoom,a.center).min;vn(this._image,p,c)},_reset:function(){var a=this._image,c=new te(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),p=c.getSize();Ke(a,c.min),a.style.width=p.x+"px",a.style.height=p.y+"px"},_updateOpacity:function(){$t(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var a=this.options.errorOverlayUrl;a&&this._url!==a&&(this._url=a,this._image.src=a)},getCenter:function(){return this._bounds.getCenter()}}),MN=function(a,c,p){return new df(a,c,p)},N1=df.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var a=this._url.tagName==="VIDEO",c=this._image=a?this._url:Ce("video");if(pe(c,"leaflet-image-layer"),this._zoomAnimated&&pe(c,"leaflet-zoom-animated"),this.options.className&&pe(c,this.options.className),c.onselectstart=h,c.onmousemove=h,c.onloadeddata=s(this.fire,this,"load"),a){for(var p=c.getElementsByTagName("source"),g=[],T=0;T<p.length;T++)g.push(p[T].src);this._url=p.length>0?g:[c.src];return}w(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(c.style,"objectFit")&&(c.style.objectFit="fill"),c.autoplay=!!this.options.autoplay,c.loop=!!this.options.loop,c.muted=!!this.options.muted,c.playsInline=!!this.options.playsInline;for(var k=0;k<this._url.length;k++){var I=Ce("source");I.src=this._url[k],c.appendChild(I)}}});function CN(a,c,p){return new N1(a,c,p)}var L1=df.extend({_initImage:function(){var a=this._image=this._url;pe(a,"leaflet-image-layer"),this._zoomAnimated&&pe(a,"leaflet-zoom-animated"),this.options.className&&pe(a,this.options.className),a.onselectstart=h,a.onmousemove=h}});function jN(a,c,p){return new L1(a,c,p)}var Nr=mr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(a,c){a&&(a instanceof he||w(a))?(this._latlng=ce(a),x(this,c)):(x(this,a),this._source=c),this.options.content&&(this._content=this.options.content)},openOn:function(a){return a=arguments.length?a:this._source._map,a.hasLayer(this)||a.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(a){return this._map?this.close():(arguments.length?this._source=a:a=this._source,this._prepareOpen(),this.openOn(a._map)),this},onAdd:function(a){this._zoomAnimated=a._zoomAnimated,this._container||this._initLayout(),a._fadeAnimated&&$t(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),a._fadeAnimated&&$t(this._container,1),this.bringToFront(),this.options.interactive&&(pe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(a){a._fadeAnimated?($t(this._container,0),this._removeTimeout=setTimeout(s(ne,void 0,this._container),200)):ne(this._container),this.options.interactive&&(Ae(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(a){return this._latlng=ce(a),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(a){return this._content=a,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var a={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ot(this._container),this},bringToBack:function(){return this._map&&sn(this._container),this},_prepareOpen:function(a){var c=this._source;if(!c._map)return!1;if(c instanceof Qr){c=null;var p=this._source._layers;for(var g in p)if(p[g]._map){c=p[g];break}if(!c)return!1;this._source=c}if(!a)if(c.getCenter)a=c.getCenter();else if(c.getLatLng)a=c.getLatLng();else if(c.getBounds)a=c.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(a),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var a=this._contentNode,c=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof c=="string")a.innerHTML=c;else{for(;a.hasChildNodes();)a.removeChild(a.firstChild);a.appendChild(c)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var a=this._map.latLngToLayerPoint(this._latlng),c=V(this.options.offset),p=this._getAnchor();this._zoomAnimated?Ke(this._container,a.add(p)):c=c.add(a).add(p);var g=this._containerBottom=-c.y,T=this._containerLeft=-Math.round(this._containerWidth/2)+c.x;this._container.style.bottom=g+"px",this._container.style.left=T+"px"}},_getAnchor:function(){return[0,0]}});je.include({_initOverlay:function(a,c,p,g){var T=c;return T instanceof a||(T=new a(g).setContent(c)),p&&T.setLatLng(p),T}}),mr.include({_initOverlay:function(a,c,p,g){var T=p;return T instanceof a?(x(T,g),T._source=this):(T=c&&!g?c:new a(g,this),T.setContent(p)),T}});var pf=Nr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(a){return a=arguments.length?a:this._source._map,!a.hasLayer(this)&&a._popup&&a._popup.options.autoClose&&a.removeLayer(a._popup),a._popup=this,Nr.prototype.openOn.call(this,a)},onAdd:function(a){Nr.prototype.onAdd.call(this,a),a.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ii||this._source.on("preclick",Oo))},onRemove:function(a){Nr.prototype.onRemove.call(this,a),a.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ii||this._source.off("preclick",Oo))},getEvents:function(){var a=Nr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(a.preclick=this.close),this.options.keepInView&&(a.moveend=this._adjustPan),a},_initLayout:function(){var a="leaflet-popup",c=this._container=Ce("div",a+" "+(this.options.className||"")+" leaflet-zoom-animated"),p=this._wrapper=Ce("div",a+"-content-wrapper",c);if(this._contentNode=Ce("div",a+"-content",p),vl(c),fm(this._contentNode),we(c,"contextmenu",Oo),this._tipContainer=Ce("div",a+"-tip-container",c),this._tip=Ce("div",a+"-tip",this._tipContainer),this.options.closeButton){var g=this._closeButton=Ce("a",a+"-close-button",c);g.setAttribute("role","button"),g.setAttribute("aria-label","Close popup"),g.href="#close",g.innerHTML='<span aria-hidden="true">×</span>',we(g,"click",function(T){Bt(T),this.close()},this)}},_updateLayout:function(){var a=this._contentNode,c=a.style;c.width="",c.whiteSpace="nowrap";var p=a.offsetWidth;p=Math.min(p,this.options.maxWidth),p=Math.max(p,this.options.minWidth),c.width=p+1+"px",c.whiteSpace="",c.height="";var g=a.offsetHeight,T=this.options.maxHeight,k="leaflet-popup-scrolled";T&&g>T?(c.height=T+"px",pe(a,k)):Ae(a,k),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),p=this._getAnchor();Ke(this._container,c.add(p))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var a=this._map,c=parseInt(ji(this._container,"marginBottom"),10)||0,p=this._container.offsetHeight+c,g=this._containerWidth,T=new $(this._containerLeft,-p-this._containerBottom);T._add(dr(this._container));var k=a.layerPointToContainerPoint(T),I=V(this.options.autoPanPadding),F=V(this.options.autoPanPaddingTopLeft||I),U=V(this.options.autoPanPaddingBottomRight||I),ee=a.getSize(),se=0,xe=0;k.x+g+U.x>ee.x&&(se=k.x+g-ee.x+U.x),k.x-se-F.x<0&&(se=k.x-F.x),k.y+p+U.y>ee.y&&(xe=k.y+p-ee.y+U.y),k.y-xe-F.y<0&&(xe=k.y-F.y),(se||xe)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([se,xe]))}},_getAnchor:function(){return V(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),$N=function(a,c){return new pf(a,c)};je.mergeOptions({closePopupOnClick:!0}),je.include({openPopup:function(a,c,p){return this._initOverlay(pf,a,c,p).openOn(this),this},closePopup:function(a){return a=arguments.length?a:this._popup,a&&a.close(),this}}),mr.include({bindPopup:function(a,c){return this._popup=this._initOverlay(pf,this._popup,a,c),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(a){return this._popup&&(this instanceof Qr||(this._popup._source=this),this._popup._prepareOpen(a||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(a){return this._popup&&this._popup.setContent(a),this},getPopup:function(){return this._popup},_openPopup:function(a){if(!(!this._popup||!this._map)){To(a);var c=a.layer||a.target;if(this._popup._source===c&&!(c instanceof Ii)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(a.latlng);return}this._popup._source=c,this.openPopup(a.latlng)}},_movePopup:function(a){this._popup.setLatLng(a.latlng)},_onKeyPress:function(a){a.originalEvent.keyCode===13&&this._openPopup(a)}});var mf=Nr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){Nr.prototype.onAdd.call(this,a),this.setOpacity(this.options.opacity),a.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(a){Nr.prototype.onRemove.call(this,a),a.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var a=Nr.prototype.getEvents.call(this);return this.options.permanent||(a.preclick=this.close),a},_initLayout:function(){var a="leaflet-tooltip",c=a+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ce("div",c),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var c,p,g=this._map,T=this._container,k=g.latLngToContainerPoint(g.getCenter()),I=g.layerPointToContainerPoint(a),F=this.options.direction,U=T.offsetWidth,ee=T.offsetHeight,se=V(this.options.offset),xe=this._getAnchor();F==="top"?(c=U/2,p=ee):F==="bottom"?(c=U/2,p=0):F==="center"?(c=U/2,p=ee/2):F==="right"?(c=0,p=ee/2):F==="left"?(c=U,p=ee/2):I.x<k.x?(F="right",c=0,p=ee/2):(F="left",c=U+(se.x+xe.x)*2,p=ee/2),a=a.subtract(V(c,p,!0)).add(se).add(xe),Ae(T,"leaflet-tooltip-right"),Ae(T,"leaflet-tooltip-left"),Ae(T,"leaflet-tooltip-top"),Ae(T,"leaflet-tooltip-bottom"),pe(T,"leaflet-tooltip-"+F),Ke(T,a)},_updatePosition:function(){var a=this._map.latLngToLayerPoint(this._latlng);this._setPosition(a)},setOpacity:function(a){this.options.opacity=a,this._container&&$t(this._container,a)},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center);this._setPosition(c)},_getAnchor:function(){return V(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),NN=function(a,c){return new mf(a,c)};je.include({openTooltip:function(a,c,p){return this._initOverlay(mf,a,c,p).openOn(this),this},closeTooltip:function(a){return a.close(),this}}),mr.include({bindTooltip:function(a,c){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(mf,this._tooltip,a,c),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(a){if(!(!a&&this._tooltipHandlersAdded)){var c=a?"off":"on",p={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?p.add=this._openTooltip:(p.mouseover=this._openTooltip,p.mouseout=this.closeTooltip,p.click=this._openTooltip,this._map?this._addFocusListeners():p.add=this._addFocusListeners),this._tooltip.options.sticky&&(p.mousemove=this._moveTooltip),this[c](p),this._tooltipHandlersAdded=!a}},openTooltip:function(a){return this._tooltip&&(this instanceof Qr||(this._tooltip._source=this),this._tooltip._prepareOpen(a)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(a){return this._tooltip&&this._tooltip.setContent(a),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(a){var c=typeof a.getElement=="function"&&a.getElement();c&&(we(c,"focus",function(){this._tooltip._source=a,this.openTooltip()},this),we(c,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(a){var c=typeof a.getElement=="function"&&a.getElement();c&&c.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(a){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var c=this;this._map.once("moveend",function(){c._openOnceFlag=!1,c._openTooltip(a)});return}this._tooltip._source=a.layer||a.target,this.openTooltip(this._tooltip.options.sticky?a.latlng:void 0)}},_moveTooltip:function(a){var c=a.latlng,p,g;this._tooltip.options.sticky&&a.originalEvent&&(p=this._map.mouseEventToContainerPoint(a.originalEvent),g=this._map.containerPointToLayerPoint(p),c=this._map.layerPointToLatLng(g)),this._tooltip.setLatLng(c)}});var I1=wa.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(a){var c=a&&a.tagName==="DIV"?a:document.createElement("div"),p=this.options;if(p.html instanceof Element?(lt(c),c.appendChild(p.html)):c.innerHTML=p.html!==!1?p.html:"",p.bgPos){var g=V(p.bgPos);c.style.backgroundPosition=-g.x+"px "+-g.y+"px"}return this._setIconStyles(c,"icon"),c},createShadow:function(){return null}});function LN(a){return new I1(a)}wa.Default=xl;var _l=mr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:de.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(a){x(this,a)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(a){a._addZoomLimit(this)},onRemove:function(a){this._removeAllTiles(),ne(this._container),a._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ot(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(sn(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(a){return this.options.opacity=a,this._updateOpacity(),this},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var a=this._clampZoom(this._map.getZoom());a!==this._tileZoom&&(this._tileZoom=a,this._updateLevels()),this._update()}return this},getEvents:function(){var a={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=f(this._onMoveEnd,this.options.updateInterval,this)),a.move=this._onMove),this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},createTile:function(){return document.createElement("div")},getTileSize:function(){var a=this.options.tileSize;return a instanceof $?a:new $(a,a)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(a){for(var c=this.getPane().children,p=-a(-1/0,1/0),g=0,T=c.length,k;g<T;g++)k=c[g].style.zIndex,c[g]!==this._container&&k&&(p=a(p,+k));isFinite(p)&&(this.options.zIndex=p+a(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!de.ielt9){$t(this._container,this.options.opacity);var a=+new Date,c=!1,p=!1;for(var g in this._tiles){var T=this._tiles[g];if(!(!T.current||!T.loaded)){var k=Math.min(1,(a-T.loaded)/200);$t(T.el,k),k<1?c=!0:(T.active?p=!0:this._onOpaqueTile(T),T.active=!0)}}p&&!this._noPrune&&this._pruneTiles(),c&&(R(this._fadeFrame),this._fadeFrame=z(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=Ce("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var a=this._tileZoom,c=this.options.maxZoom;if(a!==void 0){for(var p in this._levels)p=Number(p),this._levels[p].el.children.length||p===a?(this._levels[p].el.style.zIndex=c-Math.abs(a-p),this._onUpdateLevel(p)):(ne(this._levels[p].el),this._removeTilesAtZoom(p),this._onRemoveLevel(p),delete this._levels[p]);var g=this._levels[a],T=this._map;return g||(g=this._levels[a]={},g.el=Ce("div","leaflet-tile-container leaflet-zoom-animated",this._container),g.el.style.zIndex=c,g.origin=T.project(T.unproject(T.getPixelOrigin()),a).round(),g.zoom=a,this._setZoomTransform(g,T.getCenter(),T.getZoom()),h(g.el.offsetWidth),this._onCreateLevel(g)),this._level=g,g}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var a,c,p=this._map.getZoom();if(p>this.options.maxZoom||p<this.options.minZoom){this._removeAllTiles();return}for(a in this._tiles)c=this._tiles[a],c.retain=c.current;for(a in this._tiles)if(c=this._tiles[a],c.current&&!c.active){var g=c.coords;this._retainParent(g.x,g.y,g.z,g.z-5)||this._retainChildren(g.x,g.y,g.z,g.z+2)}for(a in this._tiles)this._tiles[a].retain||this._removeTile(a)}},_removeTilesAtZoom:function(a){for(var c in this._tiles)this._tiles[c].coords.z===a&&this._removeTile(c)},_removeAllTiles:function(){for(var a in this._tiles)this._removeTile(a)},_invalidateAll:function(){for(var a in this._levels)ne(this._levels[a].el),this._onRemoveLevel(Number(a)),delete this._levels[a];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(a,c,p,g){var T=Math.floor(a/2),k=Math.floor(c/2),I=p-1,F=new $(+T,+k);F.z=+I;var U=this._tileCoordsToKey(F),ee=this._tiles[U];return ee&&ee.active?(ee.retain=!0,!0):(ee&&ee.loaded&&(ee.retain=!0),I>g?this._retainParent(T,k,I,g):!1)},_retainChildren:function(a,c,p,g){for(var T=2*a;T<2*a+2;T++)for(var k=2*c;k<2*c+2;k++){var I=new $(T,k);I.z=p+1;var F=this._tileCoordsToKey(I),U=this._tiles[F];if(U&&U.active){U.retain=!0;continue}else U&&U.loaded&&(U.retain=!0);p+1<g&&this._retainChildren(T,k,p+1,g)}},_resetView:function(a){var c=a&&(a.pinch||a.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),c,c)},_animateZoom:function(a){this._setView(a.center,a.zoom,!0,a.noUpdate)},_clampZoom:function(a){var c=this.options;return c.minNativeZoom!==void 0&&a<c.minNativeZoom?c.minNativeZoom:c.maxNativeZoom!==void 0&&c.maxNativeZoom<a?c.maxNativeZoom:a},_setView:function(a,c,p,g){var T=Math.round(c);this.options.maxZoom!==void 0&&T>this.options.maxZoom||this.options.minZoom!==void 0&&T<this.options.minZoom?T=void 0:T=this._clampZoom(T);var k=this.options.updateWhenZooming&&T!==this._tileZoom;(!g||k)&&(this._tileZoom=T,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),T!==void 0&&this._update(a),p||this._pruneTiles(),this._noPrune=!!p),this._setZoomTransforms(a,c)},_setZoomTransforms:function(a,c){for(var p in this._levels)this._setZoomTransform(this._levels[p],a,c)},_setZoomTransform:function(a,c,p){var g=this._map.getZoomScale(p,a.zoom),T=a.origin.multiplyBy(g).subtract(this._map._getNewPixelOrigin(c,p)).round();de.any3d?vn(a.el,T,g):Ke(a.el,T)},_resetGrid:function(){var a=this._map,c=a.options.crs,p=this._tileSize=this.getTileSize(),g=this._tileZoom,T=this._map.getPixelWorldBounds(this._tileZoom);T&&(this._globalTileRange=this._pxBoundsToTileRange(T)),this._wrapX=c.wrapLng&&!this.options.noWrap&&[Math.floor(a.project([0,c.wrapLng[0]],g).x/p.x),Math.ceil(a.project([0,c.wrapLng[1]],g).x/p.y)],this._wrapY=c.wrapLat&&!this.options.noWrap&&[Math.floor(a.project([c.wrapLat[0],0],g).y/p.x),Math.ceil(a.project([c.wrapLat[1],0],g).y/p.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(a){var c=this._map,p=c._animatingZoom?Math.max(c._animateToZoom,c.getZoom()):c.getZoom(),g=c.getZoomScale(p,this._tileZoom),T=c.project(a,this._tileZoom).floor(),k=c.getSize().divideBy(g*2);return new te(T.subtract(k),T.add(k))},_update:function(a){var c=this._map;if(c){var p=this._clampZoom(c.getZoom());if(a===void 0&&(a=c.getCenter()),this._tileZoom!==void 0){var g=this._getTiledPixelBounds(a),T=this._pxBoundsToTileRange(g),k=T.getCenter(),I=[],F=this.options.keepBuffer,U=new te(T.getBottomLeft().subtract([F,-F]),T.getTopRight().add([F,-F]));if(!(isFinite(T.min.x)&&isFinite(T.min.y)&&isFinite(T.max.x)&&isFinite(T.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var ee in this._tiles){var se=this._tiles[ee].coords;(se.z!==this._tileZoom||!U.contains(new $(se.x,se.y)))&&(this._tiles[ee].current=!1)}if(Math.abs(p-this._tileZoom)>1){this._setView(a,p);return}for(var xe=T.min.y;xe<=T.max.y;xe++)for(var Te=T.min.x;Te<=T.max.x;Te++){var ln=new $(Te,xe);if(ln.z=this._tileZoom,!!this._isValidTile(ln)){var Nt=this._tiles[this._tileCoordsToKey(ln)];Nt?Nt.current=!0:I.push(ln)}}if(I.sort(function(gn,Ta){return gn.distanceTo(k)-Ta.distanceTo(k)}),I.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Gn=document.createDocumentFragment();for(Te=0;Te<I.length;Te++)this._addTile(I[Te],Gn);this._level.el.appendChild(Gn)}}}},_isValidTile:function(a){var c=this._map.options.crs;if(!c.infinite){var p=this._globalTileRange;if(!c.wrapLng&&(a.x<p.min.x||a.x>p.max.x)||!c.wrapLat&&(a.y<p.min.y||a.y>p.max.y))return!1}if(!this.options.bounds)return!0;var g=this._tileCoordsToBounds(a);return fe(this.options.bounds).overlaps(g)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToNwSe:function(a){var c=this._map,p=this.getTileSize(),g=a.scaleBy(p),T=g.add(p),k=c.unproject(g,a.z),I=c.unproject(T,a.z);return[k,I]},_tileCoordsToBounds:function(a){var c=this._tileCoordsToNwSe(a),p=new ae(c[0],c[1]);return this.options.noWrap||(p=this._map.wrapLatLngBounds(p)),p},_tileCoordsToKey:function(a){return a.x+":"+a.y+":"+a.z},_keyToTileCoords:function(a){var c=a.split(":"),p=new $(+c[0],+c[1]);return p.z=+c[2],p},_removeTile:function(a){var c=this._tiles[a];c&&(ne(c.el),delete this._tiles[a],this.fire("tileunload",{tile:c.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){pe(a,"leaflet-tile");var c=this.getTileSize();a.style.width=c.x+"px",a.style.height=c.y+"px",a.onselectstart=h,a.onmousemove=h,de.ielt9&&this.options.opacity<1&&$t(a,this.options.opacity)},_addTile:function(a,c){var p=this._getTilePos(a),g=this._tileCoordsToKey(a),T=this.createTile(this._wrapCoords(a),s(this._tileReady,this,a));this._initTile(T),this.createTile.length<2&&z(s(this._tileReady,this,a,null,T)),Ke(T,p),this._tiles[g]={el:T,coords:a,current:!0},c.appendChild(T),this.fire("tileloadstart",{tile:T,coords:a})},_tileReady:function(a,c,p){c&&this.fire("tileerror",{error:c,tile:p,coords:a});var g=this._tileCoordsToKey(a);p=this._tiles[g],p&&(p.loaded=+new Date,this._map._fadeAnimated?($t(p.el,0),R(this._fadeFrame),this._fadeFrame=z(this._updateOpacity,this)):(p.active=!0,this._pruneTiles()),c||(pe(p.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:p.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),de.ielt9||!this._map._fadeAnimated?z(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var c=new $(this._wrapX?d(a.x,this._wrapX):a.x,this._wrapY?d(a.y,this._wrapY):a.y);return c.z=a.z,c},_pxBoundsToTileRange:function(a){var c=this.getTileSize();return new te(a.min.unscaleBy(c).floor(),a.max.unscaleBy(c).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}});function IN(a){return new _l(a)}var Oa=_l.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(a,c){this._url=a,c=x(this,c),c.detectRetina&&de.retina&&c.maxZoom>0?(c.tileSize=Math.floor(c.tileSize/2),c.zoomReverse?(c.zoomOffset--,c.minZoom=Math.min(c.maxZoom,c.minZoom+1)):(c.zoomOffset++,c.maxZoom=Math.max(c.minZoom,c.maxZoom-1)),c.minZoom=Math.max(0,c.minZoom)):c.zoomReverse?c.minZoom=Math.min(c.maxZoom,c.minZoom):c.maxZoom=Math.max(c.minZoom,c.maxZoom),typeof c.subdomains=="string"&&(c.subdomains=c.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(a,c){return this._url===a&&c===void 0&&(c=!0),this._url=a,c||this.redraw(),this},createTile:function(a,c){var p=document.createElement("img");return we(p,"load",s(this._tileOnLoad,this,c,p)),we(p,"error",s(this._tileOnError,this,c,p)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(p.referrerPolicy=this.options.referrerPolicy),p.alt="",p.src=this.getTileUrl(a),p},getTileUrl:function(a){var c={r:de.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var p=this._globalTileRange.max.y-a.y;this.options.tms&&(c.y=p),c["-y"]=p}return _(this._url,i(c,this.options))},_tileOnLoad:function(a,c){de.ielt9?setTimeout(s(a,this,null,c),0):a(null,c)},_tileOnError:function(a,c,p){var g=this.options.errorTileUrl;g&&c.getAttribute("src")!==g&&(c.src=g),a(p,c)},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom,c=this.options.maxZoom,p=this.options.zoomReverse,g=this.options.zoomOffset;return p&&(a=c-a),a+g},_getSubdomain:function(a){var c=Math.abs(a.x+a.y)%this.options.subdomains.length;return this.options.subdomains[c]},_abortLoading:function(){var a,c;for(a in this._tiles)if(this._tiles[a].coords.z!==this._tileZoom&&(c=this._tiles[a].el,c.onload=h,c.onerror=h,!c.complete)){c.src=P;var p=this._tiles[a].coords;ne(c),delete this._tiles[a],this.fire("tileabort",{tile:c,coords:p})}},_removeTile:function(a){var c=this._tiles[a];if(c)return c.el.setAttribute("src",P),_l.prototype._removeTile.call(this,a)},_tileReady:function(a,c,p){if(!(!this._map||p&&p.getAttribute("src")===P))return _l.prototype._tileReady.call(this,a,c,p)}});function D1(a,c){return new Oa(a,c)}var R1=Oa.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,c){this._url=a;var p=i({},this.defaultWmsParams);for(var g in c)g in this.options||(p[g]=c[g]);c=x(this,c);var T=c.detectRetina&&de.retina?2:1,k=this.getTileSize();p.width=k.x*T,p.height=k.y*T,this.wmsParams=p},onAdd:function(a){this._crs=this.options.crs||a.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var c=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[c]=this._crs.code,Oa.prototype.onAdd.call(this,a)},getTileUrl:function(a){var c=this._tileCoordsToNwSe(a),p=this._crs,g=Q(p.project(c[0]),p.project(c[1])),T=g.min,k=g.max,I=(this._wmsVersion>=1.3&&this._crs===M1?[T.y,T.x,k.y,k.x]:[T.x,T.y,k.x,k.y]).join(","),F=Oa.prototype.getTileUrl.call(this,a);return F+S(this.wmsParams,F,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+I},setParams:function(a,c){return i(this.wmsParams,a),c||this.redraw(),this}});function DN(a,c){return new R1(a,c)}Oa.WMS=R1,D1.wms=DN;var ti=mr.extend({options:{padding:.1},initialize:function(a){x(this,a),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),pe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(a.zoomanim=this._onAnimZoom),a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,c){var p=this._map.getZoomScale(c,this._zoom),g=this._map.getSize().multiplyBy(.5+this.options.padding),T=this._map.project(this._center,c),k=g.multiplyBy(-p).add(T).subtract(this._map._getNewPixelOrigin(a,c));de.any3d?vn(this._container,k,p):Ke(this._container,k)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var a in this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,c=this._map.getSize(),p=this._map.containerPointToLayerPoint(c.multiplyBy(-a)).round();this._bounds=new te(p,p.add(c.multiplyBy(1+a*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),z1=ti.extend({options:{tolerance:0},getEvents:function(){var a=ti.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ti.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");we(a,"mousemove",this._onMouseMove,this),we(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),we(a,"mouseout",this._handleMouseOut,this),a._leaflet_disable_events=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){R(this._redrawRequest),delete this._ctx,ne(this._container),Xe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var a;this._redrawBounds=null;for(var c in this._layers)a=this._layers[c],a._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ti.prototype._update.call(this);var a=this._bounds,c=this._container,p=a.getSize(),g=de.retina?2:1;Ke(c,a.min),c.width=g*p.x,c.height=g*p.y,c.style.width=p.x+"px",c.style.height=p.y+"px",de.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){ti.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a),this._layers[u(a)]=a;var c=a._order={layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=c),this._drawLast=c,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var c=a._order,p=c.next,g=c.prev;p?p.prev=g:this._drawLast=g,g?g.next=p:this._drawFirst=p,delete a._order,delete this._layers[u(a)],this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a),a._project(),a._update(),this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a),this._requestRedraw(a)},_updateDashArray:function(a){if(typeof a.options.dashArray=="string"){var c=a.options.dashArray.split(/[, ]+/),p=[],g,T;for(T=0;T<c.length;T++){if(g=Number(c[T]),isNaN(g))return;p.push(g)}a.options._dashArray=p}else a.options._dashArray=a.options.dashArray},_requestRedraw:function(a){this._map&&(this._extendRedrawBounds(a),this._redrawRequest=this._redrawRequest||z(this._redraw,this))},_extendRedrawBounds:function(a){if(a._pxBounds){var c=(a.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new te,this._redrawBounds.extend(a._pxBounds.min.subtract([c,c])),this._redrawBounds.extend(a._pxBounds.max.add([c,c]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var a=this._redrawBounds;if(a){var c=a.getSize();this._ctx.clearRect(a.min.x,a.min.y,c.x,c.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var a,c=this._redrawBounds;if(this._ctx.save(),c){var p=c.getSize();this._ctx.beginPath(),this._ctx.rect(c.min.x,c.min.y,p.x,p.y),this._ctx.clip()}this._drawing=!0;for(var g=this._drawFirst;g;g=g.next)a=g.layer,(!c||a._pxBounds&&a._pxBounds.intersects(c))&&a._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(a,c){if(this._drawing){var p,g,T,k,I=a._parts,F=I.length,U=this._ctx;if(F){for(U.beginPath(),p=0;p<F;p++){for(g=0,T=I[p].length;g<T;g++)k=I[p][g],U[g?"lineTo":"moveTo"](k.x,k.y);c&&U.closePath()}this._fillStroke(U,a)}}},_updateCircle:function(a){if(!(!this._drawing||a._empty())){var c=a._point,p=this._ctx,g=Math.max(Math.round(a._radius),1),T=(Math.max(Math.round(a._radiusY),1)||g)/g;T!==1&&(p.save(),p.scale(1,T)),p.beginPath(),p.arc(c.x,c.y/T,g,0,Math.PI*2,!1),T!==1&&p.restore(),this._fillStroke(p,a)}},_fillStroke:function(a,c){var p=c.options;p.fill&&(a.globalAlpha=p.fillOpacity,a.fillStyle=p.fillColor||p.color,a.fill(p.fillRule||"evenodd")),p.stroke&&p.weight!==0&&(a.setLineDash&&a.setLineDash(c.options&&c.options._dashArray||[]),a.globalAlpha=p.opacity,a.lineWidth=p.weight,a.strokeStyle=p.color,a.lineCap=p.lineCap,a.lineJoin=p.lineJoin,a.stroke())},_onClick:function(a){for(var c=this._map.mouseEventToLayerPoint(a),p,g,T=this._drawFirst;T;T=T.next)p=T.layer,p.options.interactive&&p._containsPoint(c)&&(!(a.type==="click"||a.type==="preclick")||!this._map._draggableMoved(p))&&(g=p);this._fireEvent(g?[g]:!1,a)},_onMouseMove:function(a){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var c=this._map.mouseEventToLayerPoint(a);this._handleMouseHover(a,c)}},_handleMouseOut:function(a){var c=this._hoveredLayer;c&&(Ae(this._container,"leaflet-interactive"),this._fireEvent([c],a,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(a,c){if(!this._mouseHoverThrottled){for(var p,g,T=this._drawFirst;T;T=T.next)p=T.layer,p.options.interactive&&p._containsPoint(c)&&(g=p);g!==this._hoveredLayer&&(this._handleMouseOut(a),g&&(pe(this._container,"leaflet-interactive"),this._fireEvent([g],a,"mouseover"),this._hoveredLayer=g)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,a),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(a,c,p){this._map._fireDOMEvent(c,p||c.type,a)},_bringToFront:function(a){var c=a._order;if(c){var p=c.next,g=c.prev;if(p)p.prev=g;else return;g?g.next=p:p&&(this._drawFirst=p),c.prev=this._drawLast,this._drawLast.next=c,c.next=null,this._drawLast=c,this._requestRedraw(a)}},_bringToBack:function(a){var c=a._order;if(c){var p=c.next,g=c.prev;if(g)g.next=p;else return;p?p.prev=g:g&&(this._drawLast=g),c.prev=null,c.next=this._drawFirst,this._drawFirst.prev=c,this._drawFirst=c,this._requestRedraw(a)}}});function B1(a){return de.canvas?new z1(a):null}var bl=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(a){return document.createElement("<lvml:"+a+' class="lvml">')}}catch{}return function(a){return document.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),RN={_initContainer:function(){this._container=Ce("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ti.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var c=a._container=bl("shape");pe(c,"leaflet-vml-shape "+(this.options.className||"")),c.coordsize="1 1",a._path=bl("path"),c.appendChild(a._path),this._updateStyle(a),this._layers[u(a)]=a},_addPath:function(a){var c=a._container;this._container.appendChild(c),a.options.interactive&&a.addInteractiveTarget(c)},_removePath:function(a){var c=a._container;ne(c),a.removeInteractiveTarget(c),delete this._layers[u(a)]},_updateStyle:function(a){var c=a._stroke,p=a._fill,g=a.options,T=a._container;T.stroked=!!g.stroke,T.filled=!!g.fill,g.stroke?(c||(c=a._stroke=bl("stroke")),T.appendChild(c),c.weight=g.weight+"px",c.color=g.color,c.opacity=g.opacity,g.dashArray?c.dashStyle=w(g.dashArray)?g.dashArray.join(" "):g.dashArray.replace(/( *, *)/g," "):c.dashStyle="",c.endcap=g.lineCap.replace("butt","flat"),c.joinstyle=g.lineJoin):c&&(T.removeChild(c),a._stroke=null),g.fill?(p||(p=a._fill=bl("fill")),T.appendChild(p),p.color=g.fillColor||g.color,p.opacity=g.fillOpacity):p&&(T.removeChild(p),a._fill=null)},_updateCircle:function(a){var c=a._point.round(),p=Math.round(a._radius),g=Math.round(a._radiusY||p);this._setPath(a,a._empty()?"M0 0":"AL "+c.x+","+c.y+" "+p+","+g+" 0,"+65535*360)},_setPath:function(a,c){a._path.v=c},_bringToFront:function(a){ot(a._container)},_bringToBack:function(a){sn(a._container)}},vf=de.vml?bl:Ue,wl=ti.extend({_initContainer:function(){this._container=vf("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=vf("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ne(this._container),Xe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ti.prototype._update.call(this);var a=this._bounds,c=a.getSize(),p=this._container;(!this._svgSize||!this._svgSize.equals(c))&&(this._svgSize=c,p.setAttribute("width",c.x),p.setAttribute("height",c.y)),Ke(p,a.min),p.setAttribute("viewBox",[a.min.x,a.min.y,c.x,c.y].join(" ")),this.fire("update")}},_initPath:function(a){var c=a._path=vf("path");a.options.className&&pe(c,a.options.className),a.options.interactive&&pe(c,"leaflet-interactive"),this._updateStyle(a),this._layers[u(a)]=a},_addPath:function(a){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(a._path),a.addInteractiveTarget(a._path)},_removePath:function(a){ne(a._path),a.removeInteractiveTarget(a._path),delete this._layers[u(a)]},_updatePath:function(a){a._project(),a._update()},_updateStyle:function(a){var c=a._path,p=a.options;c&&(p.stroke?(c.setAttribute("stroke",p.color),c.setAttribute("stroke-opacity",p.opacity),c.setAttribute("stroke-width",p.weight),c.setAttribute("stroke-linecap",p.lineCap),c.setAttribute("stroke-linejoin",p.lineJoin),p.dashArray?c.setAttribute("stroke-dasharray",p.dashArray):c.removeAttribute("stroke-dasharray"),p.dashOffset?c.setAttribute("stroke-dashoffset",p.dashOffset):c.removeAttribute("stroke-dashoffset")):c.setAttribute("stroke","none"),p.fill?(c.setAttribute("fill",p.fillColor||p.color),c.setAttribute("fill-opacity",p.fillOpacity),c.setAttribute("fill-rule",p.fillRule||"evenodd")):c.setAttribute("fill","none"))},_updatePoly:function(a,c){this._setPath(a,We(a._parts,c))},_updateCircle:function(a){var c=a._point,p=Math.max(Math.round(a._radius),1),g=Math.max(Math.round(a._radiusY),1)||p,T="a"+p+","+g+" 0 1,0 ",k=a._empty()?"M0 0":"M"+(c.x-p)+","+c.y+T+p*2+",0 "+T+-p*2+",0 ";this._setPath(a,k)},_setPath:function(a,c){a._path.setAttribute("d",c)},_bringToFront:function(a){ot(a._path)},_bringToBack:function(a){sn(a._path)}});de.vml&&wl.include(RN);function F1(a){return de.svg||de.vml?new wl(a):null}je.include({getRenderer:function(a){var c=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;return c||(c=this._renderer=this._createRenderer()),this.hasLayer(c)||this.addLayer(c),c},_getPaneRenderer:function(a){if(a==="overlayPane"||a===void 0)return!1;var c=this._paneRenderers[a];return c===void 0&&(c=this._createRenderer({pane:a}),this._paneRenderers[a]=c),c},_createRenderer:function(a){return this.options.preferCanvas&&B1(a)||F1(a)}});var V1=Sa.extend({initialize:function(a,c){Sa.prototype.initialize.call(this,this._boundsToLatLngs(a),c)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){return a=fe(a),[a.getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});function zN(a,c){return new V1(a,c)}wl.create=vf,wl.pointsToPath=We,ei.geometryToLayer=uf,ei.coordsToLatLng=_m,ei.coordsToLatLngs=cf,ei.latLngToCoords=bm,ei.latLngsToCoords=ff,ei.getFeature=Pa,ei.asFeature=hf,je.mergeOptions({boxZoom:!0});var U1=$r.extend({initialize:function(a){this._map=a,this._container=a._container,this._pane=a._panes.overlayPane,this._resetStateTimeout=0,a.on("unload",this._destroy,this)},addHooks:function(){we(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Xe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ne(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(a){if(!a.shiftKey||a.which!==1&&a.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),$i(),rm(),this._startPoint=this._map.mouseEventToContainerPoint(a),we(document,{contextmenu:To,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=Ce("div","leaflet-zoom-box",this._container),pe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var c=new te(this._point,this._startPoint),p=c.getSize();Ke(this._box,c.min),this._box.style.width=p.x+"px",this._box.style.height=p.y+"px"},_finish:function(){this._moved&&(ne(this._box),Ae(this._container,"leaflet-crosshair")),Yr(),im(),Xe(document,{contextmenu:To,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if(!(a.which!==1&&a.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var c=new ae(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(c).fire("boxzoomend",{boxZoomBounds:c})}},_onKeyDown:function(a){a.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});je.addInitHook("addHandler","boxZoom",U1),je.mergeOptions({doubleClickZoom:!0});var W1=$r.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var c=this._map,p=c.getZoom(),g=c.options.zoomDelta,T=a.originalEvent.shiftKey?p-g:p+g;c.options.doubleClickZoom==="center"?c.setZoom(T):c.setZoomAround(a.containerPoint,T)}});je.addInitHook("addHandler","doubleClickZoom",W1),je.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var H1=$r.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new Li(a._mapPane,a._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}pe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ae(this._map._container,"leaflet-grab"),Ae(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var a=this._map;if(a._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var c=fe(this._map.options.maxBounds);this._offsetLimit=Q(this._map.latLngToContainerPoint(c.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(c.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;a.fire("movestart").fire("dragstart"),a.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(a){if(this._map.options.inertia){var c=this._lastTime=+new Date,p=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(p),this._times.push(c),this._prunePositions(c)}this._map.fire("move",a).fire("drag",a)},_prunePositions:function(a){for(;this._positions.length>1&&a-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var a=this._map.getSize().divideBy(2),c=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=c.subtract(a).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(a,c){return a-(a-c)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var a=this._draggable._newPos.subtract(this._draggable._startPos),c=this._offsetLimit;a.x<c.min.x&&(a.x=this._viscousLimit(a.x,c.min.x)),a.y<c.min.y&&(a.y=this._viscousLimit(a.y,c.min.y)),a.x>c.max.x&&(a.x=this._viscousLimit(a.x,c.max.x)),a.y>c.max.y&&(a.y=this._viscousLimit(a.y,c.max.y)),this._draggable._newPos=this._draggable._startPos.add(a)}},_onPreDragWrap:function(){var a=this._worldWidth,c=Math.round(a/2),p=this._initialWorldOffset,g=this._draggable._newPos.x,T=(g-c+p)%a+c-p,k=(g+c+p)%a-c-p,I=Math.abs(T+p)<Math.abs(k+p)?T:k;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=I},_onDragEnd:function(a){var c=this._map,p=c.options,g=!p.inertia||a.noInertia||this._times.length<2;if(c.fire("dragend",a),g)c.fire("moveend");else{this._prunePositions(+new Date);var T=this._lastPos.subtract(this._positions[0]),k=(this._lastTime-this._times[0])/1e3,I=p.easeLinearity,F=T.multiplyBy(I/k),U=F.distanceTo([0,0]),ee=Math.min(p.inertiaMaxSpeed,U),se=F.multiplyBy(ee/U),xe=ee/(p.inertiaDeceleration*I),Te=se.multiplyBy(-xe/2).round();!Te.x&&!Te.y?c.fire("moveend"):(Te=c._limitOffset(Te,c.options.maxBounds),z(function(){c.panBy(Te,{duration:xe,easeLinearity:I,noMoveStart:!0,animate:!0})}))}}});je.addInitHook("addHandler","dragging",H1),je.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Z1=$r.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(a){this._map=a,this._setPanDelta(a.options.keyboardPanDelta),this._setZoomDelta(a.options.zoomDelta)},addHooks:function(){var a=this._map._container;a.tabIndex<=0&&(a.tabIndex="0"),we(a,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Xe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var a=document.body,c=document.documentElement,p=a.scrollTop||c.scrollTop,g=a.scrollLeft||c.scrollLeft;this._map._container.focus(),window.scrollTo(g,p)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(a){var c=this._panKeys={},p=this.keyCodes,g,T;for(g=0,T=p.left.length;g<T;g++)c[p.left[g]]=[-1*a,0];for(g=0,T=p.right.length;g<T;g++)c[p.right[g]]=[a,0];for(g=0,T=p.down.length;g<T;g++)c[p.down[g]]=[0,a];for(g=0,T=p.up.length;g<T;g++)c[p.up[g]]=[0,-1*a]},_setZoomDelta:function(a){var c=this._zoomKeys={},p=this.keyCodes,g,T;for(g=0,T=p.zoomIn.length;g<T;g++)c[p.zoomIn[g]]=a;for(g=0,T=p.zoomOut.length;g<T;g++)c[p.zoomOut[g]]=-a},_addHooks:function(){we(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Xe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(a){if(!(a.altKey||a.ctrlKey||a.metaKey)){var c=a.keyCode,p=this._map,g;if(c in this._panKeys){if(!p._panAnim||!p._panAnim._inProgress)if(g=this._panKeys[c],a.shiftKey&&(g=V(g).multiplyBy(3)),p.options.maxBounds&&(g=p._limitOffset(V(g),p.options.maxBounds)),p.options.worldCopyJump){var T=p.wrapLatLng(p.unproject(p.project(p.getCenter()).add(g)));p.panTo(T)}else p.panBy(g)}else if(c in this._zoomKeys)p.setZoom(p.getZoom()+(a.shiftKey?3:1)*this._zoomKeys[c]);else if(c===27&&p._popup&&p._popup.options.closeOnEscapeKey)p.closePopup();else return;To(a)}}});je.addInitHook("addHandler","keyboard",Z1),je.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var G1=$r.extend({addHooks:function(){we(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Xe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(a){var c=g1(a),p=this._map.options.wheelDebounceTime;this._delta+=c,this._lastMousePos=this._map.mouseEventToContainerPoint(a),this._startTime||(this._startTime=+new Date);var g=Math.max(p-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),g),To(a)},_performZoom:function(){var a=this._map,c=a.getZoom(),p=this._map.options.zoomSnap||0;a._stop();var g=this._delta/(this._map.options.wheelPxPerZoomLevel*4),T=4*Math.log(2/(1+Math.exp(-Math.abs(g))))/Math.LN2,k=p?Math.ceil(T/p)*p:T,I=a._limitZoom(c+(this._delta>0?k:-k))-c;this._delta=0,this._startTime=null,I&&(a.options.scrollWheelZoom==="center"?a.setZoom(c+I):a.setZoomAround(this._lastMousePos,c+I))}});je.addInitHook("addHandler","scrollWheelZoom",G1);var BN=600;je.mergeOptions({tapHold:de.touchNative&&de.safari&&de.mobile,tapTolerance:15});var K1=$r.extend({addHooks:function(){we(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Xe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(clearTimeout(this._holdTimeout),a.touches.length===1){var c=a.touches[0];this._startPos=this._newPos=new $(c.clientX,c.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(we(document,"touchend",Bt),we(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",c))},this),BN),we(document,"touchend touchcancel contextmenu",this._cancel,this),we(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){Xe(document,"touchend",Bt),Xe(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),Xe(document,"touchend touchcancel contextmenu",this._cancel,this),Xe(document,"touchmove",this._onMove,this)},_onMove:function(a){var c=a.touches[0];this._newPos=new $(c.clientX,c.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(a,c){var p=new MouseEvent(a,{bubbles:!0,cancelable:!0,view:window,screenX:c.screenX,screenY:c.screenY,clientX:c.clientX,clientY:c.clientY});p._simulated=!0,c.target.dispatchEvent(p)}});je.addInitHook("addHandler","tapHold",K1),je.mergeOptions({touchZoom:de.touch,bounceAtZoomLimits:!0});var q1=$r.extend({addHooks:function(){pe(this._map._container,"leaflet-touch-zoom"),we(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ae(this._map._container,"leaflet-touch-zoom"),Xe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var c=this._map;if(!(!a.touches||a.touches.length!==2||c._animatingZoom||this._zooming)){var p=c.mouseEventToContainerPoint(a.touches[0]),g=c.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=c.getSize()._divideBy(2),this._startLatLng=c.containerPointToLatLng(this._centerPoint),c.options.touchZoom!=="center"&&(this._pinchStartLatLng=c.containerPointToLatLng(p.add(g)._divideBy(2))),this._startDist=p.distanceTo(g),this._startZoom=c.getZoom(),this._moved=!1,this._zooming=!0,c._stop(),we(document,"touchmove",this._onTouchMove,this),we(document,"touchend touchcancel",this._onTouchEnd,this),Bt(a)}},_onTouchMove:function(a){if(!(!a.touches||a.touches.length!==2||!this._zooming)){var c=this._map,p=c.mouseEventToContainerPoint(a.touches[0]),g=c.mouseEventToContainerPoint(a.touches[1]),T=p.distanceTo(g)/this._startDist;if(this._zoom=c.getScaleZoom(T,this._startZoom),!c.options.bounceAtZoomLimits&&(this._zoom<c.getMinZoom()&&T<1||this._zoom>c.getMaxZoom()&&T>1)&&(this._zoom=c._limitZoom(this._zoom)),c.options.touchZoom==="center"){if(this._center=this._startLatLng,T===1)return}else{var k=p._add(g)._divideBy(2)._subtract(this._centerPoint);if(T===1&&k.x===0&&k.y===0)return;this._center=c.unproject(c.project(this._pinchStartLatLng,this._zoom).subtract(k),this._zoom)}this._moved||(c._moveStart(!0,!1),this._moved=!0),R(this._animRequest);var I=s(c._move,c,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=z(I,this,!0),Bt(a)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,R(this._animRequest),Xe(document,"touchmove",this._onTouchMove,this),Xe(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});je.addInitHook("addHandler","touchZoom",q1),je.BoxZoom=U1,je.DoubleClickZoom=W1,je.Drag=H1,je.Keyboard=Z1,je.ScrollWheelZoom=G1,je.TapHold=K1,je.TouchZoom=q1,n.Bounds=te,n.Browser=de,n.CRS=Ve,n.Canvas=z1,n.Circle=xm,n.CircleMarker=lf,n.Class=H,n.Control=pr,n.DivIcon=I1,n.DivOverlay=Nr,n.DomEvent=iN,n.DomUtil=nN,n.Draggable=Li,n.Evented=G,n.FeatureGroup=Qr,n.GeoJSON=ei,n.GridLayer=_l,n.Handler=$r,n.Icon=wa,n.ImageOverlay=df,n.LatLng=he,n.LatLngBounds=ae,n.Layer=mr,n.LayerGroup=ba,n.LineUtil=gN,n.Map=je,n.Marker=sf,n.Mixin=fN,n.Path=Ii,n.Point=$,n.PolyUtil=hN,n.Polygon=Sa,n.Polyline=Jr,n.Popup=pf,n.PosAnimation=y1,n.Projection=yN,n.Rectangle=V1,n.Renderer=ti,n.SVG=wl,n.SVGOverlay=L1,n.TileLayer=Oa,n.Tooltip=mf,n.Transformation=ye,n.Util=K,n.VideoOverlay=N1,n.bind=s,n.bounds=Q,n.canvas=B1,n.circle=TN,n.circleMarker=ON,n.control=gl,n.divIcon=LN,n.extend=i,n.featureGroup=wN,n.geoJSON=$1,n.geoJson=kN,n.gridLayer=IN,n.icon=SN,n.imageOverlay=MN,n.latLng=ce,n.latLngBounds=fe,n.layerGroup=bN,n.map=oN,n.marker=PN,n.point=V,n.polygon=EN,n.polyline=AN,n.popup=$N,n.rectangle=zN,n.setOptions=x,n.stamp=u,n.svg=F1,n.svgOverlay=jN,n.tileLayer=D1,n.tooltip=NN,n.transformation=J,n.version=r,n.videoOverlay=CN;var FN=window.L;n.noConflict=function(){return window.L=FN,this},window.L=n})})(Yg,Yg.exports);var Zs=Yg.exports;const zn=Ge(Zs);function gp(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function n_(e,t){return t==null?function(r,i){const o=j.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=j.useRef();o.current||(o.current=e(r,i));const s=j.useRef(r),{instance:l}=o.current;return j.useEffect(function(){s.current!==r&&(t(l,r,s.current),s.current=r)},[l,r,i]),o}}function _M(e,t){j.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function bM(e){return function(n){const r=e_(),i=e(t_(n,r),r);return M4(r.map,n.attribution),xM(i.current,n.eventHandlers),_M(i.current,r),i}}function L4(e,t){const n=j.useRef();j.useEffect(function(){if(t.pathOptions!==n.current){const i=t.pathOptions??{};e.instance.setStyle(i),n.current=i}},[e,t])}function I4(e){return function(n){const r=e_(),i=e(t_(n,r),r);return xM(i.current,n.eventHandlers),_M(i.current,r),L4(i.current,n),i}}function D4(e,t){const n=n_(e,t),r=bM(n);return yM(r)}function wM(e,t){const n=n_(e,t),r=I4(n);return yM(r)}function R4(e,t){const n=n_(e,t),r=bM(n);return N4(r)}function z4(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function r_(){return e_().map}function SM(e){const t=r_();return j.useEffect(function(){return t.on(e),function(){t.off(e)}},[t,e]),t}const ai=wM(function({center:t,children:n,...r},i){const o=new Zs.Circle(t,r);return gp(o,Jx(i,{overlayContainer:o}))},C4);function Qg(){return Qg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qg.apply(this,arguments)}function B4({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:s,style:l,whenReady:u,zoom:f,...d},h){const[m]=j.useState({className:i,id:o,style:l}),[v,b]=j.useState(null);j.useImperativeHandle(h,()=>(v==null?void 0:v.map)??null,[v]);const x=j.useCallback(y=>{if(y!==null&&v===null){const _=new Zs.Map(y,d);n!=null&&f!=null?_.setView(n,f):e!=null&&_.fitBounds(e,t),u!=null&&_.whenReady(u),b($4(_))}},[]);j.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const S=v?D.createElement(gM,{value:v},r):s??null;return D.createElement("div",Qg({},m,{ref:x}),S)}const PM=j.forwardRef(B4),Jn=D4(function({position:t,...n},r){const i=new Zs.Marker(t,n);return gp(i,Jx(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),Fo=wM(function({positions:t,...n},r){const i=new Zs.Polyline(t,n);return gp(i,Jx(r,{overlayContainer:i}))},function(t,n,r){n.positions!==r.positions&&t.setLatLngs(n.positions)}),Jg=R4(function({url:t,...n},r){const i=new Zs.TileLayer(t,t_(n,r));return gp(i,r)},function(t,n,r){z4(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),F4=new zn.DivIcon({html:'<div style="font-size: 20px; opacity: 0.8; filter: drop-shadow(0 0 5px black);">⛵</div>',className:"boat-marker",iconSize:[30,30],iconAnchor:[15,15]}),V4=e=>new zn.DivIcon({html:`<div style="font-size: 18px; color: ${e?"#ef4444":"rgba(255, 255, 255, 0.85)"}; filter: drop-shadow(0 0 3px black); transition: color 0.5s ease-in-out;">⚓︎</div>`,className:"anchor-marker",iconSize:[20,20],iconAnchor:[10,10]}),U4=new zn.DivIcon({html:'<div style="font-size: 18px; color: #ef4444; filter: drop-shadow(0 0 3px black);">⚓︎</div>',className:"nearby-anchor-marker animate-pulse",iconSize:[20,20],iconAnchor:[10,10]}),zf=(e,t)=>{if(e==null||isNaN(e))return"";const n=t?e>=0?"N":"S":e>=0?"E":"W",r=Math.abs(e),i=Math.floor(r),o=((r-i)*60).toFixed(4);return`${i}° ${o}'${n}`},W4=(e,t)=>{const n=Math.PI/180,r=-t/(111139*Math.cos(e.lat*n));return[e.lat,e.lon+r]},H4=(e,t,n,r)=>{if(e==="LOCKED"||e==="LEARNING"||e==="SETTLING"||e==="IN_PORTO")return 18;if(n>0&&n<=25&&(r||t<3.5)){if(t<1.5)return 18;if(t<3)return 17;if(t<5)return 15}return t>8?11:(t>5,13)},Z4=e=>e>=19?[{r:15,label:"15m"},{r:30,label:"30m"},{r:45,label:"45m"}]:e===18?[{r:25,label:"25m"},{r:50,label:"50m"},{r:75,label:"75m"}]:e===17?[{r:50,label:"50m"},{r:100,label:"100m"},{r:150,label:"150m"}]:e===16?[{r:100,label:"100m"},{r:200,label:"200m"},{r:300,label:"300m"}]:e===15?[{r:250,label:"250m"},{r:500,label:"500m"},{r:750,label:"750m"}]:e===14?[{r:500,label:"500m"},{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"}]:e===13?[{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"},{r:3704,label:"2 NM"}]:[{r:1852,label:"1 NM"},{r:3704,label:"2 NM"},{r:9260,label:"5 NM"}],G4=(e,t,n,r)=>{const i=Math.PI/180,o=r*463,s=e+o*Math.cos(n*i)/111139,l=t+o*Math.sin(n*i)/(111139*Math.cos(e*i));return[s,l]},K4=e=>{let t="rgba(225, 225, 225, 0.85)";return e==="RED"?t="#ef4444":e==="ORANGE"&&(t="#f97316"),new zn.DivIcon({html:`<div style="width: 8px; height: 8px; background-color: ${t}; border-radius: 50%; border: 1.2px solid rgba(0, 0, 0, 0.6); box-shadow: 0 0 3px rgba(0,0,0,0.5);"></div>`,className:"stationary-vessel-marker",iconSize:[8,8],iconAnchor:[4,4]})},q4=e=>e.risk==="RED"?"#ef4444":e.risk==="ORANGE"?"#f97316":e.color||"rgba(225, 225, 225, 0.85)",i_=e=>e>=18?{nameSize:"15px",subSize:"11px",emojiSize:"26px",markerSize:20,iconSize:[400,64],iconAnchor:[-14,32]}:e<=14?{nameSize:"10px",subSize:"7.5px",emojiSize:"16px",markerSize:12,iconSize:[280,42],iconAnchor:[-8,21]}:{nameSize:"13px",subSize:"9.5px",emojiSize:"22px",markerSize:16,iconSize:[350,56],iconAnchor:[-12,28]},X4=(e,t,n)=>{const r=i_(n);return new zn.DivIcon({html:`<div style="transform: rotate(${e}deg); font-size: ${r.markerSize}px; color: ${t}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;">▲</div>`,className:"moving-vessel-marker",iconSize:[r.markerSize,r.markerSize],iconAnchor:[r.markerSize/2,r.markerSize/2]})},OM=e=>{const t=parseInt(e)||0;return t===36?"⛵":t===37?"🛥️":t===30?"🐟":t>=50&&t<=59?"👨🏻✈️":t===31||t===32||t===52?"🚜":t>=60&&t<=69?"⛴️":t>=70&&t<=79?"📦":t>=80&&t<=89?"🛢️":t>=40&&t<=49?"🚤":""},Y4=(e,t,n,r,i,o,s)=>{let l="rgba(225, 225, 225, 0.85)",u="";if(t==="RED"?(l="#ef4444",u=`(${n} - ${r}m)`):t==="ORANGE"?(l="#f97316",u=`(${n} - ${r}m)`):r<=200&&(u=`${r}m`),i>=120){let h=Math.round(i/60);u=u?`${u} • RIT: ${h} MIN`:`RIT: ${h} MIN`}const f=OM(o),d=i_(s);return new zn.DivIcon({html:`
|
|
267
|
+
<div style="display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; text-transform: uppercase;">
|
|
268
|
+
${f?`<span style="font-size: ${d.emojiSize}; line-height: 1;">${f}</span>`:""}
|
|
269
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15;">
|
|
270
|
+
<span style="font-size: ${d.nameSize}; font-weight: 900; color: ${l}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;">${e}</span>
|
|
271
|
+
${u?`<span style="font-size: ${d.subSize}; font-weight: 900; color: ${l}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 1px;">(${u})</span>`:""}
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
`,className:"ais-vessel-label",iconSize:d.iconSize,iconAnchor:d.iconAnchor})},Q4=(e,t,n,r,i,o,s,l,u,f,d)=>{let h="";l>=120&&(h=` • RIT: ${Math.round(l/60)} MIN`);let m=`${t} kn${h}`,v="";if(o==="RED"){let S=s||"COLLISIONE!",y=r!==null&&r>=0?` in ${Math.round(r)}m`:"";v=i?`🚨 ${i}`:`🚨 ${S} - CPA: ${n}m${y}`}else i?v=`⚠️ ${i}`:r!==null&&r>=0&&(v=`CPA: ${n}m in ${Math.round(r)}m`);const b=OM(f),x=i_(d);return new zn.DivIcon({html:`
|
|
275
|
+
<div style="display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; text-transform: uppercase;">
|
|
276
|
+
${b?`<span style="font-size: ${x.emojiSize}; line-height: 1;">${b}</span>`:""}
|
|
277
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15;">
|
|
278
|
+
<span style="font-size: ${x.nameSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;">${e}</span>
|
|
279
|
+
<span style="font-size: ${x.subSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 1px;">${m}</span>
|
|
280
|
+
${v?`<span style="font-size: ${x.nameSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 2px;">${v}</span>`:""}
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
`,className:"ais-moving-label",iconSize:x.iconSize,iconAnchor:x.iconAnchor})},J4=e=>!e||e<50?"text-gray-300":e<195||e>255?"text-red-500":e<210||e>245?"text-orange-500":"text-gray-400",eB=(e,t,n,r)=>{const i=Math.abs(e),o=r&&n>180,s=o?t*n:1200,l=i/(s>100?s:1200);return l>.9?"text-red-500 animate-pulse font-black":l>.7?"text-orange-500 font-black":o&&i>1e3?"text-yellow-400 font-black":"text-gray-100"},TS=e=>e==null?"text-white":e<=-12?"text-blue-600":e<-4?"text-blue-400":e<4?"text-orange-500":e<=9?"text-white":e<=12?"text-orange-500":"text-red-500",tB=({coords:e,anchorCoords:t,isAnchored:n,trailSegments:r,autoFollow:i,setAutoFollow:o,isMapFull:s,setIsMapFull:l,smartZoom:u,onZoomChange:f})=>{const d=r_(),h=j.useRef(!1);SM({dragstart:()=>{o(!1)},zoomstart:y=>{y&&y.originalEvent&&(h.current=!0)},zoomend:()=>{f&&f(d.getZoom())}}),j.useEffect(()=>{f&&f(d.getZoom())},[d,f]);const m=y=>{h.current=!0;const _=d.getZoom(),w=y==="in"?_+1:_-1;d.setZoom(w),f&&f(w)},v=j.useMemo(()=>n&&t&&t[0]&&t[1]?t:e,[n,t,e]),[b,x]=v,S=j.useRef(!0);return j.useEffect(()=>{const y=setTimeout(()=>{if(d.invalidateSize(!1),i&&b!==0){const w=h.current?d.getZoom():u;d.setView([b,x],w,{animate:!1})}},60),_=setTimeout(()=>{d.invalidateSize(!1)},300);return()=>{clearTimeout(y),clearTimeout(_)}},[s,i,b,x,u,d]),j.useEffect(()=>{if(!i||b===0)return;const y=requestAnimationFrame(()=>{const _=d.getZoom();S.current?(h.current=!1,d.setView([b,x],u,{animate:!1}),S.current=!1,f&&f(u)):!h.current&&_!==u?d.flyTo([b,x],u,{duration:.8}):d.panTo([b,x],{animate:!0,duration:1,easeLinearity:.25})});return()=>cancelAnimationFrame(y)},[i,b,x,u,d,f]),O.jsxs(O.Fragment,{children:[r.map((y,_)=>O.jsx(Fo,{positions:y.positions,color:y.color,weight:y.weight,opacity:y.opacity,lineCap:"round",lineJoin:"round",smoothFactor:0},`trail-seg-${_}`)),O.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 flex flex-col gap-3 z-[1000]",children:[O.jsx("button",{onClick:()=>m("in"),className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:O.jsx(dM,{size:24})}),O.jsx("button",{onClick:()=>m("out"),className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:O.jsx(fM,{size:24})}),O.jsx("button",{onClick:()=>{h.current=!1,o(!0),d.flyTo(v,u,{duration:.6})},className:`w-12 h-12 rounded-2xl backdrop-blur-xl border transition-all flex items-center justify-center shadow-xl active:scale-90 ${i?"bg-cyan-500/40 border-cyan-400 shadow-[0_0_20px_rgba(6,182,212,0.3)]":"bg-black/50 border-white/20"}`,children:O.jsx(pM,{size:24,className:i?"text-white":"text-gray-300"})}),O.jsx("button",{onClick:y=>{y.stopPropagation(),l(_=>!_)},className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:s?O.jsx(m4,{size:20}):O.jsx(p4,{size:20})})]})]})},nB=({manager:e,onTabChange:t})=>{var H,W,Z,G,$,q,V,te,Q,ae,fe,he,ce,Ve,ze,oe,me,ye,J,Le,Se,Ue,We,it,Tt,pn,On,zt,Gt,Y,_e,be,Ie,_t,He,gt,on,an,Tn,Kt,An,Un,hr,mn,qr,_o,Mr,bo,wo,So,Rc,zc,Bc,Fc,Vc,ga,Uc,Wc,Hc,Zc,En,de,sl,ll,ul,cl,ya,fl,Xr,hl,Gc,Kc,qc,Xc,dl,Yc,Po,Qc,Jc,ef,tf,nf,xa,Ci,pl,ml,ji,Ce;const{data:n,toggleSwitch:r,apiUrl:i,error:o,isUpdating:s}=e,[l,u]=j.useState(!0),[f,d]=j.useState(!1),[h,m]=j.useState(!1),[v,b]=j.useState(!1),x=parseFloat((H=n==null?void 0:n.gps)==null?void 0:H.lat)||36.78,S=parseFloat((W=n==null?void 0:n.gps)==null?void 0:W.lon)||14.54,y=j.useMemo(()=>[x,S],[x,S]),_=((Z=n==null?void 0:n.anchor)==null?void 0:Z.sog)!==void 0?n.anchor.sog:((G=n==null?void 0:n.gps)==null?void 0:G.sog)||0,w=parseFloat((($=n==null?void 0:n.anchor)==null?void 0:$.depth)||((q=n==null?void 0:n.environment)==null?void 0:q.depth)||0),E=!!((V=n==null?void 0:n.anchor)!=null&&V.engine_on),P=((te=n==null?void 0:n.anchor)==null?void 0:te.status)||"MOVING",A=P!=="MOVING",M=j.useMemo(()=>H4(P,_,w,E),[P,_,w,E]),[C,N]=j.useState(M);j.useEffect(()=>{d(!!o)},[o]);const B=j.useMemo(()=>{var ne,lt;return A&&((ne=n==null?void 0:n.anchor)!=null&&ne.lat)&&((lt=n==null?void 0:n.anchor)!=null&<.lon)?{lat:parseFloat(n.anchor.lat),lon:parseFloat(n.anchor.lon)}:{lat:x,lon:S}},[A,(Q=n==null?void 0:n.anchor)==null?void 0:Q.lat,(ae=n==null?void 0:n.anchor)==null?void 0:ae.lon,x,S]),z=j.useMemo(()=>{var ne;return(((ne=n==null?void 0:n.environment)==null?void 0:ne.ais_targets)||[]).some(lt=>lt.risk==="RED"&<.riskMsg==="SOPRA TUA ANCORA!")},[(fe=n==null?void 0:n.environment)==null?void 0:fe.ais_targets]),R=j.useMemo(()=>{var lt;return(((lt=n==null?void 0:n.environment)==null?void 0:lt.ais_targets)||[]).filter(ot=>ot.risk==="RED"||ot.riskMsg==="SOPRA TUA ANCORA!"?!0:ot.dist<=1852)},[(he=n==null?void 0:n.environment)==null?void 0:he.ais_targets]),K=j.useMemo(()=>{var Cr,$t,Wn;const ne=((Cr=n==null?void 0:n.environment)==null?void 0:Cr.gps_history)||[],lt=(($t=n==null?void 0:n.anchor)==null?void 0:$t.engine_on)||!1,ot=((Wn=n==null?void 0:n.anchor)==null?void 0:Wn.status)==="MOVING"?lt?"engine":"sail":"anchor",sn={lat:y[0],lon:y[1],m:ot},bt=[...ne,sn];if(bt.length<2)return[];const pe=[];let Ae=[[parseFloat(bt[0].lat),parseFloat(bt[0].lon)]],kn=bt[0].m||"sail";for(let Hn=1;Hn<bt.length;Hn++){const vn=bt[Hn],Ke=parseFloat(vn.lat),dr=parseFloat(vn.lon),$i=vn.m||"sail";if($i===kn)Ae.push([Ke,dr]);else{Ae.push([Ke,dr]);let Yr="#38bdf8",_a=3,Ni=.85;kn==="engine"?Yr="#f97316":kn==="anchor"&&(Yr="rgba(220, 220, 220, 0.55)",_a=2,Ni=.6),pe.push({positions:Ae,color:Yr,weight:_a,opacity:Ni}),Ae=[[Ke,dr]],kn=$i}}if(Ae.length>=2){let Hn="#38bdf8",vn=3,Ke=.85;kn==="engine"?Hn="#f97316":kn==="anchor"&&(Hn="rgba(220, 220, 220, 0.55)",vn=2,Ke=.6),pe.push({positions:Ae,color:Hn,weight:vn,opacity:Ke})}return pe},[(ce=n==null?void 0:n.environment)==null?void 0:ce.gps_history,(Ve=n==null?void 0:n.anchor)==null?void 0:Ve.engine_on,(ze=n==null?void 0:n.anchor)==null?void 0:ze.status,y]);return O.jsxs("div",{className:"px-2 pt-5 pb-4 landscape:p-2 landscape:pt-4 space-y-2 landscape:space-y-2",children:[f&&O.jsx("div",{className:"fixed inset-0 z-[5000] flex items-center justify-center p-4 bg-black/80 backdrop-blur-md overflow-y-auto",children:O.jsxs("div",{className:"bg-[#1a1a1a] border border-white/10 p-6 landscape:p-5 rounded-[2rem] shadow-2xl max-w-sm w-full space-y-4 landscape:space-y-3 my-auto",children:[O.jsx("div",{className:"bg-red-500/20 w-12 h-12 rounded-full flex items-center justify-center mx-auto shadow-lg text-red-500",children:O.jsx(Jz,{size:24})}),O.jsxs("div",{className:"space-y-1 text-center",children:[O.jsx("h2",{className:"text-lg font-black uppercase tracking-tight text-white font-mono leading-none",children:"Sicurezza API"}),O.jsx("p",{className:"text-gray-400 text-[11px] font-bold px-2",children:"Autorizza il certificato per ricevere i dati."})]}),O.jsxs("div",{className:"space-y-2 pt-2",children:[O.jsx("button",{onClick:()=>window.open(`${i}`,"_blank"),className:"w-full bg-red-500 hover:bg-red-600 text-white font-black py-3.5 rounded-2xl transition-all shadow-lg active:scale-95 flex items-center justify-center gap-2 uppercase text-[11px] tracking-widest font-mono",children:"1. Autorizza SSL"}),O.jsx("p",{className:"text-[9px] text-gray-300 font-black uppercase tracking-tighter text-center",children:"Poi chiudi la scheda e torna qui"}),O.jsx("button",{onClick:()=>d(!1),className:"w-full bg-white/5 hover:bg-white/10 text-white font-black py-3 rounded-2xl border border-white/10 active:scale-95 uppercase text-[11px] tracking-widest font-mono",children:"2. Ho fatto"})]})]})}),O.jsxs("div",{className:"grid grid-cols-2 gap-2 landscape:gap-2",children:[O.jsx("div",{onClick:()=>t(1),className:"cursor-pointer active:scale-95 transition-transform",children:O.jsx(AS,{title:"BATTERIA",icon:O.jsx(n4,{className:"text-green-500"}),value:`${((me=(oe=n==null?void 0:n.power)==null?void 0:oe.soc)==null?void 0:me.toFixed(1))||"-"}%`,sub:O.jsxs("span",{className:((ye=n==null?void 0:n.power)==null?void 0:ye.dc_draw_w)>=0?"text-green-400":"text-gray-100",children:[((J=n==null?void 0:n.power)==null?void 0:J.dc_draw_w)>0?`+${Math.round(n.power.dc_draw_w)}`:Math.round(((Le=n==null?void 0:n.power)==null?void 0:Le.dc_draw_w)||0),O.jsx("span",{className:"opacity-40 ml-0.5 font-black uppercase text-[12px]",children:"w"})]})})}),O.jsx("div",{onClick:()=>t(4),className:"cursor-pointer active:scale-95 transition-transform",children:O.jsx(AS,{title:"BANCHINA",icon:O.jsx(g4,{className:(Se=n==null?void 0:n.power)!=null&&Se.shore_power?"text-green-500":"text-red-500"}),value:(Ue=n==null?void 0:n.power)!=null&&Ue.shore_power?"ON":"OFF",sub:O.jsxs("div",{className:"flex flex-col items-end leading-none",children:[O.jsxs("span",{className:eB((We=n==null?void 0:n.power)==null?void 0:We.ac_power_w,(it=n==null?void 0:n.switches)==null?void 0:it.shore_limit,(Tt=n==null?void 0:n.power)==null?void 0:Tt.shore_v,(pn=n==null?void 0:n.power)==null?void 0:pn.shore_power),children:[Math.round(((On=n==null?void 0:n.power)==null?void 0:On.ac_power_w)||0),O.jsx("span",{className:"opacity-40 ml-0.5 font-black uppercase text-[12px]",children:"w"})]}),((zt=n==null?void 0:n.power)==null?void 0:zt.shore_power)&&((Gt=n==null?void 0:n.power)==null?void 0:Gt.shore_v)>50&&O.jsxs("span",{className:`${J4((Y=n==null?void 0:n.power)==null?void 0:Y.shore_v)} text-[12px] font-bold mt-1.5`,children:["(",(be=(_e=n==null?void 0:n.power)==null?void 0:_e.shore_v)==null?void 0:be.toFixed(0),"V)"]})]})})})]}),O.jsxs("div",{className:"flex flex-col md:flex-row gap-2 landscape:gap-2 w-full",children:[O.jsxs("div",{className:"w-full md:w-1/2 grid grid-cols-4 md:grid-cols-2 gap-2",children:[O.jsx("div",{onClick:()=>t(2),className:"cursor-pointer active:scale-95 transition-transform h-full",children:O.jsx(Bf,{icon:O.jsx(mM,{size:18}),title:"POZZ.",val:(Ie=n==null?void 0:n.environment)==null?void 0:Ie.temp_pozzetto,color:"text-yellow-500"})}),O.jsx(Bf,{icon:O.jsx(S4,{size:18}),title:"QUADR.",val:(_t=n==null?void 0:n.environment)==null?void 0:_t.temp_quadrato,color:"text-orange-500"}),O.jsx(Bf,{icon:O.jsx(OS,{size:18}),title:"FRIGO",val:(He=n==null?void 0:n.environment)==null?void 0:He.temp_frigo,color:"text-cyan-400",valueColor:TS((gt=n==null?void 0:n.environment)==null?void 0:gt.temp_frigo)}),O.jsx(Bf,{icon:O.jsx(OS,{size:18}),title:"FREEZER",val:(on=n==null?void 0:n.environment)==null?void 0:on.temp_freezer,color:"text-blue-500",valueColor:TS((an=n==null?void 0:n.environment)==null?void 0:an.temp_freezer)})]}),O.jsxs("div",{className:`w-full md:w-1/2 bg-white/5 rounded-[2rem] flex flex-col divide-y divide-white/5 border border-white/10 overflow-hidden shadow-xl ${s?"opacity-60 grayscale-[0.5]":"opacity-100"}`,children:[O.jsx(cv,{icon:O.jsx(u4,{className:"text-blue-400"}),name:"Pompa Acqua",isOn:(Tn=n==null?void 0:n.switches)==null?void 0:Tn.pump_on,onToggle:ne=>r("pump",ne),disabled:s}),O.jsx(cv,{icon:O.jsx(c4,{className:"text-orange-400"}),name:"Boiler",isOn:(Kt=n==null?void 0:n.switches)==null?void 0:Kt.boiler_on,onToggle:ne=>r("boiler",ne),disabled:s}),O.jsx(cv,{icon:O.jsx(b4,{className:"text-purple-400"}),name:"Lavatrice",isOn:(An=n==null?void 0:n.switches)==null?void 0:An.washing_machine_on,onToggle:ne=>r("washer",ne),disabled:s})]})]}),O.jsxs("div",{className:"space-y-3 pb-24 flex flex-col items-center w-full",children:[!h&&O.jsxs("div",{className:"w-full bg-[#121212]/90 backdrop-blur-xl border border-white/10 p-4 rounded-[2rem] shadow-2xl flex flex-col gap-2.5 text-white",children:[O.jsxs("div",{className:"flex items-center gap-2 w-full",children:[O.jsx(e4,{size:14,className:`${((Un=n==null?void 0:n.anchor)==null?void 0:Un.status)==="LOCKED"?"text-cyan-400":((hr=n==null?void 0:n.anchor)==null?void 0:hr.status)==="DRAGGING"||((mn=n==null?void 0:n.anchor)==null?void 0:mn.status)==="DRIFTING"?"text-red-500 animate-pulse":((qr=n==null?void 0:n.anchor)==null?void 0:qr.status)==="LEARNING"||((_o=n==null?void 0:n.anchor)==null?void 0:_o.status)==="SETTLING"?"text-yellow-400 animate-spin-slow":"text-green-400"}`}),O.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest text-white font-mono leading-none whitespace-nowrap",children:((Mr=n==null?void 0:n.anchor)==null?void 0:Mr.description)||"In Navigazione"})]}),((bo=n==null?void 0:n.anchor)==null?void 0:bo.lat)&&O.jsx("div",{className:"w-full flex items-center justify-between mt-0.5 border-b border-white/5 pb-2",children:O.jsx("span",{onClick:ne=>{var sn,bt,pe,Ae,kn,Cr,$t;if(ne.stopPropagation(),!((sn=n==null?void 0:n.anchor)!=null&&sn.status))return;const ot=n.anchor.status==="LOCKED"||n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING"||n.anchor.status==="LEARNING"?`⛵ ROTEVISTA: [${n.anchor.description||n.anchor.status}] | D: ${((bt=n.anchor.boat_dist)==null?void 0:bt.toFixed(1))||"0.0"}m | ${zf(n.anchor.lat,!0)} ${zf(n.anchor.lon,!1)} | R: ${((pe=n.anchor.radius)==null?void 0:pe.toFixed(0))||"0"}m | Prec: ±${((Ae=n.anchor.std_dev)==null?void 0:Ae.toFixed(1))||"0.0"}m | Fondale: ${((kn=n.anchor.depth)==null?void 0:kn.toFixed(1))||"0.0"}m | Catena: ${((Cr=n.anchor.chain)==null?void 0:Cr.toFixed(0))||"0"}m | Volvo: ${n.anchor.engine_on?"ON":"OFF"} (${(($t=n.anchor.engine_v)==null?void 0:$t.toFixed(1))||"0.0"}V)${n.anchor.score>0?` [Score: ${n.anchor.score}/70]`:""}`:`⛵ ROTEVISTA: ${n.anchor.description||n.anchor.status}`;if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(ot).then(()=>{b(!0),setTimeout(()=>b(!1),2e3)});else{const Wn=document.createElement("textarea");Wn.value=ot,Wn.style.position="fixed",Wn.style.opacity="0",document.body.appendChild(Wn),Wn.focus(),Wn.select(),document.execCommand("copy"),b(!0),setTimeout(()=>b(!1),2e3),document.body.removeChild(Wn)}},className:`text-[10px] font-mono tracking-tight cursor-pointer transition-colors duration-200 uppercase font-black leading-none ${v?"text-green-400 animate-pulse":"text-gray-400 hover:text-white"}`,children:v?"✓ Copiato in appunti":`📌 Posiz: ${zf(n.anchor.lat,!0)} ${zf(n.anchor.lon,!1)}`})}),((wo=n==null?void 0:n.anchor)==null?void 0:wo.status)&&O.jsx("div",{className:`grid ${n.anchor.status==="MOVING"&&(!n.anchor.radius||n.anchor.radius===0)?"grid-cols-2 sm:grid-cols-4":"grid-cols-3"} gap-2 py-2.5 border-t border-b border-white/5 text-center bg-white/[0.01] rounded-2xl`,children:n.anchor.status==="MOVING"&&n.anchor.radius>0?O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Distanza"}),O.jsx("span",{className:"text-sm font-black font-mono mt-0.5 text-gray-500",children:"--"})]}),O.jsxs("div",{className:"flex flex-col border-l border-r border-white/5",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-cyan-400 tracking-wider",children:"Raggio Previsto"}),O.jsxs("span",{className:"text-sm font-black font-mono mt-0.5 text-cyan-400",children:[((So=n.anchor.radius)==null?void 0:So.toFixed(0))||"0",O.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),O.jsxs("div",{className:"flex flex-col font-mono",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Spazio in Baia"}),O.jsx("span",{className:`text-sm font-black mt-0.5 ${n.anchor.description&&n.anchor.description.includes("Ristretto")?"text-orange-400 animate-pulse":"text-green-400"}`,children:n.anchor.description&&n.anchor.description.includes("Ristretto")?"OCCUPATO":"LIBERO"})]})]}):n.anchor.status==="MOVING"?O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"flex flex-col font-mono items-center justify-center",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-cyan-400 tracking-wider",children:"Velocità (SOG)"}),O.jsxs("span",{className:"text-base font-black mt-0.5 text-cyan-400 leading-none",children:[(((Rc=n==null?void 0:n.anchor)==null?void 0:Rc.sog)!==void 0?n.anchor.sog:((zc=n==null?void 0:n.gps)==null?void 0:zc.sog)!==void 0?n.gps.sog:(Bc=n==null?void 0:n.gps)!=null&&Bc.speed?parseFloat(n.gps.speed)*1.94384:0).toFixed(1),O.jsx("span",{className:"text-[10px] font-bold ml-0.5",children:"kn"})]})]}),O.jsxs("div",{className:"flex flex-col font-mono items-center justify-center border-l border-white/5",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-300 tracking-wider",children:"Prua (HDG)"}),O.jsxs("span",{className:"text-base font-black text-white mt-0.5 leading-none",children:[Math.round(((Fc=n==null?void 0:n.environment)==null?void 0:Fc.heading)!==void 0?n.environment.heading:((Vc=n==null?void 0:n.gps)==null?void 0:Vc.cog)||0),"°"]})]})]}):O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Distanza"}),O.jsxs("span",{className:`text-sm font-black font-mono mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-500":"text-cyan-400"}`,children:[((ga=n.anchor.boat_dist)==null?void 0:ga.toFixed(1))||"0.0",O.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),O.jsxs("div",{className:"flex flex-col border-l border-r border-white/5",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Raggio Guardia"}),O.jsxs("span",{className:`text-sm font-black font-mono mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-500":"text-white"}`,children:[((Uc=n.anchor.radius)==null?void 0:Uc.toFixed(0))||"0",O.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),O.jsxs("div",{className:"flex flex-col font-mono",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:(Wc=n==null?void 0:n.trip)!=null&&Wc.anchor_time&&((Hc=n==null?void 0:n.trip)==null?void 0:Hc.anchor_time)!=="0m"?"Tempo Sosta":"Precisione"}),O.jsx("span",{className:`text-sm font-black mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-400":"text-cyan-400"}`,children:(Zc=n==null?void 0:n.trip)!=null&&Zc.anchor_time&&((En=n==null?void 0:n.trip)==null?void 0:En.anchor_time)!=="0m"?n.trip.anchor_time:n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"Calcolo...":n.anchor.std_dev>0?`±${n.anchor.std_dev.toFixed(1)}m`:"±0.0m"})]})]})}),O.jsxs("div",{className:"flex justify-between items-start w-full font-mono border-t border-white/5 pt-2 mt-0.5",children:[O.jsxs("div",{className:"flex items-start gap-4 flex-shrink-0",children:[O.jsxs("div",{className:"flex flex-col items-start leading-none",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Fondo"}),O.jsx("span",{className:"text-xs font-black text-white mt-1",children:((de=n==null?void 0:n.anchor)==null?void 0:de.depth)>0?`${n.anchor.depth.toFixed(1)}m`:"--"})]}),(((sl=n==null?void 0:n.anchor)==null?void 0:sl.chain)>0&&((ll=n==null?void 0:n.anchor)==null?void 0:ll.status)!=="MOVING"||((ul=n==null?void 0:n.anchor)==null?void 0:ul.status)==="MOVING"&&((cl=n==null?void 0:n.anchor)==null?void 0:cl.radius)>0&&((ya=n==null?void 0:n.anchor)==null?void 0:ya.chain)>0)&&O.jsxs("div",{className:"flex flex-col items-start leading-none border-l border-white/5 pl-3",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:((fl=n==null?void 0:n.anchor)==null?void 0:fl.status)==="MOVING"?"Suggerita":"Catena"}),O.jsxs("span",{className:"text-xs font-black text-white mt-1",children:[n.anchor.chain.toFixed(0),"m"]})]})]}),O.jsxs("div",{className:"flex flex-col items-end leading-none text-right pl-2 truncate flex-1",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:(Xr=n==null?void 0:n.anchor)!=null&&Xr.engine_on?"Motore":((hl=n==null?void 0:n.anchor)==null?void 0:hl.status)==="LEARNING"&&((Gc=n==null?void 0:n.anchor)!=null&&Gc.low_conf_reason)?"Nota":"Stato"}),O.jsx("div",{className:"mt-1",children:(Kc=n==null?void 0:n.anchor)!=null&&Kc.engine_on?O.jsxs("span",{className:"text-yellow-400 font-black text-xs whitespace-nowrap animate-pulse flex items-center gap-1",children:["⚡ Volvo: ",(qc=n.anchor.engine_v)==null?void 0:qc.toFixed(1),"V ",n.anchor.status!=="MOVING"&&n.anchor.score>0?`[${n.anchor.score}/70]`:""]}):((Xc=n==null?void 0:n.anchor)==null?void 0:Xc.status)==="LEARNING"&&((dl=n==null?void 0:n.anchor)!=null&&dl.low_conf_reason)?O.jsx("span",{className:"text-orange-400 font-bold text-[9.5px] tracking-tight whitespace-nowrap",children:n.anchor.low_conf_reason}):((Yc=n==null?void 0:n.anchor)==null?void 0:Yc.status)!=="MOVING"&&((Po=n==null?void 0:n.anchor)==null?void 0:Po.std_dev)>0?O.jsxs("span",{className:"text-gray-300 font-medium text-xs whitespace-nowrap",children:["Prec: ",O.jsxs("span",{className:"text-cyan-400 font-bold",children:["±",n.anchor.std_dev.toFixed(1),"m"]})]}):O.jsx("span",{className:"text-green-400 font-black text-xs uppercase whitespace-nowrap",children:"Ottima"})})]})]})]}),O.jsx("div",{className:`${h?"map-full-screen":"h-64 landscape:h-80 w-[88%] rounded-[2.5rem]"} overflow-hidden border border-white/10 shadow-2xl relative isolate transition-opacity duration-200`,children:O.jsxs(PM,{center:y,zoom:M,maxZoom:22,style:{height:"100%",width:"100%"},zoomControl:!1,attributionControl:!1,children:[O.jsx(Jg,{url:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",maxZoom:22,maxNativeZoom:18,errorTileUrl:""}),O.jsx(tB,{coords:y,anchorCoords:(Qc=n==null?void 0:n.anchor)!=null&&Qc.lat&&((Jc=n==null?void 0:n.anchor)!=null&&Jc.lon)?[parseFloat(n.anchor.lat),parseFloat(n.anchor.lon)]:null,isAnchored:A,trailSegments:K,autoFollow:l,setAutoFollow:u,isMapFull:h,setIsMapFull:m,smartZoom:M,onZoomChange:N}),((ef=n==null?void 0:n.anchor)==null?void 0:ef.lat)&&((tf=n==null?void 0:n.anchor)==null?void 0:tf.lon)&&n.anchor.radius>0&&n.anchor.status==="MOVING"&&O.jsx(ai,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius,pathOptions:{color:n.anchor.description&&n.anchor.description.includes("Ristretto")?"#f97316":"#22d3ee",fillColor:"#22d3ee",fillOpacity:.04,weight:1.5,dashArray:"4, 8",interactive:!1}}),((nf=n==null?void 0:n.anchor)==null?void 0:nf.lat)&&((xa=n==null?void 0:n.anchor)==null?void 0:xa.lon)&&n.anchor.radius>0&&(n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING")&&O.jsx(ai,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius,pathOptions:{color:"#f97316",fillOpacity:0,weight:1.5,dashArray:"6, 10",interactive:!1}}),((Ci=n==null?void 0:n.anchor)==null?void 0:Ci.lat)&&((pl=n==null?void 0:n.anchor)==null?void 0:pl.lon)&&n.anchor.radius>0&&(n.anchor.status==="LOCKED"||n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING")&&O.jsx(ai,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius+Math.max(15,n.anchor.radius*.3),pathOptions:{color:n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING"?"#ef4444":"#22d3ee",fillOpacity:0,weight:1.5,dashArray:"8, 12",interactive:!1}}),Z4(C).map(ne=>{const lt=W4(B,ne.r);return O.jsxs(D.Fragment,{children:[O.jsx(ai,{center:[B.lat,B.lon],radius:ne.r,pathOptions:{color:"#ffffff",weight:1,opacity:.55,fillOpacity:0,dashArray:"4, 12",interactive:!1}}),O.jsx(Jn,{position:lt,icon:new zn.DivIcon({html:`<div style="font-size: 8px; font-weight: 900; color: rgba(255, 255, 255, 0.90); font-family: monospace; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; white-space: nowrap; text-align: right; width: 100%;">${ne.label}</div>`,className:"range-label-marker",iconSize:[50,10],iconAnchor:[53,5]}),interactive:!1})]},`ring-${ne.r}`)}),R.map(ne=>{var pe;const lt=ne.isMoving!==void 0?ne.isMoving:!ne.isAnchored&&ne.sog>=.3,ot=q4(ne),sn=ne.risk==="RED"||ne.risk==="ORANGE",bt=ne.isTactical!==!1&&(ne.isTactical||sn||C>=15);return O.jsxs(D.Fragment,{children:[bt&&ne.trail&&ne.trail.length>=2&&O.jsx(Fo,{positions:ne.trail.map(Ae=>[Ae.lat,Ae.lon]),color:"#ffffff",weight:1.5,opacity:.4,dashArray:"2, 6",interactive:!1}),lt?O.jsxs(D.Fragment,{children:[bt&&O.jsx(Fo,{positions:[[ne.lat,ne.lon],G4(ne.lat,ne.lon,ne.cog,ne.sog)],pathOptions:{color:ot,weight:2.5,opacity:.8,dashArray:"6, 6"},interactive:!1}),O.jsx(Jn,{position:[ne.lat,ne.lon],icon:X4(ne.cog,ot,C),interactive:!1}),bt&&O.jsx(Jn,{position:[ne.lat,ne.lon],icon:Q4(ne.name,ne.sog,ne.cpa,ne.tcpa,ne.crossDir,ne.risk,ne.riskMsg,ne.age,ot,ne.type,C),interactive:!1})]}):O.jsxs(D.Fragment,{children:[O.jsx(Jn,{position:[ne.lat,ne.lon],icon:K4(ne.risk),interactive:!1}),bt&&O.jsx(Jn,{position:[ne.lat,ne.lon],icon:Y4(ne.name,ne.risk,ne.riskMsg,ne.dist,ne.age,ne.type,C),interactive:!1}),ne.risk==="RED"&&ne.riskMsg==="SOPRA SUA ANCORA!"&&ne.anchorLat&&ne.anchorLon&&O.jsxs(D.Fragment,{children:[O.jsx(ai,{center:[ne.anchorLat,ne.anchorLon],radius:((pe=n==null?void 0:n.anchor)==null?void 0:pe.radius)||15,pathOptions:{color:"#ef4444",weight:1,opacity:.5,fillColor:"#ef4444",fillOpacity:.05,dashArray:"6, 12",interactive:!1}}),O.jsx(Jn,{position:[ne.anchorLat,ne.anchorLon],icon:U4,zIndexOffset:400,interactive:!1})]})]})]},ne.id)}),((ml=n==null?void 0:n.anchor)==null?void 0:ml.lat)&&((ji=n==null?void 0:n.anchor)==null?void 0:ji.lon)&&n.anchor.status!=="MOVING"&&O.jsx(Jn,{position:[n.anchor.lat,n.anchor.lon],icon:V4(z),zIndexOffset:500}),O.jsx(Jn,{position:y,icon:F4,zIndexOffset:1e3})]})}),!h&&((Ce=n==null?void 0:n.trip)==null?void 0:Ce.total_nav_time)&&n.trip.total_nav_time!=="0m"&&(()=>{var pe,Ae;const ne=parseFloat((pe=n==null?void 0:n.trip)==null?void 0:pe.engine_nm)||0,lt=parseFloat((Ae=n==null?void 0:n.trip)==null?void 0:Ae.sail_nm)||0,ot=ne+lt,sn=ot>0?Math.round(ne/ot*100):0,bt=ot>0?Math.round(lt/ot*100):0;return O.jsxs("div",{className:"w-full bg-[#121212]/90 backdrop-blur-xl border border-white/10 p-4 rounded-[2rem] shadow-2xl flex flex-col gap-2 font-mono text-white",children:[O.jsx("span",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest border-b border-white/5 pb-1.5",children:"Statistiche Ultima Navigazione"}),O.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] leading-none",children:[O.jsxs("span",{className:"flex items-center gap-1 text-cyan-400 font-bold",children:[O.jsx("span",{className:"text-xs",children:"⛵"})," Vela"]}),O.jsx("span",{className:"text-white font-medium",children:n.trip.sail_time||"0m"}),O.jsx("span",{className:"text-cyan-400 font-bold text-right text-[10px]",children:n.trip.sail_nm||"0.00 NM"}),O.jsxs("span",{className:"text-gray-500 font-normal text-right text-[9px]",children:["(",bt,"%)"]})]}),O.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] leading-none",children:[O.jsxs("span",{className:"flex items-center gap-1 text-yellow-400 font-bold",children:[O.jsx("span",{className:"text-xs",children:"🚤"})," Motore"]}),O.jsx("span",{className:"text-white font-medium",children:n.trip.engine_time||"0m"}),O.jsx("span",{className:"text-yellow-400 font-bold text-right text-[10px]",children:n.trip.engine_nm||"0.00 NM"}),O.jsxs("span",{className:"text-gray-500 font-normal text-right text-[9px]",children:["(",sn,"%)"]})]}),O.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] border-t border-white/5 pt-2 leading-none",children:[O.jsxs("span",{className:"flex items-center gap-1 text-gray-400 font-bold",children:[O.jsx("span",{className:"text-xs",children:"⏱️"})," Totale"]}),O.jsx("span",{className:"text-gray-200 font-medium",children:n.trip.total_nav_time||"0m"}),O.jsx("span",{className:"text-white font-black text-right text-[11px]",children:n.trip.total_nm||"0.00 NM"}),O.jsx("span",{className:"text-right"})]})]})})()]})]})},AS=({icon:e,title:t,value:n,sub:r})=>O.jsxs("div",{className:"bg-white/5 p-5 rounded-[2rem] border border-white/10 flex flex-row items-center justify-between shadow-lg text-white group hover:bg-white/10 transition-colors h-full",children:[O.jsxs("div",{className:"flex flex-col",children:[O.jsxs("div",{className:"flex items-center gap-1 text-gray-300 text-[9px] font-black tracking-widest uppercase whitespace-nowrap",children:[e," ",t]}),O.jsx("div",{className:"text-3xl font-black mt-1 tracking-tighter",children:n})]}),O.jsx("div",{className:"text-[18px] text-gray-200 font-black uppercase tracking-tight text-right pl-2 leading-tight",children:r})]}),Bf=({icon:e,title:t,val:n,color:r,valueColor:i="text-white"})=>O.jsxs("div",{className:"bg-white/5 py-4 landscape:py-3 rounded-3xl border border-white/5 flex flex-col items-center gap-1 text-center shadow-md hover:bg-white/10 transition-colors h-full justify-center text-white",children:[O.jsx("div",{className:r,children:e}),O.jsx("div",{className:"text-[8px] font-black text-gray-300 uppercase tracking-tighter mt-1",children:t}),O.jsxs("div",{className:`text-lg font-black ${i}`,children:[(n==null?void 0:n.toFixed(1))||"-","°"]})]}),cv=({icon:e,name:t,isOn:n,onToggle:r,disabled:i})=>O.jsxs("div",{className:`flex flex-1 items-center justify-between p-5 landscape:p-4 bg-white/[0.02] text-white transition-all ${i?"pointer-events-none opacity-40":"hover:bg-white/5"}`,children:[O.jsxs("div",{className:"flex items-center gap-3",children:[D.cloneElement(e,{size:20,className:n?e.props.className:"text-gray-700 opacity-50"}),O.jsx("span",{className:"text-sm font-bold text-white tracking-tight uppercase",children:t})]}),O.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[O.jsx("input",{type:"checkbox",className:"sr-only peer",checked:n||!1,onChange:o=>r(o.target.checked),disabled:i}),O.jsx("div",{className:"w-11 h-6 bg-gray-800 rounded-full peer peer-checked:bg-cyan-500 after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-full shadow-inner"})]})]}),rB=(e,t="#38bdf8")=>new zn.DivIcon({html:`
|
|
284
|
+
<div style="transform: rotate(${e||0}deg); font-size: 22px; color: ${t}; filter: drop-shadow(0 0 5px rgba(0,0,0,0.9)); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;">
|
|
285
|
+
▲
|
|
286
|
+
</div>
|
|
287
|
+
`,className:"own-boat-ais-marker",iconSize:[26,26],iconAnchor:[13,13]}),iB=(e,t,n=14)=>{const i=hu(e.type).color,o=n<=13?6:n===14?8:10,s=n<=13?12:n===14?15:18,l=e.isMoving!==void 0?e.isMoving:!e.isAnchored&&e.sog>=.3,u=t?"border: 2px solid #22d3ee; box-shadow: 0 0 8px #22d3ee;":"border: 1px solid rgba(0,0,0,0.85);";return l?new zn.DivIcon({html:`
|
|
288
|
+
<div style="width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer;">
|
|
289
|
+
<span style="transform: rotate(${e.cog||0}deg); font-size: ${s}px; color: ${i}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; line-height: 1; display: inline-block;">
|
|
290
|
+
▲
|
|
291
|
+
</span>
|
|
292
|
+
</div>
|
|
293
|
+
`,className:"ais-target-moving",iconSize:[32,32],iconAnchor:[16,16]}):new zn.DivIcon({html:`
|
|
294
|
+
<div style="width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer;">
|
|
295
|
+
<div style="width: ${o}px; height: ${o}px; background-color: ${i}; border-radius: 50%; ${u}"></div>
|
|
296
|
+
</div>
|
|
297
|
+
`,className:"ais-target-stationary",iconSize:[32,32],iconAnchor:[16,16]})},ES=(e,t,n,r,i=15)=>{const o=Math.PI/180,s=r*1852*(i/60),l=e+s*Math.cos(n*o)/111139,u=t+s*Math.sin(n*o)/(111139*Math.cos(e*o));return[l,u]},hu=e=>{const t=parseInt(e)||0;return t===36?{emoji:"⛵",label:"Vela",color:"#d946ef"}:t===37?{emoji:"🛥️",label:"Yacht / Motore",color:"#d946ef"}:t===30?{emoji:"🐟",label:"Peschereccio",color:"#ea580c"}:t>=50&&t<=59?{emoji:"👨🏻✈️",label:"Pilota / Servizio",color:"#0284c7"}:t===31||t===32||t===52?{emoji:"🚜",label:"Rimorchiatore",color:"#0284c7"}:t>=60&&t<=69?{emoji:"⛴️",label:"Passeggeri",color:"#2563eb"}:t>=70&&t<=79?{emoji:"📦",label:"Cargo",color:"#16a34a"}:t>=80&&t<=89?{emoji:"🛢️",label:"Cisterna / Tanker",color:"#dc2626"}:t>=40&&t<=49?{emoji:"🚤",label:"Unità Veloce (HSC)",color:"#eab308"}:{emoji:"🚢",label:"Nave",color:"#94a3b8"}},oB=e=>e>=7.5?12:e>=3.5?14:e>=1.5?15:17,Ff=e=>{if(e==null||isNaN(e))return"--";const t=Math.round(e),n=e/1852;return t<500?`${t} m`:t<1852?`${t} m (${n.toFixed(1)} NM)`:`${n.toFixed(1)} NM (${(t/1e3).toFixed(1)} km)`},kS=e=>{if(e==null||isNaN(e))return"--";const t=Math.round(e);return t<1852?`${t}m`:`${(e/1852).toFixed(1)} NM`},MS=(e,t)=>{if(e==null||isNaN(e))return"";const n=t?e>=0?"N":"S":e>=0?"E":"W",r=Math.abs(e),i=Math.floor(r),o=((r-i)*60).toFixed(4);return`${i}° ${o}'${n}`},aB=e=>e>=19?[{r:15,label:"15m"},{r:30,label:"30m"},{r:45,label:"45m"}]:e===18?[{r:25,label:"25m"},{r:50,label:"50m"},{r:75,label:"75m"}]:e===17?[{r:50,label:"50m"},{r:100,label:"100m"},{r:150,label:"150m"}]:e===16?[{r:100,label:"100m"},{r:200,label:"200m"},{r:300,label:"300m"}]:e===15?[{r:250,label:"250m"},{r:500,label:"500m"},{r:750,label:"750m"}]:e===14?[{r:500,label:"500m"},{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"}]:e===13?[{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"},{r:3704,label:"2 NM"}]:[{r:1852,label:"1 NM"},{r:3704,label:"2 NM"},{r:9260,label:"5 NM"}],sB=(e,t)=>{const n=Math.PI/180,r=-t/(111139*Math.cos(e.lat*n));return[e.lat,e.lon+r]},lB=e=>{const t=e.risk==="RED",n=t?"#ef4444":"#f97316",r=hu(e.type),o=(e.isMoving!==void 0?e.isMoving:!e.isAnchored&&e.sog>=.3)?`${e.sog} kn • ${e.cog}°`:`ALL'ANCORA (${e.dist}m)`;let s="";if(t){const u=e.riskMsg||"COLLISIONE!",f=e.tcpa!==null&&e.tcpa!==void 0&&e.tcpa>=0?` in ${Math.round(e.tcpa)}m`:"",d=e.cpa!==null&&e.cpa!==void 0?` • CPA: ${e.cpa}m`:"";s=`🚨 ${u}${d}${f}`}else{const u=e.tcpa!==null&&e.tcpa!==void 0&&e.tcpa>=0?` in ${Math.round(e.tcpa)}m`:"";s=`⚠️ ${e.cpa!==null&&e.cpa!==void 0?`CPA: ${e.cpa}m`:`Dist: ${e.dist}m`}${u}`}const l="-1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000, 0 0 5px #000";return new zn.DivIcon({html:`
|
|
298
|
+
<div style="display: flex; flex-direction: row; align-items: flex-start; gap: 4px; white-space: nowrap; font-family: monospace; line-height: 1.15; pointer-events: none;">
|
|
299
|
+
<span style="font-size: 16px; line-height: 1; filter: drop-shadow(0 0 3px black);">${r.emoji}</span>
|
|
300
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
|
301
|
+
<span style="font-size: 12px; font-weight: 900; color: ${n}; text-shadow: ${l}; text-transform: uppercase;">${e.name||"Sconosciuto"}</span>
|
|
302
|
+
<span style="font-size: 9px; font-weight: 800; color: #ffffff; text-shadow: ${l}; margin-top: 1px;">${o}</span>
|
|
303
|
+
<span style="font-size: 10px; font-weight: 900; color: ${n}; text-shadow: ${l}; margin-top: 1.5px;">${s}</span>
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
`,className:"ais-threat-floating-label",iconSize:[280,48],iconAnchor:[-12,24]})},uB=({centerCoords:e,hasValidGps:t,autoCenter:n,setAutoCenter:r,smartZoom:i,flyTarget:o,isTargetSelected:s,cameraSnapshotRef:l,restoreSignal:u,onZoomChange:f,onBoundsChange:d})=>{const h=r_(),m=j.useRef(!1);j.useRef(!1);const v=j.useRef(!0),b=j.useCallback(()=>{f&&f(h.getZoom()),d&&d(h.getBounds().pad(.15))},[h,f,d]);SM({dragstart:()=>{h.stop(),r(!1)},zoomstart:y=>{y&&y.originalEvent&&(m.current=!0)},zoomend:b,moveend:b}),j.useEffect(()=>{b()},[b]);const x=j.useRef(null);j.useEffect(()=>{if(!n||e[0]===0||s)return;if(v.current&&t&&!o){h.setView(e,i,{animate:!1}),x.current=e,v.current=!1,b();return}const y=h.getZoom();if(!m.current&&y!==i){h.flyTo(e,i,{duration:.8}),x.current=e;return}x.current||(x.current=e);const _=(e[0]-x.current[0])*111139,w=(e[1]-x.current[1])*111139*Math.cos(e[0]*Math.PI/180),E=Math.sqrt(_*_+w*w),P=y>=16?25:y>=14?45:100;E>=P&&(h.panTo(e,{animate:!0,duration:.8,easeLinearity:.25}),x.current=e)},[n,e,t,i,s,h,b]),j.useEffect(()=>{if(o&&o.lat&&o.lon){const y=Math.max(h.getZoom(),15);h.flyTo([parseFloat(o.lat),parseFloat(o.lon)],y,{duration:.8})}},[o,h]),j.useEffect(()=>{if(u&&l.current){const y=l.current;h.flyTo(y.center,y.zoom,{duration:.7}),r(y.autoCenter),l.current=null}},[u,l,h,r]);const S=y=>{m.current=!0;const _=h.getZoom(),w=y==="in"?_+1:_-1;h.setZoom(w),f&&f(w)};return O.jsxs("div",{className:"absolute right-3 bottom-48 landscape:right-auto landscape:left-3 landscape:bottom-auto landscape:top-1/2 landscape:-translate-y-1/2 flex flex-col gap-2.5 z-[1000]",children:[O.jsx("button",{onClick:()=>S("in"),className:"w-11 h-11 landscape:w-10 landscape:h-10 rounded-2xl bg-[#161b22]/90 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white active:scale-95 shadow-2xl",children:O.jsx(dM,{size:20})}),O.jsx("button",{onClick:()=>S("out"),className:"w-11 h-11 landscape:w-10 landscape:h-10 rounded-2xl bg-[#161b22]/90 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white active:scale-95 shadow-2xl",children:O.jsx(fM,{size:20})}),O.jsx("button",{onClick:()=>{n?(m.current=!1,h.flyTo(e,i,{duration:.6})):(m.current=!0,r(!0),h.flyTo(e,h.getZoom(),{duration:.5}))},className:`w-11 h-11 landscape:w-10 landscape:h-10 rounded-2xl border transition-all flex items-center justify-center shadow-2xl active:scale-95 ${n?"bg-cyan-500/40 border-cyan-400 text-white shadow-[0_0_15px_rgba(6,182,212,0.4)]":"bg-[#161b22]/90 border-white/20 text-gray-400"}`,title:n?"Tocca per attivare Smart Zoom dinamico":"Tocca per centrare sulla barca",children:O.jsx(pM,{size:20})})]})},cB=()=>{try{const e=localStorage.getItem("rotevista_last_known_gps");if(e){const t=JSON.parse(e);if(t.lat&&t.lon)return[parseFloat(t.lat),parseFloat(t.lon)]}}catch{}return[37.96,23.48]},fB=({manager:e,isNightMode:t=!1,initialMmsi:n=null})=>{var he,ce,Ve,ze,oe,me,ye,J,Le,Se,Ue,We,it,Tt,pn,On,zt,Gt;const{data:r}=e,[i,o]=j.useState(!0),[s,l]=j.useState(null),[u,f]=j.useState(!1),[d,h]=j.useState(14),[m,v]=j.useState(null),[b,x]=j.useState(!1);j.useEffect(()=>{var Y,_e;(Y=r==null?void 0:r.gps)!=null&&Y.lat&&((_e=r==null?void 0:r.gps)!=null&&_e.lon)&&localStorage.setItem("rotevista_last_known_gps",JSON.stringify({lat:r.gps.lat,lon:r.gps.lon}))},[(he=r==null?void 0:r.gps)==null?void 0:he.lat,(ce=r==null?void 0:r.gps)==null?void 0:ce.lon]);const S=Y=>{if(Y)if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(Y).then(()=>{x(!0),setTimeout(()=>x(!1),2e3)});else{const _e=document.createElement("textarea");_e.value=Y,_e.style.position="fixed",_e.style.opacity="0",document.body.appendChild(_e),_e.focus(),_e.select(),document.execCommand("copy"),x(!0),setTimeout(()=>x(!1),2e3),document.body.removeChild(_e)}},y=j.useRef(null),_=j.useRef(!1),[w,E]=j.useState(0),[P,A]=j.useState(null),M=!!((Ve=r==null?void 0:r.gps)!=null&&Ve.lat&&((ze=r==null?void 0:r.gps)!=null&&ze.lon)),C=j.useMemo(()=>cB(),[]),N=parseFloat((oe=r==null?void 0:r.gps)==null?void 0:oe.lat)||C[0],B=parseFloat((me=r==null?void 0:r.gps)==null?void 0:me.lon)||C[1],z=j.useMemo(()=>[N,B],[N,B]),R=((ye=r==null?void 0:r.environment)==null?void 0:ye.heading)||((J=r==null?void 0:r.gps)==null?void 0:J.cog)||0,K=((Le=r==null?void 0:r.anchor)==null?void 0:Le.sog)!==void 0?r.anchor.sog:((Se=r==null?void 0:r.gps)==null?void 0:Se.sog)||0,H=j.useMemo(()=>oB(K),[K]),W=j.useMemo(()=>{var _e;return[...((_e=r==null?void 0:r.environment)==null?void 0:_e.ais_targets)||[]].sort((be,Ie)=>{const _t={RED:3,ORANGE:2,GREY:1},He=_t[be.risk]||1,gt=_t[Ie.risk]||1;if(He!==gt)return gt-He;const on=be.cpa!==null&&be.cpa!==void 0&&be.cpa>=0?be.cpa:be.dist,an=Ie.cpa!==null&&Ie.cpa!==void 0&&Ie.cpa>=0?Ie.cpa:Ie.dist;return on-an})},[(Ue=r==null?void 0:r.environment)==null?void 0:Ue.ais_targets]),Z=j.useMemo(()=>m?W.filter(Y=>Y.risk==="RED"||(s==null?void 0:s.id)===Y.id?!0:m.contains([Y.lat,Y.lon])):W,[W,m,s]),G=j.useMemo(()=>({id:"self",name:"ROTEVISTA",isOwnShip:!0,lat:z[0],lon:z[1],sog:K,cog:R}),[z,K,R]),$=j.useMemo(()=>s?s.isOwnShip?G:W.find(_e=>_e.id===s.id)||s:null,[s,W,G]),q=j.useMemo(()=>$&&!$.isOwnShip&&$.lat&&$.lon?{lat:$.lat,lon:$.lon}:{lat:z[0],lon:z[1]},[$,z]),V=j.useMemo(()=>{var on,an,Tn;const Y=((on=r==null?void 0:r.environment)==null?void 0:on.gps_history)||[],be=((an=r==null?void 0:r.anchor)==null?void 0:an.engine_on)||!1?"engine":"sail",Ie=Y.filter(Kt=>Kt.m!=="anchor");if(((Tn=r==null?void 0:r.anchor)==null?void 0:Tn.status)==="MOVING"&&Ie.push({lat:z[0],lon:z[1],m:be}),Ie.length<2)return[];const _t=[];let He=[[parseFloat(Ie[0].lat),parseFloat(Ie[0].lon)]],gt=Ie[0].m||"sail";for(let Kt=1;Kt<Ie.length;Kt++){const An=Ie[Kt],Un=parseFloat(An.lat),hr=parseFloat(An.lon),mn=An.m||"sail";if(mn===gt)He.push([Un,hr]);else{He.push([Un,hr]);const qr=gt==="engine"?"#f97316":t?"#38bdf8":"#0284c7";_t.push({positions:He,color:qr,weight:2.2,opacity:.85}),He=[[Un,hr]],gt=mn}}if(He.length>=2){const Kt=gt==="engine"?"#f97316":t?"#38bdf8":"#0284c7";_t.push({positions:He,color:Kt,weight:2.2,opacity:.85})}return _t},[(We=r==null?void 0:r.environment)==null?void 0:We.gps_history,(it=r==null?void 0:r.anchor)==null?void 0:it.engine_on,(Tt=r==null?void 0:r.anchor)==null?void 0:Tt.status,z,t]),te=Y=>{y.current||(y.current={center:z,zoom:14,autoCenter:i}),l(Y),A(Y),o(!1)},Q=Y=>{l(Y),A(null)},ae=()=>{l(null),A(null),y.current&&E(Y=>Y+1)},fe=()=>{l(null),A(null),f(!1),y.current&&E(Y=>Y+1)};return j.useEffect(()=>{if(!n||_.current||W.length===0)return;const Y=String(n).trim(),_e=W.find(be=>String(be.id||"").split(":").pop()===Y||String(be.id).includes(Y));if(_e&&_e.lat&&_e.lon){_.current=!0,o(!1),l(_e),A(_e);const be=new URL(window.location.href);be.searchParams.delete("mmsi"),window.history.replaceState({},"",be.toString())}},[n,W]),O.jsxs("div",{className:"relative w-full h-full overflow-hidden bg-[#0d1117] text-white",children:[O.jsx("div",{className:"absolute inset-0 z-0",children:O.jsxs(PM,{center:z,zoom:14,maxZoom:20,preferCanvas:!0,style:{height:"100%",width:"100%"},zoomControl:!1,attributionControl:!1,children:[O.jsx(Jg,{url:t?"https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x}":"https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",maxZoom:20,maxNativeZoom:16},t?"esri-dark":"esri-light"),O.jsx(Jg,{url:"https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",maxZoom:18,opacity:t?.85:.75}),V.map((Y,_e)=>O.jsx(Fo,{positions:Y.positions,color:Y.color,weight:Y.weight,opacity:Y.opacity,lineCap:"round",lineJoin:"round",interactive:!1},`own-nav-trail-${_e}`)),O.jsx(uB,{centerCoords:z,hasValidGps:M,autoCenter:i,setAutoCenter:o,smartZoom:H,flyTarget:P,isTargetSelected:!!s,cameraSnapshotRef:y,restoreSignal:w,onZoomChange:h,onBoundsChange:v}),aB(d).map(Y=>{const _e=sB(q,Y.r),be=!!s,Ie=be?"#06b6d4":t?"#38bdf8":"#0369a1",_t=be?"#0891b2":t?"#ffffff":"#0f172a",He=t?"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000":"-1px -1px 0 rgba(255,255,255,0.9), 1px -1px 0 rgba(255,255,255,0.9), -1px 1px 0 rgba(255,255,255,0.9), 1px 1px 0 rgba(255,255,255,0.9)";return O.jsxs(D.Fragment,{children:[O.jsx(ai,{center:[q.lat,q.lon],radius:Y.r,pathOptions:{color:Ie,weight:be?1.8:1.4,opacity:t?.65:.8,fillOpacity:0,dashArray:be?"6, 6":"5, 8",interactive:!1}}),O.jsx(Jn,{position:_e,icon:new zn.DivIcon({html:`<div style="font-size: 9px; font-weight: 900; color: ${_t}; font-family: monospace; text-shadow: ${He}; white-space: nowrap; text-align: right; width: 100%;">${Y.label}</div>`,className:"range-label-marker",iconSize:[50,10],iconAnchor:[53,5]}),interactive:!1})]},`ais-ring-${Y.r}`)}),Z.map(Y=>{const _e=Y.isMoving!==void 0?Y.isMoving:!Y.isAnchored&&Y.sog>=.3,be=(s==null?void 0:s.id)===Y.id,_t=hu(Y.type).color,He=Y.risk==="RED",gt=Y.risk==="ORANGE",on=Y.trail&&Y.trail.length>=2&&(He||gt||be||Y.dist<=3704),an=_e&&(He||gt||be||Y.dist<=5556);return O.jsxs(D.Fragment,{children:[on&&O.jsx(Fo,{positions:Y.trail.map(Tn=>[Tn.lat,Tn.lon]),color:_t,weight:be?2:1.2,opacity:.5,dashArray:"3, 5",interactive:!1}),an&&O.jsx(Fo,{positions:[[Y.lat,Y.lon],ES(Y.lat,Y.lon,Y.cog,Y.sog,15)],color:_t,weight:be?3:2,opacity:.85,dashArray:"6, 6",interactive:!1}),He&&O.jsx(ai,{center:[Y.lat,Y.lon],radius:Math.max(100,(Y.sog||1)*45),pathOptions:{color:"#ef4444",weight:2.5,fillColor:"#ef4444",fillOpacity:.15,dashArray:"5, 5",interactive:!1}}),!He&>&&O.jsx(ai,{center:[Y.lat,Y.lon],radius:Math.max(70,(Y.sog||1)*35),pathOptions:{color:"#f97316",weight:2,fillColor:"#f97316",fillOpacity:.1,dashArray:"6, 6",interactive:!1}}),be&&O.jsx(ai,{center:[Y.lat,Y.lon],radius:Math.max(80,(Y.sog||1)*35),pathOptions:{color:"#22d3ee",weight:2.2,fillColor:"#22d3ee",fillOpacity:.18,dashArray:"3, 5",interactive:!1}}),O.jsx(Jn,{position:[Y.lat,Y.lon],icon:iB(Y,be,d),zIndexOffset:He?700:gt?500:be?600:100,eventHandlers:{click:()=>Q(Y)}}),(He||gt)&&O.jsx(Jn,{position:[Y.lat,Y.lon],icon:lB(Y),zIndexOffset:He?800:650,interactive:!1})]},Y.id)}),K>=.5&&((pn=r==null?void 0:r.anchor)==null?void 0:pn.status)==="MOVING"&&(()=>{var be;const Y=(be=r==null?void 0:r.anchor)!=null&&be.engine_on?"#f97316":t?"#38bdf8":"#0284c7",_e=ES(z[0],z[1],R,K,15);return O.jsx(Fo,{positions:[z,_e],color:Y,weight:2.2,opacity:.9,dashArray:"12, 8, 3, 8",lineCap:"round",lineJoin:"round",interactive:!1})})(),O.jsx(Jn,{position:z,icon:rB(R,(On=r==null?void 0:r.anchor)!=null&&On.engine_on?"#f97316":t?"#38bdf8":"#0284c7"),zIndexOffset:1e3,eventHandlers:{click:()=>Q(G)}})]})}),!u&&!s&&O.jsx("div",{className:"absolute top-3 right-3 z-[1001]",children:O.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-2 bg-[#161b22]/90 backdrop-blur-xl border border-white/20 px-3.5 py-2 rounded-2xl shadow-xl active:scale-95 transition-all text-white",children:[O.jsx(PS,{size:15,className:"text-cyan-400"}),O.jsx("span",{className:"text-xs font-black font-mono tracking-wider",children:W.length}),W.some(Y=>Y.risk==="RED")&&O.jsx("span",{className:"bg-red-500 text-white text-[9px] font-black px-1.5 py-0.5 rounded-md animate-pulse",children:"🚨"}),O.jsx(cM,{size:16,className:"text-gray-400"})]})}),(u||s)&&O.jsx("div",{onPointerDownCapture:Y=>Y.stopPropagation(),onTouchStartCapture:Y=>Y.stopPropagation(),className:`absolute top-3 right-3 w-[320px] max-w-[88vw] z-[1001] bg-[#161b22]/95 backdrop-blur-2xl border border-white/15 rounded-3xl shadow-2xl flex flex-col overflow-hidden isolate ${s?"h-auto max-h-[50vh] landscape:max-h-[calc(100vh-5.5rem)]":"h-[40vh] max-h-[40vh] landscape:h-[calc(100vh-5.5rem)] landscape:max-h-[calc(100vh-5.5rem)]"}`,children:$?(()=>{var be,Ie,_t,He,gt,on,an,Tn,Kt,An,Un,hr,mn;if($.isOwnShip){const qr=parseFloat((be=r==null?void 0:r.trip)==null?void 0:be.engine_nm)||0,_o=parseFloat((Ie=r==null?void 0:r.trip)==null?void 0:Ie.sail_nm)||0,Mr=qr+_o,bo=Mr>0?Math.round(qr/Mr*100):0,wo=Mr>0?Math.round(_o/Mr*100):0,So=((_t=r==null?void 0:r.anchor)==null?void 0:_t.depth)||((He=r==null?void 0:r.environment)==null?void 0:He.depth)||0;return O.jsxs("div",{className:"flex flex-col p-3 font-mono gap-2 overflow-y-auto",children:[O.jsxs("div",{className:"flex items-center justify-between border-b border-white/10 pb-2",children:[O.jsxs("button",{onClick:ae,className:"flex items-center gap-1 text-[11px] font-black text-cyan-400 hover:text-cyan-300 active:scale-95 transition-transform shrink-0",children:[O.jsx("span",{children:"←"})," LISTA"]}),O.jsxs("div",{className:"text-center truncate px-2",children:[O.jsx("h4",{className:"text-sm font-black uppercase text-cyan-400 truncate tracking-tight",children:"⛵ ROTEVISTA"}),O.jsxs("span",{className:"text-[8.5px] text-gray-400 uppercase block tracking-tight mt-0.5",children:[MS(z[0],!0)," ",MS(z[1],!1)]})]}),O.jsx("button",{onClick:fe,className:"text-gray-400 hover:text-white p-1 shrink-0",children:O.jsx(uv,{size:16})})]}),O.jsxs("div",{className:"grid grid-cols-4 gap-1 text-[10px] shrink-0 text-center",children:[O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"SOG"}),O.jsxs("span",{className:"font-bold text-cyan-400 text-xs",children:[K.toFixed(1),"k"]})]}),O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Prua"}),O.jsxs("span",{className:"font-bold text-white text-xs",children:[Math.round(R),"°"]})]}),O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Fondo"}),O.jsx("span",{className:"font-bold text-white text-xs",children:So>0?`${So.toFixed(1)}m`:"--"})]}),O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Volvo"}),O.jsx("span",{className:`font-bold text-xs ${(gt=r==null?void 0:r.anchor)!=null&>.engine_on?"text-yellow-400 animate-pulse":"text-gray-400"}`,children:(on=r==null?void 0:r.anchor)!=null&&on.engine_on?"ON":"OFF"})]})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl border border-white/5 flex flex-col gap-1 text-[10px]",children:[O.jsx("span",{className:"text-[8px] font-black text-gray-400 uppercase tracking-widest border-b border-white/5 pb-1",children:"Statistiche Tratta"}),O.jsxs("div",{className:"flex justify-between items-center text-cyan-400 font-bold",children:[O.jsxs("span",{children:["⛵ Vela: ",((an=r==null?void 0:r.trip)==null?void 0:an.sail_time)||"0m"]}),O.jsxs("span",{children:[((Tn=r==null?void 0:r.trip)==null?void 0:Tn.sail_nm)||"0.00 NM"," ",O.jsxs("span",{className:"text-gray-500 font-normal",children:["(",wo,"%)"]})]})]}),O.jsxs("div",{className:"flex justify-between items-center text-yellow-400 font-bold",children:[O.jsxs("span",{children:["🚤 Motore: ",((Kt=r==null?void 0:r.trip)==null?void 0:Kt.engine_time)||"0m"]}),O.jsxs("span",{children:[((An=r==null?void 0:r.trip)==null?void 0:An.engine_nm)||"0.00 NM"," ",O.jsxs("span",{className:"text-gray-500 font-normal",children:["(",bo,"%)"]})]})]}),O.jsxs("div",{className:"flex justify-between items-center text-white font-black border-t border-white/5 pt-1 mt-0.5",children:[O.jsxs("span",{children:["⏱️ Totale: ",((Un=r==null?void 0:r.trip)==null?void 0:Un.total_nav_time)||"0m"]}),O.jsx("span",{children:((hr=r==null?void 0:r.trip)==null?void 0:hr.total_nm)||"0.00 NM"})]})]})]})}const Y=hu($.type),_e=$.age!==void 0?$.age<60?`${$.age}s fa`:`${Math.round($.age/60)}m fa`:"";return O.jsxs("div",{className:"flex flex-col p-3 font-mono gap-2 overflow-y-auto",children:[O.jsxs("div",{className:"flex flex-col border-b border-white/10 pb-2 px-1 pt-0.5 shrink-0 gap-1",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("button",{onClick:ae,className:"flex items-center gap-1 text-[11px] font-black text-cyan-400 hover:text-cyan-300 active:scale-95 transition-transform shrink-0 px-1 py-0.5",children:[O.jsx("span",{children:"←"})," LISTA"]}),O.jsxs("div",{className:"flex items-center justify-center gap-1.5 truncate px-2",children:[O.jsx("span",{className:"text-base shrink-0",children:Y.emoji}),O.jsx("h4",{className:"text-sm font-black uppercase text-white truncate tracking-tight",children:$.name||"Sconosciuto"})]}),O.jsx("button",{onClick:fe,className:"text-gray-400 hover:text-white p-1 shrink-0 rounded-lg active:scale-95 transition-transform",children:O.jsx(uv,{size:16})})]}),O.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-[9.5px] font-bold text-gray-300 uppercase tracking-tight",children:[O.jsx("span",{children:Y.label}),O.jsx("span",{className:"text-gray-600",children:"•"}),(mn=$.id)!=null&&mn.includes("mmsi:")?O.jsx("button",{onClick:()=>S($.id.split(":").pop()),className:`flex items-center gap-1 cursor-pointer active:scale-95 transition-all px-1.5 py-0.5 rounded-md border ${b?"text-green-400 bg-green-500/15 border-green-500/30":"text-cyan-400 hover:text-cyan-300 bg-white/5 border-white/10"}`,title:"Tocca per copiare l'MMSI negli appunti",children:b?O.jsxs(O.Fragment,{children:[O.jsx(r4,{size:11,className:"shrink-0 text-green-400"}),O.jsx("span",{className:"text-[9px]",children:"Copiato!"})]}):O.jsxs(O.Fragment,{children:[O.jsx(l4,{size:9,className:"shrink-0 opacity-80"}),O.jsxs("span",{children:["MMSI ",$.id.split(":").pop()]})]})}):O.jsx("span",{className:"text-gray-400",children:"MMSI: --"}),_e&&O.jsxs(O.Fragment,{children:[O.jsx("span",{className:"text-gray-600",children:"•"}),O.jsx("span",{className:"text-gray-400",children:_e})]})]})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-1.5 text-[10px] shrink-0",children:[O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"SOG / COG"}),O.jsxs("span",{className:"font-bold text-white text-xs",children:[$.sog," kn @ ",$.cog,"°"]})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Distanza"}),O.jsx("span",{className:"font-bold text-white text-xs truncate",title:Ff($.dist),children:Ff($.dist)})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"CPA Minimo"}),O.jsx("span",{className:"font-bold text-cyan-400 text-xs truncate",title:Ff($.cpa),children:Ff($.cpa)})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Tempo a CPA"}),O.jsx("span",{className:"font-bold text-cyan-400 text-xs",children:$.tcpa!==null&&$.tcpa!==void 0&&$.tcpa>=0?`${Math.round($.tcpa)} min`:"--"})]})]}),$.sightingTxt&&O.jsxs("div",{className:"bg-cyan-500/10 border border-cyan-500/30 px-2.5 py-1.5 rounded-xl text-[9px] text-cyan-200 shrink-0 flex items-center gap-1.5",children:[O.jsx("span",{className:"text-cyan-400 font-black uppercase shrink-0",children:"👀 Vista:"}),O.jsx("span",{className:"truncate",children:$.sightingTxt})]}),$.crossDir&&O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl text-[9px] text-gray-300 border border-white/5 overflow-y-auto leading-normal whitespace-pre-line max-h-20",children:[O.jsx("span",{className:"text-orange-400 font-bold uppercase block mb-1",children:"Analisi Incrocio:"}),$.crossDir]})]})})():O.jsxs("div",{className:"flex flex-col h-full font-mono",children:[O.jsxs("div",{className:"h-10 px-3.5 flex items-center justify-between border-b border-white/10 shrink-0",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(PS,{size:14,className:"text-cyan-400"}),O.jsxs("span",{className:"text-[11px] font-black uppercase tracking-wider text-white",children:["Bersagli (",W.length,")"]})]}),O.jsx("button",{onClick:fe,className:"text-gray-400 hover:text-white p-1",children:O.jsx(uv,{size:16})})]}),O.jsxs("div",{className:"flex-1 overflow-y-auto p-1.5 space-y-1.5",children:[O.jsxs("div",{onClick:()=>te(G),className:"p-2 rounded-xl border border-cyan-500/30 bg-cyan-500/10 hover:bg-cyan-500/20 transition-all cursor-pointer flex items-center justify-between",children:[O.jsxs("div",{className:"flex flex-col truncate pr-2",children:[O.jsx("span",{className:"text-[11px] font-black uppercase text-cyan-400 truncate flex items-center gap-1",children:"⛵ ROTEVISTA (LA TUA BARCA)"}),O.jsxs("span",{className:"text-[8px] text-gray-300 mt-0.5",children:[((zt=r==null?void 0:r.anchor)==null?void 0:zt.status)!=="MOVING"?"ALL'ANCORA":(Gt=r==null?void 0:r.anchor)!=null&&Gt.engine_on?"A MOTORE":"A VELA"," • HDG: ",Math.round(R),"°"]})]}),O.jsxs("div",{className:"flex flex-col items-end text-right shrink-0 leading-none",children:[O.jsxs("span",{className:"text-xs font-black text-cyan-400 font-mono",children:[K.toFixed(1)," kn"]}),O.jsx("span",{className:"text-[7.5px] text-gray-400 mt-1",children:"SOG"})]})]}),W.map(Y=>{const _e=Y.risk==="RED",be=Y.risk==="ORANGE",Ie=hu(Y.type);return O.jsxs("div",{onClick:()=>te(Y),className:`p-2 rounded-xl border transition-all cursor-pointer flex items-center justify-between ${_e?"bg-red-500/15 border-red-500/40 text-red-100":be?"bg-orange-500/15 border-orange-500/40 text-orange-100":"bg-white/5 border-white/5 hover:bg-white/10"}`,children:[O.jsxs("div",{className:"flex flex-col truncate pr-2",children:[O.jsxs("div",{className:"flex items-center gap-1.5 truncate",children:[O.jsx("span",{style:{color:Ie.color},className:"text-xs shrink-0",children:Ie.emoji}),O.jsx("span",{className:"text-[11px] font-black uppercase text-white truncate",children:Y.name||"Sconosciuto"}),_e&&O.jsx("span",{className:"text-red-500 text-[9px] shrink-0",children:"🚨"})]}),O.jsxs("span",{className:"text-[9.5px] font-bold text-gray-300 mt-0.5 tracking-tight leading-tight",children:[Ie.label," • ",Y.isMoving?`${Y.sog}k • ${Y.cog}°`:"ALL'ANCORA"]})]}),O.jsxs("div",{className:"flex flex-col items-end text-right shrink-0 leading-none",children:[O.jsx("span",{className:`text-xs font-black ${_e?"text-red-400":be?"text-orange-400":"text-cyan-400"}`,children:Y.cpa!==null&&Y.cpa!==void 0?`CPA: ${kS(Y.cpa)}`:kS(Y.dist)}),Y.tcpa!==null&&Y.tcpa>=0&&O.jsxs("span",{className:"text-[8.5px] font-bold text-gray-300 mt-1",children:["in ",Math.round(Y.tcpa),"m"]})]})]},Y.id)})]})]})})]})};function TM(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=TM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ne(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=TM(e))&&(r&&(r+=" "),r+=t);return r}var hB=Array.isArray,Pn=hB,dB=typeof Ul=="object"&&Ul&&Ul.Object===Object&&Ul,AM=dB,pB=AM,mB=typeof self=="object"&&self&&self.Object===Object&&self,vB=pB||mB||Function("return this")(),Kr=vB,gB=Kr,yB=gB.Symbol,Cc=yB,CS=Cc,EM=Object.prototype,xB=EM.hasOwnProperty,_B=EM.toString,jl=CS?CS.toStringTag:void 0;function bB(e){var t=xB.call(e,jl),n=e[jl];try{e[jl]=void 0;var r=!0}catch{}var i=_B.call(e);return r&&(t?e[jl]=n:delete e[jl]),i}var wB=bB,SB=Object.prototype,PB=SB.toString;function OB(e){return PB.call(e)}var TB=OB,jS=Cc,AB=wB,EB=TB,kB="[object Null]",MB="[object Undefined]",$S=jS?jS.toStringTag:void 0;function CB(e){return e==null?e===void 0?MB:kB:$S&&$S in Object(e)?AB(e):EB(e)}var Ei=CB;function jB(e){return e!=null&&typeof e=="object"}var ki=jB,$B=Ei,NB=ki,LB="[object Symbol]";function IB(e){return typeof e=="symbol"||NB(e)&&$B(e)==LB}var Gs=IB,DB=Pn,RB=Gs,zB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,BB=/^\w*$/;function FB(e,t){if(DB(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||RB(e)?!0:BB.test(e)||!zB.test(e)||t!=null&&e in Object(t)}var o_=FB;function VB(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var po=VB;const Ks=Ge(po);var UB=Ei,WB=po,HB="[object AsyncFunction]",ZB="[object Function]",GB="[object GeneratorFunction]",KB="[object Proxy]";function qB(e){if(!WB(e))return!1;var t=UB(e);return t==ZB||t==GB||t==HB||t==KB}var a_=qB;const Pe=Ge(a_);var XB=Kr,YB=XB["__core-js_shared__"],QB=YB,fv=QB,NS=function(){var e=/[^.]+$/.exec(fv&&fv.keys&&fv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function JB(e){return!!NS&&NS in e}var eF=JB,tF=Function.prototype,nF=tF.toString;function rF(e){if(e!=null){try{return nF.call(e)}catch{}try{return e+""}catch{}}return""}var kM=rF,iF=a_,oF=eF,aF=po,sF=kM,lF=/[\\^$.*+?()[\]{}|]/g,uF=/^\[object .+?Constructor\]$/,cF=Function.prototype,fF=Object.prototype,hF=cF.toString,dF=fF.hasOwnProperty,pF=RegExp("^"+hF.call(dF).replace(lF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mF(e){if(!aF(e)||oF(e))return!1;var t=iF(e)?pF:uF;return t.test(sF(e))}var vF=mF;function gF(e,t){return e==null?void 0:e[t]}var yF=gF,xF=vF,_F=yF;function bF(e,t){var n=_F(e,t);return xF(n)?n:void 0}var ha=bF,wF=ha,SF=wF(Object,"create"),yp=SF,LS=yp;function PF(){this.__data__=LS?LS(null):{},this.size=0}var OF=PF;function TF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var AF=TF,EF=yp,kF="__lodash_hash_undefined__",MF=Object.prototype,CF=MF.hasOwnProperty;function jF(e){var t=this.__data__;if(EF){var n=t[e];return n===kF?void 0:n}return CF.call(t,e)?t[e]:void 0}var $F=jF,NF=yp,LF=Object.prototype,IF=LF.hasOwnProperty;function DF(e){var t=this.__data__;return NF?t[e]!==void 0:IF.call(t,e)}var RF=DF,zF=yp,BF="__lodash_hash_undefined__";function FF(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=zF&&t===void 0?BF:t,this}var VF=FF,UF=OF,WF=AF,HF=$F,ZF=RF,GF=VF;function qs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qs.prototype.clear=UF;qs.prototype.delete=WF;qs.prototype.get=HF;qs.prototype.has=ZF;qs.prototype.set=GF;var KF=qs;function qF(){this.__data__=[],this.size=0}var XF=qF;function YF(e,t){return e===t||e!==e&&t!==t}var s_=YF,QF=s_;function JF(e,t){for(var n=e.length;n--;)if(QF(e[n][0],t))return n;return-1}var xp=JF,e8=xp,t8=Array.prototype,n8=t8.splice;function r8(e){var t=this.__data__,n=e8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():n8.call(t,n,1),--this.size,!0}var i8=r8,o8=xp;function a8(e){var t=this.__data__,n=o8(t,e);return n<0?void 0:t[n][1]}var s8=a8,l8=xp;function u8(e){return l8(this.__data__,e)>-1}var c8=u8,f8=xp;function h8(e,t){var n=this.__data__,r=f8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var d8=h8,p8=XF,m8=i8,v8=s8,g8=c8,y8=d8;function Xs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xs.prototype.clear=p8;Xs.prototype.delete=m8;Xs.prototype.get=v8;Xs.prototype.has=g8;Xs.prototype.set=y8;var _p=Xs,x8=ha,_8=Kr,b8=x8(_8,"Map"),l_=b8,IS=KF,w8=_p,S8=l_;function P8(){this.size=0,this.__data__={hash:new IS,map:new(S8||w8),string:new IS}}var O8=P8;function T8(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var A8=T8,E8=A8;function k8(e,t){var n=e.__data__;return E8(t)?n[typeof t=="string"?"string":"hash"]:n.map}var bp=k8,M8=bp;function C8(e){var t=M8(this,e).delete(e);return this.size-=t?1:0,t}var j8=C8,$8=bp;function N8(e){return $8(this,e).get(e)}var L8=N8,I8=bp;function D8(e){return I8(this,e).has(e)}var R8=D8,z8=bp;function B8(e,t){var n=z8(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var F8=B8,V8=O8,U8=j8,W8=L8,H8=R8,Z8=F8;function Ys(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ys.prototype.clear=V8;Ys.prototype.delete=U8;Ys.prototype.get=W8;Ys.prototype.has=H8;Ys.prototype.set=Z8;var u_=Ys,MM=u_,G8="Expected a function";function c_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(G8);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(c_.Cache||MM),n}c_.Cache=MM;var CM=c_;const K8=Ge(CM);var q8=CM,X8=500;function Y8(e){var t=q8(e,function(r){return n.size===X8&&n.clear(),r}),n=t.cache;return t}var Q8=Y8,J8=Q8,e6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t6=/\\(\\)?/g,n6=J8(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(e6,function(n,r,i,o){t.push(i?o.replace(t6,"$1"):r||n)}),t}),r6=n6;function i6(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var f_=i6,DS=Cc,o6=f_,a6=Pn,s6=Gs,RS=DS?DS.prototype:void 0,zS=RS?RS.toString:void 0;function jM(e){if(typeof e=="string")return e;if(a6(e))return o6(e,jM)+"";if(s6(e))return zS?zS.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var l6=jM,u6=l6;function c6(e){return e==null?"":u6(e)}var $M=c6,f6=Pn,h6=o_,d6=r6,p6=$M;function m6(e,t){return f6(e)?e:h6(e,t)?[e]:d6(p6(e))}var NM=m6,v6=Gs;function g6(e){if(typeof e=="string"||v6(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var wp=g6,y6=NM,x6=wp;function _6(e,t){t=y6(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[x6(t[n++])];return n&&n==r?e:void 0}var h_=_6,b6=h_;function w6(e,t,n){var r=e==null?void 0:b6(e,t);return r===void 0?n:r}var LM=w6;const ar=Ge(LM);function S6(e){return e==null}var P6=S6;const Me=Ge(P6);var O6=Ei,T6=Pn,A6=ki,E6="[object String]";function k6(e){return typeof e=="string"||!T6(e)&&A6(e)&&O6(e)==E6}var M6=k6;const ia=Ge(M6);var IM={exports:{}},Fe={};/**
|
|
307
|
+
* @license React
|
|
308
|
+
* react-is.production.min.js
|
|
309
|
+
*
|
|
310
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the MIT license found in the
|
|
313
|
+
* LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/var d_=Symbol.for("react.element"),p_=Symbol.for("react.portal"),Sp=Symbol.for("react.fragment"),Pp=Symbol.for("react.strict_mode"),Op=Symbol.for("react.profiler"),Tp=Symbol.for("react.provider"),Ap=Symbol.for("react.context"),C6=Symbol.for("react.server_context"),Ep=Symbol.for("react.forward_ref"),kp=Symbol.for("react.suspense"),Mp=Symbol.for("react.suspense_list"),Cp=Symbol.for("react.memo"),jp=Symbol.for("react.lazy"),j6=Symbol.for("react.offscreen"),DM;DM=Symbol.for("react.module.reference");function cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case d_:switch(e=e.type,e){case Sp:case Op:case Pp:case kp:case Mp:return e;default:switch(e=e&&e.$$typeof,e){case C6:case Ap:case Ep:case jp:case Cp:case Tp:return e;default:return t}}case p_:return t}}}Fe.ContextConsumer=Ap;Fe.ContextProvider=Tp;Fe.Element=d_;Fe.ForwardRef=Ep;Fe.Fragment=Sp;Fe.Lazy=jp;Fe.Memo=Cp;Fe.Portal=p_;Fe.Profiler=Op;Fe.StrictMode=Pp;Fe.Suspense=kp;Fe.SuspenseList=Mp;Fe.isAsyncMode=function(){return!1};Fe.isConcurrentMode=function(){return!1};Fe.isContextConsumer=function(e){return cr(e)===Ap};Fe.isContextProvider=function(e){return cr(e)===Tp};Fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===d_};Fe.isForwardRef=function(e){return cr(e)===Ep};Fe.isFragment=function(e){return cr(e)===Sp};Fe.isLazy=function(e){return cr(e)===jp};Fe.isMemo=function(e){return cr(e)===Cp};Fe.isPortal=function(e){return cr(e)===p_};Fe.isProfiler=function(e){return cr(e)===Op};Fe.isStrictMode=function(e){return cr(e)===Pp};Fe.isSuspense=function(e){return cr(e)===kp};Fe.isSuspenseList=function(e){return cr(e)===Mp};Fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sp||e===Op||e===Pp||e===kp||e===Mp||e===j6||typeof e=="object"&&e!==null&&(e.$$typeof===jp||e.$$typeof===Cp||e.$$typeof===Tp||e.$$typeof===Ap||e.$$typeof===Ep||e.$$typeof===DM||e.getModuleId!==void 0)};Fe.typeOf=cr;IM.exports=Fe;var $6=IM.exports,N6=Ei,L6=ki,I6="[object Number]";function D6(e){return typeof e=="number"||L6(e)&&N6(e)==I6}var RM=D6;const R6=Ge(RM);var z6=RM;function B6(e){return z6(e)&&e!=+e}var F6=B6;const Qs=Ge(F6);var Pr=function(t){return t===0?0:t>0?1:-1},Vo=function(t){return ia(t)&&t.indexOf("%")===t.length-1},ie=function(t){return R6(t)&&!Qs(t)},V6=function(t){return Me(t)},Ct=function(t){return ie(t)||ia(t)},U6=0,jc=function(t){var n=++U6;return"".concat(t||"").concat(n)},oa=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ie(t)&&!ia(t))return r;var o;if(Vo(t)){var s=t.indexOf("%");o=n*parseFloat(t.slice(0,s))/100}else o=+t;return Qs(o)&&(o=r),i&&o>n&&(o=n),o},Hi=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},W6=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},nr=function(t,n){return ie(t)&&ie(n)?function(r){return t+r*(n-t)}:function(){return n}};function Kh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):ar(r,t))===n})}var H6=function(t,n){return ie(t)&&ie(n)?t-n:ia(t)&&ia(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function rs(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function ey(e){"@babel/helpers - typeof";return ey=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},ey(e)}var Z6=["viewBox","children"],G6=["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"],BS=["points","pathLength"],hv={svg:Z6,polygon:BS,polyline:BS},m_=["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"],qh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(j.isValidElement(t)&&(r=t.props),!Ks(r))return null;var i={};return Object.keys(r).forEach(function(o){m_.includes(o)&&(i[o]=n||function(s){return r[o](r,s)})}),i},K6=function(t,n,r){return function(i){return t(n,r,i),null}},Xh=function(t,n,r){if(!Ks(t)||ey(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var s=t[o];m_.includes(o)&&typeof s=="function"&&(i||(i={}),i[o]=K6(s,n,r))}),i},q6=["children"],X6=["children"];function FS(e,t){if(e==null)return{};var n=Y6(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Y6(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ty(e){"@babel/helpers - typeof";return ty=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},ty(e)}var VS={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"},mi=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},US=null,dv=null,v_=function e(t){if(t===US&&Array.isArray(dv))return dv;var n=[];return j.Children.forEach(t,function(r){Me(r)||($6.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),dv=n,US=t,n};function Ar(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return mi(i)}):r=[mi(t)],v_(e).forEach(function(i){var o=ar(i,"type.displayName")||ar(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function jn(e,t){var n=Ar(e,t);return n&&n[0]}var WS=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!ie(r)||r<=0||!ie(i)||i<=0)},Q6=["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"],J6=function(t){return t&&t.type&&ia(t.type)&&Q6.indexOf(t.type)>=0},eV=function(t){return t&&ty(t)==="object"&&"clipDot"in t},tV=function(t,n,r,i){var o,s=(o=hv==null?void 0:hv[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Pe(t)&&(i&&s.includes(n)||G6.includes(n))||r&&m_.includes(n)},Ee=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(j.isValidElement(t)&&(i=t.props),!Ks(i))return null;var o={};return Object.keys(i).forEach(function(s){var l;tV((l=i)===null||l===void 0?void 0:l[s],s,n,r)&&(o[s]=i[s])}),o},ny=function e(t,n){if(t===n)return!0;var r=j.Children.count(t);if(r!==j.Children.count(n))return!1;if(r===0)return!0;if(r===1)return HS(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],s=n[i];if(Array.isArray(o)||Array.isArray(s)){if(!e(o,s))return!1}else if(!HS(o,s))return!1}return!0},HS=function(t,n){if(Me(t)&&Me(n))return!0;if(!Me(t)&&!Me(n)){var r=t.props||{},i=r.children,o=FS(r,q6),s=n.props||{},l=s.children,u=FS(s,X6);return i&&l?rs(o,u)&&ny(i,l):!i&&!l?rs(o,u):!1}return!1},ZS=function(t,n){var r=[],i={};return v_(t).forEach(function(o,s){if(J6(o))r.push(o);else if(o){var l=mi(o.type),u=n[l]||{},f=u.handler,d=u.once;if(f&&(!d||!i[l])){var h=f(o,l,s);r.push(h),i[l]=!0}}}),r},nV=function(t){var n=t&&t.type;return n&&VS[n]?VS[n]:null},rV=function(t,n){return v_(n).indexOf(t)},iV=["children","width","height","viewBox","className","style","title","desc"];function ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ry.apply(this,arguments)}function oV(e,t){if(e==null)return{};var n=aV(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function iy(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,s=e.style,l=e.title,u=e.desc,f=oV(e,iV),d=i||{width:n,height:r,x:0,y:0},h=Ne("recharts-surface",o);return D.createElement("svg",ry({},Ee(f,!0,"svg"),{className:h,width:n,height:r,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),D.createElement("title",null,l),D.createElement("desc",null,u),t)}var sV=["children","className"];function oy(){return oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oy.apply(this,arguments)}function lV(e,t){if(e==null)return{};var n=uV(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ft=D.forwardRef(function(e,t){var n=e.children,r=e.className,i=lV(e,sV),o=Ne("recharts-layer",r);return D.createElement("g",oy({className:o},Ee(i,!0),{ref:t}),n)}),vi=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]};function cV(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var fV=cV,hV=fV;function dV(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:hV(e,t,n)}var pV=dV,mV="\\ud800-\\udfff",vV="\\u0300-\\u036f",gV="\\ufe20-\\ufe2f",yV="\\u20d0-\\u20ff",xV=vV+gV+yV,_V="\\ufe0e\\ufe0f",bV="\\u200d",wV=RegExp("["+bV+mV+xV+_V+"]");function SV(e){return wV.test(e)}var zM=SV;function PV(e){return e.split("")}var OV=PV,BM="\\ud800-\\udfff",TV="\\u0300-\\u036f",AV="\\ufe20-\\ufe2f",EV="\\u20d0-\\u20ff",kV=TV+AV+EV,MV="\\ufe0e\\ufe0f",CV="["+BM+"]",ay="["+kV+"]",sy="\\ud83c[\\udffb-\\udfff]",jV="(?:"+ay+"|"+sy+")",FM="[^"+BM+"]",VM="(?:\\ud83c[\\udde6-\\uddff]){2}",UM="[\\ud800-\\udbff][\\udc00-\\udfff]",$V="\\u200d",WM=jV+"?",HM="["+MV+"]?",NV="(?:"+$V+"(?:"+[FM,VM,UM].join("|")+")"+HM+WM+")*",LV=HM+WM+NV,IV="(?:"+[FM+ay+"?",ay,VM,UM,CV].join("|")+")",DV=RegExp(sy+"(?="+sy+")|"+IV+LV,"g");function RV(e){return e.match(DV)||[]}var zV=RV,BV=OV,FV=zM,VV=zV;function UV(e){return FV(e)?VV(e):BV(e)}var WV=UV,HV=pV,ZV=zM,GV=WV,KV=$M;function qV(e){return function(t){t=KV(t);var n=ZV(t)?GV(t):void 0,r=n?n[0]:t.charAt(0),i=n?HV(n,1).join(""):t.slice(1);return r[e]()+i}}var XV=qV,YV=XV,QV=YV("toUpperCase"),JV=QV;const $p=Ge(JV);function Ye(e){return function(){return e}}const ZM=Math.cos,Yh=Math.sin,kr=Math.sqrt,Qh=Math.PI,Np=2*Qh,ly=Math.PI,uy=2*ly,No=1e-6,eU=uy-No;function GM(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function tU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return GM;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class nU{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?GM:tU(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,l=this._y1,u=r-t,f=i-n,d=s-t,h=l-n,m=d*d+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>No)if(!(Math.abs(h*u-f*d)>No)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-s,b=i-l,x=u*u+f*f,S=v*v+b*b,y=Math.sqrt(x),_=Math.sqrt(m),w=o*Math.tan((ly-Math.acos((x+m-S)/(2*y*_)))/2),E=w/_,P=w/y;Math.abs(E-1)>No&&this._append`L${t+E*d},${n+E*h}`,this._append`A${o},${o},0,0,${+(h*v>d*b)},${this._x1=t+P*u},${this._y1=n+P*f}`}}arc(t,n,r,i,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),u=r*Math.sin(i),f=t+l,d=n+u,h=1^s,m=s?i-o:o-i;this._x1===null?this._append`M${f},${d}`:(Math.abs(this._x1-f)>No||Math.abs(this._y1-d)>No)&&this._append`L${f},${d}`,r&&(m<0&&(m=m%uy+uy),m>eU?this._append`A${r},${r},0,1,${h},${t-l},${n-u}A${r},${r},0,1,${h},${this._x1=f},${this._y1=d}`:m>No&&this._append`A${r},${r},0,${+(m>=ly)},${h},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function g_(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new nU(t)}function y_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function KM(e){this._context=e}KM.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 Lp(e){return new KM(e)}function qM(e){return e[0]}function XM(e){return e[1]}function YM(e,t){var n=Ye(!0),r=null,i=Lp,o=null,s=g_(l);e=typeof e=="function"?e:e===void 0?qM:Ye(e),t=typeof t=="function"?t:t===void 0?XM:Ye(t);function l(u){var f,d=(u=y_(u)).length,h,m=!1,v;for(r==null&&(o=i(v=s())),f=0;f<=d;++f)!(f<d&&n(h=u[f],f,u))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+e(h,f,u),+t(h,f,u));if(v)return o=null,v+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:Ye(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:Ye(+u),l):t},l.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Ye(!!u),l):n},l.curve=function(u){return arguments.length?(i=u,r!=null&&(o=i(r)),l):i},l.context=function(u){return arguments.length?(u==null?r=o=null:o=i(r=u),l):r},l}function Vf(e,t,n){var r=null,i=Ye(!0),o=null,s=Lp,l=null,u=g_(f);e=typeof e=="function"?e:e===void 0?qM:Ye(+e),t=typeof t=="function"?t:Ye(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?XM:Ye(+n);function f(h){var m,v,b,x=(h=y_(h)).length,S,y=!1,_,w=new Array(x),E=new Array(x);for(o==null&&(l=s(_=u())),m=0;m<=x;++m){if(!(m<x&&i(S=h[m],m,h))===y)if(y=!y)v=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=m-1;b>=v;--b)l.point(w[b],E[b]);l.lineEnd(),l.areaEnd()}y&&(w[m]=+e(S,m,h),E[m]=+t(S,m,h),l.point(r?+r(S,m,h):w[m],n?+n(S,m,h):E[m]))}if(_)return l=null,_+""||null}function d(){return YM().defined(i).curve(s).context(o)}return f.x=function(h){return arguments.length?(e=typeof h=="function"?h:Ye(+h),r=null,f):e},f.x0=function(h){return arguments.length?(e=typeof h=="function"?h:Ye(+h),f):e},f.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Ye(+h),f):r},f.y=function(h){return arguments.length?(t=typeof h=="function"?h:Ye(+h),n=null,f):t},f.y0=function(h){return arguments.length?(t=typeof h=="function"?h:Ye(+h),f):t},f.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Ye(+h),f):n},f.lineX0=f.lineY0=function(){return d().x(e).y(t)},f.lineY1=function(){return d().x(e).y(n)},f.lineX1=function(){return d().x(r).y(t)},f.defined=function(h){return arguments.length?(i=typeof h=="function"?h:Ye(!!h),f):i},f.curve=function(h){return arguments.length?(s=h,o!=null&&(l=s(o)),f):s},f.context=function(h){return arguments.length?(h==null?o=l=null:l=s(o=h),f):o},f}class QM{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function rU(e){return new QM(e,!0)}function iU(e){return new QM(e,!1)}const x_={draw(e,t){const n=kr(t/Qh);e.moveTo(n,0),e.arc(0,0,n,0,Np)}},oU={draw(e,t){const n=kr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},JM=kr(1/3),aU=JM*2,sU={draw(e,t){const n=kr(t/aU),r=n*JM;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},lU={draw(e,t){const n=kr(t),r=-n/2;e.rect(r,r,n,n)}},uU=.8908130915292852,eC=Yh(Qh/10)/Yh(7*Qh/10),cU=Yh(Np/10)*eC,fU=-ZM(Np/10)*eC,hU={draw(e,t){const n=kr(t*uU),r=cU*n,i=fU*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const s=Np*o/5,l=ZM(s),u=Yh(s);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*i,u*r+l*i)}e.closePath()}},pv=kr(3),dU={draw(e,t){const n=-kr(t/(pv*3));e.moveTo(0,n*2),e.lineTo(-pv*n,-n),e.lineTo(pv*n,-n),e.closePath()}},qn=-.5,Xn=kr(3)/2,cy=1/kr(12),pU=(cy/2+1)*3,mU={draw(e,t){const n=kr(t/pU),r=n/2,i=n*cy,o=r,s=n*cy+n,l=-o,u=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(l,u),e.lineTo(qn*r-Xn*i,Xn*r+qn*i),e.lineTo(qn*o-Xn*s,Xn*o+qn*s),e.lineTo(qn*l-Xn*u,Xn*l+qn*u),e.lineTo(qn*r+Xn*i,qn*i-Xn*r),e.lineTo(qn*o+Xn*s,qn*s-Xn*o),e.lineTo(qn*l+Xn*u,qn*u-Xn*l),e.closePath()}};function vU(e,t){let n=null,r=g_(i);e=typeof e=="function"?e:Ye(e||x_),t=typeof t=="function"?t:Ye(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Ye(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Ye(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Jh(){}function ed(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function tC(e){this._context=e}tC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ed(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:ed(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gU(e){return new tC(e)}function nC(e){this._context=e}nC.prototype={areaStart:Jh,areaEnd:Jh,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:ed(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yU(e){return new nC(e)}function rC(e){this._context=e}rC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ed(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xU(e){return new rC(e)}function iC(e){this._context=e}iC.prototype={areaStart:Jh,areaEnd:Jh,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 _U(e){return new iC(e)}function GS(e){return e<0?-1:1}function KS(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),l=(o*i+s*r)/(r+i);return(GS(o)+GS(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}function qS(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function mv(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,i+l*t,o-l,s-l*n,o,s)}function td(e){this._context=e}td.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:mv(this,this._t0,qS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,mv(this,qS(this,n=KS(this,e,t)),n);break;default:mv(this,this._t0,n=KS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function oC(e){this._context=new aC(e)}(oC.prototype=Object.create(td.prototype)).point=function(e,t){td.prototype.point.call(this,t,e)};function aC(e){this._context=e}aC.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function bU(e){return new td(e)}function wU(e){return new oC(e)}function sC(e){this._context=e}sC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=XS(e),i=XS(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||this._line!==0&&n===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 XS(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function SU(e){return new sC(e)}function Ip(e,t){this._context=e,this._t=t}Ip.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function PU(e){return new Ip(e,.5)}function OU(e){return new Ip(e,0)}function TU(e){return new Ip(e,1)}function gs(e,t){if((s=e.length)>1)for(var n=1,r,i,o=e[t[0]],s,l=o.length;n<s;++n)for(i=o,o=e[t[n]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function fy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function AU(e,t){return e[t]}function EU(e){const t=[];return t.key=e,t}function kU(){var e=Ye([]),t=fy,n=gs,r=AU;function i(o){var s=Array.from(e.apply(this,arguments),EU),l,u=s.length,f=-1,d;for(const h of o)for(l=0,++f;l<u;++l)(s[l][f]=[0,+r(h,s[l].key,f,o)]).data=h;for(l=0,d=y_(t(s));l<u;++l)s[d[l]].index=l;return n(s,d),s}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Ye(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Ye(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?fy:typeof o=="function"?o:Ye(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??gs,i):n},i}function MU(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,s;i<o;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}gs(e,t)}}function CU(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var s=0,l=0;s<i;++s)l+=e[s][n][1]||0;r[n][1]+=r[n][0]=-l/2}gs(e,t)}}function jU(e,t){if(!(!((s=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,s;r<o;++r){for(var l=0,u=0,f=0;l<s;++l){for(var d=e[t[l]],h=d[r][1]||0,m=d[r-1][1]||0,v=(h-m)/2,b=0;b<l;++b){var x=e[t[b]],S=x[r][1]||0,y=x[r-1][1]||0;v+=S-y}u+=h,f+=v*h}i[r-1][1]+=i[r-1][0]=n,u&&(n-=f/u)}i[r-1][1]+=i[r-1][0]=n,gs(e,t)}}function Bu(e){"@babel/helpers - typeof";return Bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bu(e)}var $U=["type","size","sizeType"];function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hy.apply(this,arguments)}function YS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(n),!0).forEach(function(r){NU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NU(e,t,n){return t=LU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LU(e){var t=IU(e,"string");return Bu(t)=="symbol"?t:t+""}function IU(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DU(e,t){if(e==null)return{};var n=RU(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RU(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var lC={symbolCircle:x_,symbolCross:oU,symbolDiamond:sU,symbolSquare:lU,symbolStar:hU,symbolTriangle:dU,symbolWye:mU},zU=Math.PI/180,BU=function(t){var n="symbol".concat($p(t));return lC[n]||x_},FU=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*zU;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}},VU=function(t,n){lC["symbol".concat($p(t))]=n},__=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,s=t.sizeType,l=s===void 0?"area":s,u=DU(t,$U),f=QS(QS({},u),{},{type:r,size:o,sizeType:l}),d=function(){var S=BU(r),y=vU().type(S).size(FU(o,l,r));return y()},h=f.className,m=f.cx,v=f.cy,b=Ee(f,!0);return m===+m&&v===+v&&o===+o?D.createElement("path",hy({},b,{className:Ne("recharts-symbols",h),transform:"translate(".concat(m,", ").concat(v,")"),d:d()})):null};__.registerSymbol=VU;function ys(e){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(e)}function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dy.apply(this,arguments)}function JS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(n),!0).forEach(function(r){Fu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cC(r.key),r)}}function ZU(e,t,n){return t&&HU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GU(e,t,n){return t=nd(t),KU(e,uC()?Reflect.construct(t,n||[],nd(e).constructor):t.apply(e,n))}function KU(e,t){if(t&&(ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qU(e)}function qU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uC=function(){return!!e})()}function nd(e){return nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nd(e)}function XU(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&&py(e,t)}function py(e,t){return py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},py(e,t)}function Fu(e,t,n){return t=cC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cC(e){var t=YU(e,"string");return ys(t)=="symbol"?t:t+""}function YU(e,t){if(ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yn=32,b_=function(e){function t(){return WU(this,t),GU(this,t,arguments)}return XU(t,e),ZU(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Yn/2,s=Yn/6,l=Yn/3,u=r.inactive?i:r.color;if(r.type==="plainline")return D.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Yn,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return D.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,`
|
|
315
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,`
|
|
316
|
+
H`).concat(Yn,"M").concat(2*l,",").concat(o,`
|
|
317
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return D.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(Yn/8,"h").concat(Yn,"v").concat(Yn*3/4,"h").concat(-Yn,"z"),className:"recharts-legend-icon"});if(D.isValidElement(r.legendIcon)){var f=UU({},r);return delete f.legendIcon,D.cloneElement(r.legendIcon,f)}return D.createElement(__,{fill:u,cx:o,cy:o,size:Yn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,u=i.formatter,f=i.inactiveColor,d={x:0,y:0,width:Yn,height:Yn},h={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,b){var x=v.formatter||u,S=Ne(Fu(Fu({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",v.inactive));if(v.type==="none")return null;var y=Pe(v.value)?null:v.value;vi(!Pe(v.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 _=v.inactive?f:v.color;return D.createElement("li",dy({className:S,style:h,key:"legend-item-".concat(b)},Xh(r.props,v,b)),D.createElement(iy,{width:s,height:s,viewBox:d,style:m},r.renderIcon(v)),D.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},x?x(y,v,b):y))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,s=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return D.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);Fu(b_,"displayName","Legend");Fu(b_,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var QU=_p;function JU(){this.__data__=new QU,this.size=0}var e9=JU;function t9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var n9=t9;function r9(e){return this.__data__.get(e)}var i9=r9;function o9(e){return this.__data__.has(e)}var a9=o9,s9=_p,l9=l_,u9=u_,c9=200;function f9(e,t){var n=this.__data__;if(n instanceof s9){var r=n.__data__;if(!l9||r.length<c9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new u9(r)}return n.set(e,t),this.size=n.size,this}var h9=f9,d9=_p,p9=e9,m9=n9,v9=i9,g9=a9,y9=h9;function Js(e){var t=this.__data__=new d9(e);this.size=t.size}Js.prototype.clear=p9;Js.prototype.delete=m9;Js.prototype.get=v9;Js.prototype.has=g9;Js.prototype.set=y9;var fC=Js,x9="__lodash_hash_undefined__";function _9(e){return this.__data__.set(e,x9),this}var b9=_9;function w9(e){return this.__data__.has(e)}var S9=w9,P9=u_,O9=b9,T9=S9;function rd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new P9;++t<n;)this.add(e[t])}rd.prototype.add=rd.prototype.push=O9;rd.prototype.has=T9;var hC=rd;function A9(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var dC=A9;function E9(e,t){return e.has(t)}var pC=E9,k9=hC,M9=dC,C9=pC,j9=1,$9=2;function N9(e,t,n,r,i,o){var s=n&j9,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var h=-1,m=!0,v=n&$9?new k9:void 0;for(o.set(e,t),o.set(t,e);++h<l;){var b=e[h],x=t[h];if(r)var S=s?r(x,b,h,t,e,o):r(b,x,h,e,t,o);if(S!==void 0){if(S)continue;m=!1;break}if(v){if(!M9(t,function(y,_){if(!C9(v,_)&&(b===y||i(b,y,n,r,o)))return v.push(_)})){m=!1;break}}else if(!(b===x||i(b,x,n,r,o))){m=!1;break}}return o.delete(e),o.delete(t),m}var mC=N9,L9=Kr,I9=L9.Uint8Array,D9=I9;function R9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var z9=R9;function B9(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var w_=B9,eP=Cc,tP=D9,F9=s_,V9=mC,U9=z9,W9=w_,H9=1,Z9=2,G9="[object Boolean]",K9="[object Date]",q9="[object Error]",X9="[object Map]",Y9="[object Number]",Q9="[object RegExp]",J9="[object Set]",eW="[object String]",tW="[object Symbol]",nW="[object ArrayBuffer]",rW="[object DataView]",nP=eP?eP.prototype:void 0,vv=nP?nP.valueOf:void 0;function iW(e,t,n,r,i,o,s){switch(n){case rW:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nW:return!(e.byteLength!=t.byteLength||!o(new tP(e),new tP(t)));case G9:case K9:case Y9:return F9(+e,+t);case q9:return e.name==t.name&&e.message==t.message;case Q9:case eW:return e==t+"";case X9:var l=U9;case J9:var u=r&H9;if(l||(l=W9),e.size!=t.size&&!u)return!1;var f=s.get(e);if(f)return f==t;r|=Z9,s.set(e,t);var d=V9(l(e),l(t),r,i,o,s);return s.delete(e),d;case tW:if(vv)return vv.call(e)==vv.call(t)}return!1}var oW=iW;function aW(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var vC=aW,sW=vC,lW=Pn;function uW(e,t,n){var r=t(e);return lW(e)?r:sW(r,n(e))}var cW=uW;function fW(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}var hW=fW;function dW(){return[]}var pW=dW,mW=hW,vW=pW,gW=Object.prototype,yW=gW.propertyIsEnumerable,rP=Object.getOwnPropertySymbols,xW=rP?function(e){return e==null?[]:(e=Object(e),mW(rP(e),function(t){return yW.call(e,t)}))}:vW,_W=xW;function bW(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var wW=bW,SW=Ei,PW=ki,OW="[object Arguments]";function TW(e){return PW(e)&&SW(e)==OW}var AW=TW,iP=AW,EW=ki,gC=Object.prototype,kW=gC.hasOwnProperty,MW=gC.propertyIsEnumerable,CW=iP(function(){return arguments}())?iP:function(e){return EW(e)&&kW.call(e,"callee")&&!MW.call(e,"callee")},S_=CW,id={exports:{}};function jW(){return!1}var $W=jW;id.exports;(function(e,t){var n=Kr,r=$W,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,l=s?n.Buffer:void 0,u=l?l.isBuffer:void 0,f=u||r;e.exports=f})(id,id.exports);var yC=id.exports,NW=9007199254740991,LW=/^(?:0|[1-9]\d*)$/;function IW(e,t){var n=typeof e;return t=t??NW,!!t&&(n=="number"||n!="symbol"&&LW.test(e))&&e>-1&&e%1==0&&e<t}var P_=IW,DW=9007199254740991;function RW(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=DW}var O_=RW,zW=Ei,BW=O_,FW=ki,VW="[object Arguments]",UW="[object Array]",WW="[object Boolean]",HW="[object Date]",ZW="[object Error]",GW="[object Function]",KW="[object Map]",qW="[object Number]",XW="[object Object]",YW="[object RegExp]",QW="[object Set]",JW="[object String]",e7="[object WeakMap]",t7="[object ArrayBuffer]",n7="[object DataView]",r7="[object Float32Array]",i7="[object Float64Array]",o7="[object Int8Array]",a7="[object Int16Array]",s7="[object Int32Array]",l7="[object Uint8Array]",u7="[object Uint8ClampedArray]",c7="[object Uint16Array]",f7="[object Uint32Array]",et={};et[r7]=et[i7]=et[o7]=et[a7]=et[s7]=et[l7]=et[u7]=et[c7]=et[f7]=!0;et[VW]=et[UW]=et[t7]=et[WW]=et[n7]=et[HW]=et[ZW]=et[GW]=et[KW]=et[qW]=et[XW]=et[YW]=et[QW]=et[JW]=et[e7]=!1;function h7(e){return FW(e)&&BW(e.length)&&!!et[zW(e)]}var d7=h7;function p7(e){return function(t){return e(t)}}var xC=p7,od={exports:{}};od.exports;(function(e,t){var n=AM,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&n.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(od,od.exports);var m7=od.exports,v7=d7,g7=xC,oP=m7,aP=oP&&oP.isTypedArray,y7=aP?g7(aP):v7,_C=y7,x7=wW,_7=S_,b7=Pn,w7=yC,S7=P_,P7=_C,O7=Object.prototype,T7=O7.hasOwnProperty;function A7(e,t){var n=b7(e),r=!n&&_7(e),i=!n&&!r&&w7(e),o=!n&&!r&&!i&&P7(e),s=n||r||i||o,l=s?x7(e.length,String):[],u=l.length;for(var f in e)(t||T7.call(e,f))&&!(s&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||S7(f,u)))&&l.push(f);return l}var E7=A7,k7=Object.prototype;function M7(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||k7;return e===n}var C7=M7;function j7(e,t){return function(n){return e(t(n))}}var bC=j7,$7=bC,N7=$7(Object.keys,Object),L7=N7,I7=C7,D7=L7,R7=Object.prototype,z7=R7.hasOwnProperty;function B7(e){if(!I7(e))return D7(e);var t=[];for(var n in Object(e))z7.call(e,n)&&n!="constructor"&&t.push(n);return t}var F7=B7,V7=a_,U7=O_;function W7(e){return e!=null&&U7(e.length)&&!V7(e)}var $c=W7,H7=E7,Z7=F7,G7=$c;function K7(e){return G7(e)?H7(e):Z7(e)}var Dp=K7,q7=cW,X7=_W,Y7=Dp;function Q7(e){return q7(e,Y7,X7)}var J7=Q7,sP=J7,eH=1,tH=Object.prototype,nH=tH.hasOwnProperty;function rH(e,t,n,r,i,o){var s=n&eH,l=sP(e),u=l.length,f=sP(t),d=f.length;if(u!=d&&!s)return!1;for(var h=u;h--;){var m=l[h];if(!(s?m in t:nH.call(t,m)))return!1}var v=o.get(e),b=o.get(t);if(v&&b)return v==t&&b==e;var x=!0;o.set(e,t),o.set(t,e);for(var S=s;++h<u;){m=l[h];var y=e[m],_=t[m];if(r)var w=s?r(_,y,m,t,e,o):r(y,_,m,e,t,o);if(!(w===void 0?y===_||i(y,_,n,r,o):w)){x=!1;break}S||(S=m=="constructor")}if(x&&!S){var E=e.constructor,P=t.constructor;E!=P&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof P=="function"&&P instanceof P)&&(x=!1)}return o.delete(e),o.delete(t),x}var iH=rH,oH=ha,aH=Kr,sH=oH(aH,"DataView"),lH=sH,uH=ha,cH=Kr,fH=uH(cH,"Promise"),hH=fH,dH=ha,pH=Kr,mH=dH(pH,"Set"),wC=mH,vH=ha,gH=Kr,yH=vH(gH,"WeakMap"),xH=yH,my=lH,vy=l_,gy=hH,yy=wC,xy=xH,SC=Ei,el=kM,lP="[object Map]",_H="[object Object]",uP="[object Promise]",cP="[object Set]",fP="[object WeakMap]",hP="[object DataView]",bH=el(my),wH=el(vy),SH=el(gy),PH=el(yy),OH=el(xy),Lo=SC;(my&&Lo(new my(new ArrayBuffer(1)))!=hP||vy&&Lo(new vy)!=lP||gy&&Lo(gy.resolve())!=uP||yy&&Lo(new yy)!=cP||xy&&Lo(new xy)!=fP)&&(Lo=function(e){var t=SC(e),n=t==_H?e.constructor:void 0,r=n?el(n):"";if(r)switch(r){case bH:return hP;case wH:return lP;case SH:return uP;case PH:return cP;case OH:return fP}return t});var TH=Lo,gv=fC,AH=mC,EH=oW,kH=iH,dP=TH,pP=Pn,mP=yC,MH=_C,CH=1,vP="[object Arguments]",gP="[object Array]",Uf="[object Object]",jH=Object.prototype,yP=jH.hasOwnProperty;function $H(e,t,n,r,i,o){var s=pP(e),l=pP(t),u=s?gP:dP(e),f=l?gP:dP(t);u=u==vP?Uf:u,f=f==vP?Uf:f;var d=u==Uf,h=f==Uf,m=u==f;if(m&&mP(e)){if(!mP(t))return!1;s=!0,d=!1}if(m&&!d)return o||(o=new gv),s||MH(e)?AH(e,t,n,r,i,o):EH(e,t,u,n,r,i,o);if(!(n&CH)){var v=d&&yP.call(e,"__wrapped__"),b=h&&yP.call(t,"__wrapped__");if(v||b){var x=v?e.value():e,S=b?t.value():t;return o||(o=new gv),i(x,S,n,r,o)}}return m?(o||(o=new gv),kH(e,t,n,r,i,o)):!1}var NH=$H,LH=NH,xP=ki;function PC(e,t,n,r,i){return e===t?!0:e==null||t==null||!xP(e)&&!xP(t)?e!==e&&t!==t:LH(e,t,n,r,PC,i)}var T_=PC,IH=fC,DH=T_,RH=1,zH=2;function BH(e,t,n,r){var i=n.length,o=i,s=!r;if(e==null)return!o;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=n[i];var u=l[0],f=e[u],d=l[1];if(s&&l[2]){if(f===void 0&&!(u in e))return!1}else{var h=new IH;if(r)var m=r(f,d,u,e,t,h);if(!(m===void 0?DH(d,f,RH|zH,r,h):m))return!1}}return!0}var FH=BH,VH=po;function UH(e){return e===e&&!VH(e)}var OC=UH,WH=OC,HH=Dp;function ZH(e){for(var t=HH(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,WH(i)]}return t}var GH=ZH;function KH(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var TC=KH,qH=FH,XH=GH,YH=TC;function QH(e){var t=XH(e);return t.length==1&&t[0][2]?YH(t[0][0],t[0][1]):function(n){return n===e||qH(n,e,t)}}var JH=QH;function eZ(e,t){return e!=null&&t in Object(e)}var tZ=eZ,nZ=NM,rZ=S_,iZ=Pn,oZ=P_,aZ=O_,sZ=wp;function lZ(e,t,n){t=nZ(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=sZ(t[r]);if(!(o=e!=null&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&aZ(i)&&oZ(s,i)&&(iZ(e)||rZ(e)))}var uZ=lZ,cZ=tZ,fZ=uZ;function hZ(e,t){return e!=null&&fZ(e,t,cZ)}var dZ=hZ,pZ=T_,mZ=LM,vZ=dZ,gZ=o_,yZ=OC,xZ=TC,_Z=wp,bZ=1,wZ=2;function SZ(e,t){return gZ(e)&&yZ(t)?xZ(_Z(e),t):function(n){var r=mZ(n,e);return r===void 0&&r===t?vZ(n,e):pZ(t,r,bZ|wZ)}}var PZ=SZ;function OZ(e){return e}var tl=OZ;function TZ(e){return function(t){return t==null?void 0:t[e]}}var AZ=TZ,EZ=h_;function kZ(e){return function(t){return EZ(t,e)}}var MZ=kZ,CZ=AZ,jZ=MZ,$Z=o_,NZ=wp;function LZ(e){return $Z(e)?CZ(NZ(e)):jZ(e)}var IZ=LZ,DZ=JH,RZ=PZ,zZ=tl,BZ=Pn,FZ=IZ;function VZ(e){return typeof e=="function"?e:e==null?zZ:typeof e=="object"?BZ(e)?RZ(e[0],e[1]):DZ(e):FZ(e)}var mo=VZ;function UZ(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var AC=UZ;function WZ(e){return e!==e}var HZ=WZ;function ZZ(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var GZ=ZZ,KZ=AC,qZ=HZ,XZ=GZ;function YZ(e,t,n){return t===t?XZ(e,t,n):KZ(e,qZ,n)}var QZ=YZ,JZ=QZ;function eG(e,t){var n=e==null?0:e.length;return!!n&&JZ(e,t,0)>-1}var tG=eG;function nG(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var rG=nG;function iG(){}var oG=iG,yv=wC,aG=oG,sG=w_,lG=1/0,uG=yv&&1/sG(new yv([,-0]))[1]==lG?function(e){return new yv(e)}:aG,cG=uG,fG=hC,hG=tG,dG=rG,pG=pC,mG=cG,vG=w_,gG=200;function yG(e,t,n){var r=-1,i=hG,o=e.length,s=!0,l=[],u=l;if(n)s=!1,i=dG;else if(o>=gG){var f=t?null:mG(e);if(f)return vG(f);s=!1,i=pG,u=new fG}else u=t?[]:l;e:for(;++r<o;){var d=e[r],h=t?t(d):d;if(d=n||d!==0?d:0,s&&h===h){for(var m=u.length;m--;)if(u[m]===h)continue e;t&&u.push(h),l.push(d)}else i(u,h,n)||(u!==l&&u.push(h),l.push(d))}return l}var xG=yG,_G=mo,bG=xG;function wG(e,t){return e&&e.length?bG(e,_G(t)):[]}var SG=wG;const _P=Ge(SG);function EC(e,t,n){return t===!0?_P(e,n):Pe(t)?_P(e,t):e}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 PG=["ref"];function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){Rp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MC(r.key),r)}}function TG(e,t,n){return t&&wP(e.prototype,t),n&&wP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function AG(e,t,n){return t=ad(t),EG(e,kC()?Reflect.construct(t,n||[],ad(e).constructor):t.apply(e,n))}function EG(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 kG(e)}function kG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kC=function(){return!!e})()}function ad(e){return ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ad(e)}function MG(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&&_y(e,t)}function _y(e,t){return _y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_y(e,t)}function Rp(e,t,n){return t=MC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MC(e){var t=CG(e,"string");return xs(t)=="symbol"?t:t+""}function CG(e,t){if(xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function jG(e,t){if(e==null)return{};var n=$G(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $G(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function NG(e){return e.value}function LG(e,t){if(D.isValidElement(e))return D.cloneElement(e,t);if(typeof e=="function")return D.createElement(e,t);t.ref;var n=jG(t,PG);return D.createElement(b_,n)}var SP=1,is=function(e){function t(){var n;OG(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=AG(this,t,[].concat(i)),Rp(n,"lastBoundingBox",{width:-1,height:-1}),n}return MG(t,e),TG(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>SP||Math.abs(i.height-this.lastBoundingBox.height)>SP)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ni({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,u=i.margin,f=i.chartWidth,d=i.chartHeight,h,m;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&o==="vertical"){var v=this.getBBoxSnapshot();h={left:((f||0)-v.width)/2}}else h=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();m={top:((d||0)-b.height)/2}}else m=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return ni(ni({},h),m)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,s=i.width,l=i.height,u=i.wrapperStyle,f=i.payloadUniqBy,d=i.payload,h=ni(ni({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return D.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(v){r.wrapperNode=v}},LG(o,ni(ni({},this.props),{},{payload:EC(d,f,NG)})))}}],[{key:"getWithHeight",value:function(r,i){var o=ni(ni({},this.defaultProps),r.props),s=o.layout;return s==="vertical"&&ie(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])}(j.PureComponent);Rp(is,"displayName","Legend");Rp(is,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var PP=Cc,IG=S_,DG=Pn,OP=PP?PP.isConcatSpreadable:void 0;function RG(e){return DG(e)||IG(e)||!!(OP&&e&&e[OP])}var zG=RG,BG=vC,FG=zG;function CC(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=FG),i||(i=[]);++o<s;){var l=e[o];t>0&&n(l)?t>1?CC(l,t-1,n,r,i):BG(i,l):r||(i[i.length]=l)}return i}var jC=CC;function VG(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),l=s.length;l--;){var u=s[e?l:++i];if(n(o[u],u,o)===!1)break}return t}}var UG=VG,WG=UG,HG=WG(),ZG=HG,GG=ZG,KG=Dp;function qG(e,t){return e&&GG(e,t,KG)}var $C=qG,XG=$c;function YG(e,t){return function(n,r){if(n==null)return n;if(!XG(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o<i)&&r(s[o],o,s)!==!1;);return n}}var QG=YG,JG=$C,eK=QG,tK=eK(JG),A_=tK,nK=A_,rK=$c;function iK(e,t){var n=-1,r=rK(e)?Array(e.length):[];return nK(e,function(i,o,s){r[++n]=t(i,o,s)}),r}var NC=iK;function oK(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var aK=oK,TP=Gs;function sK(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=TP(e),s=t!==void 0,l=t===null,u=t===t,f=TP(t);if(!l&&!f&&!o&&e>t||o&&s&&u&&!l&&!f||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!f&&e<t||f&&n&&i&&!r&&!o||l&&n&&i||!s&&i||!u)return-1}return 0}var lK=sK,uK=lK;function cK(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,l=n.length;++r<s;){var u=uK(i[r],o[r]);if(u){if(r>=l)return u;var f=n[r];return u*(f=="desc"?-1:1)}}return e.index-t.index}var fK=cK,xv=f_,hK=h_,dK=mo,pK=NC,mK=aK,vK=xC,gK=fK,yK=tl,xK=Pn;function _K(e,t,n){t.length?t=xv(t,function(o){return xK(o)?function(s){return hK(s,o.length===1?o[0]:o)}:o}):t=[yK];var r=-1;t=xv(t,vK(dK));var i=pK(e,function(o,s,l){var u=xv(t,function(f){return f(o)});return{criteria:u,index:++r,value:o}});return mK(i,function(o,s){return gK(o,s,n)})}var bK=_K;function wK(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var SK=wK,PK=SK,AP=Math.max;function OK(e,t,n){return t=AP(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=AP(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(s),PK(e,this,l)}}var TK=OK;function AK(e){return function(){return e}}var EK=AK,kK=ha,MK=function(){try{var e=kK(Object,"defineProperty");return e({},"",{}),e}catch{}}(),LC=MK,CK=EK,EP=LC,jK=tl,$K=EP?function(e,t){return EP(e,"toString",{configurable:!0,enumerable:!1,value:CK(t),writable:!0})}:jK,NK=$K,LK=800,IK=16,DK=Date.now;function RK(e){var t=0,n=0;return function(){var r=DK(),i=IK-(r-n);if(n=r,i>0){if(++t>=LK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zK=RK,BK=NK,FK=zK,VK=FK(BK),UK=VK,WK=tl,HK=TK,ZK=UK;function GK(e,t){return ZK(HK(e,t,WK),e+"")}var KK=GK,qK=s_,XK=$c,YK=P_,QK=po;function JK(e,t,n){if(!QK(n))return!1;var r=typeof t;return(r=="number"?XK(n)&&YK(t,n.length):r=="string"&&t in n)?qK(n[t],e):!1}var zp=JK,eq=jC,tq=bK,nq=KK,kP=zp,rq=nq(function(e,t){if(e==null)return[];var n=t.length;return n>1&&kP(e,t[0],t[1])?t=[]:n>2&&kP(t[0],t[1],t[2])&&(t=[t[0]]),tq(e,eq(t,1),[])}),iq=rq;const E_=Ge(iq);function Vu(e){"@babel/helpers - typeof";return Vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(e)}function by(){return by=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},by.apply(this,arguments)}function oq(e,t){return uq(e)||lq(e,t)||sq(e,t)||aq()}function aq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
318
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sq(e,t){if(e){if(typeof e=="string")return MP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MP(e,t)}}function MP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function uq(e){if(Array.isArray(e))return e}function CP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _v(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CP(Object(n),!0).forEach(function(r){cq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cq(e,t,n){return t=fq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fq(e){var t=hq(e,"string");return Vu(t)=="symbol"?t:t+""}function hq(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dq(e){return Array.isArray(e)&&Ct(e[0])&&Ct(e[1])?e.join(" ~ "):e}var pq=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,s=t.itemStyle,l=s===void 0?{}:s,u=t.labelStyle,f=u===void 0?{}:u,d=t.payload,h=t.formatter,m=t.itemSorter,v=t.wrapperClassName,b=t.labelClassName,x=t.label,S=t.labelFormatter,y=t.accessibilityLayer,_=y===void 0?!1:y,w=function(){if(d&&d.length){var R={padding:0,margin:0},K=(m?E_(d,m):d).map(function(H,W){if(H.type==="none")return null;var Z=_v({display:"block",paddingTop:4,paddingBottom:4,color:H.color||"#000"},l),G=H.formatter||h||dq,$=H.value,q=H.name,V=$,te=q;if(G&&V!=null&&te!=null){var Q=G($,q,H,W,d);if(Array.isArray(Q)){var ae=oq(Q,2);V=ae[0],te=ae[1]}else V=Q}return D.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:Z},Ct(te)?D.createElement("span",{className:"recharts-tooltip-item-name"},te):null,Ct(te)?D.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,D.createElement("span",{className:"recharts-tooltip-item-value"},V),D.createElement("span",{className:"recharts-tooltip-item-unit"},H.unit||""))});return D.createElement("ul",{className:"recharts-tooltip-item-list",style:R},K)}return null},E=_v({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),P=_v({margin:0},f),A=!Me(x),M=A?x:"",C=Ne("recharts-default-tooltip",v),N=Ne("recharts-tooltip-label",b);A&&S&&d!==void 0&&d!==null&&(M=S(x,d));var B=_?{role:"status","aria-live":"assertive"}:{};return D.createElement("div",by({className:C,style:E},B),D.createElement("p",{className:N,style:P},D.isValidElement(M)?M:"".concat(M)),w())};function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function Wf(e,t,n){return t=mq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mq(e){var t=vq(e,"string");return Uu(t)=="symbol"?t:t+""}function vq(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $l="recharts-tooltip-wrapper",gq={visibility:"hidden"};function yq(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ne($l,Wf(Wf(Wf(Wf({},"".concat($l,"-right"),ie(n)&&t&&ie(t.x)&&n>=t.x),"".concat($l,"-left"),ie(n)&&t&&ie(t.x)&&n<t.x),"".concat($l,"-bottom"),ie(r)&&t&&ie(t.y)&&r>=t.y),"".concat($l,"-top"),ie(r)&&t&&ie(t.y)&&r<t.y))}function jP(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,s=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,f=e.viewBoxDimension;if(o&&ie(o[r]))return o[r];var d=n[r]-l-i,h=n[r]+i;if(t[r])return s[r]?d:h;if(s[r]){var m=d,v=u[r];return m<v?Math.max(h,u[r]):Math.max(d,u[r])}var b=h+l,x=u[r]+f;return b>x?Math.max(d,u[r]):Math.max(h,u[r])}function xq(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function _q(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,s=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,f,d,h;return s.height>0&&s.width>0&&n?(d=jP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.width,viewBox:u,viewBoxDimension:u.width}),h=jP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.height,viewBox:u,viewBoxDimension:u.height}),f=xq({translateX:d,translateY:h,useTranslate3d:l})):f=gq,{cssProperties:f,cssClasses:yq({translateX:d,translateY:h,coordinate:n})}}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 $P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$P(Object(n),!0).forEach(function(r){Sy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DC(r.key),r)}}function Sq(e,t,n){return t&&wq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pq(e,t,n){return t=sd(t),Oq(e,IC()?Reflect.construct(t,n||[],sd(e).constructor):t.apply(e,n))}function Oq(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 Tq(e)}function Tq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IC=function(){return!!e})()}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sd(e)}function Aq(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&&wy(e,t)}function wy(e,t){return wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wy(e,t)}function Sy(e,t,n){return t=DC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DC(e){var t=Eq(e,"string");return _s(t)=="symbol"?t:t+""}function Eq(e,t){if(_s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var LP=1,kq=function(e){function t(){var n;bq(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Pq(this,t,[].concat(i)),Sy(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Sy(n,"handleKeyDown",function(s){if(s.key==="Escape"){var l,u,f,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(u=n.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&l!==void 0?l:0,y:(f=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&f!==void 0?f:0}})}}),n}return Aq(t,e),Sq(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>LP||Math.abs(r.height-this.state.lastBoundingBox.height)>LP)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,f=i.children,d=i.coordinate,h=i.hasPayload,m=i.isAnimationActive,v=i.offset,b=i.position,x=i.reverseDirection,S=i.useTranslate3d,y=i.viewBox,_=i.wrapperStyle,w=_q({allowEscapeViewBox:s,coordinate:d,offsetTopLeft:v,position:b,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:y}),E=w.cssClasses,P=w.cssProperties,A=NP(NP({transition:m&&o?"transform ".concat(l,"ms ").concat(u):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&h?"visible":"hidden",position:"absolute",top:0,left:0},_);return D.createElement("div",{tabIndex:-1,className:E,style:A,ref:function(C){r.wrapperNode=C}},f)}}])}(j.PureComponent),Mq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},nl={isSsr:Mq()};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 IP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IP(Object(n),!0).forEach(function(r){k_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zC(r.key),r)}}function $q(e,t,n){return t&&jq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nq(e,t,n){return t=ld(t),Lq(e,RC()?Reflect.construct(t,n||[],ld(e).constructor):t.apply(e,n))}function Lq(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 Iq(e)}function Iq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RC=function(){return!!e})()}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ld(e)}function Dq(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&&Py(e,t)}function Py(e,t){return Py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Py(e,t)}function k_(e,t,n){return t=zC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zC(e){var t=Rq(e,"string");return bs(t)=="symbol"?t:t+""}function Rq(e,t){if(bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zq(e){return e.dataKey}function Bq(e,t){return D.isValidElement(e)?D.cloneElement(e,t):typeof e=="function"?D.createElement(e,t):D.createElement(pq,t)}var ii=function(e){function t(){return Cq(this,t),Nq(this,t,arguments)}return Dq(t,e),$q(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,f=i.content,d=i.coordinate,h=i.filterNull,m=i.isAnimationActive,v=i.offset,b=i.payload,x=i.payloadUniqBy,S=i.position,y=i.reverseDirection,_=i.useTranslate3d,w=i.viewBox,E=i.wrapperStyle,P=b??[];h&&P.length&&(P=EC(b.filter(function(M){return M.value!=null&&(M.hide!==!0||r.props.includeHidden)}),x,zq));var A=P.length>0;return D.createElement(kq,{allowEscapeViewBox:s,animationDuration:l,animationEasing:u,isAnimationActive:m,active:o,coordinate:d,hasPayload:A,offset:v,position:S,reverseDirection:y,useTranslate3d:_,viewBox:w,wrapperStyle:E},Bq(f,DP(DP({},this.props),{},{payload:P})))}}])}(j.PureComponent);k_(ii,"displayName","Tooltip");k_(ii,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nl.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 Fq=Kr,Vq=function(){return Fq.Date.now()},Uq=Vq,Wq=/\s/;function Hq(e){for(var t=e.length;t--&&Wq.test(e.charAt(t)););return t}var Zq=Hq,Gq=Zq,Kq=/^\s+/;function qq(e){return e&&e.slice(0,Gq(e)+1).replace(Kq,"")}var Xq=qq,Yq=Xq,RP=po,Qq=Gs,zP=NaN,Jq=/^[-+]0x[0-9a-f]+$/i,eX=/^0b[01]+$/i,tX=/^0o[0-7]+$/i,nX=parseInt;function rX(e){if(typeof e=="number")return e;if(Qq(e))return zP;if(RP(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=RP(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Yq(e);var n=eX.test(e);return n||tX.test(e)?nX(e.slice(2),n?2:8):Jq.test(e)?zP:+e}var BC=rX,iX=po,bv=Uq,BP=BC,oX="Expected a function",aX=Math.max,sX=Math.min;function lX(e,t,n){var r,i,o,s,l,u,f=0,d=!1,h=!1,m=!0;if(typeof e!="function")throw new TypeError(oX);t=BP(t)||0,iX(n)&&(d=!!n.leading,h="maxWait"in n,o=h?aX(BP(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m);function v(A){var M=r,C=i;return r=i=void 0,f=A,s=e.apply(C,M),s}function b(A){return f=A,l=setTimeout(y,t),d?v(A):s}function x(A){var M=A-u,C=A-f,N=t-M;return h?sX(N,o-C):N}function S(A){var M=A-u,C=A-f;return u===void 0||M>=t||M<0||h&&C>=o}function y(){var A=bv();if(S(A))return _(A);l=setTimeout(y,x(A))}function _(A){return l=void 0,m&&r?v(A):(r=i=void 0,s)}function w(){l!==void 0&&clearTimeout(l),f=0,r=u=i=l=void 0}function E(){return l===void 0?s:_(bv())}function P(){var A=bv(),M=S(A);if(r=arguments,i=this,u=A,M){if(l===void 0)return b(u);if(h)return clearTimeout(l),l=setTimeout(y,t),v(u)}return l===void 0&&(l=setTimeout(y,t)),s}return P.cancel=w,P.flush=E,P}var uX=lX,cX=uX,fX=po,hX="Expected a function";function dX(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(hX);return fX(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),cX(e,t,{leading:r,maxWait:t,trailing:i})}var pX=dX;const FC=Ge(pX);function Wu(e){"@babel/helpers - typeof";return Wu=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},Wu(e)}function FP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FP(Object(n),!0).forEach(function(r){mX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mX(e,t,n){return t=vX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vX(e){var t=gX(e,"string");return Wu(t)=="symbol"?t:t+""}function gX(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yX(e,t){return wX(e)||bX(e,t)||_X(e,t)||xX()}function xX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
319
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _X(e,t){if(e){if(typeof e=="string")return VP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VP(e,t)}}function VP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function wX(e){if(Array.isArray(e))return e}var UP=j.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,s=o===void 0?"100%":o,l=e.height,u=l===void 0?"100%":l,f=e.minWidth,d=f===void 0?0:f,h=e.minHeight,m=e.maxHeight,v=e.children,b=e.debounce,x=b===void 0?0:b,S=e.id,y=e.className,_=e.onResize,w=e.style,E=w===void 0?{}:w,P=j.useRef(null),A=j.useRef();A.current=_,j.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var M=j.useState({containerWidth:i.width,containerHeight:i.height}),C=yX(M,2),N=C[0],B=C[1],z=j.useCallback(function(K,H){B(function(W){var Z=Math.round(K),G=Math.round(H);return W.containerWidth===Z&&W.containerHeight===G?W:{containerWidth:Z,containerHeight:G}})},[]);j.useEffect(function(){var K=function(q){var V,te=q[0].contentRect,Q=te.width,ae=te.height;z(Q,ae),(V=A.current)===null||V===void 0||V.call(A,Q,ae)};x>0&&(K=FC(K,x,{trailing:!0,leading:!1}));var H=new ResizeObserver(K),W=P.current.getBoundingClientRect(),Z=W.width,G=W.height;return z(Z,G),H.observe(P.current),function(){H.disconnect()}},[z,x]);var R=j.useMemo(function(){var K=N.containerWidth,H=N.containerHeight;if(K<0||H<0)return null;vi(Vo(s)||Vo(u),`The width(%s) and height(%s) are both fixed numbers,
|
|
320
|
+
maybe you don't need to use a ResponsiveContainer.`,s,u),vi(!n||n>0,"The aspect(%s) must be greater than zero.",n);var W=Vo(s)?K:s,Z=Vo(u)?H:u;n&&n>0&&(W?Z=W/n:Z&&(W=Z*n),m&&Z>m&&(Z=m)),vi(W>0||Z>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
321
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
322
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
323
|
+
height and width.`,W,Z,s,u,d,h,n);var G=!Array.isArray(v)&&mi(v.type).endsWith("Chart");return D.Children.map(v,function($){return D.isValidElement($)?j.cloneElement($,Hf({width:W,height:Z},G?{style:Hf({height:"100%",width:"100%",maxHeight:Z,maxWidth:W},$.props.style)}:{})):$})},[n,v,u,m,h,d,N,s]);return D.createElement("div",{id:S?"".concat(S):void 0,className:Ne("recharts-responsive-container",y),style:Hf(Hf({},E),{},{width:s,height:u,minWidth:d,minHeight:h,maxHeight:m}),ref:P},R)}),M_=function(t){return null};M_.displayName="Cell";function Hu(e){"@babel/helpers - typeof";return Hu=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},Hu(e)}function WP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WP(Object(n),!0).forEach(function(r){SX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SX(e,t,n){return t=PX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PX(e){var t=OX(e,"string");return Hu(t)=="symbol"?t:t+""}function OX(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ea={widthCache:{},cacheCount:0},TX=2e3,AX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},HP="recharts_measurement_span";function EX(e){var t=Oy({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var du=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||nl.isSsr)return{width:0,height:0};var r=EX(n),i=JSON.stringify({text:t,copyStyle:r});if(Ea.widthCache[i])return Ea.widthCache[i];try{var o=document.getElementById(HP);o||(o=document.createElement("span"),o.setAttribute("id",HP),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var s=Oy(Oy({},AX),r);Object.assign(o.style,s),o.textContent="".concat(t);var l=o.getBoundingClientRect(),u={width:l.width,height:l.height};return Ea.widthCache[i]=u,++Ea.cacheCount>TX&&(Ea.cacheCount=0,Ea.widthCache={}),u}catch{return{width:0,height:0}}},kX=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function ud(e,t){return $X(e)||jX(e,t)||CX(e,t)||MX()}function MX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
324
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CX(e,t){if(e){if(typeof e=="string")return ZP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZP(e,t)}}function ZP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function $X(e){if(Array.isArray(e))return e}function NX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IX(r.key),r)}}function LX(e,t,n){return t&&GP(e.prototype,t),n&&GP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function IX(e){var t=DX(e,"string");return Zu(t)=="symbol"?t:t+""}function DX(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,RX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,zX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,VC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},BX=Object.keys(VC),Ka="NaN";function FX(e,t){return e*VC[t]}var Zf=function(){function e(t,n){NX(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!RX.test(n)&&(this.num=NaN,this.unit=""),BX.includes(n)&&(this.num=FX(t,n),this.unit="px")}return LX(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.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(n){var r,i=(r=zX.exec(n))!==null&&r!==void 0?r:[],o=ud(i,3),s=o[1],l=o[2];return new e(parseFloat(s),l??"")}}])}();function UC(e){if(e.includes(Ka))return Ka;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=KP.exec(t))!==null&&n!==void 0?n:[],i=ud(r,4),o=i[1],s=i[2],l=i[3],u=Zf.parse(o??""),f=Zf.parse(l??""),d=s==="*"?u.multiply(f):u.divide(f);if(d.isNaN())return Ka;t=t.replace(KP,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,m=(h=qP.exec(t))!==null&&h!==void 0?h:[],v=ud(m,4),b=v[1],x=v[2],S=v[3],y=Zf.parse(b??""),_=Zf.parse(S??""),w=x==="+"?y.add(_):y.subtract(_);if(w.isNaN())return Ka;t=t.replace(qP,w.toString())}return t}var XP=/\(([^()]*)\)/;function VX(e){for(var t=e;t.includes("(");){var n=XP.exec(t),r=ud(n,2),i=r[1];t=t.replace(XP,UC(i))}return t}function UX(e){var t=e.replace(/\s+/g,"");return t=VX(t),t=UC(t),t}function WX(e){try{return UX(e)}catch{return Ka}}function wv(e){var t=WX(e.slice(5,-1));return t===Ka?"":t}var HX=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],ZX=["dx","dy","angle","className","breakAll"];function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ty.apply(this,arguments)}function YP(e,t){if(e==null)return{};var n=GX(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function QP(e,t){return YX(e)||XX(e,t)||qX(e,t)||KX()}function KX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
325
|
+
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 JP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JP(e,t)}}function JP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function YX(e){if(Array.isArray(e))return e}var WC=/[ \f\n\r\t\v\u2028\u2029]+/,HC=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];Me(n)||(r?o=n.toString().split(""):o=n.toString().split(WC));var s=o.map(function(u){return{word:u,width:du(u,i).width}}),l=r?0:du(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:l}}catch{return null}},QX=function(t,n,r,i,o){var s=t.maxLines,l=t.children,u=t.style,f=t.breakAll,d=ie(s),h=l,m=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(Z,G){var $=G.word,q=G.width,V=Z[Z.length-1];if(V&&(i==null||o||V.width+q+r<Number(i)))V.words.push($),V.width+=q+r;else{var te={words:[$],width:q};Z.push(te)}return Z},[])},v=m(n),b=function(W){return W.reduce(function(Z,G){return Z.width>G.width?Z:G})};if(!d)return v;for(var x="…",S=function(W){var Z=h.slice(0,W),G=HC({breakAll:f,style:u,children:Z+x}).wordsWithComputedWidth,$=m(G),q=$.length>s||b($).width>Number(i);return[q,$]},y=0,_=h.length-1,w=0,E;y<=_&&w<=h.length-1;){var P=Math.floor((y+_)/2),A=P-1,M=S(A),C=QP(M,2),N=C[0],B=C[1],z=S(P),R=QP(z,1),K=R[0];if(!N&&!K&&(y=P+1),N&&K&&(_=P-1),!N&&K){E=B;break}w++}return E||v},eO=function(t){var n=Me(t)?[]:t.toString().split(WC);return[{words:n}]},JX=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,s=t.breakAll,l=t.maxLines;if((n||r)&&!nl.isSsr){var u,f,d=HC({breakAll:s,children:i,style:o});if(d){var h=d.wordsWithComputedWidth,m=d.spaceWidth;u=h,f=m}else return eO(i);return QX({breakAll:s,children:i,maxLines:l,style:o},u,f,n,r)}return eO(i)},tO="#808080",cd=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,s=t.lineHeight,l=s===void 0?"1em":s,u=t.capHeight,f=u===void 0?"0.71em":u,d=t.scaleToFit,h=d===void 0?!1:d,m=t.textAnchor,v=m===void 0?"start":m,b=t.verticalAnchor,x=b===void 0?"end":b,S=t.fill,y=S===void 0?tO:S,_=YP(t,HX),w=j.useMemo(function(){return JX({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:h,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,h,_.style,_.width]),E=_.dx,P=_.dy,A=_.angle,M=_.className,C=_.breakAll,N=YP(_,ZX);if(!Ct(r)||!Ct(o))return null;var B=r+(ie(E)?E:0),z=o+(ie(P)?P:0),R;switch(x){case"start":R=wv("calc(".concat(f,")"));break;case"middle":R=wv("calc(".concat((w.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:R=wv("calc(".concat(w.length-1," * -").concat(l,")"));break}var K=[];if(h){var H=w[0].width,W=_.width;K.push("scale(".concat((ie(W)?W/H:1)/H,")"))}return A&&K.push("rotate(".concat(A,", ").concat(B,", ").concat(z,")")),K.length&&(N.transform=K.join(" ")),D.createElement("text",Ty({},Ee(N,!0),{x:B,y:z,className:Ne("recharts-text",M),textAnchor:v,fill:y.includes("url")?tO:y}),w.map(function(Z,G){var $=Z.words.join(C?"":" ");return D.createElement("tspan",{x:B,dy:G===0?R:l,key:"".concat($,"-").concat(G)},$)}))};function io(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eY(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function C_(e){let t,n,r;e.length!==2?(t=io,n=(l,u)=>io(e(l),u),r=(l,u)=>e(l)-u):(t=e===io||e===eY?e:tY,n=e,r=e);function i(l,u,f=0,d=l.length){if(f<d){if(t(u,u)!==0)return d;do{const h=f+d>>>1;n(l[h],u)<0?f=h+1:d=h}while(f<d)}return f}function o(l,u,f=0,d=l.length){if(f<d){if(t(u,u)!==0)return d;do{const h=f+d>>>1;n(l[h],u)<=0?f=h+1:d=h}while(f<d)}return f}function s(l,u,f=0,d=l.length){const h=i(l,u,f,d-1);return h>f&&r(l[h-1],u)>-r(l[h],u)?h-1:h}return{left:i,center:s,right:o}}function tY(){return 0}function ZC(e){return e===null?NaN:+e}function*nY(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const rY=C_(io),Nc=rY.right;C_(ZC).center;class nO extends Map{constructor(t,n=aY){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(rO(this,t))}has(t){return super.has(rO(this,t))}set(t,n){return super.set(iY(this,t),n)}delete(t){return super.delete(oY(this,t))}}function rO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function iY({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function oY({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function aY(e){return e!==null&&typeof e=="object"?e.valueOf():e}function sY(e=io){if(e===io)return GC;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function GC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const lY=Math.sqrt(50),uY=Math.sqrt(10),cY=Math.sqrt(2);function fd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=lY?10:o>=uY?5:o>=cY?2:1;let l,u,f;return i<0?(f=Math.pow(10,-i)/s,l=Math.round(e*f),u=Math.round(t*f),l/f<e&&++l,u/f>t&&--u,f=-f):(f=Math.pow(10,i)*s,l=Math.round(e/f),u=Math.round(t/f),l*f<e&&++l,u*f>t&&--u),u<l&&.5<=n&&n<2?fd(e,t,n*2):[l,u,f]}function Ay(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?fd(t,e,n):fd(e,t,n);if(!(o>=i))return[];const l=o-i+1,u=new Array(l);if(r)if(s<0)for(let f=0;f<l;++f)u[f]=(o-f)/-s;else for(let f=0;f<l;++f)u[f]=(o-f)*s;else if(s<0)for(let f=0;f<l;++f)u[f]=(i+f)/-s;else for(let f=0;f<l;++f)u[f]=(i+f)*s;return u}function Ey(e,t,n){return t=+t,e=+e,n=+n,fd(e,t,n)[2]}function ky(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Ey(t,e,n):Ey(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function iO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function oO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function KC(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?GC:sY(i);r>n;){if(r-n>600){const u=r-n+1,f=t-n+1,d=Math.log(u),h=.5*Math.exp(2*d/3),m=.5*Math.sqrt(d*h*(u-h)/u)*(f-u/2<0?-1:1),v=Math.max(n,Math.floor(t-f*h/u+m)),b=Math.min(r,Math.floor(t+(u-f)*h/u+m));KC(e,t,v,b,i)}const o=e[t];let s=n,l=r;for(Nl(e,n,t),i(e[r],o)>0&&Nl(e,n,r);s<l;){for(Nl(e,s,l),++s,--l;i(e[s],o)<0;)++s;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?Nl(e,n,l):(++l,Nl(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Nl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function fY(e,t,n){if(e=Float64Array.from(nY(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return oO(e);if(t>=1)return iO(e);var r,i=(r-1)*t,o=Math.floor(i),s=iO(KC(e,o).subarray(0,o+1)),l=oO(e.subarray(o+1));return s+(l-s)*(i-o)}}function hY(e,t,n=ZC){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),s=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return s+(l-s)*(i-o)}}function dY(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function fr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Mi(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 My=Symbol("implicit");function j_(){var e=new nO,t=[],n=[],r=My;function i(o){let s=e.get(o);if(s===void 0){if(r!==My)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new nO;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return j_(t,n).unknown(r)},fr.apply(i,arguments),i}function Gu(){var e=j_().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,s,l=!1,u=0,f=0,d=.5;delete e.unknown;function h(){var m=t().length,v=i<r,b=v?i:r,x=v?r:i;o=(x-b)/Math.max(1,m-u+f*2),l&&(o=Math.floor(o)),b+=(x-b-o*(m-u))*d,s=o*(1-u),l&&(b=Math.round(b),s=Math.round(s));var S=dY(m).map(function(y){return b+o*y});return n(v?S.reverse():S)}return e.domain=function(m){return arguments.length?(t(m),h()):t()},e.range=function(m){return arguments.length?([r,i]=m,r=+r,i=+i,h()):[r,i]},e.rangeRound=function(m){return[r,i]=m,r=+r,i=+i,l=!0,h()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(m){return arguments.length?(l=!!m,h()):l},e.padding=function(m){return arguments.length?(u=Math.min(1,f=+m),h()):u},e.paddingInner=function(m){return arguments.length?(u=Math.min(1,m),h()):u},e.paddingOuter=function(m){return arguments.length?(f=+m,h()):f},e.align=function(m){return arguments.length?(d=Math.max(0,Math.min(1,m)),h()):d},e.copy=function(){return Gu(t(),[r,i]).round(l).paddingInner(u).paddingOuter(f).align(d)},fr.apply(h(),arguments)}function qC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qC(t())},e}function pu(){return qC(Gu.apply(null,arguments).paddingInner(1))}function $_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function XC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Lc(){}var Ku=.7,hd=1/Ku,os="\\s*([+-]?\\d+)\\s*",qu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pY=/^#([0-9a-f]{3,8})$/,mY=new RegExp(`^rgb\\(${os},${os},${os}\\)$`),vY=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),gY=new RegExp(`^rgba\\(${os},${os},${os},${qu}\\)$`),yY=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${qu}\\)$`),xY=new RegExp(`^hsl\\(${qu},${Wr},${Wr}\\)$`),_Y=new RegExp(`^hsla\\(${qu},${Wr},${Wr},${qu}\\)$`),aO={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};$_(Lc,Xu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sO,formatHex:sO,formatHex8:bY,formatHsl:wY,formatRgb:lO,toString:lO});function sO(){return this.rgb().formatHex()}function bY(){return this.rgb().formatHex8()}function wY(){return YC(this).formatHsl()}function lO(){return this.rgb().formatRgb()}function Xu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uO(t):n===3?new _n(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Gf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Gf(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=mY.exec(e))?new _n(t[1],t[2],t[3],1):(t=vY.exec(e))?new _n(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=gY.exec(e))?Gf(t[1],t[2],t[3],t[4]):(t=yY.exec(e))?Gf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xY.exec(e))?hO(t[1],t[2]/100,t[3]/100,1):(t=_Y.exec(e))?hO(t[1],t[2]/100,t[3]/100,t[4]):aO.hasOwnProperty(e)?uO(aO[e]):e==="transparent"?new _n(NaN,NaN,NaN,0):null}function uO(e){return new _n(e>>16&255,e>>8&255,e&255,1)}function Gf(e,t,n,r){return r<=0&&(e=t=n=NaN),new _n(e,t,n,r)}function SY(e){return e instanceof Lc||(e=Xu(e)),e?(e=e.rgb(),new _n(e.r,e.g,e.b,e.opacity)):new _n}function Cy(e,t,n,r){return arguments.length===1?SY(e):new _n(e,t,n,r??1)}function _n(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}$_(_n,Cy,XC(Lc,{brighter(e){return e=e==null?hd:Math.pow(hd,e),new _n(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new _n(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _n(Xo(this.r),Xo(this.g),Xo(this.b),dd(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:cO,formatHex:cO,formatHex8:PY,formatRgb:fO,toString:fO}));function cO(){return`#${Uo(this.r)}${Uo(this.g)}${Uo(this.b)}`}function PY(){return`#${Uo(this.r)}${Uo(this.g)}${Uo(this.b)}${Uo((isNaN(this.opacity)?1:this.opacity)*255)}`}function fO(){const e=dd(this.opacity);return`${e===1?"rgb(":"rgba("}${Xo(this.r)}, ${Xo(this.g)}, ${Xo(this.b)}${e===1?")":`, ${e})`}`}function dd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Uo(e){return e=Xo(e),(e<16?"0":"")+e.toString(16)}function hO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Sr(e,t,n,r)}function YC(e){if(e instanceof Sr)return new Sr(e.h,e.s,e.l,e.opacity);if(e instanceof Lc||(e=Xu(e)),!e)return new Sr;if(e instanceof Sr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,l=o-i,u=(o+i)/2;return l?(t===o?s=(n-r)/l+(n<r)*6:n===o?s=(r-t)/l+2:s=(t-n)/l+4,l/=u<.5?o+i:2-o-i,s*=60):l=u>0&&u<1?0:s,new Sr(s,l,u,e.opacity)}function OY(e,t,n,r){return arguments.length===1?YC(e):new Sr(e,t,n,r??1)}function Sr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$_(Sr,OY,XC(Lc,{brighter(e){return e=e==null?hd:Math.pow(hd,e),new Sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new Sr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new _n(Sv(e>=240?e-240:e+120,i,r),Sv(e,i,r),Sv(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Sr(dO(this.h),Kf(this.s),Kf(this.l),dd(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=dd(this.opacity);return`${e===1?"hsl(":"hsla("}${dO(this.h)}, ${Kf(this.s)*100}%, ${Kf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dO(e){return e=(e||0)%360,e<0?e+360:e}function Kf(e){return Math.max(0,Math.min(1,e||0))}function Sv(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const N_=e=>()=>e;function TY(e,t){return function(n){return e+n*t}}function AY(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function EY(e){return(e=+e)==1?QC:function(t,n){return n-t?AY(t,n,e):N_(isNaN(t)?n:t)}}function QC(e,t){var n=t-e;return n?TY(e,n):N_(isNaN(e)?t:e)}const pO=function e(t){var n=EY(t);function r(i,o){var s=n((i=Cy(i)).r,(o=Cy(o)).r),l=n(i.g,o.g),u=n(i.b,o.b),f=QC(i.opacity,o.opacity);return function(d){return i.r=s(d),i.g=l(d),i.b=u(d),i.opacity=f(d),i+""}}return r.gamma=e,r}(1);function kY(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function MY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function CY(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=rl(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(l){for(s=0;s<r;++s)o[s]=i[s](l);return o}}function jY(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function pd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function $Y(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=rl(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var jy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pv=new RegExp(jy.source,"g");function NY(e){return function(){return e}}function LY(e){return function(t){return e(t)+""}}function IY(e,t){var n=jy.lastIndex=Pv.lastIndex=0,r,i,o,s=-1,l=[],u=[];for(e=e+"",t=t+"";(r=jy.exec(e))&&(i=Pv.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),l[s]?l[s]+=o:l[++s]=o),(r=r[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,u.push({i:s,x:pd(r,i)})),n=Pv.lastIndex;return n<t.length&&(o=t.slice(n),l[s]?l[s]+=o:l[++s]=o),l.length<2?u[0]?LY(u[0].x):NY(t):(t=u.length,function(f){for(var d=0,h;d<t;++d)l[(h=u[d]).i]=h.x(f);return l.join("")})}function rl(e,t){var n=typeof t,r;return t==null||n==="boolean"?N_(t):(n==="number"?pd:n==="string"?(r=Xu(t))?(t=r,pO):IY:t instanceof Xu?pO:t instanceof Date?jY:MY(t)?kY:Array.isArray(t)?CY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?$Y:pd)(e,t)}function L_(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function DY(e,t){t===void 0&&(t=e,e=rl);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(s){var l=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return o[l](s-l)}}function RY(e){return function(){return e}}function md(e){return+e}var mO=[0,1];function cn(e){return e}function $y(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:RY(isNaN(t)?NaN:.5)}function zY(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BY(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=$y(i,r),o=n(s,o)):(r=$y(r,i),o=n(o,s)),function(l){return o(r(l))}}function FY(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=$y(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(l){var u=Nc(e,l,1,r)-1;return o[u](i[u](l))}}function Ic(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Bp(){var e=mO,t=mO,n=rl,r,i,o,s=cn,l,u,f;function d(){var m=Math.min(e.length,t.length);return s!==cn&&(s=zY(e[0],e[m-1])),l=m>2?FY:BY,u=f=null,h}function h(m){return m==null||isNaN(m=+m)?o:(u||(u=l(e.map(r),t,n)))(r(s(m)))}return h.invert=function(m){return s(i((f||(f=l(t,e.map(r),pd)))(m)))},h.domain=function(m){return arguments.length?(e=Array.from(m,md),d()):e.slice()},h.range=function(m){return arguments.length?(t=Array.from(m),d()):t.slice()},h.rangeRound=function(m){return t=Array.from(m),n=L_,d()},h.clamp=function(m){return arguments.length?(s=m?!0:cn,d()):s!==cn},h.interpolate=function(m){return arguments.length?(n=m,d()):n},h.unknown=function(m){return arguments.length?(o=m,h):o},function(m,v){return r=m,i=v,d()}}function I_(){return Bp()(cn,cn)}function VY(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vd(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ws(e){return e=vd(Math.abs(e)),e?e[1]:NaN}function UY(e,t){return function(n,r){for(var i=n.length,o=[],s=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),o.push(n.substring(i-=l,i+l)),!((u+=l+1)>r));)l=e[s=(s+1)%e.length];return o.reverse().join(t)}}function WY(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var HY=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yu(e){if(!(t=HY.exec(e)))throw new Error("invalid format: "+e);var t;return new D_({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]})}Yu.prototype=D_.prototype;function D_(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+""}D_.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 ZY(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var gd;function GY(e,t){var n=vd(e,t);if(!n)return gd=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(gd=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+vd(e,Math.max(0,t+o-1))[0]}function vO(e,t){var n=vd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const gO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:VY,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)=>vO(e*100,t),r:vO,s:GY,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yO(e){return e}var xO=Array.prototype.map,_O=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function KY(e){var t=e.grouping===void 0||e.thousands===void 0?yO:UY(xO.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?yO:WY(xO.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function f(h,m){h=Yu(h);var v=h.fill,b=h.align,x=h.sign,S=h.symbol,y=h.zero,_=h.width,w=h.comma,E=h.precision,P=h.trim,A=h.type;A==="n"?(w=!0,A="g"):gO[A]||(E===void 0&&(E=12),P=!0,A="g"),(y||v==="0"&&b==="=")&&(y=!0,v="0",b="=");var M=(m&&m.prefix!==void 0?m.prefix:"")+(S==="$"?n:S==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():""),C=(S==="$"?r:/[%p]/.test(A)?s:"")+(m&&m.suffix!==void 0?m.suffix:""),N=gO[A],B=/[defgprs%]/.test(A);E=E===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function z(R){var K=M,H=C,W,Z,G;if(A==="c")H=N(R)+H,R="";else{R=+R;var $=R<0||1/R<0;if(R=isNaN(R)?u:N(Math.abs(R),E),P&&(R=ZY(R)),$&&+R==0&&x!=="+"&&($=!1),K=($?x==="("?x:l:x==="-"||x==="("?"":x)+K,H=(A==="s"&&!isNaN(R)&&gd!==void 0?_O[8+gd/3]:"")+H+($&&x==="("?")":""),B){for(W=-1,Z=R.length;++W<Z;)if(G=R.charCodeAt(W),48>G||G>57){H=(G===46?i+R.slice(W+1):R.slice(W))+H,R=R.slice(0,W);break}}}w&&!y&&(R=t(R,1/0));var q=K.length+R.length+H.length,V=q<_?new Array(_-q+1).join(v):"";switch(w&&y&&(R=t(V+R,V.length?_-H.length:1/0),V=""),b){case"<":R=K+R+H+V;break;case"=":R=K+V+R+H;break;case"^":R=V.slice(0,q=V.length>>1)+K+R+H+V.slice(q);break;default:R=V+K+R+H;break}return o(R)}return z.toString=function(){return h+""},z}function d(h,m){var v=Math.max(-8,Math.min(8,Math.floor(ws(m)/3)))*3,b=Math.pow(10,-v),x=f((h=Yu(h),h.type="f",h),{suffix:_O[8+v/3]});return function(S){return x(b*S)}}return{format:f,formatPrefix:d}}var qf,R_,JC;qY({thousands:",",grouping:[3],currency:["$",""]});function qY(e){return qf=KY(e),R_=qf.format,JC=qf.formatPrefix,qf}function XY(e){return Math.max(0,-ws(Math.abs(e)))}function YY(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ws(t)/3)))*3-ws(Math.abs(e)))}function QY(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ws(t)-ws(e))+1}function ej(e,t,n,r){var i=ky(e,t,n),o;switch(r=Yu(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=YY(i,s))&&(r.precision=o),JC(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=QY(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=XY(i))&&(r.precision=o-(r.type==="%")*2);break}}return R_(r)}function vo(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ay(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return ej(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,s=r[i],l=r[o],u,f,d=10;for(l<s&&(f=s,s=l,l=f,f=i,i=o,o=f);d-- >0;){if(f=Ey(s,l,n),f===u)return r[i]=s,r[o]=l,t(r);if(f>0)s=Math.floor(s/f)*f,l=Math.ceil(l/f)*f;else if(f<0)s=Math.ceil(s*f)/f,l=Math.floor(l*f)/f;else break;u=f}return e},e}function yd(){var e=I_();return e.copy=function(){return Ic(e,yd())},fr.apply(e,arguments),vo(e)}function tj(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,md),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return tj(e).unknown(t)},e=arguments.length?Array.from(e,md):[0,1],vo(n)}function nj(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),e[n]=t.floor(i),e[r]=t.ceil(o),e}function bO(e){return Math.log(e)}function wO(e){return Math.exp(e)}function JY(e){return-Math.log(-e)}function eQ(e){return-Math.exp(-e)}function tQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function nQ(e){return e===10?tQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function rQ(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 SO(e){return(t,n)=>-e(-t,n)}function z_(e){const t=e(bO,wO),n=t.domain;let r=10,i,o;function s(){return i=rQ(r),o=nQ(r),n()[0]<0?(i=SO(i),o=SO(o),e(JY,eQ)):e(bO,wO),t}return t.base=function(l){return arguments.length?(r=+l,s()):r},t.domain=function(l){return arguments.length?(n(l),s()):n()},t.ticks=l=>{const u=n();let f=u[0],d=u[u.length-1];const h=d<f;h&&([f,d]=[d,f]);let m=i(f),v=i(d),b,x;const S=l==null?10:+l;let y=[];if(!(r%1)&&v-m<S){if(m=Math.floor(m),v=Math.ceil(v),f>0){for(;m<=v;++m)for(b=1;b<r;++b)if(x=m<0?b/o(-m):b*o(m),!(x<f)){if(x>d)break;y.push(x)}}else for(;m<=v;++m)for(b=r-1;b>=1;--b)if(x=m>0?b/o(-m):b*o(m),!(x<f)){if(x>d)break;y.push(x)}y.length*2<S&&(y=Ay(f,d,S))}else y=Ay(m,v,Math.min(v-m,S)).map(o);return h?y.reverse():y},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=Yu(u)).precision==null&&(u.trim=!0),u=R_(u)),l===1/0)return u;const f=Math.max(1,r*l/t.ticks().length);return d=>{let h=d/o(Math.round(i(d)));return h*r<r-.5&&(h*=r),h<=f?u(d):""}},t.nice=()=>n(nj(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function rj(){const e=z_(Bp()).domain([1,10]);return e.copy=()=>Ic(e,rj()).base(e.base()),fr.apply(e,arguments),e}function PO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function OO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function B_(e){var t=1,n=e(PO(t),OO(t));return n.constant=function(r){return arguments.length?e(PO(t=+r),OO(t)):t},vo(n)}function ij(){var e=B_(Bp());return e.copy=function(){return Ic(e,ij()).constant(e.constant())},fr.apply(e,arguments)}function TO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function iQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function oQ(e){return e<0?-e*e:e*e}function F_(e){var t=e(cn,cn),n=1;function r(){return n===1?e(cn,cn):n===.5?e(iQ,oQ):e(TO(n),TO(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},vo(t)}function V_(){var e=F_(Bp());return e.copy=function(){return Ic(e,V_()).exponent(e.exponent())},fr.apply(e,arguments),e}function aQ(){return V_.apply(null,arguments).exponent(.5)}function AO(e){return Math.sign(e)*e*e}function sQ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function oj(){var e=I_(),t=[0,1],n=!1,r;function i(o){var s=sQ(e(o));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(o){return e.invert(AO(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,md)).map(AO)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return oj(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},fr.apply(i,arguments),vo(i)}function aj(){var e=[],t=[],n=[],r;function i(){var s=0,l=Math.max(1,t.length);for(n=new Array(l-1);++s<l;)n[s-1]=hY(e,s/l);return o}function o(s){return s==null||isNaN(s=+s)?r:t[Nc(n,s)]}return o.invertExtent=function(s){var l=t.indexOf(s);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let l of s)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(io),i()},o.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return aj().domain(e).range(t).unknown(r)},fr.apply(o,arguments)}function sj(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function s(u){return u!=null&&u<=u?i[Nc(r,u,0,n)]:o}function l(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return s}return s.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},s.range=function(u){return arguments.length?(n=(i=Array.from(u)).length-1,l()):i.slice()},s.invertExtent=function(u){var f=i.indexOf(u);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},s.unknown=function(u){return arguments.length&&(o=u),s},s.thresholds=function(){return r.slice()},s.copy=function(){return sj().domain([e,t]).range(i).unknown(o)},fr.apply(vo(s),arguments)}function lj(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Nc(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var s=t.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return lj().domain(e).range(t).unknown(n)},fr.apply(i,arguments)}const Ov=new Date,Tv=new Date;function jt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const s=i(o),l=i.ceil(o);return o-s<l-o?s:l},i.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,l)=>{const u=[];if(o=i.ceil(o),l=l==null?1:Math.floor(l),!(o<s)||!(l>0))return u;let f;do u.push(f=new Date(+o)),t(o,l),e(o);while(f<o&&o<s);return u},i.filter=o=>jt(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!o(s););else for(;--l>=0;)for(;t(s,1),!o(s););}),n&&(i.count=(o,s)=>(Ov.setTime(+o),Tv.setTime(+s),e(Ov),e(Tv),Math.floor(n(Ov,Tv))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const xd=jt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);xd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?jt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):xd);xd.range;const ui=1e3,ir=ui*60,ci=ir*60,Si=ci*24,U_=Si*7,EO=Si*30,Av=Si*365,Wo=jt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ui)},(e,t)=>(t-e)/ui,e=>e.getUTCSeconds());Wo.range;const W_=jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ui)},(e,t)=>{e.setTime(+e+t*ir)},(e,t)=>(t-e)/ir,e=>e.getMinutes());W_.range;const H_=jt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ir)},(e,t)=>(t-e)/ir,e=>e.getUTCMinutes());H_.range;const Z_=jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ui-e.getMinutes()*ir)},(e,t)=>{e.setTime(+e+t*ci)},(e,t)=>(t-e)/ci,e=>e.getHours());Z_.range;const G_=jt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ci)},(e,t)=>(t-e)/ci,e=>e.getUTCHours());G_.range;const Dc=jt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ir)/Si,e=>e.getDate()-1);Dc.range;const Fp=jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>e.getUTCDate()-1);Fp.range;const uj=jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>Math.floor(e/Si));uj.range;function da(e){return jt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ir)/U_)}const Vp=da(0),_d=da(1),lQ=da(2),uQ=da(3),Ss=da(4),cQ=da(5),fQ=da(6);Vp.range;_d.range;lQ.range;uQ.range;Ss.range;cQ.range;fQ.range;function pa(e){return jt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/U_)}const Up=pa(0),bd=pa(1),hQ=pa(2),dQ=pa(3),Ps=pa(4),pQ=pa(5),mQ=pa(6);Up.range;bd.range;hQ.range;dQ.range;Ps.range;pQ.range;mQ.range;const K_=jt(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());K_.range;const q_=jt(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());q_.range;const Pi=jt(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());Pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:jt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Pi.range;const Oi=jt(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());Oi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:jt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Oi.range;function cj(e,t,n,r,i,o){const s=[[Wo,1,ui],[Wo,5,5*ui],[Wo,15,15*ui],[Wo,30,30*ui],[o,1,ir],[o,5,5*ir],[o,15,15*ir],[o,30,30*ir],[i,1,ci],[i,3,3*ci],[i,6,6*ci],[i,12,12*ci],[r,1,Si],[r,2,2*Si],[n,1,U_],[t,1,EO],[t,3,3*EO],[e,1,Av]];function l(f,d,h){const m=d<f;m&&([f,d]=[d,f]);const v=h&&typeof h.range=="function"?h:u(f,d,h),b=v?v.range(f,+d+1):[];return m?b.reverse():b}function u(f,d,h){const m=Math.abs(d-f)/h,v=C_(([,,S])=>S).right(s,m);if(v===s.length)return e.every(ky(f/Av,d/Av,h));if(v===0)return xd.every(Math.max(ky(f,d,h),1));const[b,x]=s[m/s[v-1][2]<s[v][2]/m?v-1:v];return b.every(x)}return[l,u]}const[vQ,gQ]=cj(Oi,q_,Up,uj,G_,H_),[yQ,xQ]=cj(Pi,K_,Vp,Dc,Z_,W_);function Ev(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function kv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ll(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function _Q(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,l=e.months,u=e.shortMonths,f=Il(i),d=Dl(i),h=Il(o),m=Dl(o),v=Il(s),b=Dl(s),x=Il(l),S=Dl(l),y=Il(u),_=Dl(u),w={a:G,A:$,b:q,B:V,c:null,d:NO,e:NO,f:UQ,g:JQ,G:tJ,H:BQ,I:FQ,j:VQ,L:fj,m:WQ,M:HQ,p:te,q:Q,Q:DO,s:RO,S:ZQ,u:GQ,U:KQ,V:qQ,w:XQ,W:YQ,x:null,X:null,y:QQ,Y:eJ,Z:nJ,"%":IO},E={a:ae,A:fe,b:he,B:ce,c:null,d:LO,e:LO,f:aJ,g:vJ,G:yJ,H:rJ,I:iJ,j:oJ,L:dj,m:sJ,M:lJ,p:Ve,q:ze,Q:DO,s:RO,S:uJ,u:cJ,U:fJ,V:hJ,w:dJ,W:pJ,x:null,X:null,y:mJ,Y:gJ,Z:xJ,"%":IO},P={a:B,A:z,b:R,B:K,c:H,d:jO,e:jO,f:IQ,g:CO,G:MO,H:$O,I:$O,j:jQ,L:LQ,m:CQ,M:$Q,p:N,q:MQ,Q:RQ,s:zQ,S:NQ,u:OQ,U:TQ,V:AQ,w:PQ,W:EQ,x:W,X:Z,y:CO,Y:MO,Z:kQ,"%":DQ};w.x=A(n,w),w.X=A(r,w),w.c=A(t,w),E.x=A(n,E),E.X=A(r,E),E.c=A(t,E);function A(oe,me){return function(ye){var J=[],Le=-1,Se=0,Ue=oe.length,We,it,Tt;for(ye instanceof Date||(ye=new Date(+ye));++Le<Ue;)oe.charCodeAt(Le)===37&&(J.push(oe.slice(Se,Le)),(it=kO[We=oe.charAt(++Le)])!=null?We=oe.charAt(++Le):it=We==="e"?" ":"0",(Tt=me[We])&&(We=Tt(ye,it)),J.push(We),Se=Le+1);return J.push(oe.slice(Se,Le)),J.join("")}}function M(oe,me){return function(ye){var J=Ll(1900,void 0,1),Le=C(J,oe,ye+="",0),Se,Ue;if(Le!=ye.length)return null;if("Q"in J)return new Date(J.Q);if("s"in J)return new Date(J.s*1e3+("L"in J?J.L:0));if(me&&!("Z"in J)&&(J.Z=0),"p"in J&&(J.H=J.H%12+J.p*12),J.m===void 0&&(J.m="q"in J?J.q:0),"V"in J){if(J.V<1||J.V>53)return null;"w"in J||(J.w=1),"Z"in J?(Se=kv(Ll(J.y,0,1)),Ue=Se.getUTCDay(),Se=Ue>4||Ue===0?bd.ceil(Se):bd(Se),Se=Fp.offset(Se,(J.V-1)*7),J.y=Se.getUTCFullYear(),J.m=Se.getUTCMonth(),J.d=Se.getUTCDate()+(J.w+6)%7):(Se=Ev(Ll(J.y,0,1)),Ue=Se.getDay(),Se=Ue>4||Ue===0?_d.ceil(Se):_d(Se),Se=Dc.offset(Se,(J.V-1)*7),J.y=Se.getFullYear(),J.m=Se.getMonth(),J.d=Se.getDate()+(J.w+6)%7)}else("W"in J||"U"in J)&&("w"in J||(J.w="u"in J?J.u%7:"W"in J?1:0),Ue="Z"in J?kv(Ll(J.y,0,1)).getUTCDay():Ev(Ll(J.y,0,1)).getDay(),J.m=0,J.d="W"in J?(J.w+6)%7+J.W*7-(Ue+5)%7:J.w+J.U*7-(Ue+6)%7);return"Z"in J?(J.H+=J.Z/100|0,J.M+=J.Z%100,kv(J)):Ev(J)}}function C(oe,me,ye,J){for(var Le=0,Se=me.length,Ue=ye.length,We,it;Le<Se;){if(J>=Ue)return-1;if(We=me.charCodeAt(Le++),We===37){if(We=me.charAt(Le++),it=P[We in kO?me.charAt(Le++):We],!it||(J=it(oe,ye,J))<0)return-1}else if(We!=ye.charCodeAt(J++))return-1}return J}function N(oe,me,ye){var J=f.exec(me.slice(ye));return J?(oe.p=d.get(J[0].toLowerCase()),ye+J[0].length):-1}function B(oe,me,ye){var J=v.exec(me.slice(ye));return J?(oe.w=b.get(J[0].toLowerCase()),ye+J[0].length):-1}function z(oe,me,ye){var J=h.exec(me.slice(ye));return J?(oe.w=m.get(J[0].toLowerCase()),ye+J[0].length):-1}function R(oe,me,ye){var J=y.exec(me.slice(ye));return J?(oe.m=_.get(J[0].toLowerCase()),ye+J[0].length):-1}function K(oe,me,ye){var J=x.exec(me.slice(ye));return J?(oe.m=S.get(J[0].toLowerCase()),ye+J[0].length):-1}function H(oe,me,ye){return C(oe,t,me,ye)}function W(oe,me,ye){return C(oe,n,me,ye)}function Z(oe,me,ye){return C(oe,r,me,ye)}function G(oe){return s[oe.getDay()]}function $(oe){return o[oe.getDay()]}function q(oe){return u[oe.getMonth()]}function V(oe){return l[oe.getMonth()]}function te(oe){return i[+(oe.getHours()>=12)]}function Q(oe){return 1+~~(oe.getMonth()/3)}function ae(oe){return s[oe.getUTCDay()]}function fe(oe){return o[oe.getUTCDay()]}function he(oe){return u[oe.getUTCMonth()]}function ce(oe){return l[oe.getUTCMonth()]}function Ve(oe){return i[+(oe.getUTCHours()>=12)]}function ze(oe){return 1+~~(oe.getUTCMonth()/3)}return{format:function(oe){var me=A(oe+="",w);return me.toString=function(){return oe},me},parse:function(oe){var me=M(oe+="",!1);return me.toString=function(){return oe},me},utcFormat:function(oe){var me=A(oe+="",E);return me.toString=function(){return oe},me},utcParse:function(oe){var me=M(oe+="",!0);return me.toString=function(){return oe},me}}}var kO={"-":"",_:" ",0:"0"},Rt=/^\s*\d+/,bQ=/^%/,wQ=/[\\^$*+?|[\]().{}]/g;function De(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function SQ(e){return e.replace(wQ,"\\$&")}function Il(e){return new RegExp("^(?:"+e.map(SQ).join("|")+")","i")}function Dl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function PQ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function OQ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function TQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function AQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function EQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function MO(e,t,n){var r=Rt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function CO(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function kQ(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function MQ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function CQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function jO(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jQ(e,t,n){var r=Rt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function $O(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function $Q(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function NQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function LQ(e,t,n){var r=Rt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function IQ(e,t,n){var r=Rt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function DQ(e,t,n){var r=bQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function RQ(e,t,n){var r=Rt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zQ(e,t,n){var r=Rt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function NO(e,t){return De(e.getDate(),t,2)}function BQ(e,t){return De(e.getHours(),t,2)}function FQ(e,t){return De(e.getHours()%12||12,t,2)}function VQ(e,t){return De(1+Dc.count(Pi(e),e),t,3)}function fj(e,t){return De(e.getMilliseconds(),t,3)}function UQ(e,t){return fj(e,t)+"000"}function WQ(e,t){return De(e.getMonth()+1,t,2)}function HQ(e,t){return De(e.getMinutes(),t,2)}function ZQ(e,t){return De(e.getSeconds(),t,2)}function GQ(e){var t=e.getDay();return t===0?7:t}function KQ(e,t){return De(Vp.count(Pi(e)-1,e),t,2)}function hj(e){var t=e.getDay();return t>=4||t===0?Ss(e):Ss.ceil(e)}function qQ(e,t){return e=hj(e),De(Ss.count(Pi(e),e)+(Pi(e).getDay()===4),t,2)}function XQ(e){return e.getDay()}function YQ(e,t){return De(_d.count(Pi(e)-1,e),t,2)}function QQ(e,t){return De(e.getFullYear()%100,t,2)}function JQ(e,t){return e=hj(e),De(e.getFullYear()%100,t,2)}function eJ(e,t){return De(e.getFullYear()%1e4,t,4)}function tJ(e,t){var n=e.getDay();return e=n>=4||n===0?Ss(e):Ss.ceil(e),De(e.getFullYear()%1e4,t,4)}function nJ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+De(t/60|0,"0",2)+De(t%60,"0",2)}function LO(e,t){return De(e.getUTCDate(),t,2)}function rJ(e,t){return De(e.getUTCHours(),t,2)}function iJ(e,t){return De(e.getUTCHours()%12||12,t,2)}function oJ(e,t){return De(1+Fp.count(Oi(e),e),t,3)}function dj(e,t){return De(e.getUTCMilliseconds(),t,3)}function aJ(e,t){return dj(e,t)+"000"}function sJ(e,t){return De(e.getUTCMonth()+1,t,2)}function lJ(e,t){return De(e.getUTCMinutes(),t,2)}function uJ(e,t){return De(e.getUTCSeconds(),t,2)}function cJ(e){var t=e.getUTCDay();return t===0?7:t}function fJ(e,t){return De(Up.count(Oi(e)-1,e),t,2)}function pj(e){var t=e.getUTCDay();return t>=4||t===0?Ps(e):Ps.ceil(e)}function hJ(e,t){return e=pj(e),De(Ps.count(Oi(e),e)+(Oi(e).getUTCDay()===4),t,2)}function dJ(e){return e.getUTCDay()}function pJ(e,t){return De(bd.count(Oi(e)-1,e),t,2)}function mJ(e,t){return De(e.getUTCFullYear()%100,t,2)}function vJ(e,t){return e=pj(e),De(e.getUTCFullYear()%100,t,2)}function gJ(e,t){return De(e.getUTCFullYear()%1e4,t,4)}function yJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ps(e):Ps.ceil(e),De(e.getUTCFullYear()%1e4,t,4)}function xJ(){return"+0000"}function IO(){return"%"}function DO(e){return+e}function RO(e){return Math.floor(+e/1e3)}var ka,mj,vj;_J({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 _J(e){return ka=_Q(e),mj=ka.format,ka.parse,vj=ka.utcFormat,ka.utcParse,ka}function bJ(e){return new Date(e)}function wJ(e){return e instanceof Date?+e:+new Date(+e)}function X_(e,t,n,r,i,o,s,l,u,f){var d=I_(),h=d.invert,m=d.domain,v=f(".%L"),b=f(":%S"),x=f("%I:%M"),S=f("%I %p"),y=f("%a %d"),_=f("%b %d"),w=f("%B"),E=f("%Y");function P(A){return(u(A)<A?v:l(A)<A?b:s(A)<A?x:o(A)<A?S:r(A)<A?i(A)<A?y:_:n(A)<A?w:E)(A)}return d.invert=function(A){return new Date(h(A))},d.domain=function(A){return arguments.length?m(Array.from(A,wJ)):m().map(bJ)},d.ticks=function(A){var M=m();return e(M[0],M[M.length-1],A??10)},d.tickFormat=function(A,M){return M==null?P:f(M)},d.nice=function(A){var M=m();return(!A||typeof A.range!="function")&&(A=t(M[0],M[M.length-1],A??10)),A?m(nj(M,A)):d},d.copy=function(){return Ic(d,X_(e,t,n,r,i,o,s,l,u,f))},d}function SJ(){return fr.apply(X_(yQ,xQ,Pi,K_,Vp,Dc,Z_,W_,Wo,mj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function PJ(){return fr.apply(X_(vQ,gQ,Oi,q_,Up,Fp,G_,H_,Wo,vj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Wp(){var e=0,t=1,n,r,i,o,s=cn,l=!1,u;function f(h){return h==null||isNaN(h=+h)?u:s(i===0?.5:(h=(o(h)-n)*i,l?Math.max(0,Math.min(1,h)):h))}f.domain=function(h){return arguments.length?([e,t]=h,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(h){return arguments.length?(l=!!h,f):l},f.interpolator=function(h){return arguments.length?(s=h,f):s};function d(h){return function(m){var v,b;return arguments.length?([v,b]=m,s=h(v,b),f):[s(0),s(1)]}}return f.range=d(rl),f.rangeRound=d(L_),f.unknown=function(h){return arguments.length?(u=h,f):u},function(h){return o=h,n=h(e),r=h(t),i=n===r?0:1/(r-n),f}}function go(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gj(){var e=vo(Wp()(cn));return e.copy=function(){return go(e,gj())},Mi.apply(e,arguments)}function yj(){var e=z_(Wp()).domain([1,10]);return e.copy=function(){return go(e,yj()).base(e.base())},Mi.apply(e,arguments)}function xj(){var e=B_(Wp());return e.copy=function(){return go(e,xj()).constant(e.constant())},Mi.apply(e,arguments)}function Y_(){var e=F_(Wp());return e.copy=function(){return go(e,Y_()).exponent(e.exponent())},Mi.apply(e,arguments)}function OJ(){return Y_.apply(null,arguments).exponent(.5)}function _j(){var e=[],t=cn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Nc(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(io),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>fY(e,o/r))},n.copy=function(){return _j(t).domain(e)},Mi.apply(n,arguments)}function Hp(){var e=0,t=.5,n=1,r=1,i,o,s,l,u,f=cn,d,h=!1,m;function v(x){return isNaN(x=+x)?m:(x=.5+((x=+d(x))-o)*(r*x<r*o?l:u),f(h?Math.max(0,Math.min(1,x)):x))}v.domain=function(x){return arguments.length?([e,t,n]=x,i=d(e=+e),o=d(t=+t),s=d(n=+n),l=i===o?0:.5/(o-i),u=o===s?0:.5/(s-o),r=o<i?-1:1,v):[e,t,n]},v.clamp=function(x){return arguments.length?(h=!!x,v):h},v.interpolator=function(x){return arguments.length?(f=x,v):f};function b(x){return function(S){var y,_,w;return arguments.length?([y,_,w]=S,f=DY(x,[y,_,w]),v):[f(0),f(.5),f(1)]}}return v.range=b(rl),v.rangeRound=b(L_),v.unknown=function(x){return arguments.length?(m=x,v):m},function(x){return d=x,i=x(e),o=x(t),s=x(n),l=i===o?0:.5/(o-i),u=o===s?0:.5/(s-o),r=o<i?-1:1,v}}function bj(){var e=vo(Hp()(cn));return e.copy=function(){return go(e,bj())},Mi.apply(e,arguments)}function wj(){var e=z_(Hp()).domain([.1,1,10]);return e.copy=function(){return go(e,wj()).base(e.base())},Mi.apply(e,arguments)}function Sj(){var e=B_(Hp());return e.copy=function(){return go(e,Sj()).constant(e.constant())},Mi.apply(e,arguments)}function Q_(){var e=F_(Hp());return e.copy=function(){return go(e,Q_()).exponent(e.exponent())},Mi.apply(e,arguments)}function TJ(){return Q_.apply(null,arguments).exponent(.5)}const zO=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Gu,scaleDiverging:bj,scaleDivergingLog:wj,scaleDivergingPow:Q_,scaleDivergingSqrt:TJ,scaleDivergingSymlog:Sj,scaleIdentity:tj,scaleImplicit:My,scaleLinear:yd,scaleLog:rj,scaleOrdinal:j_,scalePoint:pu,scalePow:V_,scaleQuantile:aj,scaleQuantize:sj,scaleRadial:oj,scaleSequential:gj,scaleSequentialLog:yj,scaleSequentialPow:Y_,scaleSequentialQuantile:_j,scaleSequentialSqrt:OJ,scaleSequentialSymlog:xj,scaleSqrt:aQ,scaleSymlog:ij,scaleThreshold:lj,scaleTime:SJ,scaleUtc:PJ,tickFormat:ej},Symbol.toStringTag,{value:"Module"}));var AJ=Gs;function EJ(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(s!=null&&(l===void 0?s===s&&!AJ(s):n(s,l)))var l=s,u=o}return u}var Pj=EJ;function kJ(e,t){return e>t}var MJ=kJ,CJ=Pj,jJ=MJ,$J=tl;function NJ(e){return e&&e.length?CJ(e,$J,jJ):void 0}var LJ=NJ;const Ki=Ge(LJ);function IJ(e,t){return e<t}var DJ=IJ,RJ=Pj,zJ=DJ,BJ=tl;function FJ(e){return e&&e.length?RJ(e,BJ,zJ):void 0}var VJ=FJ;const Zp=Ge(VJ);var UJ=f_,WJ=mo,HJ=NC,ZJ=Pn;function GJ(e,t){var n=ZJ(e)?UJ:HJ;return n(e,WJ(t))}var KJ=GJ,qJ=jC,XJ=KJ;function YJ(e,t){return qJ(XJ(e,t),1)}var QJ=YJ;const JJ=Ge(QJ);var eee=T_;function tee(e,t){return eee(e,t)}var nee=tee;const Qu=Ge(nee);var il=1e9,ree={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},e1,st=!0,ur="[DecimalError] ",Yo=ur+"Invalid argument: ",J_=ur+"Exponent out of range: ",ol=Math.floor,Io=Math.pow,iee=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$n,Lt=1e7,tt=7,Oj=9007199254740991,wd=ol(Oj/tt),ue={};ue.absoluteValue=ue.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ue.comparedTo=ue.cmp=function(e){var t,n,r,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(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};ue.decimalPlaces=ue.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*tt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ue.dividedBy=ue.div=function(e){return gi(this,new this.constructor(e))};ue.dividedToIntegerBy=ue.idiv=function(e){var t=this,n=t.constructor;return qe(gi(t,new n(e),0,1),n.precision)};ue.equals=ue.eq=function(e){return!this.cmp(e)};ue.exponent=function(){return Ot(this)};ue.greaterThan=ue.gt=function(e){return this.cmp(e)>0};ue.greaterThanOrEqualTo=ue.gte=function(e){return this.cmp(e)>=0};ue.isInteger=ue.isint=function(){return this.e>this.d.length-2};ue.isNegative=ue.isneg=function(){return this.s<0};ue.isPositive=ue.ispos=function(){return this.s>0};ue.isZero=function(){return this.s===0};ue.lessThan=ue.lt=function(e){return this.cmp(e)<0};ue.lessThanOrEqualTo=ue.lte=function(e){return this.cmp(e)<1};ue.logarithm=ue.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq($n))throw Error(ur+"NaN");if(n.s<1)throw Error(ur+(n.s?"NaN":"-Infinity"));return n.eq($n)?new r(0):(st=!1,t=gi(Ju(n,o),Ju(e,o),o),st=!0,qe(t,i))};ue.minus=ue.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ej(t,e):Tj(t,(e.s=-e.s,e))};ue.modulo=ue.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ur+"NaN");return n.s?(st=!1,t=gi(n,e,0,1).times(e),st=!0,n.minus(t)):qe(new r(n),i)};ue.naturalExponential=ue.exp=function(){return Aj(this)};ue.naturalLogarithm=ue.ln=function(){return Ju(this)};ue.negated=ue.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ue.plus=ue.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Tj(t,e):Ej(t,(e.s=-e.s,e))};ue.precision=ue.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Yo+e);if(t=Ot(i)+1,r=i.d.length-1,n=r*tt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ue.squareRoot=ue.sqrt=function(){var e,t,n,r,i,o,s,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(ur+"NaN")}for(e=Ot(l),st=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Rr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ol((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new u(t)):r=new u(i.toString()),n=u.precision,i=s=n+3;;)if(o=r,r=o.plus(gi(l,o,s+2)).times(.5),Rr(o.d).slice(0,s)===(t=Rr(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(qe(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;s+=4}return st=!0,qe(r,n)};ue.times=ue.mul=function(e){var t,n,r,i,o,s,l,u,f,d=this,h=d.constructor,m=d.d,v=(e=new h(e)).d;if(!d.s||!e.s)return new h(0);for(e.s*=d.s,n=d.e+e.e,u=m.length,f=v.length,u<f&&(o=m,m=v,v=o,s=u,u=f,f=s),o=[],s=u+f,r=s;r--;)o.push(0);for(r=f;--r>=0;){for(t=0,i=u+r;i>r;)l=o[i]+v[r]*m[i-r-1]+t,o[i--]=l%Lt|0,t=l/Lt|0;o[i]=(o[i]+t)%Lt|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,st?qe(e,h.precision):e};ue.toDecimalPlaces=ue.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Gr(e,0,il),t===void 0?t=r.rounding:Gr(t,0,8),qe(n,e+Ot(n)+1,t))};ue.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=aa(r,!0):(Gr(e,0,il),t===void 0?t=i.rounding:Gr(t,0,8),r=qe(new i(r),e+1,t),n=aa(r,!0,e+1)),n};ue.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?aa(i):(Gr(e,0,il),t===void 0?t=o.rounding:Gr(t,0,8),r=qe(new o(i),e+Ot(i)+1,t),n=aa(r.abs(),!1,e+Ot(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};ue.toInteger=ue.toint=function(){var e=this,t=e.constructor;return qe(new t(e),Ot(e)+1,t.rounding)};ue.toNumber=function(){return+this};ue.toPower=ue.pow=function(e){var t,n,r,i,o,s,l=this,u=l.constructor,f=12,d=+(e=new u(e));if(!e.s)return new u($n);if(l=new u(l),!l.s){if(e.s<1)throw Error(ur+"Infinity");return l}if(l.eq($n))return l;if(r=u.precision,e.eq($n))return qe(l,r);if(t=e.e,n=e.d.length-1,s=t>=n,o=l.s,s){if((n=d<0?-d:d)<=Oj){for(i=new u($n),t=Math.ceil(r/tt+4),st=!1;n%2&&(i=i.times(l),FO(i.d,t)),n=ol(n/2),n!==0;)l=l.times(l),FO(l.d,t);return st=!0,e.s<0?new u($n).div(i):qe(i,r)}}else if(o<0)throw Error(ur+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,st=!1,i=e.times(Ju(l,r+f)),st=!0,i=Aj(i),i.s=o,i};ue.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Ot(i),r=aa(i,n<=o.toExpNeg||n>=o.toExpPos)):(Gr(e,1,il),t===void 0?t=o.rounding:Gr(t,0,8),i=qe(new o(i),e,t),n=Ot(i),r=aa(i,e<=n||n<=o.toExpNeg,e)),r};ue.toSignificantDigits=ue.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Gr(e,1,il),t===void 0?t=r.rounding:Gr(t,0,8)),qe(new r(n),e,t)};ue.toString=ue.valueOf=ue.val=ue.toJSON=ue[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ot(e),n=e.constructor;return aa(e,t<=n.toExpNeg||t>=n.toExpPos)};function Tj(e,t){var n,r,i,o,s,l,u,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),st?qe(t,h):t;if(u=e.d,f=t.d,s=e.e,i=t.e,u=u.slice(),o=s-i,o){for(o<0?(r=u,o=-o,l=f.length):(r=f,i=s,l=u.length),s=Math.ceil(h/tt),l=s>l?s+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=u.length,o=f.length,l-o<0&&(o=l,r=f,f=u,u=r),n=0;o;)n=(u[--o]=u[o]+f[o]+n)/Lt|0,u[o]%=Lt;for(n&&(u.unshift(n),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,st?qe(t,h):t}function Gr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Yo+e)}function Rr(e){var t,n,r,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)r=e[t]+"",n=tt-r.length,n&&(o+=Vi(n)),o+=r;s=e[t],r=s+"",n=tt-r.length,n&&(o+=Vi(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var gi=function(){function e(r,i){var o,s=0,l=r.length;for(r=r.slice();l--;)o=r[l]*i+s,r[l]=o%Lt|0,s=o/Lt|0;return s&&r.unshift(s),r}function t(r,i,o,s){var l,u;if(o!=s)u=o>s?1:-1;else for(l=u=0;l<o;l++)if(r[l]!=i[l]){u=r[l]>i[l]?1:-1;break}return u}function n(r,i,o){for(var s=0;o--;)r[o]-=s,s=r[o]<i[o]?1:0,r[o]=s*Lt+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,s){var l,u,f,d,h,m,v,b,x,S,y,_,w,E,P,A,M,C,N=r.constructor,B=r.s==i.s?1:-1,z=r.d,R=i.d;if(!r.s)return new N(r);if(!i.s)throw Error(ur+"Division by zero");for(u=r.e-i.e,M=R.length,P=z.length,v=new N(B),b=v.d=[],f=0;R[f]==(z[f]||0);)++f;if(R[f]>(z[f]||0)&&--u,o==null?_=o=N.precision:s?_=o+(Ot(r)-Ot(i))+1:_=o,_<0)return new N(0);if(_=_/tt+2|0,f=0,M==1)for(d=0,R=R[0],_++;(f<P||d)&&_--;f++)w=d*Lt+(z[f]||0),b[f]=w/R|0,d=w%R|0;else{for(d=Lt/(R[0]+1)|0,d>1&&(R=e(R,d),z=e(z,d),M=R.length,P=z.length),E=M,x=z.slice(0,M),S=x.length;S<M;)x[S++]=0;C=R.slice(),C.unshift(0),A=R[0],R[1]>=Lt/2&&++A;do d=0,l=t(R,x,M,S),l<0?(y=x[0],M!=S&&(y=y*Lt+(x[1]||0)),d=y/A|0,d>1?(d>=Lt&&(d=Lt-1),h=e(R,d),m=h.length,S=x.length,l=t(h,x,m,S),l==1&&(d--,n(h,M<m?C:R,m))):(d==0&&(l=d=1),h=R.slice()),m=h.length,m<S&&h.unshift(0),n(x,h,S),l==-1&&(S=x.length,l=t(R,x,M,S),l<1&&(d++,n(x,M<S?C:R,S))),S=x.length):l===0&&(d++,x=[0]),b[f++]=d,l&&x[0]?x[S++]=z[E]||0:(x=[z[E]],S=1);while((E++<P||x[0]!==void 0)&&_--)}return b[0]||b.shift(),v.e=u,qe(v,s?o+Ot(v)+1:o)}}();function Aj(e,t){var n,r,i,o,s,l,u=0,f=0,d=e.constructor,h=d.precision;if(Ot(e)>16)throw Error(J_+Ot(e));if(!e.s)return new d($n);for(st=!1,l=h,s=new d(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(r=Math.log(Io(2,f))/Math.LN10*2+5|0,l+=r,n=i=o=new d($n),d.precision=l;;){if(i=qe(i.times(e),l),n=n.times(++u),s=o.plus(gi(i,n,l)),Rr(s.d).slice(0,l)===Rr(o.d).slice(0,l)){for(;f--;)o=qe(o.times(o),l);return d.precision=h,t==null?(st=!0,qe(o,h)):o}o=s}}function Ot(e){for(var t=e.e*tt,n=e.d[0];n>=10;n/=10)t++;return t}function Mv(e,t,n){if(t>e.LN10.sd())throw st=!0,n&&(e.precision=n),Error(ur+"LN10 precision limit exceeded");return qe(new e(e.LN10),t)}function Vi(e){for(var t="";e--;)t+="0";return t}function Ju(e,t){var n,r,i,o,s,l,u,f,d,h=1,m=10,v=e,b=v.d,x=v.constructor,S=x.precision;if(v.s<1)throw Error(ur+(v.s?"NaN":"-Infinity"));if(v.eq($n))return new x(0);if(t==null?(st=!1,f=S):f=t,v.eq(10))return t==null&&(st=!0),Mv(x,f);if(f+=m,x.precision=f,n=Rr(b),r=n.charAt(0),o=Ot(v),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=Rr(v.d),r=n.charAt(0),h++;o=Ot(v),r>1?(v=new x("0."+n),o++):v=new x(r+"."+n.slice(1))}else return u=Mv(x,f+2,S).times(o+""),v=Ju(new x(r+"."+n.slice(1)),f-m).plus(u),x.precision=S,t==null?(st=!0,qe(v,S)):v;for(l=s=v=gi(v.minus($n),v.plus($n),f),d=qe(v.times(v),f),i=3;;){if(s=qe(s.times(d),f),u=l.plus(gi(s,new x(i),f)),Rr(u.d).slice(0,f)===Rr(l.d).slice(0,f))return l=l.times(2),o!==0&&(l=l.plus(Mv(x,f+2,S).times(o+""))),l=gi(l,new x(h),f),x.precision=S,t==null?(st=!0,qe(l,S)):l;l=u,i+=2}}function BO(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=ol(n/tt),e.d=[],r=(n+1)%tt,n<0&&(r+=tt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=tt;r<i;)e.d.push(+t.slice(r,r+=tt));t=t.slice(r),r=tt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),st&&(e.e>wd||e.e<-wd))throw Error(J_+n)}else e.s=0,e.e=0,e.d=[0];return e}function qe(e,t,n){var r,i,o,s,l,u,f,d,h=e.d;for(s=1,o=h[0];o>=10;o/=10)s++;if(r=t-s,r<0)r+=tt,i=t,f=h[d=0];else{if(d=Math.ceil((r+1)/tt),o=h.length,d>=o)return e;for(f=o=h[d],s=1;o>=10;o/=10)s++;r%=tt,i=r-tt+s}if(n!==void 0&&(o=Io(10,s-i-1),l=f/o%10|0,u=t<0||h[d+1]!==void 0||f%o,u=n<4?(l||u)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||u||n==6&&(r>0?i>0?f/Io(10,s-i):0:h[d-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return u?(o=Ot(e),h.length=1,t=t-o-1,h[0]=Io(10,(tt-t%tt)%tt),e.e=ol(-t/tt)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(r==0?(h.length=d,o=1,d--):(h.length=d+1,o=Io(10,tt-r),h[d]=i>0?(f/Io(10,s-i)%Io(10,i)|0)*o:0),u)for(;;)if(d==0){(h[0]+=o)==Lt&&(h[0]=1,++e.e);break}else{if(h[d]+=o,h[d]!=Lt)break;h[d--]=0,o=1}for(r=h.length;h[--r]===0;)h.pop();if(st&&(e.e>wd||e.e<-wd))throw Error(J_+Ot(e));return e}function Ej(e,t){var n,r,i,o,s,l,u,f,d,h,m=e.constructor,v=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),st?qe(t,v):t;if(u=e.d,h=t.d,r=t.e,f=e.e,u=u.slice(),s=f-r,s){for(d=s<0,d?(n=u,s=-s,l=h.length):(n=h,r=f,l=u.length),i=Math.max(Math.ceil(v/tt),l)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=u.length,l=h.length,d=i<l,d&&(l=i),i=0;i<l;i++)if(u[i]!=h[i]){d=u[i]<h[i];break}s=0}for(d&&(n=u,u=h,h=n,t.s=-t.s),l=u.length,i=h.length-l;i>0;--i)u[l++]=0;for(i=h.length;i>s;){if(u[--i]<h[i]){for(o=i;o&&u[--o]===0;)u[o]=Lt-1;--u[o],u[i]+=Lt}u[i]-=h[i]}for(;u[--l]===0;)u.pop();for(;u[0]===0;u.shift())--r;return u[0]?(t.d=u,t.e=r,st?qe(t,v):t):new m(0)}function aa(e,t,n){var r,i=Ot(e),o=Rr(e.d),s=o.length;return t?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+Vi(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Vi(-i-1)+o,n&&(r=n-s)>0&&(o+=Vi(r))):i>=s?(o+=Vi(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+Vi(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=Vi(r))),e.s<0?"-"+o:o}function FO(e,t){if(e.length>t)return e.length=t,!0}function kj(e){var t,n,r;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Yo+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return BO(s,o.toString())}else if(typeof o!="string")throw Error(Yo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,iee.test(o))BO(s,o);else throw Error(Yo+o)}if(i.prototype=ue,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=kj,i.config=i.set=oee,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function oee(e){if(!e||typeof e!="object")throw Error(ur+"Object expected");var t,n,r,i=["precision",1,il,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(ol(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Yo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Yo+n+": "+r);return this}var e1=kj(ree);$n=new e1(1);const Ze=e1;function aee(e){return cee(e)||uee(e)||lee(e)||see()}function see(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
326
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lee(e,t){if(e){if(typeof e=="string")return Ny(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ny(e,t)}}function uee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function cee(e){if(Array.isArray(e))return Ny(e)}function Ny(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fee=function(t){return t},Mj={},Cj=function(t){return t===Mj},VO=function(t){return function n(){return arguments.length===0||arguments.length===1&&Cj(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},hee=function e(t,n){return t===1?n:VO(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.filter(function(l){return l!==Mj}).length;return s>=t?n.apply(void 0,i):e(t-s,VO(function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var d=i.map(function(h){return Cj(h)?u.shift():h});return n.apply(void 0,aee(d).concat(u))}))})},Gp=function(t){return hee(t.length,t)},Ly=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},dee=Gp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),pee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return fee;var i=n.reverse(),o=i[0],s=i.slice(1);return function(){return s.reduce(function(l,u){return u(l)},o.apply(void 0,arguments))}},Iy=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},jj=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return n&&o.every(function(l,u){return l===n[u]})||(n=o,r=t.apply(void 0,o)),r}};function mee(e){var t;return e===0?t=1:t=Math.floor(new Ze(e).abs().log(10).toNumber())+1,t}function vee(e,t,n){for(var r=new Ze(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var gee=Gp(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),yee=Gp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),xee=Gp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Kp={rangeStep:vee,getDigitCount:mee,interpolateNumber:gee,uninterpolateNumber:yee,uninterpolateTruncation:xee};function Dy(e){return wee(e)||bee(e)||$j(e)||_ee()}function _ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
327
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function wee(e){if(Array.isArray(e))return Ry(e)}function ec(e,t){return Oee(e)||Pee(e,t)||$j(e,t)||See()}function See(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
328
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $j(e,t){if(e){if(typeof e=="string")return Ry(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ry(e,t)}}function Ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pee(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),l;!(r=(l=s.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function Oee(e){if(Array.isArray(e))return e}function Nj(e){var t=ec(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Lj(e,t,n){if(e.lte(0))return new Ze(0);var r=Kp.getDigitCount(e.toNumber()),i=new Ze(10).pow(r),o=e.div(i),s=r!==1?.05:.1,l=new Ze(Math.ceil(o.div(s).toNumber())).add(n).mul(s),u=l.mul(i);return t?u:new Ze(Math.ceil(u))}function Tee(e,t,n){var r=1,i=new Ze(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Ze(10).pow(Kp.getDigitCount(e)-1),i=new Ze(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Ze(Math.floor(e)))}else e===0?i=new Ze(Math.floor((t-1)/2)):n||(i=new Ze(Math.floor(e)));var s=Math.floor((t-1)/2),l=pee(dee(function(u){return i.add(new Ze(u-s).mul(r)).toNumber()}),Ly);return l(0,t)}function Ij(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Ze(0),tickMin:new Ze(0),tickMax:new Ze(0)};var o=Lj(new Ze(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new Ze(0):(s=new Ze(e).add(t).div(2),s=s.sub(new Ze(s).mod(o)));var l=Math.ceil(s.sub(e).div(o).toNumber()),u=Math.ceil(new Ze(t).sub(s).div(o).toNumber()),f=l+u+1;return f>n?Ij(e,t,n,r,i+1):(f<n&&(u=t>0?u+(n-f):u,l=t>0?l:l+(n-f)),{step:o,tickMin:s.sub(new Ze(l).mul(o)),tickMax:s.add(new Ze(u).mul(o))})}function Aee(e){var t=ec(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),l=Nj([n,r]),u=ec(l,2),f=u[0],d=u[1];if(f===-1/0||d===1/0){var h=d===1/0?[f].concat(Dy(Ly(0,i-1).map(function(){return 1/0}))):[].concat(Dy(Ly(0,i-1).map(function(){return-1/0})),[d]);return n>r?Iy(h):h}if(f===d)return Tee(f,i,o);var m=Ij(f,d,s,o),v=m.step,b=m.tickMin,x=m.tickMax,S=Kp.rangeStep(b,x.add(new Ze(.1).mul(v)),v);return n>r?Iy(S):S}function Eee(e,t){var n=ec(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Nj([r,i]),l=ec(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0)return[r,i];if(u===f)return[u];var d=Math.max(t,2),h=Lj(new Ze(f).sub(u).div(d-1),o,0),m=[].concat(Dy(Kp.rangeStep(new Ze(u),new Ze(f).sub(new Ze(.99).mul(h)),h)),[f]);return r>i?Iy(m):m}var kee=jj(Aee),Mee=jj(Eee),Cee="Invariant failed";function sa(e,t){throw new Error(Cee)}var jee=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Os(e){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Os(e)}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sd.apply(this,arguments)}function $ee(e,t){return Dee(e)||Iee(e,t)||Lee(e,t)||Nee()}function Nee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
329
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lee(e,t){if(e){if(typeof e=="string")return UO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UO(e,t)}}function UO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Iee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Dee(e){if(Array.isArray(e))return e}function Ree(e,t){if(e==null)return{};var n=zee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zj(r.key),r)}}function Vee(e,t,n){return t&&Fee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uee(e,t,n){return t=Pd(t),Wee(e,Dj()?Reflect.construct(t,n||[],Pd(e).constructor):t.apply(e,n))}function Wee(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 Hee(e)}function Hee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dj=function(){return!!e})()}function Pd(e){return Pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pd(e)}function Zee(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&&zy(e,t)}function zy(e,t){return zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zy(e,t)}function Rj(e,t,n){return t=zj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zj(e){var t=Gee(e,"string");return Os(t)=="symbol"?t:t+""}function Gee(e,t){if(Os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qp=function(e){function t(){return Bee(this,t),Uee(this,t,arguments)}return Zee(t,e),Vee(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,s=r.width,l=r.dataKey,u=r.data,f=r.dataPointFormatter,d=r.xAxis,h=r.yAxis,m=Ree(r,jee),v=Ee(m,!1);this.props.direction==="x"&&d.type!=="number"&&sa();var b=u.map(function(x){var S=f(x,l),y=S.x,_=S.y,w=S.value,E=S.errorVal;if(!E)return null;var P=[],A,M;if(Array.isArray(E)){var C=$ee(E,2);A=C[0],M=C[1]}else A=M=E;if(o==="vertical"){var N=d.scale,B=_+i,z=B+s,R=B-s,K=N(w-A),H=N(w+M);P.push({x1:H,y1:z,x2:H,y2:R}),P.push({x1:K,y1:B,x2:H,y2:B}),P.push({x1:K,y1:z,x2:K,y2:R})}else if(o==="horizontal"){var W=h.scale,Z=y+i,G=Z-s,$=Z+s,q=W(w-A),V=W(w+M);P.push({x1:G,y1:V,x2:$,y2:V}),P.push({x1:Z,y1:q,x2:Z,y2:V}),P.push({x1:G,y1:q,x2:$,y2:q})}return D.createElement(ft,Sd({className:"recharts-errorBar",key:"bar-".concat(P.map(function(te){return"".concat(te.x1,"-").concat(te.x2,"-").concat(te.y1,"-").concat(te.y2)}))},v),P.map(function(te){return D.createElement("line",Sd({},te,{key:"line-".concat(te.x1,"-").concat(te.x2,"-").concat(te.y1,"-").concat(te.y2)}))}))});return D.createElement(ft,{className:"recharts-errorBars"},b)}}])}(D.Component);Rj(qp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Rj(qp,"displayName","ErrorBar");function tc(e){"@babel/helpers - typeof";return tc=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},tc(e)}function WO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(n),!0).forEach(function(r){Kee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kee(e,t,n){return t=qee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qee(e){var t=Xee(e,"string");return tc(t)=="symbol"?t:t+""}function Xee(e,t){if(tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bj=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,s=jn(n,is);if(!s)return null;var l=is.defaultProps,u=l!==void 0?ko(ko({},l),s.props):{},f;return s.props&&s.props.payload?f=s.props&&s.props.payload:o==="children"?f=(r||[]).reduce(function(d,h){var m=h.item,v=h.props,b=v.sectors||v.data||[];return d.concat(b.map(function(x){return{type:s.props.iconType||m.props.legendType,value:x.name,color:x.fill,payload:x}}))},[]):f=(r||[]).map(function(d){var h=d.item,m=h.type.defaultProps,v=m!==void 0?ko(ko({},m),h.props):{},b=v.dataKey,x=v.name,S=v.legendType,y=v.hide;return{inactive:y,dataKey:b,type:u.iconType||S||"square",color:t1(h),value:x||b,payload:v}}),ko(ko(ko({},u),is.getWithHeight(s,i)),{},{payload:f,item:s})};function nc(e){"@babel/helpers - typeof";return nc=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},nc(e)}function HO(e){return ete(e)||Jee(e)||Qee(e)||Yee()}function Yee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
330
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qee(e,t){if(e){if(typeof e=="string")return By(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return By(e,t)}}function Jee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ete(e){if(Array.isArray(e))return By(e)}function By(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(n),!0).forEach(function(r){as(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function as(e,t,n){return t=tte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tte(e){var t=nte(e,"string");return nc(t)=="symbol"?t:t+""}function nte(e,t){if(nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bn(e,t,n){return Me(e)||Me(t)?n:Ct(t)?ar(e,t,n):Pe(t)?t(e):n}function mu(e,t,n,r){var i=JJ(e,function(l){return Bn(l,t)});if(n==="number"){var o=i.filter(function(l){return ie(l)||parseFloat(l)});return o.length?[Zp(o),Ki(o)]:[1/0,-1/0]}var s=r?i.filter(function(l){return!Me(l)}):i;return s.map(function(l){return Ct(l)||l instanceof Date?l:""})}var rte=function(t){var n,r=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,s=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=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,f=0;f<l;f++){var d=f>0?i[f-1].coordinate:i[l-1].coordinate,h=i[f].coordinate,m=f>=l-1?i[0].coordinate:i[f+1].coordinate,v=void 0;if(Pr(h-d)!==Pr(m-h)){var b=[];if(Pr(m-h)===Pr(u[1]-u[0])){v=m;var x=h+u[1]-u[0];b[0]=Math.min(x,(x+d)/2),b[1]=Math.max(x,(x+d)/2)}else{v=d;var S=m+u[1]-u[0];b[0]=Math.min(h,(S+h)/2),b[1]=Math.max(h,(S+h)/2)}var y=[Math.min(h,(v+h)/2),Math.max(h,(v+h)/2)];if(t>y[0]&&t<=y[1]||t>=b[0]&&t<=b[1]){s=i[f].index;break}}else{var _=Math.min(d,m),w=Math.max(d,m);if(t>(_+h)/2&&t<=(w+h)/2){s=i[f].index;break}}}else for(var E=0;E<l;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){s=r[E].index;break}return s},t1=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,s=o.stroke,l=o.fill,u;switch(i){case"Line":u=s;break;case"Area":case"Radar":u=s&&s!=="none"?s:l;break;default:u=l;break}return u},ite=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var s={},l=Object.keys(o),u=0,f=l.length;u<f;u++)for(var d=o[l[u]].stackGroups,h=Object.keys(d),m=0,v=h.length;m<v;m++){var b=d[h[m]],x=b.items,S=b.cateAxisId,y=x.filter(function(M){return mi(M.type).indexOf("Bar")>=0});if(y&&y.length){var _=y[0].type.defaultProps,w=_!==void 0?vt(vt({},_),y[0].props):y[0].props,E=w.barSize,P=w[S];s[P]||(s[P]=[]);var A=Me(E)?n:E;s[P].push({item:y[0],stackList:y.slice(1),barSize:Me(A)?void 0:oa(A,r,0)})}}return s},ote=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,s=o===void 0?[]:o,l=t.maxBarSize,u=s.length;if(u<1)return null;var f=oa(n,i,0,!0),d,h=[];if(s[0].barSize===+s[0].barSize){var m=!1,v=i/u,b=s.reduce(function(E,P){return E+P.barSize||0},0);b+=(u-1)*f,b>=i&&(b-=(u-1)*f,f=0),b>=i&&v>0&&(m=!0,v*=.9,b=u*v);var x=(i-b)/2>>0,S={offset:x-f,size:0};d=s.reduce(function(E,P){var A={item:P.item,position:{offset:S.offset+S.size+f,size:m?v:P.barSize}},M=[].concat(HO(E),[A]);return S=M[M.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(C){M.push({item:C,position:S})}),M},h)}else{var y=oa(r,i,0,!0);i-2*y-(u-1)*f<=0&&(f=0);var _=(i-2*y-(u-1)*f)/u;_>1&&(_>>=0);var w=l===+l?Math.min(_,l):_;d=s.reduce(function(E,P,A){var M=[].concat(HO(E),[{item:P.item,position:{offset:y+(_+f)*A+(_-w)/2,size:w}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(C){M.push({item:C,position:M[M.length-1].position})}),M},h)}return d},ate=function(t,n,r,i){var o=r.children,s=r.width,l=r.margin,u=s-(l.left||0)-(l.right||0),f=Bj({children:o,legendWidth:u});if(f){var d=i||{},h=d.width,m=d.height,v=f.align,b=f.verticalAlign,x=f.layout;if((x==="vertical"||x==="horizontal"&&b==="middle")&&v!=="center"&&ie(t[v]))return vt(vt({},t),{},as({},v,t[v]+(h||0)));if((x==="horizontal"||x==="vertical"&&v==="center")&&b!=="middle"&&ie(t[b]))return vt(vt({},t),{},as({},b,t[b]+(m||0)))}return t},ste=function(t,n,r){return Me(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Fj=function(t,n,r,i,o){var s=n.props.children,l=Ar(s,qp).filter(function(f){return ste(i,o,f.props.direction)});if(l&&l.length){var u=l.map(function(f){return f.props.dataKey});return t.reduce(function(f,d){var h=Bn(d,r);if(Me(h))return f;var m=Array.isArray(h)?[Zp(h),Ki(h)]:[h,h],v=u.reduce(function(b,x){var S=Bn(d,x,0),y=m[0]-Math.abs(Array.isArray(S)?S[0]:S),_=m[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(y,b[0]),Math.max(_,b[1])]},[1/0,-1/0]);return[Math.min(v[0],f[0]),Math.max(v[1],f[1])]},[1/0,-1/0])}return null},lte=function(t,n,r,i,o){var s=n.map(function(l){return Fj(t,l,r,o,i)}).filter(function(l){return!Me(l)});return s&&s.length?s.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},Vj=function(t,n,r,i,o){var s=n.map(function(u){var f=u.props.dataKey;return r==="number"&&f&&Fj(t,u,f,i)||mu(t,f,r,o)});if(r==="number")return s.reduce(function(u,f){return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);var l={};return s.reduce(function(u,f){for(var d=0,h=f.length;d<h;d++)l[f[d]]||(l[f[d]]=!0,u.push(f[d]));return u},[])},Uj=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Wj=function(t,n,r,i){if(i)return t.map(function(u){return u.coordinate});var o,s,l=t.map(function(u){return u.coordinate===n&&(o=!0),u.coordinate===r&&(s=!0),u.coordinate});return o||l.push(n),s||l.push(r),l},fi=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,s=t.type,l=t.range,u=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,f=(n||r)&&s==="category"&&i.bandwidth?i.bandwidth()/u:0;if(f=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Pr(l[0]-l[1])*2*f:f,n&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(h){var m=o?o.indexOf(h):h;return{coordinate:i(m)+f,value:h,offset:f}});return d.filter(function(h){return!Qs(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,m){return{coordinate:i(h)+f,value:h,index:m,offset:f}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(h){return{coordinate:i(h)+f,value:h,offset:f}}):i.domain().map(function(h,m){return{coordinate:i(h)+f,value:o?o[h]:h,index:m,offset:f}})},Cv=new WeakMap,Xf=function(t,n){if(typeof n!="function")return t;Cv.has(t)||Cv.set(t,new WeakMap);var r=Cv.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},ute=function(t,n,r){var i=t.scale,o=t.type,s=t.layout,l=t.axisType;if(i==="auto")return s==="radial"&&l==="radiusAxis"?{scale:Gu(),realScaleType:"band"}:s==="radial"&&l==="angleAxis"?{scale:yd(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:pu(),realScaleType:"point"}:o==="category"?{scale:Gu(),realScaleType:"band"}:{scale:yd(),realScaleType:"linear"};if(ia(i)){var u="scale".concat($p(i));return{scale:(zO[u]||pu)(),realScaleType:zO[u]?u:"point"}}return Pe(i)?{scale:i}:{scale:pu(),realScaleType:"point"}},GO=1e-4,cte=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-GO,s=Math.max(i[0],i[1])+GO,l=t(n[0]),u=t(n[r-1]);(l<o||l>s||u<o||u>s)&&t.domain([n[0],n[r-1]])}},fte=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},hte=function(t,n){if(!n||n.length!==2||!ie(n[0])||!ie(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!ie(t[0])||t[0]<r)&&(o[0]=r),(!ie(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},dte=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,s=0,l=0;l<n;++l){var u=Qs(t[l][r][1])?t[l][r][0]:t[l][r][1];u>=0?(t[l][r][0]=o,t[l][r][1]=o+u,o=t[l][r][1]):(t[l][r][0]=s,t[l][r][1]=s+u,s=t[l][r][1])}},pte=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,s=0;s<n;++s){var l=Qs(t[s][r][1])?t[s][r][0]:t[s][r][1];l>=0?(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},mte={sign:dte,expand:MU,none:gs,silhouette:CU,wiggle:jU,positive:pte},vte=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=mte[r],s=kU().keys(i).value(function(l,u){return+Bn(l,u,0)}).order(fy).offset(o);return s(t)},gte=function(t,n,r,i,o,s){if(!t)return null;var l=s?n.reverse():n,u={},f=l.reduce(function(h,m){var v,b=(v=m.type)!==null&&v!==void 0&&v.defaultProps?vt(vt({},m.type.defaultProps),m.props):m.props,x=b.stackId,S=b.hide;if(S)return h;var y=b[r],_=h[y]||{hasStack:!1,stackGroups:{}};if(Ct(x)){var w=_.stackGroups[x]||{numericAxisId:r,cateAxisId:i,items:[]};w.items.push(m),_.hasStack=!0,_.stackGroups[x]=w}else _.stackGroups[jc("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[m]};return vt(vt({},h),{},as({},y,_))},u),d={};return Object.keys(f).reduce(function(h,m){var v=f[m];if(v.hasStack){var b={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(x,S){var y=v.stackGroups[S];return vt(vt({},x),{},as({},S,{numericAxisId:r,cateAxisId:i,items:y.items,stackedData:vte(t,y.items,o)}))},b)}return vt(vt({},h),{},as({},m,v))},d)},yte=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,s=n.originalDomain,l=n.allowDecimals,u=r||n.scale;if(u!=="auto"&&u!=="linear")return null;if(o&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var f=t.domain();if(!f.length)return null;var d=kee(f,o,l);return t.domain([Zp(d),Ki(d)]),{niceTicks:d}}if(o&&i==="number"){var h=t.domain(),m=Mee(h,o,l);return{niceTicks:m}}return null};function KO(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Me(i[t.dataKey])){var l=Kh(n,"value",i[t.dataKey]);if(l)return l.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=Bn(i,Me(s)?t.dataKey:s);return Me(u)?null:t.scale(u)}var qO=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,s=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var u=Bn(s,n.dataKey,n.domain[l]);return Me(u)?null:n.scale(u)-o/2+i},xte=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},_te=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Ct(o)){var s=n[o];if(s){var l=s.items.indexOf(t);return l>=0?s.stackedData[l]:null}}return null},bte=function(t){return t.reduce(function(n,r){return[Zp(r.concat([n[0]]).filter(ie)),Ki(r.concat([n[1]]).filter(ie))]},[1/0,-1/0])},Hj=function(t,n,r){return Object.keys(t).reduce(function(i,o){var s=t[o],l=s.stackedData,u=l.reduce(function(f,d){var h=bte(d.slice(n,r+1));return[Math.min(f[0],h[0]),Math.max(f[1],h[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})},XO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,YO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Fy=function(t,n,r){if(Pe(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(ie(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(XO.test(t[0])){var o=+XO.exec(t[0])[1];i[0]=n[0]-o}else Pe(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(ie(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(YO.test(t[1])){var s=+YO.exec(t[1])[1];i[1]=n[1]+s}else Pe(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Od=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=E_(n,function(h){return h.coordinate}),s=1/0,l=1,u=o.length;l<u;l++){var f=o[l],d=o[l-1];s=Math.min((f.coordinate||0)-(d.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},QO=function(t,n,r){return!t||!t.length||Qu(t,ar(r,"type.defaultProps.domain"))?n:t},Zj=function(t,n){var r=t.type.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,i=r.dataKey,o=r.name,s=r.unit,l=r.formatter,u=r.tooltipType,f=r.chartType,d=r.hide;return vt(vt({},Ee(t,!1)),{},{dataKey:i,unit:s,formatter:l,name:o||i,color:t1(t),value:Bn(n,i),type:u,payload:n,chartType:f,hide:d})};function rc(e){"@babel/helpers - typeof";return rc=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},rc(e)}function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){wte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wte(e,t,n){return t=Ste(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ste(e){var t=Pte(e,"string");return rc(t)=="symbol"?t:t+""}function Pte(e,t){if(rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Td=Math.PI/180,Ote=function(t){return t*180/Math.PI},Wt=function(t,n,r,i){return{x:t+Math.cos(-Td*i)*r,y:n+Math.sin(-Td*i)*r}},Tte=function(t,n){var r=t.x,i=t.y,o=n.x,s=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-s,2))},Ate=function(t,n){var r=t.x,i=t.y,o=n.cx,s=n.cy,l=Tte({x:r,y:i},{x:o,y:s});if(l<=0)return{radius:l};var u=(r-o)/l,f=Math.acos(u);return i>s&&(f=2*Math.PI-f),{radius:l,angle:Ote(f),angleInRadian:f}},Ete=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),s=Math.min(i,o);return{startAngle:n-s*360,endAngle:r-s*360}},kte=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),s=Math.floor(i/360),l=Math.min(o,s);return t+l*360},tT=function(t,n){var r=t.x,i=t.y,o=Ate({x:r,y:i},n),s=o.radius,l=o.angle,u=n.innerRadius,f=n.outerRadius;if(s<u||s>f)return!1;if(s===0)return!0;var d=Ete(n),h=d.startAngle,m=d.endAngle,v=l,b;if(h<=m){for(;v>m;)v-=360;for(;v<h;)v+=360;b=v>=h&&v<=m}else{for(;v>h;)v-=360;for(;v<m;)v+=360;b=v>=m&&v<=h}return b?eT(eT({},n),{},{radius:s,angle:kte(v,n)}):null};function ic(e){"@babel/helpers - typeof";return ic=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},ic(e)}var Mte=["offset"];function Cte(e){return Lte(e)||Nte(e)||$te(e)||jte()}function jte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
331
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $te(e,t){if(e){if(typeof e=="string")return Vy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vy(e,t)}}function Nte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lte(e){if(Array.isArray(e))return Vy(e)}function Vy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ite(e,t){if(e==null)return{};var n=Dte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dte(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nT(Object(n),!0).forEach(function(r){Rte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rte(e,t,n){return t=zte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zte(e){var t=Bte(e,"string");return ic(t)=="symbol"?t:t+""}function Bte(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(this,arguments)}var Fte=function(t){var n=t.value,r=t.formatter,i=Me(t.children)?n:t.children;return Pe(r)?r(i):i},Vte=function(t,n){var r=Pr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Ute=function(t,n,r){var i=t.position,o=t.viewBox,s=t.offset,l=t.className,u=o,f=u.cx,d=u.cy,h=u.innerRadius,m=u.outerRadius,v=u.startAngle,b=u.endAngle,x=u.clockWise,S=(h+m)/2,y=Vte(v,b),_=y>=0?1:-1,w,E;i==="insideStart"?(w=v+_*s,E=x):i==="insideEnd"?(w=b-_*s,E=!x):i==="end"&&(w=b+_*s,E=x),E=y<=0?E:!E;var P=Wt(f,d,S,w),A=Wt(f,d,S,w+(E?1:-1)*359),M="M".concat(P.x,",").concat(P.y,`
|
|
332
|
+
A`).concat(S,",").concat(S,",0,1,").concat(E?0:1,`,
|
|
333
|
+
`).concat(A.x,",").concat(A.y),C=Me(t.id)?jc("recharts-radial-line-"):t.id;return D.createElement("text",oc({},r,{dominantBaseline:"central",className:Ne("recharts-radial-bar-label",l)}),D.createElement("defs",null,D.createElement("path",{id:C,d:M})),D.createElement("textPath",{xlinkHref:"#".concat(C)},n))},Wte=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,s=o.cx,l=o.cy,u=o.innerRadius,f=o.outerRadius,d=o.startAngle,h=o.endAngle,m=(d+h)/2;if(i==="outside"){var v=Wt(s,l,f+r,m),b=v.x,x=v.y;return{x:b,y:x,textAnchor:b>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"end"};var S=(u+f)/2,y=Wt(s,l,S,m),_=y.x,w=y.y;return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Hte=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,s=n,l=s.x,u=s.y,f=s.width,d=s.height,h=d>=0?1:-1,m=h*i,v=h>0?"end":"start",b=h>0?"start":"end",x=f>=0?1:-1,S=x*i,y=x>0?"end":"start",_=x>0?"start":"end";if(o==="top"){var w={x:l+f/2,y:u-h*i,textAnchor:"middle",verticalAnchor:v};return Et(Et({},w),r?{height:Math.max(u-r.y,0),width:f}:{})}if(o==="bottom"){var E={x:l+f/2,y:u+d+m,textAnchor:"middle",verticalAnchor:b};return Et(Et({},E),r?{height:Math.max(r.y+r.height-(u+d),0),width:f}:{})}if(o==="left"){var P={x:l-S,y:u+d/2,textAnchor:y,verticalAnchor:"middle"};return Et(Et({},P),r?{width:Math.max(P.x-r.x,0),height:d}:{})}if(o==="right"){var A={x:l+f+S,y:u+d/2,textAnchor:_,verticalAnchor:"middle"};return Et(Et({},A),r?{width:Math.max(r.x+r.width-A.x,0),height:d}:{})}var M=r?{width:f,height:d}:{};return o==="insideLeft"?Et({x:l+S,y:u+d/2,textAnchor:_,verticalAnchor:"middle"},M):o==="insideRight"?Et({x:l+f-S,y:u+d/2,textAnchor:y,verticalAnchor:"middle"},M):o==="insideTop"?Et({x:l+f/2,y:u+m,textAnchor:"middle",verticalAnchor:b},M):o==="insideBottom"?Et({x:l+f/2,y:u+d-m,textAnchor:"middle",verticalAnchor:v},M):o==="insideTopLeft"?Et({x:l+S,y:u+m,textAnchor:_,verticalAnchor:b},M):o==="insideTopRight"?Et({x:l+f-S,y:u+m,textAnchor:y,verticalAnchor:b},M):o==="insideBottomLeft"?Et({x:l+S,y:u+d-m,textAnchor:_,verticalAnchor:v},M):o==="insideBottomRight"?Et({x:l+f-S,y:u+d-m,textAnchor:y,verticalAnchor:v},M):Ks(o)&&(ie(o.x)||Vo(o.x))&&(ie(o.y)||Vo(o.y))?Et({x:l+oa(o.x,f),y:u+oa(o.y,d),textAnchor:"end",verticalAnchor:"end"},M):Et({x:l+f/2,y:u+d/2,textAnchor:"middle",verticalAnchor:"middle"},M)},Zte=function(t){return"cx"in t&&ie(t.cx)};function en(e){var t=e.offset,n=t===void 0?5:t,r=Ite(e,Mte),i=Et({offset:n},r),o=i.viewBox,s=i.position,l=i.value,u=i.children,f=i.content,d=i.className,h=d===void 0?"":d,m=i.textBreakAll;if(!o||Me(l)&&Me(u)&&!j.isValidElement(f)&&!Pe(f))return null;if(j.isValidElement(f))return j.cloneElement(f,i);var v;if(Pe(f)){if(v=j.createElement(f,i),j.isValidElement(v))return v}else v=Fte(i);var b=Zte(o),x=Ee(i,!0);if(b&&(s==="insideStart"||s==="insideEnd"||s==="end"))return Ute(i,v,x);var S=b?Wte(i):Hte(i);return D.createElement(cd,oc({className:Ne("recharts-label",h)},x,S,{breakAll:m}),v)}en.displayName="Label";var Gj=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,s=t.endAngle,l=t.r,u=t.radius,f=t.innerRadius,d=t.outerRadius,h=t.x,m=t.y,v=t.top,b=t.left,x=t.width,S=t.height,y=t.clockWise,_=t.labelViewBox;if(_)return _;if(ie(x)&&ie(S)){if(ie(h)&&ie(m))return{x:h,y:m,width:x,height:S};if(ie(v)&&ie(b))return{x:v,y:b,width:x,height:S}}return ie(h)&&ie(m)?{x:h,y:m,width:0,height:0}:ie(n)&&ie(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:s||i||0,innerRadius:f||0,outerRadius:d||u||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},Gte=function(t,n){return t?t===!0?D.createElement(en,{key:"label-implicit",viewBox:n}):Ct(t)?D.createElement(en,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===en?j.cloneElement(t,{key:"label-implicit",viewBox:n}):D.createElement(en,{key:"label-implicit",content:t,viewBox:n}):Pe(t)?D.createElement(en,{key:"label-implicit",content:t,viewBox:n}):Ks(t)?D.createElement(en,oc({viewBox:n},t,{key:"label-implicit"})):null:null},Kte=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=Gj(t),s=Ar(i,en).map(function(u,f){return j.cloneElement(u,{viewBox:n||o,key:"label-".concat(f)})});if(!r)return s;var l=Gte(t.label,n||o);return[l].concat(Cte(s))};en.parseViewBox=Gj;en.renderCallByParent=Kte;function qte(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Xte=qte;const Yte=Ge(Xte);function ac(e){"@babel/helpers - typeof";return ac=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},ac(e)}var Qte=["valueAccessor"],Jte=["data","dataKey","clockWise","id","textBreakAll"];function ene(e){return ine(e)||rne(e)||nne(e)||tne()}function tne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
334
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nne(e,t){if(e){if(typeof e=="string")return Uy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uy(e,t)}}function rne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ine(e){if(Array.isArray(e))return Uy(e)}function Uy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ad.apply(this,arguments)}function rT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function iT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rT(Object(n),!0).forEach(function(r){one(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function one(e,t,n){return t=ane(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ane(e){var t=sne(e,"string");return ac(t)=="symbol"?t:t+""}function sne(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oT(e,t){if(e==null)return{};var n=lne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var une=function(t){return Array.isArray(t.value)?Yte(t.value):t.value};function Hr(e){var t=e.valueAccessor,n=t===void 0?une:t,r=oT(e,Qte),i=r.data,o=r.dataKey,s=r.clockWise,l=r.id,u=r.textBreakAll,f=oT(r,Jte);return!i||!i.length?null:D.createElement(ft,{className:"recharts-label-list"},i.map(function(d,h){var m=Me(o)?n(d,h):Bn(d&&d.payload,o),v=Me(l)?{}:{id:"".concat(l,"-").concat(h)};return D.createElement(en,Ad({},Ee(d,!0),f,v,{parentViewBox:d.parentViewBox,value:m,textBreakAll:u,viewBox:en.parseViewBox(Me(s)?d:iT(iT({},d),{},{clockWise:s})),key:"label-".concat(h),index:h}))}))}Hr.displayName="LabelList";function cne(e,t){return e?e===!0?D.createElement(Hr,{key:"labelList-implicit",data:t}):D.isValidElement(e)||Pe(e)?D.createElement(Hr,{key:"labelList-implicit",data:t,content:e}):Ks(e)?D.createElement(Hr,Ad({data:t},e,{key:"labelList-implicit"})):null:null}function fne(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Ar(r,Hr).map(function(s,l){return j.cloneElement(s,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=cne(e.label,t);return[o].concat(ene(i))}Hr.renderCallByParent=fne;function sc(e){"@babel/helpers - typeof";return sc=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},sc(e)}function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wy.apply(this,arguments)}function aT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aT(Object(n),!0).forEach(function(r){hne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hne(e,t,n){return t=dne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dne(e){var t=pne(e,"string");return sc(t)=="symbol"?t:t+""}function pne(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mne=function(t,n){var r=Pr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Yf=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,s=t.sign,l=t.isExternal,u=t.cornerRadius,f=t.cornerIsExternal,d=u*(l?1:-1)+i,h=Math.asin(u/d)/Td,m=f?o:o+s*h,v=Wt(n,r,d,m),b=Wt(n,r,i,m),x=f?o-s*h:o,S=Wt(n,r,d*Math.cos(h*Td),x);return{center:v,circleTangency:b,lineTangency:S,theta:h}},Kj=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.startAngle,l=t.endAngle,u=mne(s,l),f=s+u,d=Wt(n,r,o,s),h=Wt(n,r,o,f),m="M ".concat(d.x,",").concat(d.y,`
|
|
335
|
+
A `).concat(o,",").concat(o,`,0,
|
|
336
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(s>f),`,
|
|
337
|
+
`).concat(h.x,",").concat(h.y,`
|
|
338
|
+
`);if(i>0){var v=Wt(n,r,i,s),b=Wt(n,r,i,f);m+="L ".concat(b.x,",").concat(b.y,`
|
|
339
|
+
A `).concat(i,",").concat(i,`,0,
|
|
340
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(s<=f),`,
|
|
341
|
+
`).concat(v.x,",").concat(v.y," Z")}else m+="L ".concat(n,",").concat(r," Z");return m},vne=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,f=t.startAngle,d=t.endAngle,h=Pr(d-f),m=Yf({cx:n,cy:r,radius:o,angle:f,sign:h,cornerRadius:s,cornerIsExternal:u}),v=m.circleTangency,b=m.lineTangency,x=m.theta,S=Yf({cx:n,cy:r,radius:o,angle:d,sign:-h,cornerRadius:s,cornerIsExternal:u}),y=S.circleTangency,_=S.lineTangency,w=S.theta,E=u?Math.abs(f-d):Math.abs(f-d)-x-w;if(E<0)return l?"M ".concat(b.x,",").concat(b.y,`
|
|
342
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
343
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
344
|
+
`):Kj({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:f,endAngle:d});var P="M ".concat(b.x,",").concat(b.y,`
|
|
345
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(v.x,",").concat(v.y,`
|
|
346
|
+
A`).concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(h<0),",").concat(y.x,",").concat(y.y,`
|
|
347
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(_.x,",").concat(_.y,`
|
|
348
|
+
`);if(i>0){var A=Yf({cx:n,cy:r,radius:i,angle:f,sign:h,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),M=A.circleTangency,C=A.lineTangency,N=A.theta,B=Yf({cx:n,cy:r,radius:i,angle:d,sign:-h,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),z=B.circleTangency,R=B.lineTangency,K=B.theta,H=u?Math.abs(f-d):Math.abs(f-d)-N-K;if(H<0&&s===0)return"".concat(P,"L").concat(n,",").concat(r,"Z");P+="L".concat(R.x,",").concat(R.y,`
|
|
349
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(z.x,",").concat(z.y,`
|
|
350
|
+
A`).concat(i,",").concat(i,",0,").concat(+(H>180),",").concat(+(h>0),",").concat(M.x,",").concat(M.y,`
|
|
351
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(C.x,",").concat(C.y,"Z")}else P+="L".concat(n,",").concat(r,"Z");return P},gne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},qj=function(t){var n=sT(sT({},gne),t),r=n.cx,i=n.cy,o=n.innerRadius,s=n.outerRadius,l=n.cornerRadius,u=n.forceCornerRadius,f=n.cornerIsExternal,d=n.startAngle,h=n.endAngle,m=n.className;if(s<o||d===h)return null;var v=Ne("recharts-sector",m),b=s-o,x=oa(l,b,0,!0),S;return x>0&&Math.abs(d-h)<360?S=vne({cx:r,cy:i,innerRadius:o,outerRadius:s,cornerRadius:Math.min(x,b/2),forceCornerRadius:u,cornerIsExternal:f,startAngle:d,endAngle:h}):S=Kj({cx:r,cy:i,innerRadius:o,outerRadius:s,startAngle:d,endAngle:h}),D.createElement("path",Wy({},Ee(n,!0),{className:v,d:S,role:"img"}))};function lc(e){"@babel/helpers - typeof";return lc=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},lc(e)}function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hy.apply(this,arguments)}function lT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lT(Object(n),!0).forEach(function(r){yne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yne(e,t,n){return t=xne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xne(e){var t=_ne(e,"string");return lc(t)=="symbol"?t:t+""}function _ne(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cT={curveBasisClosed:yU,curveBasisOpen:xU,curveBasis:gU,curveBumpX:rU,curveBumpY:iU,curveLinearClosed:_U,curveLinear:Lp,curveMonotoneX:bU,curveMonotoneY:wU,curveNatural:SU,curveStep:PU,curveStepAfter:TU,curveStepBefore:OU},Qf=function(t){return t.x===+t.x&&t.y===+t.y},Rl=function(t){return t.x},zl=function(t){return t.y},bne=function(t,n){if(Pe(t))return t;var r="curve".concat($p(t));return(r==="curveMonotone"||r==="curveBump")&&n?cT["".concat(r).concat(n==="vertical"?"Y":"X")]:cT[r]||Lp},wne=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,s=t.baseLine,l=t.layout,u=t.connectNulls,f=u===void 0?!1:u,d=bne(r,l),h=f?o.filter(function(x){return Qf(x)}):o,m;if(Array.isArray(s)){var v=f?s.filter(function(x){return Qf(x)}):s,b=h.map(function(x,S){return uT(uT({},x),{},{base:v[S]})});return l==="vertical"?m=Vf().y(zl).x1(Rl).x0(function(x){return x.base.x}):m=Vf().x(Rl).y1(zl).y0(function(x){return x.base.y}),m.defined(Qf).curve(d),m(b)}return l==="vertical"&&ie(s)?m=Vf().y(zl).x1(Rl).x0(s):ie(s)?m=Vf().x(Rl).y1(zl).y0(s):m=YM().x(Rl).y(zl),m.defined(Qf).curve(d),m(h)},vu=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var s=r&&r.length?wne(t):i;return j.createElement("path",Hy({},Ee(t,!1),qh(t),{className:Ne("recharts-curve",n),d:s,ref:o}))},Xj={exports:{}},Sne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Pne=Sne,One=Pne;function Yj(){}function Qj(){}Qj.resetWarningCache=Yj;var Tne=function(){function e(r,i,o,s,l,u){if(u!==One){var f=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 f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={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:Qj,resetWarningCache:Yj};return n.PropTypes=n,n};Xj.exports=Tne();var Ane=Xj.exports;const Re=Ge(Ane),{getOwnPropertyNames:Ene,getOwnPropertySymbols:kne}=Object,{hasOwnProperty:Mne}=Object.prototype;function jv(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function Jf(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:o}=i,s=o.get(n),l=o.get(r);if(s&&l)return s===r&&l===n;o.set(n,r),o.set(r,n);const u=e(n,r,i);return o.delete(n),o.delete(r),u}}function Cne(e){return e!=null?e[Symbol.toStringTag]:void 0}function fT(e){return Ene(e).concat(kne(e))}const jne=Object.hasOwn||((e,t)=>Mne.call(e,t));function ma(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const $ne="__v",Nne="__o",Lne="_owner",{getOwnPropertyDescriptor:hT,keys:dT}=Object;function Ine(e,t){return e.byteLength===t.byteLength&&Ed(new Uint8Array(e),new Uint8Array(t))}function Dne(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Rne(e,t){return e.byteLength===t.byteLength&&Ed(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function zne(e,t){return ma(e.getTime(),t.getTime())}function Bne(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Fne(e,t){return e===t}function pT(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.entries();let s,l,u=0;for(;(s=o.next())&&!s.done;){const f=t.entries();let d=!1,h=0;for(;(l=f.next())&&!l.done;){if(i[h]){h++;continue}const m=s.value,v=l.value;if(n.equals(m[0],v[0],u,h,e,t,n)&&n.equals(m[1],v[1],m[0],v[0],e,t,n)){d=i[h]=!0;break}h++}if(!d)return!1;u++}return!0}const Vne=ma;function Une(e,t,n){const r=dT(e);let i=r.length;if(dT(t).length!==i)return!1;for(;i-- >0;)if(!Jj(e,t,n,r[i]))return!1;return!0}function Bl(e,t,n){const r=fT(e);let i=r.length;if(fT(t).length!==i)return!1;let o,s,l;for(;i-- >0;)if(o=r[i],!Jj(e,t,n,o)||(s=hT(e,o),l=hT(t,o),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function Wne(e,t){return ma(e.valueOf(),t.valueOf())}function Hne(e,t){return e.source===t.source&&e.flags===t.flags}function mT(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.values();let s,l;for(;(s=o.next())&&!s.done;){const u=t.values();let f=!1,d=0;for(;(l=u.next())&&!l.done;){if(!i[d]&&n.equals(s.value,l.value,s.value,l.value,e,t,n)){f=i[d]=!0;break}d++}if(!f)return!1}return!0}function Ed(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Zne(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 Jj(e,t,n,r){return(r===Lne||r===Nne||r===$ne)&&(e.$$typeof||t.$$typeof)?!0:jne(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Gne="[object ArrayBuffer]",Kne="[object Arguments]",qne="[object Boolean]",Xne="[object DataView]",Yne="[object Date]",Qne="[object Error]",Jne="[object Map]",ere="[object Number]",tre="[object Object]",nre="[object RegExp]",rre="[object Set]",ire="[object String]",ore={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},are="[object URL]",sre=Object.prototype.toString;function lre({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:f,areRegExpsEqual:d,areSetsEqual:h,areTypedArraysEqual:m,areUrlsEqual:v,unknownTagComparators:b}){return function(S,y,_){if(S===y)return!0;if(S==null||y==null)return!1;const w=typeof S;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?l(S,y,_):w==="function"?o(S,y,_):!1;const E=S.constructor;if(E!==y.constructor)return!1;if(E===Object)return u(S,y,_);if(Array.isArray(S))return t(S,y,_);if(E===Date)return r(S,y,_);if(E===RegExp)return d(S,y,_);if(E===Map)return s(S,y,_);if(E===Set)return h(S,y,_);const P=sre.call(S);if(P===Yne)return r(S,y,_);if(P===nre)return d(S,y,_);if(P===Jne)return s(S,y,_);if(P===rre)return h(S,y,_);if(P===tre)return typeof S.then!="function"&&typeof y.then!="function"&&u(S,y,_);if(P===are)return v(S,y,_);if(P===Qne)return i(S,y,_);if(P===Kne)return u(S,y,_);if(ore[P])return m(S,y,_);if(P===Gne)return e(S,y,_);if(P===Xne)return n(S,y,_);if(P===qne||P===ere||P===ire)return f(S,y,_);if(b){let A=b[P];if(!A){const M=Cne(S);M&&(A=b[M])}if(A)return A(S,y,_)}return!1}}function ure({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Ine,areArraysEqual:n?Bl:Dne,areDataViewsEqual:Rne,areDatesEqual:zne,areErrorsEqual:Bne,areFunctionsEqual:Fne,areMapsEqual:n?jv(pT,Bl):pT,areNumbersEqual:Vne,areObjectsEqual:n?Bl:Une,arePrimitiveWrappersEqual:Wne,areRegExpsEqual:Hne,areSetsEqual:n?jv(mT,Bl):mT,areTypedArraysEqual:n?jv(Ed,Bl):Ed,areUrlsEqual:Zne,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=Jf(r.areArraysEqual),o=Jf(r.areMapsEqual),s=Jf(r.areObjectsEqual),l=Jf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return r}function cre(e){return function(t,n,r,i,o,s,l){return e(t,n,l)}}function fre({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(l,u){const{cache:f=e?new WeakMap:void 0,meta:d}=n();return t(l,u,{cache:f,equals:r,meta:d,strict:i})};if(e)return function(l,u){return t(l,u,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const o={cache:void 0,equals:r,meta:void 0,strict:i};return function(l,u){return t(l,u,o)}}const hre=yo();yo({strict:!0});yo({circular:!0});yo({circular:!0,strict:!0});yo({createInternalComparator:()=>ma});yo({strict:!0,createInternalComparator:()=>ma});yo({circular:!0,createInternalComparator:()=>ma});yo({circular:!0,createInternalComparator:()=>ma,strict:!0});function yo(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=ure(e),s=lre(o),l=n?n(s):cre(s);return fre({circular:t,comparator:s,createState:r,equals:l,strict:i})}function dre(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function vT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):dre(i)};requestAnimationFrame(r)}function Zy(e){"@babel/helpers - typeof";return Zy=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},Zy(e)}function pre(e){return yre(e)||gre(e)||vre(e)||mre()}function mre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
352
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vre(e,t){if(e){if(typeof e=="string")return gT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gT(e,t)}}function gT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yre(e){if(Array.isArray(e))return e}function xre(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,l=pre(s),u=l[0],f=l.slice(1);if(typeof u=="number"){vT(i.bind(null,f),u);return}i(u),vT(i.bind(null,f));return}Zy(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function uc(e){"@babel/helpers - typeof";return uc=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},uc(e)}function yT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yT(Object(n),!0).forEach(function(r){e$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e$(e,t,n){return t=_re(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _re(e){var t=bre(e,"string");return uc(t)==="symbol"?t:String(t)}function bre(e,t){if(uc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wre=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},Sre=function(t){return t},Pre=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},gu=function(t,n){return Object.keys(n).reduce(function(r,i){return xT(xT({},r),{},e$({},i,t(i,n[i])))},{})},_T=function(t,n,r){return t.map(function(i){return"".concat(Pre(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Ore(e,t){return Ere(e)||Are(e,t)||t$(e,t)||Tre()}function Tre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
353
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Are(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Ere(e){if(Array.isArray(e))return e}function kre(e){return jre(e)||Cre(e)||t$(e)||Mre()}function Mre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
354
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t$(e,t){if(e){if(typeof e=="string")return Gy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gy(e,t)}}function Cre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jre(e){if(Array.isArray(e))return Gy(e)}function Gy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kd=1e-4,n$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},r$=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},bT=function(t,n){return function(r){var i=n$(t,n);return r$(i,r)}},$re=function(t,n){return function(r){var i=n$(t,n),o=[].concat(kre(i.map(function(s,l){return s*l}).slice(1)),[0]);return r$(o,r)}},wT=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],s=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,s=1,l=1;break;case"ease":i=.25,o=.1,s=.25,l=1;break;case"ease-in":i=.42,o=0,s=1,l=1;break;case"ease-out":i=.42,o=0,s=.58,l=1;break;case"ease-in-out":i=0,o=0,s=.58,l=1;break;default:{var u=n[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var f=u[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),d=Ore(f,4);i=d[0],o=d[1],s=d[2],l=d[3]}}}var h=bT(i,s),m=bT(o,l),v=$re(i,s),b=function(y){return y>1?1:y<0?0:y},x=function(y){for(var _=y>1?1:y,w=_,E=0;E<8;++E){var P=h(w)-_,A=v(w);if(Math.abs(P-_)<kd||A<kd)return m(w);w=b(w-P/A)}return m(w)};return x.isStepper=!1,x},Nre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,s=t.dt,l=s===void 0?17:s,u=function(d,h,m){var v=-(d-h)*r,b=m*o,x=m+(v-b)*l/1e3,S=m*l/1e3+d;return Math.abs(S-h)<kd&&Math.abs(x)<kd?[h,0]:[S,x]};return u.isStepper=!0,u.dt=l,u},Lre=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return wT(i);case"spring":return Nre();default:if(i.split("(")[0]==="cubic-bezier")return wT(i)}return typeof i=="function"?i:null};function cc(e){"@babel/helpers - typeof";return cc=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},cc(e)}function ST(e){return Rre(e)||Dre(e)||i$(e)||Ire()}function Ire(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
355
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rre(e){if(Array.isArray(e))return qy(e)}function PT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PT(Object(n),!0).forEach(function(r){Ky(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ky(e,t,n){return t=zre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zre(e){var t=Bre(e,"string");return cc(t)==="symbol"?t:String(t)}function Bre(e,t){if(cc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fre(e,t){return Wre(e)||Ure(e,t)||i$(e,t)||Vre()}function Vre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
356
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i$(e,t){if(e){if(typeof e=="string")return qy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qy(e,t)}}function qy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ure(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Wre(e){if(Array.isArray(e))return e}var Md=function(t,n,r){return t+(n-t)*r},Xy=function(t){var n=t.from,r=t.to;return n!==r},Hre=function e(t,n,r){var i=gu(function(o,s){if(Xy(s)){var l=t(s.from,s.to,s.velocity),u=Fre(l,2),f=u[0],d=u[1];return Ft(Ft({},s),{},{from:f,velocity:d})}return s},n);return r<1?gu(function(o,s){return Xy(s)?Ft(Ft({},s),{},{velocity:Md(s.velocity,i[o].velocity,r),from:Md(s.from,i[o].from,r)}):s},n):e(t,i,r-1)};const Zre=function(e,t,n,r,i){var o=wre(e,t),s=o.reduce(function(S,y){return Ft(Ft({},S),{},Ky({},y,[e[y],t[y]]))},{}),l=o.reduce(function(S,y){return Ft(Ft({},S),{},Ky({},y,{from:e[y],velocity:0,to:t[y]}))},{}),u=-1,f,d,h=function(){return null},m=function(){return gu(function(y,_){return _.from},l)},v=function(){return!Object.values(l).filter(Xy).length},b=function(y){f||(f=y);var _=y-f,w=_/n.dt;l=Hre(n,l,w),i(Ft(Ft(Ft({},e),t),m())),f=y,v()||(u=requestAnimationFrame(h))},x=function(y){d||(d=y);var _=(y-d)/r,w=gu(function(P,A){return Md.apply(void 0,ST(A).concat([n(_)]))},s);if(i(Ft(Ft(Ft({},e),t),w)),_<1)u=requestAnimationFrame(h);else{var E=gu(function(P,A){return Md.apply(void 0,ST(A).concat([n(1)]))},s);i(Ft(Ft(Ft({},e),t),E))}};return h=n.isStepper?b:x,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(u)}}};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)}var Gre=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Kre(e,t){if(e==null)return{};var n=qre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $v(e){return Jre(e)||Qre(e)||Yre(e)||Xre()}function Xre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
357
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yre(e,t){if(e){if(typeof e=="string")return Yy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yy(e,t)}}function Qre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jre(e){if(Array.isArray(e))return Yy(e)}function Yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OT(Object(n),!0).forEach(function(r){Yl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yl(e,t,n){return t=o$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o$(r.key),r)}}function nie(e,t,n){return t&&tie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o$(e){var t=rie(e,"string");return Ts(t)==="symbol"?t:String(t)}function rie(e,t){if(Ts(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ts(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iie(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&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qy(e,t)}function oie(e){var t=aie();return function(){var r=Cd(e),i;if(t){var o=Cd(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Jy(this,i)}}function Jy(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 e0(e)}function e0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aie(){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 Cd(e){return Cd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cd(e)}var Ti=function(e){iie(n,e);var t=oie(n);function n(r,i){var o;eie(this,n),o=t.call(this,r,i);var s=o.props,l=s.isActive,u=s.attributeName,f=s.from,d=s.to,h=s.steps,m=s.children,v=s.duration;if(o.handleStyleChange=o.handleStyleChange.bind(e0(o)),o.changeStyle=o.changeStyle.bind(e0(o)),!l||v<=0)return o.state={style:{}},typeof m=="function"&&(o.state={style:d}),Jy(o);if(h&&h.length)o.state={style:h[0].style};else if(f){if(typeof m=="function")return o.state={style:f},Jy(o);o.state={style:u?Yl({},u,f):f}}else o.state={style:{}};return o}return nie(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,s=i.canBegin;this.mounted=!0,!(!o||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isActive,l=o.canBegin,u=o.attributeName,f=o.shouldReAnimate,d=o.to,h=o.from,m=this.state.style;if(l){if(!s){var v={style:u?Yl({},u,d):d};this.state&&m&&(u&&m[u]!==d||!u&&m!==d)&&this.setState(v);return}if(!(hre(i.to,d)&&i.canBegin&&i.isActive)){var b=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var x=b||f?h:i.to;if(this.state&&m){var S={style:u?Yl({},u,x):x};(u&&m[u]!==x||!u&&m!==x)&&this.setState(S)}this.runAnimation(gr(gr({},this.props),{},{from:x,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,s=i.from,l=i.to,u=i.duration,f=i.easing,d=i.begin,h=i.onAnimationEnd,m=i.onAnimationStart,v=Zre(s,l,Lre(f),u,this.changeStyle),b=function(){o.stopJSAnimation=v()};this.manager.start([m,d,b,u,h])}},{key:"runStepAnimation",value:function(i){var o=this,s=i.steps,l=i.begin,u=i.onAnimationStart,f=s[0],d=f.style,h=f.duration,m=h===void 0?0:h,v=function(x,S,y){if(y===0)return x;var _=S.duration,w=S.easing,E=w===void 0?"ease":w,P=S.style,A=S.properties,M=S.onAnimationEnd,C=y>0?s[y-1]:S,N=A||Object.keys(P);if(typeof E=="function"||E==="spring")return[].concat($v(x),[o.runJSAnimation.bind(o,{from:C.style,to:P,duration:_,easing:E}),_]);var B=_T(N,_,E),z=gr(gr(gr({},C.style),P),{},{transition:B});return[].concat($v(x),[z,_,M]).filter(Sre)};return this.manager.start([u].concat($v(s.reduce(v,[d,Math.max(m,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=xre());var o=i.begin,s=i.duration,l=i.attributeName,u=i.to,f=i.easing,d=i.onAnimationStart,h=i.onAnimationEnd,m=i.steps,v=i.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof f=="function"||typeof v=="function"||f==="spring"){this.runJSAnimation(i);return}if(m.length>1){this.runStepAnimation(i);return}var x=l?Yl({},l,u):u,S=_T(Object.keys(x),s,f);b.start([d,o,gr(gr({},x),{},{transition:S}),s,h])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=Kre(i,Gre),f=j.Children.count(o),d=this.state.style;if(typeof o=="function")return o(d);if(!l||f===0||s<=0)return o;var h=function(v){var b=v.props,x=b.style,S=x===void 0?{}:x,y=b.className,_=j.cloneElement(v,gr(gr({},u),{},{style:gr(gr({},S),d),className:y}));return _};return f===1?h(j.Children.only(o)):D.createElement("div",null,j.Children.map(o,function(m){return h(m)}))}}]),n}(j.PureComponent);Ti.displayName="Animate";Ti.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ti.propTypes={from:Re.oneOfType([Re.object,Re.string]),to:Re.oneOfType([Re.object,Re.string]),attributeName:Re.string,duration:Re.number,begin:Re.number,easing:Re.oneOfType([Re.string,Re.func]),steps:Re.arrayOf(Re.shape({duration:Re.number.isRequired,style:Re.object.isRequired,easing:Re.oneOfType([Re.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Re.func]),properties:Re.arrayOf("string"),onAnimationEnd:Re.func})),children:Re.oneOfType([Re.node,Re.func]),isActive:Re.bool,canBegin:Re.bool,onAnimationEnd:Re.func,shouldReAnimate:Re.bool,onAnimationStart:Re.func,onAnimationReStart:Re.func};function fc(e){"@babel/helpers - typeof";return fc=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},fc(e)}function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jd.apply(this,arguments)}function sie(e,t){return fie(e)||cie(e,t)||uie(e,t)||lie()}function lie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
358
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uie(e,t){if(e){if(typeof e=="string")return TT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TT(e,t)}}function TT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function fie(e){if(Array.isArray(e))return e}function AT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ET(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AT(Object(n),!0).forEach(function(r){hie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hie(e,t,n){return t=die(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function die(e){var t=pie(e,"string");return fc(t)=="symbol"?t:t+""}function pie(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kT=function(t,n,r,i,o){var s=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,u=r>=0?1:-1,f=i>=0&&r>=0||i<0&&r<0?1:0,d;if(s>0&&o instanceof Array){for(var h=[0,0,0,0],m=0,v=4;m<v;m++)h[m]=o[m]>s?s:o[m];d="M".concat(t,",").concat(n+l*h[0]),h[0]>0&&(d+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(f,",").concat(t+u*h[0],",").concat(n)),d+="L ".concat(t+r-u*h[1],",").concat(n),h[1]>0&&(d+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(f,`,
|
|
359
|
+
`).concat(t+r,",").concat(n+l*h[1])),d+="L ".concat(t+r,",").concat(n+i-l*h[2]),h[2]>0&&(d+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(f,`,
|
|
360
|
+
`).concat(t+r-u*h[2],",").concat(n+i)),d+="L ".concat(t+u*h[3],",").concat(n+i),h[3]>0&&(d+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(f,`,
|
|
361
|
+
`).concat(t,",").concat(n+i-l*h[3])),d+="Z"}else if(s>0&&o===+o&&o>0){var b=Math.min(s,o);d="M ".concat(t,",").concat(n+l*b,`
|
|
362
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t+u*b,",").concat(n,`
|
|
363
|
+
L `).concat(t+r-u*b,",").concat(n,`
|
|
364
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t+r,",").concat(n+l*b,`
|
|
365
|
+
L `).concat(t+r,",").concat(n+i-l*b,`
|
|
366
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t+r-u*b,",").concat(n+i,`
|
|
367
|
+
L `).concat(t+u*b,",").concat(n+i,`
|
|
368
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t,",").concat(n+i-l*b," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return d},mie=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,s=n.y,l=n.width,u=n.height;if(Math.abs(l)>0&&Math.abs(u)>0){var f=Math.min(o,o+l),d=Math.max(o,o+l),h=Math.min(s,s+u),m=Math.max(s,s+u);return r>=f&&r<=d&&i>=h&&i<=m}return!1},vie={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},n1=function(t){var n=ET(ET({},vie),t),r=j.useRef(),i=j.useState(-1),o=sie(i,2),s=o[0],l=o[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&l(E)}catch{}},[]);var u=n.x,f=n.y,d=n.width,h=n.height,m=n.radius,v=n.className,b=n.animationEasing,x=n.animationDuration,S=n.animationBegin,y=n.isAnimationActive,_=n.isUpdateAnimationActive;if(u!==+u||f!==+f||d!==+d||h!==+h||d===0||h===0)return null;var w=Ne("recharts-rectangle",v);return _?D.createElement(Ti,{canBegin:s>0,from:{width:d,height:h,x:u,y:f},to:{width:d,height:h,x:u,y:f},duration:x,animationEasing:b,isActive:_},function(E){var P=E.width,A=E.height,M=E.x,C=E.y;return D.createElement(Ti,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:x,isActive:y,easing:b},D.createElement("path",jd({},Ee(n,!0),{className:w,d:kT(M,C,P,A,m),ref:r})))}):D.createElement("path",jd({},Ee(n,!0),{className:w,d:kT(u,f,d,h,m)}))};function t0(){return t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t0.apply(this,arguments)}var r1=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,s=Ne("recharts-dot",o);return n===+n&&r===+r&&i===+i?j.createElement("circle",t0({},Ee(t,!1),qh(t),{className:s,cx:n,cy:r,r:i})):null};function hc(e){"@babel/helpers - typeof";return hc=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},hc(e)}var gie=["x","y","top","left","width","height","className"];function n0(){return n0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n0.apply(this,arguments)}function MT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MT(Object(n),!0).forEach(function(r){xie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xie(e,t,n){return t=_ie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ie(e){var t=bie(e,"string");return hc(t)=="symbol"?t:t+""}function bie(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wie(e,t){if(e==null)return{};var n=Sie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Pie=function(t,n,r,i,o,s){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},Oie=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,s=t.top,l=s===void 0?0:s,u=t.left,f=u===void 0?0:u,d=t.width,h=d===void 0?0:d,m=t.height,v=m===void 0?0:m,b=t.className,x=wie(t,gie),S=yie({x:r,y:o,top:l,left:f,width:h,height:v},x);return!ie(r)||!ie(o)||!ie(h)||!ie(v)||!ie(l)||!ie(f)?null:D.createElement("path",n0({},Ee(S,!0),{className:Ne("recharts-cross",b),d:Pie(r,o,h,v,l,f)}))},Tie=bC,Aie=Tie(Object.getPrototypeOf,Object),Eie=Aie,kie=Ei,Mie=Eie,Cie=ki,jie="[object Object]",$ie=Function.prototype,Nie=Object.prototype,a$=$ie.toString,Lie=Nie.hasOwnProperty,Iie=a$.call(Object);function Die(e){if(!Cie(e)||kie(e)!=jie)return!1;var t=Mie(e);if(t===null)return!0;var n=Lie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&a$.call(n)==Iie}var Rie=Die;const zie=Ge(Rie);var Bie=Ei,Fie=ki,Vie="[object Boolean]";function Uie(e){return e===!0||e===!1||Fie(e)&&Bie(e)==Vie}var Wie=Uie;const Hie=Ge(Wie);function dc(e){"@babel/helpers - typeof";return dc=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},dc(e)}function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$d.apply(this,arguments)}function Zie(e,t){return Xie(e)||qie(e,t)||Kie(e,t)||Gie()}function Gie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
369
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kie(e,t){if(e){if(typeof e=="string")return CT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CT(e,t)}}function CT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Xie(e){if(Array.isArray(e))return e}function jT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $T(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jT(Object(n),!0).forEach(function(r){Yie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yie(e,t,n){return t=Qie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qie(e){var t=Jie(e,"string");return dc(t)=="symbol"?t:t+""}function Jie(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NT=function(t,n,r,i,o){var s=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-s/2,",").concat(n+o),l+="L ".concat(t+r-s/2-i,",").concat(n+o),l+="L ".concat(t,",").concat(n," Z"),l},eoe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},toe=function(t){var n=$T($T({},eoe),t),r=j.useRef(),i=j.useState(-1),o=Zie(i,2),s=o[0],l=o[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&l(w)}catch{}},[]);var u=n.x,f=n.y,d=n.upperWidth,h=n.lowerWidth,m=n.height,v=n.className,b=n.animationEasing,x=n.animationDuration,S=n.animationBegin,y=n.isUpdateAnimationActive;if(u!==+u||f!==+f||d!==+d||h!==+h||m!==+m||d===0&&h===0||m===0)return null;var _=Ne("recharts-trapezoid",v);return y?D.createElement(Ti,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:m,x:u,y:f},to:{upperWidth:d,lowerWidth:h,height:m,x:u,y:f},duration:x,animationEasing:b,isActive:y},function(w){var E=w.upperWidth,P=w.lowerWidth,A=w.height,M=w.x,C=w.y;return D.createElement(Ti,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:x,easing:b},D.createElement("path",$d({},Ee(n,!0),{className:_,d:NT(M,C,E,P,A),ref:r})))}):D.createElement("g",null,D.createElement("path",$d({},Ee(n,!0),{className:_,d:NT(u,f,d,h,m)})))},noe=["option","shapeType","propTransformer","activeClassName","isActive"];function pc(e){"@babel/helpers - typeof";return pc=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},pc(e)}function roe(e,t){if(e==null)return{};var n=ioe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ioe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LT(Object(n),!0).forEach(function(r){ooe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ooe(e,t,n){return t=aoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aoe(e){var t=soe(e,"string");return pc(t)=="symbol"?t:t+""}function soe(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function loe(e,t){return Nd(Nd({},t),e)}function uoe(e,t){return e==="symbols"}function IT(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return D.createElement(n1,n);case"trapezoid":return D.createElement(toe,n);case"sector":return D.createElement(qj,n);case"symbols":if(uoe(t))return D.createElement(__,n);break;default:return null}}function coe(e){return j.isValidElement(e)?e.props:e}function foe(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?loe:r,o=e.activeClassName,s=o===void 0?"recharts-active-shape":o,l=e.isActive,u=roe(e,noe),f;if(j.isValidElement(t))f=j.cloneElement(t,Nd(Nd({},u),coe(t)));else if(Pe(t))f=t(u);else if(zie(t)&&!Hie(t)){var d=i(t,u);f=D.createElement(IT,{shapeType:n,elementProps:d})}else{var h=u;f=D.createElement(IT,{shapeType:n,elementProps:h})}return l?D.createElement(ft,{className:s},f):f}function Xp(e,t){return t!=null&&"trapezoids"in e.props}function Yp(e,t){return t!=null&&"sectors"in e.props}function mc(e,t){return t!=null&&"points"in e.props}function hoe(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function doe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function poe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function moe(e,t){var n;return Xp(e,t)?n=hoe:Yp(e,t)?n=doe:mc(e,t)&&(n=poe),n}function voe(e,t){var n;return Xp(e,t)?n="trapezoids":Yp(e,t)?n="sectors":mc(e,t)&&(n="points"),n}function goe(e,t){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}if(Yp(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return mc(e,t)?t.payload:{}}function yoe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=voe(n,t),o=goe(n,t),s=r.filter(function(u,f){var d=Qu(o,u),h=n.props[i].filter(function(b){var x=moe(n,t);return x(b,t)}),m=n.props[i].indexOf(h[h.length-1]),v=f===m;return d&&v}),l=r.indexOf(s[s.length-1]);return l}var xoe=Math.ceil,_oe=Math.max;function boe(e,t,n,r){for(var i=-1,o=_oe(xoe((t-e)/(n||1)),0),s=Array(o);o--;)s[r?o:++i]=e,e+=n;return s}var woe=boe,Soe=BC,DT=1/0,Poe=17976931348623157e292;function Ooe(e){if(!e)return e===0?e:0;if(e=Soe(e),e===DT||e===-DT){var t=e<0?-1:1;return t*Poe}return e===e?e:0}var s$=Ooe,Toe=woe,Aoe=zp,Nv=s$;function Eoe(e){return function(t,n,r){return r&&typeof r!="number"&&Aoe(t,n,r)&&(n=r=void 0),t=Nv(t),n===void 0?(n=t,t=0):n=Nv(n),r=r===void 0?t<n?1:-1:Nv(r),Toe(t,n,r,e)}}var koe=Eoe,Moe=koe,Coe=Moe(),joe=Coe;const Ld=Ge(joe);function vc(e){"@babel/helpers - typeof";return vc=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},vc(e)}function RT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RT(Object(n),!0).forEach(function(r){l$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function l$(e,t,n){return t=$oe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $oe(e){var t=Noe(e,"string");return vc(t)=="symbol"?t:t+""}function Noe(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Loe=["Webkit","Moz","O","ms"],Ioe=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=Loe.reduce(function(o,s){return zT(zT({},o),{},l$({},s+r,n))},{});return i[t]=n,i};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 Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}function BT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BT(Object(n),!0).forEach(function(r){Mn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Doe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c$(r.key),r)}}function Roe(e,t,n){return t&&FT(e.prototype,t),n&&FT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zoe(e,t,n){return t=Dd(t),Boe(e,u$()?Reflect.construct(t,n||[],Dd(e).constructor):t.apply(e,n))}function Boe(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 Foe(e)}function Foe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u$=function(){return!!e})()}function Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dd(e)}function Voe(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&&r0(e,t)}function r0(e,t){return r0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},r0(e,t)}function Mn(e,t,n){return t=c$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c$(e){var t=Uoe(e,"string");return As(t)=="symbol"?t:t+""}function Uoe(e,t){if(As(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Woe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,s=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var u=n.length,f=pu().domain(Ld(0,u)).range([o,o+s-l]),d=f.domain().map(function(h){return f(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:f(r),endX:f(i),scale:f,scaleValues:d}},VT=function(t){return t.changedTouches&&!!t.changedTouches.length},Es=function(e){function t(n){var r;return Doe(this,t),r=zoe(this,t,[n]),Mn(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Mn(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Mn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),r.detachDragEndListener()}),Mn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Mn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Mn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Mn(r,"handleSlideDragStart",function(i){var o=VT(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Voe(t,e),Roe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,s=this.state.scaleValues,l=this.props,u=l.gap,f=l.data,d=f.length-1,h=Math.min(i,o),m=Math.max(i,o),v=t.getIndexInRange(s,h),b=t.getIndexInRange(s,m);return{startIndex:v-v%u,endIndex:b===d?d:b-b%u}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,u=Bn(o[r],l,r);return Pe(s)?s(u,r):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(r){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,u=this.props,f=u.x,d=u.width,h=u.travellerWidth,m=u.startIndex,v=u.endIndex,b=u.onChange,x=r.pageX-o;x>0?x=Math.min(x,f+d-h-l,f+d-h-s):x<0&&(x=Math.max(x,f-s,f-l));var S=this.getIndex({startX:s+x,endX:l+x});(S.startIndex!==m||S.endIndex!==v)&&b&&b(S),this.setState({startX:s+x,endX:l+x,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=VT(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,s=i.movingTravellerId,l=i.endX,u=i.startX,f=this.state[s],d=this.props,h=d.x,m=d.width,v=d.travellerWidth,b=d.onChange,x=d.gap,S=d.data,y={startX:this.state.startX,endX:this.state.endX},_=r.pageX-o;_>0?_=Math.min(_,h+m-v-f):_<0&&(_=Math.max(_,h-f)),y[s]=f+_;var w=this.getIndex(y),E=w.startIndex,P=w.endIndex,A=function(){var C=S.length-1;return s==="startX"&&(l>u?E%x===0:P%x===0)||l<u&&P===C||s==="endX"&&(l>u?P%x===0:E%x===0)||l>u&&P===C};this.setState(Mn(Mn({},s,f+_),"brushMoveStartX",r.pageX),function(){b&&A()&&b(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,s=this.state,l=s.scaleValues,u=s.startX,f=s.endX,d=this.state[i],h=l.indexOf(d);if(h!==-1){var m=h+r;if(!(m===-1||m>=l.length)){var v=l[m];i==="startX"&&v>=f||i==="endX"&&v<=u||this.setState(Mn({},i,v),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.fill,f=r.stroke;return D.createElement("rect",{stroke:f,fill:u,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.data,f=r.children,d=r.padding,h=j.Children.only(f);return h?D.cloneElement(h,{x:i,y:o,width:s,height:l,margin:d,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,s,l=this,u=this.props,f=u.y,d=u.travellerWidth,h=u.height,m=u.traveller,v=u.ariaLabel,b=u.data,x=u.startIndex,S=u.endIndex,y=Math.max(r,this.props.x),_=Lv(Lv({},Ee(this.props,!1)),{},{x:y,y:f,width:d,height:h}),w=v||"Min value: ".concat((o=b[x])===null||o===void 0?void 0:o.name,", Max value: ").concat((s=b[S])===null||s===void 0?void 0:s.name);return D.createElement(ft,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),l.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,_))}},{key:"renderSlide",value:function(r,i){var o=this.props,s=o.y,l=o.height,u=o.stroke,f=o.travellerWidth,d=Math.min(r,i)+f,h=Math.max(Math.abs(i-r)-f,0);return D.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:d,y:s,width:h,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,s=r.y,l=r.height,u=r.travellerWidth,f=r.stroke,d=this.state,h=d.startX,m=d.endX,v=5,b={pointerEvents:"none",fill:f};return D.createElement(ft,{className:"recharts-brush-texts"},D.createElement(cd,Id({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,m)-v,y:s+l/2},b),this.getTextOfTick(i)),D.createElement(cd,Id({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,m)+u+v,y:s+l/2},b),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,s=r.children,l=r.x,u=r.y,f=r.width,d=r.height,h=r.alwaysShowText,m=this.state,v=m.startX,b=m.endX,x=m.isTextActive,S=m.isSlideMoving,y=m.isTravellerMoving,_=m.isTravellerFocused;if(!i||!i.length||!ie(l)||!ie(u)||!ie(f)||!ie(d)||f<=0||d<=0)return null;var w=Ne("recharts-brush",o),E=D.Children.count(s)===1,P=Ioe("userSelect","none");return D.createElement(ft,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(v,b),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(b,"endX"),(x||S||y||_||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,s=r.width,l=r.height,u=r.stroke,f=Math.floor(o+l/2)-1;return D.createElement(D.Fragment,null,D.createElement("rect",{x:i,y:o,width:s,height:l,fill:u,stroke:"none"}),D.createElement("line",{x1:i+1,y1:f,x2:i+s-1,y2:f,fill:"none",stroke:"#fff"}),D.createElement("line",{x1:i+1,y1:f+2,x2:i+s-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return D.isValidElement(r)?o=D.cloneElement(r,i):Pe(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,s=r.width,l=r.x,u=r.travellerWidth,f=r.updateId,d=r.startIndex,h=r.endIndex;if(o!==i.prevData||f!==i.prevUpdateId)return Lv({prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s},o&&o.length?Woe({data:o,width:s,x:l,travellerWidth:u,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+s-u]);var m=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);r[u]>i?l=u:s=u}return i>=r[l]?l:s}}])}(j.PureComponent);Mn(Es,"displayName","Brush");Mn(Es,"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 Hoe=A_;function Zoe(e,t){var n;return Hoe(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var Goe=Zoe,Koe=dC,qoe=mo,Xoe=Goe,Yoe=Pn,Qoe=zp;function Joe(e,t,n){var r=Yoe(e)?Koe:Xoe;return n&&Qoe(e,t,n)&&(t=void 0),r(e,qoe(t))}var eae=Joe;const tae=Ge(eae);var Zr=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},UT=LC;function nae(e,t,n){t=="__proto__"&&UT?UT(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var rae=nae,iae=rae,oae=$C,aae=mo;function sae(e,t){var n={};return t=aae(t),oae(e,function(r,i,o){iae(n,i,t(r,i,o))}),n}var lae=sae;const uae=Ge(lae);function cae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var fae=cae,hae=A_;function dae(e,t){var n=!0;return hae(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var pae=dae,mae=fae,vae=pae,gae=mo,yae=Pn,xae=zp;function _ae(e,t,n){var r=yae(e)?mae:vae;return n&&xae(e,t,n)&&(t=void 0),r(e,gae(t))}var bae=_ae;const f$=Ge(bae);var wae=["x","y"];function gc(e){"@babel/helpers - typeof";return gc=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},gc(e)}function i0(){return i0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i0.apply(this,arguments)}function WT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WT(Object(n),!0).forEach(function(r){Sae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sae(e,t,n){return t=Pae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pae(e){var t=Oae(e,"string");return gc(t)=="symbol"?t:t+""}function Oae(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tae(e,t){if(e==null)return{};var n=Aae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Eae(e,t){var n=e.x,r=e.y,i=Tae(e,wae),o="".concat(n),s=parseInt(o,10),l="".concat(r),u=parseInt(l,10),f="".concat(t.height||i.height),d=parseInt(f,10),h="".concat(t.width||i.width),m=parseInt(h,10);return Fl(Fl(Fl(Fl(Fl({},t),i),s?{x:s}:{}),u?{y:u}:{}),{},{height:d,width:m,name:t.name,radius:t.radius})}function HT(e){return D.createElement(foe,i0({shapeType:"rectangle",propTransformer:Eae,activeClassName:"recharts-active-bar"},e))}var kae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=ie(r)||V6(r);return o?t(r,i):(o||sa(),n)}},Mae=["value","background"],h$;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 Cae(e,t){if(e==null)return{};var n=jae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rd.apply(this,arguments)}function ZT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZT(Object(n),!0).forEach(function(r){qi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p$(r.key),r)}}function Nae(e,t,n){return t&>(e.prototype,t),n&>(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lae(e,t,n){return t=zd(t),Iae(e,d$()?Reflect.construct(t,n||[],zd(e).constructor):t.apply(e,n))}function Iae(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 Dae(e)}function Dae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d$=function(){return!!e})()}function zd(e){return zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zd(e)}function Rae(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&&o0(e,t)}function o0(e,t){return o0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},o0(e,t)}function qi(e,t,n){return t=p$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p$(e){var t=zae(e,"string");return ks(t)=="symbol"?t:t+""}function zae(e,t){if(ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var va=function(e){function t(){var n;$ae(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Lae(this,t,[].concat(i)),qi(n,"state",{isAnimationFinished:!1}),qi(n,"id",jc("recharts-bar-")),qi(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),qi(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return Rae(t,e),Nae(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,s=o.shape,l=o.dataKey,u=o.activeIndex,f=o.activeBar,d=Ee(this.props,!1);return r&&r.map(function(h,m){var v=m===u,b=v?f:s,x=St(St(St({},d),h),{},{isActive:v,option:b,index:m,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return D.createElement(ft,Rd({className:"recharts-bar-rectangle"},Xh(i.props,h,m),{key:"rectangle-".concat(h==null?void 0:h.x,"-").concat(h==null?void 0:h.y,"-").concat(h==null?void 0:h.value,"-").concat(m)}),D.createElement(HT,x))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,s=i.layout,l=i.isAnimationActive,u=i.animationBegin,f=i.animationDuration,d=i.animationEasing,h=i.animationId,m=this.state.prevData;return D.createElement(Ti,{begin:u,duration:f,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var b=v.t,x=o.map(function(S,y){var _=m&&m[y];if(_){var w=nr(_.x,S.x),E=nr(_.y,S.y),P=nr(_.width,S.width),A=nr(_.height,S.height);return St(St({},S),{},{x:w(b),y:E(b),width:P(b),height:A(b)})}if(s==="horizontal"){var M=nr(0,S.height),C=M(b);return St(St({},S),{},{y:S.y+S.height-C,height:C})}var N=nr(0,S.width),B=N(b);return St(St({},S),{},{width:B})});return D.createElement(ft,null,r.renderRectanglesStatically(x))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,s=this.state.prevData;return o&&i&&i.length&&(!s||!Qu(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,s=i.dataKey,l=i.activeIndex,u=Ee(this.props.background,!1);return o.map(function(f,d){f.value;var h=f.background,m=Cae(f,Mae);if(!h)return null;var v=St(St(St(St(St({},m),{},{fill:"#eee"},h),u),Xh(r.props,f,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:d,className:"recharts-bar-background-rectangle"});return D.createElement(HT,Rd({key:"background-bar-".concat(d),option:r.props.background,isActive:d===l},v))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,s=o.data,l=o.xAxis,u=o.yAxis,f=o.layout,d=o.children,h=Ar(d,qp);if(!h)return null;var m=f==="vertical"?s[0].height/2:s[0].width/2,v=function(S,y){var _=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:_,errorVal:Bn(S,y)}},b={clipPath:r?"url(#clipPath-".concat(i,")"):null};return D.createElement(ft,b,h.map(function(x){return D.cloneElement(x,{key:"error-bar-".concat(i,"-").concat(x.props.dataKey),data:s,xAxis:l,yAxis:u,layout:f,offset:m,dataPointFormatter:v})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,s=r.className,l=r.xAxis,u=r.yAxis,f=r.left,d=r.top,h=r.width,m=r.height,v=r.isAnimationActive,b=r.background,x=r.id;if(i||!o||!o.length)return null;var S=this.state.isAnimationFinished,y=Ne("recharts-bar",s),_=l&&l.allowDataOverflow,w=u&&u.allowDataOverflow,E=_||w,P=Me(x)?this.id:x;return D.createElement(ft,{className:y},_||w?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(P)},D.createElement("rect",{x:_?f:f-h/2,y:w?d:d-m/2,width:_?h:h*2,height:w?m:m*2}))):null,D.createElement(ft,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(P,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,P),(!v||S)&&Hr.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])}(j.PureComponent);h$=va;qi(va,"displayName","Bar");qi(va,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!nl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});qi(va,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,s=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,f=e.stackedData,d=e.dataStartIndex,h=e.displayedData,m=e.offset,v=fte(r,n);if(!v)return null;var b=t.layout,x=n.type.defaultProps,S=x!==void 0?St(St({},x),n.props):n.props,y=S.dataKey,_=S.children,w=S.minPointSize,E=b==="horizontal"?s:o,P=f?E.scale.domain():null,A=xte({numericAxis:E}),M=Ar(_,M_),C=h.map(function(N,B){var z,R,K,H,W,Z;f?z=hte(f[d+B],P):(z=Bn(N,y),Array.isArray(z)||(z=[A,z]));var G=kae(w,h$.defaultProps.minPointSize)(z[1],B);if(b==="horizontal"){var $,q=[s.scale(z[0]),s.scale(z[1])],V=q[0],te=q[1];R=qO({axis:o,ticks:l,bandSize:i,offset:v.offset,entry:N,index:B}),K=($=te??V)!==null&&$!==void 0?$:void 0,H=v.size;var Q=V-te;if(W=Number.isNaN(Q)?0:Q,Z={x:R,y:s.y,width:H,height:s.height},Math.abs(G)>0&&Math.abs(W)<Math.abs(G)){var ae=Pr(W||G)*(Math.abs(G)-Math.abs(W));K-=ae,W+=ae}}else{var fe=[o.scale(z[0]),o.scale(z[1])],he=fe[0],ce=fe[1];if(R=he,K=qO({axis:s,ticks:u,bandSize:i,offset:v.offset,entry:N,index:B}),H=ce-he,W=v.size,Z={x:o.x,y:K,width:o.width,height:W},Math.abs(G)>0&&Math.abs(H)<Math.abs(G)){var Ve=Pr(H||G)*(Math.abs(G)-Math.abs(H));H+=Ve}}return St(St(St({},N),{},{x:R,y:K,width:H,height:W,value:f?z:z[1],payload:N,background:Z},M&&M[B]&&M[B].props),{},{tooltipPayload:[Zj(n,N)],tooltipPosition:{x:R+H/2,y:K+W/2}})});return St({data:C,layout:b},m)});function yc(e){"@babel/helpers - typeof";return yc=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},yc(e)}function Bae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m$(r.key),r)}}function Fae(e,t,n){return t&&KT(e.prototype,t),n&&KT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qT(Object(n),!0).forEach(function(r){Qp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qp(e,t,n){return t=m$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m$(e){var t=Vae(e,"string");return yc(t)=="symbol"?t:t+""}function Vae(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v$=function(t,n,r,i,o){var s=t.width,l=t.height,u=t.layout,f=t.children,d=Object.keys(n),h={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},m=!!jn(f,va);return d.reduce(function(v,b){var x=n[b],S=x.orientation,y=x.domain,_=x.padding,w=_===void 0?{}:_,E=x.mirror,P=x.reversed,A="".concat(S).concat(E?"Mirror":""),M,C,N,B,z;if(x.type==="number"&&(x.padding==="gap"||x.padding==="no-gap")){var R=y[1]-y[0],K=1/0,H=x.categoricalDomain.sort(H6);if(H.forEach(function(fe,he){he>0&&(K=Math.min((fe||0)-(H[he-1]||0),K))}),Number.isFinite(K)){var W=K/R,Z=x.layout==="vertical"?r.height:r.width;if(x.padding==="gap"&&(M=W*Z/2),x.padding==="no-gap"){var G=oa(t.barCategoryGap,W*Z),$=W*Z/2;M=$-G-($-G)/Z*G}}}i==="xAxis"?C=[r.left+(w.left||0)+(M||0),r.left+r.width-(w.right||0)-(M||0)]:i==="yAxis"?C=u==="horizontal"?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(M||0),r.top+r.height-(w.bottom||0)-(M||0)]:C=x.range,P&&(C=[C[1],C[0]]);var q=ute(x,o,m),V=q.scale,te=q.realScaleType;V.domain(y).range(C),cte(V);var Q=yte(V,br(br({},x),{},{realScaleType:te}));i==="xAxis"?(z=S==="top"&&!E||S==="bottom"&&E,N=r.left,B=h[A]-z*x.height):i==="yAxis"&&(z=S==="left"&&!E||S==="right"&&E,N=h[A]-z*x.width,B=r.top);var ae=br(br(br({},x),Q),{},{realScaleType:te,x:N,y:B,scale:V,width:i==="xAxis"?r.width:x.width,height:i==="yAxis"?r.height:x.height});return ae.bandSize=Od(ae,Q),!x.hide&&i==="xAxis"?h[A]+=(z?-1:1)*ae.height:x.hide||(h[A]+=(z?-1:1)*ae.width),br(br({},v),{},Qp({},b,ae))},{})},g$=function(t,n){var r=t.x,i=t.y,o=n.x,s=n.y;return{x:Math.min(r,o),y:Math.min(i,s),width:Math.abs(o-r),height:Math.abs(s-i)}},Uae=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return g$({x:n,y:r},{x:i,y:o})},y$=function(){function e(t){Bae(this,e),this.scale=t}return Fae(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+u}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();Qp(y$,"EPS",1e-4);var i1=function(t){var n=Object.keys(t).reduce(function(r,i){return br(br({},r),{},Qp({},i,y$.create(t[i])))},{});return br(br({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.bandAware,l=o.position;return uae(i,function(u,f){return n[f].apply(u,{bandAware:s,position:l})})},isInRange:function(i){return f$(i,function(o,s){return n[s].isInRange(o)})}})};function Wae(e){return(e%180+180)%180}var Hae=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Wae(i),s=o*Math.PI/180,l=Math.atan(r/n),u=s>l&&s<Math.PI-l?r/Math.sin(s):n/Math.cos(s);return Math.abs(u)},Zae=mo,Gae=$c,Kae=Dp;function qae(e){return function(t,n,r){var i=Object(t);if(!Gae(t)){var o=Zae(n);t=Kae(t),n=function(l){return o(i[l],l,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:void 0}}var Xae=qae,Yae=s$;function Qae(e){var t=Yae(e),n=t%1;return t===t?n?t-n:t:0}var Jae=Qae,ese=AC,tse=mo,nse=Jae,rse=Math.max;function ise(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:nse(n);return i<0&&(i=rse(r+i,0)),ese(e,tse(t),i)}var ose=ise,ase=Xae,sse=ose,lse=ase(sse),use=lse;const cse=Ge(use);var fse=K8(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("")}),o1=j.createContext(void 0),a1=j.createContext(void 0),x$=j.createContext(void 0),_$=j.createContext({}),b$=j.createContext(void 0),w$=j.createContext(0),S$=j.createContext(0),XT=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,s=t.clipPathId,l=t.children,u=t.width,f=t.height,d=fse(o);return D.createElement(o1.Provider,{value:r},D.createElement(a1.Provider,{value:i},D.createElement(_$.Provider,{value:o},D.createElement(x$.Provider,{value:d},D.createElement(b$.Provider,{value:s},D.createElement(w$.Provider,{value:f},D.createElement(S$.Provider,{value:u},l)))))))},hse=function(){return j.useContext(b$)},P$=function(t){var n=j.useContext(o1);n==null&&sa();var r=n[t];return r==null&&sa(),r},dse=function(){var t=j.useContext(o1);return Hi(t)},pse=function(){var t=j.useContext(a1),n=cse(t,function(r){return f$(r.domain,Number.isFinite)});return n||Hi(t)},O$=function(t){var n=j.useContext(a1);n==null&&sa();var r=n[t];return r==null&&sa(),r},mse=function(){var t=j.useContext(x$);return t},vse=function(){return j.useContext(_$)},s1=function(){return j.useContext(S$)},l1=function(){return j.useContext(w$)};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 gse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A$(r.key),r)}}function xse(e,t,n){return t&&yse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _se(e,t,n){return t=Bd(t),bse(e,T$()?Reflect.construct(t,n||[],Bd(e).constructor):t.apply(e,n))}function bse(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 wse(e)}function wse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T$=function(){return!!e})()}function Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bd(e)}function Sse(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&&a0(e,t)}function a0(e,t){return a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},a0(e,t)}function YT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YT(Object(n),!0).forEach(function(r){u1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u1(e,t,n){return t=A$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A$(e){var t=Pse(e,"string");return Ms(t)=="symbol"?t:t+""}function Pse(e,t){if(Ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ose(e,t){return kse(e)||Ese(e,t)||Ase(e,t)||Tse()}function Tse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
370
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ase(e,t){if(e){if(typeof e=="string")return JT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JT(e,t)}}function JT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ese(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function kse(e){if(Array.isArray(e))return e}function s0(){return s0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s0.apply(this,arguments)}var Mse=function(t,n){var r;return D.isValidElement(t)?r=D.cloneElement(t,n):Pe(t)?r=t(n):r=D.createElement("line",s0({},n,{className:"recharts-reference-line-line"})),r},Cse=function(t,n,r,i,o,s,l,u,f){var d=o.x,h=o.y,m=o.width,v=o.height;if(r){var b=f.y,x=t.y.apply(b,{position:s});if(Zr(f,"discard")&&!t.y.isInRange(x))return null;var S=[{x:d+m,y:x},{x:d,y:x}];return u==="left"?S.reverse():S}if(n){var y=f.x,_=t.x.apply(y,{position:s});if(Zr(f,"discard")&&!t.x.isInRange(_))return null;var w=[{x:_,y:h+v},{x:_,y:h}];return l==="top"?w.reverse():w}if(i){var E=f.segment,P=E.map(function(A){return t.apply(A,{position:s})});return Zr(f,"discard")&&tae(P,function(A){return!t.isInRange(A)})?null:P}return null};function jse(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,s=e.shape,l=e.className,u=e.alwaysShow,f=hse(),d=P$(i),h=O$(o),m=mse();if(!f||!m)return null;vi(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=i1({x:d.scale,y:h.scale}),b=Ct(t),x=Ct(n),S=r&&r.length===2,y=Cse(v,b,x,S,m,e.position,d.orientation,h.orientation,e);if(!y)return null;var _=Ose(y,2),w=_[0],E=w.x,P=w.y,A=_[1],M=A.x,C=A.y,N=Zr(e,"hidden")?"url(#".concat(f,")"):void 0,B=QT(QT({clipPath:N},Ee(e,!0)),{},{x1:E,y1:P,x2:M,y2:C});return D.createElement(ft,{className:Ne("recharts-reference-line",l)},Mse(s,B),en.renderCallByParent(e,Uae({x1:E,y1:P,x2:M,y2:C})))}var c1=function(e){function t(){return gse(this,t),_se(this,t,arguments)}return Sse(t,e),xse(t,[{key:"render",value:function(){return D.createElement(jse,this.props)}}])}(D.Component);u1(c1,"displayName","ReferenceLine");u1(c1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.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 eA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(n),!0).forEach(function(r){Jp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k$(r.key),r)}}function Lse(e,t,n){return t&&Nse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ise(e,t,n){return t=Fd(t),Dse(e,E$()?Reflect.construct(t,n||[],Fd(e).constructor):t.apply(e,n))}function Dse(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 Rse(e)}function Rse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E$=function(){return!!e})()}function Fd(e){return Fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fd(e)}function zse(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&&u0(e,t)}function u0(e,t){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},u0(e,t)}function Jp(e,t,n){return t=k$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k$(e){var t=Bse(e,"string");return Cs(t)=="symbol"?t:t+""}function Bse(e,t){if(Cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fse=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,s=i1({x:i.scale,y:o.scale}),l=s.apply({x:n,y:r},{bandAware:!0});return Zr(t,"discard")&&!s.isInRange(l)?null:l},Qo=function(e){function t(){return $se(this,t),Ise(this,t,arguments)}return zse(t,e),Lse(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,s=r.r,l=r.alwaysShow,u=r.clipPathId,f=Ct(i),d=Ct(o);if(vi(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!f||!d)return null;var h=Fse(this.props);if(!h)return null;var m=h.x,v=h.y,b=this.props,x=b.shape,S=b.className,y=Zr(this.props,"hidden")?"url(#".concat(u,")"):void 0,_=tA(tA({clipPath:y},Ee(this.props,!0)),{},{cx:m,cy:v});return D.createElement(ft,{className:Ne("recharts-reference-dot",S)},t.renderDot(x,_),en.renderCallByParent(this.props,{x:m-s,y:v-s,width:2*s,height:2*s}))}}])}(D.Component);Jp(Qo,"displayName","ReferenceDot");Jp(Qo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Jp(Qo,"renderDot",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):Pe(e)?n=e(t):n=D.createElement(r1,l0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function c0(){return c0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c0.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 nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(n),!0).forEach(function(r){em(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Use(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C$(r.key),r)}}function Wse(e,t,n){return t&&Use(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hse(e,t,n){return t=Vd(t),Zse(e,M$()?Reflect.construct(t,n||[],Vd(e).constructor):t.apply(e,n))}function Zse(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 Gse(e)}function Gse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M$=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vd(e)}function Kse(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&&f0(e,t)}function f0(e,t){return f0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},f0(e,t)}function em(e,t,n){return t=C$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C$(e){var t=qse(e,"string");return js(t)=="symbol"?t:t+""}function qse(e,t){if(js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xse=function(t,n,r,i,o){var s=o.x1,l=o.x2,u=o.y1,f=o.y2,d=o.xAxis,h=o.yAxis;if(!d||!h)return null;var m=i1({x:d.scale,y:h.scale}),v={x:t?m.x.apply(s,{position:"start"}):m.x.rangeMin,y:r?m.y.apply(u,{position:"start"}):m.y.rangeMin},b={x:n?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:i?m.y.apply(f,{position:"end"}):m.y.rangeMax};return Zr(o,"discard")&&(!m.isInRange(v)||!m.isInRange(b))?null:g$(v,b)},tm=function(e){function t(){return Vse(this,t),Hse(this,t,arguments)}return Kse(t,e),Wse(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,s=r.y1,l=r.y2,u=r.className,f=r.alwaysShow,d=r.clipPathId;vi(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Ct(i),m=Ct(o),v=Ct(s),b=Ct(l),x=this.props.shape;if(!h&&!m&&!v&&!b&&!x)return null;var S=Xse(h,m,v,b,this.props);if(!S&&!x)return null;var y=Zr(this.props,"hidden")?"url(#".concat(d,")"):void 0;return D.createElement(ft,{className:Ne("recharts-reference-area",u)},t.renderRect(x,rA(rA({clipPath:y},Ee(this.props,!0)),S)),en.renderCallByParent(this.props,S))}}])}(D.Component);em(tm,"displayName","ReferenceArea");em(tm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});em(tm,"renderRect",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):Pe(e)?n=e(t):n=D.createElement(n1,c0({},t,{className:"recharts-reference-area-rect"})),n});function j$(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Yse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Hae(r,n)}function Qse(e,t,n){var r=n==="width",i=e.x,o=e.y,s=e.width,l=e.height;return t===1?{start:r?i:o,end:r?i+s:o+l}:{start:r?i+s:o+l,end:r?i:o}}function Ud(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function Jse(e,t){return j$(e,t+1)}function ele(e,t,n,r,i){for(var o=(r||[]).slice(),s=t.start,l=t.end,u=0,f=1,d=s,h=function(){var b=r==null?void 0:r[u];if(b===void 0)return{v:j$(r,f)};var x=u,S,y=function(){return S===void 0&&(S=n(b,x)),S},_=b.coordinate,w=u===0||Ud(e,_,y,d,l);w||(u=0,d=s,f+=1),w&&(d=_+e*(y()/2+i),u+=f)},m;f<=o.length;)if(m=h(),m)return m.v;return[]}function xc(e){"@babel/helpers - typeof";return xc=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},xc(e)}function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iA(Object(n),!0).forEach(function(r){tle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tle(e,t,n){return t=nle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nle(e){var t=rle(e,"string");return xc(t)=="symbol"?t:t+""}function rle(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ile(e,t,n,r,i){for(var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end,f=function(m){var v=o[m],b,x=function(){return b===void 0&&(b=n(v,m)),b};if(m===s-1){var S=e*(v.coordinate+e*x()/2-u);o[m]=v=Qt(Qt({},v),{},{tickCoord:S>0?v.coordinate-S*e:v.coordinate})}else o[m]=v=Qt(Qt({},v),{},{tickCoord:v.coordinate});var y=Ud(e,v.tickCoord,x,l,u);y&&(u=v.tickCoord-e*(x()/2+i),o[m]=Qt(Qt({},v),{},{isShow:!0}))},d=s-1;d>=0;d--)f(d);return o}function ole(e,t,n,r,i,o){var s=(r||[]).slice(),l=s.length,u=t.start,f=t.end;if(o){var d=r[l-1],h=n(d,l-1),m=e*(d.coordinate+e*h/2-f);s[l-1]=d=Qt(Qt({},d),{},{tickCoord:m>0?d.coordinate-m*e:d.coordinate});var v=Ud(e,d.tickCoord,function(){return h},u,f);v&&(f=d.tickCoord-e*(h/2+i),s[l-1]=Qt(Qt({},d),{},{isShow:!0}))}for(var b=o?l-1:l,x=function(_){var w=s[_],E,P=function(){return E===void 0&&(E=n(w,_)),E};if(_===0){var A=e*(w.coordinate-e*P()/2-u);s[_]=w=Qt(Qt({},w),{},{tickCoord:A<0?w.coordinate-A*e:w.coordinate})}else s[_]=w=Qt(Qt({},w),{},{tickCoord:w.coordinate});var M=Ud(e,w.tickCoord,P,u,f);M&&(u=w.tickCoord+e*(P()/2+i),s[_]=Qt(Qt({},w),{},{isShow:!0}))},S=0;S<b;S++)x(S);return s}function f1(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,l=e.orientation,u=e.interval,f=e.tickFormatter,d=e.unit,h=e.angle;if(!i||!i.length||!r)return[];if(ie(u)||nl.isSsr)return Jse(i,typeof u=="number"&&ie(u)?u:0);var m=[],v=l==="top"||l==="bottom"?"width":"height",b=d&&v==="width"?du(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},x=function(w,E){var P=Pe(f)?f(w.value,E):w.value;return v==="width"?Yse(du(P,{fontSize:t,letterSpacing:n}),b,h):du(P,{fontSize:t,letterSpacing:n})[v]},S=i.length>=2?Pr(i[1].coordinate-i[0].coordinate):1,y=Qse(o,S,v);return u==="equidistantPreserveStart"?ele(S,y,x,i,s):(u==="preserveStart"||u==="preserveStartEnd"?m=ole(S,y,x,i,s,u==="preserveStartEnd"):m=ile(S,y,x,i,s),m.filter(function(_){return _.isShow}))}var ale=["viewBox"],sle=["viewBox"],lle=["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 qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qa.apply(this,arguments)}function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oA(Object(n),!0).forEach(function(r){h1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iv(e,t){if(e==null)return{};var n=ule(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ule(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function cle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N$(r.key),r)}}function fle(e,t,n){return t&&aA(e.prototype,t),n&&aA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hle(e,t,n){return t=Wd(t),dle(e,$$()?Reflect.construct(t,n||[],Wd(e).constructor):t.apply(e,n))}function dle(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 ple(e)}function ple(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($$=function(){return!!e})()}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wd(e)}function mle(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&&h0(e,t)}function h0(e,t){return h0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},h0(e,t)}function h1(e,t,n){return t=N$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N$(e){var t=vle(e,"string");return $s(t)=="symbol"?t:t+""}function vle(e,t){if($s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var al=function(e){function t(n){var r;return cle(this,t),r=hle(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return mle(t,e),fle(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,s=Iv(r,ale),l=this.props,u=l.viewBox,f=Iv(l,sle);return!rs(o,u)||!rs(s,f)||!rs(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,s=i.y,l=i.width,u=i.height,f=i.orientation,d=i.tickSize,h=i.mirror,m=i.tickMargin,v,b,x,S,y,_,w=h?-1:1,E=r.tickSize||d,P=ie(r.tickCoord)?r.tickCoord:r.coordinate;switch(f){case"top":v=b=r.coordinate,S=s+ +!h*u,x=S-w*E,_=x-w*m,y=P;break;case"left":x=S=r.coordinate,b=o+ +!h*l,v=b-w*E,y=v-w*m,_=P;break;case"right":x=S=r.coordinate,b=o+ +h*l,v=b+w*E,y=v+w*m,_=P;break;default:v=b=r.coordinate,S=s+ +h*u,x=S+w*E,_=x+w*m,y=P;break}return{line:{x1:v,y1:x,x2:b,y2:S},tick:{x:y,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.orientation,f=r.mirror,d=r.axisLine,h=At(At(At({},Ee(this.props,!1)),Ee(d,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var m=+(u==="top"&&!f||u==="bottom"&&f);h=At(At({},h),{},{x1:i,y1:o+m*l,x2:i+s,y2:o+m*l})}else{var v=+(u==="left"&&!f||u==="right"&&f);h=At(At({},h),{},{x1:i+v*s,y1:o,x2:i+v*s,y2:o+l})}return D.createElement("line",qa({},h,{className:Ne("recharts-cartesian-axis-line",ar(d,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var s=this,l=this.props,u=l.tickLine,f=l.stroke,d=l.tick,h=l.tickFormatter,m=l.unit,v=f1(At(At({},this.props),{},{ticks:r}),i,o),b=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),S=Ee(this.props,!1),y=Ee(d,!1),_=At(At({},S),{},{fill:"none"},Ee(u,!1)),w=v.map(function(E,P){var A=s.getTickLineCoord(E),M=A.line,C=A.tick,N=At(At(At(At({textAnchor:b,verticalAnchor:x},S),{},{stroke:"none",fill:f},y),C),{},{index:P,payload:E,visibleTicksCount:v.length,tickFormatter:h});return D.createElement(ft,qa({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},Xh(s.props,E,P)),u&&D.createElement("line",qa({},_,M,{className:Ne("recharts-cartesian-axis-tick-line",ar(u,"className"))})),d&&t.renderTickItem(d,N,"".concat(Pe(h)?h(E.value,P):E.value).concat(m||"")))});return D.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,u=i.ticksGenerator,f=i.className,d=i.hide;if(d)return null;var h=this.props,m=h.ticks,v=Iv(h,lle),b=m;return Pe(u)&&(b=m&&m.length>0?u(this.props):u(v)),s<=0||l<=0||!b||!b.length?null:D.createElement(ft,{className:Ne("recharts-cartesian-axis",f),ref:function(S){r.layerReference=S}},o&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),en.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var s,l=Ne(i.className,"recharts-cartesian-axis-tick-value");return D.isValidElement(r)?s=D.cloneElement(r,At(At({},i),{},{className:l})):Pe(r)?s=r(At(At({},i),{},{className:l})):s=D.createElement(cd,qa({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}])}(j.Component);h1(al,"displayName","CartesianAxis");h1(al,"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 gle=["x1","y1","x2","y2","key"],yle=["offset"];function la(e){"@babel/helpers - typeof";return la=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},la(e)}function sA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sA(Object(n),!0).forEach(function(r){xle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xle(e,t,n){return t=_le(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _le(e){var t=ble(e,"string");return la(t)=="symbol"?t:t+""}function ble(e,t){if(la(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(la(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ho.apply(this,arguments)}function lA(e,t){if(e==null)return{};var n=wle(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Sle=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,s=t.width,l=t.height,u=t.ry;return D.createElement("rect",{x:i,y:o,ry:u,width:s,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function L$(e,t){var n;if(D.isValidElement(e))n=D.cloneElement(e,t);else if(Pe(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,s=t.y2,l=t.key,u=lA(t,gle),f=Ee(u,!1);f.offset;var d=lA(f,yle);n=D.createElement("line",Ho({},d,{x1:r,y1:i,x2:o,y2:s,fill:"none",key:l}))}return n}function Ple(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(l,u){var f=tn(tn({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(u),index:u});return L$(i,f)});return D.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function Ole(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(l,u){var f=tn(tn({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(u),index:u});return L$(i,f)});return D.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Tle(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,s=e.height,l=e.horizontalPoints,u=e.horizontal,f=u===void 0?!0:u;if(!f||!t||!t.length)return null;var d=l.map(function(m){return Math.round(m+i-i)}).sort(function(m,v){return m-v});i!==d[0]&&d.unshift(0);var h=d.map(function(m,v){var b=!d[v+1],x=b?i+s-m:d[v+1]-m;if(x<=0)return null;var S=v%t.length;return D.createElement("rect",{key:"react-".concat(v),y:m,x:r,height:x,width:o,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return D.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function Ale(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,s=e.y,l=e.width,u=e.height,f=e.verticalPoints;if(!n||!r||!r.length)return null;var d=f.map(function(m){return Math.round(m+o-o)}).sort(function(m,v){return m-v});o!==d[0]&&d.unshift(0);var h=d.map(function(m,v){var b=!d[v+1],x=b?o+l-m:d[v+1]-m;if(x<=0)return null;var S=v%r.length;return D.createElement("rect",{key:"react-".concat(v),x:m,y:s,width:x,height:u,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return D.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var Ele=function(t,n){var r=t.xAxis,i=t.width,o=t.height,s=t.offset;return Wj(f1(tn(tn(tn({},al.defaultProps),r),{},{ticks:fi(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.left,s.left+s.width,n)},kle=function(t,n){var r=t.yAxis,i=t.width,o=t.height,s=t.offset;return Wj(f1(tn(tn(tn({},al.defaultProps),r),{},{ticks:fi(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.top,s.top+s.height,n)},Ma={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function d0(e){var t,n,r,i,o,s,l=s1(),u=l1(),f=vse(),d=tn(tn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ma.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Ma.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Ma.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ma.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Ma.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:Ma.verticalFill,x:ie(e.x)?e.x:f.left,y:ie(e.y)?e.y:f.top,width:ie(e.width)?e.width:f.width,height:ie(e.height)?e.height:f.height}),h=d.x,m=d.y,v=d.width,b=d.height,x=d.syncWithTicks,S=d.horizontalValues,y=d.verticalValues,_=dse(),w=pse();if(!ie(v)||v<=0||!ie(b)||b<=0||!ie(h)||h!==+h||!ie(m)||m!==+m)return null;var E=d.verticalCoordinatesGenerator||Ele,P=d.horizontalCoordinatesGenerator||kle,A=d.horizontalPoints,M=d.verticalPoints;if((!A||!A.length)&&Pe(P)){var C=S&&S.length,N=P({yAxis:w?tn(tn({},w),{},{ticks:C?S:w.ticks}):void 0,width:l,height:u,offset:f},C?!0:x);vi(Array.isArray(N),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(la(N),"]")),Array.isArray(N)&&(A=N)}if((!M||!M.length)&&Pe(E)){var B=y&&y.length,z=E({xAxis:_?tn(tn({},_),{},{ticks:B?y:_.ticks}):void 0,width:l,height:u,offset:f},B?!0:x);vi(Array.isArray(z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(la(z),"]")),Array.isArray(z)&&(M=z)}return D.createElement("g",{className:"recharts-cartesian-grid"},D.createElement(Sle,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),D.createElement(Ple,Ho({},d,{offset:f,horizontalPoints:A,xAxis:_,yAxis:w})),D.createElement(Ole,Ho({},d,{offset:f,verticalPoints:M,xAxis:_,yAxis:w})),D.createElement(Tle,Ho({},d,{horizontalPoints:A})),D.createElement(Ale,Ho({},d,{verticalPoints:M})))}d0.displayName="CartesianGrid";var Mle=["layout","type","stroke","connectNulls","isRange","ref"],Cle=["key"],I$;function Ns(e){"@babel/helpers - typeof";return Ns=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},Ns(e)}function D$(e,t){if(e==null)return{};var n=jle(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zo.apply(this,arguments)}function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(r){zr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,z$(r.key),r)}}function Nle(e,t,n){return t&&cA(e.prototype,t),n&&cA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lle(e,t,n){return t=Hd(t),Ile(e,R$()?Reflect.construct(t,n||[],Hd(e).constructor):t.apply(e,n))}function Ile(e,t){if(t&&(Ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dle(e)}function Dle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R$=function(){return!!e})()}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hd(e)}function Rle(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&&p0(e,t)}function p0(e,t){return p0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},p0(e,t)}function zr(e,t,n){return t=z$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z$(e){var t=zle(e,"string");return Ns(t)=="symbol"?t:t+""}function zle(e,t){if(Ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xo=function(e){function t(){var n;$le(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Lle(this,t,[].concat(i)),zr(n,"state",{isAnimationFinished:!0}),zr(n,"id",jc("recharts-area-")),zr(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Pe(s)&&s()}),zr(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Pe(s)&&s()}),n}return Rle(t,e),Nle(t,[{key:"renderDots",value:function(r,i,o){var s=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(s&&!l)return null;var u=this.props,f=u.dot,d=u.points,h=u.dataKey,m=Ee(this.props,!1),v=Ee(f,!0),b=d.map(function(S,y){var _=zi(zi(zi({key:"dot-".concat(y),r:3},m),v),{},{index:y,cx:S.x,cy:S.y,dataKey:h,value:S.value,payload:S.payload,points:d});return t.renderDotItem(f,_)}),x={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return D.createElement(ft,Zo({className:"recharts-area-dots"},x),b)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,o=i.baseLine,s=i.points,l=i.strokeWidth,u=s[0].x,f=s[s.length-1].x,d=r*Math.abs(u-f),h=Ki(s.map(function(m){return m.y||0}));return ie(o)&&typeof o=="number"?h=Math.max(o,h):o&&Array.isArray(o)&&o.length&&(h=Math.max(Ki(o.map(function(m){return m.y||0})),h)),ie(h)?D.createElement("rect",{x:u<f?u:u-d,y:0,width:d,height:Math.floor(h+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,o=i.baseLine,s=i.points,l=i.strokeWidth,u=s[0].y,f=s[s.length-1].y,d=r*Math.abs(u-f),h=Ki(s.map(function(m){return m.x||0}));return ie(o)&&typeof o=="number"?h=Math.max(o,h):o&&Array.isArray(o)&&o.length&&(h=Math.max(Ki(o.map(function(m){return m.x||0})),h)),ie(h)?D.createElement("rect",{x:0,y:u<f?u:u-d,width:h+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}},{key:"renderClipRect",value:function(r){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,i,o,s){var l=this.props,u=l.layout,f=l.type,d=l.stroke,h=l.connectNulls,m=l.isRange;l.ref;var v=D$(l,Mle);return D.createElement(ft,{clipPath:o?"url(#clipPath-".concat(s,")"):null},D.createElement(vu,Zo({},Ee(v,!0),{points:r,connectNulls:h,type:f,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),d!=="none"&&D.createElement(vu,Zo({},Ee(this.props,!1),{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:r})),d!=="none"&&m&&D.createElement(vu,Zo({},Ee(this.props,!1),{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var o=this,s=this.props,l=s.points,u=s.baseLine,f=s.isAnimationActive,d=s.animationBegin,h=s.animationDuration,m=s.animationEasing,v=s.animationId,b=this.state,x=b.prevPoints,S=b.prevBaseLine;return D.createElement(Ti,{begin:d,duration:h,isActive:f,easing:m,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var _=y.t;if(x){var w=x.length/l.length,E=l.map(function(C,N){var B=Math.floor(N*w);if(x[B]){var z=x[B],R=nr(z.x,C.x),K=nr(z.y,C.y);return zi(zi({},C),{},{x:R(_),y:K(_)})}return C}),P;if(ie(u)&&typeof u=="number"){var A=nr(S,u);P=A(_)}else if(Me(u)||Qs(u)){var M=nr(S,0);P=M(_)}else P=u.map(function(C,N){var B=Math.floor(N*w);if(S[B]){var z=S[B],R=nr(z.x,C.x),K=nr(z.y,C.y);return zi(zi({},C),{},{x:R(_),y:K(_)})}return C});return o.renderAreaStatically(E,P,r,i)}return D.createElement(ft,null,D.createElement("defs",null,D.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(_))),D.createElement(ft,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(l,u,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,f=this.state,d=f.prevPoints,h=f.prevBaseLine,m=f.totalLength;return u&&s&&s.length&&(!d&&m>0||!Qu(d,s)||!Qu(h,l))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(s,l,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,s=i.dot,l=i.points,u=i.className,f=i.top,d=i.left,h=i.xAxis,m=i.yAxis,v=i.width,b=i.height,x=i.isAnimationActive,S=i.id;if(o||!l||!l.length)return null;var y=this.state.isAnimationFinished,_=l.length===1,w=Ne("recharts-area",u),E=h&&h.allowDataOverflow,P=m&&m.allowDataOverflow,A=E||P,M=Me(S)?this.id:S,C=(r=Ee(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},N=C.r,B=N===void 0?3:N,z=C.strokeWidth,R=z===void 0?2:z,K=eV(s)?s:{},H=K.clipDot,W=H===void 0?!0:H,Z=B*2+R;return D.createElement(ft,{className:w},E||P?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(M)},D.createElement("rect",{x:E?d:d-v/2,y:P?f:f-b/2,width:E?v:v*2,height:P?b:b*2})),!W&&D.createElement("clipPath",{id:"clipPath-dots-".concat(M)},D.createElement("rect",{x:d-Z/2,y:f-Z/2,width:v+Z,height:b+Z}))):null,_?null:this.renderArea(A,M),(s||_)&&this.renderDots(A,W,M),(!x||y)&&Hr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(j.PureComponent);I$=xo;zr(xo,"displayName","Area");zr(xo,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!nl.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});zr(xo,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,s=t.props.baseValue,l=s??o;if(ie(l)&&typeof l=="number")return l;var u=i==="horizontal"?r:n,f=u.scale.domain();if(u.type==="number"){var d=Math.max(f[0],f[1]),h=Math.min(f[0],f[1]);return l==="dataMin"?h:l==="dataMax"||d<0?d:Math.max(Math.min(f[0],f[1]),0)}return l==="dataMin"?f[0]:l==="dataMax"?f[1]:f[0]});zr(xo,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,l=e.bandSize,u=e.dataKey,f=e.stackedData,d=e.dataStartIndex,h=e.displayedData,m=e.offset,v=t.layout,b=f&&f.length,x=I$.getBaseValue(t,n,r,i),S=v==="horizontal",y=!1,_=h.map(function(E,P){var A;b?A=f[d+P]:(A=Bn(E,u),Array.isArray(A)?y=!0:A=[x,A]);var M=A[1]==null||b&&Bn(E,u)==null;return S?{x:KO({axis:r,ticks:o,bandSize:l,entry:E,index:P}),y:M?null:i.scale(A[1]),value:A,payload:E}:{x:M?null:r.scale(A[1]),y:KO({axis:i,ticks:s,bandSize:l,entry:E,index:P}),value:A,payload:E}}),w;return b||y?w=_.map(function(E){var P=Array.isArray(E.value)?E.value[0]:null;return S?{x:E.x,y:P!=null&&E.y!=null?i.scale(P):null}:{x:P!=null?r.scale(P):null,y:E.y}}):w=S?i.scale(x):r.scale(x),zi({points:_,baseLine:w,layout:v,isRange:y},m)});zr(xo,"renderDotItem",function(e,t){var n;if(D.isValidElement(e))n=D.cloneElement(e,t);else if(Pe(e))n=e(t);else{var r=Ne("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=D$(t,Cle);n=D.createElement(r1,Zo({},o,{key:i,className:r}))}return n});function Ls(e){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ls(e)}function Ble(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V$(r.key),r)}}function Vle(e,t,n){return t&&Fle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ule(e,t,n){return t=Zd(t),Wle(e,B$()?Reflect.construct(t,n||[],Zd(e).constructor):t.apply(e,n))}function Wle(e,t){if(t&&(Ls(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hle(e)}function Hle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B$=function(){return!!e})()}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zd(e)}function Zle(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&&m0(e,t)}function m0(e,t){return m0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},m0(e,t)}function F$(e,t,n){return t=V$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V$(e){var t=Gle(e,"string");return Ls(t)=="symbol"?t:t+""}function Gle(e,t){if(Ls(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v0.apply(this,arguments)}function Kle(e){var t=e.xAxisId,n=s1(),r=l1(),i=P$(t);return i==null?null:j.createElement(al,v0({},i,{className:Ne("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return fi(s,!0)}}))}var Is=function(e){function t(){return Ble(this,t),Ule(this,t,arguments)}return Zle(t,e),Vle(t,[{key:"render",value:function(){return j.createElement(Kle,this.props)}}])}(j.Component);F$(Is,"displayName","XAxis");F$(Is,"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 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 qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H$(r.key),r)}}function Yle(e,t,n){return t&&Xle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qle(e,t,n){return t=Gd(t),Jle(e,U$()?Reflect.construct(t,n||[],Gd(e).constructor):t.apply(e,n))}function Jle(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 eue(e)}function eue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U$=function(){return!!e})()}function Gd(e){return Gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gd(e)}function tue(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&&g0(e,t)}function g0(e,t){return g0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},g0(e,t)}function W$(e,t,n){return t=H$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H$(e){var t=nue(e,"string");return Ds(t)=="symbol"?t:t+""}function nue(e,t){if(Ds(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function y0(){return y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y0.apply(this,arguments)}var rue=function(t){var n=t.yAxisId,r=s1(),i=l1(),o=O$(n);return o==null?null:j.createElement(al,y0({},o,{className:Ne("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return fi(l,!0)}}))},Rs=function(e){function t(){return qle(this,t),Qle(this,t,arguments)}return tue(t,e),Yle(t,[{key:"render",value:function(){return j.createElement(rue,this.props)}}])}(j.Component);W$(Rs,"displayName","YAxis");W$(Rs,"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 fA(e){return sue(e)||aue(e)||oue(e)||iue()}function iue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
371
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oue(e,t){if(e){if(typeof e=="string")return x0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x0(e,t)}}function aue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sue(e){if(Array.isArray(e))return x0(e)}function x0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _0=function(t,n,r,i,o){var s=Ar(t,c1),l=Ar(t,Qo),u=[].concat(fA(s),fA(l)),f=Ar(t,tm),d="".concat(i,"Id"),h=i[0],m=n;if(u.length&&(m=u.reduce(function(x,S){if(S.props[d]===r&&Zr(S.props,"extendDomain")&&ie(S.props[h])){var y=S.props[h];return[Math.min(x[0],y),Math.max(x[1],y)]}return x},m)),f.length){var v="".concat(h,"1"),b="".concat(h,"2");m=f.reduce(function(x,S){if(S.props[d]===r&&Zr(S.props,"extendDomain")&&ie(S.props[v])&&ie(S.props[b])){var y=S.props[v],_=S.props[b];return[Math.min(x[0],y,_),Math.max(x[1],y,_)]}return x},m)}return o&&o.length&&(m=o.reduce(function(x,S){return ie(S)?[Math.min(x[0],S),Math.max(x[1],S)]:x},m)),m},Z$={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,f,d){this.fn=u,this.context=f,this.once=d||!1}function o(u,f,d,h,m){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new i(d,h||u,m),b=n?n+f:f;return u._events[b]?u._events[b].fn?u._events[b]=[u._events[b],v]:u._events[b].push(v):(u._events[b]=v,u._eventsCount++),u}function s(u,f){--u._eventsCount===0?u._events=new r:delete u._events[f]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var f=[],d,h;if(this._eventsCount===0)return f;for(h in d=this._events)t.call(d,h)&&f.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(d)):f},l.prototype.listeners=function(f){var d=n?n+f:f,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var m=0,v=h.length,b=new Array(v);m<v;m++)b[m]=h[m].fn;return b},l.prototype.listenerCount=function(f){var d=n?n+f:f,h=this._events[d];return h?h.fn?1:h.length:0},l.prototype.emit=function(f,d,h,m,v,b){var x=n?n+f:f;if(!this._events[x])return!1;var S=this._events[x],y=arguments.length,_,w;if(S.fn){switch(S.once&&this.removeListener(f,S.fn,void 0,!0),y){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,d),!0;case 3:return S.fn.call(S.context,d,h),!0;case 4:return S.fn.call(S.context,d,h,m),!0;case 5:return S.fn.call(S.context,d,h,m,v),!0;case 6:return S.fn.call(S.context,d,h,m,v,b),!0}for(w=1,_=new Array(y-1);w<y;w++)_[w-1]=arguments[w];S.fn.apply(S.context,_)}else{var E=S.length,P;for(w=0;w<E;w++)switch(S[w].once&&this.removeListener(f,S[w].fn,void 0,!0),y){case 1:S[w].fn.call(S[w].context);break;case 2:S[w].fn.call(S[w].context,d);break;case 3:S[w].fn.call(S[w].context,d,h);break;case 4:S[w].fn.call(S[w].context,d,h,m);break;default:if(!_)for(P=1,_=new Array(y-1);P<y;P++)_[P-1]=arguments[P];S[w].fn.apply(S[w].context,_)}}return!0},l.prototype.on=function(f,d,h){return o(this,f,d,h,!1)},l.prototype.once=function(f,d,h){return o(this,f,d,h,!0)},l.prototype.removeListener=function(f,d,h,m){var v=n?n+f:f;if(!this._events[v])return this;if(!d)return s(this,v),this;var b=this._events[v];if(b.fn)b.fn===d&&(!m||b.once)&&(!h||b.context===h)&&s(this,v);else{for(var x=0,S=[],y=b.length;x<y;x++)(b[x].fn!==d||m&&!b[x].once||h&&b[x].context!==h)&&S.push(b[x]);S.length?this._events[v]=S.length===1?S[0]:S:s(this,v)}return this},l.prototype.removeAllListeners=function(f){var d;return f?(d=n?n+f:f,this._events[d]&&s(this,d)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(Z$);var lue=Z$.exports;const uue=Ge(lue);var Dv=new uue,Rv="recharts.syncMouseEvents";function _c(e){"@babel/helpers - typeof";return _c=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},_c(e)}function cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G$(r.key),r)}}function hue(e,t,n){return t&&fue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zv(e,t,n){return t=G$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G$(e){var t=due(e,"string");return _c(t)=="symbol"?t:t+""}function due(e,t){if(_c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pue=function(){function e(){cue(this,e),zv(this,"activeIndex",0),zv(this,"coordinateList",[]),zv(this,"layout","horizontal")}return hue(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,s=n.container,l=s===void 0?null:s,u=n.layout,f=u===void 0?null:u,d=n.offset,h=d===void 0?null:d,m=n.mouseHandlerCallback,v=m===void 0?null:m;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=f??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=v??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(n){if(this.coordinateList.length!==0)switch(n.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(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,s=i.y,l=i.height,u=this.coordinateList[this.activeIndex].coordinate,f=((n=window)===null||n===void 0?void 0:n.scrollX)||0,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,h=o+u+f,m=s+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:h,pageY:m})}}}])}();function mue(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&ie(r)&&ie(i))return!0}return!1}function vue(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function K$(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,s=Wt(t,n,r,i),l=Wt(t,n,r,o);return{points:[s,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function gue(e,t,n){var r,i,o,s;if(e==="horizontal")r=t.x,o=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,u=t.cy,f=t.innerRadius,d=t.outerRadius,h=t.angle,m=Wt(l,u,f,h),v=Wt(l,u,d,h);r=m.x,i=m.y,o=v.x,s=v.y}else return K$(t);return[{x:r,y:i},{x:o,y:s}]}function bc(e){"@babel/helpers - typeof";return bc=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},bc(e)}function hA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hA(Object(n),!0).forEach(function(r){yue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yue(e,t,n){return t=xue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xue(e){var t=_ue(e,"string");return bc(t)=="symbol"?t:t+""}function _ue(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bue(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,s=e.activeCoordinate,l=e.activePayload,u=e.offset,f=e.activeTooltipIndex,d=e.tooltipAxisBandSize,h=e.layout,m=e.chartName,v=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!v||!o||!s||m!=="ScatterChart"&&i!=="axis")return null;var b,x=vu;if(m==="ScatterChart")b=s,x=Oie;else if(m==="BarChart")b=vue(h,s,u,d),x=n1;else if(h==="radial"){var S=K$(s),y=S.cx,_=S.cy,w=S.radius,E=S.startAngle,P=S.endAngle;b={cx:y,cy:_,startAngle:E,endAngle:P,innerRadius:w,outerRadius:w},x=qj}else b={points:gue(h,s,u)},x=vu;var A=eh(eh(eh(eh({stroke:"#ccc",pointerEvents:"none"},u),b),Ee(v,!1)),{},{payload:l,payloadIndex:f,className:Ne("recharts-tooltip-cursor",v.className)});return j.isValidElement(v)?j.cloneElement(v,A):j.createElement(x,A)}var wue=["item"],Sue=["children","className","width","height","style","compact","title","desc"];function zs(e){"@babel/helpers - typeof";return zs=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},zs(e)}function Xa(){return Xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xa.apply(this,arguments)}function dA(e,t){return Tue(e)||Oue(e,t)||X$(e,t)||Pue()}function Pue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
372
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){f=!0,i=d}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Tue(e){if(Array.isArray(e))return e}function pA(e,t){if(e==null)return{};var n=Aue(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Eue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y$(r.key),r)}}function Mue(e,t,n){return t&&kue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cue(e,t,n){return t=Kd(t),jue(e,q$()?Reflect.construct(t,n||[],Kd(e).constructor):t.apply(e,n))}function jue(e,t){if(t&&(zs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $ue(e)}function $ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q$=function(){return!!e})()}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kd(e)}function Nue(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&&b0(e,t)}function b0(e,t){return b0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},b0(e,t)}function Bs(e){return Due(e)||Iue(e)||X$(e)||Lue()}function Lue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
373
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X$(e,t){if(e){if(typeof e=="string")return w0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w0(e,t)}}function Iue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Due(e){if(Array.isArray(e))return w0(e)}function w0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mA(Object(n),!0).forEach(function(r){ve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ve(e,t,n){return t=Y$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y$(e){var t=Rue(e,"string");return zs(t)=="symbol"?t:t+""}function Rue(e,t){if(zs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zue={xAxis:["bottom","top"],yAxis:["left","right"]},Bue={width:"100%",height:"100%"},Q$={x:0,y:0};function th(e){return e}var Fue=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Vue=function(t,n,r,i){var o=n.find(function(d){return d&&d.index===r});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 s=o.coordinate,l=i.radius;return X(X(X({},i),Wt(i.cx,i.cy,l,s)),{},{angle:s,radius:l})}var u=o.coordinate,f=i.angle;return X(X(X({},i),Wt(i.cx,i.cy,u,f)),{},{angle:f,radius:u})}return Q$},nm=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,s=(r??[]).reduce(function(l,u){var f=u.props.data;return f&&f.length?[].concat(Bs(l),Bs(f)):l},[]);return s.length>0?s:t&&t.length&&ie(i)&&ie(o)?t.slice(i,o+1):[]};function J$(e){return e==="number"?[0,"auto"]:void 0}var S0=function(t,n,r,i){var o=t.graphicalItems,s=t.tooltipAxis,l=nm(n,t);return r<0||!o||!o.length||r>=l.length?null:o.reduce(function(u,f){var d,h=(d=f.props.data)!==null&&d!==void 0?d:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(s.dataKey&&!s.allowDuplicatedCategory){var v=h===void 0?l:h;m=Kh(v,s.dataKey,i)}else m=h&&h[r]||l[r];return m?[].concat(Bs(u),[Zj(f,m)]):u},[])},vA=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},s=Fue(o,r),l=t.orderedTooltipTicks,u=t.tooltipAxis,f=t.tooltipTicks,d=rte(s,l,f,u);if(d>=0&&f){var h=f[d]&&f[d].value,m=S0(t,n,d,h),v=Vue(r,l,d,o);return{activeTooltipIndex:d,activeLabel:h,activePayload:m,activeCoordinate:v}}return null},Uue=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,s=n.axisIdKey,l=n.stackGroups,u=n.dataStartIndex,f=n.dataEndIndex,d=t.layout,h=t.children,m=t.stackOffset,v=Uj(d,o);return r.reduce(function(b,x){var S,y=x.type.defaultProps!==void 0?X(X({},x.type.defaultProps),x.props):x.props,_=y.type,w=y.dataKey,E=y.allowDataOverflow,P=y.allowDuplicatedCategory,A=y.scale,M=y.ticks,C=y.includeHidden,N=y[s];if(b[N])return b;var B=nm(t.data,{graphicalItems:i.filter(function(Q){var ae,fe=s in Q.props?Q.props[s]:(ae=Q.type.defaultProps)===null||ae===void 0?void 0:ae[s];return fe===N}),dataStartIndex:u,dataEndIndex:f}),z=B.length,R,K,H;mue(y.domain,E,_)&&(R=Fy(y.domain,null,E),v&&(_==="number"||A!=="auto")&&(H=mu(B,w,"category")));var W=J$(_);if(!R||R.length===0){var Z,G=(Z=y.domain)!==null&&Z!==void 0?Z:W;if(w){if(R=mu(B,w,_),_==="category"&&v){var $=W6(R);P&&$?(K=R,R=Ld(0,z)):P||(R=QO(G,R,x).reduce(function(Q,ae){return Q.indexOf(ae)>=0?Q:[].concat(Bs(Q),[ae])},[]))}else if(_==="category")P?R=R.filter(function(Q){return Q!==""&&!Me(Q)}):R=QO(G,R,x).reduce(function(Q,ae){return Q.indexOf(ae)>=0||ae===""||Me(ae)?Q:[].concat(Bs(Q),[ae])},[]);else if(_==="number"){var q=lte(B,i.filter(function(Q){var ae,fe,he=s in Q.props?Q.props[s]:(ae=Q.type.defaultProps)===null||ae===void 0?void 0:ae[s],ce="hide"in Q.props?Q.props.hide:(fe=Q.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return he===N&&(C||!ce)}),w,o,d);q&&(R=q)}v&&(_==="number"||A!=="auto")&&(H=mu(B,w,"category"))}else v?R=Ld(0,z):l&&l[N]&&l[N].hasStack&&_==="number"?R=m==="expand"?[0,1]:Hj(l[N].stackGroups,u,f):R=Vj(B,i.filter(function(Q){var ae=s in Q.props?Q.props[s]:Q.type.defaultProps[s],fe="hide"in Q.props?Q.props.hide:Q.type.defaultProps.hide;return ae===N&&(C||!fe)}),_,d,!0);if(_==="number")R=_0(h,R,N,o,M),G&&(R=Fy(G,R,E));else if(_==="category"&&G){var V=G,te=R.every(function(Q){return V.indexOf(Q)>=0});te&&(R=V)}}return X(X({},b),{},ve({},N,X(X({},y),{},{axisType:o,domain:R,categoricalDomain:H,duplicateDomain:K,originalDomain:(S=y.domain)!==null&&S!==void 0?S:W,isCategorical:v,layout:d})))},{})},Wue=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,s=n.axisIdKey,l=n.stackGroups,u=n.dataStartIndex,f=n.dataEndIndex,d=t.layout,h=t.children,m=nm(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:f}),v=m.length,b=Uj(d,o),x=-1;return r.reduce(function(S,y){var _=y.type.defaultProps!==void 0?X(X({},y.type.defaultProps),y.props):y.props,w=_[s],E=J$("number");if(!S[w]){x++;var P;return b?P=Ld(0,v):l&&l[w]&&l[w].hasStack?(P=Hj(l[w].stackGroups,u,f),P=_0(h,P,w,o)):(P=Fy(E,Vj(m,r.filter(function(A){var M,C,N=s in A.props?A.props[s]:(M=A.type.defaultProps)===null||M===void 0?void 0:M[s],B="hide"in A.props?A.props.hide:(C=A.type.defaultProps)===null||C===void 0?void 0:C.hide;return N===w&&!B}),"number",d),i.defaultProps.allowDataOverflow),P=_0(h,P,w,o)),X(X({},S),{},ve({},w,X(X({axisType:o},i.defaultProps),{},{hide:!0,orientation:ar(zue,"".concat(o,".").concat(x%2),null),domain:P,originalDomain:E,isCategorical:b,layout:d})))}return S},{})},Hue=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,s=n.graphicalItems,l=n.stackGroups,u=n.dataStartIndex,f=n.dataEndIndex,d=t.children,h="".concat(i,"Id"),m=Ar(d,o),v={};return m&&m.length?v=Uue(t,{axes:m,graphicalItems:s,axisType:i,axisIdKey:h,stackGroups:l,dataStartIndex:u,dataEndIndex:f}):s&&s.length&&(v=Wue(t,{Axis:o,graphicalItems:s,axisType:i,axisIdKey:h,stackGroups:l,dataStartIndex:u,dataEndIndex:f})),v},Zue=function(t){var n=Hi(t),r=fi(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:E_(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Od(n,r)}},gA=function(t){var n=t.children,r=t.defaultShowTooltip,i=jn(n,Es),o=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},Gue=function(t){return!t||!t.length?!1:t.some(function(n){var r=mi(n&&n.type);return r&&r.indexOf("Bar")>=0})},yA=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"}},Kue=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,s=o===void 0?{}:o,l=t.yAxisMap,u=l===void 0?{}:l,f=r.width,d=r.height,h=r.children,m=r.margin||{},v=jn(h,Es),b=jn(h,is),x=Object.keys(u).reduce(function(P,A){var M=u[A],C=M.orientation;return!M.mirror&&!M.hide?X(X({},P),{},ve({},C,P[C]+M.width)):P},{left:m.left||0,right:m.right||0}),S=Object.keys(s).reduce(function(P,A){var M=s[A],C=M.orientation;return!M.mirror&&!M.hide?X(X({},P),{},ve({},C,ar(P,"".concat(C))+M.height)):P},{top:m.top||0,bottom:m.bottom||0}),y=X(X({},S),x),_=y.bottom;v&&(y.bottom+=v.props.height||Es.defaultProps.height),b&&n&&(y=ate(y,i,r,n));var w=f-y.left-y.right,E=d-y.top-y.bottom;return X(X({brushBottom:_},y),{},{width:Math.max(w,0),height:Math.max(E,0)})},que=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},eN=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,f=t.legendContent,d=t.formatAxisMap,h=t.defaultProps,m=function(y,_){var w=_.graphicalItems,E=_.stackGroups,P=_.offset,A=_.updateId,M=_.dataStartIndex,C=_.dataEndIndex,N=y.barSize,B=y.layout,z=y.barGap,R=y.barCategoryGap,K=y.maxBarSize,H=yA(B),W=H.numericAxisName,Z=H.cateAxisName,G=Gue(w),$=[];return w.forEach(function(q,V){var te=nm(y.data,{graphicalItems:[q],dataStartIndex:M,dataEndIndex:C}),Q=q.type.defaultProps!==void 0?X(X({},q.type.defaultProps),q.props):q.props,ae=Q.dataKey,fe=Q.maxBarSize,he=Q["".concat(W,"Id")],ce=Q["".concat(Z,"Id")],Ve={},ze=u.reduce(function(zt,Gt){var Y=_["".concat(Gt.axisType,"Map")],_e=Q["".concat(Gt.axisType,"Id")];Y&&Y[_e]||Gt.axisType==="zAxis"||sa();var be=Y[_e];return X(X({},zt),{},ve(ve({},Gt.axisType,be),"".concat(Gt.axisType,"Ticks"),fi(be)))},Ve),oe=ze[Z],me=ze["".concat(Z,"Ticks")],ye=E&&E[he]&&E[he].hasStack&&_te(q,E[he].stackGroups),J=mi(q.type).indexOf("Bar")>=0,Le=Od(oe,me),Se=[],Ue=G&&ite({barSize:N,stackGroups:E,totalSize:que(ze,Z)});if(J){var We,it,Tt=Me(fe)?K:fe,pn=(We=(it=Od(oe,me,!0))!==null&&it!==void 0?it:Tt)!==null&&We!==void 0?We:0;Se=ote({barGap:z,barCategoryGap:R,bandSize:pn!==Le?pn:Le,sizeList:Ue[ce],maxBarSize:Tt}),pn!==Le&&(Se=Se.map(function(zt){return X(X({},zt),{},{position:X(X({},zt.position),{},{offset:zt.position.offset-pn/2})})}))}var On=q&&q.type&&q.type.getComposedData;On&&$.push({props:X(X({},On(X(X({},ze),{},{displayedData:te,props:y,dataKey:ae,item:q,bandSize:Le,barPosition:Se,offset:P,stackedData:ye,layout:B,dataStartIndex:M,dataEndIndex:C}))),{},ve(ve(ve({key:q.key||"item-".concat(V)},W,ze[W]),Z,ze[Z]),"animationId",A)),childIndex:rV(q,y.children),item:q})}),$},v=function(y,_){var w=y.props,E=y.dataStartIndex,P=y.dataEndIndex,A=y.updateId;if(!WS({props:w}))return null;var M=w.children,C=w.layout,N=w.stackOffset,B=w.data,z=w.reverseStackOrder,R=yA(C),K=R.numericAxisName,H=R.cateAxisName,W=Ar(M,r),Z=gte(B,W,"".concat(K,"Id"),"".concat(H,"Id"),N,z),G=u.reduce(function(Q,ae){var fe="".concat(ae.axisType,"Map");return X(X({},Q),{},ve({},fe,Hue(w,X(X({},ae),{},{graphicalItems:W,stackGroups:ae.axisType===K&&Z,dataStartIndex:E,dataEndIndex:P}))))},{}),$=Kue(X(X({},G),{},{props:w,graphicalItems:W}),_==null?void 0:_.legendBBox);Object.keys(G).forEach(function(Q){G[Q]=d(w,G[Q],$,Q.replace("Map",""),n)});var q=G["".concat(H,"Map")],V=Zue(q),te=m(w,X(X({},G),{},{dataStartIndex:E,dataEndIndex:P,updateId:A,graphicalItems:W,stackGroups:Z,offset:$}));return X(X({formattedGraphicalItems:te,graphicalItems:W,offset:$,stackGroups:Z},V),G)},b=function(S){function y(_){var w,E,P;return Eue(this,y),P=Cue(this,y,[_]),ve(P,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ve(P,"accessibilityManager",new pue),ve(P,"handleLegendBBoxUpdate",function(A){if(A){var M=P.state,C=M.dataStartIndex,N=M.dataEndIndex,B=M.updateId;P.setState(X({legendBBox:A},v({props:P.props,dataStartIndex:C,dataEndIndex:N,updateId:B},X(X({},P.state),{},{legendBBox:A}))))}}),ve(P,"handleReceiveSyncEvent",function(A,M,C){if(P.props.syncId===A){if(C===P.eventEmitterSymbol&&typeof P.props.syncMethod!="function")return;P.applySyncEvent(M)}}),ve(P,"handleBrushChange",function(A){var M=A.startIndex,C=A.endIndex;if(M!==P.state.dataStartIndex||C!==P.state.dataEndIndex){var N=P.state.updateId;P.setState(function(){return X({dataStartIndex:M,dataEndIndex:C},v({props:P.props,dataStartIndex:M,dataEndIndex:C,updateId:N},P.state))}),P.triggerSyncEvent({dataStartIndex:M,dataEndIndex:C})}}),ve(P,"handleMouseEnter",function(A){var M=P.getMouseInfo(A);if(M){var C=X(X({},M),{},{isTooltipActive:!0});P.setState(C),P.triggerSyncEvent(C);var N=P.props.onMouseEnter;Pe(N)&&N(C,A)}}),ve(P,"triggeredAfterMouseMove",function(A){var M=P.getMouseInfo(A),C=M?X(X({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};P.setState(C),P.triggerSyncEvent(C);var N=P.props.onMouseMove;Pe(N)&&N(C,A)}),ve(P,"handleItemMouseEnter",function(A){P.setState(function(){return{isTooltipActive:!0,activeItem:A,activePayload:A.tooltipPayload,activeCoordinate:A.tooltipPosition||{x:A.cx,y:A.cy}}})}),ve(P,"handleItemMouseLeave",function(){P.setState(function(){return{isTooltipActive:!1}})}),ve(P,"handleMouseMove",function(A){A.persist(),P.throttleTriggeredAfterMouseMove(A)}),ve(P,"handleMouseLeave",function(A){P.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};P.setState(M),P.triggerSyncEvent(M);var C=P.props.onMouseLeave;Pe(C)&&C(M,A)}),ve(P,"handleOuterEvent",function(A){var M=nV(A),C=ar(P.props,"".concat(M));if(M&&Pe(C)){var N,B;/.*touch.*/i.test(M)?B=P.getMouseInfo(A.changedTouches[0]):B=P.getMouseInfo(A),C((N=B)!==null&&N!==void 0?N:{},A)}}),ve(P,"handleClick",function(A){var M=P.getMouseInfo(A);if(M){var C=X(X({},M),{},{isTooltipActive:!0});P.setState(C),P.triggerSyncEvent(C);var N=P.props.onClick;Pe(N)&&N(C,A)}}),ve(P,"handleMouseDown",function(A){var M=P.props.onMouseDown;if(Pe(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"handleMouseUp",function(A){var M=P.props.onMouseUp;if(Pe(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"handleTouchMove",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.throttleTriggeredAfterMouseMove(A.changedTouches[0])}),ve(P,"handleTouchStart",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.handleMouseDown(A.changedTouches[0])}),ve(P,"handleTouchEnd",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.handleMouseUp(A.changedTouches[0])}),ve(P,"handleDoubleClick",function(A){var M=P.props.onDoubleClick;if(Pe(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"handleContextMenu",function(A){var M=P.props.onContextMenu;if(Pe(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"triggerSyncEvent",function(A){P.props.syncId!==void 0&&Dv.emit(Rv,P.props.syncId,A,P.eventEmitterSymbol)}),ve(P,"applySyncEvent",function(A){var M=P.props,C=M.layout,N=M.syncMethod,B=P.state.updateId,z=A.dataStartIndex,R=A.dataEndIndex;if(A.dataStartIndex!==void 0||A.dataEndIndex!==void 0)P.setState(X({dataStartIndex:z,dataEndIndex:R},v({props:P.props,dataStartIndex:z,dataEndIndex:R,updateId:B},P.state)));else if(A.activeTooltipIndex!==void 0){var K=A.chartX,H=A.chartY,W=A.activeTooltipIndex,Z=P.state,G=Z.offset,$=Z.tooltipTicks;if(!G)return;if(typeof N=="function")W=N($,A);else if(N==="value"){W=-1;for(var q=0;q<$.length;q++)if($[q].value===A.activeLabel){W=q;break}}var V=X(X({},G),{},{x:G.left,y:G.top}),te=Math.min(K,V.x+V.width),Q=Math.min(H,V.y+V.height),ae=$[W]&&$[W].value,fe=S0(P.state,P.props.data,W),he=$[W]?{x:C==="horizontal"?$[W].coordinate:te,y:C==="horizontal"?Q:$[W].coordinate}:Q$;P.setState(X(X({},A),{},{activeLabel:ae,activeCoordinate:he,activePayload:fe,activeTooltipIndex:W}))}else P.setState(A)}),ve(P,"renderCursor",function(A){var M,C=P.state,N=C.isTooltipActive,B=C.activeCoordinate,z=C.activePayload,R=C.offset,K=C.activeTooltipIndex,H=C.tooltipAxisBandSize,W=P.getTooltipEventType(),Z=(M=A.props.active)!==null&&M!==void 0?M:N,G=P.props.layout,$=A.key||"_recharts-cursor";return D.createElement(bue,{key:$,activeCoordinate:B,activePayload:z,activeTooltipIndex:K,chartName:n,element:A,isActive:Z,layout:G,offset:R,tooltipAxisBandSize:H,tooltipEventType:W})}),ve(P,"renderPolarAxis",function(A,M,C){var N=ar(A,"type.axisType"),B=ar(P.state,"".concat(N,"Map")),z=A.type.defaultProps,R=z!==void 0?X(X({},z),A.props):A.props,K=B&&B[R["".concat(N,"Id")]];return j.cloneElement(A,X(X({},K),{},{className:Ne(N,K.className),key:A.key||"".concat(M,"-").concat(C),ticks:fi(K,!0)}))}),ve(P,"renderPolarGrid",function(A){var M=A.props,C=M.radialLines,N=M.polarAngles,B=M.polarRadius,z=P.state,R=z.radiusAxisMap,K=z.angleAxisMap,H=Hi(R),W=Hi(K),Z=W.cx,G=W.cy,$=W.innerRadius,q=W.outerRadius;return j.cloneElement(A,{polarAngles:Array.isArray(N)?N:fi(W,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(B)?B:fi(H,!0).map(function(V){return V.coordinate}),cx:Z,cy:G,innerRadius:$,outerRadius:q,key:A.key||"polar-grid",radialLines:C})}),ve(P,"renderLegend",function(){var A=P.state.formattedGraphicalItems,M=P.props,C=M.children,N=M.width,B=M.height,z=P.props.margin||{},R=N-(z.left||0)-(z.right||0),K=Bj({children:C,formattedGraphicalItems:A,legendWidth:R,legendContent:f});if(!K)return null;var H=K.item,W=pA(K,wue);return j.cloneElement(H,X(X({},W),{},{chartWidth:N,chartHeight:B,margin:z,onBBoxUpdate:P.handleLegendBBoxUpdate}))}),ve(P,"renderTooltip",function(){var A,M=P.props,C=M.children,N=M.accessibilityLayer,B=jn(C,ii);if(!B)return null;var z=P.state,R=z.isTooltipActive,K=z.activeCoordinate,H=z.activePayload,W=z.activeLabel,Z=z.offset,G=(A=B.props.active)!==null&&A!==void 0?A:R;return j.cloneElement(B,{viewBox:X(X({},Z),{},{x:Z.left,y:Z.top}),active:G,label:W,payload:G?H:[],coordinate:K,accessibilityLayer:N})}),ve(P,"renderBrush",function(A){var M=P.props,C=M.margin,N=M.data,B=P.state,z=B.offset,R=B.dataStartIndex,K=B.dataEndIndex,H=B.updateId;return j.cloneElement(A,{key:A.key||"_recharts-brush",onChange:Xf(P.handleBrushChange,A.props.onChange),data:N,x:ie(A.props.x)?A.props.x:z.left,y:ie(A.props.y)?A.props.y:z.top+z.height+z.brushBottom-(C.bottom||0),width:ie(A.props.width)?A.props.width:z.width,startIndex:R,endIndex:K,updateId:"brush-".concat(H)})}),ve(P,"renderReferenceElement",function(A,M,C){if(!A)return null;var N=P,B=N.clipPathId,z=P.state,R=z.xAxisMap,K=z.yAxisMap,H=z.offset,W=A.type.defaultProps||{},Z=A.props,G=Z.xAxisId,$=G===void 0?W.xAxisId:G,q=Z.yAxisId,V=q===void 0?W.yAxisId:q;return j.cloneElement(A,{key:A.key||"".concat(M,"-").concat(C),xAxis:R[$],yAxis:K[V],viewBox:{x:H.left,y:H.top,width:H.width,height:H.height},clipPathId:B})}),ve(P,"renderActivePoints",function(A){var M=A.item,C=A.activePoint,N=A.basePoint,B=A.childIndex,z=A.isRange,R=[],K=M.props.key,H=M.item.type.defaultProps!==void 0?X(X({},M.item.type.defaultProps),M.item.props):M.item.props,W=H.activeDot,Z=H.dataKey,G=X(X({index:B,dataKey:Z,cx:C.x,cy:C.y,r:4,fill:t1(M.item),strokeWidth:2,stroke:"#fff",payload:C.payload,value:C.value},Ee(W,!1)),qh(W));return R.push(y.renderActiveDot(W,G,"".concat(K,"-activePoint-").concat(B))),N?R.push(y.renderActiveDot(W,X(X({},G),{},{cx:N.x,cy:N.y}),"".concat(K,"-basePoint-").concat(B))):z&&R.push(null),R}),ve(P,"renderGraphicChild",function(A,M,C){var N=P.filterFormatItem(A,M,C);if(!N)return null;var B=P.getTooltipEventType(),z=P.state,R=z.isTooltipActive,K=z.tooltipAxis,H=z.activeTooltipIndex,W=z.activeLabel,Z=P.props.children,G=jn(Z,ii),$=N.props,q=$.points,V=$.isRange,te=$.baseLine,Q=N.item.type.defaultProps!==void 0?X(X({},N.item.type.defaultProps),N.item.props):N.item.props,ae=Q.activeDot,fe=Q.hide,he=Q.activeBar,ce=Q.activeShape,Ve=!!(!fe&&R&&G&&(ae||he||ce)),ze={};B!=="axis"&&G&&G.props.trigger==="click"?ze={onClick:Xf(P.handleItemMouseEnter,A.props.onClick)}:B!=="axis"&&(ze={onMouseLeave:Xf(P.handleItemMouseLeave,A.props.onMouseLeave),onMouseEnter:Xf(P.handleItemMouseEnter,A.props.onMouseEnter)});var oe=j.cloneElement(A,X(X({},N.props),ze));function me(Gt){return typeof K.dataKey=="function"?K.dataKey(Gt.payload):null}if(Ve)if(H>=0){var ye,J;if(K.dataKey&&!K.allowDuplicatedCategory){var Le=typeof K.dataKey=="function"?me:"payload.".concat(K.dataKey.toString());ye=Kh(q,Le,W),J=V&&te&&Kh(te,Le,W)}else ye=q==null?void 0:q[H],J=V&&te&&te[H];if(ce||he){var Se=A.props.activeIndex!==void 0?A.props.activeIndex:H;return[j.cloneElement(A,X(X(X({},N.props),ze),{},{activeIndex:Se})),null,null]}if(!Me(ye))return[oe].concat(Bs(P.renderActivePoints({item:N,activePoint:ye,basePoint:J,childIndex:H,isRange:V})))}else{var Ue,We=(Ue=P.getItemByXY(P.state.activeCoordinate))!==null&&Ue!==void 0?Ue:{graphicalItem:oe},it=We.graphicalItem,Tt=it.item,pn=Tt===void 0?A:Tt,On=it.childIndex,zt=X(X(X({},N.props),ze),{},{activeIndex:On});return[j.cloneElement(pn,zt),null,null]}return V?[oe,null,null]:[oe,null]}),ve(P,"renderCustomized",function(A,M,C){return j.cloneElement(A,X(X({key:"recharts-customized-".concat(C)},P.props),P.state))}),ve(P,"renderMap",{CartesianGrid:{handler:th,once:!0},ReferenceArea:{handler:P.renderReferenceElement},ReferenceLine:{handler:th},ReferenceDot:{handler:P.renderReferenceElement},XAxis:{handler:th},YAxis:{handler:th},Brush:{handler:P.renderBrush,once:!0},Bar:{handler:P.renderGraphicChild},Line:{handler:P.renderGraphicChild},Area:{handler:P.renderGraphicChild},Radar:{handler:P.renderGraphicChild},RadialBar:{handler:P.renderGraphicChild},Scatter:{handler:P.renderGraphicChild},Pie:{handler:P.renderGraphicChild},Funnel:{handler:P.renderGraphicChild},Tooltip:{handler:P.renderCursor,once:!0},PolarGrid:{handler:P.renderPolarGrid,once:!0},PolarAngleAxis:{handler:P.renderPolarAxis},PolarRadiusAxis:{handler:P.renderPolarAxis},Customized:{handler:P.renderCustomized}}),P.clipPathId="".concat((w=_.id)!==null&&w!==void 0?w:jc("recharts"),"-clip"),P.throttleTriggeredAfterMouseMove=FC(P.triggeredAfterMouseMove,(E=_.throttleDelay)!==null&&E!==void 0?E:1e3/60),P.state={},P}return Nue(y,S),Mue(y,[{key:"componentDidMount",value:function(){var w,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,E=w.children,P=w.data,A=w.height,M=w.layout,C=jn(E,ii);if(C){var N=C.props.defaultIndex;if(!(typeof N!="number"||N<0||N>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[N]&&this.state.tooltipTicks[N].value,z=S0(this.state,P,N,B),R=this.state.tooltipTicks[N].coordinate,K=(this.state.offset.top+A)/2,H=M==="horizontal",W=H?{x:R,y:K}:{y:R,x:K},Z=this.state.formattedGraphicalItems.find(function($){var q=$.item;return q.type.name==="Scatter"});Z&&(W=X(X({},W),Z.props.points[N].tooltipPosition),z=Z.props.points[N].tooltipPayload);var G={activeTooltipIndex:N,isTooltipActive:!0,activeLabel:B,activePayload:z,activeCoordinate:W};this.setState(G),this.renderCursor(C),this.accessibilityManager.setIndex(N)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var P,A;this.accessibilityManager.setDetails({offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0}})}return null}},{key:"componentDidUpdate",value:function(w){ny([jn(w.children,ii)],[jn(this.props.children,ii)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=jn(this.props.children,ii);if(w&&typeof w.props.shared=="boolean"){var E=w.props.shared?"axis":"item";return l.indexOf(E)>=0?E:o}return o}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var E=this.container,P=E.getBoundingClientRect(),A=kX(P),M={chartX:Math.round(w.pageX-A.left),chartY:Math.round(w.pageY-A.top)},C=P.width/E.offsetWidth||1,N=this.inRange(M.chartX,M.chartY,C);if(!N)return null;var B=this.state,z=B.xAxisMap,R=B.yAxisMap,K=this.getTooltipEventType(),H=vA(this.state,this.props.data,this.props.layout,N);if(K!=="axis"&&z&&R){var W=Hi(z).scale,Z=Hi(R).scale,G=W&&W.invert?W.invert(M.chartX):null,$=Z&&Z.invert?Z.invert(M.chartY):null;return X(X({},M),{},{xValue:G,yValue:$},H)}return H?X(X({},M),H):null}},{key:"inRange",value:function(w,E){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=this.props.layout,M=w/P,C=E/P;if(A==="horizontal"||A==="vertical"){var N=this.state.offset,B=M>=N.left&&M<=N.left+N.width&&C>=N.top&&C<=N.top+N.height;return B?{x:M,y:C}:null}var z=this.state,R=z.angleAxisMap,K=z.radiusAxisMap;if(R&&K){var H=Hi(R);return tT({x:M,y:C},H)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,E=this.getTooltipEventType(),P=jn(w,ii),A={};P&&E==="axis"&&(P.props.trigger==="click"?A={onClick:this.handleClick}:A={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 M=qh(this.props,this.handleOuterEvent);return X(X({},M),A)}},{key:"addListener",value:function(){Dv.on(Rv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Dv.removeListener(Rv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,E,P){for(var A=this.state.formattedGraphicalItems,M=0,C=A.length;M<C;M++){var N=A[M];if(N.item===w||N.props.key===w.key||E===mi(N.item.type)&&P===N.childIndex)return N}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,E=this.state.offset,P=E.left,A=E.top,M=E.height,C=E.width;return D.createElement("defs",null,D.createElement("clipPath",{id:w},D.createElement("rect",{x:P,y:A,height:M,width:C})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(E,P){var A=dA(P,2),M=A[0],C=A[1];return X(X({},E),{},ve({},M,C.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(E,P){var A=dA(P,2),M=A[0],C=A[1];return X(X({},E),{},ve({},M,C.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(w){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(w){var E=this.state,P=E.formattedGraphicalItems,A=E.activeItem;if(P&&P.length)for(var M=0,C=P.length;M<C;M++){var N=P[M],B=N.props,z=N.item,R=z.type.defaultProps!==void 0?X(X({},z.type.defaultProps),z.props):z.props,K=mi(z.type);if(K==="Bar"){var H=(B.data||[]).find(function($){return mie(w,$)});if(H)return{graphicalItem:N,payload:H}}else if(K==="RadialBar"){var W=(B.data||[]).find(function($){return tT(w,$)});if(W)return{graphicalItem:N,payload:W}}else if(Xp(N,A)||Yp(N,A)||mc(N,A)){var Z=yoe({graphicalItem:N,activeTooltipItem:A,itemData:R.data}),G=R.activeIndex===void 0?Z:R.activeIndex;return{graphicalItem:X(X({},N),{},{childIndex:G}),payload:mc(N,A)?R.data[Z]:N.props.data[Z]}}}return null}},{key:"render",value:function(){var w=this;if(!WS(this))return null;var E=this.props,P=E.children,A=E.className,M=E.width,C=E.height,N=E.style,B=E.compact,z=E.title,R=E.desc,K=pA(E,Sue),H=Ee(K,!1);if(B)return D.createElement(XT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement(iy,Xa({},H,{width:M,height:C,title:z,desc:R}),this.renderClipPath(),ZS(P,this.renderMap)));if(this.props.accessibilityLayer){var W,Z;H.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,H.role=(Z=this.props.role)!==null&&Z!==void 0?Z:"application",H.onKeyDown=function($){w.accessibilityManager.keyboardEvent($)},H.onFocus=function(){w.accessibilityManager.focus()}}var G=this.parseEventsOfWrapper();return D.createElement(XT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement("div",Xa({className:Ne("recharts-wrapper",A),style:X({position:"relative",cursor:"default",width:M,height:C},N)},G,{ref:function(q){w.container=q}}),D.createElement(iy,Xa({},H,{width:M,height:C,title:z,desc:R,style:Bue}),this.renderClipPath(),ZS(P,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ve(b,"displayName",n),ve(b,"defaultProps",X({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),ve(b,"getDerivedStateFromProps",function(S,y){var _=S.dataKey,w=S.data,E=S.children,P=S.width,A=S.height,M=S.layout,C=S.stackOffset,N=S.margin,B=y.dataStartIndex,z=y.dataEndIndex;if(y.updateId===void 0){var R=gA(S);return X(X(X({},R),{},{updateId:0},v(X(X({props:S},R),{},{updateId:0}),y)),{},{prevDataKey:_,prevData:w,prevWidth:P,prevHeight:A,prevLayout:M,prevStackOffset:C,prevMargin:N,prevChildren:E})}if(_!==y.prevDataKey||w!==y.prevData||P!==y.prevWidth||A!==y.prevHeight||M!==y.prevLayout||C!==y.prevStackOffset||!rs(N,y.prevMargin)){var K=gA(S),H={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},W=X(X({},vA(y,w,M)),{},{updateId:y.updateId+1}),Z=X(X(X({},K),H),W);return X(X(X({},Z),v(X({props:S},Z),y)),{},{prevDataKey:_,prevData:w,prevWidth:P,prevHeight:A,prevLayout:M,prevStackOffset:C,prevMargin:N,prevChildren:E})}if(!ny(E,y.prevChildren)){var G,$,q,V,te=jn(E,Es),Q=te&&(G=($=te.props)===null||$===void 0?void 0:$.startIndex)!==null&&G!==void 0?G:B,ae=te&&(q=(V=te.props)===null||V===void 0?void 0:V.endIndex)!==null&&q!==void 0?q:z,fe=Q!==B||ae!==z,he=!Me(w),ce=he&&!fe?y.updateId:y.updateId+1;return X(X({updateId:ce},v(X(X({props:S},y),{},{updateId:ce,dataStartIndex:Q,dataEndIndex:ae}),y)),{},{prevChildren:E,dataStartIndex:Q,dataEndIndex:ae})}return null}),ve(b,"renderActiveDot",function(S,y,_){var w;return j.isValidElement(S)?w=j.cloneElement(S,y):Pe(S)?w=S(y):w=D.createElement(r1,y),D.createElement(ft,{className:"recharts-active-dot",key:_},w)});var x=j.forwardRef(function(y,_){return D.createElement(b,Xa({},y,{ref:_}))});return x.displayName=b.displayName,x},Xue=eN({chartName:"BarChart",GraphicalChild:va,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Is},{axisType:"yAxis",AxisComp:Rs}],formatAxisMap:v$}),Yue=eN({chartName:"AreaChart",GraphicalChild:xo,axisComponents:[{axisType:"xAxis",AxisComp:Is},{axisType:"yAxis",AxisComp:Rs}],formatAxisMap:v$});const Que=({manager:e})=>{const{data:t}=e;if(!t)return O.jsx("div",{className:"p-20 text-center opacity-30 font-mono text-sm",children:"Caricamento dati energia..."});const n=t.power.soc_history_24h,r=t.power.soc,i=[...n,r],o=i.map((m,v)=>({index:v,soc:m})),s=Math.min(...i),l=Math.max(...i),u=i.lastIndexOf(s),f=i.indexOf(l),d=i.length-1,h=t.power.soc_history_7d_minmax;return O.jsxs("div",{className:"px-2 pt-5 pb-24 landscape:pt-4 space-y-2",children:[O.jsxs("div",{className:"flex flex-col landscape:flex-row gap-2 w-full",children:[O.jsxs("div",{className:"w-full landscape:w-1/2 bg-white/5 p-5 rounded-[2rem] border border-white/10 shadow-2xl",children:[O.jsxs("h3",{className:"text-[10px] font-black font-mono text-cyan-400 mb-2 flex items-center gap-2 tracking-widest uppercase",children:[O.jsx(f4,{size:14})," STATO DI CARICA (24h)"]}),O.jsx("div",{className:"h-56 w-full",children:O.jsx(UP,{width:"100%",height:"100%",children:O.jsxs(Yue,{data:o,margin:{top:25,right:65,left:0,bottom:10},children:[O.jsx("defs",{children:O.jsxs("linearGradient",{id:"colorSoc",x1:"0",y1:"0",x2:"0",y2:"1",children:[O.jsx("stop",{offset:"5%",stopColor:r<40?"#ef4444":"#22c55e",stopOpacity:.4}),O.jsx("stop",{offset:"95%",stopColor:"#121212",stopOpacity:0})]})}),O.jsx(d0,{strokeDasharray:"3 3",stroke:"#ffffff40",vertical:!1}),O.jsx(Rs,{domain:[40,100],ticks:[40,60,80,100],tick:{fill:"#666",fontSize:11,fontWeight:"bold"},axisLine:!1,tickLine:!1,width:27}),O.jsx(Is,{dataKey:"index",hide:!0}),O.jsx(xo,{type:"monotone",dataKey:"soc",stroke:r<40?"#ef4444":"#22c55e",strokeWidth:4,fill:"url(#colorSoc)",isAnimationActive:!1}),O.jsx(Qo,{x:f,y:l,r:4,fill:"#22c55e",stroke:"#121212",strokeWidth:2,label:{position:"top",value:`${l.toFixed(0)}%`,fill:"#22c55e",fontSize:10,fontWeight:"bold",dy:-10}}),O.jsx(Qo,{x:u,y:s,r:4,fill:"#ef4444",stroke:"#121212",strokeWidth:2,label:{position:"bottom",value:`${s.toFixed(0)}%`,fill:"#ef4444",fontSize:10,fontWeight:"bold",dy:10}}),O.jsx(Qo,{x:d,y:r,r:6,fill:"#fff",stroke:"#06b6d4",strokeWidth:2,label:{position:"right",value:`${r.toFixed(1)}%`,fill:"#fff",fontSize:13,fontWeight:"900",dx:12}})]})})})]}),O.jsxs("div",{className:"w-full landscape:w-1/2 bg-white/5 p-5 rounded-[2rem] border border-white/10 space-y-5 shadow-2xl",children:[O.jsxs("h3",{className:"text-[10px] font-black font-mono text-orange-400 mb-2 flex items-center gap-2 tracking-widest uppercase",children:[O.jsx(Qx,{size:14})," PRODUZIONE SOLARE"]}),O.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[O.jsx(Bv,{title:"OGGI",val:t.solar.today_kwh,color:"text-orange-400"}),O.jsx(Bv,{title:"PREV.",val:t.solar.forecast_kwh,color:"text-yellow-400"}),O.jsx(Bv,{title:"IERI",val:t.solar.yesterday_kwh,color:"text-gray-300"})]}),(()=>{const m=t.solar.today_prua_max_w||0,v=t.solar.today_poppa_max_w||0,b=Math.max(m,v,1);return O.jsxs("div",{className:"space-y-5 pt-2",children:[O.jsx(xA,{label:"PRUA",current:t.solar.prua_w,localMax:m,globalMax:b}),O.jsx(xA,{label:"POPPA",current:t.solar.poppa_w,localMax:v,globalMax:b})]})})()]})]}),O.jsxs("div",{className:"bg-white/5 p-5 rounded-[2rem] border border-white/10 shadow-2xl",children:[O.jsxs("h3",{className:"text-[10px] font-black font-mono text-cyan-400 mb-6 flex items-center gap-2 tracking-widest uppercase",children:[O.jsx(P4,{size:14})," MIN/MAX SETTIMANALE"]}),O.jsx("div",{className:"h-64 w-full",children:O.jsx(UP,{width:"100%",height:"100%",children:O.jsxs(Xue,{data:h,margin:{top:25,right:0,left:0,bottom:40},children:[O.jsx("defs",{children:h.map((m,v)=>{const b=m.max-m.min||1,x=(35-m.min)/b*100,S=(65-m.min)/b*100;return O.jsxs("linearGradient",{id:`grad-${v}`,x1:"0",y1:"1",x2:"0",y2:"0",children:[O.jsx("stop",{offset:"0%",stopColor:m.min<35?"#ef4444":m.min<65?"#f97316":"#22c55e"}),x>0&&x<100&&O.jsx("stop",{offset:`${x}%`,stopColor:"#f97316"}),S>0&&S<100&&O.jsx("stop",{offset:`${S}%`,stopColor:"#eab308"}),O.jsx("stop",{offset:"100%",stopColor:m.max>65?"#22c55e":m.max>35?"#eab308":"#ef4444"})]},`grad-${v}`)})}),O.jsx(d0,{strokeDasharray:"3 3",stroke:"#ffffff40",vertical:!1}),O.jsx(Is,{dataKey:"day",axisLine:!1,tickLine:!1,tick:{fill:"#d1d5db",fontSize:11,fontWeight:"bold"}}),O.jsx(Rs,{domain:[0,100],ticks:[0,50,100],hide:!0}),O.jsxs(va,{dataKey:m=>[m.min,m.max],radius:[6,6,6,6],barSize:18,isAnimationActive:!1,children:[h.map((m,v)=>O.jsx(M_,{fill:`url(#grad-${v})`},`cell-${v}`)),O.jsx(Hr,{dataKey:"max",position:"top",content:m=>{const{x:v,y:b,width:x,value:S}=m;return O.jsxs("text",{x:v+x/2,y:b-8,fill:"#fff",fontSize:"10",fontWeight:"900",textAnchor:"middle",children:[S.toFixed(0),"%"]})}}),O.jsx(Hr,{dataKey:"min",position:"bottom",content:m=>{const{x:v,y:b,width:x,value:S,height:y}=m;return O.jsxs("text",{x:v+x/2,y:b+y+18,fill:S<40?"#ef4444":"#d1d5db",fontSize:"10",fontWeight:"bold",textAnchor:"middle",children:[S.toFixed(0),"%"]})}})]})]})})})]})]})},Bv=({title:e,val:t,color:n})=>O.jsxs("div",{className:"bg-white/5 p-3 rounded-2xl border border-white/5",children:[O.jsx("div",{className:"text-[8px] font-black text-gray-300 mb-1 tracking-tighter uppercase",children:e}),O.jsxs("div",{className:`text-xl font-black ${n}`,children:[t.toFixed(1),O.jsx("span",{className:"text-[10px] ml-0.5 opacity-50",children:"kWh"})]})]}),xA=({label:e,current:t,localMax:n,globalMax:r})=>{const i=t/r*100,o=n/r*100;return O.jsxs("div",{className:"space-y-1.5",children:[O.jsxs("div",{className:"flex justify-between text-[10px] font-black",children:[O.jsx("span",{className:"text-gray-300 font-mono tracking-tighter uppercase",children:e}),O.jsxs("span",{className:"text-orange-400 font-mono",children:[t,"W ",O.jsxs("span",{className:"text-gray-300 font-bold uppercase",children:["/ Peak ",n,"W"]})]})]}),O.jsxs("div",{className:"relative h-2.5 w-full",children:[O.jsx("div",{className:"absolute inset-0 bg-white/5 rounded-full"}),o<99&&O.jsx("div",{className:"absolute top-0 bottom-0 border-y border-r border-dashed border-white/10 rounded-r-full",style:{left:`${o}%`,right:0}}),O.jsx("div",{className:"absolute inset-y-0 left-0 bg-white/10 rounded-full",style:{width:`${o}%`}}),O.jsx("div",{className:"absolute inset-y-0 left-0 bg-orange-500 rounded-full transition-all duration-1000 shadow-[0_0_12px_rgba(249,115,22,0.4)]",style:{width:`${i}%`}})]})]})},_A=e=>{const[t,n]=j.useState(e),r=j.useRef(e);return j.useEffect(()=>{const i=r.current;let o=(e-i)%360;o>180&&(o-=360),o<-180&&(o+=360),n(s=>s+o),r.current=e},[e]),t},Ql=e=>e<10?"text-cyan-400":e<18?"text-green-400":e<25?"text-yellow-400":e<35?"text-orange-500":"text-red-500",tN=(e,t=24)=>{if(!e)return O.jsx(SS,{size:t,className:"text-gray-400"});const n=e.precipitation||0,r=e.icon.toLowerCase();return n>=1.5?O.jsx(o4,{size:t,className:"text-purple-400"}):n>=.4?O.jsx(a4,{size:t,className:"text-cyan-400"}):n>0?O.jsx(i4,{size:t,className:"text-cyan-200"}):r.includes("sun")||r.includes("clear")?O.jsx(s4,{size:t,className:"text-yellow-400"}):r.includes("moon")?O.jsx(hM,{size:t,className:"text-blue-300"}):r.includes("cloud")?O.jsx(SS,{size:t,className:"text-gray-400"}):O.jsx(Qx,{size:t,className:"text-orange-400"})},Jue=({manager:e})=>{const{data:t}=e;if(!t)return O.jsx("div",{className:"p-20 text-center opacity-30 font-mono text-sm uppercase text-white",children:"Ricezione dati..."});const n=t.environment,r=Math.min(100,n.wind_now/Math.max(n.wind_max_30m,1)*100);return O.jsxs("div",{className:"px-2 pt-5 pb-24 landscape:pt-4 space-y-2 text-white",children:[O.jsxs("div",{className:"grid grid-cols-2 landscape:grid-cols-4 gap-2",children:[O.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 landscape:px-5 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center justify-center landscape:justify-between text-center shadow-xl",children:[O.jsxs("div",{className:"flex flex-col items-center landscape:items-start",children:[O.jsx("div",{className:`text-6xl landscape:text-4xl font-black tracking-tighter ${Ql(n.wind_now)} drop-shadow-lg leading-none`,children:n.wind_now.toFixed(0)}),O.jsx("div",{className:"text-[10px] landscape:text-[8px] font-black text-gray-300 tracking-widest mt-1 uppercase font-mono",children:"Knots"})]}),O.jsx("div",{className:"w-full landscape:w-5 h-3 landscape:h-14 bg-white/10 rounded-full mt-4 landscape:mt-0 overflow-hidden border border-white/5 flex flex-col justify-end",children:O.jsx("div",{className:`bg-current ${Ql(n.wind_now)} transition-all duration-1000 shadow-[0_0_10px_currentColor]`,style:{width:window.innerHeight>window.innerWidth?`${r}%`:"100%",height:window.innerHeight>window.innerWidth?"100%":`${r}%`}})})]}),O.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 space-y-4 landscape:space-y-1 justify-center flex flex-col shadow-xl font-mono text-white",children:[O.jsx(Fv,{label:"MIN 30m",val:n.wind_min_30m,color:"text-cyan-400"}),O.jsx("div",{className:"h-px bg-white/5 w-full"}),O.jsx(Fv,{label:"MAX 30m",val:n.wind_max_30m,color:"text-orange-400"}),O.jsx("div",{className:"h-px bg-white/5 w-full"}),O.jsx(Fv,{label:"MAX 24h",val:n.wind_max_24h,color:"text-red-500"})]}),O.jsx(bA,{title:"APPARENTE",windAngle:n.wind_dir_rel,boatAngle:0,color:Ql(n.wind_now)}),O.jsx(bA,{title:"REALE",windAngle:n.wind_dir_true,boatAngle:n.heading,color:Ql(n.wind_now),isTrue:!0})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[O.jsx(wA,{icon:O.jsx(mM,{className:"text-yellow-500"}),title:"POZZETTO",val:n.temp_pozzetto,sub:`Umidità: ${n.hum_pozzetto.toFixed(0)}%`}),O.jsx(wA,{icon:tN(n.hourly_forecast[0],28),title:"MODELLO",val:n.temp_forecast,sub:"OpenMeteo"})]}),O.jsxs("div",{className:"bg-white/5 p-3 rounded-[2.5rem] border border-white/10 shadow-2xl",children:[O.jsx("h3",{className:"text-[10px] font-black text-center text-gray-300 tracking-[0.2em] mb-4 uppercase font-mono opacity-50 text-white",children:"Previsione 6 Ore"}),O.jsx("div",{className:"grid grid-cols-3 gap-2",children:n.hourly_forecast.slice(0,6).map((i,o)=>O.jsx(ece,{hour:i},o))})]})]})},bA=({title:e,windAngle:t,boatAngle:n,color:r,isTrue:i=!1})=>{const o=_A(t),s=_A(n);return O.jsxs("div",{className:"bg-white/5 py-3 px-4 landscape:py-2 landscape:px-4 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center justify-center landscape:justify-between shadow-lg overflow-hidden h-full gap-2 landscape:gap-0",children:[O.jsxs("div",{className:"relative w-28 h-28 landscape:w-16 landscape:h-16 flex items-center justify-center shrink-0",children:[O.jsx("div",{className:"absolute inset-0 border-2 border-white/10 rounded-full"}),i&&O.jsxs("div",{className:"absolute inset-0 flex items-center justify-center text-[8px] font-black opacity-30 text-white",children:[O.jsx("span",{className:"absolute top-0 text-red-500 font-mono",children:"N"}),O.jsx("span",{className:"absolute bottom-0 text-white/50 font-mono",children:"S"})]}),O.jsx("div",{className:"absolute transition-transform duration-1000 ease-in-out",style:{transform:`rotate(${s}deg)`},children:O.jsx(O4,{size:18,fill:"white",className:"text-white opacity-20 scale-x-75 scale-y-125"})}),O.jsx("div",{className:"absolute inset-0 transition-transform duration-1000 ease-in-out",style:{transform:`rotate(${o}deg)`},children:O.jsx("div",{className:`absolute top-0 left-1/2 -translate-x-1/2 -mt-1 ${r}`,children:O.jsx(cM,{size:16,strokeWidth:4,fill:"currentColor"})})})]}),O.jsxs("div",{className:"flex flex-col items-center landscape:items-end leading-none",children:[O.jsx("span",{className:"text-[10px] landscape:text-[7px] font-black text-gray-300 uppercase tracking-tighter font-mono whitespace-nowrap mb-1 landscape:mb-0",children:e}),O.jsxs("span",{className:`text-2xl landscape:text-lg font-black font-mono tracking-tighter ${r} whitespace-nowrap`,children:[t.toFixed(0),"° ",i?"N":""]})]})]})},Fv=({label:e,val:t,color:n})=>O.jsxs("div",{className:"flex justify-between items-baseline px-1 leading-none text-white",children:[O.jsx("span",{className:"text-[9px] landscape:text-[7px] font-black text-gray-300 uppercase font-mono",children:e}),O.jsx("span",{className:`text-lg landscape:text-sm font-black font-mono ${n}`,children:t.toFixed(1)})]}),wA=({icon:e,title:t,val:n,sub:r})=>O.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 landscape:px-4 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center landscape:justify-between shadow-lg h-full text-white group hover:bg-white/10 transition-all",children:[O.jsxs("div",{className:"flex flex-col landscape:flex-row items-center gap-1 landscape:gap-3 text-white",children:[O.jsx("div",{className:"bg-white/5 p-2 landscape:p-1.5 rounded-full flex items-center justify-center",children:D.cloneElement(e,{size:18,className:`${e.props.className} landscape:scale-90`})}),O.jsx("span",{className:"text-[9px] font-black text-gray-300 uppercase tracking-widest font-mono whitespace-nowrap",children:t})]}),O.jsxs("div",{className:"flex flex-col items-center landscape:items-end leading-tight text-white",children:[O.jsxs("span",{className:"text-3xl landscape:text-2xl font-black text-white",children:[n.toFixed(1),"°"]}),O.jsx("span",{className:"text-[10px] landscape:text-[8px] font-bold text-gray-300 uppercase font-mono whitespace-nowrap opacity-80",children:r})]})]}),ece=({hour:e})=>O.jsxs("div",{className:"bg-white/5 p-2 rounded-[1.5rem] flex flex-col items-center gap-1.5 border border-white/5 shadow-md overflow-hidden text-white h-full justify-between",children:[O.jsx("span",{className:"text-[9px] font-black text-gray-300 font-mono tracking-tighter uppercase",children:e.time}),O.jsx("div",{className:"my-0.5",children:tN(e,26)}),O.jsxs("span",{className:"text-lg font-black text-white leading-none",children:[e.temp,"°"]}),e.rainChance>15?O.jsx("div",{className:"flex items-center gap-1 text-cyan-400 bg-cyan-400/10 px-1.5 py-0.5 rounded-full",children:O.jsxs("span",{className:"text-[9px] font-black",children:[e.rainChance,"%"]})}):O.jsx("div",{className:"h-4"}),O.jsx("div",{className:"flex flex-col items-center w-full border-t border-white/5 pt-1.5 text-white",children:O.jsxs("div",{className:"flex items-center gap-1 justify-center w-full text-white",children:[O.jsx("span",{className:"text-lg landscape:text-base font-bold text-gray-400 font-mono leading-none",children:e.windSpeed}),O.jsx(t4,{size:10,className:"text-gray-300 shrink-0"}),O.jsx("span",{className:`text-lg landscape:text-base font-black font-mono leading-none ${Ql(e.windGust)}`,children:e.windGust})]})})]}),tce=({manager:e})=>{var u,f;const{data:t,toggleSwitch:n,setShoreLimit:r,isUpdating:i}=e,o=[4,6,10,16],s=((u=t==null?void 0:t.switches)==null?void 0:u.multiplus_on)||!1,l=((f=t==null?void 0:t.switches)==null?void 0:f.shore_limit)||0;return O.jsxs("div",{className:"p-4 space-y-6 pb-32",children:[O.jsx("header",{className:"px-2 pt-4 flex justify-between items-center",children:O.jsxs("div",{children:[O.jsxs("h2",{className:"text-xl font-black text-white flex items-center gap-2",children:[O.jsx(x4,{className:"text-gray-300",size:20}),"CONTROLLI AVANZATI"]}),O.jsx("p",{className:"text-[10px] text-gray-300 font-bold uppercase tracking-widest mt-1",children:"Gestione Sistemi di Bordo"})]})}),O.jsxs("div",{className:"space-y-3",children:[O.jsx("h3",{className:"text-[10px] font-black text-gray-300 tracking-[0.2em] uppercase px-2",children:"Inverter / Caricabatterie"}),O.jsxs("div",{className:"bg-white/5 rounded-[2.5rem] border border-white/10 overflow-hidden shadow-2xl divide-y divide-white/5",children:[O.jsxs("div",{className:"flex items-center justify-between p-6 bg-white/[0.02]",children:[O.jsxs("div",{className:"flex items-center gap-4",children:[O.jsx("div",{className:`p-3 rounded-2xl transition-all duration-500 ${s?"bg-yellow-500/20 shadow-[0_0_20px_rgba(234,179,8,0.2)]":"bg-white/5 grayscale opacity-30"}`,children:O.jsx(Qz,{className:s?"text-yellow-500":"text-white",size:28})}),O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-[15px] font-black text-white tracking-tight uppercase",children:"Banchina"}),O.jsx("span",{className:`text-[10px] font-black uppercase tracking-widest mt-0.5 ${s?"text-yellow-500":"text-gray-300"}`,children:s?"Stato: ACCESO (Pass-through)":"Stato: SOLO INVERTER"})]})]}),O.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[O.jsx("input",{type:"checkbox",className:"sr-only peer",checked:s,onChange:d=>n("multiplus",d.target.checked),disabled:i}),O.jsx("div",{className:`w-14 h-8 rounded-full peer transition-all shadow-inner relative after:content-[''] after:absolute after:top-[4px] after:left-[4px] after:bg-white after:rounded-full after:h-6 after:w-6 after:transition-all peer-checked:after:translate-x-6 ${s?"bg-yellow-500 shadow-[0_0_15px_rgba(234,179,8,0.4)]":"bg-gray-800"} ${i?"opacity-50":""}`})]})]}),O.jsxs("div",{className:`p-6 transition-all duration-700 ${s?"opacity-100":"opacity-20 grayscale pointer-events-none"}`,children:[O.jsxs("div",{className:"flex justify-between items-end mb-5",children:[O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsx("div",{className:"p-2 bg-cyan-500/10 rounded-xl",children:O.jsx(v4,{size:20,className:"text-cyan-400"})}),O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-sm font-black uppercase text-white tracking-tight",children:"Limite Banchina"}),O.jsx("span",{className:"text-[9px] font-bold text-gray-300 uppercase tracking-widest",children:"Seleziona Ampere AC"})]})]}),O.jsxs("div",{className:"flex items-baseline gap-1",children:[O.jsx("span",{className:"text-3xl font-black font-mono text-cyan-400",children:l.toFixed(0)}),O.jsx("span",{className:"text-sm font-bold text-gray-600",children:"A"})]})]}),O.jsx("div",{className:"flex gap-2.5 w-full mt-2",children:o.map(d=>O.jsxs("button",{onClick:()=>r(d),disabled:i||!s,className:`flex-1 py-4 rounded-2xl font-black font-mono transition-all active:scale-90 border ${l===d?"bg-cyan-500 border-cyan-400 text-white shadow-[0_0_20px_rgba(6,182,212,0.4)]":"bg-white/5 border-white/5 text-gray-300 hover:bg-white/10"}`,children:[d,"A"]},d))})]}),O.jsxs("div",{className:"p-6 flex items-center justify-between opacity-10 grayscale",children:[O.jsxs("div",{className:"flex items-center gap-4",children:[O.jsx("div",{className:"p-3 bg-white/5 rounded-2xl text-gray-400",children:O.jsx(_4,{size:26})}),O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-sm font-black text-white uppercase tracking-tight",children:"Safe Power Mode"}),O.jsx("span",{className:"text-[9px] font-bold text-gray-300 uppercase",children:"Configurazione automatica carichi"})]})]}),O.jsx("div",{className:"w-10 h-5 bg-gray-900 rounded-full border border-white/5"})]})]})]})]})},nce=""+new URL("AppIcon-CV7HxdmO.png",import.meta.url).href;function rce(){const[e,t]=j.useState(()=>{if(new URLSearchParams(window.location.search).get("mmsi"))return 3;const b=localStorage.getItem("rotevista_active_tab");return b!==null?parseInt(b,10):0}),[n,r]=j.useState(0),[i,o]=j.useState(()=>localStorage.getItem("rotevista_night_mode")==="true"),[s,l]=j.useState(()=>new URLSearchParams(window.location.search).get("mmsi")||null),u=k4();D.useEffect(()=>{const b=new URLSearchParams(window.location.search).get("mmsi");b&&(l(b),t(3),localStorage.setItem("rotevista_active_tab","3"))},[]);const f=()=>{document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():document.documentElement.requestFullscreen().catch(v=>console.error(v))},d=v=>{v!==e&&(r(v>e?1:-1),t(v),localStorage.setItem("rotevista_active_tab",String(v)))},h=(v,b)=>{if(v.target.closest(".leaflet-container"))return;const x=50;b.offset.x<-x&&e<4?d(e+1):b.offset.x>x&&e>0&&d(e-1)},m={enter:v=>({x:v>0?"100%":"-100%",opacity:0}),center:{x:0,opacity:1},exit:v=>({x:v<0?"100%":"-100%",opacity:0})};return O.jsxs("div",{className:`h-screen h-[100dvh] bg-[#121212] flex flex-col font-sans overflow-hidden select-none transition-colors duration-700 ${i?"night-mode-active":""}`,children:[O.jsxs("header",{onClick:f,className:"fixed top-0 left-0 right-0 z-[1000] h-16 bg-[#121212]/80 backdrop-blur-lg border-b border-white/10 px-4 flex items-center justify-between cursor-pointer",children:[O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsx("img",{src:nce,alt:"Logo",className:"w-9 h-9 rounded-lg object-cover bg-white/10 shadow-lg"}),O.jsx("h1",{className:"text-xl font-black tracking-widest uppercase font-mono text-white",children:"ROTEVISTA"})]}),O.jsxs("div",{className:"flex items-center gap-3",children:[u.isUpdating&&O.jsxs("div",{className:"flex items-center gap-1.5 text-cyan-400 animate-pulse bg-cyan-400/10 px-2.5 py-1 rounded-lg border border-cyan-400/20 shadow-[0_0_10px_rgba(34,211,238,0.2)]",children:[O.jsx(d4,{size:12,className:"animate-spin"}),O.jsx("span",{className:"text-[10px] font-black uppercase font-mono",children:"Sync"})]}),O.jsx("button",{onClick:v=>{v.stopPropagation();const b=!i;o(b),localStorage.setItem("rotevista_night_mode",String(b))},className:`p-2 rounded-xl border transition-all active:scale-95 ${i?"bg-red-500/20 border-red-500/50 text-red-500":"bg-white/5 border-white/10 text-gray-400"}`,children:i?O.jsx(Qx,{size:16}):O.jsx(hM,{size:16})}),O.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-white/5 rounded-xl border border-white/10 shadow-inner font-mono",children:[O.jsx("span",{className:"text-xs font-bold text-gray-400",children:u.isDataStale?"OFF":`${u.secondsSinceLastUpdate}s`}),O.jsx("div",{className:`w-2 h-2 rounded-full ${u.statusColor} shadow-[0_0_8px_currentColor]`})]})]})]}),O.jsx("main",{className:"flex-1 relative mt-16 landscape:mt-14 h-[calc(100%-4rem)] landscape:h-[calc(100%-3.5rem)] w-full",children:O.jsx(TD,{initial:!1,custom:n,children:O.jsxs(qz.div,{custom:n,variants:m,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:32},opacity:{duration:.2}},drag:"x",dragConstraints:{left:0,right:0},dragElastic:.15,onDragEnd:h,onPointerDownCapture:v=>{v.target.closest(".leaflet-container")&&v.stopPropagation()},className:"absolute inset-0 w-full h-full overflow-y-auto px-1 scroll-smooth",children:[e===0&&O.jsx(nB,{manager:u,onTabChange:d}),e===1&&O.jsx(Que,{manager:u}),e===2&&O.jsx(Jue,{manager:u}),e===3&&O.jsx(fB,{manager:u,isNightMode:i,initialMmsi:s}),e===4&&O.jsx(tce,{manager:u})]},e)})}),O.jsxs("nav",{className:"fixed bottom-5 left-1/2 -translate-x-1/2 bg-[#1a1a1a]/90 backdrop-blur-2xl border border-white/10 rounded-full px-4 py-2 flex items-center justify-around w-[92%] max-w-md shadow-[0_20px_50px_rgba(0,0,0,0.6)] z-[1001]",children:[O.jsx(Vl,{icon:O.jsx(h4,{}),label:"Home",isActive:e===0,onClick:()=>d(0)}),O.jsx(Vl,{icon:O.jsx(A4,{}),label:"Energia",isActive:e===1,onClick:()=>d(1)}),O.jsx(Vl,{icon:O.jsx(T4,{}),label:"Ambiente",isActive:e===2,onClick:()=>d(2)}),O.jsx(Vl,{icon:O.jsx(y4,{}),label:"AIS",isActive:e===3,onClick:()=>d(3)}),O.jsx(Vl,{icon:O.jsx(w4,{}),label:"Extra",isActive:e===4,onClick:()=>d(4)})]})]})}const Vl=({icon:e,label:t,isActive:n,onClick:r})=>O.jsxs("button",{onClick:r,className:`flex flex-col items-center gap-1 transition-all duration-300 ${n?"text-cyan-400 scale-110":"text-gray-300"}`,children:[D.cloneElement(e,{size:20,strokeWidth:n?2.5:2}),O.jsx("span",{className:`text-[9px] font-black uppercase tracking-tighter ${n?"opacity-100":"opacity-60"}`,children:t})]});Vv.createRoot(document.getElementById("root")).render(O.jsx(D.StrictMode,{children:O.jsx(rce,{})}));
|